@drawbridge/components 0.1.35 → 0.1.37

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.
Files changed (338) hide show
  1. package/components/styles.css +355 -68
  2. package/dist/advertisement.js +20 -15
  3. package/dist/advertisement.mjs +20 -15
  4. package/dist/bridge/advertisements.js +2 -4
  5. package/dist/bridge/advertisements.mjs +3 -5
  6. package/dist/bridge/fields.js +6 -89
  7. package/dist/bridge/fields.mjs +7 -89
  8. package/dist/bridge/form-subdomain-embed.js +1 -5
  9. package/dist/bridge/form-subdomain-embed.mjs +1 -5
  10. package/dist/bridge/form-subdomain-header.js +14 -21
  11. package/dist/bridge/form-subdomain-header.mjs +14 -20
  12. package/dist/bridge/form-subdomain-issue.js +8 -17
  13. package/dist/bridge/form-subdomain-issue.mjs +8 -17
  14. package/dist/bridge/form-subdomain-missions.js +52 -58
  15. package/dist/bridge/form-subdomain-missions.mjs +54 -60
  16. package/dist/bridge/form-subdomain.js +94 -223
  17. package/dist/bridge/form-subdomain.mjs +96 -222
  18. package/dist/bridge/lib/entry.js +6 -61
  19. package/dist/bridge/lib/entry.mjs +5 -51
  20. package/dist/bridge/lib/order.js +0 -23
  21. package/dist/bridge/lib/order.mjs +0 -20
  22. package/dist/bridge/template-layout.js +2 -5
  23. package/dist/bridge/template-layout.mjs +3 -6
  24. package/dist/bridge/template-modal.js +15 -82
  25. package/dist/bridge/template-modal.mjs +16 -83
  26. package/dist/bridge/template-preview.js +208 -0
  27. package/dist/bridge/template-preview.mjs +173 -0
  28. package/dist/bridge/template-subdomain-gallery.js +75 -126
  29. package/dist/bridge/template-subdomain-gallery.mjs +75 -122
  30. package/dist/bridge/template-subdomain.js +14 -16
  31. package/dist/bridge/template-subdomain.mjs +15 -17
  32. package/dist/dashboard/avatar.js +0 -5
  33. package/dist/dashboard/avatar.mjs +0 -5
  34. package/dist/dashboard/card-affiliate.js +2 -3
  35. package/dist/dashboard/card-affiliate.mjs +2 -3
  36. package/dist/dashboard/card-campaign-switch.js +9 -34
  37. package/dist/dashboard/card-campaign-switch.mjs +8 -32
  38. package/dist/dashboard/card-connection.js +91 -51
  39. package/dist/dashboard/card-connection.mjs +89 -50
  40. package/dist/dashboard/card-order.js +14 -6
  41. package/dist/dashboard/card-order.mjs +14 -6
  42. package/dist/dashboard/card-section.js +26 -69
  43. package/dist/dashboard/card-section.mjs +26 -65
  44. package/dist/dashboard/card-tile.js +35 -3
  45. package/dist/dashboard/card-tile.mjs +34 -3
  46. package/dist/dashboard/device.js +95 -0
  47. package/dist/dashboard/device.mjs +72 -0
  48. package/dist/dashboard/drawer-subscription.js +14 -52
  49. package/dist/dashboard/drawer-subscription.mjs +14 -52
  50. package/dist/dashboard/drawer.js +3 -20
  51. package/dist/dashboard/drawer.mjs +4 -21
  52. package/dist/dashboard/dropdown.js +2 -6
  53. package/dist/dashboard/dropdown.mjs +2 -6
  54. package/dist/dashboard/form-admin-subscription-custom.js +8 -72
  55. package/dist/dashboard/form-admin-subscription-custom.mjs +8 -72
  56. package/dist/dashboard/form-ai.js +148 -0
  57. package/dist/dashboard/form-ai.mjs +148 -1
  58. package/dist/dashboard/form-filters-analytics.js +62 -85
  59. package/dist/dashboard/form-filters-analytics.mjs +61 -85
  60. package/dist/dashboard/form-organization-brand.js +13 -30
  61. package/dist/dashboard/form-organization-brand.mjs +13 -30
  62. package/dist/dashboard/form-organization-campaign-advertisement.js +112 -38
  63. package/dist/dashboard/form-organization-campaign-advertisement.mjs +112 -38
  64. package/dist/dashboard/form-organization-campaign-agreement.js +210 -414
  65. package/dist/dashboard/form-organization-campaign-agreement.mjs +212 -411
  66. package/dist/dashboard/form-organization-campaign-field-list.js +425 -0
  67. package/dist/dashboard/form-organization-campaign-field-list.mjs +396 -0
  68. package/dist/dashboard/form-organization-campaign-field-number.js +7 -48
  69. package/dist/dashboard/form-organization-campaign-field-number.mjs +7 -48
  70. package/dist/dashboard/form-organization-campaign-field-select.js +4 -15
  71. package/dist/dashboard/form-organization-campaign-field-select.mjs +4 -15
  72. package/dist/dashboard/form-organization-campaign-field-text.js +6 -46
  73. package/dist/dashboard/form-organization-campaign-field-text.mjs +6 -46
  74. package/dist/dashboard/form-organization-campaign-field-textarea.js +13 -22
  75. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +13 -22
  76. package/dist/dashboard/form-organization-campaign-integration-age.js +35 -2
  77. package/dist/dashboard/form-organization-campaign-integration-age.mjs +35 -2
  78. package/dist/dashboard/form-organization-campaign-integration-geocode.js +1 -4
  79. package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +1 -4
  80. package/dist/dashboard/form-organization-campaign-page-embed.js +1 -1
  81. package/dist/dashboard/form-organization-campaign-page-embed.mjs +1 -1
  82. package/dist/dashboard/form-organization-campaign-page-preview.js +2 -1
  83. package/dist/dashboard/form-organization-campaign-page-preview.mjs +2 -1
  84. package/dist/dashboard/form-organization-campaign-page-qr.js +2 -2
  85. package/dist/dashboard/form-organization-campaign-page-qr.mjs +2 -2
  86. package/dist/dashboard/form-organization-campaign-page-share.js +5 -5
  87. package/dist/dashboard/form-organization-campaign-page-share.mjs +5 -5
  88. package/dist/dashboard/form-organization-campaign-page-slug.js +3 -2
  89. package/dist/dashboard/form-organization-campaign-page-slug.mjs +3 -2
  90. package/dist/dashboard/form-organization-campaign-page.js +265 -168
  91. package/dist/dashboard/form-organization-campaign-page.mjs +266 -170
  92. package/dist/dashboard/form-organization-campaign-section.js +107 -125
  93. package/dist/dashboard/form-organization-campaign-section.mjs +107 -121
  94. package/dist/dashboard/form-organization-campaign.js +9 -119
  95. package/dist/dashboard/form-organization-campaign.mjs +9 -118
  96. package/dist/dashboard/form-organization-file-frame.js +1 -7
  97. package/dist/dashboard/form-organization-file-frame.mjs +1 -7
  98. package/dist/dashboard/form-organization-workflow.js +545 -589
  99. package/dist/dashboard/form-organization-workflow.mjs +545 -590
  100. package/dist/dashboard/form-organization.js +0 -22
  101. package/dist/dashboard/form-organization.mjs +0 -22
  102. package/dist/dashboard/form-verify-prize.js +34 -114
  103. package/dist/dashboard/form-verify-prize.mjs +34 -111
  104. package/dist/dashboard/google.js +1 -8
  105. package/dist/dashboard/google.mjs +1 -8
  106. package/dist/dashboard/input-array.js +0 -2
  107. package/dist/dashboard/input-array.mjs +0 -2
  108. package/dist/dashboard/input-combobox.js +9 -0
  109. package/dist/dashboard/input-combobox.mjs +9 -0
  110. package/dist/dashboard/input-date.js +8 -3
  111. package/dist/dashboard/input-date.mjs +8 -3
  112. package/dist/dashboard/input-editor.js +6 -17
  113. package/dist/dashboard/input-editor.mjs +6 -17
  114. package/dist/dashboard/input-fields.js +437 -287
  115. package/dist/dashboard/input-fields.mjs +436 -287
  116. package/dist/dashboard/input-file.js +2 -70
  117. package/dist/dashboard/input-file.mjs +2 -70
  118. package/dist/dashboard/input-font.js +55 -64
  119. package/dist/dashboard/input-font.mjs +55 -64
  120. package/dist/dashboard/input-resource.js +1 -4
  121. package/dist/dashboard/input-resource.mjs +1 -4
  122. package/dist/dashboard/item-row.js +92 -0
  123. package/dist/dashboard/item-row.mjs +63 -0
  124. package/dist/dashboard/lib/features.js +1 -1
  125. package/dist/dashboard/lib/features.mjs +1 -1
  126. package/dist/dashboard/lib/item-list.js +15 -0
  127. package/dist/dashboard/lib/item-list.mjs +14 -0
  128. package/dist/dashboard/lib/rail.js +17 -16
  129. package/dist/dashboard/lib/rail.mjs +16 -15
  130. package/dist/dashboard/lib/sms.js +2 -8
  131. package/dist/dashboard/lib/sms.mjs +1 -6
  132. package/dist/dashboard/list-resource.js +0 -2
  133. package/dist/dashboard/list-resource.mjs +0 -2
  134. package/dist/dashboard/menu.js +5 -54
  135. package/dist/dashboard/menu.mjs +5 -53
  136. package/dist/dashboard/modal.js +4 -19
  137. package/dist/dashboard/modal.mjs +5 -20
  138. package/dist/dashboard/order-sections.js +0 -4
  139. package/dist/dashboard/order-sections.mjs +0 -4
  140. package/dist/dashboard/preview.js +324 -838
  141. package/dist/dashboard/preview.mjs +324 -826
  142. package/dist/dashboard/provider-ui.js +12 -20
  143. package/dist/dashboard/provider-ui.mjs +13 -21
  144. package/dist/dashboard/recharts.js +28 -53
  145. package/dist/dashboard/recharts.mjs +28 -53
  146. package/dist/dashboard/swatch.js +0 -35
  147. package/dist/dashboard/swatch.mjs +0 -31
  148. package/dist/dashboard/table-contacts.js +10 -6
  149. package/dist/dashboard/table-contacts.mjs +10 -6
  150. package/dist/dashboard/table.js +3 -10
  151. package/dist/dashboard/table.mjs +3 -9
  152. package/dist/dashboard/template-dashboard.js +21 -13
  153. package/dist/dashboard/template-dashboard.mjs +21 -12
  154. package/dist/dashboard/template-rail.js +126 -198
  155. package/dist/dashboard/template-rail.mjs +125 -196
  156. package/dist/dashboard/template-socket.js +12 -0
  157. package/dist/dashboard/template-socket.mjs +12 -0
  158. package/dist/dashboard/template-ui.js +11 -20
  159. package/dist/dashboard/template-ui.mjs +13 -22
  160. package/dist/input-checkbox.js +1 -7
  161. package/dist/input-checkbox.mjs +1 -7
  162. package/dist/input-name.js +3 -3
  163. package/dist/input-name.mjs +3 -3
  164. package/dist/input-select.js +1 -3
  165. package/dist/input-select.mjs +1 -3
  166. package/dist/provider-font.js +3 -4
  167. package/dist/provider-font.mjs +3 -4
  168. package/dist/shared/badge.js +0 -15
  169. package/dist/shared/badge.mjs +0 -11
  170. package/dist/shared/carousel.js +7 -11
  171. package/dist/shared/carousel.mjs +7 -11
  172. package/dist/shared/lib/campaign.js +9 -3
  173. package/dist/shared/lib/campaign.mjs +9 -3
  174. package/dist/shared/lib/helpers.js +0 -24
  175. package/dist/shared/lib/helpers.mjs +0 -22
  176. package/dist/shared/lib/video.js +0 -6
  177. package/dist/shared/lib/video.mjs +0 -5
  178. package/dist/shared/sortable.js +10 -27
  179. package/dist/shared/sortable.mjs +10 -27
  180. package/dist/shared/tabs.js +1 -1
  181. package/dist/shared/tabs.mjs +1 -1
  182. package/dist/video.js +9 -127
  183. package/dist/video.mjs +11 -125
  184. package/package.json +20 -176
  185. package/types/bridge/fields.d.ts +1 -6
  186. package/types/bridge/form-subdomain-missions.d.ts +0 -2
  187. package/types/bridge/form-subdomain.d.ts +3 -62
  188. package/types/bridge/lib/entry.d.ts +7 -44
  189. package/types/bridge/lib/order.d.ts +2 -13
  190. package/types/bridge/subdomain-content.d.ts +0 -1
  191. package/types/bridge/template-preview.d.ts +10 -0
  192. package/types/bridge/template-subdomain-gallery.d.ts +1 -13
  193. package/types/dashboard/card-campaign-switch.d.ts +1 -20
  194. package/types/dashboard/card-connection.d.ts +8 -0
  195. package/types/dashboard/card-order.d.ts +2 -2
  196. package/types/dashboard/card-section.d.ts +1 -9
  197. package/types/dashboard/card-tile.d.ts +9 -4
  198. package/types/dashboard/device.d.ts +12 -0
  199. package/types/dashboard/drawer.d.ts +0 -3
  200. package/types/dashboard/form-ai.d.ts +17 -0
  201. package/types/dashboard/form-filters-analytics.d.ts +14 -0
  202. package/types/dashboard/form-organization-brand.d.ts +0 -3
  203. package/types/dashboard/form-organization-campaign-agreement.d.ts +10 -53
  204. package/types/dashboard/form-organization-campaign-field-list.d.ts +36 -0
  205. package/types/dashboard/form-organization-campaign-field-number.d.ts +1 -4
  206. package/types/dashboard/form-organization-campaign-field-select.d.ts +1 -6
  207. package/types/dashboard/form-organization-campaign-field-text.d.ts +1 -5
  208. package/types/dashboard/form-organization-campaign-field-textarea.d.ts +1 -4
  209. package/types/dashboard/form-organization-campaign-integration-age.d.ts +1 -2
  210. package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +0 -2
  211. package/types/dashboard/form-organization-campaign-page.d.ts +15 -9
  212. package/types/dashboard/form-organization-campaign-section.d.ts +8 -24
  213. package/types/dashboard/form-organization-campaign.d.ts +0 -3
  214. package/types/dashboard/form-organization-workflow.d.ts +4 -3
  215. package/types/dashboard/form-organization.d.ts +2 -2
  216. package/types/dashboard/form-verify-prize.d.ts +3 -30
  217. package/types/dashboard/input-combobox.d.ts +2 -0
  218. package/types/dashboard/input-date.d.ts +2 -0
  219. package/types/dashboard/input-editor.d.ts +0 -9
  220. package/types/dashboard/input-fields.d.ts +5 -8
  221. package/types/dashboard/input-file.d.ts +0 -4
  222. package/types/dashboard/input-resource.d.ts +0 -1
  223. package/types/dashboard/item-row.d.ts +25 -0
  224. package/types/dashboard/lib/item-list.d.ts +5 -10
  225. package/types/dashboard/lib/rail.d.ts +1 -0
  226. package/types/dashboard/lib/sms.d.ts +0 -7
  227. package/types/dashboard/modal.d.ts +1 -3
  228. package/types/dashboard/preview.d.ts +10 -65
  229. package/types/dashboard/recharts.d.ts +0 -3
  230. package/types/dashboard/swatch.d.ts +0 -4
  231. package/types/dashboard/template-dashboard.d.ts +2 -3
  232. package/types/input-select.d.ts +0 -2
  233. package/types/shared/button.d.ts +1 -1
  234. package/types/shared/lib/helpers.d.ts +1 -22
  235. package/types/shared/lib/video.d.ts +0 -3
  236. package/types/shared/sortable.d.ts +0 -6
  237. package/types/video.d.ts +2 -18
  238. package/dist/bridge/form-subdomain-agreement.js +0 -165
  239. package/dist/bridge/form-subdomain-agreement.mjs +0 -132
  240. package/dist/dashboard/campaign-form.js +0 -1798
  241. package/dist/dashboard/campaign-form.mjs +0 -1769
  242. package/dist/dashboard/card-campaign-agreement.js +0 -172
  243. package/dist/dashboard/card-campaign-agreement.mjs +0 -139
  244. package/dist/dashboard/card-shortcut.js +0 -181
  245. package/dist/dashboard/card-shortcut.mjs +0 -152
  246. package/dist/dashboard/document-blocks.js +0 -305
  247. package/dist/dashboard/document-blocks.mjs +0 -270
  248. package/dist/dashboard/form-organization-campaign-advertisements.js +0 -374
  249. package/dist/dashboard/form-organization-campaign-advertisements.mjs +0 -345
  250. package/dist/dashboard/form-organization-campaign-design.js +0 -258
  251. package/dist/dashboard/form-organization-campaign-design.mjs +0 -223
  252. package/dist/dashboard/form-organization-campaign-field-item.js +0 -585
  253. package/dist/dashboard/form-organization-campaign-field-item.mjs +0 -552
  254. package/dist/dashboard/form-organization-campaign-field-skill.js +0 -359
  255. package/dist/dashboard/form-organization-campaign-field-skill.mjs +0 -330
  256. package/dist/dashboard/form-organization-campaign-footer.js +0 -178
  257. package/dist/dashboard/form-organization-campaign-footer.mjs +0 -149
  258. package/dist/dashboard/form-reposition.js +0 -396
  259. package/dist/dashboard/form-reposition.mjs +0 -359
  260. package/dist/dashboard/form-support.js +0 -189
  261. package/dist/dashboard/form-support.mjs +0 -160
  262. package/dist/dashboard/form-tests.js +0 -683
  263. package/dist/dashboard/form-tests.mjs +0 -646
  264. package/dist/dashboard/lib/ab-tests.js +0 -130
  265. package/dist/dashboard/lib/ab-tests.mjs +0 -94
  266. package/dist/dashboard/lib/focus.js +0 -93
  267. package/dist/dashboard/lib/focus.mjs +0 -69
  268. package/dist/dashboard/lib/form-page.js +0 -203
  269. package/dist/dashboard/lib/form-page.mjs +0 -155
  270. package/dist/dashboard/template-design.js +0 -564
  271. package/dist/dashboard/template-design.mjs +0 -531
  272. package/dist/dashboard/template-test-page.js +0 -436
  273. package/dist/dashboard/template-test-page.mjs +0 -407
  274. package/dist/dashboard/template-tests.js +0 -141
  275. package/dist/dashboard/template-tests.mjs +0 -112
  276. package/dist/dashboard/template-variant.js +0 -185
  277. package/dist/dashboard/template-variant.mjs +0 -156
  278. package/dist/icons/arrow-down-long.js +0 -47
  279. package/dist/icons/arrow-down-long.mjs +0 -28
  280. package/dist/icons/arrows-pointing-out.js +0 -46
  281. package/dist/icons/arrows-pointing-out.mjs +0 -27
  282. package/dist/icons/beaker.js +0 -46
  283. package/dist/icons/beaker.mjs +0 -27
  284. package/dist/icons/identification.js +0 -46
  285. package/dist/icons/identification.mjs +0 -27
  286. package/dist/icons/lifebuoy.js +0 -46
  287. package/dist/icons/lifebuoy.mjs +0 -27
  288. package/dist/icons/rectangle-group.js +0 -46
  289. package/dist/icons/rectangle-group.mjs +0 -27
  290. package/dist/icons/rectangle-stack.js +0 -46
  291. package/dist/icons/rectangle-stack.mjs +0 -27
  292. package/dist/icons/shopping-bag.js +0 -46
  293. package/dist/icons/shopping-bag.mjs +0 -27
  294. package/dist/icons/swatch.js +0 -46
  295. package/dist/icons/swatch.mjs +0 -27
  296. package/dist/icons/window.js +0 -46
  297. package/dist/icons/window.mjs +0 -27
  298. package/dist/icons/zoom-in.js +0 -46
  299. package/dist/icons/zoom-in.mjs +0 -27
  300. package/dist/input-answer.js +0 -60
  301. package/dist/input-answer.mjs +0 -27
  302. package/dist/shared/document-pieces.js +0 -295
  303. package/dist/shared/document-pieces.mjs +0 -260
  304. package/types/bridge/form-subdomain-agreement.d.ts +0 -27
  305. package/types/dashboard/campaign-form.d.ts +0 -42
  306. package/types/dashboard/card-campaign-agreement.d.ts +0 -26
  307. package/types/dashboard/card-shortcut.d.ts +0 -38
  308. package/types/dashboard/document-blocks.d.ts +0 -14
  309. package/types/dashboard/form-organization-campaign-advertisements.d.ts +0 -15
  310. package/types/dashboard/form-organization-campaign-design.d.ts +0 -46
  311. package/types/dashboard/form-organization-campaign-field-item.d.ts +0 -36
  312. package/types/dashboard/form-organization-campaign-field-skill.d.ts +0 -36
  313. package/types/dashboard/form-organization-campaign-footer.d.ts +0 -23
  314. package/types/dashboard/form-reposition.d.ts +0 -29
  315. package/types/dashboard/form-support.d.ts +0 -14
  316. package/types/dashboard/form-tests.d.ts +0 -78
  317. package/types/dashboard/lib/ab-tests.d.ts +0 -50
  318. package/types/dashboard/lib/escape.d.ts +0 -4
  319. package/types/dashboard/lib/focus.d.ts +0 -16
  320. package/types/dashboard/lib/form-page.d.ts +0 -25
  321. package/types/dashboard/template-design.d.ts +0 -30
  322. package/types/dashboard/template-test-page.d.ts +0 -69
  323. package/types/dashboard/template-tests.d.ts +0 -30
  324. package/types/dashboard/template-variant.d.ts +0 -18
  325. package/types/icons/arrow-down-long.d.ts +0 -5
  326. package/types/icons/arrows-pointing-out.d.ts +0 -5
  327. package/types/icons/beaker.d.ts +0 -5
  328. package/types/icons/identification.d.ts +0 -5
  329. package/types/icons/lifebuoy.d.ts +0 -5
  330. package/types/icons/rectangle-group.d.ts +0 -5
  331. package/types/icons/rectangle-stack.d.ts +0 -5
  332. package/types/icons/shopping-bag.d.ts +0 -5
  333. package/types/icons/swatch.d.ts +0 -5
  334. package/types/icons/window.d.ts +0 -5
  335. package/types/icons/zoom-in.d.ts +0 -5
  336. package/types/input-answer.d.ts +0 -15
  337. package/types/shared/document-pieces.d.ts +0 -34
  338. package/types/shared/lib/motion.d.ts +0 -2
