@abyss-project/commons-front-core 17.2.1 → 18.0.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 (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -1
  3. package/catalog/captures-plan.ts +120 -116
  4. package/catalog/catalog-entries.ts +149 -148
  5. package/catalog/pages/AppShell.tsx +18 -9
  6. package/catalog/pages/CookieConsent.tsx +54 -31
  7. package/catalog/pages/DeliveryHistory.tsx +66 -66
  8. package/catalog/pages/DeliverySubscriptions.tsx +110 -110
  9. package/catalog/pages/ScheduledTasks.tsx +117 -117
  10. package/catalog/pages/index.ts +166 -165
  11. package/catalog/playwright.ci.config.ts +4 -3
  12. package/catalog/specs/captures.spec.ts +145 -145
  13. package/catalog/specs/cookie-consent-modal.spec.ts +187 -0
  14. package/catalog/specs/write-capture-index.ts +81 -81
  15. package/dist/CookieConsentSettings-B7HIIzyI.js +595 -0
  16. package/dist/{Surface-BDfRxVLj.js → Surface-dziv23sf.js} +56 -51
  17. package/dist/{Tabs-DEY2HEqj.js → Tabs-_onUZBA-.js} +613 -591
  18. package/dist/components/business/CookieConsent/AbyssCookieConsentProvider.d.ts +11 -3
  19. package/dist/components/business/CookieConsent/CookieConsentBanner.d.ts +4 -3
  20. package/dist/components/business/CookieConsent/CookieConsentPreferences.d.ts +12 -0
  21. package/dist/components/business/CookieConsent/index.d.ts +2 -0
  22. package/dist/components/business/CookieConsent/use-banner-portal.d.ts +36 -0
  23. package/dist/components/inputs/NumberField/NumberField.d.ts +18 -2
  24. package/dist/components/layers/Toast/toast-clearance.d.ts +5 -0
  25. package/dist/components/structure/AccountMenu/AccountMenu.d.ts +2 -1
  26. package/dist/components/structure/AppShell/SpaceSwitcher.d.ts +4 -2
  27. package/dist/components/structure/AppShell/app-shell.types.d.ts +5 -1
  28. package/dist/components/structure/FilterBar/FilterBar.d.ts +7 -2
  29. package/dist/cookie-consent.js +26 -17
  30. package/dist/{design-theme-Bd0pEPei.js → design-theme-B3C3z1gE.js} +1 -1
  31. package/dist/{editors-CtkDomwX.js → editors-BhQlONOy.js} +27 -27
  32. package/dist/editors.js +1 -1
  33. package/dist/hooks/use-cookie-consent.hook.spec.d.ts +1 -0
  34. package/dist/hooks/use-rich-intl.hook.d.ts +2 -0
  35. package/dist/{index-DKsvuaEj.js → index-B6LMTOKG.js} +3 -3
  36. package/dist/{index-B9avfa3r.js → index-B6w5_TeJ.js} +3 -3
  37. package/dist/{index-Ch8JqU5w.js → index-BBF-FvT6.js} +2 -2
  38. package/dist/{index-CqgMX8kF.js → index-BGAZK8Vk.js} +2 -2
  39. package/dist/{index-DnQguWf1.js → index-BGJobvxw.js} +1 -1
  40. package/dist/{index-SN7FZBya.js → index-BTDlbjWW.js} +2 -2
  41. package/dist/{index-Cl3hwdsZ.js → index-BcjlG5TB.js} +2 -2
  42. package/dist/{index-CSdO6zlX.js → index-BeMiREqf.js} +2 -2
  43. package/dist/{index-psJ1Q-lU.js → index-ByN6DcaL.js} +2 -2
  44. package/dist/{index-DtpGwH5a.js → index-CJI1dJrw.js} +3 -3
  45. package/dist/{index-CEjiERmo.js → index-D1mQgWN3.js} +2 -2
  46. package/dist/{index-BcXqvMY8.js → index-DLlWMDxB.js} +4 -4
  47. package/dist/{index-DFZlN4E3.js → index-DNd8NZnu.js} +4 -4
  48. package/dist/{index-mUtvzoSi.js → index-Dakpr4C1.js} +3 -3
  49. package/dist/{index-D0EF36wh.js → index-DkZAsKob.js} +2 -2
  50. package/dist/{index-FUuoLSZ0.js → index-DprTO7yi.js} +4 -4
  51. package/dist/{index-DZbCUZUp.js → index-N4BwXTyk.js} +2 -2
  52. package/dist/{index-IVjoNq-p.js → index-V4F4Sk7y.js} +2 -2
  53. package/dist/{index-DcV2fWbx.js → index-y-TnfE6Z.js} +2 -2
  54. package/dist/{index-DtncSsmw.js → index-yFJTDKIX.js} +2 -2
  55. package/dist/{index-DVBqUPxf.js → index-ytgNPz5f.js} +2 -2
  56. package/dist/index.js +3480 -3417
  57. package/dist/legacy.js +1728 -1707
  58. package/dist/translations/en.d.ts +1 -0
  59. package/dist/translations/fr.d.ts +1 -0
  60. package/dist/utils/cookie-consent-contract.d.ts +55 -0
  61. package/dist/utils/cookie-consent-contract.spec.d.ts +1 -0
  62. package/dist/utils/cookie-storage.utils.d.ts +1 -8
  63. package/dist/utils/index.d.ts +1 -0
  64. package/package.json +1 -1
  65. package/dist/CookieConsentSettings-CtLrSfve.js +0 -505
@@ -1,117 +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
+ 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,165 +1,166 @@
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
- };
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 { AppShellNoSpacePage, 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
+ AppShellNoSpace: AppShellNoSpacePage,
92
+ Avatar: AvatarPage,
93
+ BarChart: BarChartPage,
94
+ BottomSheet: BottomSheetPage,
95
+ Breadcrumbs: BreadcrumbsPage,
96
+ Callout: CalloutPage,
97
+ ChartTheme: ChartThemePage,
98
+ CloudImport: CloudImportPage,
99
+ DeliveryHistory: DeliveryHistoryPage,
100
+ DeliverySubscriptions: DeliverySubscriptionsPage,
101
+ ScheduledTasks: ScheduledTasksPage,
102
+ ColorField: ColorFieldPage,
103
+ CommandPalette: CommandPalettePage,
104
+ ComboboxField: ComboboxFieldPage,
105
+ ConfirmDialog: ConfirmDialogPage,
106
+ ConfirmDialogWarning: ConfirmDialogWarningPage,
107
+ ContextSelector: ContextSelectorPage,
108
+ CopyField: CopyFieldPage,
109
+ LineChart: LineChartPage,
110
+ Pagination: PaginationPage,
111
+ AvatarGroup: AvatarGroupPage,
112
+ TeamAvatar: TeamAvatarPage,
113
+ UserPicker: UserPickerPage,
114
+ CompanySearchField: CompanySearchFieldPage,
115
+ EntityImageField: EntityImageFieldPage,
116
+ DataTable: DataTablePage,
117
+ DateField: DateFieldPage,
118
+ DateRangeField: DateRangeFieldPage,
119
+ Drawer: DrawerPage,
120
+ DropZone: DropZonePage,
121
+ ExpressionSearch: ExpressionSearchPage,
122
+ FacetPanel: FacetPanelPage,
123
+ FilterBar: FilterBarPage,
124
+ FormField: FormFieldPage,
125
+ PasswordField: PasswordFieldPage,
126
+ ErrorBoundary: ErrorBoundaryPage,
127
+ CookieConsent: CookieConsentPage,
128
+ ImportButton: ImportButtonPage,
129
+ ImportFromCloudModal: ImportFromCloudModalPage,
130
+ InfectedDownloadModal: InfectedDownloadModalPage,
131
+ KeyValueList: KeyValueListPage,
132
+ MarkdownEditor: MarkdownEditorPage,
133
+ Menu: MenuPage,
134
+ MethodBadge: MethodBadgePage,
135
+ MobileShell: MobileShellPage,
136
+ Modal: ModalPage,
137
+ NotificationsMenu: NotificationsMenuPage,
138
+ NumberField: NumberFieldPage,
139
+ PageHeader: PageHeaderPage,
140
+ PdfEditor: PdfEditorPage,
141
+ PageState: PageStatePage,
142
+ PreviewDrawer: PreviewDrawerPage,
143
+ ProductTour: ProductTourPage,
144
+ QRCodeModal: QRCodeModalPage,
145
+ RichSelect: RichSelectPage,
146
+ RoleBadge: RoleBadgePage,
147
+ ScanBadge: ScanBadgePage,
148
+ SceneDesktop: SceneDesktopPage,
149
+ SceneMobile: SceneMobilePage,
150
+ Section: SectionPage,
151
+ SegmentedControl: SegmentedControlPage,
152
+ SettingsRow: SettingsRowPage,
153
+ SeverityBadge: SeverityBadgePage,
154
+ Sparkline: SparklinePage,
155
+ SplitView: SplitViewPage,
156
+ StatTile: StatTilePage,
157
+ StatusBadge: StatusBadgePage,
158
+ Surface: SurfacePage,
159
+ SwipeDeck: SwipeDeckPage,
160
+ Tabs: TabsPage,
161
+ Toast: ToastPage,
162
+ Toolbar: ToolbarPage,
163
+ ToolIcon: ToolIconPage,
164
+ UsageMeter: UsageMeterPage,
165
+ ValueMenu: ValueMenuPage,
166
+ };
@@ -7,9 +7,10 @@ import { catalogPort } from './catalog-port';
7
7
  // CI run of the catalog checks (`catalog:test:ci`, job `front-core-catalog`): the built catalog
8
8
  // (`catalog-dist/`, built by the script just before) served by `vite preview`, instead of the dev
9
9
  // server, which transforms every module on demand and makes a shared runner miss its timeouts.
10
- // Only the specs that carry criteria 15 and 16 run (responsive, mobile-shell): the captures are a
11
- // human review, produced locally by `catalog:test`, so neither their spec nor the teardown that
12
- // indexes them runs here.
10
+ // Every spec runs but the captures: responsive and mobile-shell (criteria 15 and 16), the specs of
11
+ // one component (expression-search-scroll, preview-drawer-trail) and cookie-consent-modal (#747).
12
+ // The captures are a human review, produced locally by `catalog:test`, so neither their spec nor the
13
+ // teardown that indexes them runs here.
13
14
  const port = catalogPort();
14
15
  const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
15
16