@lets-events/react 12.1.12 → 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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @lets-events/react@12.1.12 build
3
+ > @lets-events/react@12.1.13 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
6
  CLI Building entry: src/index.tsx
@@ -10,12 +10,12 @@
10
10
  CLI Target: es6
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 388.34 KB
14
- CJS ⚡️ Build success in 268ms
15
- ESM dist/index.mjs 374.51 KB
16
- ESM ⚡️ Build success in 269ms
13
+ ESM dist/index.mjs 374.58 KB
14
+ ESM ⚡️ Build success in 286ms
15
+ CJS dist/index.js 388.40 KB
16
+ CJS ⚡️ Build success in 286ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 5419ms
18
+ DTS ⚡️ Build success in 91323ms
19
19
  DTS dist/index.d.mts 388.87 KB
20
20
  DTS dist/index.d.ts 388.87 KB
21
21
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - RichEditor - UploadImage
8
+
3
9
  ## 12.1.12
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -155,7 +155,7 @@ var require_react_is_development = __commonJS({
155
155
  var Portal = REACT_PORTAL_TYPE;
156
156
  var Profiler = REACT_PROFILER_TYPE;
157
157
  var StrictMode = REACT_STRICT_MODE_TYPE;
158
- var Suspense2 = REACT_SUSPENSE_TYPE;
158
+ var Suspense = REACT_SUSPENSE_TYPE;
159
159
  var hasWarnedAboutDeprecatedIsAsyncMode = false;
160
160
  function isAsyncMode(object) {
161
161
  {
@@ -214,7 +214,7 @@ var require_react_is_development = __commonJS({
214
214
  exports2.Portal = Portal;
215
215
  exports2.Profiler = Profiler;
216
216
  exports2.StrictMode = StrictMode;
217
- exports2.Suspense = Suspense2;
217
+ exports2.Suspense = Suspense;
218
218
  exports2.isAsyncMode = isAsyncMode;
219
219
  exports2.isConcurrentMode = isConcurrentMode;
220
220
  exports2.isContextConsumer = isContextConsumer;
@@ -12127,6 +12127,7 @@ var QuillComponent = ({
12127
12127
  const index = selection ? selection.index : quill.getLength();
12128
12128
  quill.insertEmbed(index, "image", uploadedFile.url);
12129
12129
  quill.setSelection(index + 1, 0);
12130
+ onChange == null ? void 0 : onChange(quill.root.innerHTML);
12130
12131
  } catch (error) {
12131
12132
  console.error("Erro no upload:", error);
12132
12133
  addToast({
package/dist/index.mjs CHANGED
@@ -149,7 +149,7 @@ var require_react_is_development = __commonJS({
149
149
  var Portal = REACT_PORTAL_TYPE;
150
150
  var Profiler = REACT_PROFILER_TYPE;
151
151
  var StrictMode = REACT_STRICT_MODE_TYPE;
152
- var Suspense2 = REACT_SUSPENSE_TYPE;
152
+ var Suspense = REACT_SUSPENSE_TYPE;
153
153
  var hasWarnedAboutDeprecatedIsAsyncMode = false;
154
154
  function isAsyncMode(object) {
155
155
  {
@@ -208,7 +208,7 @@ var require_react_is_development = __commonJS({
208
208
  exports.Portal = Portal;
209
209
  exports.Profiler = Profiler;
210
210
  exports.StrictMode = StrictMode;
211
- exports.Suspense = Suspense2;
211
+ exports.Suspense = Suspense;
212
212
  exports.isAsyncMode = isAsyncMode;
213
213
  exports.isConcurrentMode = isConcurrentMode;
214
214
  exports.isContextConsumer = isContextConsumer;
@@ -12025,6 +12025,7 @@ var QuillComponent = ({
12025
12025
  const index = selection ? selection.index : quill.getLength();
12026
12026
  quill.insertEmbed(index, "image", uploadedFile.url);
12027
12027
  quill.setSelection(index + 1, 0);
12028
+ onChange == null ? void 0 : onChange(quill.root.innerHTML);
12028
12029
  } catch (error) {
12029
12030
  console.error("Erro no upload:", error);
12030
12031
  addToast({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.1.12",
3
+ "version": "12.1.13",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -99,6 +99,7 @@ const QuillComponent: React.FC<RichEditorProps> = ({
99
99
  const index = selection ? selection.index : quill.getLength();
100
100
  quill.insertEmbed(index, "image", uploadedFile.url);
101
101
  quill.setSelection(index + 1, 0);
102
+ onChange?.(quill.root.innerHTML);
102
103
  } catch (error) {
103
104
  console.error("Erro no upload:", error);
104
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