@dotcms/react 0.0.1-beta.10 → 0.0.1-beta.12
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/index.esm.js
CHANGED
|
@@ -3,6 +3,7 @@ import { s as styleInject, f as functionUncurryThis, t as toString$4, r as requi
|
|
|
3
3
|
import { useState, useEffect, createContext, useRef, useContext, createElement, forwardRef } from 'react';
|
|
4
4
|
import { isInsideEditor, initEditor, updateNavigation, destroyEditor, postMessageToEditor, CLIENT_ACTIONS, DotCmsClient, NOTIFY_CLIENT, initInlineEditing } from '@dotcms/client';
|
|
5
5
|
import { createUVESubscription } from '@dotcms/uve';
|
|
6
|
+
import { UVEEventType } from '@dotcms/uve/types';
|
|
6
7
|
import { Editor } from '@tinymce/tinymce-react';
|
|
7
8
|
|
|
8
9
|
var isPure = false;
|
|
@@ -55,7 +56,7 @@ const useDotcmsEditor = ({
|
|
|
55
56
|
}
|
|
56
57
|
const {
|
|
57
58
|
unsubscribe
|
|
58
|
-
} = createUVESubscription(
|
|
59
|
+
} = createUVESubscription(UVEEventType.CONTENT_CHANGES, () => onReload());
|
|
59
60
|
return () => unsubscribe();
|
|
60
61
|
}, [onReload]);
|
|
61
62
|
/**
|
|
@@ -79,7 +80,7 @@ const useDotcmsEditor = ({
|
|
|
79
80
|
}
|
|
80
81
|
const {
|
|
81
82
|
unsubscribe
|
|
82
|
-
} = createUVESubscription(
|
|
83
|
+
} = createUVESubscription(UVEEventType.CONTENT_CHANGES, data => {
|
|
83
84
|
const pageAsset = data;
|
|
84
85
|
setState(state => Object.assign({}, state, {
|
|
85
86
|
pageAsset
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.12",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
6
|
"react-dom": ">=18",
|
|
7
|
-
"@dotcms/client": "0.0.1-beta.
|
|
8
|
-
"@dotcms/uve": "0.0.1-beta.
|
|
7
|
+
"@dotcms/client": "0.0.1-beta.12",
|
|
8
|
+
"@dotcms/uve": "0.0.1-beta.12",
|
|
9
9
|
"@tinymce/tinymce-react": "^5.1.1"
|
|
10
10
|
},
|
|
11
11
|
"description": "Official React Components library to render a dotCMS page.",
|
/package/src/lib/next/components/Container/{ContainerFallbakcs.d.ts → ContainerFallbacks.d.ts}
RENAMED
|
File without changes
|