@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.
Files changed (139) hide show
  1. package/README.md +319 -334
  2. package/catalog/catalog-entries.ts +0 -2
  3. package/catalog/pages/index.ts +0 -4
  4. package/dist/{AbyssCookieConsentProvider-DTHchhfw.js → AbyssCookieConsentProvider-C3NZfWxR.js} +1532 -2151
  5. package/dist/{CookieConsentSettings.component-D13TqxZl.js → CookieConsentSettings.component-Dvbp3MIX.js} +1 -1
  6. package/dist/cookie-consent.js +2 -2
  7. package/dist/{design-theme-BGMTwRaP.js → design-theme-sPEoMB7j.js} +12200 -9258
  8. package/dist/hooks/quota-dialog.store.d.ts +1 -1
  9. package/dist/hooks/use-rich-intl.hook.d.ts +44 -666
  10. package/dist/{index-BlhbGVkk.js → index-BVGdsnC4.js} +2 -2
  11. package/dist/{index-s2djh_x_.js → index-C2KrTHAO.js} +2 -2
  12. package/dist/{index-kfzQWNLP.js → index-C9FzqvHz.js} +2 -2
  13. package/dist/{index-B9pFhQQG.js → index-CB-jdY_E.js} +2 -2
  14. package/dist/{index-JEsamj6m.js → index-CCaW-38I.js} +2 -2
  15. package/dist/{index-BUqYHWKw.js → index-CKCWWoQb.js} +3 -3
  16. package/dist/{index-Dop3xXC3.js → index-CNcmCFNN.js} +1 -1
  17. package/dist/{index-40JUFFwY.js → index-CXwwKVPn.js} +3 -3
  18. package/dist/{index-CdL2MLmd.js → index-Cb-uMz_V.js} +3 -3
  19. package/dist/{index-tN8hz-IX.js → index-CrWjgIMV.js} +4 -4
  20. package/dist/{index-BFBonBC2.js → index-D9s128sK.js} +4 -4
  21. package/dist/{index-D0EC1_iy.js → index-DD25yrsQ.js} +4 -4
  22. package/dist/{index-Cccq9d1E.js → index-DEqCdX0Q.js} +2 -2
  23. package/dist/{index-BsOQZ-n8.js → index-DIpJhT2r.js} +2 -2
  24. package/dist/index-DPi7aKci.js +95942 -0
  25. package/dist/{index-oBWWShwb.js → index-Di1amUHq.js} +2 -2
  26. package/dist/{index-CM-90k5s.js → index-DtHUaGVU.js} +3 -3
  27. package/dist/{index-Dk1JTU4K.js → index-QNJIP2m4.js} +2 -2
  28. package/dist/{index-DqAkOKf8.js → index-Ut9uJwau.js} +2 -2
  29. package/dist/{index-D7AFc1sX.js → index-aYivWEyJ.js} +2 -2
  30. package/dist/{index-CBrydj4V.js → index-lE9lxmTc.js} +2 -2
  31. package/dist/{index-BcRgJqSB.js → index-whpnjq54.js} +2 -2
  32. package/dist/index.js +7900 -5669
  33. package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +1 -1
  34. package/dist/legacy/components/PdfEditor/index.d.ts +2 -2
  35. package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +1 -1
  36. package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +1 -1
  37. package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +1 -1
  38. package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +1 -1
  39. package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +1 -1
  40. package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +1 -1
  41. package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +1 -1
  42. package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +1 -1
  43. package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +1 -1
  44. package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +1 -1
  45. package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +1 -1
  46. package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/types.d.ts +1 -1
  47. package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +1 -1
  48. package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +1 -1
  49. package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +2 -2
  50. package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +2 -2
  51. package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +1 -1
  52. package/dist/legacy.js +209 -26787
  53. package/dist/translations/en.d.ts +22 -333
  54. package/dist/translations/fr.d.ts +22 -333
  55. package/package.json +5 -12
  56. package/vite.config.ts +0 -4
  57. package/catalog/pages/MarkdownEditor.tsx +0 -48
  58. package/catalog/pages/PdfEditor.tsx +0 -153
  59. package/dist/AbyssCloud-IuD91X6C.js +0 -2949
  60. package/dist/Tabs-CZQ1JYlW.js +0 -2315
  61. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  62. package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +0 -19
  63. package/dist/components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts +0 -1
  64. package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +0 -17
  65. package/dist/components/editors/MarkdownEditor/index.d.ts +0 -2
  66. package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +0 -7
  67. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +0 -9
  68. package/dist/components/editors/PdfEditor/PdfEditor.spec.d.ts +0 -1
  69. package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +0 -8
  70. package/dist/components/editors/PdfEditor/index.d.ts +0 -3
  71. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +0 -26
  72. package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +0 -1
  73. package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +0 -15
  74. package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +0 -31
  75. package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +0 -1
  76. package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +0 -14
  77. package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +0 -19
  78. package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +0 -14
  79. package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +0 -19
  80. package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +0 -1
  81. package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +0 -28
  82. package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +0 -3
  83. package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +0 -17
  84. package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +0 -14
  85. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +0 -65
  86. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +0 -1
  87. package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +0 -24
  88. package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +0 -20
  89. package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +0 -34
  90. package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +0 -6
  91. package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +0 -13
  92. package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +0 -6
  93. package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +0 -6
  94. package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +0 -6
  95. package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +0 -5
  96. package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +0 -6
  97. package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +0 -14
  98. package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +0 -2
  99. package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +0 -14
  100. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +0 -14
  101. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +0 -1
  102. package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -28
  103. package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +0 -37
  104. package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +0 -1
  105. package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +0 -16
  106. package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +0 -1
  107. package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +0 -16
  108. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
  109. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +0 -1
  110. package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +0 -21
  111. package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +0 -1
  112. package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +0 -30
  113. package/dist/components/editors/editors-guard.spec.d.ts +0 -1
  114. package/dist/components/editors/index.d.ts +0 -2
  115. package/dist/editors.d.ts +0 -1
  116. package/dist/editors.js +0 -5151
  117. package/dist/sortable.esm-DM2HNEC7.js +0 -69322
  118. package/dist/translations/editors-i18n.spec.d.ts +0 -1
  119. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-acro-form-fields.d.ts +0 -0
  120. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-export.d.ts +0 -0
  121. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-page-order.d.ts +0 -0
  122. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-pdf-document.d.ts +0 -0
  123. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-undo-redo.d.ts +0 -0
  124. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/hooks/use-uploaded-docs.d.ts +0 -0
  125. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/actions.d.ts +0 -0
  126. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/apply.d.ts +0 -0
  127. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/apply.spec.d.ts +0 -0
  128. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/compute-page-order.d.ts +0 -0
  129. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/compute-page-order.spec.d.ts +0 -0
  130. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/extract.d.ts +0 -0
  131. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/extract.spec.d.ts +0 -0
  132. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/pdf-data-url.d.ts +0 -0
  133. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rasterize.d.ts +0 -0
  134. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/redact.d.ts +0 -0
  135. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/redact.spec.d.ts +0 -0
  136. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/reducer.d.ts +0 -0
  137. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/reducer.spec.d.ts +0 -0
  138. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rotate-coords.d.ts +0 -0
  139. /package/dist/{components/editors/PdfEditor/engine → legacy/components/PdfEditor}/operations/rotate-coords.spec.d.ts +0 -0
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
- import { PdfEditorProps } from '../../../components/editors/PdfEditor/engine/types';
2
+ import { PdfEditorProps } from './types';
3
3
  export declare const PdfEditor: React.FC<PdfEditorProps>;
@@ -1,3 +1,3 @@
1
1
  export { PdfEditor } from './PdfEditor';
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';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 { ShapeKind } from '../../../../components/editors/PdfEditor/engine/types';
2
+ import { ShapeKind } from '../types';
3
3
  interface ShapeToolProps {
4
4
  mode: 'shape' | 'highlight';
5
5
  shapeKind: ShapeKind;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { AssetPalette, EditorAction, SaveSignatureFn } from '../../../../components/editors/PdfEditor/engine/types';
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 { TextFontFamily } from '../../../../components/editors/PdfEditor/engine/types';
2
+ import { TextFontFamily } from '../types';
3
3
  interface TextToolProps {
4
4
  color: string;
5
5
  onColorChange: (c: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { AssetPalette, ToolKind, EditorAction, ExportOption } from '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../hooks/cloud-picker.types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
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 '../../../../components/editors/PdfEditor/engine/types';
4
- import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
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 '../../../../components/editors/PdfEditor/engine/types';
4
- import { InsertedPageRef } from '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
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 '../../../../components/editors/PdfEditor/engine/operations/compute-page-order';
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 {