@drawbridge/components 0.1.4 → 0.1.6

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 (37) hide show
  1. package/README.md +6 -2
  2. package/dist/bridge/template-subdomain-gallery.js +3 -1
  3. package/dist/bridge/template-subdomain-gallery.mjs +3 -1
  4. package/dist/bridge/template-subdomain.js +8 -2
  5. package/dist/bridge/template-subdomain.mjs +8 -2
  6. package/dist/dashboard/card-task.js +13 -15
  7. package/dist/dashboard/card-task.mjs +13 -15
  8. package/dist/dashboard/drawer-subscription.js +2 -2
  9. package/dist/dashboard/drawer-subscription.mjs +2 -2
  10. package/dist/dashboard/form-action.js +70 -60
  11. package/dist/dashboard/form-action.mjs +71 -61
  12. package/dist/dashboard/form-organization-campaign-link.js +3 -1
  13. package/dist/dashboard/form-organization-campaign-link.mjs +3 -1
  14. package/dist/dashboard/form-organization-connection.js +2 -1
  15. package/dist/dashboard/form-organization-connection.mjs +2 -1
  16. package/dist/dashboard/lib/connection-controls.js +6 -2
  17. package/dist/dashboard/lib/connection-controls.mjs +4 -1
  18. package/dist/dashboard/recharts.js +5 -1
  19. package/dist/dashboard/recharts.mjs +5 -1
  20. package/dist/dashboard/steps.js +67 -10
  21. package/dist/dashboard/steps.mjs +66 -10
  22. package/dist/dashboard/table.js +10 -0
  23. package/dist/dashboard/table.mjs +10 -1
  24. package/dist/dashboard/template-dashboard.js +79 -55
  25. package/dist/dashboard/template-dashboard.mjs +78 -55
  26. package/dist/dashboard/template-socket.js +18 -5
  27. package/dist/dashboard/template-socket.mjs +18 -5
  28. package/dist/shared/lib/video.js +63 -0
  29. package/dist/shared/lib/video.mjs +37 -0
  30. package/dist/video.js +31 -8
  31. package/dist/video.mjs +31 -8
  32. package/package.json +13 -7
  33. package/types/dashboard/form-action.d.ts +5 -2
  34. package/types/dashboard/lib/connection-controls.d.ts +10 -0
  35. package/types/dashboard/recharts.d.ts +3 -0
  36. package/types/dashboard/table.d.ts +2 -0
  37. package/types/shared/lib/video.d.ts +9 -0
@@ -10,3 +10,13 @@ export declare const connectionControls: ( connection?: {
10
10
  paused: boolean;
11
11
  remove: 'disconnect' | 'manage' | null;
12
12
  };
13
+
14
+ // Whether the connection form shows the stored connection (true) or a fresh
15
+ // connect (false): a stored connection unless its fix is to connect again
16
+ // (requiresReconnect in @drawbridge/drawbridge-utils/connections/reconnect).
17
+ export declare const isConnected: ( connection?: {
18
+ connect?: { type?: string };
19
+ errors?: { source?: string }[];
20
+ id?: string;
21
+ [ key: string ]: unknown;
22
+ } | null ) => boolean;
@@ -23,6 +23,9 @@ export interface ChartLineProps {
23
23
  // when every point is zero across these.
24
24
  datasets?: ChartDataset[];
25
25
  empty?: ChartEmptyProps;
26
+ // Formats each value in the hover tooltip; a money chart passes one so a
27
+ // summed amount reads "$12.50". Defaults to the raw value.
28
+ format?: ( value: number ) => ReactNode;
26
29
  // Clicking an entry toggles its series.
27
30
  legend?: boolean;
28
31
  }
@@ -83,6 +83,8 @@ export declare const TableCellId: ComponentType<{ id?: string | null }>;
83
83
  export declare const dateTimeCell: TableCellRenderer;
84
84
  // 'N%', '—' when empty or on a redemption row.
85
85
  export declare const rateCell: TableCellRenderer;
86
+ // The amount in its row's own `currency` ('€12.50' on a EUR row), USD when the row has none.
87
+ export declare const currencyCell: TableCellRenderer;
86
88
 
87
89
  export declare const TableContainer: ComponentType<{ children?: ReactNode; className?: string }>;
88
90
 
@@ -0,0 +1,9 @@
1
+ // The Video component's source decisions, kept pure so they can be tested.
2
+
3
+ export declare const provideHls: ( Hls: unknown, target: { Hls?: unknown } ) => void;
4
+
5
+ export declare const videoErrorAction: ( options: { data?: { fatal?: boolean }; error?: unknown; mp4?: string; url?: string } ) => 'ignore' | 'retry' | 'fail';
6
+
7
+ export declare const videoOverlay: ( options: { failed?: boolean; poster?: string; videoPaintable?: boolean } ) => 'poster' | 'loader' | 'warning' | null;
8
+
9
+ export declare const startSeek: ( options: { reset?: boolean; wasReset?: boolean } ) => number | null;