@flozy/editor 3.9.3 → 3.9.5

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.
@@ -126,12 +126,12 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
126
126
  }
127
127
  }
128
128
  }));
129
- useEffect(() => {
130
- setIsExternalUpdate(true);
131
- setValue(draftToSlate({
132
- data: content
133
- }));
134
- }, [content]);
129
+
130
+ // useEffect(() => {
131
+ // setIsExternalUpdate(true);
132
+ // setValue(draftToSlate({ data: content }));
133
+ // }, [content]);
134
+
135
135
  useEffect(() => {
136
136
  if (JSON.stringify(loadedValue) !== JSON.stringify(deboundedValue) && isInteracted && onSave) {
137
137
  const {
@@ -194,14 +194,9 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
194
194
  });
195
195
  };
196
196
  const handleEditorChange = newValue => {
197
- if (isExternalUpdate) {
198
- setIsExternalUpdate(false);
199
- return;
200
- } else {
201
- setValue(newValue);
202
- if (!isInteracted) {
203
- setIsInteracted(true);
204
- }
197
+ setValue(newValue);
198
+ if (!isInteracted) {
199
+ setIsInteracted(true);
205
200
  }
206
201
  };
207
202
  const Element = props => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.9.3",
3
+ "version": "3.9.5",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"