@abyss-project/commons-front-core 2.0.0 → 2.0.1

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 (43) hide show
  1. package/README.md +30 -30
  2. package/declaration.d.ts +13 -13
  3. package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +3 -5
  4. package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts +3 -5
  5. package/dist/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +3 -5
  6. package/dist/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +3 -5
  7. package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +3 -6
  8. package/dist/components/Chips/WebhookTypeChip/WebhookTypeChip.component.d.ts +3 -5
  9. package/dist/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +3 -4
  10. package/dist/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +3 -4
  11. package/dist/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +2 -4
  12. package/dist/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +2 -4
  13. package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
  14. package/dist/hooks/use-rich-intl.hook.d.ts +3 -1548
  15. package/dist/{index-CSpwXL74.js → index-9JIy7Djb.js} +1 -1
  16. package/dist/{index-a9_oOlg4.js → index-BAuonW3N.js} +26027 -27126
  17. package/dist/{index-BiREoCYc.js → index-BOtrcw1j.js} +2 -2
  18. package/dist/{index-Ca_vS7os.js → index-BPJVReI0.js} +2 -2
  19. package/dist/{index-BCVRYGLI.js → index-BXZfTf55.js} +4 -4
  20. package/dist/{index-DZG8q-Mp.js → index-BYLT28lc.js} +3 -3
  21. package/dist/{index-DpUTQu7B.js → index-BYwHCIWy.js} +2 -2
  22. package/dist/{index-Cil-O_44.js → index-BgmzPVRb.js} +2 -2
  23. package/dist/{index-BdWnB1rS.js → index-BpK4Invo.js} +2 -2
  24. package/dist/{index-DON7Q_3s.js → index-CFDZ3MU0.js} +2 -2
  25. package/dist/{index-CTVUhat-.js → index-CH4t9QXm.js} +2 -2
  26. package/dist/{index--KPqynn_.js → index-CHx1H8aR.js} +2 -2
  27. package/dist/{index-VEVfBSFw.js → index-CWbky7lZ.js} +2 -2
  28. package/dist/{index-CL4h9Xoy.js → index-CdyQkcro.js} +4 -4
  29. package/dist/{index-CoY-Eqah.js → index-ChracZ7Y.js} +2 -2
  30. package/dist/{index-BcInTypv.js → index-D-lUzl7L.js} +4 -4
  31. package/dist/{index-Db-3tPxk.js → index-DA-Al57V.js} +2 -2
  32. package/dist/{index-B3gKqf-p.js → index-DQA1qMA-.js} +3 -3
  33. package/dist/{index-ldQTy6Xb.js → index-DsGlqSMc.js} +2 -2
  34. package/dist/{index-AykyIzzG.js → index-Dwu4v8nG.js} +3 -3
  35. package/dist/{index-Df71mOHZ.js → index-JwdWWKbV.js} +3 -3
  36. package/dist/{index-QwHRQNwT.js → index-nCkskgkm.js} +2 -2
  37. package/dist/index.js +1 -1
  38. package/dist/utils/color.utils.d.ts +0 -1
  39. package/package.json +138 -143
  40. package/tsconfig.json +35 -35
  41. package/vite.config.ts +75 -75
  42. package/vitest.config.ts +14 -14
  43. package/.claude/settings.local.json +0 -7
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- # Abyss Commons Front Core
2
-
3
- `@abyss-project/commons-front-core`
4
-
5
- Composants React, hooks, design system et traductions partagés par les frontends Abyss.
6
-
7
- _Shared React components, hooks, design system and translations for Abyss frontends._
8
-
9
- ## Installation
10
-
11
- ```bash
12
- npm install @abyss-project/commons-front-core
13
- # or
14
- pnpm add @abyss-project/commons-front-core
15
- ```
16
-
17
- ## Liens
18
-
19
- - **Documentation** : [https://docs.abyss-project.fr/abyss-project](https://docs.abyss-project.fr/abyss-project)
20
- - **NPM** : [@abyss-project/commons-front-core](https://www.npmjs.com/package/@abyss-project/commons-front-core)
21
- - **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
22
- - **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
23
-
24
- ## Usage
25
-
26
- Voir la [documentation produit](https://docs.abyss-project.fr/abyss-project) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
27
-
28
- ## Support
29
-
30
- Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
1
+ # Abyss Commons Front Core
2
+
3
+ `@abyss-project/commons-front-core`
4
+
5
+ Composants React, hooks, design system et traductions partagés par les frontends Abyss.
6
+
7
+ _Shared React components, hooks, design system and translations for Abyss frontends._
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install @abyss-project/commons-front-core
13
+ # or
14
+ pnpm add @abyss-project/commons-front-core
15
+ ```
16
+
17
+ ## Liens
18
+
19
+ - **Documentation** : [https://docs.abyss-project.fr/abyss-project](https://docs.abyss-project.fr/abyss-project)
20
+ - **NPM** : [@abyss-project/commons-front-core](https://www.npmjs.com/package/@abyss-project/commons-front-core)
21
+ - **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
22
+ - **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
23
+
24
+ ## Usage
25
+
26
+ Voir la [documentation produit](https://docs.abyss-project.fr/abyss-project) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
27
+
28
+ ## Support
29
+
30
+ Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
package/declaration.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- declare module '*.svg' {
2
- import React from 'react';
3
- const SVG: React.VFC<React.SVGProps<SVGSVGElement>>;
4
- export default SVG;
5
- }
6
- declare module '*.png' {
7
- const src: string;
8
- export default src;
9
- }
10
- declare module '*.mp3' {
11
- const src: string;
12
- export default src;
13
- }
1
+ declare module '*.svg' {
2
+ import React from 'react';
3
+ const SVG: React.VFC<React.SVGProps<SVGSVGElement>>;
4
+ export default SVG;
5
+ }
6
+ declare module '*.png' {
7
+ const src: string;
8
+ export default src;
9
+ }
10
+ declare module '*.mp3' {
11
+ const src: string;
12
+ export default src;
13
+ }
@@ -1,9 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { ApplicationSentinelType } from '@abyss-project/monitor';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  value: ApplicationSentinelType;
6
- classes: Record<string, string>;
7
5
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
6
+ declare const ApplicationSentinelTypeChip: FC<Props>;
7
+ export default ApplicationSentinelTypeChip;
@@ -1,9 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { ApplicationWebhookScope } from '@abyss-project/monitor';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  value: ApplicationWebhookScope;
6
- classes: Record<string, string>;
7
5
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
6
+ declare const WebhookTypeChip: FC<Props>;
7
+ export default WebhookTypeChip;
@@ -1,9 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { LogLevel } from '@abyss-project/monitor';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  level: LogLevel;
6
- classes: Record<string, string>;
7
5
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
6
+ declare const LogTypeChip: FC<Props>;
7
+ export default LogTypeChip;
@@ -1,9 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { ProjectStatus } from '@abyss-project/main';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  status: ProjectStatus;
6
- classes: Record<string, string>;
7
5
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
6
+ declare const ProjectStatusChip: FC<Props>;
7
+ export default ProjectStatusChip;
@@ -1,9 +1,6 @@
1
- import { JSXElementConstructor } from 'react';
2
- import { StyledComponentProps } from '@mui/styles/withStyles';
3
- /// <reference types="react" />
1
+ import { FC } from 'react';
4
2
  type Props = {
5
3
  responseCode: number | null;
6
- classes: Record<string, string>;
7
4
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
5
+ declare const WebhookResponseCodeChip: FC<Props>;
6
+ export default WebhookResponseCodeChip;
@@ -1,9 +1,7 @@
1
+ import { FC } from 'react';
1
2
  import { WebhookType } from '@abyss-project/storage';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  value: WebhookType;
6
- classes: Record<string, string>;
7
5
  };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
6
+ declare const WebhookTypeChip: FC<Props>;
7
+ export default WebhookTypeChip;
@@ -1,5 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { DatePickerProps } from '@mui/x-date-pickers';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- declare const _default: JSXElementConstructor<Omit<DatePickerProps<Date>, "classes"> & StyledComponentProps<string> & object>;
5
- export default _default;
3
+ declare const AbyssDatePicker: FC<DatePickerProps<Date>>;
4
+ export default AbyssDatePicker;
@@ -1,5 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { DateTimePickerProps } from '@mui/x-date-pickers';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- declare const _default: JSXElementConstructor<Omit<DateTimePickerProps<Date>, "classes"> & StyledComponentProps<string> & object>;
5
- export default _default;
3
+ declare const AbyssDateTimePicker: FC<DateTimePickerProps<Date>>;
4
+ export default AbyssDateTimePicker;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ProjectCategory, ProjectLanguage } from '@abyss-project/spotlight';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
3
  type Props = {
5
4
  project: {
6
5
  title: string;
@@ -16,7 +15,6 @@ type Props = {
16
15
  isFollowed: boolean;
17
16
  startCount: number;
18
17
  viewCount: number;
19
- classes: Record<string, string>;
20
18
  };
21
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
22
- export default _default;
19
+ declare const ProjectCard: React.FC<Props>;
20
+ export default ProjectCard;
@@ -1,12 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { StyledComponentProps } from '@mui/styles/withStyles';
3
2
  type Props = {
4
3
  abyssProjectId: string;
5
4
  abyssProjectApplicationId: string;
6
5
  setAbyssProjectId: (id: string) => void;
7
6
  setAbyssProjectApplicationId: (id: string) => void;
8
7
  getProjectPictureUrl: (id: string) => string;
9
- classes: Record<string, string>;
10
8
  };
11
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
12
- export default _default;
9
+ declare const ProjectLinkSelector: React.FC<Props>;
10
+ export default ProjectLinkSelector;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { SupportTicketCategory, SupportTicketCategoryGroup } from '@abyss-project/main';
3
2
  import { SupportCategoryChipProps } from './types';
4
3
  export declare const getCategoryGroup: (category: SupportTicketCategory) => SupportTicketCategoryGroup;
5
4
  export declare const getCategoryConfig: (category: SupportTicketCategory) => {