@abyss-project/commons-front-core 20.5.0 → 21.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.
- package/CHANGELOG.md +39 -0
- package/README.md +18 -0
- package/catalog/pages/CookieConsent.tsx +1 -1
- package/catalog/pages/DeliveryHistory.tsx +142 -142
- package/catalog/pages/MobileShell.tsx +75 -39
- package/catalog/pages/Tabs.tsx +24 -0
- package/catalog/specs/captures.spec.ts +156 -156
- package/catalog/specs/cookie-consent-modal.spec.ts +1 -1
- package/catalog/specs/mobile-shell.spec.ts +28 -0
- package/catalog/specs/write-capture-index.ts +82 -82
- package/dist/{CookieConsentSettings-BBfIxpPu.js → CookieConsentSettings-BzeQZ5tD.js} +223 -224
- package/dist/{Surface-D3XLL_3t.js → Surface-t4XKtudZ.js} +320 -715
- package/dist/Tabs-DXgqVX6V.js +5276 -0
- package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +14 -45
- package/dist/components/business/AbyssProjectLinkField/AbyssProjectLinkField.d.ts +48 -0
- package/dist/components/business/CookieConsent/containing-block.d.ts +1 -1
- package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +7 -2
- package/dist/components/business/Deliveries/deliveries.logic.d.ts +31 -0
- package/dist/components/business/Deliveries/deliveries.types.d.ts +24 -0
- package/dist/components/business/Deliveries/use-missed-run-count.hook.d.ts +8 -0
- package/dist/components/business/Deliveries/use-missed-runs.hook.d.ts +13 -0
- package/dist/components/business/Deliveries/use-previous-page-edge.hook.d.ts +22 -0
- package/dist/components/business/PendingInvitations/PendingInvitations.d.ts +28 -0
- package/dist/components/business/index.d.ts +2 -0
- package/dist/components/editors/PdfEditor/PdfEditor.d.ts +2 -2
- package/dist/components/editors/PdfEditor/pdf-colors.d.ts +2 -2
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +3 -3
- package/dist/components/inputs/date-localization.d.ts +3 -3
- package/dist/components/layers/Modal/Modal.d.ts +1 -1
- package/dist/components/meaning/Avatar/Avatar.d.ts +2 -0
- package/dist/components/mobile/ActionBar/ActionBar.d.ts +2 -1
- package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +8 -2
- package/dist/components/mobile/MobileShell/MobileShell.d.ts +2 -1
- package/dist/components/mobile/MobileShell/MobileShellActionBar.d.ts +7 -0
- package/dist/components/mobile/MobileShell/MobileShellPageFrame.d.ts +13 -0
- package/dist/components/mobile/index.d.ts +1 -0
- package/dist/components/mobile/mobile-layout.d.ts +8 -0
- package/dist/components/mobile/test-support/mobile-test-harness.d.ts +5 -0
- package/dist/components/structure/AppShell/AppShell.d.ts +2 -2
- package/dist/components/structure/test-support/structure-test-harness.d.ts +1 -3
- package/dist/cookie-consent.js +2 -2
- package/dist/demo/DemoBanner/DemoBanner.d.ts +1 -1
- package/dist/{editors-C9ezTyVX.js → editors-Dt29L0Ux.js} +4074 -4063
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +52 -438
- package/dist/hooks/use-scroll-overflow-cue.hook.d.ts +8 -2
- package/dist/{index-jXwg-vPK.js → index-3hRPEDk5.js} +4 -4
- package/dist/{index-PIhlmbry.js → index-BHKOZzg1.js} +1 -1
- package/dist/{index-C21JZxdV.js → index-BYWSBoej.js} +3 -3
- package/dist/{index-BmWT-YnY.js → index-BYWcX6y7.js} +2 -2
- package/dist/{index-CYPRhUy3.js → index-BaS25rA-.js} +2 -2
- package/dist/{index-DilASatl.js → index-BczDLUpv.js} +2 -2
- package/dist/{index-DTDA_bq_.js → index-Bh0e5MGQ.js} +2 -2
- package/dist/{index-CuHChI1V.js → index-C3iToWR_.js} +4 -4
- package/dist/{index-B1LrM7Gs.js → index-CNem7pV2.js} +2 -2
- package/dist/{index-DrEPqLmj.js → index-Cs5brR68.js} +3 -3
- package/dist/{index-av4SSfbk.js → index-D0E9e2bc.js} +2 -2
- package/dist/{index-D23exlxA.js → index-D2yo-g20.js} +4 -4
- package/dist/{index-owJAgGXX.js → index-DGizXlGr.js} +3 -3
- package/dist/{index-C1-1xoEz.js → index-DLZ2_Fhk.js} +3 -3
- package/dist/{index-BKCtYW42.js → index-DbBqHu3d.js} +2 -2
- package/dist/{index-DYlHW9pm.js → index-Deq0UIQ5.js} +2 -2
- package/dist/{index-DpLOnTAQ.js → index-Dg0a5ekJ.js} +2 -2
- package/dist/{index-1hcOcpTI.js → index-DvcQvaXv.js} +2 -2
- package/dist/{index-grnEwsvE.js → index-ETHoxvZf.js} +2 -2
- package/dist/{index-COZaHoYW.js → index-na4ea52T.js} +2 -2
- package/dist/{index-BRNbXIRg.js → index-vX7Ua1iM.js} +2 -2
- package/dist/index.js +47045 -19954
- package/dist/theme/design-media.d.ts +4 -4
- package/dist/theme/design-theme.d.ts +1 -5
- package/dist/theme/index.d.ts +0 -1
- package/dist/translations/en.d.ts +18 -219
- package/dist/translations/fr.d.ts +18 -219
- package/dist/utils/file.utils.d.ts +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/notification-target.utils.d.ts +49 -0
- package/package.json +8 -16
- package/vite.config.ts +6 -8
- package/dist/Tabs-B9vRDAXt.js +0 -1991
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/design-theme-enTIAR9e.js +0 -27703
- package/dist/index-C27b790L.js +0 -3304
- package/dist/legacy/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +0 -24
- package/dist/legacy/components/Avatars/OrganizationAvatar/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +0 -29
- package/dist/legacy/components/Avatars/ProjectAvatar/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/UserAvatar/UserAvatar.component.d.ts +0 -25
- package/dist/legacy/components/Avatars/UserAvatar/constant.d.ts +0 -8
- package/dist/legacy/components/Avatars/UserAvatar/index.d.ts +0 -3
- package/dist/legacy/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +0 -18
- package/dist/legacy/components/Avatars/UserAvatarList/index.d.ts +0 -2
- package/dist/legacy/components/Avatars/index.d.ts +0 -4
- package/dist/legacy/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +0 -30
- package/dist/legacy/components/Banking/AccountTransactions/index.d.ts +0 -2
- package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +0 -12
- package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/index.d.ts +0 -1
- package/dist/legacy/components/Banking/Inputs/index.d.ts +0 -1
- package/dist/legacy/components/Banking/index.d.ts +0 -1
- package/dist/legacy/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +0 -36
- package/dist/legacy/components/Cards/InternalProjectCard/index.d.ts +0 -2
- package/dist/legacy/components/Cards/ProjectCard/ProjectCard.component.d.ts +0 -28
- package/dist/legacy/components/Cards/ProjectCard/index.d.ts +0 -2
- package/dist/legacy/components/Cards/index.d.ts +0 -2
- package/dist/legacy/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +0 -21
- package/dist/legacy/components/Charts/AbyssBarChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +0 -14
- package/dist/legacy/components/Charts/AbyssCashFlowChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +0 -33
- package/dist/legacy/components/Charts/AbyssLineChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +0 -18
- package/dist/legacy/components/Charts/AbyssPieChart/index.d.ts +0 -1
- package/dist/legacy/components/Charts/index.d.ts +0 -4
- package/dist/legacy/components/Charts/useNivoTheme.d.ts +0 -65
- package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/LogTypeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +0 -7
- package/dist/legacy/components/Chips/ProjectStatusChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +0 -6
- package/dist/legacy/components/Chips/WebhookResponseCodeChip/index.d.ts +0 -1
- package/dist/legacy/components/Chips/index.d.ts +0 -4
- package/dist/legacy/components/CommandPalette/AbyssCommandPalette.d.ts +0 -12
- package/dist/legacy/components/CommandPalette/index.d.ts +0 -3
- package/dist/legacy/components/CommandPalette/types.d.ts +0 -104
- package/dist/legacy/components/CommandPalette/useCommandPaletteHotkey.d.ts +0 -10
- package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +0 -13
- package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts +0 -1
- package/dist/legacy/components/CompanySearchAutocomplete/index.d.ts +0 -2
- package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.d.ts +0 -70
- package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +0 -1
- package/dist/legacy/components/Data/AbyssTable/AbyssTableCards.component.d.ts +0 -25
- package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.d.ts +0 -147
- package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Data/AbyssTable/index.d.ts +0 -2
- package/dist/legacy/components/Data/index.d.ts +0 -1
- package/dist/legacy/components/InfoBox/InfoBox.component.d.ts +0 -6
- package/dist/legacy/components/InfoBox/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +0 -4
- package/dist/legacy/components/Inputs/AbyssDatePicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +0 -4
- package/dist/legacy/components/Inputs/AbyssDateTimePicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +0 -35
- package/dist/legacy/components/Inputs/AbyssNumberField/format.d.ts +0 -35
- package/dist/legacy/components/Inputs/AbyssNumberField/format.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssNumberField/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +0 -21
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/AbyssSelectOrganization/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/AbyssSelectProject/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.d.ts +0 -17
- package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.d.ts +0 -14
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +0 -18
- package/dist/legacy/components/Inputs/CloudImport/index.d.ts +0 -3
- package/dist/legacy/components/Inputs/ColorPalette/ColorPalette.component.d.ts +0 -23
- package/dist/legacy/components/Inputs/ColorPalette/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ColorPicker/ColorPicker.component.d.ts +0 -19
- package/dist/legacy/components/Inputs/ColorPicker/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ContextSelector/ContextSelector.component.d.ts +0 -68
- package/dist/legacy/components/Inputs/ContextSelector/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +0 -60
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -69
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +0 -15
- package/dist/legacy/components/Inputs/DatePeriodPicker/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/DropZone/DropZone.component.d.ts +0 -27
- package/dist/legacy/components/Inputs/DropZone/DropZone.component.spec.d.ts +0 -1
- package/dist/legacy/components/Inputs/DropZone/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +0 -22
- package/dist/legacy/components/Inputs/LanguageFlagLabel/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/LanguageFlagLabel/language-flags.d.ts +0 -12
- package/dist/legacy/components/Inputs/PasswordInput/PasswordInput.component.d.ts +0 -41
- package/dist/legacy/components/Inputs/PasswordInput/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -8
- package/dist/legacy/components/Inputs/ProjectCategoryBadge/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -39
- package/dist/legacy/components/Inputs/ProjectLinkSelector/index.d.ts +0 -2
- package/dist/legacy/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
- package/dist/legacy/components/Inputs/ProjectTagChip/index.d.ts +0 -1
- package/dist/legacy/components/Inputs/index.d.ts +0 -17
- package/dist/legacy/components/Invitations/AbyssPendingInvitations.component.d.ts +0 -18
- package/dist/legacy/components/Invitations/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +0 -11
- package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssBillingPlan/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +0 -13
- package/dist/legacy/components/Layouts/AbyssDashboardLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +0 -32
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssFamilyBanner/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +0 -14
- package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssHeader/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +0 -25
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +0 -27
- package/dist/legacy/components/Layouts/AbyssLayoutProvider/index.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssLoadingScreen/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +0 -8
- package/dist/legacy/components/Layouts/AbyssSearchBar/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +0 -35
- package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +0 -9
- package/dist/legacy/components/Layouts/AbyssSidebar/index.d.ts +0 -3
- package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +0 -8
- package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +0 -1
- package/dist/legacy/components/Layouts/AbyssThemeToggle/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +0 -19
- package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +0 -11
- package/dist/legacy/components/Layouts/DashboardLayout/index.d.ts +0 -2
- package/dist/legacy/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +0 -7
- package/dist/legacy/components/Layouts/LoadingLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/MainLayout/MainLayout.layout.d.ts +0 -9
- package/dist/legacy/components/Layouts/MainLayout/index.d.ts +0 -1
- package/dist/legacy/components/Layouts/index.d.ts +0 -12
- package/dist/legacy/components/Modals/AbyssModal/AbyssModal.component.d.ts +0 -18
- package/dist/legacy/components/Modals/AbyssModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/ConfirmModal/ConfirmModal.d.ts +0 -22
- package/dist/legacy/components/Modals/ConfirmModal/index.d.ts +0 -2
- package/dist/legacy/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +0 -15
- package/dist/legacy/components/Modals/ImportFromCloudModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +0 -12
- package/dist/legacy/components/Modals/QRCodeModal/index.d.ts +0 -1
- package/dist/legacy/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -12
- package/dist/legacy/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -38
- package/dist/legacy/components/Modals/UserSettingsModal/index.d.ts +0 -2
- package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +0 -1
- package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.links.spec.d.ts +0 -1
- package/dist/legacy/components/Modals/index.d.ts +0 -6
- package/dist/legacy/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +0 -53
- package/dist/legacy/components/QuotaGauge/bubble-placement.d.ts +0 -47
- package/dist/legacy/components/QuotaGauge/bubble-placement.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-highlight.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/gauge-segments.d.ts +0 -80
- package/dist/legacy/components/QuotaGauge/gauge-segments.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaGauge/index.d.ts +0 -6
- package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +0 -83
- package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaOffer/index.d.ts +0 -4
- package/dist/legacy/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +0 -1
- package/dist/legacy/components/QuotaReached/QuotaReachedDialog.component.d.ts +0 -15
- package/dist/legacy/components/QuotaReached/index.d.ts +0 -3
- package/dist/legacy/components/QuotaReached/quota-service-meta.d.ts +0 -31
- package/dist/legacy/components/Spotlight/InternalProjectCard/InternalProjectCard.component.d.ts +0 -15
- package/dist/legacy/components/Spotlight/InternalProjectCard/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +0 -20
- package/dist/legacy/components/Spotlight/ProjectCard/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -7
- package/dist/legacy/components/Spotlight/ProjectCategoryBadge/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -10
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +0 -2
- package/dist/legacy/components/Spotlight/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
- package/dist/legacy/components/Spotlight/ProjectTagChip/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/index.d.ts +0 -5
- package/dist/legacy/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +0 -12
- package/dist/legacy/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +0 -39
- package/dist/legacy/components/Utils/AbyssDrawer/index.d.ts +0 -2
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +0 -10
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +0 -11
- package/dist/legacy/components/Utils/AbyssErrorPage/index.d.ts +0 -3
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +0 -6
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssFamilyMenuSection/index.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +0 -11
- package/dist/legacy/components/Utils/AbyssHeaderTitle/index.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +0 -43
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +0 -15
- package/dist/legacy/components/Utils/AbyssLayoutMenu/index.d.ts +0 -3
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +0 -36
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +0 -30
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +0 -1
- package/dist/legacy/components/Utils/AbyssLayoutNotifications/index.d.ts +0 -4
- package/dist/legacy/components/Utils/ImportButton/ImportButton.component.d.ts +0 -19
- package/dist/legacy/components/Utils/ImportButton/index.d.ts +0 -2
- package/dist/legacy/components/Utils/WaterParticles/WaterParticles.component.d.ts +0 -14
- package/dist/legacy/components/Utils/WaterParticles/index.d.ts +0 -1
- package/dist/legacy/components/Utils/index.d.ts +0 -10
- package/dist/legacy/components/aria-labels-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/commons-labels-i18n.spec.d.ts +0 -1
- package/dist/legacy/components/index.d.ts +0 -18
- package/dist/legacy/components/theme-mode-colors.spec.d.ts +0 -1
- package/dist/legacy/fonts.css +0 -7
- package/dist/legacy/hooks/confirm-modal/confirm-modal.context.d.ts +0 -10
- package/dist/legacy/hooks/confirm-modal/index.d.ts +0 -1
- package/dist/legacy/hooks/index.d.ts +0 -1
- package/dist/legacy/index.d.ts +0 -4
- package/dist/legacy/legacy-editors-removed.spec.d.ts +0 -1
- package/dist/legacy/legacy-support-removed.spec.d.ts +0 -1
- package/dist/legacy/legacy-under-new-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/augmentation.d.ts +0 -84
- package/dist/legacy/theme/components/buttons.d.ts +0 -35
- package/dist/legacy/theme/components/data-display.d.ts +0 -4
- package/dist/legacy/theme/components/index.d.ts +0 -2
- package/dist/legacy/theme/components/inputs.d.ts +0 -4
- package/dist/legacy/theme/components/inputs.spec.d.ts +0 -1
- package/dist/legacy/theme/components/navigation.d.ts +0 -4
- package/dist/legacy/theme/components/surfaces.d.ts +0 -4
- package/dist/legacy/theme/core-breakpoints-under-legacy-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/create-theme.d.ts +0 -9
- package/dist/legacy/theme/create-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/disabled-contrast.spec.d.ts +0 -1
- package/dist/legacy/theme/index.d.ts +0 -23
- package/dist/legacy/theme/legacy-tokens.d.ts +0 -3
- package/dist/legacy/theme/new-components-under-legacy-theme.spec.d.ts +0 -1
- package/dist/legacy/theme/palettes/common.d.ts +0 -74
- package/dist/legacy/theme/palettes/dark.d.ts +0 -67
- package/dist/legacy/theme/palettes/light.d.ts +0 -67
- package/dist/legacy/theme/tokens/animations.d.ts +0 -33
- package/dist/legacy/theme/tokens/borders.d.ts +0 -14
- package/dist/legacy/theme/tokens/colors.d.ts +0 -129
- package/dist/legacy/theme/tokens/shadows.d.ts +0 -53
- package/dist/legacy/theme/tokens/transitions.d.ts +0 -25
- package/dist/legacy/theme/tokens/typography.d.ts +0 -99
- package/dist/legacy/utils/billing-colors.utils.d.ts +0 -7
- package/dist/legacy/utils/color.utils.d.ts +0 -11
- package/dist/legacy/utils/file.utils.d.ts +0 -2
- package/dist/legacy/utils/index.d.ts +0 -3
- package/dist/legacy.d.ts +0 -2
- package/dist/legacy.js +0 -16282
- package/dist/theme/DesignCssVariables.d.ts +0 -12
- package/dist/theme/DesignCssVariables.spec.d.ts +0 -1
- package/dist/utils/share-notification.utils.d.ts +0 -10
- /package/dist/{legacy/components/Cards/project-card-date.spec.d.ts → components/business/AbyssProjectLinkField/AbyssProjectLinkField.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts → components/business/PendingInvitations/PendingInvitations.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts → components/mobile/MobileShell/MobileShellActionBar.spec.d.ts} +0 -0
- /package/dist/{legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts → utils/notification-target.utils.spec.d.ts} +0 -0
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
2
|
-
import { expect, test } from '@playwright/test';
|
|
3
|
-
import type { Page } from '@playwright/test';
|
|
4
|
-
import { CAPTURES, CAPTURES_DIR, VIEWPORT_HEIGHT } from '../captures-plan';
|
|
5
|
-
import type { CaptureState } from '../captures-plan';
|
|
6
|
-
import { openCatalogPage, settle } from './catalog-page';
|
|
7
|
-
|
|
8
|
-
// Criterion 13: one PNG per component in light and dark at 1440 px, plus 390 px for the
|
|
9
|
-
// components that change form below 768 px, and the two composed scenes at 1440 and 390 px.
|
|
10
|
-
|
|
11
|
-
/** Opens the « Actions » menu of the first row of the page and picks the item named `item`. */
|
|
12
|
-
const chooseRowAction = async (
|
|
13
|
-
page: Page,
|
|
14
|
-
item: string | RegExp,
|
|
15
|
-
): Promise<void> => {
|
|
16
|
-
await page
|
|
17
|
-
.getByRole('button', { name: /^Actions de / })
|
|
18
|
-
.first()
|
|
19
|
-
.click();
|
|
20
|
-
await page.getByRole('menuitem', { name: item }).click();
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** How each state beyond arrival is reached, and what proves it is shown. */
|
|
24
|
-
const REACH: Record<
|
|
25
|
-
Exclude<CaptureState, 'arrival'>,
|
|
26
|
-
(page: Page) => Promise<void>
|
|
27
|
-
> = {
|
|
28
|
-
'sheet-open': async (page) => {
|
|
29
|
-
await page
|
|
30
|
-
.getByRole('button', { name: /avis-imposition-2026\.pdf/ })
|
|
31
|
-
.click();
|
|
32
|
-
await expect(
|
|
33
|
-
page.getByRole('dialog', { name: 'avis-imposition-2026.pdf' }),
|
|
34
|
-
).toBeVisible();
|
|
35
|
-
},
|
|
36
|
-
'list-open': async (page) => {
|
|
37
|
-
await page.getByRole('combobox').first().click();
|
|
38
|
-
await expect(page.getByRole('listbox')).toBeVisible();
|
|
39
|
-
},
|
|
40
|
-
'calendar-open': async (page) => {
|
|
41
|
-
await page
|
|
42
|
-
.getByRole('button', { name: /Choisir une date/ })
|
|
43
|
-
.first()
|
|
44
|
-
.click();
|
|
45
|
-
await expect(page.getByRole('dialog')).toBeVisible();
|
|
46
|
-
},
|
|
47
|
-
// The value of a list (six actions): the menu lists every action with its label.
|
|
48
|
-
'menu-open': async (page) => {
|
|
49
|
-
await page.getByRole('button', { name: /Actions sur requestId/ }).click();
|
|
50
|
-
const menu = page.getByRole('menu').or(page.getByRole('dialog'));
|
|
51
|
-
await expect(menu).toBeVisible();
|
|
52
|
-
await expect(menu.getByRole('menuitem')).toHaveCount(6);
|
|
53
|
-
},
|
|
54
|
-
// The delivery components: the first row's « Actions » menu, then the panel an action opens.
|
|
55
|
-
'form-open': async (page) => {
|
|
56
|
-
await page
|
|
57
|
-
.getByRole('button', { name: /^Nouvel(le)? (abonnement|tâche)$/ })
|
|
58
|
-
.first()
|
|
59
|
-
.click();
|
|
60
|
-
await expect(
|
|
61
|
-
page.getByRole('dialog', {
|
|
62
|
-
name: /^Nouvel abonnement$|^Nouvelle tâche planifiée$/,
|
|
63
|
-
}),
|
|
64
|
-
).toBeVisible();
|
|
65
|
-
},
|
|
66
|
-
'secret-shown': async (page) => {
|
|
67
|
-
await chooseRowAction(page, /Réinitialiser le secret|Régénérer le secret/);
|
|
68
|
-
await page
|
|
69
|
-
.getByRole('dialog')
|
|
70
|
-
.getByRole('button', { name: /^(Réinitialiser|Régénérer)$/ })
|
|
71
|
-
.click();
|
|
72
|
-
await expect(
|
|
73
|
-
page.getByText(/Ce secret n’est affiché qu’une seule fois/),
|
|
74
|
-
).toBeVisible();
|
|
75
|
-
},
|
|
76
|
-
'delete-confirm': async (page) => {
|
|
77
|
-
await chooseRowAction(page, 'Supprimer');
|
|
78
|
-
await expect(
|
|
79
|
-
page.getByRole('dialog', { name: /^Supprimer cet(te)? / }),
|
|
80
|
-
).toBeVisible();
|
|
81
|
-
},
|
|
82
|
-
'detail-open': async (page) => {
|
|
83
|
-
await chooseRowAction(page, 'Détail de la livraison');
|
|
84
|
-
await expect(
|
|
85
|
-
page.getByRole('dialog', { name: 'Détail de la livraison' }),
|
|
86
|
-
).toBeVisible();
|
|
87
|
-
await expect(page.getByText('x-abyss-delivery-id').first()).toBeVisible();
|
|
88
|
-
},
|
|
89
|
-
'runs-open': async (page) => {
|
|
90
|
-
await chooseRowAction(page, 'Exécutions');
|
|
91
|
-
await expect(
|
|
92
|
-
page.getByRole('dialog', { name: /^Exécutions de / }),
|
|
93
|
-
).toBeVisible();
|
|
94
|
-
await expect(page.getByText('Réussie').first()).toBeVisible();
|
|
95
|
-
},
|
|
96
|
-
// The detail of a run, in the panel of its task: the list gives way to it.
|
|
97
|
-
'run-detail-open': async (page) => {
|
|
98
|
-
await chooseRowAction(page, 'Exécutions');
|
|
99
|
-
const panel = page.getByRole('dialog', { name: /^Exécutions de / });
|
|
100
|
-
await panel
|
|
101
|
-
.getByRole('button', { name: /^Actions de / })
|
|
102
|
-
.first()
|
|
103
|
-
.click();
|
|
104
|
-
await page.getByRole('menuitem', { name: 'Détail de l’exécution' }).click();
|
|
105
|
-
await expect(panel.getByText('x-request-id')).toBeVisible();
|
|
106
|
-
},
|
|
107
|
-
// The cookie banner's settings: the banner leaves while the sheet is open.
|
|
108
|
-
'settings-open': async (page) => {
|
|
109
|
-
await page.getByRole('button', { name: 'Personnaliser' }).click();
|
|
110
|
-
await expect(
|
|
111
|
-
page.getByRole('dialog', { name: 'Personnaliser mes cookies' }),
|
|
112
|
-
).toBeVisible();
|
|
113
|
-
await expect(
|
|
114
|
-
page.getByRole('dialog', { name: 'Vos préférences de cookies' }),
|
|
115
|
-
).toHaveCount(0);
|
|
116
|
-
},
|
|
117
|
-
// The first top bar trigger of the page: the notifications bell or the account avatar.
|
|
118
|
-
'panel-open': async (page) => {
|
|
119
|
-
await page.locator('[aria-haspopup]').first().click();
|
|
120
|
-
await expect(
|
|
121
|
-
page.getByRole('dialog').or(page.getByRole('menu')),
|
|
122
|
-
).toBeVisible();
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
for (const capture of CAPTURES) {
|
|
127
|
-
test(`capture ${capture.file}`, async ({ page }) => {
|
|
128
|
-
await openCatalogPage(page, capture.entry.name, capture.theme, {
|
|
129
|
-
width: capture.width,
|
|
130
|
-
height: VIEWPORT_HEIGHT[capture.width],
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
if (capture.state !== 'arrival') {
|
|
134
|
-
await REACH[capture.state](page);
|
|
135
|
-
await settle(page);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// A taller window rather than `fullPage`: the sticky sidebar (`100vh`) then spans the whole
|
|
139
|
-
// page, as it does on screen while scrolling. A mobile frame (`100dvh`) is never taller.
|
|
140
|
-
const documentHeight = await page.evaluate(
|
|
141
|
-
() => document.documentElement.scrollHeight,
|
|
142
|
-
);
|
|
143
|
-
if (documentHeight > VIEWPORT_HEIGHT[capture.width]) {
|
|
144
|
-
await page.setViewportSize({
|
|
145
|
-
width: capture.width,
|
|
146
|
-
height: documentHeight,
|
|
147
|
-
});
|
|
148
|
-
await settle(page);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
await page.screenshot({
|
|
152
|
-
path: resolve(CAPTURES_DIR, capture.file),
|
|
153
|
-
animations: 'disabled',
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
}
|
|
1
|
+
import { resolve } from 'path';
|
|
2
|
+
import { expect, test } from '@playwright/test';
|
|
3
|
+
import type { Page } from '@playwright/test';
|
|
4
|
+
import { CAPTURES, CAPTURES_DIR, VIEWPORT_HEIGHT } from '../captures-plan';
|
|
5
|
+
import type { CaptureState } from '../captures-plan';
|
|
6
|
+
import { openCatalogPage, settle } from './catalog-page';
|
|
7
|
+
|
|
8
|
+
// Criterion 13: one PNG per component in light and dark at 1440 px, plus 390 px for the
|
|
9
|
+
// components that change form below 768 px, and the two composed scenes at 1440 and 390 px.
|
|
10
|
+
|
|
11
|
+
/** Opens the « Actions » menu of the first row of the page and picks the item named `item`. */
|
|
12
|
+
const chooseRowAction = async (
|
|
13
|
+
page: Page,
|
|
14
|
+
item: string | RegExp,
|
|
15
|
+
): Promise<void> => {
|
|
16
|
+
await page
|
|
17
|
+
.getByRole('button', { name: /^Actions de / })
|
|
18
|
+
.first()
|
|
19
|
+
.click();
|
|
20
|
+
await page.getByRole('menuitem', { name: item }).click();
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** How each state beyond arrival is reached, and what proves it is shown. */
|
|
24
|
+
const REACH: Record<
|
|
25
|
+
Exclude<CaptureState, 'arrival'>,
|
|
26
|
+
(page: Page) => Promise<void>
|
|
27
|
+
> = {
|
|
28
|
+
'sheet-open': async (page) => {
|
|
29
|
+
await page
|
|
30
|
+
.getByRole('button', { name: /avis-imposition-2026\.pdf/ })
|
|
31
|
+
.click();
|
|
32
|
+
await expect(
|
|
33
|
+
page.getByRole('dialog', { name: 'avis-imposition-2026.pdf' }),
|
|
34
|
+
).toBeVisible();
|
|
35
|
+
},
|
|
36
|
+
'list-open': async (page) => {
|
|
37
|
+
await page.getByRole('combobox').first().click();
|
|
38
|
+
await expect(page.getByRole('listbox')).toBeVisible();
|
|
39
|
+
},
|
|
40
|
+
'calendar-open': async (page) => {
|
|
41
|
+
await page
|
|
42
|
+
.getByRole('button', { name: /Choisir une date/ })
|
|
43
|
+
.first()
|
|
44
|
+
.click();
|
|
45
|
+
await expect(page.getByRole('dialog')).toBeVisible();
|
|
46
|
+
},
|
|
47
|
+
// The value of a list (six actions): the menu lists every action with its label.
|
|
48
|
+
'menu-open': async (page) => {
|
|
49
|
+
await page.getByRole('button', { name: /Actions sur requestId/ }).click();
|
|
50
|
+
const menu = page.getByRole('menu').or(page.getByRole('dialog'));
|
|
51
|
+
await expect(menu).toBeVisible();
|
|
52
|
+
await expect(menu.getByRole('menuitem')).toHaveCount(6);
|
|
53
|
+
},
|
|
54
|
+
// The delivery components: the first row's « Actions » menu, then the panel an action opens.
|
|
55
|
+
'form-open': async (page) => {
|
|
56
|
+
await page
|
|
57
|
+
.getByRole('button', { name: /^Nouvel(le)? (abonnement|tâche)$/ })
|
|
58
|
+
.first()
|
|
59
|
+
.click();
|
|
60
|
+
await expect(
|
|
61
|
+
page.getByRole('dialog', {
|
|
62
|
+
name: /^Nouvel abonnement$|^Nouvelle tâche planifiée$/,
|
|
63
|
+
}),
|
|
64
|
+
).toBeVisible();
|
|
65
|
+
},
|
|
66
|
+
'secret-shown': async (page) => {
|
|
67
|
+
await chooseRowAction(page, /Réinitialiser le secret|Régénérer le secret/);
|
|
68
|
+
await page
|
|
69
|
+
.getByRole('dialog')
|
|
70
|
+
.getByRole('button', { name: /^(Réinitialiser|Régénérer)$/ })
|
|
71
|
+
.click();
|
|
72
|
+
await expect(
|
|
73
|
+
page.getByText(/Ce secret n’est affiché qu’une seule fois/),
|
|
74
|
+
).toBeVisible();
|
|
75
|
+
},
|
|
76
|
+
'delete-confirm': async (page) => {
|
|
77
|
+
await chooseRowAction(page, 'Supprimer');
|
|
78
|
+
await expect(
|
|
79
|
+
page.getByRole('dialog', { name: /^Supprimer cet(te)? / }),
|
|
80
|
+
).toBeVisible();
|
|
81
|
+
},
|
|
82
|
+
'detail-open': async (page) => {
|
|
83
|
+
await chooseRowAction(page, 'Détail de la livraison');
|
|
84
|
+
await expect(
|
|
85
|
+
page.getByRole('dialog', { name: 'Détail de la livraison' }),
|
|
86
|
+
).toBeVisible();
|
|
87
|
+
await expect(page.getByText('x-abyss-delivery-id').first()).toBeVisible();
|
|
88
|
+
},
|
|
89
|
+
'runs-open': async (page) => {
|
|
90
|
+
await chooseRowAction(page, 'Exécutions');
|
|
91
|
+
await expect(
|
|
92
|
+
page.getByRole('dialog', { name: /^Exécutions de / }),
|
|
93
|
+
).toBeVisible();
|
|
94
|
+
await expect(page.getByText('Réussie').first()).toBeVisible();
|
|
95
|
+
},
|
|
96
|
+
// The detail of a run, in the panel of its task: the list gives way to it.
|
|
97
|
+
'run-detail-open': async (page) => {
|
|
98
|
+
await chooseRowAction(page, 'Exécutions');
|
|
99
|
+
const panel = page.getByRole('dialog', { name: /^Exécutions de / });
|
|
100
|
+
await panel
|
|
101
|
+
.getByRole('button', { name: /^Actions de / })
|
|
102
|
+
.first()
|
|
103
|
+
.click();
|
|
104
|
+
await page.getByRole('menuitem', { name: 'Détail de l’exécution' }).click();
|
|
105
|
+
await expect(panel.getByText('x-request-id')).toBeVisible();
|
|
106
|
+
},
|
|
107
|
+
// The cookie banner's settings: the banner leaves while the sheet is open.
|
|
108
|
+
'settings-open': async (page) => {
|
|
109
|
+
await page.getByRole('button', { name: 'Personnaliser' }).click();
|
|
110
|
+
await expect(
|
|
111
|
+
page.getByRole('dialog', { name: 'Personnaliser mes cookies' }),
|
|
112
|
+
).toBeVisible();
|
|
113
|
+
await expect(
|
|
114
|
+
page.getByRole('dialog', { name: 'Vos préférences de cookies' }),
|
|
115
|
+
).toHaveCount(0);
|
|
116
|
+
},
|
|
117
|
+
// The first top bar trigger of the page: the notifications bell or the account avatar.
|
|
118
|
+
'panel-open': async (page) => {
|
|
119
|
+
await page.locator('[aria-haspopup]').first().click();
|
|
120
|
+
await expect(
|
|
121
|
+
page.getByRole('dialog').or(page.getByRole('menu')),
|
|
122
|
+
).toBeVisible();
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
for (const capture of CAPTURES) {
|
|
127
|
+
test(`capture ${capture.file}`, async ({ page }) => {
|
|
128
|
+
await openCatalogPage(page, capture.entry.name, capture.theme, {
|
|
129
|
+
width: capture.width,
|
|
130
|
+
height: VIEWPORT_HEIGHT[capture.width],
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
if (capture.state !== 'arrival') {
|
|
134
|
+
await REACH[capture.state](page);
|
|
135
|
+
await settle(page);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// A taller window rather than `fullPage`: the sticky sidebar (`100vh`) then spans the whole
|
|
139
|
+
// page, as it does on screen while scrolling. A mobile frame (`100dvh`) is never taller.
|
|
140
|
+
const documentHeight = await page.evaluate(
|
|
141
|
+
() => document.documentElement.scrollHeight,
|
|
142
|
+
);
|
|
143
|
+
if (documentHeight > VIEWPORT_HEIGHT[capture.width]) {
|
|
144
|
+
await page.setViewportSize({
|
|
145
|
+
width: capture.width,
|
|
146
|
+
height: documentHeight,
|
|
147
|
+
});
|
|
148
|
+
await settle(page);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
await page.screenshot({
|
|
152
|
+
path: resolve(CAPTURES_DIR, capture.file),
|
|
153
|
+
animations: 'disabled',
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
@@ -97,7 +97,7 @@ for (const viewport of VIEWPORTS) {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
// The banner is `position: fixed`. A surface that carries `backdrop-filter` (
|
|
100
|
+
// The banner is `position: fixed`. A surface that carries `backdrop-filter` (a frosted-glass
|
|
101
101
|
// dialog paper), `filter`, `transform`... becomes the box that fixed element is laid out in: the
|
|
102
102
|
// banner then sticks to the bottom of the surface and covers « Suivant ». The catalog's own theme
|
|
103
103
|
// has none, so these dialogs carry the property by hand.
|
|
@@ -98,6 +98,34 @@ for (const theme of CATALOG_THEMES) {
|
|
|
98
98
|
expect(scrollWidth).toBeLessThanOrEqual(innerWidth);
|
|
99
99
|
});
|
|
100
100
|
|
|
101
|
+
test("a short page's action bar sits right on the tab bar, full width", async ({
|
|
102
|
+
page,
|
|
103
|
+
}) => {
|
|
104
|
+
const tabBar = page.getByRole('navigation', {
|
|
105
|
+
name: 'Navigation principale',
|
|
106
|
+
});
|
|
107
|
+
await tabBar.getByRole('button', { name: 'Événements' }).click();
|
|
108
|
+
const bar = page.getByRole('toolbar', { name: 'Actions' });
|
|
109
|
+
await expect(bar).toBeVisible();
|
|
110
|
+
await settle(page);
|
|
111
|
+
|
|
112
|
+
const barBox = await bar.boundingBox();
|
|
113
|
+
const tabBarBox = await tabBar.boundingBox();
|
|
114
|
+
if (barBox === null || tabBarBox === null) {
|
|
115
|
+
throw new Error('The action bar or the tab bar is not laid out.');
|
|
116
|
+
}
|
|
117
|
+
expect(Math.round(barBox.y + barBox.height)).toBe(
|
|
118
|
+
Math.round(tabBarBox.y),
|
|
119
|
+
);
|
|
120
|
+
expect(Math.round(barBox.x)).toBe(0);
|
|
121
|
+
expect(Math.round(barBox.width)).toBe(PHONE.width);
|
|
122
|
+
|
|
123
|
+
await bar.getByRole('button', { name: 'Créer un événement' }).click();
|
|
124
|
+
await expect(lastEvent(page)).toHaveText(
|
|
125
|
+
'Dernier appel : créer un événement',
|
|
126
|
+
);
|
|
127
|
+
});
|
|
128
|
+
|
|
101
129
|
test('a BottomSheet opens, stays under the drag threshold, and closes when dragged down', async ({
|
|
102
130
|
page,
|
|
103
131
|
}) => {
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
|
-
import { CAPTURES, CAPTURES_DIR } from '../captures-plan';
|
|
4
|
-
import type { Capture, CaptureState } from '../captures-plan';
|
|
5
|
-
import type { CatalogFamily } from '../catalog-entries';
|
|
6
|
-
|
|
7
|
-
// Global teardown of the catalog run: writes `index.md` next to the screenshots, from the capture
|
|
8
|
-
// plan, listing only the files present on disk.
|
|
9
|
-
|
|
10
|
-
const FAMILY_TITLES: Record<CatalogFamily, string> = {
|
|
11
|
-
scenes: 'Scènes composées (à regarder en premier)',
|
|
12
|
-
structure: 'Structure',
|
|
13
|
-
mobile: 'Mobile',
|
|
14
|
-
states: 'États',
|
|
15
|
-
data: 'Données',
|
|
16
|
-
meaning: 'Sens',
|
|
17
|
-
business: 'Métier',
|
|
18
|
-
layers: 'Couches',
|
|
19
|
-
navigation: 'Navigation',
|
|
20
|
-
inputs: 'Saisie',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const STATE_LABEL: Record<CaptureState, string> = {
|
|
24
|
-
arrival: '',
|
|
25
|
-
'sheet-open': ', feuille ouverte',
|
|
26
|
-
'list-open': ', liste ouverte',
|
|
27
|
-
'calendar-open': ', calendrier ouvert',
|
|
28
|
-
'panel-open': ', panneau ouvert',
|
|
29
|
-
'menu-open': ', menu ouvert',
|
|
30
|
-
'settings-open': ', réglages ouverts',
|
|
31
|
-
'form-open': ', formulaire ouvert',
|
|
32
|
-
'secret-shown': ', secret affiché une fois',
|
|
33
|
-
'delete-confirm': ', confirmation de suppression',
|
|
34
|
-
'detail-open': ', détail ouvert',
|
|
35
|
-
'runs-open': ', exécutions ouvertes',
|
|
36
|
-
'run-detail-open': ', détail d’une exécution ouvert',
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const describe = (capture: Capture): string =>
|
|
40
|
-
`${capture.theme === 'dark' ? 'sombre' : 'clair'}, ${capture.width} px${
|
|
41
|
-
STATE_LABEL[capture.state]
|
|
42
|
-
}`;
|
|
43
|
-
|
|
44
|
-
const writeCaptureIndex = (): void => {
|
|
45
|
-
mkdirSync(CAPTURES_DIR, { recursive: true });
|
|
46
|
-
const present = CAPTURES.filter((capture) =>
|
|
47
|
-
existsSync(resolve(CAPTURES_DIR, capture.file)),
|
|
48
|
-
);
|
|
49
|
-
const families = Object.keys(FAMILY_TITLES) as CatalogFamily[];
|
|
50
|
-
const sections = families
|
|
51
|
-
.map((family) => {
|
|
52
|
-
const lines = present
|
|
53
|
-
.filter((capture) => capture.entry.family === family)
|
|
54
|
-
.map(
|
|
55
|
-
(capture) =>
|
|
56
|
-
`- \`${capture.file}\` : ${capture.entry.name}, ${describe(
|
|
57
|
-
capture,
|
|
58
|
-
)}`,
|
|
59
|
-
);
|
|
60
|
-
return lines.length === 0
|
|
61
|
-
? ''
|
|
62
|
-
: `## ${FAMILY_TITLES[family]}\n\n${lines.join('\n')}\n`;
|
|
63
|
-
})
|
|
64
|
-
.filter((section) => section !== '');
|
|
65
|
-
const missing = CAPTURES.length - present.length;
|
|
66
|
-
const content = [
|
|
67
|
-
'# Captures du catalogue du core (#286)',
|
|
68
|
-
'',
|
|
69
|
-
'Produites par `pnpm --filter @abyss-project/commons-front-core catalog:test` (`catalog/specs/captures.spec.ts`).',
|
|
70
|
-
'Chaque composant en clair et en sombre à 1440 px ; à 390 px aussi ceux qui changent de forme sous 768 px ;',
|
|
71
|
-
'le shell et la scène bureau aussi à 768 px (rail d’icônes).',
|
|
72
|
-
'',
|
|
73
|
-
`${present.length} fichiers${
|
|
74
|
-
missing > 0 ? `, ${missing} manquants (lancement partiel)` : ''
|
|
75
|
-
}.`,
|
|
76
|
-
'',
|
|
77
|
-
...sections,
|
|
78
|
-
].join('\n');
|
|
79
|
-
writeFileSync(resolve(CAPTURES_DIR, 'index.md'), content);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export default writeCaptureIndex;
|
|
1
|
+
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
2
|
+
import { resolve } from 'path';
|
|
3
|
+
import { CAPTURES, CAPTURES_DIR } from '../captures-plan';
|
|
4
|
+
import type { Capture, CaptureState } from '../captures-plan';
|
|
5
|
+
import type { CatalogFamily } from '../catalog-entries';
|
|
6
|
+
|
|
7
|
+
// Global teardown of the catalog run: writes `index.md` next to the screenshots, from the capture
|
|
8
|
+
// plan, listing only the files present on disk.
|
|
9
|
+
|
|
10
|
+
const FAMILY_TITLES: Record<CatalogFamily, string> = {
|
|
11
|
+
scenes: 'Scènes composées (à regarder en premier)',
|
|
12
|
+
structure: 'Structure',
|
|
13
|
+
mobile: 'Mobile',
|
|
14
|
+
states: 'États',
|
|
15
|
+
data: 'Données',
|
|
16
|
+
meaning: 'Sens',
|
|
17
|
+
business: 'Métier',
|
|
18
|
+
layers: 'Couches',
|
|
19
|
+
navigation: 'Navigation',
|
|
20
|
+
inputs: 'Saisie',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const STATE_LABEL: Record<CaptureState, string> = {
|
|
24
|
+
arrival: '',
|
|
25
|
+
'sheet-open': ', feuille ouverte',
|
|
26
|
+
'list-open': ', liste ouverte',
|
|
27
|
+
'calendar-open': ', calendrier ouvert',
|
|
28
|
+
'panel-open': ', panneau ouvert',
|
|
29
|
+
'menu-open': ', menu ouvert',
|
|
30
|
+
'settings-open': ', réglages ouverts',
|
|
31
|
+
'form-open': ', formulaire ouvert',
|
|
32
|
+
'secret-shown': ', secret affiché une fois',
|
|
33
|
+
'delete-confirm': ', confirmation de suppression',
|
|
34
|
+
'detail-open': ', détail ouvert',
|
|
35
|
+
'runs-open': ', exécutions ouvertes',
|
|
36
|
+
'run-detail-open': ', détail d’une exécution ouvert',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const describe = (capture: Capture): string =>
|
|
40
|
+
`${capture.theme === 'dark' ? 'sombre' : 'clair'}, ${capture.width} px${
|
|
41
|
+
STATE_LABEL[capture.state]
|
|
42
|
+
}`;
|
|
43
|
+
|
|
44
|
+
const writeCaptureIndex = (): void => {
|
|
45
|
+
mkdirSync(CAPTURES_DIR, { recursive: true });
|
|
46
|
+
const present = CAPTURES.filter((capture) =>
|
|
47
|
+
existsSync(resolve(CAPTURES_DIR, capture.file)),
|
|
48
|
+
);
|
|
49
|
+
const families = Object.keys(FAMILY_TITLES) as CatalogFamily[];
|
|
50
|
+
const sections = families
|
|
51
|
+
.map((family) => {
|
|
52
|
+
const lines = present
|
|
53
|
+
.filter((capture) => capture.entry.family === family)
|
|
54
|
+
.map(
|
|
55
|
+
(capture) =>
|
|
56
|
+
`- \`${capture.file}\` : ${capture.entry.name}, ${describe(
|
|
57
|
+
capture,
|
|
58
|
+
)}`,
|
|
59
|
+
);
|
|
60
|
+
return lines.length === 0
|
|
61
|
+
? ''
|
|
62
|
+
: `## ${FAMILY_TITLES[family]}\n\n${lines.join('\n')}\n`;
|
|
63
|
+
})
|
|
64
|
+
.filter((section) => section !== '');
|
|
65
|
+
const missing = CAPTURES.length - present.length;
|
|
66
|
+
const content = [
|
|
67
|
+
'# Captures du catalogue du core (#286)',
|
|
68
|
+
'',
|
|
69
|
+
'Produites par `pnpm --filter @abyss-project/commons-front-core catalog:test` (`catalog/specs/captures.spec.ts`).',
|
|
70
|
+
'Chaque composant en clair et en sombre à 1440 px ; à 390 px aussi ceux qui changent de forme sous 768 px ;',
|
|
71
|
+
'le shell et la scène bureau aussi à 768 px (rail d’icônes).',
|
|
72
|
+
'',
|
|
73
|
+
`${present.length} fichiers${
|
|
74
|
+
missing > 0 ? `, ${missing} manquants (lancement partiel)` : ''
|
|
75
|
+
}.`,
|
|
76
|
+
'',
|
|
77
|
+
...sections,
|
|
78
|
+
].join('\n');
|
|
79
|
+
writeFileSync(resolve(CAPTURES_DIR, 'index.md'), content);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export default writeCaptureIndex;
|