@abyss-project/commons-front-core 10.0.0 → 10.1.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 +334 -319
- 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/dist/AbyssCloud-IuD91X6C.js +2949 -0
- package/dist/{AbyssCookieConsentProvider-BypueFP-.js → AbyssCookieConsentProvider-DTHchhfw.js} +2012 -1383
- package/dist/{CookieConsentSettings.component-CYmew9vg.js → CookieConsentSettings.component-D13TqxZl.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 -1
- 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 +65 -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-uRG0VfEo.js → design-theme-BGMTwRaP.js} +9302 -12244
- package/dist/editors.d.ts +1 -0
- package/dist/editors.js +5151 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +632 -0
- package/dist/{index-BXr7rmpX.js → index-40JUFFwY.js} +3 -3
- package/dist/{index-B2hC6MII.js → index-B9pFhQQG.js} +2 -2
- package/dist/{index-DMm4DUwE.js → index-BFBonBC2.js} +4 -4
- package/dist/{index-eDLp-yzn.js → index-BUqYHWKw.js} +3 -3
- package/dist/{index-cCCQwSgM.js → index-BcRgJqSB.js} +2 -2
- package/dist/{index-B-o5nMSp.js → index-BlhbGVkk.js} +2 -2
- package/dist/{index-DSxaBHTZ.js → index-BsOQZ-n8.js} +2 -2
- package/dist/{index-1XaO6yqN.js → index-CBrydj4V.js} +2 -2
- package/dist/{index-D6SwHpGJ.js → index-CM-90k5s.js} +3 -3
- package/dist/{index-BWlJEtPU.js → index-Cccq9d1E.js} +2 -2
- package/dist/{index-Cn4VznqA.js → index-CdL2MLmd.js} +3 -3
- package/dist/{index-Bzvs4paS.js → index-D0EC1_iy.js} +4 -4
- package/dist/{index-B-gziyiQ.js → index-D7AFc1sX.js} +2 -2
- package/dist/{index-BlOn2KR_.js → index-Dk1JTU4K.js} +2 -2
- package/dist/{index-oTUDJjQw.js → index-Dop3xXC3.js} +1 -1
- package/dist/{index-QOUuevuY.js → index-DqAkOKf8.js} +2 -2
- package/dist/{index-CxRoV826.js → index-JEsamj6m.js} +2 -2
- package/dist/{index-C7vs9FFj.js → index-kfzQWNLP.js} +2 -2
- package/dist/{index-BGFuwS_Q.js → index-oBWWShwb.js} +2 -2
- package/dist/{index-D_FaSb6y.js → index-s2djh_x_.js} +2 -2
- package/dist/{index-BqwZB633.js → index-tN8hz-IX.js} +4 -4
- 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 +26787 -209
- package/dist/sortable.esm-DM2HNEC7.js +69322 -0
- package/dist/translations/editors-i18n.spec.d.ts +1 -0
- package/dist/translations/en.d.ts +316 -0
- package/dist/translations/fr.d.ts +316 -0
- package/package.json +8 -1
- package/vite.config.ts +4 -0
- package/dist/index-DXsaB2jy.js +0 -95929
- /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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { PdfEditor } from './PdfEditor';
|
|
2
|
-
export { PdfOperationType } from '
|
|
3
|
-
export type { PdfEditorProps, PdfOperation, ExportRequest, ExportOption, PdfSource, PdfEditorMode, AcroFormField, AssetPalette, AssetPaletteItem, AssetPaletteOrgBucket, AssetPaletteProjectBucket, SaveSignatureFn, OperationsAdapter, } from '
|
|
2
|
+
export { PdfOperationType } from '../../../components/editors/PdfEditor/engine/types';
|
|
3
|
+
export type { PdfEditorProps, PdfOperation, ExportRequest, ExportOption, PdfSource, PdfEditorMode, AcroFormField, AssetPalette, AssetPaletteItem, AssetPaletteOrgBucket, AssetPaletteProjectBucket, SaveSignatureFn, OperationsAdapter, } from '../../../components/editors/PdfEditor/engine/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface SignatureDrawCanvasProps {
|
|
4
4
|
onCapture: (dataUrl: string) => void;
|
|
5
5
|
onCancel: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
import { ResolveAssetBytes } from './resolve-asset';
|
|
4
4
|
interface SignaturePickerProps {
|
|
5
5
|
open: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface SignatureSaveButtonProps {
|
|
4
4
|
dataUrl: string | null;
|
|
5
5
|
onSave: SaveSignatureFn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette } from '
|
|
2
|
+
import { AssetPalette } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
import { ResolveAssetBytes } from './resolve-asset';
|
|
4
4
|
interface SignatureSavedListProps {
|
|
5
5
|
palette: AssetPalette;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface SignatureUploadDropzoneProps {
|
|
4
4
|
onCapture: (dataUrl: string) => void;
|
|
5
5
|
onCancel: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssetPaletteItem } from '
|
|
1
|
+
import { AssetPaletteItem } from '../../../../components/editors/PdfEditor/engine/types';
|
|
2
2
|
/**
|
|
3
3
|
* Host-provided resolver that returns a usable data URL for a server-stored
|
|
4
4
|
* asset. Authenticated hosts implement this via a presigned download so it works
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AcroFormField, EditorAction, PdfOperation } from '
|
|
2
|
+
import { AcroFormField, EditorAction, PdfOperation } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface FillFieldsToolProps {
|
|
4
4
|
fields: AcroFormField[];
|
|
5
5
|
operations: PdfOperation[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, EditorAction, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, EditorAction, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
import { ResolveAssetBytes } from '../signature/resolve-asset';
|
|
4
4
|
interface SignatureToolProps {
|
|
5
5
|
pendingSignature: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, ToolKind, EditorAction, ExportOption } from '
|
|
2
|
+
import { AssetPalette, ToolKind, EditorAction, ExportOption } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
import { ResolveAssetBytes } from '../signature/resolve-asset';
|
|
4
4
|
interface ToolbarProps {
|
|
5
5
|
activeTool: ToolKind;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { EditorAction, PdfEditorCloudImportProps } from '
|
|
2
|
+
import { EditorAction, PdfEditorCloudImportProps } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface InsertPagesButtonProps {
|
|
4
4
|
afterVirtualIndex: number;
|
|
5
5
|
dispatch: React.Dispatch<EditorAction>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { PdfOperation, ToolKind, EditorAction, ShapeKind, TextFontFamily } from '
|
|
2
|
+
import { PdfOperation, ToolKind, EditorAction, ShapeKind, TextFontFamily } from '../../../../components/editors/PdfEditor/engine/types';
|
|
3
3
|
interface PageOverlayProps {
|
|
4
4
|
pageIndex: number;
|
|
5
5
|
displayIndex: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
-
import { PdfOperation, EditorAction, PdfEditorCloudImportProps } from '
|
|
4
|
-
import { InsertedPageRef } from '
|
|
3
|
+
import { PdfOperation, EditorAction, PdfEditorCloudImportProps } from '../../../../components/editors/PdfEditor/engine/types';
|
|
4
|
+
import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
|
|
5
5
|
interface PageSidebarProps {
|
|
6
6
|
pdfDoc: PDFDocumentProxy;
|
|
7
7
|
operations: PdfOperation[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
-
import { EditorAction, PdfOperation } from '
|
|
4
|
-
import { InsertedPageRef } from '
|
|
3
|
+
import { EditorAction, PdfOperation } from '../../../../components/editors/PdfEditor/engine/types';
|
|
4
|
+
import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
|
|
5
5
|
interface PageThumbnailProps {
|
|
6
6
|
pdfDoc: PDFDocumentProxy;
|
|
7
7
|
uploadedDocs: Map<string, PDFDocumentProxy>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PDFDocumentProxy } from 'pdfjs-dist';
|
|
3
|
-
import { InsertedPageRef } from '
|
|
3
|
+
import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
|
|
4
4
|
declare const RENDER_SCALE = 1.5;
|
|
5
5
|
export { RENDER_SCALE };
|
|
6
6
|
interface PdfCanvasProps {
|