@abyss-project/commons-front-core 10.1.0 → 11.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 +319 -334
- package/catalog/catalog-entries.ts +0 -2
- package/catalog/pages/index.ts +0 -4
- package/dist/{AbyssCookieConsentProvider-DTHchhfw.js → AbyssCookieConsentProvider-C3NZfWxR.js} +1532 -2151
- package/dist/{CookieConsentSettings.component-D13TqxZl.js → CookieConsentSettings.component-Dvbp3MIX.js} +1 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-BGMTwRaP.js → design-theme-sPEoMB7j.js} +12200 -9258
- package/dist/hooks/quota-dialog.store.d.ts +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +44 -666
- package/dist/{index-BlhbGVkk.js → index-BVGdsnC4.js} +2 -2
- package/dist/{index-s2djh_x_.js → index-C2KrTHAO.js} +2 -2
- package/dist/{index-kfzQWNLP.js → index-C9FzqvHz.js} +2 -2
- package/dist/{index-B9pFhQQG.js → index-CB-jdY_E.js} +2 -2
- package/dist/{index-JEsamj6m.js → index-CCaW-38I.js} +2 -2
- package/dist/{index-BUqYHWKw.js → index-CKCWWoQb.js} +3 -3
- package/dist/{index-Dop3xXC3.js → index-CNcmCFNN.js} +1 -1
- package/dist/{index-40JUFFwY.js → index-CXwwKVPn.js} +3 -3
- package/dist/{index-CdL2MLmd.js → index-Cb-uMz_V.js} +3 -3
- package/dist/{index-tN8hz-IX.js → index-CrWjgIMV.js} +4 -4
- package/dist/{index-BFBonBC2.js → index-D9s128sK.js} +4 -4
- package/dist/{index-D0EC1_iy.js → index-DD25yrsQ.js} +4 -4
- package/dist/{index-Cccq9d1E.js → index-DEqCdX0Q.js} +2 -2
- package/dist/{index-BsOQZ-n8.js → index-DIpJhT2r.js} +2 -2
- package/dist/index-DPi7aKci.js +95942 -0
- package/dist/{index-oBWWShwb.js → index-Di1amUHq.js} +2 -2
- package/dist/{index-CM-90k5s.js → index-DtHUaGVU.js} +3 -3
- package/dist/{index-Dk1JTU4K.js → index-QNJIP2m4.js} +2 -2
- package/dist/{index-DqAkOKf8.js → index-Ut9uJwau.js} +2 -2
- package/dist/{index-D7AFc1sX.js → index-aYivWEyJ.js} +2 -2
- package/dist/{index-CBrydj4V.js → index-lE9lxmTc.js} +2 -2
- package/dist/{index-BcRgJqSB.js → index-whpnjq54.js} +2 -2
- package/dist/index.js +7900 -5669
- 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/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/types.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 +209 -26787
- package/dist/translations/en.d.ts +22 -333
- package/dist/translations/fr.d.ts +22 -333
- package/package.json +5 -12
- package/vite.config.ts +0 -4
- package/catalog/pages/MarkdownEditor.tsx +0 -48
- package/catalog/pages/PdfEditor.tsx +0 -153
- package/dist/AbyssCloud-IuD91X6C.js +0 -2949
- package/dist/Tabs-CZQ1JYlW.js +0 -2315
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +0 -19
- package/dist/components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts +0 -1
- package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +0 -17
- package/dist/components/editors/MarkdownEditor/index.d.ts +0 -2
- package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +0 -7
- package/dist/components/editors/PdfEditor/PdfEditor.d.ts +0 -9
- package/dist/components/editors/PdfEditor/PdfEditor.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +0 -8
- package/dist/components/editors/PdfEditor/index.d.ts +0 -3
- package/dist/components/editors/PdfEditor/pdf-colors.d.ts +0 -26
- package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +0 -15
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +0 -31
- package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +0 -14
- package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +0 -19
- package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +0 -14
- package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +0 -19
- package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +0 -28
- package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +0 -3
- package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +0 -17
- package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +0 -14
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +0 -65
- package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +0 -24
- package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +0 -20
- package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +0 -34
- package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +0 -6
- package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +0 -13
- package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +0 -6
- package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +0 -6
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +0 -6
- package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +0 -5
- package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +0 -6
- package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +0 -14
- package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +0 -2
- package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +0 -14
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +0 -14
- package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -28
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +0 -37
- package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +0 -16
- package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +0 -16
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
- package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +0 -21
- package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +0 -1
- package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +0 -30
- package/dist/components/editors/editors-guard.spec.d.ts +0 -1
- package/dist/components/editors/index.d.ts +0 -2
- package/dist/editors.d.ts +0 -1
- package/dist/editors.js +0 -5151
- package/dist/sortable.esm-DM2HNEC7.js +0 -69322
- package/dist/translations/editors-i18n.spec.d.ts +0 -1
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-acro-form-fields.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-export.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-page-order.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-pdf-document.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-undo-redo.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-uploaded-docs.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/actions.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/apply.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/apply.spec.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/compute-page-order.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/compute-page-order.spec.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/extract.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/extract.spec.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/pdf-data-url.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rasterize.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/redact.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/redact.spec.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/reducer.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/reducer.spec.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rotate-coords.d.ts +0 -0
- /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rotate-coords.spec.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 './types';
|
|
3
|
+
export type { PdfEditorProps, PdfOperation, ExportRequest, ExportOption, PdfSource, PdfEditorMode, AcroFormField, AssetPalette, AssetPaletteItem, AssetPaletteOrgBucket, AssetPaletteProjectBucket, SaveSignatureFn, OperationsAdapter, } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { AssetPalette, SaveSignatureFn } from '
|
|
2
|
+
import { AssetPalette, SaveSignatureFn } from '../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 '../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 '../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 '../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 '../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 '../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 '../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 '../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 '../types';
|
|
3
3
|
import { ResolveAssetBytes } from '../signature/resolve-asset';
|
|
4
4
|
interface ToolbarProps {
|
|
5
5
|
activeTool: ToolKind;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AssetKind } from '@abyss-project/main';
|
|
3
3
|
import { ISpace, IFile } from '@abyss-project/cloud';
|
|
4
|
-
import { CloudPicker } from '
|
|
4
|
+
import { CloudPicker } from '../../../hooks/cloud-picker.types';
|
|
5
5
|
/**
|
|
6
6
|
* Wiring for cloud-backed insertions inside the editor (currently only the
|
|
7
7
|
* "Insert pages" button): the picker returned by `useCloudPicker`, plus a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { EditorAction, PdfEditorCloudImportProps } from '
|
|
2
|
+
import { EditorAction, PdfEditorCloudImportProps } from '../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 '../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 '../types';
|
|
4
|
+
import { InsertedPageRef } from '../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 '../types';
|
|
4
|
+
import { InsertedPageRef } from '../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 '../operations/compute-page-order';
|
|
4
4
|
declare const RENDER_SCALE = 1.5;
|
|
5
5
|
export { RENDER_SCALE };
|
|
6
6
|
interface PdfCanvasProps {
|