@abyss-project/commons-front-core 17.0.0 → 17.2.0

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 (64) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/catalog/captures-plan.ts +116 -103
  3. package/catalog/catalog-entries.ts +148 -140
  4. package/catalog/pages/DeliveryHistory.tsx +66 -0
  5. package/catalog/pages/DeliverySubscriptions.tsx +110 -0
  6. package/catalog/pages/ScheduledTasks.tsx +117 -0
  7. package/catalog/pages/index.ts +165 -159
  8. package/catalog/specs/captures.spec.ts +145 -91
  9. package/catalog/specs/write-capture-index.ts +81 -76
  10. package/dist/{CookieConsentSettings-CTAyLGkm.js → CookieConsentSettings-DHpcYTa2.js} +1 -1
  11. package/dist/{Surface-76bwVL_Z.js → Surface-BUxzLLhb.js} +500 -90
  12. package/dist/{Tabs-D2bdAWGo.js → Tabs-D7TDtprO.js} +99 -99
  13. package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +8 -0
  14. package/dist/components/business/Deliveries/DeliveryHistory.component.spec.d.ts +1 -0
  15. package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +23 -0
  16. package/dist/components/business/Deliveries/DeliverySubscriptions.component.d.ts +9 -0
  17. package/dist/components/business/Deliveries/DeliverySubscriptions.component.spec.d.ts +1 -0
  18. package/dist/components/business/Deliveries/ScheduledTaskForm.d.ts +21 -0
  19. package/dist/components/business/Deliveries/ScheduledTasks.component.d.ts +9 -0
  20. package/dist/components/business/Deliveries/ScheduledTasks.component.spec.d.ts +1 -0
  21. package/dist/components/business/Deliveries/deliveries.logic.d.ts +35 -0
  22. package/dist/components/business/Deliveries/deliveries.logic.spec.d.ts +1 -0
  23. package/dist/components/business/Deliveries/deliveries.types.d.ts +65 -0
  24. package/dist/components/business/Deliveries/test-support/deliveries.fixtures.d.ts +19 -0
  25. package/dist/components/business/Deliveries/test-support/row-menu.d.ts +4 -0
  26. package/dist/components/business/Deliveries/use-paged-list.hook.d.ts +25 -0
  27. package/dist/components/business/index.d.ts +4 -0
  28. package/dist/cookie-consent.js +2 -2
  29. package/dist/design-system-toasts.spec.d.ts +1 -0
  30. package/dist/{design-theme-B1PgRGnU.js → design-theme-Bc2sMuUP.js} +7098 -7010
  31. package/dist/{editors-NTlXfUf3.js → editors-CGj-vsZu.js} +2264 -2243
  32. package/dist/editors.js +1 -1
  33. package/dist/hooks/use-rich-intl.hook.d.ts +432 -18
  34. package/dist/{index-D-75Bwy8.js → index-5lpeThh7.js} +2 -2
  35. package/dist/{index-BEm81V4i.js → index-853Jaoqw.js} +3 -3
  36. package/dist/{index-BH6GeV66.js → index-B4PJ4K6l.js} +2 -2
  37. package/dist/{index-DDsn4UyZ.js → index-BISOeVc7.js} +2 -2
  38. package/dist/{index-Bt3EOSkY.js → index-BS3QPrVM.js} +4 -4
  39. package/dist/{index-DmtNuZcU.js → index-BVsU-XEb.js} +2 -2
  40. package/dist/{index-VntY82At.js → index-Bxpp4VC9.js} +2 -2
  41. package/dist/{index-DloK9ass.js → index-CNfYiPB9.js} +2 -2
  42. package/dist/{index-BIQNTPCh.js → index-CONaN903.js} +2 -2
  43. package/dist/{index-C-pVBVRm.js → index-CTsQY6zW.js} +3 -3
  44. package/dist/{index-DTfxCpd4.js → index-CYmjv9TK.js} +4 -4
  45. package/dist/{index-CHsTUwr0.js → index-DKMFAW5f.js} +1 -1
  46. package/dist/{index-MiIytQo8.js → index-DOrEPYZN.js} +3 -3
  47. package/dist/{index-DGKfXQr5.js → index-DfnEQYyW.js} +2 -2
  48. package/dist/{index-DeB1ImKD.js → index-DrgdyC6J.js} +2 -2
  49. package/dist/{index-DXSxiqo1.js → index-DvrKcy8f.js} +2 -2
  50. package/dist/{index-7ovesCC_.js → index-DxZ1bG6u.js} +2 -2
  51. package/dist/{index-BHFYCrDl.js → index-DykCZUJc.js} +4 -4
  52. package/dist/{index-Dr3sF4q3.js → index-YX_yu3BN.js} +2 -2
  53. package/dist/{index-rHl9uQvG.js → index-_3uQ1KPn.js} +3 -3
  54. package/dist/{index-BKbESj9f.js → index-a62vDo6s.js} +2 -2
  55. package/dist/index.js +11825 -10044
  56. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +1 -0
  57. package/dist/legacy.js +209 -210
  58. package/dist/translations/en.d.ts +206 -1
  59. package/dist/translations/fr.d.ts +206 -1
  60. package/package.json +9 -6
  61. package/scripts/check-auth-entry-isolation.cjs +1 -2
  62. package/test-results/catalog/.last-run.json +4 -0
  63. package/vite.config.ts +3 -3
  64. package/scripts/check-external-react-toastify.cjs +0 -104
