@abyss-project/commons-front-core 11.0.0 → 11.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/README.md +15 -0
- package/catalog/catalog-entries.ts +2 -0
- package/catalog/pages/MarkdownEditor.tsx +48 -0
- package/catalog/pages/PdfEditor.tsx +153 -0
- package/catalog/pages/index.ts +4 -0
- package/catalog/specs/responsive.spec.ts +5 -1
- package/dist/AbyssCloud-IuD91X6C.js +2949 -0
- package/dist/{AbyssCookieConsentProvider-C3NZfWxR.js → AbyssCookieConsentProvider-PchfQjs2.js} +2038 -1407
- package/dist/{CookieConsentSettings.component-Dvbp3MIX.js → CookieConsentSettings.component-D8G0H6Wl.js} +1 -1
- package/dist/Tabs-CZQ1JYlW.js +2315 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +19 -0
- package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +17 -0
- package/dist/components/editors/MarkdownEditor/index.d.ts +2 -0
- package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +7 -0
- package/dist/components/editors/PdfEditor/PdfEditor.d.ts +9 -0
- package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +8 -0
- package/dist/components/editors/PdfEditor/engine/operations/reducer.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/engine/operations/rotate-coords.spec.d.ts +1 -0
- package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/types.d.ts +1 -2
- package/dist/components/editors/PdfEditor/index.d.ts +3 -0
- package/dist/components/editors/PdfEditor/pdf-colors.d.ts +26 -0
- package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +15 -0
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +31 -0
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +14 -0
- package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +19 -0
- package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +14 -0
- package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +19 -0
- package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +28 -0
- package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +3 -0
- package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +17 -0
- package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +14 -0
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +67 -0
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +24 -0
- package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +20 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +34 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +13 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +5 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +6 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +14 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +2 -0
- package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +14 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +14 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +28 -0
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +37 -0
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +16 -0
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +16 -0
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +26 -0
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +21 -0
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +1 -0
- package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +30 -0
- package/dist/components/editors/editors-guard.spec.d.ts +1 -0
- package/dist/components/editors/index.d.ts +2 -0
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-sPEoMB7j.js → design-theme-DPp0aQVa.js} +9302 -12244
- package/dist/editors.d.ts +1 -0
- package/dist/editors.js +5274 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +636 -0
- package/dist/{index-Cb-uMz_V.js → index-B2ZxOr31.js} +3 -3
- package/dist/{index-CCaW-38I.js → index-Bo9YtyKq.js} +2 -2
- package/dist/{index-DEqCdX0Q.js → index-Bv63SeVQ.js} +2 -2
- package/dist/{index-C2KrTHAO.js → index-ByTOd2ak.js} +2 -2
- package/dist/{index-DD25yrsQ.js → index-C2CPAKkL.js} +4 -4
- package/dist/{index-CB-jdY_E.js → index-C7XhFFZA.js} +2 -2
- package/dist/{index-DIpJhT2r.js → index-CBIn4IuA.js} +2 -2
- package/dist/{index-CNcmCFNN.js → index-CE5F7UaD.js} +1 -1
- package/dist/{index-CKCWWoQb.js → index-CS0JFqYy.js} +3 -3
- package/dist/{index-CXwwKVPn.js → index-CVp3TsdG.js} +3 -3
- package/dist/{index-C9FzqvHz.js → index-CaWs53z9.js} +2 -2
- package/dist/{index-CrWjgIMV.js → index-CjAqdRJ0.js} +4 -4
- package/dist/{index-D9s128sK.js → index-DNhK2v38.js} +4 -4
- package/dist/{index-Ut9uJwau.js → index-DVg7Zewe.js} +2 -2
- package/dist/{index-QNJIP2m4.js → index-DWi7OlB1.js} +2 -2
- package/dist/{index-DtHUaGVU.js → index-DY51R82n.js} +3 -3
- package/dist/{index-aYivWEyJ.js → index-DzXd6CTA.js} +2 -2
- package/dist/{index-whpnjq54.js → index-RIO2UT1x.js} +2 -2
- package/dist/{index-lE9lxmTc.js → index-ZXDv7i0D.js} +2 -2
- package/dist/{index-BVGdsnC4.js → index-yAKnJ5ME.js} +2 -2
- package/dist/{index-Di1amUHq.js → index-z9-0V3EC.js} +2 -2
- package/dist/index.js +5676 -7907
- package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/index.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +1 -1
- package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +2 -2
- package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +1 -1
- package/dist/legacy.js +26800 -209
- package/dist/sortable.esm-BYVnqZQ-.js +69330 -0
- package/dist/translations/editors-i18n.spec.d.ts +1 -0
- package/dist/translations/en.d.ts +318 -0
- package/dist/translations/fr.d.ts +318 -0
- package/package.json +13 -6
- package/vite.config.ts +4 -0
- package/dist/index-DPi7aKci.js +0 -95942
- /package/dist/{legacy/components/PdfEditor/operations/apply.spec.d.ts → components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/compute-page-order.spec.d.ts → components/editors/PdfEditor/PdfEditor.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-acro-form-fields.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-export.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-page-order.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-pdf-document.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-undo-redo.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-uploaded-docs.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/actions.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/apply.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/extract.spec.d.ts → components/editors/PdfEditor/engine/operations/apply.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/compute-page-order.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/redact.spec.d.ts → components/editors/PdfEditor/engine/operations/compute-page-order.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/extract.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/reducer.spec.d.ts → components/editors/PdfEditor/engine/operations/extract.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/pdf-data-url.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rasterize.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/redact.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor/operations/rotate-coords.spec.d.ts → components/editors/PdfEditor/engine/operations/redact.spec.d.ts} +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/reducer.d.ts +0 -0
- /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rotate-coords.d.ts +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CloudImportWiring } from '../../../../hooks/cloud-picker.types';
|
|
3
|
+
/** A PDF read from the device or AbyssCloud, waiting for its pages to be chosen. */
|
|
4
|
+
export interface InsertPagesFile {
|
|
5
|
+
numPages: number;
|
|
6
|
+
fileName: string;
|
|
7
|
+
}
|
|
8
|
+
export interface InsertPagesDialogProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
/** The file once read; null while the dialog still asks for one. */
|
|
11
|
+
file: InsertPagesFile | null;
|
|
12
|
+
/** A file is being read: the drop zone gives way to a status line. */
|
|
13
|
+
busy: boolean;
|
|
14
|
+
/** Why the last file could not be used, written under the drop zone. */
|
|
15
|
+
error: string | null;
|
|
16
|
+
/** When set, the drop zone also offers AbyssCloud. */
|
|
17
|
+
cloudImport?: CloudImportWiring;
|
|
18
|
+
/** The PDF dropped or picked from the device. */
|
|
19
|
+
onFiles: (files: File[]) => void;
|
|
20
|
+
/** The pages kept, as 0-based indices in ascending order. */
|
|
21
|
+
onConfirm: (selectedPages: number[]) => void;
|
|
22
|
+
onCancel: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The modal of « Insert pages »: first it asks for a PDF (drop zone, device picker, AbyssCloud),
|
|
26
|
+
* then, for a file of several pages, which of them to insert.
|
|
27
|
+
*/
|
|
28
|
+
export declare const InsertPagesDialog: React.FC<InsertPagesDialogProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PdfOperation, ToolKind, EditorAction, ShapeKind, TextFontFamily } from '../engine/types';
|
|
3
|
+
export 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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { PdfOperation, EditorAction, PdfEditorCloudImportProps } from '../engine/types';
|
|
4
|
+
import { InsertedPageRef } from '../engine/operations/compute-page-order';
|
|
5
|
+
/** Width of the sidebar in px; the host offsets the floating viewer controls by it. */
|
|
6
|
+
export declare const PAGE_SIDEBAR_WIDTH = 220;
|
|
7
|
+
export interface PageSidebarProps {
|
|
8
|
+
pdfDoc: PDFDocumentProxy;
|
|
9
|
+
operations: PdfOperation[];
|
|
10
|
+
activePageIndex: number;
|
|
11
|
+
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
12
|
+
insertionTable: Map<number, InsertedPageRef>;
|
|
13
|
+
dispatch: React.Dispatch<EditorAction>;
|
|
14
|
+
cloudImport?: PdfEditorCloudImportProps;
|
|
15
|
+
}
|
|
16
|
+
export declare const PageSidebar: React.FC<PageSidebarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { EditorAction, PdfOperation } from '../engine/types';
|
|
4
|
+
import { InsertedPageRef } from '../engine/operations/compute-page-order';
|
|
5
|
+
export 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>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
+
import { InsertedPageRef } from '../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>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export 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
|
+
/** The floating page navigation and zoom controls of the viewer. */
|
|
21
|
+
export declare const ViewerControls: React.FC<ViewerControlsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { RenderResult } from '@testing-library/react';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { UserLanguage } from '@abyss-project/main';
|
|
5
|
+
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
6
|
+
import { EditorAction, PdfOperation } from '../../engine/types';
|
|
7
|
+
import { ThemeMode } from '../../../../../theme';
|
|
8
|
+
export interface ViewerRenderOptions {
|
|
9
|
+
mode?: ThemeMode;
|
|
10
|
+
width?: number;
|
|
11
|
+
language?: UserLanguage;
|
|
12
|
+
}
|
|
13
|
+
export interface ViewerRenderResult extends RenderResult {
|
|
14
|
+
theme: Theme;
|
|
15
|
+
}
|
|
16
|
+
/** Renders `ui` under the root theme, the messages of the language and the confirm-dialog host. */
|
|
17
|
+
export declare const renderViewer: (ui: ReactElement, { mode, width, language, }?: ViewerRenderOptions) => ViewerRenderResult;
|
|
18
|
+
/** The page width in points of every page of `fakePdfDoc`. */
|
|
19
|
+
export declare const FAKE_PAGE_WIDTH_PT = 200;
|
|
20
|
+
export declare const FAKE_PAGE_HEIGHT_PT = 300;
|
|
21
|
+
/**
|
|
22
|
+
* A pdf.js document double: `numPages` pages of 200 x 300 pt whose render resolves at once. The
|
|
23
|
+
* viewer only reads `numPages` and `getPage`, so the double carries just those; the cast stands
|
|
24
|
+
* for the rest of the pdf.js proxy.
|
|
25
|
+
*/
|
|
26
|
+
export declare const fakePdfDoc: (numPages: number) => PDFDocumentProxy;
|
|
27
|
+
/** jsdom has no 2D canvas: gives every canvas a context that accepts the calls the viewer makes. */
|
|
28
|
+
export declare const stubCanvasContext: () => void;
|
|
29
|
+
/** The operations a mocked `dispatch` was asked to append, in order. */
|
|
30
|
+
export declare const addedOperations: (dispatch: (action: EditorAction) => void) => PdfOperation[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cookie-consent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, c as a, C as n, D as C, R as i, V as t, d as r, f as A, r as k, e as c, u as l, b, a as f, w as u } from "./AbyssCookieConsentProvider-
|
|
2
|
-
import { C as E } from "./CookieConsentSettings.component-
|
|
1
|
+
import { A as e, c as a, C as n, D as C, R as i, V as t, d as r, f as A, r as k, e as c, u as l, b, a as f, w as u } from "./AbyssCookieConsentProvider-PchfQjs2.js";
|
|
2
|
+
import { C as E } from "./CookieConsentSettings.component-D8G0H6Wl.js";
|
|
3
3
|
export {
|
|
4
4
|
e as AbyssCookieConsentProvider,
|
|
5
5
|
a as COOKIE_NAME,
|