@abyss-project/commons-front-core 17.2.1 → 18.1.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 (66) hide show
  1. package/CHANGELOG.md +27 -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 +14 -1
  8. package/catalog/pages/DeliverySubscriptions.tsx +17 -0
  9. package/catalog/pages/index.ts +166 -165
  10. package/catalog/playwright.ci.config.ts +4 -3
  11. package/catalog/specs/cookie-consent-modal.spec.ts +187 -0
  12. package/dist/CookieConsentSettings-DUoKKRMZ.js +595 -0
  13. package/dist/{Surface-BDfRxVLj.js → Surface-z5TuQzlh.js} +38 -23
  14. package/dist/{Tabs-DEY2HEqj.js → Tabs-C4K0mLME.js} +613 -591
  15. package/dist/components/business/CookieConsent/AbyssCookieConsentProvider.d.ts +11 -3
  16. package/dist/components/business/CookieConsent/CookieConsentBanner.d.ts +4 -3
  17. package/dist/components/business/CookieConsent/CookieConsentPreferences.d.ts +12 -0
  18. package/dist/components/business/CookieConsent/index.d.ts +2 -0
  19. package/dist/components/business/CookieConsent/use-banner-portal.d.ts +36 -0
  20. package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +4 -3
  21. package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +3 -2
  22. package/dist/components/business/Deliveries/deliveries.logic.d.ts +11 -0
  23. package/dist/components/business/Deliveries/deliveries.types.d.ts +12 -4
  24. package/dist/components/inputs/NumberField/NumberField.d.ts +18 -2
  25. package/dist/components/layers/Toast/toast-clearance.d.ts +5 -0
  26. package/dist/components/structure/AccountMenu/AccountMenu.d.ts +2 -1
  27. package/dist/components/structure/AppShell/SpaceSwitcher.d.ts +4 -2
  28. package/dist/components/structure/AppShell/app-shell.types.d.ts +5 -1
  29. package/dist/components/structure/FilterBar/FilterBar.d.ts +7 -2
  30. package/dist/cookie-consent.js +26 -17
  31. package/dist/{design-theme-Bd0pEPei.js → design-theme-BFkCN7Nz.js} +1 -1
  32. package/dist/{editors-CtkDomwX.js → editors-Eb3PHnxn.js} +27 -27
  33. package/dist/editors.js +1 -1
  34. package/dist/hooks/use-cookie-consent.hook.spec.d.ts +1 -0
  35. package/dist/hooks/use-rich-intl.hook.d.ts +14 -2
  36. package/dist/{index-DtncSsmw.js → index-2lNOK7eK.js} +2 -2
  37. package/dist/{index-CqgMX8kF.js → index-B76nCWpd.js} +2 -2
  38. package/dist/{index-Cl3hwdsZ.js → index-BKRudpMw.js} +2 -2
  39. package/dist/{index-DtpGwH5a.js → index-BaL2x2GW.js} +3 -3
  40. package/dist/{index-CSdO6zlX.js → index-BcO-JFrs.js} +2 -2
  41. package/dist/{index-CEjiERmo.js → index-BlOP01yA.js} +2 -2
  42. package/dist/{index-IVjoNq-p.js → index-Bw4XnSa0.js} +2 -2
  43. package/dist/{index-DnQguWf1.js → index-CFDEfvCD.js} +1 -1
  44. package/dist/{index-FUuoLSZ0.js → index-CQ7z2zKY.js} +4 -4
  45. package/dist/{index-DcV2fWbx.js → index-CRFGogWn.js} +2 -2
  46. package/dist/{index-B9avfa3r.js → index-CUhMNEUo.js} +3 -3
  47. package/dist/{index-psJ1Q-lU.js → index-CWD0waD8.js} +2 -2
  48. package/dist/{index-DKsvuaEj.js → index-CYBvIQsH.js} +3 -3
  49. package/dist/{index-DFZlN4E3.js → index-Ckzcg8qD.js} +4 -4
  50. package/dist/{index-mUtvzoSi.js → index-Ckzmgx9X.js} +3 -3
  51. package/dist/{index-D0EF36wh.js → index-CrZZo4r1.js} +2 -2
  52. package/dist/{index-DZbCUZUp.js → index-CtVoDSIn.js} +2 -2
  53. package/dist/{index-SN7FZBya.js → index-CtkfWhK1.js} +2 -2
  54. package/dist/{index-DVBqUPxf.js → index-DRtBc440.js} +2 -2
  55. package/dist/{index-Ch8JqU5w.js → index-Dqm1dC1j.js} +2 -2
  56. package/dist/{index-BcXqvMY8.js → index-z5ZOXlY8.js} +4 -4
  57. package/dist/index.js +6073 -5920
  58. package/dist/legacy.js +1728 -1707
  59. package/dist/translations/en.d.ts +7 -1
  60. package/dist/translations/fr.d.ts +7 -1
  61. package/dist/utils/cookie-consent-contract.d.ts +55 -0
  62. package/dist/utils/cookie-consent-contract.spec.d.ts +1 -0
  63. package/dist/utils/cookie-storage.utils.d.ts +1 -8
  64. package/dist/utils/index.d.ts +1 -0
  65. package/package.json +5 -5
  66. package/dist/CookieConsentSettings-CtLrSfve.js +0 -505
