@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.
- package/README.md +30 -30
- package/declaration.d.ts +13 -13
- package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +3 -5
- package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +3 -6
- package/dist/components/Chips/WebhookTypeChip/WebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +3 -4
- package/dist/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +3 -4
- package/dist/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +2 -4
- package/dist/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +2 -4
- package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +3 -1548
- package/dist/{index-CSpwXL74.js → index-9JIy7Djb.js} +1 -1
- package/dist/{index-a9_oOlg4.js → index-BAuonW3N.js} +26027 -27126
- package/dist/{index-BiREoCYc.js → index-BOtrcw1j.js} +2 -2
- package/dist/{index-Ca_vS7os.js → index-BPJVReI0.js} +2 -2
- package/dist/{index-BCVRYGLI.js → index-BXZfTf55.js} +4 -4
- package/dist/{index-DZG8q-Mp.js → index-BYLT28lc.js} +3 -3
- package/dist/{index-DpUTQu7B.js → index-BYwHCIWy.js} +2 -2
- package/dist/{index-Cil-O_44.js → index-BgmzPVRb.js} +2 -2
- package/dist/{index-BdWnB1rS.js → index-BpK4Invo.js} +2 -2
- package/dist/{index-DON7Q_3s.js → index-CFDZ3MU0.js} +2 -2
- package/dist/{index-CTVUhat-.js → index-CH4t9QXm.js} +2 -2
- package/dist/{index--KPqynn_.js → index-CHx1H8aR.js} +2 -2
- package/dist/{index-VEVfBSFw.js → index-CWbky7lZ.js} +2 -2
- package/dist/{index-CL4h9Xoy.js → index-CdyQkcro.js} +4 -4
- package/dist/{index-CoY-Eqah.js → index-ChracZ7Y.js} +2 -2
- package/dist/{index-BcInTypv.js → index-D-lUzl7L.js} +4 -4
- package/dist/{index-Db-3tPxk.js → index-DA-Al57V.js} +2 -2
- package/dist/{index-B3gKqf-p.js → index-DQA1qMA-.js} +3 -3
- package/dist/{index-ldQTy6Xb.js → index-DsGlqSMc.js} +2 -2
- package/dist/{index-AykyIzzG.js → index-Dwu4v8nG.js} +3 -3
- package/dist/{index-Df71mOHZ.js → index-JwdWWKbV.js} +3 -3
- package/dist/{index-QwHRQNwT.js → index-nCkskgkm.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/utils/color.utils.d.ts +0 -1
- package/package.json +138 -143
- package/tsconfig.json +35 -35
- package/vite.config.ts +75 -75
- package/vitest.config.ts +14 -14
- 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
|
+
}
|
package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts
CHANGED
|
@@ -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
|
|
9
|
-
export default
|
|
6
|
+
declare const ApplicationSentinelTypeChip: FC<Props>;
|
|
7
|
+
export default ApplicationSentinelTypeChip;
|
package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts
CHANGED
|
@@ -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
|
|
9
|
-
export 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
|
|
9
|
-
export 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
|
|
9
|
-
export default
|
|
6
|
+
declare const ProjectStatusChip: FC<Props>;
|
|
7
|
+
export default ProjectStatusChip;
|
package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
|
|
9
|
-
export 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
|
|
9
|
-
export 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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
|
22
|
-
export 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
|
|
12
|
-
export 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) => {
|