@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.1.11",
3
+ "version": "12.1.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -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({
@@ -1,4 +1,4 @@
1
- import { useEffect, useState, Suspense } from "react";
1
+ import { useEffect, useState } from "react";
2
2
  import { ToastProvider } from "../Toast";
3
3
  import QuillComponent from "./QuillComponent";
4
4