@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
@@ -278,7 +278,11 @@ declare const _default: {
278
278
  ABYSS_CLOUD: string;
279
279
  ABYSS_CRYPT: string;
280
280
  ABYSS_FORM: string;
281
- ABYSS_TOOLS: string;
281
+ ABYSS_WORKSPACE: string;
282
+ ABYSS_EXTRACT: string;
283
+ ABYSS_BEAM: string;
284
+ ABYSS_LINK: string;
285
+ ABYSS_FLOW: string;
282
286
  ABYSS_SPOTLIGHT: string;
283
287
  ABYSS_TRAINING: string;
284
288
  ABYSS_MEMORIES: string;
@@ -301,14 +305,15 @@ declare const _default: {
301
305
  CRYPT_ENCRYPTIONS_MONTH: string;
302
306
  FORM_SUBMISSIONS_MONTH: string;
303
307
  FORM_ALLOW_DOCUMENTS: string;
304
- TOOLS_DRAW_COUNT: string;
305
- TOOLS_BOARD_COUNT: string;
306
- TOOLS_ATLAS_COUNT: string;
307
- TOOLS_RETROSPECTIVE_COUNT: string;
308
- TOOLS_SHORT_LINK_COUNT: string;
309
- TOOLS_SHORTLINK_RESOLUTIONS_MONTH: string;
308
+ WORKSPACE_DRAW_COUNT: string;
309
+ WORKSPACE_BOARD_COUNT: string;
310
+ WORKSPACE_ATLAS_COUNT: string;
311
+ WORKSPACE_RETROSPECTIVE_COUNT: string;
312
+ LINK_COUNT: string;
313
+ LINK_RESOLUTIONS_MONTH: string;
310
314
  MONITOR_WEBHOOK_INVOCATIONS_MONTH: string;
311
- CONSOLE_WORKFLOW_CREDITS_MONTH: string;
315
+ FLOW_WORKFLOW_CREDITS_MONTH: string;
316
+ CONSOLE_VAULT_ENTRIES_COUNT: string;
312
317
  RUM_SESSIONS_MONTH: string;
313
318
  REHYDRATION_CONCURRENT_JOBS: string;
314
319
  REHYDRATION_ACTIVE_GB: string;
@@ -320,15 +325,15 @@ declare const _default: {
320
325
  MEMORIES_EVENTS_COUNT: string;
321
326
  ACCOUNT_STORAGE_GB: string;
322
327
  ACCOUNT_AV_SCAN_UNITS: string;
323
- TOOLS_EXTRACTION: string;
324
- TOOLS_EXTRACTION_OCR_PAGES: string;
325
- TOOLS_EXTRACT_TEMPLATES_ACTIVE: string;
326
- TOOLS_EXTRACTION_TRACE_RETENTION_DAYS: string;
327
- TOOLS_BEAM_COUNT: string;
328
- TOOLS_BEAM_UPLOADS_MONTH: string;
329
- TOOLS_BEAM_BANDWIDTH_MONTH: string;
330
- TOOLS_BEAM_EMAILS_DAY: string;
331
- TOOLS_BEAM_EXPIRY_MAX_DAYS: string;
328
+ EXTRACT_RUNS_MONTH: string;
329
+ EXTRACT_OCR_PAGES_MONTH: string;
330
+ EXTRACT_TEMPLATES_ACTIVE: string;
331
+ EXTRACT_TRACE_RETENTION_DAYS: string;
332
+ BEAM_COUNT: string;
333
+ BEAM_UPLOADS_MONTH: string;
334
+ BEAM_BANDWIDTH_MONTH: string;
335
+ BEAM_EMAILS_DAY: string;
336
+ BEAM_EXPIRY_MAX_DAYS: string;
332
337
  BANKING_PROFILES_COUNT: string;
333
338
  BANKING_MONITORED_PROFILES_COUNT: string;
334
339
  BANKING_SELF_BANK_CONNECTIONS_COUNT: string;
@@ -1993,322 +1998,6 @@ declare const _default: {
1993
1998
  close: string;
1994
1999
  };
1995
2000
  };
1996
- editors: {
1997
- markdown: {
1998
- aria: {
1999
- bold: string;
2000
- italic: string;
2001
- strikethrough: string;
2002
- code: string;
2003
- latex: string;
2004
- link: string;
2005
- 'block-add': string;
2006
- 'block-drag': string;
2007
- 'link-copy': string;
2008
- 'link-edit': string;
2009
- 'link-remove': string;
2010
- 'link-confirm': string;
2011
- 'table-column': string;
2012
- 'table-row': string;
2013
- 'table-align-left': string;
2014
- 'table-align-center': string;
2015
- 'table-align-right': string;
2016
- 'table-delete-column': string;
2017
- 'table-delete-row': string;
2018
- 'table-add-row': string;
2019
- 'table-add-column': string;
2020
- 'image-caption': string;
2021
- 'latex-confirm': string;
2022
- };
2023
- placeholder: string;
2024
- crepe: {
2025
- 'slash-menu': {
2026
- groups: {
2027
- text: string;
2028
- list: string;
2029
- advanced: string;
2030
- };
2031
- items: {
2032
- text: string;
2033
- h1: string;
2034
- h2: string;
2035
- h3: string;
2036
- h4: string;
2037
- h5: string;
2038
- h6: string;
2039
- quote: string;
2040
- divider: string;
2041
- 'bullet-list': string;
2042
- 'ordered-list': string;
2043
- 'task-list': string;
2044
- image: string;
2045
- 'code-block': string;
2046
- table: string;
2047
- math: string;
2048
- };
2049
- };
2050
- 'link-tooltip': {
2051
- 'input-placeholder': string;
2052
- };
2053
- 'image-block': {
2054
- inline: {
2055
- upload: string;
2056
- 'upload-placeholder': string;
2057
- };
2058
- block: {
2059
- upload: string;
2060
- confirm: string;
2061
- 'caption-placeholder': string;
2062
- 'upload-placeholder': string;
2063
- };
2064
- };
2065
- 'code-block': {
2066
- 'search-placeholder': string;
2067
- copy: string;
2068
- 'no-result': string;
2069
- 'preview-edit': string;
2070
- 'preview-hide': string;
2071
- 'preview-label': string;
2072
- };
2073
- };
2074
- };
2075
- pdf: {
2076
- groups: {
2077
- toolbar: string;
2078
- annotate: string;
2079
- 'sign-fill': string;
2080
- pages: string;
2081
- security: string;
2082
- file: string;
2083
- 'active-tool': string;
2084
- options: string;
2085
- 'saved-assets': string;
2086
- font: {
2087
- sans: string;
2088
- serif: string;
2089
- mono: string;
2090
- };
2091
- shape: {
2092
- rect: string;
2093
- ellipse: string;
2094
- line: string;
2095
- arrow: string;
2096
- };
2097
- };
2098
- 'signature-ui': {
2099
- tabs: {
2100
- label: string;
2101
- upload: string;
2102
- };
2103
- draw: {
2104
- pad: string;
2105
- width: {
2106
- thin: string;
2107
- medium: string;
2108
- thick: string;
2109
- };
2110
- };
2111
- upload: {
2112
- preview: string;
2113
- };
2114
- saved: {
2115
- kind: string;
2116
- };
2117
- 'unknown-error': string;
2118
- };
2119
- toolbar: {
2120
- 'change-file': string;
2121
- select: string;
2122
- text: string;
2123
- draw: string;
2124
- shape: string;
2125
- highlight: string;
2126
- redact: string;
2127
- signature: string;
2128
- eraser: string;
2129
- 'fill-fields': string;
2130
- undo: string;
2131
- redo: string;
2132
- download: string;
2133
- 'save-to-cloud': string;
2134
- 'toggle-pages': string;
2135
- };
2136
- sidebar: {
2137
- pages: string;
2138
- };
2139
- viewer: {
2140
- 'drag-page': string;
2141
- 'insert-read-failed': string;
2142
- 'insert-cloud-failed': string;
2143
- 'insert-pdf-only': string;
2144
- 'zoom-in': string;
2145
- 'zoom-out': string;
2146
- 'fit-width': string;
2147
- 'reset-zoom': string;
2148
- 'prev-page': string;
2149
- 'next-page': string;
2150
- 'page-indicator': string;
2151
- };
2152
- insert: {
2153
- 'image-device': string;
2154
- 'image-cloud': string;
2155
- 'saved-title': string;
2156
- personal: string;
2157
- button: string;
2158
- reading: string;
2159
- };
2160
- 'insert-dialog': {
2161
- title: string;
2162
- helper: string;
2163
- 'select-all': string;
2164
- 'select-none': string;
2165
- 'page-label': string;
2166
- confirm: string;
2167
- };
2168
- action: {
2169
- cancel: string;
2170
- delete: string;
2171
- };
2172
- placement: {
2173
- hint: string;
2174
- cancel: string;
2175
- };
2176
- error: {
2177
- 'load-failed': string;
2178
- 'export-failed': string;
2179
- 'try-another': string;
2180
- };
2181
- document: {
2182
- 'blank-page': string;
2183
- 'page-numbers': string;
2184
- watermark: string;
2185
- extract: string;
2186
- compress: string;
2187
- protect: string;
2188
- };
2189
- password: {
2190
- title: string;
2191
- help: string;
2192
- label: string;
2193
- confirm: string;
2194
- };
2195
- compress: {
2196
- saved: string;
2197
- 'already-optimal': string;
2198
- };
2199
- unlock: {
2200
- title: string;
2201
- help: string;
2202
- confirm: string;
2203
- wrong: string;
2204
- };
2205
- watermark: {
2206
- title: string;
2207
- label: string;
2208
- apply: string;
2209
- };
2210
- extract: {
2211
- title: string;
2212
- confirm: string;
2213
- };
2214
- loading: string;
2215
- text: {
2216
- 'hint-short': string;
2217
- placeholder: string;
2218
- size: string;
2219
- font: string;
2220
- };
2221
- draw: {
2222
- color: string;
2223
- width: string;
2224
- };
2225
- shape: {
2226
- kind: string;
2227
- fill: string;
2228
- 'fill-none': string;
2229
- 'fill-on': string;
2230
- };
2231
- redact: {
2232
- hint: string;
2233
- warning: string;
2234
- };
2235
- signature: {
2236
- 'add-hint': string;
2237
- 'add-button': string;
2238
- 'apply-all-pages': string;
2239
- 'manage-assets': string;
2240
- 'asset-load-failed': string;
2241
- clear: string;
2242
- 'picker-title': string;
2243
- tabs: {
2244
- draw: string;
2245
- saved: string;
2246
- };
2247
- save: {
2248
- kind: string;
2249
- name: string;
2250
- scope: string;
2251
- 'scope-personal': string;
2252
- button: string;
2253
- title: string;
2254
- SIGNATURE: string;
2255
- INITIALS: string;
2256
- STAMP: string;
2257
- error: string;
2258
- };
2259
- saved: {
2260
- 'scope-label': string;
2261
- scope: {
2262
- personal: string;
2263
- };
2264
- group: {
2265
- personal: string;
2266
- organization: string;
2267
- project: string;
2268
- };
2269
- kind: {
2270
- all: string;
2271
- SIGNATURE: string;
2272
- INITIALS: string;
2273
- STAMP: string;
2274
- TEXT_BLOCK: string;
2275
- };
2276
- empty: string;
2277
- };
2278
- upload: {
2279
- title: string;
2280
- reading: string;
2281
- 'max-size': string;
2282
- error: {
2283
- 'read-failed': string;
2284
- };
2285
- };
2286
- draw: {
2287
- title: string;
2288
- helper: string;
2289
- 'stroke-color': string;
2290
- 'stroke-width': string;
2291
- };
2292
- use: string;
2293
- };
2294
- 'fill-fields': {
2295
- empty: string;
2296
- detected: string;
2297
- flatten: string;
2298
- 'flatten-hint': string;
2299
- };
2300
- page: {
2301
- inserted: string;
2302
- rotate: string;
2303
- delete: string;
2304
- 'confirm-delete': {
2305
- title: string;
2306
- description: string;
2307
- confirm: string;
2308
- };
2309
- };
2310
- };
2311
- };
2312
2001
  };
2313
2002
  };
