@abyss-project/commons-front-core 13.1.0 → 13.2.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 (64) hide show
  1. package/dist/{AbyssCloud-IuD91X6C.js → AbyssCloud-D_AbU9k7.js} +1 -1
  2. package/dist/AbyssCookieConsentProvider-Ds99df0E.js +4562 -0
  3. package/dist/{CookieConsentSettings.component-ZF6umBSH.js → CookieConsentSettings.component-DoWLHqw5.js} +10 -9
  4. package/dist/{Tabs-CYy30PTc.js → Tabs-C1qcQ2i5.js} +1 -1
  5. package/dist/auth/components/RequireSession/RequireSession.component.d.ts +3 -2
  6. package/dist/auth/components/SessionBoundary/AbyssSessionBoundary.component.d.ts +3 -2
  7. package/dist/auth/components/SessionErrorScreen/SessionErrorScreen.component.d.ts +3 -3
  8. package/dist/{isSymbol-CubIld3H.js → clsx-D8ItxkrZ.js} +73 -73
  9. package/dist/components/CodeEditor/CodeEditor.component.d.ts +29 -0
  10. package/dist/components/CodeEditor/DataSourceBrowser/path-formatter.utils.d.ts +14 -0
  11. package/dist/components/CodeEditor/DataSourceBrowser/types.d.ts +17 -0
  12. package/dist/components/CodeEditor/ExpressionCodeEditor.component.d.ts +13 -0
  13. package/dist/components/CodeEditor/ExpressionCodeEditor.component.spec.d.ts +1 -0
  14. package/dist/components/CodeEditor/FullScreenMonacoEditor.component.d.ts +13 -0
  15. package/dist/components/CodeEditor/index.d.ts +7 -0
  16. package/dist/components/CodeEditor/monaco-types-generator.d.ts +40 -0
  17. package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +57 -0
  18. package/dist/components/ScanStatus/InfectedDownloadWarningModal.spec.d.ts +1 -0
  19. package/dist/components/ScanStatus/ScanStatusIndicator.d.ts +102 -0
  20. package/dist/components/ScanStatus/ScanStatusIndicator.spec.d.ts +1 -0
  21. package/dist/components/ScanStatus/index.d.ts +6 -0
  22. package/dist/components/ScanStatus/use-infected-download-guard.hook.d.ts +37 -0
  23. package/dist/components/ScanStatus/use-infected-download-guard.hook.spec.d.ts +1 -0
  24. package/dist/components/data/DataTable/data-table.types.d.ts +5 -0
  25. package/dist/components/index.d.ts +1 -0
  26. package/dist/components/inputs/ExpressionSearch/expression-fade.d.ts +6 -0
  27. package/dist/cookie-consent.js +11 -10
  28. package/dist/{design-theme-jAV6pBoh.js → design-theme-CG4Gc105.js} +6118 -6070
  29. package/dist/{editors-Cs01hAfK.js → editors-CUsZNFfw.js} +15755 -15038
  30. package/dist/editors.d.ts +1 -0
  31. package/dist/editors.js +13 -4
  32. package/dist/hooks/use-rich-intl.hook.d.ts +48 -0
  33. package/dist/{index-BLWFMNK1.js → index-BQ4GXlMJ.js} +1 -1
  34. package/dist/{index-CQhfq-e2.js → index-Ba41aBBN.js} +2 -2
  35. package/dist/{index-Bw9dFzxv.js → index-BhFOCfCj.js} +2 -2
  36. package/dist/{index-CgdrkQAf.js → index-Bn4gTAno.js} +2 -2
  37. package/dist/{index-BB97MmlB.js → index-BzoBMWdL.js} +3 -3
  38. package/dist/{index-BQ-RHsS9.js → index-C7a2XXcz.js} +4 -4
  39. package/dist/{index-BSpED9Jn.js → index-CDpC4_po.js} +2 -2
  40. package/dist/{index-BYymsRFa.js → index-CM0x-TnE.js} +2 -2
  41. package/dist/{index-BG_7wul8.js → index-CYUixRIB.js} +2 -2
  42. package/dist/{index-Ce0hJGR7.js → index-CiDg4J7c.js} +4 -4
  43. package/dist/{index-BJ-WRVfA.js → index-CjV5ui_B.js} +2 -2
  44. package/dist/{index-CQIcz4k-.js → index-D1ro2oTw.js} +2 -2
  45. package/dist/{index-BOB-FVdo.js → index-DEBTvCWD.js} +3 -3
  46. package/dist/{index-DfzHovEF.js → index-DErJ9c2q.js} +2 -2
  47. package/dist/{index-CWzTvLyx.js → index-DobX4g2g.js} +2 -2
  48. package/dist/{index-C64fovtn.js → index-DuMzZrqc.js} +2 -2
  49. package/dist/{index-CHGLrOHZ.js → index-GTkZik4b.js} +3 -3
  50. package/dist/{index-B4BTrYji.js → index-Lyt4_W7a.js} +2 -2
  51. package/dist/{index-C918Bygt.js → index-TB7ekLl-.js} +2 -2
  52. package/dist/{index-BxEgyF6L.js → index-YzYX-H93.js} +3 -3
  53. package/dist/{index-YnJVcsc6.js → index-pnfk6VZ7.js} +4 -4
  54. package/dist/index.js +4799 -4252
  55. package/dist/legacy.js +13124 -13123
  56. package/dist/translations/en.d.ts +24 -0
  57. package/dist/translations/fr.d.ts +24 -0
  58. package/dist/{AbyssCookieConsentProvider-DJTKl58k.js → use-rich-intl.hook-BETUyCkW.js} +191 -4693
  59. package/dist/utils/index.d.ts +1 -0
  60. package/dist/utils/table-column-width.d.ts +58 -0
  61. package/dist/utils/table-column-width.spec.d.ts +1 -0
  62. package/package.json +5 -3
  63. package/vite.config.ts +2 -0
  64. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
