@underverse-ui/underverse 2.0.29 → 2.0.31

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 (35) hide show
  1. package/api-reference.json +1 -1
  2. package/dist/{EmojiPicker-NV3GQYWI.js → EmojiPicker-ISJ6RXYG.js} +4 -4
  3. package/dist/{chunk-LK6YWBI6.js → chunk-2P7TSXEE.js} +82 -25
  4. package/dist/chunk-2P7TSXEE.js.map +1 -0
  5. package/dist/{chunk-5QWYO527.js → chunk-37MHVJMV.js} +846 -90
  6. package/dist/chunk-37MHVJMV.js.map +1 -0
  7. package/dist/{chunk-XTZTUDRE.js → chunk-57BKIC6J.js} +711 -800
  8. package/dist/chunk-57BKIC6J.js.map +1 -0
  9. package/dist/{chunk-LRIRY4DG.js → chunk-5W63IHIN.js} +11 -3
  10. package/dist/chunk-5W63IHIN.js.map +1 -0
  11. package/dist/{chunk-F7MX3XXK.js → chunk-S4UHFRL3.js} +3 -3
  12. package/dist/{chunk-A4GUPKHM.js → chunk-ZP7F4ZD7.js} +63 -43
  13. package/dist/chunk-ZP7F4ZD7.js.map +1 -0
  14. package/dist/index.cjs +2296 -1342
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +61 -2
  17. package/dist/index.d.ts +61 -2
  18. package/dist/index.js +94 -41
  19. package/dist/index.js.map +1 -1
  20. package/dist/{menu-bar-AHG64PEB.js → menu-bar-DPCNNUX5.js} +193 -47
  21. package/dist/menu-bar-DPCNNUX5.js.map +1 -0
  22. package/dist/ueditor.cjs +9407 -8506
  23. package/dist/ueditor.cjs.map +1 -1
  24. package/dist/ueditor.d.cts +10 -0
  25. package/dist/ueditor.d.ts +10 -0
  26. package/dist/ueditor.js +4 -4
  27. package/package.json +2 -1
  28. package/dist/chunk-5QWYO527.js.map +0 -1
  29. package/dist/chunk-A4GUPKHM.js.map +0 -1
  30. package/dist/chunk-LK6YWBI6.js.map +0 -1
  31. package/dist/chunk-LRIRY4DG.js.map +0 -1
  32. package/dist/chunk-XTZTUDRE.js.map +0 -1
  33. package/dist/menu-bar-AHG64PEB.js.map +0 -1
  34. /package/dist/{EmojiPicker-NV3GQYWI.js.map → EmojiPicker-ISJ6RXYG.js.map} +0 -0
  35. /package/dist/{chunk-F7MX3XXK.js.map → chunk-S4UHFRL3.js.map} +0 -0
@@ -79,7 +79,15 @@ interface UEditorProps {
79
79
  maxImageFileSize?: number;
80
80
  allowedImageMimeTypes?: string[];
81
81
  fallbackToDataUrl?: boolean;
82
+ /** Reports rejected files and immediate image upload/read failures. */
83
+ onImageUploadError?: (error: Error, file: File) => void;
82
84
  placeholder?: string;
85
+ /** Accessible name for the editable surface. */
86
+ ariaLabel?: string;
87
+ /** ID of an external element that labels the editable surface. */
88
+ ariaLabelledBy?: string;
89
+ /** ID of an external element that describes the editable surface. */
90
+ ariaDescribedBy?: string;
83
91
  className?: string;
84
92
  editable?: boolean;
85
93
  autofocus?: boolean;
@@ -92,6 +100,8 @@ interface UEditorProps {
92
100
  maxCharacters?: number;
93
101
  minHeight?: number | string;
94
102
  maxHeight?: number | string;
103
+ /** Let tables wider than the document enlarge the editor instead of showing an inner horizontal scrollbar. Defaults to `true`. */
104
+ expandWideTables?: boolean;
95
105
  variant?: "default" | "minimal" | "medium" | "medium-full" | "full" | "notion";
96
106
  /** Whether the editor has rounded corners. Defaults to `true`. */
97
107
  rounded?: boolean;
package/dist/ueditor.d.ts CHANGED
@@ -79,7 +79,15 @@ interface UEditorProps {
79
79
  maxImageFileSize?: number;
80
80
  allowedImageMimeTypes?: string[];
81
81
  fallbackToDataUrl?: boolean;
82
+ /** Reports rejected files and immediate image upload/read failures. */
83
+ onImageUploadError?: (error: Error, file: File) => void;
82
84
  placeholder?: string;
85
+ /** Accessible name for the editable surface. */
86
+ ariaLabel?: string;
87
+ /** ID of an external element that labels the editable surface. */
88
+ ariaLabelledBy?: string;
89
+ /** ID of an external element that describes the editable surface. */
90
+ ariaDescribedBy?: string;
83
91
  className?: string;
84
92
  editable?: boolean;
85
93
  autofocus?: boolean;
@@ -92,6 +100,8 @@ interface UEditorProps {
92
100
  maxCharacters?: number;
93
101
  minHeight?: number | string;
94
102
  maxHeight?: number | string;
103
+ /** Let tables wider than the document enlarge the editor instead of showing an inner horizontal scrollbar. Defaults to `true`. */
104
+ expandWideTables?: boolean;
95
105
  variant?: "default" | "minimal" | "medium" | "medium-full" | "full" | "notion";
96
106
  /** Whether the editor has rounded corners. Defaults to `true`. */
97
107
  rounded?: boolean;
package/dist/ueditor.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  extractImageSrcsFromHtml,
6
6
  normalizeImageUrl,
7
7
  prepareUEditorContentForSave
8
- } from "./chunk-XTZTUDRE.js";
9
- import "./chunk-LRIRY4DG.js";
10
- import "./chunk-5QWYO527.js";
11
- import "./chunk-A4GUPKHM.js";
8
+ } from "./chunk-57BKIC6J.js";
9
+ import "./chunk-5W63IHIN.js";
10
+ import "./chunk-37MHVJMV.js";
11
+ import "./chunk-ZP7F4ZD7.js";
12
12
  import "./chunk-NSBPE2FW.js";
13
13
  export {
14
14
  UEditorPrepareContentForSaveError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@underverse-ui/underverse",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "description": "Private internal React/Next.js UI component library",
5
5
  "type": "module",
6
6
  "author": "Tran Van Bach",
@@ -78,6 +78,7 @@
78
78
  "test:components-smoke": "node --test ./tests/components-smoke.test.mjs",
79
79
  "test:input-search": "node --test ./tests/input-search.interaction.test.mjs",
80
80
  "test:label-typography": "node --test ./tests/label-typography.test.mjs",
81
+ "test:tabs-class-names": "node --test ./tests/tabs-class-names.interaction.test.mjs",
81
82
  "test:sticker-ui": "node --test ./tests/sticker.interaction.test.mjs",
82
83
  "test:lunar": "node --test --experimental-strip-types ./tests/lunar-utils.test.mjs",
83
84
  "test:smoke": "npm run test:public-api && npm run test:components-smoke",