@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.
- package/CHANGELOG.md +27 -0
- package/README.md +2 -1
- package/catalog/captures-plan.ts +120 -116
- package/catalog/catalog-entries.ts +149 -148
- package/catalog/pages/AppShell.tsx +18 -9
- package/catalog/pages/CookieConsent.tsx +54 -31
- package/catalog/pages/DeliveryHistory.tsx +14 -1
- package/catalog/pages/DeliverySubscriptions.tsx +17 -0
- package/catalog/pages/index.ts +166 -165
- package/catalog/playwright.ci.config.ts +4 -3
- package/catalog/specs/cookie-consent-modal.spec.ts +187 -0
- package/dist/CookieConsentSettings-DUoKKRMZ.js +595 -0
- package/dist/{Surface-BDfRxVLj.js → Surface-z5TuQzlh.js} +38 -23
- package/dist/{Tabs-DEY2HEqj.js → Tabs-C4K0mLME.js} +613 -591
- package/dist/components/business/CookieConsent/AbyssCookieConsentProvider.d.ts +11 -3
- package/dist/components/business/CookieConsent/CookieConsentBanner.d.ts +4 -3
- package/dist/components/business/CookieConsent/CookieConsentPreferences.d.ts +12 -0
- package/dist/components/business/CookieConsent/index.d.ts +2 -0
- package/dist/components/business/CookieConsent/use-banner-portal.d.ts +36 -0
- package/dist/components/business/Deliveries/DeliveryHistory.component.d.ts +4 -3
- package/dist/components/business/Deliveries/DeliverySubscriptionForm.d.ts +3 -2
- package/dist/components/business/Deliveries/deliveries.logic.d.ts +11 -0
- package/dist/components/business/Deliveries/deliveries.types.d.ts +12 -4
- package/dist/components/inputs/NumberField/NumberField.d.ts +18 -2
- package/dist/components/layers/Toast/toast-clearance.d.ts +5 -0
- package/dist/components/structure/AccountMenu/AccountMenu.d.ts +2 -1
- package/dist/components/structure/AppShell/SpaceSwitcher.d.ts +4 -2
- package/dist/components/structure/AppShell/app-shell.types.d.ts +5 -1
- package/dist/components/structure/FilterBar/FilterBar.d.ts +7 -2
- package/dist/cookie-consent.js +26 -17
- package/dist/{design-theme-Bd0pEPei.js → design-theme-BFkCN7Nz.js} +1 -1
- package/dist/{editors-CtkDomwX.js → editors-Eb3PHnxn.js} +27 -27
- package/dist/editors.js +1 -1
- package/dist/hooks/use-cookie-consent.hook.spec.d.ts +1 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +14 -2
- package/dist/{index-DtncSsmw.js → index-2lNOK7eK.js} +2 -2
- package/dist/{index-CqgMX8kF.js → index-B76nCWpd.js} +2 -2
- package/dist/{index-Cl3hwdsZ.js → index-BKRudpMw.js} +2 -2
- package/dist/{index-DtpGwH5a.js → index-BaL2x2GW.js} +3 -3
- package/dist/{index-CSdO6zlX.js → index-BcO-JFrs.js} +2 -2
- package/dist/{index-CEjiERmo.js → index-BlOP01yA.js} +2 -2
- package/dist/{index-IVjoNq-p.js → index-Bw4XnSa0.js} +2 -2
- package/dist/{index-DnQguWf1.js → index-CFDEfvCD.js} +1 -1
- package/dist/{index-FUuoLSZ0.js → index-CQ7z2zKY.js} +4 -4
- package/dist/{index-DcV2fWbx.js → index-CRFGogWn.js} +2 -2
- package/dist/{index-B9avfa3r.js → index-CUhMNEUo.js} +3 -3
- package/dist/{index-psJ1Q-lU.js → index-CWD0waD8.js} +2 -2
- package/dist/{index-DKsvuaEj.js → index-CYBvIQsH.js} +3 -3
- package/dist/{index-DFZlN4E3.js → index-Ckzcg8qD.js} +4 -4
- package/dist/{index-mUtvzoSi.js → index-Ckzmgx9X.js} +3 -3
- package/dist/{index-D0EF36wh.js → index-CrZZo4r1.js} +2 -2
- package/dist/{index-DZbCUZUp.js → index-CtVoDSIn.js} +2 -2
- package/dist/{index-SN7FZBya.js → index-CtkfWhK1.js} +2 -2
- package/dist/{index-DVBqUPxf.js → index-DRtBc440.js} +2 -2
- package/dist/{index-Ch8JqU5w.js → index-Dqm1dC1j.js} +2 -2
- package/dist/{index-BcXqvMY8.js → index-z5ZOXlY8.js} +4 -4
- package/dist/index.js +6073 -5920
- package/dist/legacy.js +1728 -1707
- package/dist/translations/en.d.ts +7 -1
- package/dist/translations/fr.d.ts +7 -1
- package/dist/utils/cookie-consent-contract.d.ts +55 -0
- package/dist/utils/cookie-consent-contract.spec.d.ts +1 -0
- package/dist/utils/cookie-storage.utils.d.ts +1 -8
- package/dist/utils/index.d.ts +1 -0
- package/package.json +5 -5
- 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
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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 {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
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
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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'assistant
|
|
33
|
+
</Button>
|
|
34
|
+
<Button variant="outlined" onClick={() => setDrawerOpen(true)}>
|
|
35
|
+
Ouvrir l'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'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 (
|
|
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>
|
package/catalog/pages/index.ts
CHANGED
|
@@ -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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
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
|
|