@@ -3,11 +3,8 @@ import { ComponentType, ReactNode } from 'react';
3
3
  // A question on the prize, as GET /otc/:id returns prize.fields.
4
4
  export interface FormVerifyPrizeField {
5
5
  attributes?: { max?: number | string };
6
- // 'campaign:field:select' renders a select of settings.options; slug 'skill'
7
- // a number input; anything else a text input.
6
+ // 'campaign:field:select' renders a select of settings.options; anything else a text input.
8
7
  feature?: string;
9
- // Each question's answer is keyed by its id ( Pistachio ).
10
- id?: string;
11
8
  label: string;
12
9
  settings?: { options?: { option: string }[] };
13
10
  slug: string;
@@ -16,9 +13,8 @@ export interface FormVerifyPrizeField {
16
13
  export interface FormVerifyPrizeProps {
17
14
  // The review modal's final button; defaults to 'Accept'.
18
15
  action?: ReactNode;
19
- // The review links campaign.agreements.terms.link when there is one; terms
20
- // of type 'document' open over the page, their pieces drawn from documents.
21
- campaign?: { agreements?: { terms?: { document?: string; link?: string | null; type?: 'document' | 'link' } }; documents?: Record<string, unknown> } | null;
16
+ // The review links campaign.agreements.terms.link when there is one.
17
+ campaign?: { agreements?: { terms?: { link?: string | null } } } | null;
22
18
  children?: ReactNode;
23
19
  // The page button that opens the review; defaults to 'Continue'.
24
20
  confirm?: ReactNode;
@@ -35,33 +31,10 @@ export interface FormVerifyPrizeProps {
35
31
 
36
32
  export interface PrizeTermsProps {
37
33
  link?: string | null;
38
- // Terms set up as a document: "terms and conditions" opens it.
39
- onRead?: ( () => void ) | null;
40
34
  }
41
35
 
42
36
  export declare const PrizeTerms: ComponentType<PrizeTermsProps>;
43
37
 
44
- export interface PrizeDocumentProps {
45
- // Back to the confirmation.
46
- back?: () => void;
47
- // What the document's pieces draw ( the claim's campaign.documents ).
48
- data?: Record<string, unknown>;
49
- // The document's html.
50
- value?: string;
51
- }
52
-
53
- export declare const PrizeDocument: ComponentType<PrizeDocumentProps>;
54
-
55
- // The form's name for a question's answer: 'question-' + its id, else its slug.
56
- export declare const answerKey: ( field?: Partial<FormVerifyPrizeField> ) => string | undefined;
57
-
58
- // The answers as the api reads them ( { id, slug, value } per question ) and
59
- // the shipping address.
60
- export declare const splitValues: ( values: Record<string, unknown>, fields?: FormVerifyPrizeField[] ) => {
61
- address: Record<string, unknown>;
62
- fields: Array<{ id?: string; slug: string; value: unknown }>;
63
- };
64
-
65
38
  declare const FormVerifyPrize: ComponentType<FormVerifyPrizeProps>;
66
39
 
67
40
  export default FormVerifyPrize;
@@ -8,6 +8,8 @@ export interface InputComboboxOption {
8
8
  element?: ElementType;
9
9
  // A non-selectable group label.
10
10
  header?: boolean;
11
+ // An icon before the label, e.g. a padlock.
12
+ icon?: ComponentType<{ className?: string }>;
11
13
  image?: string;
12
14
  // The label.
13
15
  key: string;
@@ -23,6 +23,8 @@ export interface InputDateRangeProps {
23
23
  className?: string;
24
24
  // The last day that can be picked, 'YYYY-MM-DD'; the calendar stops at its month.
25
25
  max?: string | Date;
26
+ // The first day that can be picked, 'YYYY-MM-DD'; the calendar starts at its month.
27
+ min?: string | Date;
26
28
  onChange: ( value: InputDateRangeValue ) => void;
27
29
  value?: InputDateRangeValue;
28
30
  }
@@ -7,16 +7,7 @@ export interface InputEditorVariable {
7
7
  label: string;
8
8
  }
9
9
 
10
- // The document editor's nodes and tools ( dashboard/document-blocks.js ).
11
- export interface InputEditorBlocks {
12
- after?: ( context: any ) => ReactNode;
13
- before?: ( context: any ) => ReactNode;
14
- extensions?: Node[];
15
- insert?: ( context: any ) => ReactNode;
16
- }
17
-
18
10
  export interface InputEditorProps {
19
- blocks?: InputEditorBlocks;
20
11
  disabled?: boolean;
21
12
  // Sits under what is typed, outside the document, so it cannot be removed.
22
13
  locked?: ReactNode;
@@ -23,9 +23,8 @@ export const schemas: {
23
23
  // cached [ 'countries' ] query.
24
24
  export const InputFieldsAddress: ComponentType<{ showAutocomplete?: boolean }>;
25
25
 
26
- // Style as one list: the two fonts, the four colours, the three corners. The
27
- // parent form wraps it in its own Fieldset to disable it.
28
- export const InputFieldsStyle: ComponentType<{ onUpdate?: OnUpdate }>;
26
+ // style.heading/body fonts, colours and radii.
27
+ export const InputFieldsStyle: ComponentType<{ disabled?: boolean; onUpdate?: OnUpdate }>;
29
28
 
30
29
  // title, and the Form and Giveaway switches ( one flip keeps the pair consistent ).
31
30
  export const InputFieldsCampaign: ComponentType<{ onUpdate?: ( title: string ) => void }>;
@@ -33,13 +32,12 @@ export const InputFieldsCampaign: ComponentType<{ onUpdate?: ( title: string ) =
33
32
  // currency ( options from the cached [ 'app' ] enums ).
34
33
  export const InputFieldsCurrency: ComponentType<{ label?: string }>;
35
34
 
35
+ export const InputFieldsPage: ComponentType<{ onUpdate?: ( title: string ) => void }>;
36
36
 
37
37
  // headline and description, each with the AI drawer.
38
38
  export const InputFieldsDetails: ComponentType<{ onUpdate?: OnUpdate; organization?: Organization }>;
39
39
 
40
40
  interface InputFieldsImagesProps {
41
- // Gives each image its own Description, kept in the form's `descriptions`.
42
- described?: boolean;
43
41
  onUpdate?: OnUpdate;
44
42
  organization?: Organization;
45
43
  values?: { images?: { logo?: InputFileValue | null; preview?: InputFileValue | null }; organization?: string; [ key: string ]: unknown };
@@ -48,6 +46,5 @@ interface InputFieldsImagesProps {
48
46
  // images.logo and images.preview.
49
47
  export const InputFieldsImages: ComponentType<InputFieldsImagesProps>;
50
48
 
51
- // A page's Media: a sortable gallery of { file, description, position }; each
52
- // item's thumbnail opens Reposition.
53
- export const InputFieldsMedia: ComponentType<{ onUpdate?: OnUpdate; organization?: Organization; values?: { organization?: string; [ key: string ]: unknown } }>;
49
+ // A sortable gallery above InputFieldsImages.
50
+ export const InputFieldsMedia: ComponentType<InputFieldsImagesProps>;
@@ -16,8 +16,6 @@ export interface InputFileProps {
16
16
  // This placement's description of the image (its alt text), up to 150 characters.
17
17
  description?: string;
18
18
  disabled?: boolean;
19
- // With onEdit: a green ring on the thumbnail, the file has been edited ( a gallery crop ).
20
- edited?: boolean;
21
19
  // Base for the picker's library and upload ( /organization/:id ).
22
20
  endpoint?: string;
23
21
  filters?: Record<string, unknown>;
@@ -26,8 +24,6 @@ export interface InputFileProps {
26
24
  onChange: ( file: InputFileValue | null ) => void;
27
25
  // With it, the row's name becomes an editable Description, the file's name as its placeholder.
28
26
  onDescription?: ( description: string ) => void;
29
- // With it, the thumbnail is a button ( pencil on hover, tooltip "Reposition" ) that calls it with the file.
30
- onEdit?: ( file: InputFileValue ) => void;
31
27
  organization?: { id: string; [ key: string ]: unknown } | string;
32
28
  type?: 'image' | 'media' | 'video' | 'all' | string;
33
29
  value?: InputFileValue | null | '';
@@ -21,7 +21,6 @@ export interface InputResourceSingleProps extends InputResourceBase {
21
21
  export interface InputResourceMultipleProps extends InputResourceBase {
22
22
  // Disabled chips above the list, never offered by the picker.
23
23
  fixed?: ListResourceItem[];
24
- picker?: boolean;
25
24
  multiple: true;
26
25
  onChange: ( items: ListResourceItem[] ) => void;
27
26
  value?: ListResourceItem[];
@@ -0,0 +1,25 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+
3
+ export interface ItemRowFile {
4
+ filename?: string;
5
+ id?: string;
6
+ mimetype?: string;
7
+ sizes?: Record<string, string>;
8
+ updatedAt?: string | number | Date;
9
+ }
10
+
11
+ export interface ItemRowProps {
12
+ // The image's alt text; falls back to the file's name, then the item's name.
13
+ description?: string | null;
14
+ // A sortable list's drag handle, drawn first.
15
+ handle?: ReactNode;
16
+ // An uploaded file, or a store's image url; a grey square without one.
17
+ image?: ItemRowFile | string | null;
18
+ name?: ReactNode;
19
+ // The grey line under the name.
20
+ summary?: ReactNode;
21
+ }
22
+
23
+ declare const ItemRow: ComponentType<ItemRowProps>;
24
+
25
+ export default ItemRow;
@@ -1,15 +1,10 @@
1
- // An item as the Item field's form holds it.
2
- export interface ItemListItem {
3
- attributes?: { max?: number | null };
4
- description?: string | null;
5
- id?: string;
6
- image?: { filename?: string; id: string; mimetype?: string; sizes?: Record<string, string>; updatedAt?: string } | string | null;
7
- name: string;
8
- price?: number | null;
9
- }
1
+ import { FormOrganizationCampaignFieldListItem } from '../form-organization-campaign-field-list';
2
+
3
+ // "$22.00 CAD · Up to 6 per order": the price while prices are on, then the limit.
4
+ export declare const itemSummary: ( item: Partial<FormOrganizationCampaignFieldListItem> | null | undefined, prices: boolean, currency: string ) => string;
10
5
 
11
6
  // The items as the field routes take them: image ids, explicit nulls.
12
- export declare const itemsBody: ( items?: Partial<ItemListItem>[] ) => Array<{
7
+ export declare const itemsBody: ( items?: Partial<FormOrganizationCampaignFieldListItem>[] ) => Array<{
13
8
  attributes: { max: number | null };
14
9
  description: string | null;
15
10
  id?: string;
@@ -29,3 +29,4 @@ export function railLead( count: number ): string;
29
29
  export function railView( args: { guide?: unknown; panel?: string | null } ): string | null;
30
30
  export function railOverlap( a: DOMRectReadOnly, b: DOMRectReadOnly ): boolean;
31
31
  export function railOnScreen( rect: DOMRectReadOnly, viewport: { height: number; width: number } ): boolean;
32
+ export function railTabTarget( args: { active: unknown; items: unknown[]; shift: boolean } ): unknown;
@@ -1,10 +1,3 @@
1
- // Whether the platform texts at all: the api's `identityDefaults.sms`, false
2
- // while Twilio is switched off on the platform.
3
- export declare const textsOn: ( organization?: {
4
- identityDefaults?: { sms?: boolean; [ key: string ]: unknown };
5
- [ key: string ]: unknown;
6
- } | null ) => boolean;
7
-
8
1
  // Whether the organization's SMS number reads Active: an `sms` identity row on
9
2
  // `identityItems` with `status : 'verified'`. Pending and Rejected cannot send.
10
3
  export declare const smsNumberActive: ( organization?: {
@@ -11,10 +11,8 @@ export interface ModalProps {
11
11
  onClose?: () => void;
12
12
  // Needed for the shared close when onClose is not given.
13
13
  queryClient: QueryClient;
14
- // Names the dialog. Without a title there is no header or close button.
14
+ // Without a title there is no header or close button.
15
15
  title?: ReactNode;
16
- // 48rem in place of 28rem, for an agreement's document editor.
17
- wide?: boolean;
18
16
  }
19
17
 
20
18
  declare const Modal: ComponentType<ModalProps>;
@@ -1,86 +1,31 @@
1
- import { ComponentType, Context, ReactNode, RefObject } from 'react';
2
-
3
- export interface PreviewOption {
4
- key: string;
5
- // Its own options: the row drills in, and the picker's value is the path.
6
- options?: PreviewOption[];
7
- value: unknown;
8
- }
1
+ import { ComponentType, ReactNode } from 'react';
9
2
 
10
3
  export interface PreviewStates {
11
- // Handed the value picked, or the path, [ option, its option ], when nested.
12
4
  onChange: ( value: unknown ) => void;
13
- options: PreviewOption[];
5
+ options: { key: string; value: unknown }[];
14
6
  value: unknown;
15
7
  }
16
8
 
17
- export interface PreviewZoom {
18
- key: string;
19
- value: number | 'fit';
20
- }
21
-
22
9
  export interface PreviewProps {
23
10
  children?: ReactNode;
24
- // Inside a SliderLayout, the slide it draws into.
25
- id?: string;
26
- // The step's own states, nested under it in the panel's one picker.
11
+ // The screen still loading what it draws: the loader shows in the device instead of the children.
12
+ loading?: boolean;
13
+ // The states dropdown, shown when there is more than one option.
27
14
  states?: PreviewStates;
15
+ // The brand the iframe's body is painted in ( background and text colours ).
16
+ style?: Record<string, unknown> | null;
28
17
  }
29
18
 
30
19
  export interface PreviewPageProps {
31
- // True by default: beside a form it runs to the page's foot. False: a fixed
32
- // 520 px from 1280 px, inside a section with more under it ( the Overview ).
33
- fill?: boolean;
34
- // An email: a whole document, at 600 px wide, with no size buttons. Without `url`.
35
- html?: string;
36
- // A picker of the caller's own, in the chip at the top left.
37
- left?: ReactNode;
20
+ states?: PreviewStates;
38
21
  // Posted to the page as { update } whenever it changes.
39
22
  update?: Record<string, unknown>;
40
- // A page: the share page's absolute address, in preview mode.
23
+ // The share page's absolute address, in preview mode.
41
24
  url?: string;
42
- // The list the zoom offers; ZOOMS by default.
43
- zooms?: PreviewZoom[];
44
- }
45
-
46
- export interface Slide {
47
- id: string;
48
- title: string;
49
- }
50
-
51
- export interface SliderLayoutProps {
52
- // No preview available in place of the step ( a section being dragged ).
53
- blank?: boolean;
54
- children?: ReactNode;
55
- // The slide a press on the Form page's Footer shows.
56
- last?: string | null;
57
- // The preview's gray behind the panel, in place of the brand's background.
58
- plain?: boolean;
59
- slides: Slide[];
60
- // The brand: its background behind the panel and its text colour.
61
- style?: Record<string, unknown> | null;
62
- // The list the zoom offers; ZOOMS by default.
63
- zooms?: PreviewZoom[];
64
25
  }
65
26
 
66
- export declare const ZOOMS: PreviewZoom[];
67
- export declare const SIZES: { height: number; icon: ComponentType; key: string; label: string; width: number }[];
68
- // The classes of the white chip every control over a preview sits on.
69
- export declare const CHIP: string;
27
+ export declare const clamp: ( value: number, limit: number ) => number;
70
28
  export declare const fitScale: ( space: { height: number; width: number }, size: { height: number; width: number } ) => number;
71
- export declare const fitZoom: ( room: number, natural: number ) => number;
72
- // A preview beside a form: from its top down to the scroller's foot, less the scroller's bottom padding.
73
- export declare const fillHeight: ( args: { foot: number; gap: number; top: number } ) => number;
74
- // Sizes `box` that way from 1280 px, as the page scrolls; nothing while `open` over the page.
75
- export declare const useFill: ( box: RefObject<HTMLElement | null>, open?: boolean ) => void;
76
- export declare const pressScrolls: ( target: unknown, card: unknown ) => boolean;
77
- export declare const scrollTarget: ( positions: { node: number; page: number; scrollTop: number } ) => number;
78
- export declare const States: ComponentType<PreviewStates & { align?: 'start' | 'end' }>;
79
- export declare const NoPreview: ComponentType<{ children?: ReactNode }>;
80
- export declare const Slider: Context<unknown>;
81
- export declare const useCard: ( id: string ) => { className: string; props: Record<string, unknown> };
82
- export declare const SliderLayout: ComponentType<SliderLayoutProps>;
83
- export declare const Mail: ComponentType<{ html?: string; title?: string }>;
84
29
  export declare const PreviewPage: ComponentType<PreviewPageProps>;
85
30
 
86
31
  declare const Preview: ComponentType<PreviewProps>;
@@ -26,9 +26,6 @@ export interface ChartLineProps {
26
26
  // Formats each value in the hover tooltip; a money chart passes one so a
27
27
  // summed amount reads "$12.50". Defaults to the raw value.
28
28
  format?: ( value: number ) => ReactNode;
29
- // A name for each line, by its dataset key ( a test names its pages ). Defaults to
30
- // the key's own label. Above three lines each line is filled lightly.
31
- labels?: Partial<Record<ChartDataset, ReactNode>>;
32
29
  // Clicking an entry toggles its series.
33
30
  legend?: boolean;
34
31
  }
@@ -9,10 +9,6 @@ export interface SwatchProps {
9
9
  onClick?: MouseEventHandler<HTMLButtonElement>;
10
10
  }
11
11
 
12
- // A look's four colours ( background, text, button, button text ) as plain
13
- // squares, each named for a reader.
14
- export declare const Swatches: ComponentType<{ style?: Record<string, any> | null }>;
15
-
16
12
  declare const Swatch: ComponentType<SwatchProps>;
17
13
 
18
14
  export default Swatch;
@@ -14,6 +14,8 @@ export interface TemplateDashboardButton {
14
14
  render?: () => ReactNode;
15
15
  svg?: ComponentType<{ className?: string }>;
16
16
  title?: ReactNode;
17
+ // Shown on hover, e.g. the plan's reason on a disabled control.
18
+ tooltip?: ReactNode;
17
19
  [ key: string ]: unknown;
18
20
  }
19
21
 
@@ -110,9 +112,6 @@ export interface TemplateDashboardResourceProps<TData = any> extends TemplateDas
110
112
  // Only a 404 is "Nothing found"; any other refusal shows the api's sentence.
111
113
  export declare const isNotFound: ( error: unknown ) => boolean;
112
114
  export declare const Refetch: ComponentType<RefetchProps>;
113
- // The page's first next step in a bar. `flush` drops the page's gutter, for a
114
- // bar drawn inside a column of the page.
115
- export declare const TemplateDashboardTasks: ComponentType<{ flush?: boolean; items?: TemplateDashboardTask[] }>;
116
115
  export declare const TemplateDashboardError: ComponentType<TemplateDashboardErrorProps>;
117
116
  export declare function TemplateDashboardResource<TData = any>( props: TemplateDashboardResourceProps<TData> ): ReactNode;
118
117
 
@@ -10,8 +10,6 @@ export interface InputSelectOption {
10
10
  export interface InputSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange' | 'style' | 'value'> {
11
11
  onChange: ( value: string ) => void;
12
12
  options?: InputSelectOption[];
13
- // The disabled first option, read while nothing is chosen; "Select" by default.
14
- placeholder?: string;
15
13
  style?: BrandStyle;
16
14
  value?: string;
17
15
  }
@@ -20,7 +20,7 @@ export interface ButtonProps {
20
20
  // The brand object: passing it brands the button (the variant is ignored).
21
21
  style?: BrandStyle | null;
22
22
  type?: 'button' | 'reset' | 'submit';
23
- variant?: 'ai' | 'card' | 'error' | 'link' | 'primary' | 'round' | 'secondary' | 'success';
23
+ variant?: 'ai' | 'error' | 'link' | 'primary' | 'secondary' | 'success';
24
24
  [ key: string ]: unknown;
25
25
  }
26
26
 
@@ -127,7 +127,7 @@ export declare const usageBadge: ( allowance: Allowance | null | undefined ) =>
127
127
  // @story admin/organizations-list
128
128
  export declare const acceptingBadge: ( accepting: Accepting | null | undefined ) => Badge | null;
129
129
 
130
- export type StatusKind = 'advertisement' | 'campaign' | 'connection' | 'draw' | 'invoice' | 'member' | 'order' | 'organization' | 'page' | 'prize' | 'range' | 'subscription' | 'test' | 'workflow';
130
+ export type StatusKind = 'advertisement' | 'campaign' | 'connection' | 'draw' | 'invoice' | 'member' | 'order' | 'organization' | 'page' | 'prize' | 'range' | 'subscription' | 'workflow';
131
131
 
132
132
  // The badge beside a table title: each kind says which of its statuses get one; null for the rest.
133
133
  export declare const statusBadge: ( kind: StatusKind, status: string | null | undefined ) => Badge | null;
@@ -146,24 +146,3 @@ export declare const years: ( props: { current: number | string; length?: number
146
146
 
147
147
  // An image's alt text: this placement's description, else the file's name.
148
148
  export declare const imageAlt: ( file?: { filename?: string } | null, description?: string | null ) => string;
149
-
150
- /** A gallery item's crop, in percent of the original; zoom is 100 / width. */
151
- export interface GalleryPosition {
152
- height: number;
153
- width: number;
154
- x: number;
155
- y: number;
156
- }
157
-
158
- /** One item of a page's gallery, its file resolved. */
159
- export interface GalleryItem<File = { id?: string; filename?: string; mimetype?: string; sizes?: Record<string, string>; updatedAt?: string }> {
160
- description?: string;
161
- file: File;
162
- position?: GalleryPosition;
163
- }
164
-
165
- /** A page's gallery as items; a cached gallery of file documents reads as items too. */
166
- export declare const galleryItems: ( gallery?: Array<GalleryItem | Record<string, unknown>> | null, described?: Record<string, string> | null ) => GalleryItem[];
167
-
168
- /** A gallery item as the page save sends it. */
169
- export declare const galleryValue: ( item: GalleryItem ) => { description?: string; file?: string; position?: GalleryPosition };
@@ -7,6 +7,3 @@ export declare const videoErrorAction: ( options: { data?: { fatal?: boolean };
7
7
  export declare const videoOverlay: ( options: { failed?: boolean; poster?: string; videoPaintable?: boolean } ) => 'poster' | 'loader' | 'warning' | null;
8
8
 
9
9
  export declare const startSeek: ( options: { reset?: boolean; wasReset?: boolean } ) => number | null;
10
-
11
- /** The player bar's time, minutes and seconds: 0:07, 12:30. */
12
- export declare const videoClock: ( seconds: number ) => string;
@@ -3,13 +3,7 @@ import { ElementType, JSX, ReactNode } from 'react';
3
3
  export interface SortableProps<T> {
4
4
  classNameSortableItem?: string;
5
5
  disabled?: boolean;
6
- // The handle's own classes, in place of the icon-wide default.
7
- handleClassName?: string;
8
- // Names each drag handle for what it moves ( "Move Email" ).
9
- handleLabel?: ( item: T ) => string;
10
6
  items?: T[];
11
- // True when a drag starts, false when it ends or is cancelled.
12
- onDragging?: ( dragging: boolean ) => void;
13
7
  onSort?: ( sorted: T[], move: { from: number; to: number } ) => void;
14
8
  renderItem: ( item: T, index: number, handle: ReactNode ) => ReactNode;
15
9
  sortableElement?: ElementType;
package/types/video.d.ts CHANGED
@@ -1,34 +1,18 @@
1
- import { ComponentType, ReactElement } from 'react';
2
-
3
- export interface ControlsProps {
4
- /** Adds a Full screen icon; off unless asked for. */
5
- fullscreen?: boolean;
6
- /** A page style: the bar takes its button colour. */
7
- style?: Record<string, unknown>;
8
- /** The video element; Video hands it over when the bar is its `controls`. */
9
- video?: HTMLVideoElement | null;
10
- }
11
-
12
- /** The one player bar: Play or Pause, the time, the timeline and an optional Full screen. */
13
- export declare const Controls: ComponentType<ControlsProps>;
1
+ import { ComponentType } from 'react';
14
2
 
15
3
  export interface VideoProps {
16
4
  className?: string;
17
- /** true: the browser's controls. false: none. A Controls element: that bar, mounted under the video. */
18
- controls?: boolean | ReactElement<ControlsProps>;
19
- defer?: boolean;
5
+ controls?: boolean;
20
6
  hls?: string;
21
7
  loop?: boolean;
22
8
  mp4?: string;
23
9
  muted?: boolean;
24
10
  onDuration?: ( seconds: number ) => void;
25
11
  onEnded?: () => void;
26
- onError?: () => void;
27
12
  onPlay?: () => void;
28
13
  onTime?: ( seconds: number ) => void;
29
14
  playing?: boolean;
30
15
  poster?: string;
31
- priority?: boolean;
32
16
  reset?: boolean;
33
17
  style?: { background?: { color?: { hex?: string } } };
34
18
  }