@abyss-project/commons-front-core 21.0.1 → 21.1.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/CHANGELOG.md +1 -1
- package/dist/{CookieConsentSettings-BzeQZ5tD.js → CookieConsentSettings-DLAXlhzq.js} +1 -1
- package/dist/{Surface-t4XKtudZ.js → Surface-DfI6kpfH.js} +6 -4
- package/dist/{Tabs-DXgqVX6V.js → Tabs-OUGR85y6.js} +1 -1
- package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +24 -2
- package/dist/cookie-consent.js +2 -2
- package/dist/{editors-Dt29L0Ux.js → editors-sKJOUvJI.js} +2033 -2012
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +18 -0
- package/dist/{index-na4ea52T.js → index-BB71uFcN.js} +2 -2
- package/dist/{index-BYWcX6y7.js → index-BRT9GDE7.js} +2 -2
- package/dist/{index-C3iToWR_.js → index-BXc27aDR.js} +4 -4
- package/dist/{index-DGizXlGr.js → index-BbwDDHgK.js} +3 -3
- package/dist/{index-BHKOZzg1.js → index-BrRSvgLG.js} +1 -1
- package/dist/{index-D2yo-g20.js → index-Bw5-eBnW.js} +4 -4
- package/dist/{index-vX7Ua1iM.js → index-C0ZRmePf.js} +2 -2
- package/dist/{index-DbBqHu3d.js → index-CMTLY4d1.js} +2 -2
- package/dist/{index-BaS25rA-.js → index-CPECEPVh.js} +2 -2
- package/dist/{index-BYWSBoej.js → index-CUhujX7j.js} +3 -3
- package/dist/{index-Cs5brR68.js → index-Cr_TW_MQ.js} +3 -3
- package/dist/{index-Dg0a5ekJ.js → index-DF6OyOut.js} +2 -2
- package/dist/{index-3hRPEDk5.js → index-DGHWbqGP.js} +4 -4
- package/dist/{index-Bh0e5MGQ.js → index-DRoTcsqY.js} +2 -2
- package/dist/{index-D0E9e2bc.js → index-DShOFEmg.js} +2 -2
- package/dist/{index-Deq0UIQ5.js → index-DZUL6ADv.js} +2 -2
- package/dist/{index-BczDLUpv.js → index-Dee9IbNt.js} +2 -2
- package/dist/{index-ETHoxvZf.js → index-DsuYRWEt.js} +2 -2
- package/dist/{index-CNem7pV2.js → index-Du2k2BGy.js} +2 -2
- package/dist/{index-DLZ2_Fhk.js → index-JVmF9TsZ.js} +3 -3
- package/dist/{index-DvcQvaXv.js → index-YLy4c31j.js} +2 -2
- package/dist/index.js +7 -7
- package/dist/translations/en.d.ts +1 -0
- package/dist/translations/fr.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,7 @@ Breaking:
|
|
|
20
20
|
Added:
|
|
21
21
|
|
|
22
22
|
- `AVATAR_SMALL_SIZE` (`meaning/Avatar`, 24 px), next to `AVATAR_DEFAULT_SIZE`: the side of an avatar inside a field row or a list option. `AbyssProjectLinkField` takes it instead of a spacing step.
|
|
23
|
-
- `MobileShellActionBar({ actions })`: the action bar of a page of a `MobileShell`. Inside the shell it is portalled into a slot of the page frame, sticky against the tab bar even on a short page, full width, without a second bottom inset; outside a shell it renders an `ActionBar` in place. `MobileShell` now wraps its `children` in that frame (a flex column whose page grows to the height of the content area), with or without a bar.
|
|
23
|
+
- `MobileShellActionBar({ actions })`: the action bar of a page of a `MobileShell`. Inside the shell it is portalled into a slot of the page frame, sticky against the tab bar even on a short page, full width, without a second bottom inset; outside a shell it renders an `ActionBar` in place. `MobileShell` now wraps its `children` in that frame (a flex column whose page grows to the height of the content area), with or without a bar. The page's content sits in a block that grows to the bottom of the content area but has no definite height: a `height: 100%` or `minHeight: 100%` set by the page does not resolve (it did not under the shell's block `main` either).
|
|
24
24
|
- `PendingInvitations` (`components/business`): the invitations of a user to a content of a service, accept and decline per invitation (busy per row, a failure handed back to the host). Each invitation carries its `serviceName`. New keys `pending-invitations.*` (FR and EN); exported types `PendingInvitation`, `PendingInvitationsProps`.
|
|
25
25
|
- `AbyssProjectLinkField` (`components/business`): the organization and project picker that links a content to a project (own projects and shared ones). New keys `project-link-field.*` (FR and EN); exported types `AbyssProjectLinkFieldProps`, `AbyssProjectLinkOrganization`, `AbyssProjectLinkProject`, `AbyssProjectLinkProjects`.
|
|
26
26
|
- `utils/notification-target.utils`: `notificationTargetOf(notification, { invitationsPath, serviceTarget? })` (a shared content leads to its `contentUrl`, an invitation to `invitationsPath`, anything else to the host's `serviceTarget`), `isInvitationNotificationContentType(contentType)`, `notificationLinkOf(link)`, `fillsEveryMessageArgument(message, values)`, `messageArgumentNames(message)`. Against the copies they replace in the applications:
|
|
@@ -3,7 +3,7 @@ import { useState as v, useCallback as b, useEffect as T, useLayoutEffect as ie,
|
|
|
3
3
|
import w from "@mui/material/Button";
|
|
4
4
|
import Q from "@mui/material/Switch";
|
|
5
5
|
import { styled as y } from "@mui/material/styles";
|
|
6
|
-
import { T as K, w as O, p as f, d as D, D as N, S as R, a as V, u as M, M as C, b as X, h as ae, c as ce, e as le } from "./Surface-
|
|
6
|
+
import { T as K, w as O, p as f, d as D, D as N, S as R, a as V, u as M, M as C, b as X, h as ae, c as ce, e as le } from "./Surface-DfI6kpfH.js";
|
|
7
7
|
import { useQuery as de, useMutation as ue } from "@tanstack/react-query";
|
|
8
8
|
import { AbyssCore as j } from "@abyss-project/main";
|
|
9
9
|
import { createPortal as fe } from "react-dom";
|
|
@@ -453,6 +453,7 @@ const H = (e) => e, te = {
|
|
|
453
453
|
FLOW_WEBHOOK_DELIVERIES_MONTH: "Webhooks Flow / mois",
|
|
454
454
|
FLOW_WORKFLOW_CREDITS_MONTH: "Crédits d'automatisation Flow",
|
|
455
455
|
REFLEX_EXECUTIONS_MONTH: "Exécutions Reflex / mois",
|
|
456
|
+
REFLEX_ACTIVE_BOTS_COUNT: "Bots Discord actifs",
|
|
456
457
|
CONSOLE_VAULT_ENTRIES_COUNT: "Entrées du Coffre",
|
|
457
458
|
RUM_SESSIONS_MONTH: "Sessions navigateur Monitor / mois",
|
|
458
459
|
REHYDRATION_CONCURRENT_JOBS: "Réhydratations simultanées",
|
|
@@ -518,6 +519,7 @@ const H = (e) => e, te = {
|
|
|
518
519
|
FLOW_WEBHOOK_DELIVERIES_MONTH: "Flow webhooks / month",
|
|
519
520
|
FLOW_WORKFLOW_CREDITS_MONTH: "Flow automation credits",
|
|
520
521
|
REFLEX_EXECUTIONS_MONTH: "Reflex executions / month",
|
|
522
|
+
REFLEX_ACTIVE_BOTS_COUNT: "Active Discord bots",
|
|
521
523
|
CONSOLE_VAULT_ENTRIES_COUNT: "Vault entries",
|
|
522
524
|
RUM_SESSIONS_MONTH: "Monitor browser sessions / month",
|
|
523
525
|
REHYDRATION_CONCURRENT_JOBS: "Concurrent rehydrations",
|
|
@@ -1125,7 +1127,7 @@ const Xe = {
|
|
|
1125
1127
|
MEMBERS_COUNT: "Membres",
|
|
1126
1128
|
TEAM_COUNT: "Équipes",
|
|
1127
1129
|
API_KEYS_COUNT: "Clés API",
|
|
1128
|
-
LOG_EVENTS: "Événements logs /
|
|
1130
|
+
LOG_EVENTS: "Événements logs / mois",
|
|
1129
1131
|
APPLICATIONS: "Applications",
|
|
1130
1132
|
RETENTION_DAYS: "Rétention (jours)",
|
|
1131
1133
|
FILES_COUNT: "Fichiers",
|
|
@@ -1204,7 +1206,7 @@ const Xe = {
|
|
|
1204
1206
|
"plan-feature": {
|
|
1205
1207
|
PROJECTS_COUNT: "{unlimited, select, true {Projets illimités} other {{limit} projets}}",
|
|
1206
1208
|
MEMBERS_COUNT: "{unlimited, select, true {Membres illimités} other {{limit} membres}}",
|
|
1207
|
-
LOG_EVENTS: "{unlimited, select, true {Événements illimités} other {{limit, number} événements/
|
|
1209
|
+
LOG_EVENTS: "{unlimited, select, true {Événements illimités} other {{limit, number} événements/mois}}",
|
|
1208
1210
|
APPLICATIONS: "{unlimited, select, true {Applications illimitées} other {{limit} applications}}",
|
|
1209
1211
|
RETENTION_DAYS: "{unlimited, select, true {Rétention illimitée} other {{limit} jours de rétention}}"
|
|
1210
1212
|
}
|
|
@@ -3545,7 +3547,7 @@ const Xe = {
|
|
|
3545
3547
|
MEMBERS_COUNT: "Members",
|
|
3546
3548
|
TEAM_COUNT: "Teams",
|
|
3547
3549
|
API_KEYS_COUNT: "API Keys",
|
|
3548
|
-
LOG_EVENTS: "Log events /
|
|
3550
|
+
LOG_EVENTS: "Log events / month",
|
|
3549
3551
|
APPLICATIONS: "Applications",
|
|
3550
3552
|
RETENTION_DAYS: "Retention (days)",
|
|
3551
3553
|
FILES_COUNT: "Files",
|
|
@@ -3624,7 +3626,7 @@ const Xe = {
|
|
|
3624
3626
|
"plan-feature": {
|
|
3625
3627
|
PROJECTS_COUNT: "{unlimited, select, true {Unlimited projects} other {{limit} projects}}",
|
|
3626
3628
|
MEMBERS_COUNT: "{unlimited, select, true {Unlimited members} other {{limit} members}}",
|
|
3627
|
-
LOG_EVENTS: "{unlimited, select, true {Unlimited events} other {{limit, number} events/
|
|
3629
|
+
LOG_EVENTS: "{unlimited, select, true {Unlimited events} other {{limit, number} events/month}}",
|
|
3628
3630
|
APPLICATIONS: "{unlimited, select, true {Unlimited applications} other {{limit} applications}}",
|
|
3629
3631
|
RETENTION_DAYS: "{unlimited, select, true {Unlimited retention} other {{limit} days retention}}"
|
|
3630
3632
|
}
|
|
@@ -8,7 +8,7 @@ import Ja from "@mui/material/Select";
|
|
|
8
8
|
import { styled as w, useTheme as Qa, getContrastRatio as Nt } from "@mui/material/styles";
|
|
9
9
|
import { visuallyHidden as $t } from "@mui/utils";
|
|
10
10
|
import { useIntl as ge } from "react-intl";
|
|
11
|
-
import { p as c, h as me, d as Ce, D as Te, a as ve, t as Wn, s as ct, g as Ne, i as qe, c as qn, e as Hn, j as ei, B as ti } from "./Surface-
|
|
11
|
+
import { p as c, h as me, d as Ce, D as Te, a as ve, t as Wn, s as ct, g as Ne, i as qe, c as qn, e as Hn, j as ei, B as ti } from "./Surface-DfI6kpfH.js";
|
|
12
12
|
import Oe from "@mui/material/Button";
|
|
13
13
|
import { byteSizeIEC as ni } from "@abyss-project/main";
|
|
14
14
|
import ai from "@mui/icons-material/FileUploadOutlined";
|
|
@@ -7,8 +7,19 @@ export type MarkdownEditorProps = {
|
|
|
7
7
|
externalValue?: string;
|
|
8
8
|
onChange?: (md: string) => void;
|
|
9
9
|
readOnly?: boolean;
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Uploads a file and returns the value to store in the document for it: the file reference
|
|
12
|
+
* (`abyss-file:public-access/<id>`), never a URL on a host. Written as is in ``
|
|
13
|
+
* or `[name](value)`.
|
|
14
|
+
*/
|
|
11
15
|
onUploadFile?: (file: File) => Promise<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Turns a stored file value (a reference) into the URL the browser reads: an image is drawn
|
|
18
|
+
* from it and a click on a link to the file opens it, in editing and in reading. The document
|
|
19
|
+
* keeps the stored value; only what is shown is resolved. Absent: images and links are shown
|
|
20
|
+
* as stored.
|
|
21
|
+
*/
|
|
22
|
+
resolveFileUrl?: (value: string) => string;
|
|
12
23
|
enableImageUpload?: boolean;
|
|
13
24
|
enableFileUpload?: boolean;
|
|
14
25
|
} & CrepeConfig;
|
|
@@ -39,8 +50,19 @@ export declare const MarkdownEditor: React.ForwardRefExoticComponent<{
|
|
|
39
50
|
externalValue?: string;
|
|
40
51
|
onChange?: (md: string) => void;
|
|
41
52
|
readOnly?: boolean;
|
|
42
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* Uploads a file and returns the value to store in the document for it: the file reference
|
|
55
|
+
* (`abyss-file:public-access/<id>`), never a URL on a host. Written as is in ``
|
|
56
|
+
* or `[name](value)`.
|
|
57
|
+
*/
|
|
43
58
|
onUploadFile?: (file: File) => Promise<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Turns a stored file value (a reference) into the URL the browser reads: an image is drawn
|
|
61
|
+
* from it and a click on a link to the file opens it, in editing and in reading. The document
|
|
62
|
+
* keeps the stored value; only what is shown is resolved. Absent: images and links are shown
|
|
63
|
+
* as stored.
|
|
64
|
+
*/
|
|
65
|
+
resolveFileUrl?: (value: string) => string;
|
|
44
66
|
enableImageUpload?: boolean;
|
|
45
67
|
enableFileUpload?: boolean;
|
|
46
68
|
} & CrepeConfig & React.RefAttributes<MarkdownEditorHandle>>;
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-
|
|
2
|
-
import { f as p } from "./Surface-
|
|
1
|
+
import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-DLAXlhzq.js";
|
|
2
|
+
import { f as p } from "./Surface-DfI6kpfH.js";
|
|
3
3
|
export {
|
|
4
4
|
o as AbyssCookieConsentProvider,
|
|
5
5
|
a as CONSENT_VALIDITY_DAYS,
|