@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.
Files changed (138) hide show
  1. package/README.md +334 -319
  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/dist/AbyssCloud-IuD91X6C.js +2949 -0
  7. package/dist/{AbyssCookieConsentProvider-BypueFP-.js → AbyssCookieConsentProvider-DTHchhfw.js} +2012 -1383
  8. package/dist/{CookieConsentSettings.component-CYmew9vg.js → CookieConsentSettings.component-D13TqxZl.js} +1 -1
  9. package/dist/Tabs-CZQ1JYlW.js +2315 -0
  10. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  11. package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +19 -0
  12. package/dist/components/editors/MarkdownEditor/crepe-labels.d.ts +17 -0
  13. package/dist/components/editors/MarkdownEditor/index.d.ts +2 -0
  14. package/dist/components/editors/MarkdownEditor/markdown-theme.d.ts +7 -0
  15. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +9 -0
  16. package/dist/components/editors/PdfEditor/engine/open-pdf-document.d.ts +8 -0
  17. package/dist/components/editors/PdfEditor/engine/operations/reducer.spec.d.ts +1 -0
  18. package/dist/components/editors/PdfEditor/engine/operations/rotate-coords.spec.d.ts +1 -0
  19. package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/types.d.ts +1 -1
  20. package/dist/components/editors/PdfEditor/index.d.ts +3 -0
  21. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +26 -0
  22. package/dist/components/editors/PdfEditor/pdf-colors.spec.d.ts +1 -0
  23. package/dist/components/editors/PdfEditor/signature/SignatureDrawPad.d.ts +15 -0
  24. package/dist/components/editors/PdfEditor/signature/SignaturePicker.d.ts +31 -0
  25. package/dist/components/editors/PdfEditor/signature/SignaturePicker.spec.d.ts +1 -0
  26. package/dist/components/editors/PdfEditor/signature/SignatureSaveButton.d.ts +14 -0
  27. package/dist/components/editors/PdfEditor/signature/SignatureSavedList.d.ts +19 -0
  28. package/dist/components/editors/PdfEditor/signature/SignatureUploadPanel.d.ts +14 -0
  29. package/dist/components/editors/PdfEditor/signature/resolve-asset.d.ts +19 -0
  30. package/dist/components/editors/PdfEditor/signature/resolve-asset.spec.d.ts +1 -0
  31. package/dist/components/editors/PdfEditor/signature/test-support/pdf-editor-test-harness.d.ts +28 -0
  32. package/dist/components/editors/PdfEditor/toolbar/EraserIcon.d.ts +3 -0
  33. package/dist/components/editors/PdfEditor/toolbar/GroupPanel.d.ts +17 -0
  34. package/dist/components/editors/PdfEditor/toolbar/PanelRow.d.ts +14 -0
  35. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +65 -0
  36. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.spec.d.ts +1 -0
  37. package/dist/components/editors/PdfEditor/toolbar/SavedAssets.d.ts +24 -0
  38. package/dist/components/editors/PdfEditor/toolbar/ToolGroupButton.d.ts +20 -0
  39. package/dist/components/editors/PdfEditor/toolbar/tool-groups.d.ts +34 -0
  40. package/dist/components/editors/PdfEditor/toolbar/tool-options/DrawOptions.d.ts +6 -0
  41. package/dist/components/editors/PdfEditor/toolbar/tool-options/FillFieldsOptions.d.ts +13 -0
  42. package/dist/components/editors/PdfEditor/toolbar/tool-options/HighlightOptions.d.ts +6 -0
  43. package/dist/components/editors/PdfEditor/toolbar/tool-options/RedactOptions.d.ts +6 -0
  44. package/dist/components/editors/PdfEditor/toolbar/tool-options/ShapeOptions.d.ts +6 -0
  45. package/dist/components/editors/PdfEditor/toolbar/tool-options/SignatureOptions.d.ts +5 -0
  46. package/dist/components/editors/PdfEditor/toolbar/tool-options/TextOptions.d.ts +6 -0
  47. package/dist/components/editors/PdfEditor/toolbar/tool-options/ToolOptions.d.ts +14 -0
  48. package/dist/components/editors/PdfEditor/toolbar/tool-options/swatches.d.ts +2 -0
  49. package/dist/components/editors/PdfEditor/toolbar/tool-settings.d.ts +14 -0
  50. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.d.ts +14 -0
  51. package/dist/components/editors/PdfEditor/viewer/InsertPagesButton.spec.d.ts +1 -0
  52. package/dist/components/editors/PdfEditor/viewer/InsertPagesDialog.d.ts +28 -0
  53. package/dist/components/editors/PdfEditor/viewer/PageOverlay.d.ts +37 -0
  54. package/dist/components/editors/PdfEditor/viewer/PageOverlay.spec.d.ts +1 -0
  55. package/dist/components/editors/PdfEditor/viewer/PageSidebar.d.ts +16 -0
  56. package/dist/components/editors/PdfEditor/viewer/PageSidebar.spec.d.ts +1 -0
  57. package/dist/components/editors/PdfEditor/viewer/PageThumbnail.d.ts +16 -0
  58. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.d.ts +26 -0
  59. package/dist/components/editors/PdfEditor/viewer/PdfCanvas.spec.d.ts +1 -0
  60. package/dist/components/editors/PdfEditor/viewer/ViewerControls.d.ts +21 -0
  61. package/dist/components/editors/PdfEditor/viewer/ViewerControls.spec.d.ts +1 -0
  62. package/dist/components/editors/PdfEditor/viewer/test-support/viewer-test-harness.d.ts +30 -0
  63. package/dist/components/editors/editors-guard.spec.d.ts +1 -0
  64. package/dist/components/editors/index.d.ts +2 -0
  65. package/dist/cookie-consent.js +2 -2
  66. package/dist/{design-theme-uRG0VfEo.js → design-theme-BGMTwRaP.js} +9302 -12244
  67. package/dist/editors.d.ts +1 -0
  68. package/dist/editors.js +5151 -0
  69. package/dist/hooks/use-rich-intl.hook.d.ts +632 -0
  70. package/dist/{index-BXr7rmpX.js → index-40JUFFwY.js} +3 -3
  71. package/dist/{index-B2hC6MII.js → index-B9pFhQQG.js} +2 -2
  72. package/dist/{index-DMm4DUwE.js → index-BFBonBC2.js} +4 -4
  73. package/dist/{index-eDLp-yzn.js → index-BUqYHWKw.js} +3 -3
  74. package/dist/{index-cCCQwSgM.js → index-BcRgJqSB.js} +2 -2
  75. package/dist/{index-B-o5nMSp.js → index-BlhbGVkk.js} +2 -2
  76. package/dist/{index-DSxaBHTZ.js → index-BsOQZ-n8.js} +2 -2
  77. package/dist/{index-1XaO6yqN.js → index-CBrydj4V.js} +2 -2
  78. package/dist/{index-D6SwHpGJ.js → index-CM-90k5s.js} +3 -3
  79. package/dist/{index-BWlJEtPU.js → index-Cccq9d1E.js} +2 -2
  80. package/dist/{index-Cn4VznqA.js → index-CdL2MLmd.js} +3 -3
  81. package/dist/{index-Bzvs4paS.js → index-D0EC1_iy.js} +4 -4
  82. package/dist/{index-B-gziyiQ.js → index-D7AFc1sX.js} +2 -2
  83. package/dist/{index-BlOn2KR_.js → index-Dk1JTU4K.js} +2 -2
  84. package/dist/{index-oTUDJjQw.js → index-Dop3xXC3.js} +1 -1
  85. package/dist/{index-QOUuevuY.js → index-DqAkOKf8.js} +2 -2
  86. package/dist/{index-CxRoV826.js → index-JEsamj6m.js} +2 -2
  87. package/dist/{index-C7vs9FFj.js → index-kfzQWNLP.js} +2 -2
  88. package/dist/{index-BGFuwS_Q.js → index-oBWWShwb.js} +2 -2
  89. package/dist/{index-D_FaSb6y.js → index-s2djh_x_.js} +2 -2
  90. package/dist/{index-BqwZB633.js → index-tN8hz-IX.js} +4 -4
  91. package/dist/index.js +5676 -7907
  92. package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +1 -1
  93. package/dist/legacy/components/PdfEditor/index.d.ts +2 -2
  94. package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +1 -1
  95. package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +1 -1
  96. package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +1 -1
  97. package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +1 -1
  98. package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +1 -1
  99. package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +1 -1
  100. package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +1 -1
  101. package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +1 -1
  102. package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +1 -1
  103. package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +1 -1
  104. package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +1 -1
  105. package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +1 -1
  106. package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +1 -1
  107. package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +2 -2
  108. package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +2 -2
  109. package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +1 -1
  110. package/dist/legacy.js +26787 -209
  111. package/dist/sortable.esm-DM2HNEC7.js +69322 -0
  112. package/dist/translations/editors-i18n.spec.d.ts +1 -0
  113. package/dist/translations/en.d.ts +316 -0
  114. package/dist/translations/fr.d.ts +316 -0
  115. package/package.json +8 -1
  116. package/vite.config.ts +4 -0
  117. package/dist/index-DXsaB2jy.js +0 -95929
  118. /package/dist/{legacy/components/PdfEditor/operations/apply.spec.d.ts → components/editors/MarkdownEditor/MarkdownEditor.spec.d.ts} +0 -0
  119. /package/dist/{legacy/components/PdfEditor/operations/compute-page-order.spec.d.ts → components/editors/PdfEditor/PdfEditor.spec.d.ts} +0 -0
  120. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-acro-form-fields.d.ts +0 -0
  121. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-export.d.ts +0 -0
  122. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-page-order.d.ts +0 -0
  123. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-pdf-document.d.ts +0 -0
  124. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-undo-redo.d.ts +0 -0
  125. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/hooks/use-uploaded-docs.d.ts +0 -0
  126. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/actions.d.ts +0 -0
  127. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/apply.d.ts +0 -0
  128. /package/dist/{legacy/components/PdfEditor/operations/extract.spec.d.ts → components/editors/PdfEditor/engine/operations/apply.spec.d.ts} +0 -0
  129. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/compute-page-order.d.ts +0 -0
  130. /package/dist/{legacy/components/PdfEditor/operations/redact.spec.d.ts → components/editors/PdfEditor/engine/operations/compute-page-order.spec.d.ts} +0 -0
  131. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/extract.d.ts +0 -0
  132. /package/dist/{legacy/components/PdfEditor/operations/reducer.spec.d.ts → components/editors/PdfEditor/engine/operations/extract.spec.d.ts} +0 -0
  133. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/pdf-data-url.d.ts +0 -0
  134. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rasterize.d.ts +0 -0
  135. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/redact.d.ts +0 -0
  136. /package/dist/{legacy/components/PdfEditor/operations/rotate-coords.spec.d.ts → components/editors/PdfEditor/engine/operations/redact.spec.d.ts} +0 -0
  137. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/reducer.d.ts +0 -0
  138. /package/dist/{legacy/components/PdfEditor → components/editors/PdfEditor/engine}/operations/rotate-coords.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -1993,6 +1993,322 @@ declare const _default: {
1993
1993
  close: string;
1994
1994
  };
1995
1995
  };
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
+ };
1996
2312
  };
1997
2313
  };
1998
2314
  export default _default;
@@ -1993,6 +1993,322 @@ declare const _default: {
1993
1993
  close: string;
1994
1994
  };
1995
1995
  };
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
+ };
1996
2312
  };
1997
2313
  };
1998
2314
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "10.0.0",
3
+ "version": "10.1.0",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,6 +26,10 @@
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
+ },
29
33
  "./fonts.css": "./dist/fonts.css",
30
34
  "./legacy/fonts.css": "./dist/legacy/fonts.css"
31
35
  },
@@ -42,6 +46,9 @@
42
46
  ],
43
47
  "legacy": [
44
48
  "./dist/legacy.d.ts"
49
+ ],
50
+ "editors": [
51
+ "./dist/editors.d.ts"
45
52
  ]
46
53
  }
47
54
  },
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`,