@@ -20,7 +20,7 @@ import {
20
20
  import { AccountCard, SHELL_FOOTER, TopbarActions } from '../parts';
21
21
 
22
22
  /** The shell alone, with the Banking navigation and a saved filter named by one unbroken word. */
23
- export const AppShellPage = () => {
23
+ const AppShellDemo = ({ withSpace }: { withSpace: boolean }) => {
24
24
  const { log } = useEventLog();
25
25
  const [spaceId, setSpaceId] = useState(SPACES[0].id);
26
26
  const current = SPACES.find((space) => space.id === spaceId) ?? SPACES[0];
@@ -33,14 +33,18 @@ export const AppShellPage = () => {
33
33
  name: 'Banking',
34
34
  icon: <ToolIcon tool={ToolKind.Banking} size={24} />,
35
35
  }}
36
- space={{
37
- current,
38
- spaces: SPACES,
39
- onChange: (id) => {
40
- setSpaceId(id);
41
- log(`espace ${id}`);
42
- },
43
- }}
36
+ space={
37
+ withSpace
38
+ ? {
39
+ current,
40
+ spaces: SPACES,
41
+ onChange: (id) => {
42
+ setSpaceId(id);
43
+ log(`espace ${id}`);
44
+ },
45
+ }
46
+ : undefined
47
+ }
44
48
  nav={BANKING_NAV_WITH_LONG_LABEL}
45
49
  activeItemId="home"
46
50
  mainSpaceLink={{ href: '#abyss', label: 'Mon espace Abyss' }}
@@ -93,3 +97,8 @@ export const AppShellPage = () => {
93
97
  </AppShell>
94
98
  );
95
99
  };
100
+
101
+ export const AppShellPage = () => <AppShellDemo withSpace />;
102
+
103
+ /** The same shell without `space` (the back-office): the product mark, no selector. */
104
+ export const AppShellNoSpacePage = () => <AppShellDemo withSpace={false} />;
@@ -1,38 +1,61 @@
1
+ import { useState } from 'react';
2
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
1
3
  import Button from '@mui/material/Button';
2
- import { CookieConsentBanner } from '../../src/components/business/CookieConsent/CookieConsentBanner';
3
- import type { UseCookieConsent } from '../../src/hooks/use-cookie-consent.hook';
4
- import { Example, LastEvent, Showcase, useEventLog } from '../frame';
4
+ import { AbyssCookieConsentProvider } from '../../src/components/business/CookieConsent/AbyssCookieConsentProvider';
5
+ import { Drawer } from '../../src/components/layers/Drawer/Drawer';
6
+ import { Modal } from '../../src/components/layers/Modal/Modal';
7
+ import { clearCookie } from '../../src/utils/cookie-storage.utils';
8
+ import { CONSENT_VERSION } from '../../src/utils/cookie-consent-contract';
9
+ import { Example, Showcase } from '../frame';
5
10
 
6
- const yesNo = (value: boolean): string => (value ? 'oui' : 'non');
11
+ const queryClient = new QueryClient();
7
12
 
13
+ /** The real provider and banner, on the page: a visitor who has not chosen yet sees the banner. */
8
14
  export const CookieConsentPage = () => {
9
- const { log } = useEventLog();
10
- const api: UseCookieConsent = {
11
- consent: null,
12
- isResolved: true,
13
- acceptAll: () => log('tout accepter'),
14
- rejectAll: () => log('tout refuser'),
15
- save: (choices) =>
16
- log(
17
- `enregistrer · audience ${yesNo(choices.analytics)}, marketing ${yesNo(
18
- choices.marketing,
19
- )}`,
20
- ),
21
- reset: () => log('réinitialiser'),
22
- };
15
+ // A choice made in an earlier visit of the catalog would hide the banner this page shows.
16
+ useState(() => clearCookie({}));
17
+ const [wizardOpen, setWizardOpen] = useState(false);
18
+ const [drawerOpen, setDrawerOpen] = useState(false);
23
19
  return (
24
- <Showcase
25
- family="Métier"
26
- name="CookieConsent"
27
- description="Bandeau de consentement en bas à droite (pleine largeur sous 768 px) : accepter et refuser pèsent autant ; « Personnaliser » ouvre la fenêtre de réglages, et le bandeau s'efface tant qu'elle est ouverte."
28
- >
29
- <Example title="Bandeau et fenêtre de réglages">
30
- <Button variant="outlined" disabled>
31
- Le bandeau est posé sur la page
32
- </Button>
33
- </Example>
34
- <LastEvent />
35
- <CookieConsentBanner api={api} />
36
- </Showcase>
20
+ <QueryClientProvider client={queryClient}>
21
+ <AbyssCookieConsentProvider
22
+ consentVersion={CONSENT_VERSION}
23
+ isAuthenticated={false}
24
+ >
25
+ <Showcase
26
+ family="Métier"
27
+ name="CookieConsent"
28
+ description="Bandeau de consentement en bas à droite (pleine largeur sous 768 px) : accepter et refuser pèsent autant ; « Personnaliser » ouvre la fenêtre de réglages, et le bandeau s'efface tant qu'elle est ouverte. Quand une modale est ouverte, le bandeau la suit : il reste atteignable au clavier et par un lecteur d'écran, et la modale s'arrête au-dessus de lui."
29
+ >
30
+ <Example title="Bandeau, réglages et modale ouverte">
31
+ <Button variant="outlined" onClick={() => setWizardOpen(true)}>
32
+ Ouvrir l&apos;assistant
33
+ </Button>
34
+ <Button variant="outlined" onClick={() => setDrawerOpen(true)}>
35
+ Ouvrir l&apos;aperçu
36
+ </Button>
37
+ </Example>
38
+ </Showcase>
39
+ <Modal
40
+ open={wizardOpen}
41
+ onClose={() => setWizardOpen(false)}
42
+ title="Assistant de démarrage"
43
+ actions={
44
+ <Button variant="contained" onClick={() => setWizardOpen(false)}>
45
+ Suivant
46
+ </Button>
47
+ }
48
+ >
49
+ <p>Étape 1 sur 3</p>
50
+ </Modal>
51
+ <Drawer
52
+ open={drawerOpen}
53
+ onClose={() => setDrawerOpen(false)}
54
+ title="Aperçu"
55
+ >
56
+ <p>Contenu de l&apos;aperçu</p>
57
+ </Drawer>
58
+ </AbyssCookieConsentProvider>
59
+ </QueryClientProvider>
37
60
  );
38
61
  };
@@ -5,6 +5,7 @@ import {
5
5
  deliveryStatus,
6
6
  failedDelivery,
7
7
  page,
8
+ subscription,
8
9
  } from '../../src/components/business/Deliveries/test-support/deliveries.fixtures';
9
10
  import { Example, LastEvent, Showcase, useEventLog } from '../frame';
10
11
 
@@ -32,13 +33,18 @@ export const DeliveryHistoryPage = () => {
32
33
  get: async (id) => POPULATED.find((row) => row.id === id) ?? delivery(),
33
34
  replayDelivery: async (id) => log(`rejouer ${id}`),
34
35
  canReplay: true,
36
+ getSubscription: async () =>
37
+ subscription({
38
+ url: 'https://ops.example.com/webhooks/abyss/monitor-events/production',
39
+ eventTypes: ['MONITOR_EVENT', 'MONITOR_SENTINEL'],
40
+ }),
35
41
  flowUrl: 'https://flow.abyss.example/deliveries',
36
42
  });
