@lets-events/react 12.1.11 → 12.1.13
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.
- package/.turbo/turbo-build.log +6 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.js +878 -19
- package/dist/index.mjs +878 -19
- package/package.json +1 -1
- package/src/components/RichEditor/QuillComponent.tsx +1 -1
- package/src/components/RichEditor/RichEditor.tsx +1 -1
- package/src/components/RichEditor/styledComponents.ts +1104 -17
- package/src/components/RichEditor/styles.css +0 -1300
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect, useCallback } from "react";
|
|
2
2
|
import { useQuill } from "react-quilljs";
|
|
3
|
-
import "./styles.css";
|
|
4
3
|
import { Flex } from "../Flex";
|
|
5
4
|
import { Text } from "../Text";
|
|
6
5
|
import { RichEditorProps } from "./RichEditor";
|
|
@@ -100,6 +99,7 @@ const QuillComponent: React.FC<RichEditorProps> = ({
|
|
|
100
99
|
const index = selection ? selection.index : quill.getLength();
|
|
101
100
|
quill.insertEmbed(index, "image", uploadedFile.url);
|
|
102
101
|
quill.setSelection(index + 1, 0);
|
|
102
|
+
onChange?.(quill.root.innerHTML);
|
|
103
103
|
} catch (error) {
|
|
104
104
|
console.error("Erro no upload:", error);
|
|
105
105
|
addToast({
|