2314
2003
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "10.1.0",
3
+ "version": "11.0.0",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,10 +26,6 @@
26
26
  "import": "./dist/legacy.js",
27
27
  "types": "./dist/legacy.d.ts"
28
28
  },
29
- "./editors": {
30
- "import": "./dist/editors.js",
31
- "types": "./dist/editors.d.ts"
32
- },
33
29
  "./fonts.css": "./dist/fonts.css",
34
30
  "./legacy/fonts.css": "./dist/legacy/fonts.css"
35
31
  },
@@ -46,9 +42,6 @@
46
42
  ],
47
43
  "legacy": [
48
44
  "./dist/legacy.d.ts"
49
- ],
50
- "editors": [
51
- "./dist/editors.d.ts"
52
45
  ]
53
46
  }
54
47
  },
@@ -67,7 +60,7 @@
67
60
  "peerDependencies": {
68
61
  "@abyss-project/capacitor-auth": "^1.0.0",
69
62
  "@abyss-project/cloud": "^2.4.0",
70
- "@abyss-project/console": "^14.1.0",
63
+ "@abyss-project/console": "^15.1.0",
71
64
  "@abyss-project/monitor-browser": "^2.0.0",
72
65
  "@dnd-kit/core": "^6.0.0",
73
66
  "@dnd-kit/sortable": "^9.0.0",
@@ -87,7 +80,7 @@
87
80
  "react-is": "^18.0.0 || ^19.0.0",
88
81
  "react-router-dom": "^6.15.0",
89
82
  "zustand": "^5.0.0",
90
- "@abyss-project/main": "23.0.0"
83
+ "@abyss-project/main": "25.0.0"
91
84
  },