@@ -15,3 +15,4 @@ export * from './privacy-link.constant';
15
15
  export * from './quota-offer-state.utils';
16
16
  export * from './family';
17
17
  export * from './file.utils';
18
+ export * from './table-column-width';
@@ -0,0 +1,58 @@
1
+ import { Theme } from '@mui/material/styles';
2
+ import { Locale } from 'date-fns';
3
+ /** The date and time of a row in the tool tables (« 15 oct. 2026 02:49 »). */
4
+ export declare const TABLE_DATE_TIME_PATTERN = "d MMM yyyy HH:mm";
5
+ /** The day of a row in the tool tables (« 15 oct. 2026 »). */
6
+ export declare const TABLE_DAY_PATTERN = "d MMM yyyy";
7
+ /** Side of a `fontSize="small"` MUI icon, in px. */
8
+ export declare const SMALL_ICON_PX = 20;
9
+ /** How the header of a column is drawn. */
10
+ export interface ColumnHeaderOptions {
11
+ /** The header is a sort button: once sorted, it shows its arrow after the label. */
12
+ sortable?: boolean;
13
+ }
14
+ /** Width of `text` in the mono family at the body size (cells marked `mono`). */
15
+ export declare const monoTextWidth: (theme: Theme, text: string) => number;
16
+ /** Upper bound of the width of `text` in the sans family at `size` (the body size by default). */
17
+ export declare const sansTextWidth: (theme: Theme, text: string, size?: number) => number;
18
+ /**
19
+ * Width of a core `StatusBadge` or `ScanBadge` showing `label`: its caption label, its side
20
+ * padding, its hairline border and, with `dot`, the leading dot and its gap.
21
+ */
22
+ export declare const badgeWidth: (theme: Theme, label: string, dot?: boolean) => number;
23
+ /**
24
+ * The longest rendering of a date-fns `pattern` over the twelve months, in `locale`: the locale
25
+ * the cells of the column are formatted with (this package's date-fns copy ignores the host's
26
+ * default locale, so it is passed).
27
+ */
28
+ export declare const longestDate: (pattern: string, locale: Locale) => string;
29
+ /** Width that shows a header label whole, in the header's small type, with its sort arrow. */
30
+ export declare const headerColumnWidth: (theme: Theme, header: string, options?: ColumnHeaderOptions) => number;
31
+ /**
32
+ * Width of a column whose cells are `contentWidths` px wide at most (an empty list for a column
33
+ * without rows yet), never narrower than its header.
34
+ */
35
+ export declare const contentColumnWidth: (theme: Theme, contentWidths: number[], header: string, options?: ColumnHeaderOptions) => number;
36
+ /** Width of a mono column holding the longest of `texts`, never narrower than its header. */
37
+ export declare const monoColumnWidth: (theme: Theme, texts: string[], header: string, options?: ColumnHeaderOptions) => number;
38
+ /** Width of a sans column holding the longest of `texts`, never narrower than its header. */
39
+ export declare const textColumnWidth: (theme: Theme, texts: string[], header: string, options?: ColumnHeaderOptions) => number;
40
+ /**
41
+ * Width of a column of badges holding the longest of `labels` (every label the column can show),
42
+ * never narrower than its header.
43
+ */
44
+ export declare const badgeColumnWidth: (theme: Theme, labels: string[], header: string, options?: ColumnHeaderOptions & {
45
+ dot?: boolean;
46
+ }) => number;
47
+ /**
48
+ * Width of a mono date column: the longest rendering of `pattern` over the twelve months, in
49
+ * `locale` (the date-fns locale the cells use), and never narrower than its header.
50
+ */
51
+ export declare const dateColumnWidth: (theme: Theme, pattern: string, locale: Locale, header: string, options?: ColumnHeaderOptions) => number;
52
+ /** Width of a column that shows one small icon (a row's « open » chevron). */
53
+ export declare const iconColumnWidth: (theme: Theme) => number;
54
+ /**
55
+ * Width of a column of `count` icon buttons side by side, `gap` apart: each button at the larger
56
+ * control size of the two densities, so the column holds them whatever the density.
57
+ */
58
+ export declare const iconActionsColumnWidth: (theme: Theme, count: number, gap: number) => number;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -87,7 +87,7 @@
87
87
  "react-is": "^18.0.0 || ^19.0.0",
