@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.
Files changed (139) hide show
  1. package/README.md +15 -0
  2. package/catalog/catalog-entries.ts +2 -0
  3. package/catalog/pages/MarkdownEditor.tsx +48 -0
  4. package/catalog/pages/PdfEditor.tsx +153 -0
  5. package/catalog/pages/index.ts +4 -0
  6. package/catalog/specs/responsive.spec.ts +5 -1
  7. package/dist/AbyssCloud-IuD91X6C.js +2949 -0
  8. package/dist/{AbyssCookieConsentProvider-C3NZfWxR.js → AbyssCookieConsentProvider-PchfQjs2.js} +2038 -1407
  9. package/dist/{CookieConsentSettings.component-Dvbp3MIX.js → CookieConsentSettings.component-D8G0H6Wl.js} +1 -1
  10. package/dist/Tabs-CZQ1JYlW.js +2315 -0
  11. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  12. package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +19 -0
  13. package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +17 -0
  14. package/dist/components/editors/MarkdownEditor/index.d.ts +2 -0
  15. package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +7 -0
  16. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +9 -0
  17. package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +8 -0
  18. package/dist/components/editors/PdfEditor/engine/operations/reducer.spec.d.ts +1 -0
  19. package/dist/components/editors/PdfEditor/engine/operations/rotate-coords.spec.d.ts +1 -0
  20. package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/types.d.ts +1 -2
  21. package/dist/components/editors/PdfEditor/index.d.ts +3 -0
  22. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +26 -0
  23. package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +1 -0
  24. package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +15 -0
  25. package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +31 -0
  26. package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +1 -0
  27. package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +14 -0
  28. package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +19 -0
  29. package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +14 -0
  30. package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +19 -0
  31. package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +1 -0
  32. package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +28 -0
  33. package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +3 -0
  34. package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +17 -0
  35. package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +14 -0
  36. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +67 -0
  37. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +1 -0
  38. package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +24 -0
  39. package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +20 -0
  40. package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +34 -0
  41. package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +6 -0
  42. package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +13 -0
  43. package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +6 -0
  44. package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +6 -0
  45. package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +6 -0
  46. package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +5 -0
  47. package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +6 -0
  48. package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +14 -0
  49. package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +2 -0
  50. package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +14 -0
  51. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +14 -0
  52. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +1 -0
  53. package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +28 -0
  54. package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +37 -0
  55. package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +1 -0
  56. package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +16 -0
  57. package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +1 -0
  58. package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +16 -0
  59. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +26 -0
  60. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +1 -0
  61. package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +21 -0
  62. package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +1 -0
  63. package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +30 -0
  64. package/dist/components/editors/editors-guard.spec.d.ts +1 -0
  65. package/dist/components/editors/index.d.ts +2 -0
  66. package/dist/cookie-consent.js +2 -2
  67. package/dist/{design-theme-sPEoMB7j.js → design-theme-DPp0aQVa.js} +9302 -12244
  68. package/dist/editors.d.ts +1 -0
  69. package/dist/editors.js +5274 -0
  70. package/dist/hooks/use-rich-intl.hook.d.ts +636 -0
  71. package/dist/{index-Cb-uMz_V.js → index-B2ZxOr31.js} +3 -3
  72. package/dist/{index-CCaW-38I.js → index-Bo9YtyKq.js} +2 -2
  73. package/dist/{index-DEqCdX0Q.js → index-Bv63SeVQ.js} +2 -2
  74. package/dist/{index-C2KrTHAO.js → index-ByTOd2ak.js} +2 -2
  75. package/dist/{index-DD25yrsQ.js → index-C2CPAKkL.js} +4 -4
  76. package/dist/{index-CB-jdY_E.js → index-C7XhFFZA.js} +2 -2
  77. package/dist/{index-DIpJhT2r.js → index-CBIn4IuA.js} +2 -2
  78. package/dist/{index-CNcmCFNN.js → index-CE5F7UaD.js} +1 -1
  79. package/dist/{index-CKCWWoQb.js → index-CS0JFqYy.js} +3 -3
  80. package/dist/{index-CXwwKVPn.js → index-CVp3TsdG.js} +3 -3
  81. package/dist/{index-C9FzqvHz.js → index-CaWs53z9.js} +2 -2
  82. package/dist/{index-CrWjgIMV.js → index-CjAqdRJ0.js} +4 -4
  83. package/dist/{index-D9s128sK.js → index-DNhK2v38.js} +4 -4
  84. package/dist/{index-Ut9uJwau.js → index-DVg7Zewe.js} +2 -2
  85. package/dist/{index-QNJIP2m4.js → index-DWi7OlB1.js} +2 -2
  86. package/dist/{index-DtHUaGVU.js → index-DY51R82n.js} +3 -3
  87. package/dist/{index-aYivWEyJ.js → index-DzXd6CTA.js} +2 -2
  88. package/dist/{index-whpnjq54.js → index-RIO2UT1x.js} +2 -2
  89. package/dist/{index-lE9lxmTc.js → index-ZXDv7i0D.js} +2 -2
  90. package/dist/{index-BVGdsnC4.js → index-yAKnJ5ME.js} +2 -2
  91. package/dist/{index-Di1amUHq.js → index-z9-0V3EC.js} +2 -2
  92. package/dist/index.js +5676 -7907
  93. package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +1 -1
  94. package/dist/legacy/components/PdfEditor/index.d.ts +2 -2
  95. package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +1 -1
  96. package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +1 -1
  97. package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +1 -1
  98. package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +1 -1
  99. package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +1 -1
  100. package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +1 -1
  101. package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +1 -1
  102. package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +1 -1
  103. package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +1 -1
  104. package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +1 -1
  105. package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +1 -1
  106. package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +1 -1
  107. package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +1 -1
  108. package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +2 -2
  109. package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +2 -2
  110. package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +1 -1
  111. package/dist/legacy.js +26800 -209
  112. package/dist/sortable.esm-BYVnqZQ-.js +69330 -0
  113. package/dist/translations/editors-i18n.spec.d.ts +1 -0
  114. package/dist/translations/en.d.ts +318 -0
  115. package/dist/translations/fr.d.ts +318 -0
  116. package/package.json +13 -6
  117. package/vite.config.ts +4 -0
  118. package/dist/index-DPi7aKci.js +0 -95942
  119. /package/dist/{legacy/components/PdfEditor/operations/apply.spec.d.ts → components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts} +0 -0
  120. /package/dist/{legacy/components/PdfEditor/operations/compute-page-order.spec.d.ts → components/editors/PdfEditor/PdfEditor.spec.d.ts} +0 -0
  121. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-acro-form-fields.d.ts +0 -0
  122. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-export.d.ts +0 -0
  123. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-page-order.d.ts +0 -0
  124. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-pdf-document.d.ts +0 -0
  125. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-undo-redo.d.ts +0 -0
  126. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-uploaded-docs.d.ts +0 -0
  127. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/actions.d.ts +0 -0
  128. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/apply.d.ts +0 -0
  129. /package/dist/{legacy/components/PdfEditor/operations/extract.spec.d.ts → components/editors/PdfEditor/engine/operations/apply.spec.d.ts} +0 -0
  130. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/compute-page-order.d.ts +0 -0
  131. /package/dist/{legacy/components/PdfEditor/operations/redact.spec.d.ts → components/editors/PdfEditor/engine/operations/compute-page-order.spec.d.ts} +0 -0
  132. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/extract.d.ts +0 -0
  133. /package/dist/{legacy/components/PdfEditor/operations/reducer.spec.d.ts → components/editors/PdfEditor/engine/operations/extract.spec.d.ts} +0 -0
  134. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/pdf-data-url.d.ts +0 -0
  135. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rasterize.d.ts +0 -0
  136. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/redact.d.ts +0 -0
  137. /package/dist/{legacy/components/PdfEditor/operations/rotate-coords.spec.d.ts → components/editors/PdfEditor/engine/operations/redact.spec.d.ts} +0 -0
  138. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/reducer.d.ts +0 -0
  139. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rotate-coords.d.ts +0 -0
package/vite.config.ts CHANGED
@@ -79,6 +79,10 @@ export default defineConfig({
79
79
  // The previous design system (theme, visual components, their visual utils and hooks),
80
80
  // isolated until every app has migrated off it (ADR-0174 §2). Public subpath `./legacy`.
81
81
  legacy: resolve(__dirname, 'src/legacy/index.ts'),
82
+ // The editors (Markdown, PDF), out of the main barrel: they carry Milkdown Crepe, pdf.js
83
+ // and pdf-lib, which an app that imports anything from the root would otherwise ship.
84
+ // Public subpath `./editors`.
85
+ editors: resolve(__dirname, 'src/editors.ts'),
82
86
  },
83
87
  formats: ['es'],
84
88
  fileName: (_format, entryName) => `${entryName}.js`,