mainstack-design-system 0.3.9 → 0.4.1

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.
@@ -4,6 +4,9 @@ interface IMarkdownEditor {
4
4
  placeholder?: string;
5
5
  onHandleFile: (e: File) => void;
6
6
  label?: string;
7
+ handleGenerateAiDescription?: () => void;
8
+ isLoading?: boolean;
9
+ hasGenerateWithAi?: boolean;
7
10
  }
8
11
  type MarkdownEditorWithExclusiveValues = (IMarkdownEditor & {
9
12
  value?: string;
@@ -12,5 +15,5 @@ type MarkdownEditorWithExclusiveValues = (IMarkdownEditor & {
12
15
  defaultValue?: string;
13
16
  value?: never;
14
17
  });
15
- declare const MarkdownEditor: ({ defaultValue, onChange, border, placeholder, value, onHandleFile, label, ...props }: MarkdownEditorWithExclusiveValues) => import("react/jsx-runtime").JSX.Element;
18
+ declare const MarkdownEditor: ({ defaultValue, onChange, border, placeholder, value, onHandleFile, label, handleGenerateAiDescription, hasGenerateWithAi, ...props }: MarkdownEditorWithExclusiveValues) => import("react/jsx-runtime").JSX.Element;
16
19
  export default MarkdownEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.3.9",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",
@@ -58,6 +58,7 @@
58
58
  "react-quill": "^2.0.0",
59
59
  "react-router-dom": "^6.8.1",
60
60
  "react-select": "^5.8.0",
61
+ "react-spinners": "^0.13.8",
61
62
  "react-toastify": "^9.1.3",
62
63
  "run-script-os": "^1.1.6",
63
64
  "typescript": "^4.9.5",
@@ -108,4 +109,4 @@
108
109
  "url": "https://github.com/The-Mainstack/mainstack-design-system/issues"
109
110
  },
110
111
  "homepage": "https://github.com/The-Mainstack/mainstack-design-system#readme"
111
- }
112
+ }