88
88
  "react-router-dom": "^6.15.0",
89
89
  "zustand": "^5.0.0",
90
- "@abyss-project/main": "27.6.0"
90
+ "@abyss-project/main": "27.7.0"
91
91
  },
92
92
  "peerDependenciesMeta": {
93
93
  "@abyss-project/capacitor-auth": {
@@ -113,6 +113,7 @@
113
113
  "@milkdown/plugin-listener": "7.15.3",
114
114
  "@milkdown/react": "7.15.3",
115
115
  "@milkdown/utils": "7.15.3",
116
+ "@monaco-editor/react": "^4.7.0",
116
117
  "@nivo/bar": "^0.88.0",
117
118
  "@nivo/core": "^0.88.0",
118
119
  "@nivo/line": "^0.88.0",
@@ -127,6 +128,7 @@
127
128
  "flat": "^5.0.2",
128
129
  "formik": "^2.4.6",
129
130
  "lodash": "^4.17.21",
131
+ "monaco-editor": "^0.55.1",
130
132
  "pdf-lib": "^1.17.1",
131
133
  "pdfjs-dist": "^4.10.38",
132
134
  "qrcode": "^1.5.3",
@@ -137,7 +139,7 @@
137
139
  "use-debounce": "^10.0.5",
138
140
  "uuid": "^9.0.0",
139
141
  "yup": "^0.32.11",
140
- "@abyss-project/main": "27.6.0"
142
+ "@abyss-project/main": "27.7.0"
141
143
  },
142
144
  "devDependencies": {
143
145
  "@abyss-project/cloud": "^2.4.0",
package/vite.config.ts CHANGED
@@ -95,6 +95,8 @@ export default defineConfig({
95
95
  const exactNames = [
96
96
  'react', 'react-dom', 'react-intl', 'react-router-dom',
97
97
  'pdfjs-dist', 'pdf-lib',
98
+ // Monaco: one copy per app, resolved by the consumer (like pdf.js).
99
+ '@monaco-editor/react',
98
100
  // A dependency, resolved by the consumer: one WebAuthn copy per app.
99
101
  '@simplewebauthn/browser',
100
102
  'osx-temperature-sensor', 'fs', 'path', 'os',
@@ -1,8 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as c,
7
- l as g
8
- };