@abyss-project/commons-front-core 11.1.2 → 13.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/README.md +2 -2
- package/catalog/pages/LineChart.tsx +19 -2
- package/catalog/pages/StatTile.tsx +16 -0
- package/catalog/pages/ToolIcon.tsx +48 -48
- package/dist/{AbyssCookieConsentProvider-PchfQjs2.js → AbyssCookieConsentProvider-D5jeL5KA.js} +1402 -1800
- package/dist/{CookieConsentSettings.component-D8G0H6Wl.js → CookieConsentSettings.component-C69wpa-v.js} +1 -1
- package/dist/{Tabs-CZQ1JYlW.js → Tabs-CwVEV4SO.js} +162 -142
- package/dist/assets/logo/index.d.ts +9 -7
- package/dist/auth/client/abyss-login.d.ts +2 -2
- package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.d.ts +2 -2
- package/dist/components/data/LineChart/LineChart.d.ts +10 -2
- package/dist/components/data/StatTile/StatTile.d.ts +5 -3
- package/dist/components/inputs/DateField/DateField.d.ts +7 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-DPp0aQVa.js → design-theme-DkGGYH91.js} +5250 -5224
- package/dist/{sortable.esm-BYVnqZQ-.js → editors-DkiY6BfJ.js} +31061 -26291
- package/dist/editors.js +4 -5272
- package/dist/hooks/use-rich-intl.hook.d.ts +36 -414
- package/dist/{index-z9-0V3EC.js → index-2l12Iu8k.js} +2 -2
- package/dist/{index-B2ZxOr31.js → index-B52OKB4p.js} +3 -3
- package/dist/{index-C7XhFFZA.js → index-BacMl_If.js} +2 -2
- package/dist/{index-CBIn4IuA.js → index-Bh7buNbj.js} +2 -2
- package/dist/{index-Bv63SeVQ.js → index-BoCgQirm.js} +2 -2
- package/dist/{index-DNhK2v38.js → index-CXGI5k75.js} +4 -4
- package/dist/{index-DzXd6CTA.js → index-Cg6Mv7QT.js} +2 -2
- package/dist/{index-DWi7OlB1.js → index-CgIjHnfl.js} +2 -2
- package/dist/{index-ZXDv7i0D.js → index-Cl1BSx17.js} +2 -2
- package/dist/{index-Bo9YtyKq.js → index-CtMx42h6.js} +2 -2
- package/dist/{index-yAKnJ5ME.js → index-CvRSR1eE.js} +2 -2
- package/dist/{index-RIO2UT1x.js → index-CwdirjZn.js} +2 -2
- package/dist/{index-C2CPAKkL.js → index-D1YeCKtd.js} +4 -4
- package/dist/{index-ByTOd2ak.js → index-DMiPquK5.js} +2 -2
- package/dist/{index-CS0JFqYy.js → index-DSjH42Mo.js} +3 -3
- package/dist/{index-CaWs53z9.js → index-DVsMyd7m.js} +2 -2
- package/dist/{index-CE5F7UaD.js → index-DW0z3W_H.js} +1 -1
- package/dist/{index-DVg7Zewe.js → index-DmCRAN1O.js} +2 -2
- package/dist/{index-CjAqdRJ0.js → index-KH3KmoUw.js} +4 -4
- package/dist/{index-CVp3TsdG.js → index-PHSTFO70.js} +3 -3
- package/dist/{index-DY51R82n.js → index-orVFXDIv.js} +3 -3
- package/dist/index.js +4491 -4467
- package/dist/isSymbol-CubIld3H.js +446 -0
- package/dist/legacy/components/Inputs/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +1 -1
- package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +10 -8
- package/dist/legacy/components/Support/support-service.logic.d.ts +6 -0
- package/dist/legacy/components/Support/types.d.ts +7 -7
- package/dist/legacy/components/index.d.ts +0 -1
- package/dist/legacy.js +6158 -12073
- package/dist/theme/tokens/domain.d.ts +5 -2
- package/dist/theme/tokens/product-marks.spec.d.ts +1 -0
- package/dist/translations/en.d.ts +7 -206
- package/dist/translations/fr.d.ts +7 -206
- package/dist/translations/product-naming.spec.d.ts +1 -0
- package/dist/utils/project-link-wording.utils.d.ts +2 -2
- package/package.json +4 -4
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +0 -14
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/crepe-theme.d.ts +0 -7
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/index.d.ts +0 -1
- package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +0 -3
- package/dist/legacy/components/PdfEditor/index.d.ts +0 -3
- package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +0 -19
- package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +0 -12
- package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +0 -13
- package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +0 -20
- package/dist/legacy/components/PdfEditor/tools/DrawTool.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/tools/RedactTool.d.ts +0 -8
- package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +0 -17
- package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +0 -15
- package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +0 -12
- package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +0 -44
- package/dist/legacy/components/PdfEditor/tools/tool-options-ui.d.ts +0 -5
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +0 -38
- package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +0 -15
- package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +0 -17
- package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
- package/dist/legacy/components/PdfEditor/viewer/ViewerControls.d.ts +0 -21
- /package/dist/legacy/components/{Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.spec.d.ts → Support/support-service.logic.spec.d.ts} +0 -0
- /package/dist/legacy/{components/PdfEditor/signature/resolve-asset.spec.d.ts → legacy-editors-removed.spec.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -105,8 +105,8 @@ Zone 4c-1 de la refonte du design system (carte #286) : les éditeurs Markdown e
|
|
|
105
105
|
libellés de Crepe traduits, poignée de 44 px au toucher. Les classes `.milkdown` et `.ProseMirror` ne changent pas.
|
|
106
106
|
- **`PdfEditor`** : mêmes props que l'éditeur legacy ; barre regroupée en six groupes, page blanche dans les deux
|
|
107
107
|
thèmes, couleurs d'annotation fixes (`pdf-colors`). Les opérations déjà enregistrées se rejouent à l'identique.
|
|
108
|
-
- **Legacy** : `AbyssMarkdownEditor` et `PdfEditor`
|
|
109
|
-
|
|
108
|
+
- **Legacy** : `AbyssMarkdownEditor` et `PdfEditor` sont retirés de `/legacy` (zone 4c-2, retrait cassant publié avec la
|
|
109
|
+
prochaine version majeure) ; les remplaçants sont `MarkdownEditor` et `PdfEditor` de `/editors`, avec les mêmes props.
|
|
110
110
|
- **Épinglage de `@abyss-project/main`** : inchangé par rapport à la 10.0.0.
|
|
111
111
|
|
|
112
112
|
### 9.6.0
|
|
@@ -24,10 +24,15 @@ const LATENCY = [
|
|
|
24
24
|
133, 117, 104, 97, 93, 90, 89,
|
|
25
25
|
];
|
|
26
26
|
|
|
27
|
+
/** The latency of a sentinel, without any check from 2 h to 5 h: those hours have no value. */
|
|
28
|
+
const LATENCY_WITH_GAP = LATENCY.map((value, hour) =>
|
|
29
|
+
hour >= 2 && hour < 6 ? null : value,
|
|
30
|
+
);
|
|
31
|
+
|
|
27
32
|
const hourly = (
|
|
28
33
|
id: string,
|
|
29
34
|
label: string,
|
|
30
|
-
values: number[],
|
|
35
|
+
values: (number | null)[],
|
|
31
36
|
tone?: ChartSeriesTone,
|
|
32
37
|
): LineChartSeries => ({
|
|
33
38
|
id,
|
|
@@ -69,7 +74,7 @@ export const LineChartPage = () => (
|
|
|
69
74
|
<Showcase
|
|
70
75
|
family="Données"
|
|
71
76
|
name="LineChart"
|
|
72
|
-
description="Courbes Nivo sous abyssNivoTheme : couleurs prises dans l'ordre de la palette data.series, ou dans status.* pour une série à ton ; aires empilées avec stacked ; légende au-delà d'une série, figure nommée et tableau des valeurs pour les lecteurs d'écran."
|
|
77
|
+
description="Courbes Nivo sous abyssNivoTheme : couleurs prises dans l'ordre de la palette data.series, ou dans status.* pour une série à ton ; aires empilées avec stacked ; un y à null interrompt la courbe ; légende au-delà d'une série, figure nommée et tableau des valeurs pour les lecteurs d'écran."
|
|
73
78
|
>
|
|
74
79
|
<Example title="Une série, aire">
|
|
75
80
|
<Surface padding={4}>
|
|
@@ -112,6 +117,18 @@ export const LineChartPage = () => (
|
|
|
112
117
|
/>
|
|
113
118
|
</Surface>
|
|
114
119
|
</Example>
|
|
120
|
+
<Example title="Trou : heures sans mesure (null)">
|
|
121
|
+
<Surface padding={4}>
|
|
122
|
+
<LineChart
|
|
123
|
+
series={[hourly('latency', 'Latence (ms)', LATENCY_WITH_GAP)]}
|
|
124
|
+
height={240}
|
|
125
|
+
area
|
|
126
|
+
formatX={formatHour}
|
|
127
|
+
formatY={(y) => count.format(y)}
|
|
128
|
+
label="Latence moyenne par heure, sans mesure de 2 h à 5 h"
|
|
129
|
+
/>
|
|
130
|
+
</Surface>
|
|
131
|
+
</Example>
|
|
115
132
|
<Example title="Palette des six séries">
|
|
116
133
|
<Surface padding={4}>
|
|
117
134
|
<LineChart
|
|
@@ -58,6 +58,22 @@ export const StatTilePage = () => (
|
|
|
58
58
|
/>
|
|
59
59
|
</Columns>
|
|
60
60
|
</Example>
|
|
61
|
+
<Example title="Avec une ligne d'appoint">
|
|
62
|
+
<Columns>
|
|
63
|
+
<StatTile
|
|
64
|
+
label="Événements"
|
|
65
|
+
value={formatInteger(1204)}
|
|
66
|
+
subtext="dont 12 erreurs sur la période"
|
|
67
|
+
/>
|
|
68
|
+
<StatTile
|
|
69
|
+
label="Temps de réponse moyen"
|
|
70
|
+
value={formatInteger(184)}
|
|
71
|
+
unit="ms"
|
|
72
|
+
subtext="p95 : 420 ms"
|
|
73
|
+
delta={{ value: formatPercentDelta(-0.08), tone: 'status.success' }}
|
|
74
|
+
/>
|
|
75
|
+
</Columns>
|
|
76
|
+
</Example>
|
|
61
77
|
<Example title="Avec unité">
|
|
62
78
|
<Columns>
|
|
63
79
|
<StatTile
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { styled } from '@mui/material/styles';
|
|
2
|
-
import { ToolIcon } from '../../src/components/meaning/ToolIcon/ToolIcon';
|
|
3
|
-
import type { ToolIconSize } from '../../src/components/meaning/ToolIcon/ToolIcon';
|
|
4
|
-
import { px } from '../../src/theme/components/shared';
|
|
5
|
-
import { ToolKind } from '../../src/theme/tokens/domain';
|
|
6
|
-
import { Example, Showcase } from '../frame';
|
|
7
|
-
|
|
8
|
-
const SIZES: ToolIconSize[] = [16, 20, 24, 32, 44];
|
|
9
|
-
|
|
10
|
-
const Tile = styled('figure')(({ theme }) => ({
|
|
11
|
-
margin: 0,
|
|
12
|
-
display: 'flex',
|
|
13
|
-
flexDirection: 'column',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
// Captions on one baseline whatever the icon size.
|
|
16
|
-
justifyContent: 'flex-end',
|
|
17
|
-
alignSelf: 'stretch',
|
|
18
|
-
gap: px(theme.design.space[2]),
|
|
19
|
-
width: px(theme.design.space[10] + theme.design.space[6]),
|
|
20
|
-
fontSize: px(theme.design.typeScale.small),
|
|
21
|
-
color: theme.design.tokens['text.secondary'],
|
|
22
|
-
'& > figcaption': { fontFamily: theme.design.fonts.mono },
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
export const ToolIconPage = () => (
|
|
26
|
-
<Showcase
|
|
27
|
-
family="Sens"
|
|
28
|
-
name="ToolIcon"
|
|
29
|
-
description="Icône de chaque produit de l'écosystème, en dégradé de marque : un outil se reconnaît à son icône, pas à une couleur."
|
|
30
|
-
>
|
|
31
|
-
<Example title="Les
|
|
32
|
-
{Object.values(ToolKind).map((tool) => (
|
|
33
|
-
<Tile key={tool}>
|
|
34
|
-
<ToolIcon tool={tool} size={32} label={tool} />
|
|
35
|
-
<figcaption>{tool}</figcaption>
|
|
36
|
-
</Tile>
|
|
37
|
-
))}
|
|
38
|
-
</Example>
|
|
39
|
-
<Example title="Les cinq tailles" framed>
|
|
40
|
-
{SIZES.map((size) => (
|
|
41
|
-
<Tile key={size}>
|
|
42
|
-
<ToolIcon tool={ToolKind.Cloud} size={size} label={`Cloud ${size}`} />
|
|
43
|
-
<figcaption>{size}</figcaption>
|
|
44
|
-
</Tile>
|
|
45
|
-
))}
|
|
46
|
-
</Example>
|
|
47
|
-
</Showcase>
|
|
48
|
-
);
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
import { ToolIcon } from '../../src/components/meaning/ToolIcon/ToolIcon';
|
|
3
|
+
import type { ToolIconSize } from '../../src/components/meaning/ToolIcon/ToolIcon';
|
|
4
|
+
import { px } from '../../src/theme/components/shared';
|
|
5
|
+
import { ToolKind } from '../../src/theme/tokens/domain';
|
|
6
|
+
import { Example, Showcase } from '../frame';
|
|
7
|
+
|
|
8
|
+
const SIZES: ToolIconSize[] = [16, 20, 24, 32, 44];
|
|
9
|
+
|
|
10
|
+
const Tile = styled('figure')(({ theme }) => ({
|
|
11
|
+
margin: 0,
|
|
12
|
+
display: 'flex',
|
|
13
|
+
flexDirection: 'column',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
// Captions on one baseline whatever the icon size.
|
|
16
|
+
justifyContent: 'flex-end',
|
|
17
|
+
alignSelf: 'stretch',
|
|
18
|
+
gap: px(theme.design.space[2]),
|
|
19
|
+
width: px(theme.design.space[10] + theme.design.space[6]),
|
|
20
|
+
fontSize: px(theme.design.typeScale.small),
|
|
21
|
+
color: theme.design.tokens['text.secondary'],
|
|
22
|
+
'& > figcaption': { fontFamily: theme.design.fonts.mono },
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
export const ToolIconPage = () => (
|
|
26
|
+
<Showcase
|
|
27
|
+
family="Sens"
|
|
28
|
+
name="ToolIcon"
|
|
29
|
+
description="Icône de chaque produit de l'écosystème, en dégradé de marque : un outil se reconnaît à son icône, pas à une couleur."
|
|
30
|
+
>
|
|
31
|
+
<Example title="Les vingt et un produits, 32 px" framed>
|
|
32
|
+
{Object.values(ToolKind).map((tool) => (
|
|
33
|
+
<Tile key={tool}>
|
|
34
|
+
<ToolIcon tool={tool} size={32} label={tool} />
|
|
35
|
+
<figcaption>{tool}</figcaption>
|
|
36
|
+
</Tile>
|
|
37
|
+
))}
|
|
38
|
+
</Example>
|
|
39
|
+
<Example title="Les cinq tailles" framed>
|
|
40
|
+
{SIZES.map((size) => (
|
|
41
|
+
<Tile key={size}>
|
|
42
|
+
<ToolIcon tool={ToolKind.Cloud} size={size} label={`Cloud ${size}`} />
|
|
43
|
+
<figcaption>{size}</figcaption>
|
|
44
|
+
</Tile>
|
|
45
|
+
))}
|
|
46
|
+
</Example>
|
|
47
|
+
</Showcase>
|
|
48
|
+
);
|