@@ -0,0 +1,110 @@
1
+ import { DeliverySubscriptions } from '../../src/components/business/Deliveries/DeliverySubscriptions.component';
2
+ import type { DeliverySubscriptionsProps } from '../../src/components/business/Deliveries/deliveries.types';
3
+ import {
4
+ EVENT_TYPES_BY_SOURCE,
5
+ SOURCES,
6
+ deliveryFormat,
7
+ page,
8
+ source,
9
+ subscription,
10
+ } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
11
+ import { Example, LastEvent, Showcase, useEventLog } from '../frame';
12
+
13
+ const PERMISSIONS = {
14
+ canCreate: true,
15
+ canUpdate: true,
16
+ canDelete: true,
17
+ canResetSecret: true,
18
+ canReadHistory: true,
19
+ };
20
+
21
+ const POPULATED = [
22
+ subscription(),
23
+ subscription({
24
+ id: 'sub-2',
25
+ source: source('FORM'),
26
+ eventTypes: ['FORM_SUBMISSION'],
27
+ url: 'https://discord.com/api/webhooks/1234/abcd',
28
+ format: deliveryFormat('DISCORD'),
29
+ consecutiveFailures: 3,
30
+ }),
31
+ subscription({
32
+ id: 'sub-3',
33
+ source: source('STORAGE'),
34
+ eventTypes: ['STORAGE_UPLOAD', 'STORAGE_DELETE'],
35
+ url: 'https://files.example.com/hooks/storage',
36
+ isEnabled: false,
37
+ disabledAt: new Date('2026-11-02T08:00:00Z'),
38
+ consecutiveFailures: 10,
39
+ }),
40
+ ];
41
+
42
+ const secretFor = (id: string) => `whsec_catalog_${id}_do-not-use`;
43
+
44
+ export const DeliverySubscriptionsPage = () => {
45
+ const { log } = useEventLog();
46
+ const base = (
47
+ list: DeliverySubscriptionsProps['list'],
48
+ ): DeliverySubscriptionsProps => ({
49
+ sources: SOURCES,
50
+ eventTypesBySource: EVENT_TYPES_BY_SOURCE,
51
+ list,
52
+ create: async (body) => {
53
+ log(`créer ${body.url}`);
54
+ return {
55
+ deliverySubscription: subscription({ id: 'sub-new', url: body.url }),
56
+ secret: secretFor('new'),
57
+ };
58
+ },
59
+ update: async (id, body) => {
60
+ log(`modifier ${id}`);
61
+ return subscription({ id, ...body });
62
+ },
63
+ remove: async (id) => log(`supprimer ${id}`),
64
+ resetSecret: async (id) => {
65
+ log(`secret ${id}`);
66
+ return {
67
+ deliverySubscription: subscription({ id }),
68
+ secret: secretFor(id),
69
+ };
70
+ },
71
+ onOpenHistory: (row) => log(`historique ${row.id}`),
72
+ flowUrl: 'https://flow.abyss.example/deliveries',
73
+ permissions: PERMISSIONS,
74
+ });
75
+ return (
76
+ <Showcase
77
+ family="Métier"
78
+ name="DeliverySubscriptions"
79
+ description="Les abonnements de livraison d'un périmètre : liste, création et édition en panneau, secret affiché une seule fois, activation, suppression confirmée. Les données et les actions passent par des props."
80
+ >
81
+ <Example title="Peuplé" maxWidth={1100}>
82
+ <DeliverySubscriptions {...base(async () => page(POPULATED))} />
83
+ </Example>
84
+ <Example title="Vide" maxWidth={1100}>
85
+ <DeliverySubscriptions {...base(async () => page([]))} />
86
+ </Example>
87
+ <Example title="En cours de chargement" maxWidth={1100}>
88
+ <DeliverySubscriptions {...base(() => new Promise(() => undefined))} />
89
+ </Example>
90
+ <Example title="Le chargement a échoué" maxWidth={1100}>
91
+ <DeliverySubscriptions
92
+ {...base(() => Promise.reject(new Error('Flow indisponible')))}
93
+ />
94
+ </Example>
95
+ <Example title="Lecture seule" maxWidth={1100}>
96
+ <DeliverySubscriptions
97
+ {...base(async () => page(POPULATED))}
98
+ permissions={{
99
+ canCreate: false,
100
+ canUpdate: false,
101
+ canDelete: false,
102
+ canResetSecret: false,
103
+ canReadHistory: true,
104
+ }}
105
+ />
106
+ </Example>
107
+ <LastEvent />
108
+ </Showcase>
109
+ );
110
+ };
@@ -0,0 +1,117 @@
1
+ import { ScheduledTasks } from '../../src/components/business/Deliveries/ScheduledTasks.component';
2
+ import type { ScheduledTasksProps } from '../../src/components/business/Deliveries/deliveries.types';
3
+ import {
4
+ page,
5
+ runStatus,
6
+ scheduledTask,
7
+ taskRun,
8
+ } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
9
+ import { Example, LastEvent, Showcase, useEventLog } from '../frame';
10
+
11
+ const PERMISSIONS = {
12
+ canCreate: true,
13
+ canUpdate: true,
14
+ canDelete: true,
15
+ canRegenerateSecret: true,
16
+ canTrigger: true,
17
+ };
18
+
19
+ const POPULATED = [
20
+ scheduledTask(),
21
+ scheduledTask({
22
+ id: 'task-2',
23
+ name: 'Rapport hebdomadaire',
24
+ schedule: '@weekly',
25
+ isEnabled: false,
26
+ lastRunAt: null,
27
+ }),
28
+ scheduledTask({
29
+ id: 'task-3',
30
+ name: 'Synchronisation des factures',
31
+ schedule: '*/15 * * * *',
32
+ consecutiveFailures: 4,
33
+ }),
34
+ ];
35
+
36
+ const RUNS = [
37
+ taskRun(),
38
+ taskRun({
39
+ id: 'run-2',
40
+ scheduledFor: new Date('2026-11-01T03:00:00Z'),
41
+ status: runStatus('FAILED'),
42
+ responseCode: 500,
43
+ durationMs: 1204,
44
+ }),
45
+ taskRun({
46
+ id: 'run-3',
47
+ scheduledFor: new Date('2026-10-31T03:00:00Z'),
48
+ status: runStatus('TIMED_OUT'),
49
+ responseCode: null,
50
+ durationMs: 30000,
51
+ }),
52
+ ];
53
+
54
+ export const ScheduledTasksPage = () => {
55
+ const { log } = useEventLog();
56
+ const base = (list: ScheduledTasksProps['list']): ScheduledTasksProps => ({
57
+ list,
58
+ create: async (body) => {
59
+ log(`créer ${body.name}`);
60
+ return {
61
+ scheduledTask: scheduledTask({ id: 'task-new', isEnabled: false }),
62
+ secret: 'cron_catalog_new_do-not-use',
63
+ };
64
+ },
65
+ update: async (id, body) => {
66
+ log(`modifier ${id}`);
67
+ return scheduledTask({ id, ...body });
68
+ },
69
+ remove: async (id) => log(`supprimer ${id}`),
70
+ regenerateSecret: async (id) => {
71
+ log(`secret ${id}`);
72
+ return {
73
+ scheduledTask: scheduledTask({ id }),
74
+ secret: 'cron_catalog_regenerated_do-not-use',
75
+ };
76
+ },
77
+ trigger: async (id) => log(`lancer ${id}`),
78
+ listRuns: async () => page(RUNS),
79
+ permissions: PERMISSIONS,
80
+ flowUrl: 'https://flow.abyss.example/scheduled-tasks',
81
+ });
82
+ return (
83
+ <Showcase
84
+ family="Métier"
85
+ name="ScheduledTasks"
86
+ description="Les tâches planifiées d'un périmètre : liste, création et édition en panneau, « lancer maintenant », secret affiché une seule fois et historique des exécutions."
87
+ >
88
+ <Example title="Peuplé" maxWidth={1100}>
89
+ <ScheduledTasks {...base(async () => page(POPULATED))} />
90
+ </Example>
91
+ <Example title="Vide" maxWidth={1100}>
92
+ <ScheduledTasks {...base(async () => page([]))} />
93
+ </Example>
94
+ <Example title="En cours de chargement" maxWidth={1100}>
95
+ <ScheduledTasks {...base(() => new Promise(() => undefined))} />
96
+ </Example>
97
+ <Example title="Le chargement a échoué" maxWidth={1100}>
98
+ <ScheduledTasks
99
+ {...base(() => Promise.reject(new Error('Flow indisponible')))}
100
+ />
101
+ </Example>
102
+ <Example title="Lecture seule" maxWidth={1100}>
103
+ <ScheduledTasks
104
+ {...base(async () => page(POPULATED))}
105
+ permissions={{
106
+ canCreate: false,
107
+ canUpdate: false,
108
+ canDelete: false,
109
+ canRegenerateSecret: false,
110
+ canTrigger: false,
111
+ }}
112
+ />
113
+ </Example>
114
+ <LastEvent />
115
+ </Showcase>
116
+ );
117
+ };
@@ -1,159 +1,165 @@
1
- import type { ComponentType } from 'react';
2
- import { AccordionPage } from './Accordion';
3
- import { AccountMenuPage } from './AccountMenu';
4
- import { ActionBarPage } from './ActionBar';
5
- import { AmbientBackgroundPage } from './AmbientBackground';
6
- import { AnchoredPanelPage } from './AnchoredPanel';
7
- import { AppShellPage } from './AppShell';
8
- import { AvatarPage } from './Avatar';
9
- import { BarChartPage } from './BarChart';
10
- import { BottomSheetPage } from './BottomSheet';
11
- import { BreadcrumbsPage } from './Breadcrumbs';
12
- import { CalloutPage } from './Callout';
13
- import { ChartThemePage } from './ChartTheme';
14
- import { CloudImportPage } from './CloudImport';
15
- import { ColorFieldPage } from './ColorField';
16
- import { CommandPalettePage } from './CommandPalette';
17
- import { ComboboxFieldPage } from './ComboboxField';
18
- import { ConfirmDialogPage } from './ConfirmDialog';
19
- import { ConfirmDialogWarningPage } from './ConfirmDialogWarning';
20
- import { ContextSelectorPage } from './ContextSelector';
21
- import { CopyFieldPage } from './CopyField';
22
- import { LineChartPage } from './LineChart';
23
- import { PaginationPage } from './Pagination';
24
- import { AvatarGroupPage } from './AvatarGroup';
25
- import { TeamAvatarPage } from './TeamAvatar';
26
- import { UserPickerPage } from './UserPicker';
27
- import { CompanySearchFieldPage } from './CompanySearchField';
28
- import { EntityImageFieldPage } from './EntityImageField';
29
- import { DataTablePage } from './DataTable';
30
- import { DateFieldPage } from './DateField';
31
- import { DateRangeFieldPage } from './DateRangeField';
32
- import { DrawerPage } from './Drawer';
33
- import { DropZonePage } from './DropZone';
34
- import { ExpressionSearchPage } from './ExpressionSearch';
35
- import { FacetPanelPage } from './FacetPanel';
36
- import { FilterBarPage } from './FilterBar';
37
- import { FormFieldPage } from './FormField';
38
- import { PasswordFieldPage } from './PasswordField';
39
- import { ErrorBoundaryPage } from './ErrorBoundary';
40
- import { CookieConsentPage } from './CookieConsent';
41
- import { ImportButtonPage } from './ImportButton';
42
- import { ImportFromCloudModalPage } from './ImportFromCloudModal';
43
- import { InfectedDownloadModalPage } from './InfectedDownloadModal';
44
- import { KeyValueListPage } from './KeyValueList';
45
- import { MarkdownEditorPage } from './MarkdownEditor';
46
- import { MenuPage } from './Menu';
47
- import { MethodBadgePage } from './MethodBadge';
48
- import { MobileShellPage } from './MobileShell';
49
- import { ModalPage } from './Modal';
50
- import { NotificationsMenuPage } from './NotificationsMenu';
51
- import { NumberFieldPage } from './NumberField';
52
- import { PageHeaderPage } from './PageHeader';
53
- import { PdfEditorPage } from './PdfEditor';
54
- import { PageStatePage } from './PageState';
55
- import { PreviewDrawerPage } from './PreviewDrawer';
56
- import { ProductTourPage } from './ProductTour';
57
- import { QRCodeModalPage } from './QRCodeModal';
58
- import { RichSelectPage } from './RichSelect';
59
- import { RoleBadgePage } from './RoleBadge';
60
- import { ScanBadgePage } from './ScanBadge';
61
- import { SceneDesktopPage } from './SceneDesktop';
62
- import { SceneMobilePage } from './SceneMobile';
63
- import { SectionPage } from './Section';
64
- import { SegmentedControlPage } from './SegmentedControl';
65
- import { SettingsRowPage } from './SettingsRow';
66
- import { SeverityBadgePage } from './SeverityBadge';
67
- import { SparklinePage } from './Sparkline';
68
- import { SplitViewPage } from './SplitView';
69
- import { StatTilePage } from './StatTile';
70
- import { StatusBadgePage } from './StatusBadge';
71
- import { SurfacePage } from './Surface';
72
- import { SwipeDeckPage } from './SwipeDeck';
73
- import { TabsPage } from './Tabs';
74
- import { ToastPage } from './Toast';
75
- import { ToolbarPage } from './Toolbar';
76
- import { ToolIconPage } from './ToolIcon';
77
- import { UsageMeterPage } from './UsageMeter';
78
- import { ValueMenuPage } from './ValueMenu';
79
-
80
- /** Every catalog page, by the `component` URL parameter (`catalog-entries.ts`). */
81
- export const CATALOG_PAGES: Record<string, ComponentType> = {
82
- Accordion: AccordionPage,
83
- AccountMenu: AccountMenuPage,
84
- ActionBar: ActionBarPage,
85
- AmbientBackground: AmbientBackgroundPage,
86
- AnchoredPanel: AnchoredPanelPage,
87
- AppShell: AppShellPage,
88
- Avatar: AvatarPage,
89
- BarChart: BarChartPage,
90
- BottomSheet: BottomSheetPage,
91
- Breadcrumbs: BreadcrumbsPage,
92
- Callout: CalloutPage,
93
- ChartTheme: ChartThemePage,
94
- CloudImport: CloudImportPage,
95
- ColorField: ColorFieldPage,
96
- CommandPalette: CommandPalettePage,
97
- ComboboxField: ComboboxFieldPage,
98
- ConfirmDialog: ConfirmDialogPage,
99
- ConfirmDialogWarning: ConfirmDialogWarningPage,
100
- ContextSelector: ContextSelectorPage,
101
- CopyField: CopyFieldPage,
102
- LineChart: LineChartPage,
103
- Pagination: PaginationPage,
104
- AvatarGroup: AvatarGroupPage,
105
- TeamAvatar: TeamAvatarPage,
106
- UserPicker: UserPickerPage,
107
- CompanySearchField: CompanySearchFieldPage,
108
- EntityImageField: EntityImageFieldPage,
109
- DataTable: DataTablePage,
110
- DateField: DateFieldPage,
111
- DateRangeField: DateRangeFieldPage,
112
- Drawer: DrawerPage,
113
- DropZone: DropZonePage,
114
- ExpressionSearch: ExpressionSearchPage,
115
- FacetPanel: FacetPanelPage,
116
- FilterBar: FilterBarPage,
117
- FormField: FormFieldPage,
118
- PasswordField: PasswordFieldPage,
119
- ErrorBoundary: ErrorBoundaryPage,
120
- CookieConsent: CookieConsentPage,
121
- ImportButton: ImportButtonPage,
122
- ImportFromCloudModal: ImportFromCloudModalPage,
123
- InfectedDownloadModal: InfectedDownloadModalPage,
124
- KeyValueList: KeyValueListPage,
125
- MarkdownEditor: MarkdownEditorPage,
126
- Menu: MenuPage,
127
- MethodBadge: MethodBadgePage,
128
- MobileShell: MobileShellPage,
129
- Modal: ModalPage,
130
- NotificationsMenu: NotificationsMenuPage,
131
- NumberField: NumberFieldPage,
132
- PageHeader: PageHeaderPage,
133
- PdfEditor: PdfEditorPage,
134
- PageState: PageStatePage,
135
- PreviewDrawer: PreviewDrawerPage,
136
- ProductTour: ProductTourPage,
137
- QRCodeModal: QRCodeModalPage,
138
- RichSelect: RichSelectPage,
139
- RoleBadge: RoleBadgePage,
140
- ScanBadge: ScanBadgePage,
141
- SceneDesktop: SceneDesktopPage,
142
- SceneMobile: SceneMobilePage,
143
- Section: SectionPage,
144
- SegmentedControl: SegmentedControlPage,
145
- SettingsRow: SettingsRowPage,
146
- SeverityBadge: SeverityBadgePage,
147
- Sparkline: SparklinePage,
148
- SplitView: SplitViewPage,
149
- StatTile: StatTilePage,
150
- StatusBadge: StatusBadgePage,
151
- Surface: SurfacePage,
152
- SwipeDeck: SwipeDeckPage,
153
- Tabs: TabsPage,
154
- Toast: ToastPage,
155
- Toolbar: ToolbarPage,
156
- ToolIcon: ToolIconPage,
157
- UsageMeter: UsageMeterPage,
158
- ValueMenu: ValueMenuPage,
159
- };
1
+ import type { ComponentType } from 'react';
2
+ import { AccordionPage } from './Accordion';
3
+ import { AccountMenuPage } from './AccountMenu';
4
+ import { ActionBarPage } from './ActionBar';
5
+ import { AmbientBackgroundPage } from './AmbientBackground';
6
+ import { AnchoredPanelPage } from './AnchoredPanel';
7
+ import { AppShellPage } from './AppShell';
8
+ import { AvatarPage } from './Avatar';
9
+ import { BarChartPage } from './BarChart';
10
+ import { BottomSheetPage } from './BottomSheet';
11
+ import { BreadcrumbsPage } from './Breadcrumbs';
12
+ import { CalloutPage } from './Callout';
13
+ import { ChartThemePage } from './ChartTheme';
14
+ import { CloudImportPage } from './CloudImport';
15
+ import { ColorFieldPage } from './ColorField';
16
+ import { CommandPalettePage } from './CommandPalette';
17
+ import { ComboboxFieldPage } from './ComboboxField';
18
+ import { DeliveryHistoryPage } from './DeliveryHistory';
19
+ import { DeliverySubscriptionsPage } from './DeliverySubscriptions';
20
+ import { ScheduledTasksPage } from './ScheduledTasks';
21
+ import { ConfirmDialogPage } from './ConfirmDialog';
22
+ import { ConfirmDialogWarningPage } from './ConfirmDialogWarning';
23
+ import { ContextSelectorPage } from './ContextSelector';
24
+ import { CopyFieldPage } from './CopyField';
25
+ import { LineChartPage } from './LineChart';
26
+ import { PaginationPage } from './Pagination';
27
+ import { AvatarGroupPage } from './AvatarGroup';
28
+ import { TeamAvatarPage } from './TeamAvatar';
29
+ import { UserPickerPage } from './UserPicker';
30
+ import { CompanySearchFieldPage } from './CompanySearchField';
31
+ import { EntityImageFieldPage } from './EntityImageField';
32
+ import { DataTablePage } from './DataTable';
33
+ import { DateFieldPage } from './DateField';
34
+ import { DateRangeFieldPage } from './DateRangeField';
35
+ import { DrawerPage } from './Drawer';
36
+ import { DropZonePage } from './DropZone';
37
+ import { ExpressionSearchPage } from './ExpressionSearch';
38
+ import { FacetPanelPage } from './FacetPanel';
39
+ import { FilterBarPage } from './FilterBar';
40
+ import { FormFieldPage } from './FormField';
41
+ import { PasswordFieldPage } from './PasswordField';
42
+ import { ErrorBoundaryPage } from './ErrorBoundary';
43
+ import { CookieConsentPage } from './CookieConsent';
44
+ import { ImportButtonPage } from './ImportButton';
45
+ import { ImportFromCloudModalPage } from './ImportFromCloudModal';
46
+ import { InfectedDownloadModalPage } from './InfectedDownloadModal';
47
+ import { KeyValueListPage } from './KeyValueList';
48
+ import { MarkdownEditorPage } from './MarkdownEditor';
49
+ import { MenuPage } from './Menu';
50
+ import { MethodBadgePage } from './MethodBadge';
51
+ import { MobileShellPage } from './MobileShell';
52
+ import { ModalPage } from './Modal';
53
+ import { NotificationsMenuPage } from './NotificationsMenu';
54
+ import { NumberFieldPage } from './NumberField';
55
+ import { PageHeaderPage } from './PageHeader';
56
+ import { PdfEditorPage } from './PdfEditor';
57
+ import { PageStatePage } from './PageState';
58
+ import { PreviewDrawerPage } from './PreviewDrawer';
59
+ import { ProductTourPage } from './ProductTour';
60
+ import { QRCodeModalPage } from './QRCodeModal';
61
+ import { RichSelectPage } from './RichSelect';
62
+ import { RoleBadgePage } from './RoleBadge';
63
+ import { ScanBadgePage } from './ScanBadge';
64
+ import { SceneDesktopPage } from './SceneDesktop';
65
+ import { SceneMobilePage } from './SceneMobile';
66
+ import { SectionPage } from './Section';
67
+ import { SegmentedControlPage } from './SegmentedControl';
68
+ import { SettingsRowPage } from './SettingsRow';
69
+ import { SeverityBadgePage } from './SeverityBadge';
70
+ import { SparklinePage } from './Sparkline';
71
+ import { SplitViewPage } from './SplitView';
72
+ import { StatTilePage } from './StatTile';
73
+ import { StatusBadgePage } from './StatusBadge';
74
+ import { SurfacePage } from './Surface';
75
+ import { SwipeDeckPage } from './SwipeDeck';
76
+ import { TabsPage } from './Tabs';
77
+ import { ToastPage } from './Toast';
78
+ import { ToolbarPage } from './Toolbar';
79
+ import { ToolIconPage } from './ToolIcon';
80
+ import { UsageMeterPage } from './UsageMeter';
81
+ import { ValueMenuPage } from './ValueMenu';
82
+
83
+ /** Every catalog page, by the `component` URL parameter (`catalog-entries.ts`). */
84
+ export const CATALOG_PAGES: Record<string, ComponentType> = {
85
+ Accordion: AccordionPage,
86
+ AccountMenu: AccountMenuPage,
87
+ ActionBar: ActionBarPage,
88
+ AmbientBackground: AmbientBackgroundPage,
89
+ AnchoredPanel: AnchoredPanelPage,
90
+ AppShell: AppShellPage,
91
+ Avatar: AvatarPage,
92
+ BarChart: BarChartPage,
93
+ BottomSheet: BottomSheetPage,
94
+ Breadcrumbs: BreadcrumbsPage,
95
+ Callout: CalloutPage,
96
+ ChartTheme: ChartThemePage,
97
+ CloudImport: CloudImportPage,
98
+ DeliveryHistory: DeliveryHistoryPage,
99
+ DeliverySubscriptions: DeliverySubscriptionsPage,
100
+ ScheduledTasks: ScheduledTasksPage,
101
+ ColorField: ColorFieldPage,
102
+ CommandPalette: CommandPalettePage,
103
+ ComboboxField: ComboboxFieldPage,
104
+ ConfirmDialog: ConfirmDialogPage,
105
+ ConfirmDialogWarning: ConfirmDialogWarningPage,
106
+ ContextSelector: ContextSelectorPage,
107
+ CopyField: CopyFieldPage,
108
+ LineChart: LineChartPage,
109
+ Pagination: PaginationPage,
110
+ AvatarGroup: AvatarGroupPage,
111
+ TeamAvatar: TeamAvatarPage,
112
+ UserPicker: UserPickerPage,
113
+ CompanySearchField: CompanySearchFieldPage,
114
+ EntityImageField: EntityImageFieldPage,
115
+ DataTable: DataTablePage,
116
+ DateField: DateFieldPage,
117
+ DateRangeField: DateRangeFieldPage,
118
+ Drawer: DrawerPage,
119
+ DropZone: DropZonePage,
120
+ ExpressionSearch: ExpressionSearchPage,
121
+ FacetPanel: FacetPanelPage,
122
+ FilterBar: FilterBarPage,
123
+ FormField: FormFieldPage,
124
+ PasswordField: PasswordFieldPage,
125
+ ErrorBoundary: ErrorBoundaryPage,
126
+ CookieConsent: CookieConsentPage,
127
+ ImportButton: ImportButtonPage,
128
+ ImportFromCloudModal: ImportFromCloudModalPage,
129
+ InfectedDownloadModal: InfectedDownloadModalPage,
130
+ KeyValueList: KeyValueListPage,
131
+ MarkdownEditor: MarkdownEditorPage,
132
+ Menu: MenuPage,
133
+ MethodBadge: MethodBadgePage,
134
+ MobileShell: MobileShellPage,
135
+ Modal: ModalPage,
136
+ NotificationsMenu: NotificationsMenuPage,
137
+ NumberField: NumberFieldPage,
138
+ PageHeader: PageHeaderPage,
139
+ PdfEditor: PdfEditorPage,
140
+ PageState: PageStatePage,
141
+ PreviewDrawer: PreviewDrawerPage,
142
+ ProductTour: ProductTourPage,
143
+ QRCodeModal: QRCodeModalPage,
144
+ RichSelect: RichSelectPage,
145
+ RoleBadge: RoleBadgePage,
146
+ ScanBadge: ScanBadgePage,
147
+ SceneDesktop: SceneDesktopPage,
148
+ SceneMobile: SceneMobilePage,
149
+ Section: SectionPage,
150
+ SegmentedControl: SegmentedControlPage,
151
+ SettingsRow: SettingsRowPage,
152
+ SeverityBadge: SeverityBadgePage,
153
+ Sparkline: SparklinePage,
154
+ SplitView: SplitViewPage,
155
+ StatTile: StatTilePage,
156
+ StatusBadge: StatusBadgePage,
157
+ Surface: SurfacePage,
158
+ SwipeDeck: SwipeDeckPage,
159
+ Tabs: TabsPage,
160
+ Toast: ToastPage,
161
+ Toolbar: ToolbarPage,
162
+ ToolIcon: ToolIconPage,
163
+ UsageMeter: UsageMeterPage,
164
+ ValueMenu: ValueMenuPage,
165
+ };