@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.
Files changed (83) hide show
  1. package/README.md +2 -2
  2. package/catalog/pages/LineChart.tsx +19 -2
  3. package/catalog/pages/StatTile.tsx +16 -0
  4. package/catalog/pages/ToolIcon.tsx +48 -48
  5. package/dist/{AbyssCookieConsentProvider-PchfQjs2.js → AbyssCookieConsentProvider-D5jeL5KA.js} +1402 -1800
  6. package/dist/{CookieConsentSettings.component-D8G0H6Wl.js → CookieConsentSettings.component-C69wpa-v.js} +1 -1
  7. package/dist/{Tabs-CZQ1JYlW.js → Tabs-CwVEV4SO.js} +162 -142
  8. package/dist/assets/logo/index.d.ts +9 -7
  9. package/dist/auth/client/abyss-login.d.ts +2 -2
  10. package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.d.ts +2 -2
  11. package/dist/components/data/LineChart/LineChart.d.ts +10 -2
  12. package/dist/components/data/StatTile/StatTile.d.ts +5 -3
  13. package/dist/components/inputs/DateField/DateField.d.ts +7 -1
  14. package/dist/cookie-consent.js +2 -2
  15. package/dist/{design-theme-DPp0aQVa.js → design-theme-DkGGYH91.js} +5250 -5224
  16. package/dist/{sortable.esm-BYVnqZQ-.js → editors-DkiY6BfJ.js} +31061 -26291
  17. package/dist/editors.js +4 -5272
  18. package/dist/hooks/use-rich-intl.hook.d.ts +36 -414
  19. package/dist/{index-z9-0V3EC.js → index-2l12Iu8k.js} +2 -2
  20. package/dist/{index-B2ZxOr31.js → index-B52OKB4p.js} +3 -3
  21. package/dist/{index-C7XhFFZA.js → index-BacMl_If.js} +2 -2
  22. package/dist/{index-CBIn4IuA.js → index-Bh7buNbj.js} +2 -2
  23. package/dist/{index-Bv63SeVQ.js → index-BoCgQirm.js} +2 -2
  24. package/dist/{index-DNhK2v38.js → index-CXGI5k75.js} +4 -4
  25. package/dist/{index-DzXd6CTA.js → index-Cg6Mv7QT.js} +2 -2
  26. package/dist/{index-DWi7OlB1.js → index-CgIjHnfl.js} +2 -2
  27. package/dist/{index-ZXDv7i0D.js → index-Cl1BSx17.js} +2 -2
  28. package/dist/{index-Bo9YtyKq.js → index-CtMx42h6.js} +2 -2
  29. package/dist/{index-yAKnJ5ME.js → index-CvRSR1eE.js} +2 -2
  30. package/dist/{index-RIO2UT1x.js → index-CwdirjZn.js} +2 -2
  31. package/dist/{index-C2CPAKkL.js → index-D1YeCKtd.js} +4 -4
  32. package/dist/{index-ByTOd2ak.js → index-DMiPquK5.js} +2 -2
  33. package/dist/{index-CS0JFqYy.js → index-DSjH42Mo.js} +3 -3
  34. package/dist/{index-CaWs53z9.js → index-DVsMyd7m.js} +2 -2
  35. package/dist/{index-CE5F7UaD.js → index-DW0z3W_H.js} +1 -1
  36. package/dist/{index-DVg7Zewe.js → index-DmCRAN1O.js} +2 -2
  37. package/dist/{index-CjAqdRJ0.js → index-KH3KmoUw.js} +4 -4
  38. package/dist/{index-CVp3TsdG.js → index-PHSTFO70.js} +3 -3
  39. package/dist/{index-DY51R82n.js → index-orVFXDIv.js} +3 -3
  40. package/dist/index.js +4491 -4467
  41. package/dist/isSymbol-CubIld3H.js +446 -0
  42. package/dist/legacy/components/Inputs/index.d.ts +0 -1
  43. package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +1 -1
  44. package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +10 -8
  45. package/dist/legacy/components/Support/support-service.logic.d.ts +6 -0
  46. package/dist/legacy/components/Support/types.d.ts +7 -7
  47. package/dist/legacy/components/index.d.ts +0 -1
  48. package/dist/legacy.js +6158 -12073
  49. package/dist/theme/tokens/domain.d.ts +5 -2
  50. package/dist/theme/tokens/product-marks.spec.d.ts +1 -0
  51. package/dist/translations/en.d.ts +7 -206
  52. package/dist/translations/fr.d.ts +7 -206
  53. package/dist/translations/product-naming.spec.d.ts +1 -0
  54. package/dist/utils/project-link-wording.utils.d.ts +2 -2
  55. package/package.json +4 -4
  56. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +0 -14
  57. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/crepe-theme.d.ts +0 -7
  58. package/dist/legacy/components/Inputs/AbyssMarkdownEditor/index.d.ts +0 -1
  59. package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +0 -3
  60. package/dist/legacy/components/PdfEditor/index.d.ts +0 -3
  61. package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +0 -10
  62. package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +0 -19
  63. package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +0 -12
  64. package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +0 -13
  65. package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +0 -10
  66. package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +0 -20
  67. package/dist/legacy/components/PdfEditor/tools/DrawTool.d.ts +0 -9
  68. package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +0 -9
  69. package/dist/legacy/components/PdfEditor/tools/RedactTool.d.ts +0 -8
  70. package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +0 -17
  71. package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +0 -15
  72. package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +0 -12
  73. package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +0 -44
  74. package/dist/legacy/components/PdfEditor/tools/tool-options-ui.d.ts +0 -5
  75. package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +0 -9
  76. package/dist/legacy/components/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -10
  77. package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +0 -38
  78. package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +0 -15
  79. package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +0 -17
  80. package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
  81. package/dist/legacy/components/PdfEditor/viewer/ViewerControls.d.ts +0 -21
  82. /package/dist/legacy/components/{Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.spec.d.ts → Support/support-service.logic.spec.d.ts} +0 -0
  83. /package/dist/legacy/{components/PdfEditor/signature/resolve-asset.spec.d.ts → legacy-editors-removed.spec.d.ts} +0 -0
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DrawToolProps {
3
- color: string;
4
- strokeWidth: number;
5
- onColorChange: (color: string) => void;
6
- onStrokeWidthChange: (width: number) => void;
7
- }
8
- export declare const DrawTool: React.FC<DrawToolProps>;
9
- export {};
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { AcroFormField, EditorAction, PdfOperation } from '../../../../components/editors/PdfEditor/engine/types';
3
- interface FillFieldsToolProps {
4
- fields: AcroFormField[];
5
- operations: PdfOperation[];
6
- dispatch: React.Dispatch<EditorAction>;
7
- }
8
- export declare const FillFieldsTool: React.FC<FillFieldsToolProps>;
9
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- /**
3
- * Redaction is destructive: on export the affected pages are flattened to an
4
- * image with opaque black boxes, so the underlying text/content is gone for
5
- * good. The popover makes that consequence explicit before the user draws —
6
- * there is no styling to configure, only the warning + how-to.
7
- */
8
- export declare const RedactTool: React.FC;
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ShapeKind } from '../../../../components/editors/PdfEditor/engine/types';
3
- interface ShapeToolProps {
4
- mode: 'shape' | 'highlight';
5
- shapeKind: ShapeKind;
6
- onShapeKind: (k: ShapeKind) => void;
7
- color: string;
8
- onColorChange: (c: string) => void;
9
- strokeWidth: number;
10
- onStrokeWidthChange: (w: number) => void;
11
- fill: string | null;
12
- onFillChange: (c: string | null) => void;
13
- highlightColor: string;
14
- onHighlightColorChange: (c: string) => void;
15
- }
16
- export declare const ShapeTool: React.FC<ShapeToolProps>;
17
- export {};
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { AssetPalette, EditorAction, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
3
- import { ResolveAssetBytes } from '../signature/resolve-asset';
4
- interface SignatureToolProps {
5
- pendingSignature: string | null;
6
- pendingApplyAllPages: boolean;
7
- dispatch: React.Dispatch<EditorAction>;
8
- assetPalette?: AssetPalette;
9
- onSaveSignature?: SaveSignatureFn;
10
- resolveAssetBytes?: ResolveAssetBytes;
11
- onAssetError?: (message: string) => void;
12
- manageAssetsUrl?: string;
13
- }
14
- export declare const SignatureTool: React.FC<SignatureToolProps>;
15
- export {};
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TextFontFamily } from '../../../../components/editors/PdfEditor/engine/types';
3
- interface TextToolProps {
4
- color: string;
5
- onColorChange: (c: string) => void;
6
- size: number;
7
- onSizeChange: (s: number) => void;
8
- family: TextFontFamily;
9
- onFamilyChange: (f: TextFontFamily) => void;
10
- }
11
- export declare const TextTool: React.FC<TextToolProps>;
12
- export {};
@@ -1,44 +0,0 @@
1
- import { default as React } from 'react';
2
- import { AssetPalette, ToolKind, EditorAction, ExportOption } from '../../../../components/editors/PdfEditor/engine/types';
3
- import { ResolveAssetBytes } from '../signature/resolve-asset';
4
- interface ToolbarProps {
5
- activeTool: ToolKind;
6
- canUndo: boolean;
7
- canRedo: boolean;
8
- exporting: boolean;
9
- dispatch: React.Dispatch<EditorAction>;
10
- onExport: () => void;
11
- onSaveToCloud?: () => void;
12
- onChangeSource?: () => void;
13
- exportOptions: ExportOption[];
14
- fileName?: string;
15
- assetPalette?: AssetPalette;
16
- resolveAssetBytes?: ResolveAssetBytes;
17
- onAssetError?: (message: string) => void;
18
- pendingApplyAllPages?: boolean;
19
- /** Compact (narrow viewport): drop labels/filename so the bar never overflows. */
20
- compact?: boolean;
21
- sidebarOpen?: boolean;
22
- onToggleSidebar?: () => void;
23
- onAddBlankPage?: () => void;
24
- onAddPageNumbers?: () => void;
25
- onWatermark?: () => void;
26
- onInsertImage?: () => void;
27
- /** Insert an image picked from AbyssCloud (host-wired). */
28
- onInsertCloudImage?: () => void;
29
- onExtractPages?: () => void;
30
- /** Host-provided (qpdf-WASM) actions — shown only when wired. */
31
- onProtect?: () => void;
32
- onCompress?: () => void;
33
- /** True while a password/compress operation runs (disables those items). */
34
- securing?: boolean;
35
- /** Options panel for the active tool (null when the tool has none). Rendered
36
- * in a popover anchored to the active tool button (bottom sheet on mobile). */
37
- toolOptions?: React.ReactNode;
38
- /** True while a signature/image/text is armed for placement. The anchored
39
- * options popover is suppressed so it never covers the page the user must
40
- * click to drop it (a non-blocking placement banner takes over instead). */
41
- placementActive?: boolean;
42
- }
43
- export declare const Toolbar: React.FC<ToolbarProps>;
44
- export {};
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- /** Section label inside a tool-options popover (consistent across every tool). */
3
- export declare const OptionLabel: React.FC<{
4
- children: React.ReactNode;
5
- }>;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { EditorAction, PdfEditorCloudImportProps } from '../../../../components/editors/PdfEditor/engine/types';
3
- interface InsertPagesButtonProps {
4
- afterVirtualIndex: number;
5
- dispatch: React.Dispatch<EditorAction>;
6
- cloudImport?: PdfEditorCloudImportProps;
7
- }
8
- export declare const InsertPagesButton: React.FC<InsertPagesButtonProps>;
9
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- interface InsertPagesDialogProps {
3
- open: boolean;
4
- numPages: number;
5
- fileName: string;
6
- onConfirm: (selectedPages: number[]) => void;
7
- onCancel: () => void;
8
- }
9
- export declare const InsertPagesDialog: React.FC<InsertPagesDialogProps>;
10
- export {};
@@ -1,38 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PdfOperation, ToolKind, EditorAction, ShapeKind, TextFontFamily } from '../../../../components/editors/PdfEditor/engine/types';
3
- interface PageOverlayProps {
4
- pageIndex: number;
5
- displayIndex: number;
6
- width: number;
7
- height: number;
8
- operations: PdfOperation[];
9
- activeTool: ToolKind;
10
- activePageIndex: number;
11
- pendingSignature: string | null;
12
- pendingText: string | null;
13
- pendingApplyAllPages: boolean;
14
- /** Live virtual page indices (pageOrder) — the targets for "apply to all pages". */
15
- pageIndices: number[];
16
- dispatch: React.Dispatch<EditorAction>;
17
- drawColor?: string;
18
- drawStrokeWidth?: number;
19
- /** New-text styling (existing text keeps its own values). */
20
- textColor?: string;
21
- textSize?: number;
22
- textFamily?: TextFontFamily;
23
- /** Active shape kind (rect/ellipse/line/arrow) when the shape tool is on. */
24
- shapeKind?: ShapeKind;
25
- /** Fill color for rect/ellipse shapes (hex), or null for outline only. */
26
- shapeFill?: string | null;
27
- /** Highlighter color (hex). */
28
- highlightColor?: string;
29
- /** Render scale (px per PDF point) — driven by the zoom control. */
30
- scale?: number;
31
- /** Total displayed rotation (page intrinsic /Rotate + user delta), clockwise.
32
- * Annotations are stored in unrotated content space; the overlay maps pointer
33
- * input back to content space and renders inside a rotated inner layer so the
34
- * preview matches the baked output. */
35
- rotation?: number;
36
- }
37
- export declare const PageOverlay: React.FC<PageOverlayProps>;
38
- export {};
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PDFDocumentProxy } from 'pdfjs-dist';
3
- import { PdfOperation, EditorAction, PdfEditorCloudImportProps } from '../../../../components/editors/PdfEditor/engine/types';
4
- import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
5
- interface PageSidebarProps {
6
- pdfDoc: PDFDocumentProxy;
7
- operations: PdfOperation[];
8
- activePageIndex: number;
9
- uploadedDocs: Map<string, PDFDocumentProxy>;
10
- insertionTable: Map<number, InsertedPageRef>;
11
- dispatch: React.Dispatch<EditorAction>;
12
- cloudImport?: PdfEditorCloudImportProps;
13
- }
14
- export declare const PageSidebar: React.FC<PageSidebarProps>;
15
- export {};
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PDFDocumentProxy } from 'pdfjs-dist';
3
- import { EditorAction, PdfOperation } from '../../../../components/editors/PdfEditor/engine/types';
4
- import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
5
- interface PageThumbnailProps {
6
- pdfDoc: PDFDocumentProxy;
7
- uploadedDocs: Map<string, PDFDocumentProxy>;
8
- virtualIndex: number;
9
- insertedRef: InsertedPageRef | undefined;
10
- displayIndex: number;
11
- isActive: boolean;
12
- rotation: number;
13
- operations: PdfOperation[];
14
- dispatch: React.Dispatch<EditorAction>;
15
- }
16
- export declare const PageThumbnail: React.FC<PageThumbnailProps>;
17
- export {};
@@ -1,26 +0,0 @@
1
- import { default as React } from 'react';
2
- import { PDFDocumentProxy } from 'pdfjs-dist';
3
- import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
4
- declare const RENDER_SCALE = 1.5;
5
- export { RENDER_SCALE };
6
- interface PdfCanvasProps {
7
- pdfDoc: PDFDocumentProxy;
8
- uploadedDocs: Map<string, PDFDocumentProxy>;
9
- insertionTable: Map<number, InsertedPageRef>;
10
- blankPages?: Map<number, {
11
- widthPt: number;
12
- heightPt: number;
13
- }>;
14
- rotationMap?: Map<number, number>;
15
- scale?: number;
16
- activePageIndex: number;
17
- pageOrder: number[];
18
- onPageDimensions?: (pageIndex: number, width: number, height: number, totalRotation: number, pointWidth: number) => void;
19
- /** Reports the display index of the page currently dominant in the viewport. */
20
- onVisiblePageChange?: (displayIndex: number) => void;
21
- children?: (virtualIndex: number, displayIndex: number) => React.ReactNode;
22
- }
23
- export interface PdfCanvasHandle {
24
- scrollToPage: (displayIndex: number) => void;
25
- }
26
- export declare const PdfCanvas: React.ForwardRefExoticComponent<PdfCanvasProps & React.RefAttributes<PdfCanvasHandle>>;
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- interface ViewerControlsProps {
3
- /** Current zoom as a fraction of the base scale (1 = 100%). */
4
- zoom: number;
5
- onZoomIn: () => void;
6
- onZoomOut: () => void;
7
- onFitWidth: () => void;
8
- onResetZoom: () => void;
9
- canZoomIn: boolean;
10
- canZoomOut: boolean;
11
- currentPage: number;
12
- totalPages: number;
13
- onGoToPage: (index: number) => void;
14
- /** Narrow viewport: dock as a flush full-width bottom bar (no floating pills). */
15
- compact?: boolean;
16
- /** Width (px) of the inline page sidebar, so the floating pills center over the
17
- * PAGE region rather than the whole area (kept in sync with the placement banner). */
18
- sidebarWidth?: number;
19
- }
20
- export declare const ViewerControls: React.FC<ViewerControlsProps>;
21
- export {};