@abyss-project/commons-front-core 20.5.1 → 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.
Files changed (337) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +18 -0
  3. package/catalog/pages/CookieConsent.tsx +1 -1
  4. package/catalog/pages/MobileShell.tsx +75 -39
  5. package/catalog/pages/Tabs.tsx +24 -0
  6. package/catalog/specs/cookie-consent-modal.spec.ts +1 -1
  7. package/catalog/specs/mobile-shell.spec.ts +28 -0
  8. package/dist/{CookieConsentSettings-BGIHx7eH.js → CookieConsentSettings-BzeQZ5tD.js} +223 -224
  9. package/dist/{Surface-B74cXq1M.js → Surface-t4XKtudZ.js} +319 -714
  10. package/dist/Tabs-DXgqVX6V.js +5276 -0
  11. package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +14 -45
  12. package/dist/components/business/AbyssProjectLinkField/AbyssProjectLinkField.d.ts +48 -0
  13. package/dist/components/business/CookieConsent/containing-block.d.ts +1 -1
  14. package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +7 -2
  15. package/dist/components/business/Deliveries/deliveries.logic.d.ts +31 -0
  16. package/dist/components/business/Deliveries/deliveries.types.d.ts +24 -0
  17. package/dist/components/business/Deliveries/use-missed-run-count.hook.d.ts +8 -0
  18. package/dist/components/business/Deliveries/use-missed-runs.hook.d.ts +13 -0
  19. package/dist/components/business/Deliveries/use-previous-page-edge.hook.d.ts +22 -0
  20. package/dist/components/business/PendingInvitations/PendingInvitations.d.ts +28 -0
  21. package/dist/components/business/index.d.ts +2 -0
  22. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +2 -2
  23. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +2 -2
  24. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +3 -3
  25. package/dist/components/inputs/date-localization.d.ts +3 -3
  26. package/dist/components/layers/Modal/Modal.d.ts +1 -1
  27. package/dist/components/meaning/Avatar/Avatar.d.ts +2 -0
  28. package/dist/components/mobile/ActionBar/ActionBar.d.ts +2 -1
  29. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +8 -2
  30. package/dist/components/mobile/MobileShell/MobileShell.d.ts +2 -1
  31. package/dist/components/mobile/MobileShell/MobileShellActionBar.d.ts +7 -0
  32. package/dist/components/mobile/MobileShell/MobileShellPageFrame.d.ts +13 -0
  33. package/dist/components/mobile/index.d.ts +1 -0
  34. package/dist/components/mobile/mobile-layout.d.ts +8 -0
  35. package/dist/components/mobile/test-support/mobile-test-harness.d.ts +5 -0
  36. package/dist/components/structure/AppShell/AppShell.d.ts +2 -2
  37. package/dist/components/structure/test-support/structure-test-harness.d.ts +1 -3
  38. package/dist/cookie-consent.js +2 -2
  39. package/dist/demo/DemoBanner/DemoBanner.d.ts +1 -1
  40. package/dist/{editors-s-GER37R.js → editors-Dt29L0Ux.js} +4074 -4063
  41. package/dist/editors.js +1 -1
  42. package/dist/hooks/use-rich-intl.hook.d.ts +52 -454
  43. package/dist/hooks/use-scroll-overflow-cue.hook.d.ts +8 -2
  44. package/dist/{index-DoWxAfPn.js → index-3hRPEDk5.js} +4 -4
  45. package/dist/{index-DctO0l5q.js → index-BHKOZzg1.js} +1 -1
  46. package/dist/{index-NX_Kd4oz.js → index-BYWSBoej.js} +3 -3
  47. package/dist/{index-genxamHw.js → index-BYWcX6y7.js} +2 -2
  48. package/dist/{index-Dka20zad.js → index-BaS25rA-.js} +2 -2
  49. package/dist/{index-BZgkwoZ5.js → index-BczDLUpv.js} +2 -2
  50. package/dist/{index-BxlF9T05.js → index-Bh0e5MGQ.js} +2 -2
  51. package/dist/{index-CO6rjqWZ.js → index-C3iToWR_.js} +4 -4
  52. package/dist/{index-B635dFQ2.js → index-CNem7pV2.js} +2 -2
  53. package/dist/{index-B_fqzhtm.js → index-Cs5brR68.js} +3 -3
  54. package/dist/{index-D9IW7UEw.js → index-D0E9e2bc.js} +2 -2
  55. package/dist/{index-CXEf_Hel.js → index-D2yo-g20.js} +4 -4
  56. package/dist/{index-1n03jgsr.js → index-DGizXlGr.js} +3 -3
  57. package/dist/{index-CE-4v9ue.js → index-DLZ2_Fhk.js} +3 -3
  58. package/dist/{index-CVN6HOlq.js → index-DbBqHu3d.js} +2 -2
  59. package/dist/{index-B-oGxRVH.js → index-Deq0UIQ5.js} +2 -2
  60. package/dist/{index-8L4OftHM.js → index-Dg0a5ekJ.js} +2 -2
  61. package/dist/{index-yqn8Hbay.js → index-DvcQvaXv.js} +2 -2
  62. package/dist/{index-YkgGwyfx.js → index-ETHoxvZf.js} +2 -2
  63. package/dist/{index-D4kZ3Yip.js → index-na4ea52T.js} +2 -2
  64. package/dist/{index-Bn9RgQrP.js → index-vX7Ua1iM.js} +2 -2
  65. package/dist/index.js +47045 -19954
  66. package/dist/theme/design-media.d.ts +4 -4
  67. package/dist/theme/design-theme.d.ts +1 -5
  68. package/dist/theme/index.d.ts +0 -1
  69. package/dist/translations/en.d.ts +18 -219
  70. package/dist/translations/fr.d.ts +18 -219
  71. package/dist/utils/file.utils.d.ts +2 -2
  72. package/dist/utils/index.d.ts +1 -1
  73. package/dist/utils/notification-target.utils.d.ts +49 -0
  74. package/package.json +8 -16
  75. package/test-results/catalog/.last-run.json +4 -0
  76. package/vite.config.ts +6 -8
  77. package/dist/Tabs-nH2IBqqa.js +0 -1991
  78. package/dist/clsx-OuTLNxxd.js +0 -16
  79. package/dist/design-theme-DtU1zQos.js +0 -27703
  80. package/dist/index-C27b790L.js +0 -3304
  81. package/dist/legacy/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +0 -24
  82. package/dist/legacy/components/Avatars/OrganizationAvatar/index.d.ts +0 -2
  83. package/dist/legacy/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +0 -29
  84. package/dist/legacy/components/Avatars/ProjectAvatar/index.d.ts +0 -2
  85. package/dist/legacy/components/Avatars/UserAvatar/UserAvatar.component.d.ts +0 -25
  86. package/dist/legacy/components/Avatars/UserAvatar/constant.d.ts +0 -8
  87. package/dist/legacy/components/Avatars/UserAvatar/index.d.ts +0 -3
  88. package/dist/legacy/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +0 -18
  89. package/dist/legacy/components/Avatars/UserAvatarList/index.d.ts +0 -2
  90. package/dist/legacy/components/Avatars/index.d.ts +0 -4
  91. package/dist/legacy/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +0 -30
  92. package/dist/legacy/components/Banking/AccountTransactions/index.d.ts +0 -2
  93. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +0 -12
  94. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/index.d.ts +0 -1
  95. package/dist/legacy/components/Banking/Inputs/index.d.ts +0 -1
  96. package/dist/legacy/components/Banking/index.d.ts +0 -1
  97. package/dist/legacy/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +0 -36
  98. package/dist/legacy/components/Cards/InternalProjectCard/index.d.ts +0 -2
  99. package/dist/legacy/components/Cards/ProjectCard/ProjectCard.component.d.ts +0 -28
  100. package/dist/legacy/components/Cards/ProjectCard/index.d.ts +0 -2
  101. package/dist/legacy/components/Cards/index.d.ts +0 -2
  102. package/dist/legacy/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +0 -21
  103. package/dist/legacy/components/Charts/AbyssBarChart/index.d.ts +0 -1
  104. package/dist/legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +0 -14
  105. package/dist/legacy/components/Charts/AbyssCashFlowChart/index.d.ts +0 -1
  106. package/dist/legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +0 -33
  107. package/dist/legacy/components/Charts/AbyssLineChart/index.d.ts +0 -1
  108. package/dist/legacy/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +0 -18
  109. package/dist/legacy/components/Charts/AbyssPieChart/index.d.ts +0 -1
  110. package/dist/legacy/components/Charts/index.d.ts +0 -4
  111. package/dist/legacy/components/Charts/useNivoTheme.d.ts +0 -65
  112. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +0 -7
  113. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/index.d.ts +0 -1
  114. package/dist/legacy/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +0 -7
  115. package/dist/legacy/components/Chips/LogTypeChip/index.d.ts +0 -1
  116. package/dist/legacy/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +0 -7
  117. package/dist/legacy/components/Chips/ProjectStatusChip/index.d.ts +0 -1
  118. package/dist/legacy/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +0 -6
  119. package/dist/legacy/components/Chips/WebhookResponseCodeChip/index.d.ts +0 -1
  120. package/dist/legacy/components/Chips/index.d.ts +0 -4
  121. package/dist/legacy/components/CommandPalette/AbyssCommandPalette.d.ts +0 -12
  122. package/dist/legacy/components/CommandPalette/index.d.ts +0 -3
  123. package/dist/legacy/components/CommandPalette/types.d.ts +0 -104
  124. package/dist/legacy/components/CommandPalette/useCommandPaletteHotkey.d.ts +0 -10
  125. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +0 -13
  126. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts +0 -1
  127. package/dist/legacy/components/CompanySearchAutocomplete/index.d.ts +0 -2
  128. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.d.ts +0 -70
  129. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +0 -1
  130. package/dist/legacy/components/Data/AbyssTable/AbyssTableCards.component.d.ts +0 -25
  131. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.d.ts +0 -147
  132. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.spec.d.ts +0 -1
  133. package/dist/legacy/components/Data/AbyssTable/index.d.ts +0 -2
  134. package/dist/legacy/components/Data/index.d.ts +0 -1
  135. package/dist/legacy/components/InfoBox/InfoBox.component.d.ts +0 -6
  136. package/dist/legacy/components/InfoBox/index.d.ts +0 -1
  137. package/dist/legacy/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +0 -4
  138. package/dist/legacy/components/Inputs/AbyssDatePicker/index.d.ts +0 -1
  139. package/dist/legacy/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +0 -4
  140. package/dist/legacy/components/Inputs/AbyssDateTimePicker/index.d.ts +0 -1
  141. package/dist/legacy/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +0 -35
  142. package/dist/legacy/components/Inputs/AbyssNumberField/format.d.ts +0 -35
  143. package/dist/legacy/components/Inputs/AbyssNumberField/format.spec.d.ts +0 -1
  144. package/dist/legacy/components/Inputs/AbyssNumberField/index.d.ts +0 -2
  145. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +0 -21
  146. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/index.d.ts +0 -2
  147. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +0 -1
  148. package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +0 -18
  149. package/dist/legacy/components/Inputs/AbyssSelectOrganization/index.d.ts +0 -2
  150. package/dist/legacy/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +0 -18
  151. package/dist/legacy/components/Inputs/AbyssSelectProject/index.d.ts +0 -2
  152. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.d.ts +0 -17
  153. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.spec.d.ts +0 -1
  154. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.d.ts +0 -14
  155. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.spec.d.ts +0 -1
  156. package/dist/legacy/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +0 -18
  157. package/dist/legacy/components/Inputs/CloudImport/index.d.ts +0 -3
  158. package/dist/legacy/components/Inputs/ColorPalette/ColorPalette.component.d.ts +0 -23
  159. package/dist/legacy/components/Inputs/ColorPalette/index.d.ts +0 -1
  160. package/dist/legacy/components/Inputs/ColorPicker/ColorPicker.component.d.ts +0 -19
  161. package/dist/legacy/components/Inputs/ColorPicker/index.d.ts +0 -1
  162. package/dist/legacy/components/Inputs/ContextSelector/ContextSelector.component.d.ts +0 -68
  163. package/dist/legacy/components/Inputs/ContextSelector/index.d.ts +0 -2
  164. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +0 -60
  165. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +0 -1
  166. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +0 -1
  167. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +0 -1
  168. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -69
  169. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +0 -1
  170. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +0 -1
  171. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +0 -15
  172. package/dist/legacy/components/Inputs/DatePeriodPicker/index.d.ts +0 -2
  173. package/dist/legacy/components/Inputs/DropZone/DropZone.component.d.ts +0 -27
  174. package/dist/legacy/components/Inputs/DropZone/DropZone.component.spec.d.ts +0 -1
  175. package/dist/legacy/components/Inputs/DropZone/index.d.ts +0 -1
  176. package/dist/legacy/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +0 -22
  177. package/dist/legacy/components/Inputs/LanguageFlagLabel/index.d.ts +0 -2
  178. package/dist/legacy/components/Inputs/LanguageFlagLabel/language-flags.d.ts +0 -12
  179. package/dist/legacy/components/Inputs/PasswordInput/PasswordInput.component.d.ts +0 -41
  180. package/dist/legacy/components/Inputs/PasswordInput/index.d.ts +0 -1
  181. package/dist/legacy/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -8
  182. package/dist/legacy/components/Inputs/ProjectCategoryBadge/index.d.ts +0 -1
  183. package/dist/legacy/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -39
  184. package/dist/legacy/components/Inputs/ProjectLinkSelector/index.d.ts +0 -2
  185. package/dist/legacy/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  186. package/dist/legacy/components/Inputs/ProjectTagChip/index.d.ts +0 -1
  187. package/dist/legacy/components/Inputs/index.d.ts +0 -17
  188. package/dist/legacy/components/Invitations/AbyssPendingInvitations.component.d.ts +0 -18
  189. package/dist/legacy/components/Invitations/index.d.ts +0 -2
  190. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +0 -11
  191. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +0 -1
  192. package/dist/legacy/components/Layouts/AbyssBillingPlan/index.d.ts +0 -1
  193. package/dist/legacy/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +0 -13
  194. package/dist/legacy/components/Layouts/AbyssDashboardLayout/index.d.ts +0 -1
  195. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +0 -32
  196. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +0 -1
  197. package/dist/legacy/components/Layouts/AbyssFamilyBanner/index.d.ts +0 -2
  198. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +0 -14
  199. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.spec.d.ts +0 -1
  200. package/dist/legacy/components/Layouts/AbyssHeader/index.d.ts +0 -1
  201. package/dist/legacy/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +0 -25
  202. package/dist/legacy/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +0 -27
  203. package/dist/legacy/components/Layouts/AbyssLayoutProvider/index.d.ts +0 -3
  204. package/dist/legacy/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +0 -3
  205. package/dist/legacy/components/Layouts/AbyssLoadingScreen/index.d.ts +0 -1
  206. package/dist/legacy/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +0 -8
  207. package/dist/legacy/components/Layouts/AbyssSearchBar/index.d.ts +0 -1
  208. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +0 -35
  209. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +0 -9
  210. package/dist/legacy/components/Layouts/AbyssSidebar/index.d.ts +0 -3
  211. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +0 -8
  212. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +0 -1
  213. package/dist/legacy/components/Layouts/AbyssThemeToggle/index.d.ts +0 -1
  214. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +0 -19
  215. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +0 -11
  216. package/dist/legacy/components/Layouts/DashboardLayout/index.d.ts +0 -2
  217. package/dist/legacy/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +0 -7
  218. package/dist/legacy/components/Layouts/LoadingLayout/index.d.ts +0 -1
  219. package/dist/legacy/components/Layouts/MainLayout/MainLayout.layout.d.ts +0 -9
  220. package/dist/legacy/components/Layouts/MainLayout/index.d.ts +0 -1
  221. package/dist/legacy/components/Layouts/index.d.ts +0 -12
  222. package/dist/legacy/components/Modals/AbyssModal/AbyssModal.component.d.ts +0 -18
  223. package/dist/legacy/components/Modals/AbyssModal/index.d.ts +0 -1
  224. package/dist/legacy/components/Modals/ConfirmModal/ConfirmModal.d.ts +0 -22
  225. package/dist/legacy/components/Modals/ConfirmModal/index.d.ts +0 -2
  226. package/dist/legacy/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +0 -15
  227. package/dist/legacy/components/Modals/ImportFromCloudModal/index.d.ts +0 -1
  228. package/dist/legacy/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +0 -12
  229. package/dist/legacy/components/Modals/QRCodeModal/index.d.ts +0 -1
  230. package/dist/legacy/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -12
  231. package/dist/legacy/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -38
  232. package/dist/legacy/components/Modals/UserSettingsModal/index.d.ts +0 -2
  233. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +0 -1
  234. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.links.spec.d.ts +0 -1
  235. package/dist/legacy/components/Modals/index.d.ts +0 -6
  236. package/dist/legacy/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +0 -53
  237. package/dist/legacy/components/QuotaGauge/bubble-placement.d.ts +0 -47
  238. package/dist/legacy/components/QuotaGauge/bubble-placement.spec.d.ts +0 -1
  239. package/dist/legacy/components/QuotaGauge/gauge-highlight.spec.d.ts +0 -1
  240. package/dist/legacy/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +0 -1
  241. package/dist/legacy/components/QuotaGauge/gauge-segments.d.ts +0 -80
  242. package/dist/legacy/components/QuotaGauge/gauge-segments.spec.d.ts +0 -1
  243. package/dist/legacy/components/QuotaGauge/index.d.ts +0 -6
  244. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +0 -83
  245. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +0 -1
  246. package/dist/legacy/components/QuotaOffer/index.d.ts +0 -4
  247. package/dist/legacy/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +0 -1
  248. package/dist/legacy/components/QuotaReached/QuotaReachedDialog.component.d.ts +0 -15
  249. package/dist/legacy/components/QuotaReached/index.d.ts +0 -3
  250. package/dist/legacy/components/QuotaReached/quota-service-meta.d.ts +0 -31
  251. package/dist/legacy/components/Spotlight/InternalProjectCard/InternalProjectCard.component.d.ts +0 -15
  252. package/dist/legacy/components/Spotlight/InternalProjectCard/index.d.ts +0 -1
  253. package/dist/legacy/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +0 -20
  254. package/dist/legacy/components/Spotlight/ProjectCard/index.d.ts +0 -1
  255. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -7
  256. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/index.d.ts +0 -1
  257. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -10
  258. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +0 -1
  259. package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +0 -2
  260. package/dist/legacy/components/Spotlight/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  261. package/dist/legacy/components/Spotlight/ProjectTagChip/index.d.ts +0 -1
  262. package/dist/legacy/components/Spotlight/index.d.ts +0 -5
  263. package/dist/legacy/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +0 -12
  264. package/dist/legacy/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +0 -39
  265. package/dist/legacy/components/Utils/AbyssDrawer/index.d.ts +0 -2
  266. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +0 -10
  267. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.spec.d.ts +0 -1
  268. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +0 -11
  269. package/dist/legacy/components/Utils/AbyssErrorPage/index.d.ts +0 -3
  270. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +0 -6
  271. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +0 -1
  272. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/index.d.ts +0 -1
  273. package/dist/legacy/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +0 -11
  274. package/dist/legacy/components/Utils/AbyssHeaderTitle/index.d.ts +0 -1
  275. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +0 -43
  276. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +0 -1
  277. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +0 -15
  278. package/dist/legacy/components/Utils/AbyssLayoutMenu/index.d.ts +0 -3
  279. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +0 -36
  280. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.spec.d.ts +0 -1
  281. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +0 -30
  282. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +0 -1
  283. package/dist/legacy/components/Utils/AbyssLayoutNotifications/index.d.ts +0 -4
  284. package/dist/legacy/components/Utils/ImportButton/ImportButton.component.d.ts +0 -19
  285. package/dist/legacy/components/Utils/ImportButton/index.d.ts +0 -2
  286. package/dist/legacy/components/Utils/WaterParticles/WaterParticles.component.d.ts +0 -14
  287. package/dist/legacy/components/Utils/WaterParticles/index.d.ts +0 -1
  288. package/dist/legacy/components/Utils/index.d.ts +0 -10
  289. package/dist/legacy/components/aria-labels-i18n.spec.d.ts +0 -1
  290. package/dist/legacy/components/commons-labels-i18n.spec.d.ts +0 -1
  291. package/dist/legacy/components/index.d.ts +0 -18
  292. package/dist/legacy/components/theme-mode-colors.spec.d.ts +0 -1
  293. package/dist/legacy/fonts.css +0 -7
  294. package/dist/legacy/hooks/confirm-modal/confirm-modal.context.d.ts +0 -10
  295. package/dist/legacy/hooks/confirm-modal/index.d.ts +0 -1
  296. package/dist/legacy/hooks/index.d.ts +0 -1
  297. package/dist/legacy/index.d.ts +0 -4
  298. package/dist/legacy/legacy-editors-removed.spec.d.ts +0 -1
  299. package/dist/legacy/legacy-support-removed.spec.d.ts +0 -1
  300. package/dist/legacy/legacy-under-new-theme.spec.d.ts +0 -1
  301. package/dist/legacy/theme/augmentation.d.ts +0 -84
  302. package/dist/legacy/theme/components/buttons.d.ts +0 -35
  303. package/dist/legacy/theme/components/data-display.d.ts +0 -4
  304. package/dist/legacy/theme/components/index.d.ts +0 -2
  305. package/dist/legacy/theme/components/inputs.d.ts +0 -4
  306. package/dist/legacy/theme/components/inputs.spec.d.ts +0 -1
  307. package/dist/legacy/theme/components/navigation.d.ts +0 -4
  308. package/dist/legacy/theme/components/surfaces.d.ts +0 -4
  309. package/dist/legacy/theme/core-breakpoints-under-legacy-theme.spec.d.ts +0 -1
  310. package/dist/legacy/theme/create-theme.d.ts +0 -9
  311. package/dist/legacy/theme/create-theme.spec.d.ts +0 -1
  312. package/dist/legacy/theme/disabled-contrast.spec.d.ts +0 -1
  313. package/dist/legacy/theme/index.d.ts +0 -23
  314. package/dist/legacy/theme/legacy-tokens.d.ts +0 -3
  315. package/dist/legacy/theme/new-components-under-legacy-theme.spec.d.ts +0 -1
  316. package/dist/legacy/theme/palettes/common.d.ts +0 -74
  317. package/dist/legacy/theme/palettes/dark.d.ts +0 -67
  318. package/dist/legacy/theme/palettes/light.d.ts +0 -67
  319. package/dist/legacy/theme/tokens/animations.d.ts +0 -33
  320. package/dist/legacy/theme/tokens/borders.d.ts +0 -14
  321. package/dist/legacy/theme/tokens/colors.d.ts +0 -129
  322. package/dist/legacy/theme/tokens/shadows.d.ts +0 -53
  323. package/dist/legacy/theme/tokens/transitions.d.ts +0 -25
  324. package/dist/legacy/theme/tokens/typography.d.ts +0 -99
  325. package/dist/legacy/utils/billing-colors.utils.d.ts +0 -7
  326. package/dist/legacy/utils/color.utils.d.ts +0 -11
  327. package/dist/legacy/utils/file.utils.d.ts +0 -2
  328. package/dist/legacy/utils/index.d.ts +0 -3
  329. package/dist/legacy.d.ts +0 -2
  330. package/dist/legacy.js +0 -16282
  331. package/dist/theme/DesignCssVariables.d.ts +0 -12
  332. package/dist/theme/DesignCssVariables.spec.d.ts +0 -1
  333. package/dist/utils/share-notification.utils.d.ts +0 -10
  334. /package/dist/{legacy/components/Cards/project-card-date.spec.d.ts → components/business/AbyssProjectLinkField/AbyssProjectLinkField.spec.d.ts} +0 -0
  335. /package/dist/{legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts → components/business/PendingInvitations/PendingInvitations.spec.d.ts} +0 -0
  336. /package/dist/{legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts → components/mobile/MobileShell/MobileShellActionBar.spec.d.ts} +0 -0
  337. /package/dist/{legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts → utils/notification-target.utils.spec.d.ts} +0 -0
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- type Props = {
3
- mode: 'light' | 'dark';
4
- /** Receives the click, so a theme reveal can start from the pressed point. */
5
- onToggle: (event: React.MouseEvent<HTMLElement>) => void;
6
- };
7
- declare const AbyssThemeToggle: React.FC<Props>;
8
- export default AbyssThemeToggle;
@@ -1 +0,0 @@
1
- export { default as AbyssThemeToggle } from './AbyssThemeToggle.component';
@@ -1,19 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import { default as React } from 'react';
3
- export declare const drawerWidth = 275;
4
- export declare const drawerWidthCollapsed = 72;
5
- export declare const DOCUMENTATION_URL = "https://docs.abyss-project.fr/abyss-project/";
6
- type Props = {
7
- isMobileOpen?: boolean;
8
- handleDrawerToggle?: () => void;
9
- header?: React.ReactNode;
10
- drawer?: React.ReactNode;
11
- sxProps?: SxProps;
12
- mainSxProps?: SxProps;
13
- containerSxProps?: SxProps;
14
- footer?: React.ReactNode;
15
- drawerCollapsed?: boolean;
16
- children: React.ReactNode;
17
- };
18
- declare const DashboardLayout: React.FC<Props>;
19
- export default DashboardLayout;
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SxProps } from '@mui/material';
3
- type Props = {
4
- hasDrawer?: boolean;
5
- drawerCollapsed?: boolean;
6
- content?: React.ReactNode;
7
- handleDrawerToggle: () => void;
8
- sxProps?: SxProps;
9
- };
10
- declare const DashboardLayoutHeader: React.FC<Props>;
11
- export default DashboardLayoutHeader;
@@ -1,2 +0,0 @@
1
- export { default as DashboardLayout } from './DashboardLayout.layout';
2
- export { default as DashboardLayoutHeader } from './DashboardLayoutHeader.layout';
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- type Props = {
3
- title?: string;
4
- abyssLandingUrl?: string;
5
- };
6
- declare const LoadingLayout: React.FC<Props>;
7
- export default LoadingLayout;
@@ -1 +0,0 @@
1
- export { default as LoadingLayout } from './LoadingLayout.layout';
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- type Props = {
3
- shouldDisplayLandingButton?: boolean;
4
- shouldMaskLogo?: boolean;
5
- abyssLandingUrl?: string;
6
- children: React.ReactNode;
7
- };
8
- declare const MainLayout: React.FC<Props>;
9
- export default MainLayout;
@@ -1 +0,0 @@
1
- export { default as MainLayout } from './MainLayout.layout';
@@ -1,12 +0,0 @@
1
- export * from './MainLayout';
2
- export * from './LoadingLayout';
3
- export * from './DashboardLayout';
4
- export * from './AbyssLayoutProvider';
5
- export * from './AbyssDashboardLayout';
6
- export * from './AbyssHeader';
7
- export * from './AbyssSidebar';
8
- export * from './AbyssThemeToggle';
9
- export * from './AbyssSearchBar';
10
- export * from './AbyssBillingPlan';
11
- export * from './AbyssFamilyBanner';
12
- export * from './AbyssLoadingScreen';
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- import { DialogProps, SxProps } from '@mui/material';
3
- type Props = {
4
- /**
5
- * Opt out of the built-in close button. AbyssModal owns the single close
6
- * button for every modal — consumers must NOT render their own. Set this only
7
- * when the modal provides its own custom close affordance.
8
- */
9
- hideCloseButton?: boolean;
10
- /** @deprecated Use `hideCloseButton` instead. Kept as an alias for back-compat. */
11
- disableCloseButton?: boolean;
12
- sxCloseButton?: SxProps;
13
- onClose?: () => void;
14
- disableFullScreenOnMobile?: boolean;
15
- disablePaperPadding?: boolean;
16
- } & DialogProps;
17
- declare const AbyssModal: React.FC<Props>;
18
- export default AbyssModal;
@@ -1 +0,0 @@
1
- export { default as AbyssModal } from './AbyssModal.component';
@@ -1,22 +0,0 @@
1
- import { default as React, ReactNode } from 'react';
2
- import { Breakpoint, SxProps } from '@mui/material';
3
- export type ConfirmModalVariant = 'default' | 'danger' | 'warning' | 'info' | 'success';
4
- type Props = {
5
- title?: string | ReactNode;
6
- description?: string;
7
- content?: ReactNode;
8
- confirmText?: string;
9
- cancelText?: string;
10
- isOpen: boolean;
11
- isConfirmLoading?: boolean;
12
- onCancel: () => Promise<void>;
13
- onConfirm: () => Promise<void>;
14
- isConfirmDisabled?: boolean;
15
- maxWidth?: Breakpoint;
16
- fullWidth?: boolean;
17
- sx?: SxProps;
18
- variant?: ConfirmModalVariant;
19
- icon?: ReactNode;
20
- };
21
- declare const ConfirmModal: React.FC<Props>;
22
- export default ConfirmModal;
@@ -1,2 +0,0 @@
1
- export { default, default as ConfirmModal } from './ConfirmModal';
2
- export type { ConfirmModalVariant } from './ConfirmModal';
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ISpace, IFile } from '@abyss-project/cloud';
3
- import { CloudPicker } from '../../../../hooks/cloud-picker.types';
4
- type Props = {
5
- isOpen: boolean;
6
- onCancel: () => Promise<void>;
7
- onConfirm: (cloud: ISpace, files: IFile[]) => Promise<void>;
8
- maxSize?: number;
9
- multiple?: boolean;
10
- accept?: string[];
11
- /** Picker state and actions, as returned by `useCloudPicker`. */
12
- cloudPicker: CloudPicker;
13
- };
14
- declare const ImportFromCloudModal: React.FC<Props>;
15
- export default ImportFromCloudModal;
@@ -1 +0,0 @@
1
- export { default as ImportFromCloudModal } from './ImportFromCloudModal.component';
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- type Props = {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- url: string;
6
- maskShareButton?: boolean;
7
- maskCopyButton?: boolean;
8
- /** Called when the reset button is clicked */
9
- handleResetButton?: () => Promise<void>;
10
- };
11
- declare const QRCodeModal: React.FC<Props>;
12
- export default QRCodeModal;
@@ -1 +0,0 @@
1
- export { default as QRCodeModal } from './QRCodeModal.component';
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { UserSettingsUser } from './UserSettingsModal.component';
3
- type Props = {
4
- isOpen: boolean;
5
- onCancel: () => Promise<void>;
6
- user: UserSettingsUser;
7
- fetchMe: () => Promise<void>;
8
- isLoading: boolean;
9
- abyssUrl: string;
10
- };
11
- declare const UserSettings: FC<Props>;
12
- export default UserSettings;
@@ -1,38 +0,0 @@
1
- import { default as React } from 'react';
2
- export type UserSettingsUser = {
3
- alias?: string | null;
4
- phone?: string | null;
5
- name?: string | null;
6
- familyName?: string | null;
7
- currentFamily?: {
8
- id: string;
9
- name: string;
10
- role: string;
11
- status: 'none' | 'pending' | 'active' | 'owner';
12
- } | null;
13
- };
14
- export type UserSettingsValues = {
15
- alias: string;
16
- phone: string;
17
- name: string;
18
- familyName: string;
19
- };
20
- /**
21
- * Exported for unit testing — no React deps.
22
- * `overrideFamily` is the standalone `currentFamily` prop from the component;
23
- * when provided it takes precedence, otherwise falls back to `user.currentFamily`.
24
- */
25
- export declare function shouldRenderFamilyBanner(user: UserSettingsUser, overrideFamily?: UserSettingsUser['currentFamily']): boolean;
26
- type Props = {
27
- isOpen: boolean;
28
- onCancel: () => Promise<void>;
29
- onSave: (values: UserSettingsValues) => Promise<void>;
30
- user: UserSettingsUser;
31
- isLoading: boolean;
32
- abyssUrl: string;
33
- profileSuffix?: string;
34
- deleteAccountSuffix?: string;
35
- currentFamily?: UserSettingsUser['currentFamily'];
36
- };
37
- declare const UserSettingsModal: React.FC<Props>;
38
- export default UserSettingsModal;
@@ -1,2 +0,0 @@
1
- export { default as UserSettingsModal } from './UserSettingsModal.component';
2
- export type { UserSettingsUser, UserSettingsValues, } from './UserSettingsModal.component';
@@ -1,6 +0,0 @@
1
- export * from './AbyssModal';
2
- export * from './ConfirmModal';
3
- export * from './ImportFromCloudModal';
4
- export * from './QRCodeModal';
5
- export * from './UserSettingsModal';
6
- export { default as UserSettings } from './UserSettingsModal/UserSettings.compat';
@@ -1,53 +0,0 @@
1
- import { default as React } from 'react';
2
- import { QuotaGaugeInput } from './gauge-segments';
3
- /** Un repère sur l'axe : sa valeur, ce qu'il implique, et le raccourci qui permet d'agir. */
4
- export interface QuotaMarker {
5
- kind: 'threshold' | 'included' | 'ceiling';
6
- value: number;
7
- /** Libellé de l'action, et ce qu'elle déclenche. Sans elle, la bulle informe seulement. */
8
- onAction?: () => void;
9
- }
10
- export interface AbyssQuotaGaugeProps extends QuotaGaugeInput {
11
- markers?: QuotaMarker[];
12
- /** Rend une valeur dans l'unité de la métrique — « 1,5 To », « 12 000 événements ». */
13
- formatValue?: (value: number) => string;
14
- /** Hauteur de la barre. La bulle et les repères s'y adaptent. */
15
- height?: number;
16
- /**
17
- * Tait la mention « le dépassement n'est pas autorisé » sous l'axe.
18
- *
19
- * À poser quand le TEXTE PORTEUR le dit déjà. Dans le bandeau compact du satellite, la phrase
20
- * apparaissait deux fois à trois lignes d'intervalle : une fois sous la jauge, une fois dans le
21
- * message d'état. Répétée, elle n'informe plus, elle encombre — et c'est exactement le genre de
22
- * détail qui fait qu'un écran « n'est pas beau » sans qu'on sache dire pourquoi.
23
- */
24
- hideOverageNote?: boolean;
25
- }
26
- /**
27
- * LA JAUGE DE QUOTA PARTAGÉE.
28
- *
29
- * ═══ POURQUOI ELLE EXISTE ═══
30
- *
31
- * Aucune barre de progression partagée n'existait : chaque surface de facturation réimplémentait la
32
- * sienne, avec ses propres couleurs de seuil. Vérifié — `commons-front-core` ne portait qu'une
33
- * boîte de dialogue « quota atteint », et quatre écrans du hub avaient chacun leur `LinearProgress`.
34
- *
35
- * ═══ IL N'Y A PAS DE LÉGENDE, ET C'EST DÉLIBÉRÉ ═══
36
- *
37
- * Chaque SEGMENT porte à la fois sa couleur ET son explication. La solution « remplissage décoratif
38
- * plus zone de survol invisible » ferait deux sources à garder synchronisées ; un seul nœud ne peut
39
- * pas dériver. Le survol l'éclaire et fait reculer les autres — le contraste fait la lecture.
40
- *
41
- * ═══ UNE BULLE QUI CONTIENT UN BOUTON N'EST PAS UNE BULLE ═══
42
- *
43
- * Un pseudo-élément CSS ne se clique pas. Il faut un vrai nœud, survolable, qui reste ouvert quand
44
- * la souris y entre — et PORTALISÉ, sinon l'`overflow: hidden` de la carte porteuse le rogne.
45
- *
46
- * ═══ LE CALCUL N'EST PAS ICI ═══
47
- *
48
- * Le placement des bulles et le découpage de l'axe vivent dans deux modules purs, testés sans
49
- * navigateur sur les quatre largeurs de la spec. Les laisser dans le composant les aurait rendus
50
- * vérifiables seulement à l'œil — et le premier passage du contrôle signalait quinze défauts sur
51
- * quinze en mobile, dont aucun n'était visible à la relecture.
52
- */
53
- export declare const AbyssQuotaGauge: React.FC<AbyssQuotaGaugeProps>;
@@ -1,47 +0,0 @@
1
- /**
2
- * LE PLACEMENT D'UNE BULLE DE REPÈRE SUR LA JAUGE DE QUOTA.
3
- *
4
- * ═══ POURQUOI CE CALCUL EST UNE FONCTION PURE, ET PAS DU CSS ═══
5
- *
6
- * Trois pièges, tous rencontrés en MESURANT plutôt qu'en regardant. Le contrôle qui a servi aux
7
- * maquettes signalait quinze défauts sur quinze en mobile, et aucune relecture ne les aurait vus.
8
- *
9
- * 1. UN SEUIL EN POURCENTAGE NE MARCHE PAS. Le point de bascule entre « bulle centrée » et
10
- * « bulle collée au bord » dépend de la largeur RENDUE, qui change avec l'écran ET avec la
11
- * langue — un libellé allemand décale le basculement d'un repère qu'un libellé français
12
- * laissait tenir.
13
- *
14
- * 2. `left: 0` SE RÉFÈRE AU PORTEUR, PAS À LA JAUGE. Ancrer sur un bord ne suffit pas : il faut
15
- * convertir en coordonnées de jauge, sinon la bulle d'un repère à 80 % part 80 % trop à
16
- * droite.
17
- *
18
- * 3. SUR ÉCRAN ÉTROIT LA BULLE EST PLUS LARGE QUE LA JAUGE. Aucune position ne la fait alors
19
- * tenir : il faut la RÉTRÉCIR d'abord. C'est la ligne `min(...)` ci-dessous, et c'est elle qui
20
- * règle les quinze défauts mobiles.
21
- *
22
- * Sortir ce calcul du composant le rend testable sans navigateur, aux quatre largeurs de la spec,
23
- * sans monter de DOM ni simuler un survol.
24
- */
25
- /** La largeur de confort d'une bulle, en pixels. Au-delà, le texte se met à flotter. */
26
- export declare const BUBBLE_MAX_WIDTH = 232;
27
- export interface BubblePlacement {
28
- /** Largeur retenue : la largeur de confort, ou celle de la jauge si elle est plus étroite. */
29
- width: number;
30
- /** Décalage du bord GAUCHE de la bulle, en coordonnées de jauge. */
31
- left: number;
32
- /**
33
- * Décalage de la flèche À L'INTÉRIEUR de la bulle.
34
- *
35
- * Elle reste sous le porteur où que la bulle atterrisse : une flèche figée au centre pointerait
36
- * dans le vide dès que la bulle est bornée par un bord.
37
- */
38
- arrow: number;
39
- }
40
- /**
41
- * Place une bulle sous un repère.
42
- *
43
- * @param markerCenter position du repère, en pixels depuis le bord gauche de la JAUGE
44
- * @param gaugeWidth largeur rendue de la jauge, en pixels
45
- * @param maxWidth largeur de confort de la bulle
46
- */
47
- export declare const placeBubble: (markerCenter: number, gaugeWidth: number, maxWidth?: number) => BubblePlacement;
@@ -1,80 +0,0 @@
1
- /**
2
- * LES SEGMENTS D'UNE JAUGE DE QUOTA, ET L'AXE SUR LEQUEL ILS SE POSENT.
3
- *
4
- * ═══ L'AXE S'ARRÊTE AU PLAFOND, PAS AU MAXIMUM VENDABLE ═══
5
- *
6
- * Porter l'axe jusqu'au maximum libre-service écraserait la zone utile : un compte à 200 Go inclus
7
- * dont le maximum est 5 To verrait sa limite incluse et son seuil d'alerte confondus sur 4 % de la
8
- * barre. L'axe s'arrête donc au PLAFOND — le maximum réel du compte —, et le fait qu'il soit
9
- * relevable devient une affordance plutôt qu'une zone à l'échelle qui mentirait.
10
- *
11
- * Sans plafond fixé, l'axe s'arrête à la limite incluse.
12
- *
13
- * ═══ POURQUOI CE CALCUL EST PUR ═══
14
- *
15
- * Un segment porte à la fois sa couleur ET son explication. La solution « remplissage décoratif
16
- * plus zone de survol invisible » ferait deux sources à garder synchronisées ; un seul nœud ne peut
17
- * pas dériver. Encore faut-il que ce nœud sache exactement où il commence et où il finit — d'où ce
18
- * calcul, testable sans monter de DOM.
19
- */
20
- /** Ce qu'un segment raconte. Le nom porte le sens, pas la couleur : le thème décide du rendu. */
21
- export declare enum QuotaSegmentKind {
22
- /** Consommé à l'intérieur de ce que le plan inclut. */
23
- USED_INCLUDED = "USED_INCLUDED",
24
- /** Consommé au-delà de l'inclus — facturé en dépassement. */
25
- USED_OVERAGE = "USED_OVERAGE",
26
- /** Encore inclus, pas encore consommé. */
27
- FREE_INCLUDED = "FREE_INCLUDED",
28
- /** Dépassement encore autorisé avant le plafond. */
29
- FREE_OVERAGE = "FREE_OVERAGE"
30
- }
31
- export interface QuotaSegment {
32
- kind: QuotaSegmentKind;
33
- /** Début et fin en unités de la métrique. */
34
- from: number;
35
- to: number;
36
- /** Part de l'axe, entre 0 et 1 — ce que le rendu utilise pour sa largeur. */
37
- ratio: number;
38
- }
39
- export interface QuotaAxis {
40
- /** Fin de l'axe, en unités de la métrique. */
41
- max: number;
42
- segments: QuotaSegment[];
43
- /** `true` quand l'axe s'arrête à l'inclus faute de plafond : le dépassement n'est pas autorisé. */
44
- overageDisallowed: boolean;
45
- }
46
- export interface QuotaGaugeInput {
47
- /** Consommation courante. */
48
- current: number;
49
- /** Ce que le plan et les modules incluent. `-1` vaut illimité. */
50
- includedLimit: number;
51
- /**
52
- * Le plafond du compte, au-delà duquel tout est refusé. `null` : aucun plafond posé, donc aucun
53
- * dépassement autorisé. `-1` : dépassement sans borne.
54
- */
55
- ceiling: number | null;
56
- }
57
- /**
58
- * Découpe l'axe en segments contigus.
59
- *
60
- * ═══ LES TROIS CAS QUI NE SE DEVINENT PAS ═══
61
- *
62
- * ILLIMITÉ — une limite à `-1` n'a pas d'axe : une barre de progression vers l'infini est toujours
63
- * à zéro pour cent, ce qui est vrai et inutile. On rend un axe vide, et le rendu affiche un état
64
- * plutôt qu'une jauge.
65
- *
66
- * DÉPASSEMENT SANS BORNE — le plafond `-1` ne peut pas terminer l'axe. On le termine à la
67
- * consommation courante quand elle dépasse l'inclus, sinon à l'inclus : l'axe suit alors le client
68
- * au lieu de lui montrer un infini vide.
69
- *
70
- * CONSOMMATION AU-DELÀ DU PLAFOND — elle arrive : un plafond baissé après coup, ou un compteur
71
- * rattrapé en retard. L'axe s'étend jusqu'à elle, sinon le segment consommé sortirait de la barre.
72
- */
73
- export declare const buildQuotaAxis: ({ current, includedLimit, ceiling, }: QuotaGaugeInput) => QuotaAxis;
74
- /**
75
- * La position d'un repère sur l'axe, en part de l'axe entre 0 et 1.
76
- *
77
- * Rend `null` quand le repère n'a pas sa place — pas d'axe, ou une valeur au-delà de son bout. Le
78
- * rendre à 1 le collerait au bord droit et le ferait passer pour un plafond, ce qu'il n'est pas.
79
- */
80
- export declare const markerRatio: (value: number | null, axis: QuotaAxis) => number | null;
@@ -1,6 +0,0 @@
1
- export { AbyssQuotaGauge } from './AbyssQuotaGauge.component';
2
- export type { AbyssQuotaGaugeProps, QuotaMarker, } from './AbyssQuotaGauge.component';
3
- export { BUBBLE_MAX_WIDTH, placeBubble } from './bubble-placement';
4
- export type { BubblePlacement } from './bubble-placement';
5
- export { QuotaSegmentKind, buildQuotaAxis, markerRatio, } from './gauge-segments';
6
- export type { QuotaAxis, QuotaSegment, QuotaGaugeInput, } from './gauge-segments';
@@ -1,83 +0,0 @@
1
- import { default as React } from 'react';
2
- import { QuotaMarker } from '../QuotaGauge';
3
- import { QuotaOfferInput } from '../../../utils/quota-offer-state.utils';
4
- /** Une branche chiffrée. Le composant ne calcule RIEN : il reçoit le montant déjà fait. */
5
- export interface QuotaOfferBranch {
6
- kind: 'extension' | 'pack' | 'overage' | 'ceiling' | 'unlock';
7
- /**
8
- * Montant formaté, prêt à afficher — « 5,35 € ».
9
- *
10
- * `null` veut dire INDISPONIBLE, pas gratuit : le composant l'affiche comme tel plutôt que de
11
- * l'estimer. Un prix inventé côté client diverge de la facture au premier changement de barème.
12
- */
13
- price: string | null;
14
- /** Taille du lot, pour l'extension. */
15
- lot?: number;
16
- onSelect?: () => void;
17
- }
18
- export interface AbyssQuotaOfferProps extends QuotaOfferInput {
19
- /** Unité affichée — « Go », « membres ». */
20
- unit: string;
21
- /** La métrique, telle que le contrat d'URL l'attend. */
22
- metricKey: string;
23
- branches: QuotaOfferBranch[];
24
- variant?: 'compact' | 'expanded';
25
- markers?: QuotaMarker[];
26
- /**
27
- * Rend une valeur dans l'unité de la métrique. Par défaut, `Intl` — jamais `String(v)`, qui
28
- * affichait « 110000 » là où le client lit « 110 000 ».
29
- */
30
- formatValue?: (value: number) => string;
31
- /**
32
- * La RACINE de facturation du hub — pas l'URL complète.
33
- *
34
- * LE SATELLITE NE LA CONNAÎT PAS : il la reçoit, comme il reçoit les prix. Embarquer un tunnel
35
- * d'achat dans un satellite y dupliquerait Stripe, le moyen de paiement et les items
36
- * d'abonnement — tout ce qui vit dans le hub, neuf fois.
37
- *
38
- * Le lien profond est construit ICI, avec la métrique, le geste visé et l'adresse de retour :
39
- * neuf satellites qui le fabriqueraient chacun de leur côté finiraient par en perdre un morceau.
40
- */
41
- /**
42
- * Le service qui sert cette métrique. Le point d'entrée d'offre en exige le couple complet ; le
43
- * composant le reçoit du serveur, avec l'offre qu'il affiche.
44
- */
45
- serviceKey: string;
46
- billingBaseUrl?: string;
47
- /**
48
- * L'organisation dont le quota est affiché, quand il y en a une.
49
- *
50
- * Le hub sert la consommation d'une organisation sur une route DISTINCTE, qui porte
51
- * l'identifiant dans le chemin. Sans lui, un membre d'une organisation atterrit sur la
52
- * consommation de son compte PERSONNEL : des chiffres réels, mais ceux d'un autre compte que
53
- * celui qu'il regardait — pire qu'une page d'erreur, qui au moins se voit.
54
- */
55
- organizationId?: string;
56
- /** Où revenir après le geste. Généralement l'adresse courante du satellite. */
57
- returnUrl?: string;
58
- onNavigateToBilling?: () => void;
59
- }
60
- /**
61
- * L'OFFRE DE QUOTA, ET SES HUIT ÉTATS.
62
- *
63
- * ═══ CE QU'IL NE FAIT PAS ═══
64
- *
65
- * Il ne CALCULE aucun prix et ne DÉRIVE aucun état : les deux arrivent tout faits, l'un du serveur,
66
- * l'autre d'une fonction pure testée à part. Un `if` enfoui dans le rendu ne se vérifie qu'à l'œil,
67
- * sur les quelques cas qu'on pense à ouvrir — et se tromper d'état a deux coûts opposés, tous deux
68
- * chers.
69
- *
70
- * ═══ LES DEUX VARIANTS, ET CE QUI LES DISTINGUE VRAIMENT ═══
71
- *
72
- * COMPACT vit dans un satellite : une ligne au-dessus du contenu, JAMAIS devant. Son action REDIRIGE
73
- * vers le hub — le satellite informe et route, il ne vend pas.
74
- *
75
- * ÉTENDU vit dans les pages de facturation du hub : la jauge et les branches chiffrées.
76
- *
77
- * ═══ AMBRE SE FERME, ROUGE NE SE FERME PAS ═══
78
- *
79
- * En approche, le bandeau est informatif et FERMABLE : l'utilisateur travaille, on ne lui bloque pas
80
- * l'écran. Au refus, l'action vient d'échouer, le bandeau porte la cause et n'est plus fermable —
81
- * c'est le seul moment où il a le droit d'insister.
82
- */
83
- export declare const AbyssQuotaOffer: React.FC<AbyssQuotaOfferProps>;
@@ -1,4 +0,0 @@
1
- export { AbyssQuotaOffer } from './AbyssQuotaOffer.component';
2
- export type { AbyssQuotaOfferProps, QuotaOfferBranch, } from './AbyssQuotaOffer.component';
3
- export { QuotaOfferState, deriveQuotaOfferState, offersAction, shouldSuggestModule, } from '../../../utils/quota-offer-state.utils';
4
- export type { QuotaOfferInput } from '../../../utils/quota-offer-state.utils';
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface QuotaReachedDialogProps {
3
- /**
4
- * Called when the user clicks the upgrade CTA. The host decides where to send
5
- * them (internal route or the main dashboard billing URL). When omitted, the
6
- * CTA button is hidden and only an explanatory message + close button show.
7
- */
8
- onUpgrade?: () => void;
9
- }
10
- /**
11
- * Shared "quota reached" dialog. Triggered imperatively by the billing-quota
12
- * axios interceptor (see attachQuotaInterceptor) when a satellite blocks a
13
- * create because the current plan's limit is hit.
14
- */
15
- export declare const QuotaReachedDialog: React.FC<QuotaReachedDialogProps>;
@@ -1,3 +0,0 @@
1
- export { QuotaReachedDialog } from './QuotaReachedDialog.component';
2
- export type { QuotaReachedDialogProps } from './QuotaReachedDialog.component';
3
- export { QUOTA_SERVICE_META, getQuotaServiceColor, renderQuotaServiceIcon, buildQuotaServiceChipSx, } from './quota-service-meta';
@@ -1,31 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Theme } from '@mui/material';
3
- import { BillingService } from '@abyss-project/main';
4
- type PaletteKey = 'primary' | 'success' | 'warning' | 'info' | 'secondary' | 'error';
5
- interface ServiceMeta {
6
- icon: React.ReactElement;
7
- color: PaletteKey;
8
- }
9
- /**
10
- * How each billing service is displayed in the shared quota dialog. Mirrors
11
- * the front-v2 SERVICE_META so the look is consistent across hosts.
12
- */
13
- export declare const QUOTA_SERVICE_META: Record<BillingService, ServiceMeta>;
14
- export declare const getQuotaServiceColor: (theme: Theme, service: BillingService) => string;
15
- export declare const renderQuotaServiceIcon: (service: BillingService, fontSize: number) => React.ReactElement;
16
- export declare const buildQuotaServiceChipSx: (theme: Theme, service: BillingService) => {
17
- height: number;
18
- fontSize: string;
19
- fontWeight: number;
20
- bgcolor: string;
21
- color: string;
22
- border: string;
23
- '& .MuiChip-icon': {
24
- color: string;
25
- marginLeft: string;
26
- };
27
- '& .MuiChip-label': {
28
- px: number;
29
- };
30
- };
31
- export {};
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ProjectWithMetrics } from '@abyss-project/spotlight';
3
- interface ProjectCardProps {
4
- project: ProjectWithMetrics;
5
- index: number;
6
- onEdit?: (project: ProjectWithMetrics) => void;
7
- onDelete?: (project: ProjectWithMetrics) => void;
8
- pathToProjectDetails: string;
9
- bannerUrl?: string;
10
- logoUrl?: string;
11
- targetViewport?: '_blank' | '_self';
12
- actions?: React.ReactNode;
13
- }
14
- declare const InternalProjectCard: React.FC<ProjectCardProps>;
15
- export default InternalProjectCard;
@@ -1 +0,0 @@
1
- export { default as InternalProjectCard } from './InternalProjectCard.component';