37
43
  return (
38
44
  <Showcase
39
45
  family="Métier"
40
46
  name="DeliveryHistory"
41
- description="L'historique des livraisons : filtre de statut, détail en panneau (corps, en-têtes envoyés, réponse, déroulé) et rejeu d'une livraison terminée."
47
+ description="L'historique des livraisons d'un abonnement (URL et événements sous le titre) : filtre de statut, détail en panneau (données de l'événement, en-têtes envoyés, réponse, déroulé) et rejeu d'une livraison terminée."
42
48
  >
43
49
  <Example title="Peuplé" maxWidth={1100}>
44
50
  <DeliveryHistory {...base(async () => page(POPULATED))} />
@@ -54,6 +60,13 @@ export const DeliveryHistoryPage = () => {
54
60
  {...base(() => Promise.reject(new Error('Flow indisponible')))}
55
61
  />
56
62
  </Example>
63
+ <Example title="Sans abonnement ni lien vers Flow" maxWidth={1100}>
64
+ <DeliveryHistory
65
+ {...base(async () => page(POPULATED))}
66
+ getSubscription={undefined}
67
+ flowUrl={undefined}
68
+ />
69
+ </Example>
57
70
  <Example title="Sans droit de rejeu" maxWidth={1100}>
58
71
  <DeliveryHistory
59
72
  {...base(async () => page(POPULATED))}
@@ -81,6 +81,23 @@ export const DeliverySubscriptionsPage = () => {
81
81
  <Example title="Peuplé" maxWidth={1100}>
82
82
  <DeliverySubscriptions {...base(async () => page(POPULATED))} />
83
83
  </Example>
84
+ <Example title="Une seule source, sans lien vers Flow" maxWidth={1100}>
85
+ <DeliverySubscriptions
86
+ {...base(async () =>
87
+ page([
88
+ subscription({
89
+ url: 'https://ops.example.com/webhooks/abyss/monitor-events/production',
90
+ }),
91
+ subscription({
92
+ id: 'sub-4',
93
+ url: 'https://ops.example.com/webhooks/abyss/monitor-events/staging',
94
+ }),
95
+ ]),
96
+ )}
97
+ sources={[source('MONITOR')]}
98
+ flowUrl={undefined}
99
+ />
100
+ </Example>
84
101
  <Example title="Vide" maxWidth={1100}>
85
102
  <DeliverySubscriptions {...base(async () => page([]))} />
86
103
  </Example>
@@ -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