@underverse-ui/underverse 2.0.12 → 2.0.14

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 (31) hide show
  1. package/api-reference.json +1 -1
  2. package/dist/{EmojiPicker-FFNIUMI3.js → EmojiPicker-CGMUDB4I.js} +4 -4
  3. package/dist/{chunk-EVS5YWTO.js → chunk-3Q5EE2ZA.js} +172 -79
  4. package/dist/chunk-3Q5EE2ZA.js.map +1 -0
  5. package/dist/{chunk-Q6BQUWKB.js → chunk-DCFQGH3K.js} +3 -3
  6. package/dist/{chunk-VNSCI3OK.js → chunk-DXLSCUYA.js} +2 -2
  7. package/dist/{chunk-HEYNAGQD.js → chunk-N2S6RI4Y.js} +3 -3
  8. package/dist/{chunk-P2RLTURA.js → chunk-PDYEK7HL.js} +202 -56
  9. package/dist/chunk-PDYEK7HL.js.map +1 -0
  10. package/dist/{chunk-PYC5EY5W.js → chunk-PV2G2XME.js} +13 -5
  11. package/dist/chunk-PV2G2XME.js.map +1 -0
  12. package/dist/index.cjs +369 -127
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +16 -0
  15. package/dist/index.d.ts +16 -0
  16. package/dist/index.js +6 -6
  17. package/dist/{menu-bar-JSXW6AXW.js → menu-bar-55SAOAX6.js} +4 -4
  18. package/dist/ueditor.cjs +369 -127
  19. package/dist/ueditor.cjs.map +1 -1
  20. package/dist/ueditor.d.cts +3 -0
  21. package/dist/ueditor.d.ts +3 -0
  22. package/dist/ueditor.js +4 -4
  23. package/package.json +1 -1
  24. package/dist/chunk-EVS5YWTO.js.map +0 -1
  25. package/dist/chunk-P2RLTURA.js.map +0 -1
  26. package/dist/chunk-PYC5EY5W.js.map +0 -1
  27. /package/dist/{EmojiPicker-FFNIUMI3.js.map → EmojiPicker-CGMUDB4I.js.map} +0 -0
  28. /package/dist/{chunk-Q6BQUWKB.js.map → chunk-DCFQGH3K.js.map} +0 -0
  29. /package/dist/{chunk-VNSCI3OK.js.map → chunk-DXLSCUYA.js.map} +0 -0
  30. /package/dist/{chunk-HEYNAGQD.js.map → chunk-N2S6RI4Y.js.map} +0 -0
  31. /package/dist/{menu-bar-JSXW6AXW.js.map → menu-bar-55SAOAX6.js.map} +0 -0
@@ -33,6 +33,7 @@ interface UEditorRef {
33
33
  editor?: Editor | null;
34
34
  prepareContentForSave: (options?: UEditorPrepareContentForSaveOptions) => Promise<UEditorPrepareContentForSaveResult>;
35
35
  }
36
+ type UEditorBuiltinFontFamily = "Inter" | "Roboto" | "Lexend" | "Montserrat" | "Lora" | "Playfair Display" | "Georgia" | "Times New Roman" | "System UI" | "JetBrains Mono" | (string & {});
36
37
  type UEditorFontFamilyOption = {
37
38
  label: string;
38
39
  value: string;
@@ -93,6 +94,8 @@ interface UEditorProps {
93
94
  /** Whether the editor has rounded corners. Defaults to `true`. */
94
95
  rounded?: boolean;
95
96
  fontFamilies?: UEditorFontFamilyOption[];
97
+ /** Default font family for the editor. Defaults to `"Inter"`. */
98
+ defaultFontFamily?: UEditorBuiltinFontFamily;
96
99
  fontSizes?: UEditorFontSizeOption[];
97
100
  lineHeights?: UEditorLineHeightOption[];
98
101
  letterSpacings?: UEditorLetterSpacingOption[];
package/dist/ueditor.d.ts CHANGED
@@ -33,6 +33,7 @@ interface UEditorRef {
33
33
  editor?: Editor | null;
34
34
  prepareContentForSave: (options?: UEditorPrepareContentForSaveOptions) => Promise<UEditorPrepareContentForSaveResult>;
35
35
  }
36
+ type UEditorBuiltinFontFamily = "Inter" | "Roboto" | "Lexend" | "Montserrat" | "Lora" | "Playfair Display" | "Georgia" | "Times New Roman" | "System UI" | "JetBrains Mono" | (string & {});
36
37
  type UEditorFontFamilyOption = {
37
38
  label: string;
38
39
  value: string;
@@ -93,6 +94,8 @@ interface UEditorProps {
93
94
  /** Whether the editor has rounded corners. Defaults to `true`. */
94
95
  rounded?: boolean;
95
96
  fontFamilies?: UEditorFontFamilyOption[];
97
+ /** Default font family for the editor. Defaults to `"Inter"`. */
98
+ defaultFontFamily?: UEditorBuiltinFontFamily;
96
99
  fontSizes?: UEditorFontSizeOption[];
97
100
  lineHeights?: UEditorLineHeightOption[];
98
101
  letterSpacings?: UEditorLetterSpacingOption[];
package/dist/ueditor.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  extractImageSrcsFromHtml,
6
6
  normalizeImageUrl,
7
7
  prepareUEditorContentForSave
8
- } from "./chunk-P2RLTURA.js";
9
- import "./chunk-VNSCI3OK.js";
10
- import "./chunk-EVS5YWTO.js";
11
- import "./chunk-PYC5EY5W.js";
8
+ } from "./chunk-PDYEK7HL.js";
9
+ import "./chunk-DXLSCUYA.js";
10
+ import "./chunk-3Q5EE2ZA.js";
11
+ import "./chunk-PV2G2XME.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.12",
3
+ "version": "2.0.14",
4
4
  "private": false,
5
5
  "description": "Underverse UI – reusable React/Next.js UI components",
6
6
  "type": "module",