mino-daisy-react 1.0.4 → 1.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.
@@ -0,0 +1,8 @@
1
+ export declare function BoldIcon(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ItalicIcon(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function UnderlineIcon(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function BulletListIcon(): import("react/jsx-runtime").JSX.Element;
5
+ export declare function NumberedListIcon(): import("react/jsx-runtime").JSX.Element;
6
+ export declare function LinkIcon(): import("react/jsx-runtime").JSX.Element;
7
+ export declare function ImageIcon(): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,4CAevB;AAED,wBAAgB,UAAU,4CAgBzB;AAED,wBAAgB,aAAa,4CAe5B;AAED,wBAAgB,cAAc,4CAmB7B;AAED,wBAAgB,gBAAgB,4CAmB/B;AAED,wBAAgB,QAAQ,4CAevB;AAED,wBAAgB,SAAS,4CAgBxB"}
@@ -0,0 +1,3 @@
1
+ export type { RichTextEditorProps } from './rich-text-editor';
2
+ export { RichTextEditor } from './rich-text-editor';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { LexicalEditor } from 'lexical';
2
+ export interface OnChangePluginProps {
3
+ onChange?: (html: string) => void;
4
+ }
5
+ export declare function OnChangePlugin({ onChange }: OnChangePluginProps): null;
6
+ export interface RefPluginProps {
7
+ editorRef?: React.Ref<LexicalEditor>;
8
+ }
9
+ export declare function RefPlugin({ editorRef }: RefPluginProps): null;
10
+ export interface InitialContentPluginProps {
11
+ content?: string;
12
+ }
13
+ export declare function InitialContentPlugin({ content }: InitialContentPluginProps): null;
14
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/plugins.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAI5C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,QAe/D;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;CACrC;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE,cAAc,QActD;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,yBAAyB,QAmB1E"}
@@ -0,0 +1,39 @@
1
+ import type { LexicalEditor } from 'lexical';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface RichTextEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
+ /**
5
+ * Initial HTML content for the editor.
6
+ * For empty state, use empty string or undefined.
7
+ */
8
+ initialContent?: string;
9
+ /**
10
+ * Callback fired when editor content changes.
11
+ * Receives HTML string representation of content.
12
+ */
13
+ onChange?: (html: string) => void;
14
+ /**
15
+ * If true, editor is read-only and toolbar is hidden.
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * Placeholder text when editor is empty.
20
+ */
21
+ placeholder?: string;
22
+ /**
23
+ * Additional className for the toolbar wrapper.
24
+ */
25
+ toolbarClassName?: string;
26
+ /**
27
+ * Additional className for the editor content area.
28
+ */
29
+ editorClassName?: string;
30
+ /**
31
+ * Ref to the Lexical editor instance for advanced use cases.
32
+ */
33
+ ref?: React.Ref<LexicalEditor>;
34
+ }
35
+ export declare function RichTextEditor({ initialContent, onChange, disabled, placeholder, toolbarClassName, editorClassName, className, ref, ...props }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare namespace RichTextEditor {
37
+ var displayName: string;
38
+ }
39
+ //# sourceMappingURL=rich-text-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-editor.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/rich-text-editor.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;CAC/B;AA8BD,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,QAAQ,EACR,QAAgB,EAChB,WAA+B,EAC/B,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,mBAAmB,2CA4CrB;yBAtDe,cAAc"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rich-text-editor.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-editor.test.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/rich-text-editor.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ToolbarProps {
2
+ className?: string;
3
+ }
4
+ export declare function Toolbar({ className }: ToolbarProps): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/rich-text-editor/toolbar.tsx"],"names":[],"mappings":"AAkCA,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,YAAY,2CAwQlD"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/giacomorebonato/mino-daisy-react.git"
6
6
  },
7
- "version": "1.0.4",
7
+ "version": "1.1.0",
8
8
  "description": "React component library wrapping DaisyUI components",
9
9
  "type": "module",
10
10
  "main": "./dist/index.js",
@@ -62,7 +62,15 @@
62
62
  "typescript": "^5.9.3"
63
63
  },
64
64
  "dependencies": {
65
+ "@lexical/html": "^0.38.2",
66
+ "@lexical/link": "^0.38.2",
67
+ "@lexical/list": "^0.38.2",
68
+ "@lexical/react": "^0.38.2",
69
+ "@lexical/rich-text": "^0.38.2",
70
+ "@lexical/selection": "^0.38.2",
71
+ "@lexical/utils": "^0.38.2",
65
72
  "clsx": "^2.1.1",
73
+ "lexical": "^0.38.2",
66
74
  "react-day-picker": "^9.11.1"
67
75
  },
68
76
  "private": false