92
85
  "peerDependenciesMeta": {
93
86
  "@abyss-project/capacitor-auth": {
@@ -137,11 +130,11 @@
137
130
  "use-debounce": "^10.0.5",
138
131
  "uuid": "^9.0.0",
139
132
  "yup": "^0.32.11",
140
- "@abyss-project/main": "23.0.0"
133
+ "@abyss-project/main": "25.0.0"
141
134
  },
142
135
  "devDependencies": {
143
136
  "@abyss-project/cloud": "^2.4.0",
144
- "@abyss-project/console": "^14.1.0",
137
+ "@abyss-project/console": "^15.1.0",
145
138
  "@abyss-project/monitor-browser": "^2.0.0",
146
139
  "@playwright/test": "^1.52.0",
147
140
  "@testing-library/react": "^16.3.2",
package/vite.config.ts CHANGED
@@ -79,10 +79,6 @@ 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'),
86
82
  },
87
83
  formats: ['es'],
88
84
  fileName: (_format, entryName) => `${entryName}.js`,
@@ -1,48 +0,0 @@
1
- import { MarkdownEditor } from '../../src/components/editors/MarkdownEditor/MarkdownEditor';
2
- import { Example, LastEvent, Showcase, useEventLog } from '../frame';
3
-
4
- const NOTE = `# Compte rendu de la revue
5
-
6
- Les points à **retenir** : le budget reste *stable*, et le lien vers le [tableau de bord](https://abyss.example) est à jour.
7
-
8
- - Valider le périmètre
9
- - Relire les \`conditions\`
10
- - Envoyer le résumé
11
-
12
- > La prochaine revue a lieu jeudi.
13
-
14
- \`\`\`ts
15
- const total = lignes.reduce((somme, ligne) => somme + ligne.montant, 0);
16
- \`\`\`
17
-
18
- | Poste | Montant |
19
- | --- | --- |
20
- | Hébergement | 1 200 |
21
- | Licences | 840 |
22
- `;
23
-
24
- export const MarkdownEditorPage = () => {
25
- const { log } = useEventLog();
26
-
27
- return (
28
- <Showcase
29
- family="Saisie"
30
- name="MarkdownEditor"
31
- description="Éditeur Markdown de l'écosystème : Crepe, aux couleurs et aux polices du design system, libellés traduits. Un « / » ouvre le menu des blocs ; la poignée à gauche d'un bloc l'ajoute ou le déplace. Sur un écran tactile, la poignée et les boutons font 44 px."
32
- >
33
- <Example title="Édition d'une note" maxWidth={880}>
34
- <MarkdownEditor
35
- defaultValue={NOTE}
36
- onChange={(markdown) => log(`${markdown.length} caractères`)}
37
- />
38
- </Example>
39
- <Example title="Document vide" maxWidth={880}>
40
- <MarkdownEditor />
41
- </Example>
42
- <Example title="Lecture seule" maxWidth={880}>
43
- <MarkdownEditor defaultValue={NOTE} readOnly />
44
- </Example>
45
- <LastEvent />
46
- </Showcase>
47
- );
48
- };
@@ -1,153 +0,0 @@
1
- import { useCallback, useEffect, useState } from 'react';
2
- import { AssetKind } from '@abyss-project/main';
3
- import { PDFDocument, StandardFonts } from 'pdf-lib';
4
- import { styled } from '@mui/material/styles';
5
- import { PdfEditor } from '../../src/components/editors/PdfEditor/PdfEditor';
6
- import { hairline, px } from '../../src/theme/components/shared';
7
- import type {
8
- AssetPalette,
9
- ExportRequest,
10
- OperationsAdapter,
11
- PdfSource,
12
- } from '../../src/components/editors/PdfEditor/engine/types';
13
- import { Example, LastEvent, Showcase, useEventLog } from '../frame';
14
-
15
- const FILE_NAME = 'contrat-de-prestation.pdf';
16
-
17
- const PARAGRAPHS = [
18
- 'Article 1 : objet du contrat',
19
- 'Le prestataire réalise la refonte du portail client.',
20
- 'Article 2 : durée',
21
- 'Le contrat prend effet à la signature, pour douze mois.',
22
- 'Article 3 : prix',
23
- 'Le prix est payé en trois échéances égales.',
24
- ];
25
-
26
- /** A three-page A4 contract, built in the browser so the catalog needs no fixture file. */
27
- const buildContract = async (): Promise<ArrayBuffer> => {
28
- const doc = await PDFDocument.create();
29
- const font = await doc.embedFont(StandardFonts.Helvetica);
30
- const bold = await doc.embedFont(StandardFonts.HelveticaBold);
31
- for (let index = 0; index < 3; index += 1) {
32
- const page = doc.addPage([595.28, 841.89]);
33
- page.drawText(`Contrat de prestation, page ${index + 1}`, {
34
- x: 56,
35
- y: 780,
36
- size: 18,
37
- font: bold,
38
- });
39
- PARAGRAPHS.forEach((line, row) => {
40
- page.drawText(line, { x: 56, y: 720 - row * 28, size: 12, font });
41
- });
42
- }
43
- const bytes = await doc.save();
44
- return bytes.slice().buffer;
45
- };
46
-
47
- /** A drawn signature, as the saved assets of a signed-in user would carry one. */
48
- const SIGNATURE_SVG = `data:image/svg+xml;utf8,${encodeURIComponent(
49
- "<svg xmlns='http://www.w3.org/2000/svg' width='240' height='80'><path d='M10 60 C 40 10, 60 10, 80 50 S 130 80, 150 30 S 200 20, 230 55' fill='none' stroke='navy' stroke-width='3'/></svg>",
50
- )}`;
51
-
52
- const PALETTE: AssetPalette = {
53
- personal: [
54
- {
55
- id: 'signature',
56
- kind: AssetKind.SIGNATURE,
57
- name: 'Signature',
58
- downloadUrl: SIGNATURE_SVG,
59
- },
60
- {
61
- id: 'mention',
62
- kind: AssetKind.TEXT_BLOCK,
63
- name: 'Mention',
64
- downloadUrl: null,
65
- textContent: 'Lu et approuvé',
66
- },
67
- ],
68
- organizations: [{ id: 'acme', name: 'Acme', items: [] }],
69
- };
70
-
71
- const Frame = styled('div')(({ theme }) => ({
72
- height: 720,
73
- border: hairline(theme.design.tokens['border.subtle']),
74
- borderRadius: px(theme.design.radii.md),
75
- overflow: 'hidden',
76
- }));
77
-
78
- export const PdfEditorPage = () => {
79
- const { log } = useEventLog();
80
- const [source, setSource] = useState<PdfSource | null>(null);
81
-
82
- useEffect(() => {
83
- let cancelled = false;
84
- void buildContract().then((data) => {
85
- if (!cancelled) {
86
- setSource({ kind: 'BLOB', data, fileName: FILE_NAME });
87
- }
88
- });
89
- return () => {
90
- cancelled = true;
91
- };
92
- }, []);
93
-
94
- const onExport = useCallback(
95
- async (request: ExportRequest) => log(`export ${request.kind}`),
96
- [log],
97
- );
98
- const operationsAdapter = useCallback<OperationsAdapter>(
99
- async ({ operations }) => log(`${operations.length} opérations`),
100
- [log],
101
- );
102
-
103
- return (
104
- <Showcase
105
- family="Saisie"
106
- name="PdfEditor"
107
- description="Éditeur PDF de l'écosystème : barre en groupes (Annoter, Signer et remplir, Pages, Sécurité, Fichier), pages et vignettes blanches dans les deux thèmes, signatures dessinées, importées ou enregistrées. Sous 768 px, un groupe s'ouvre en feuille du bas et les pages passent en tiroir."
108
- >
109
- {source !== null && (
110
- <>
111
- <Example title="Session connectée, éléments enregistrés et AbyssCloud">
112
- <Frame>
113
- <PdfEditor
114
- source={source}
115
- mode="session-cloud-bridge"
116
- exportOptions={['DOWNLOAD', 'CLOUD_NEW_FILE']}
117
- onExport={onExport}
118
- operationsAdapter={operationsAdapter}
119
- assetPalette={PALETTE}
120
- onSaveSignature={async ({ name }) =>
121
- log(`signature enregistrée : ${name}`)
122
- }
123
- manageAssetsUrl="https://abyss.example/account/assets"
124
- />
125
- </Frame>
126
- </Example>
127
- <Example title="Page publique, sans compte">
128
- <Frame>
129
- <PdfEditor
130
- source={source}
131
- mode="anonymous-client"
132
- exportOptions={['DOWNLOAD']}
133
- onExport={onExport}
134
- />
135
- </Frame>
136
- </Example>
137
- <Example title="Lecture seule">
138
- <Frame>
139
- <PdfEditor
140
- source={source}
141
- mode="anonymous-shared"
142
- exportOptions={['DOWNLOAD']}
143
- onExport={onExport}
144
- readOnly
145
- />
146
- </Frame>
147
- </Example>
148
- </>
149
- )}
150
- <LastEvent />
151
- </Showcase>
152
- );
153
- };