@abyss-project/commons-front-core 11.1.1 → 12.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/dist/{AbyssCookieConsentProvider-PchfQjs2.js → AbyssCookieConsentProvider-DrciI_3p.js} +1400 -1798
- package/dist/{CookieConsentSettings.component-D8G0H6Wl.js → CookieConsentSettings.component-BZ2JenJh.js} +1 -1
- package/dist/{Tabs-CZQ1JYlW.js → Tabs-CwVEV4SO.js} +162 -142
- 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/editors/PdfEditor/zoom-scale.d.ts +14 -0
- 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-DonQoVoX.js} +5251 -5230
- 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 +4322 -4303
- 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/legacy-editors-removed.spec.d.ts +1 -0
- package/dist/legacy.js +6158 -12073
- package/dist/translations/en.d.ts +7 -206
- package/dist/translations/fr.d.ts +7 -206
- 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 → components/editors/PdfEditor/zoom-scale.spec.d.ts} +0 -0
- /package/dist/legacy/components/{PdfEditor/signature/resolve-asset.spec.d.ts → Support/support-service.logic.spec.d.ts} +0 -0
|
@@ -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,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 {};
|
|
File without changes
|