@onehat/ui 0.2.28 → 0.2.29
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 +1 -2
- package/src/Components/Form/Field/{HtmlEditor.js → CKEditor/CKEditor.js} +3 -2
- package/src/Functions/registerReactNativeComponents.js +0 -2
- package/src/Functions/registerWebComponents.js +1 -1
- package/src/Components/Form/Field/CKEditor.js +0 -12
- package/src/PlatformImports/ReactNative/CKEditor.js +0 -3
- package/src/PlatformImports/Web/CKEditor.js +0 -4
- /package/src/{PlatformImports/Web → Components/Form/Field/CKEditor}/ckeditor.css +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onehat/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"react-datetime": "^3.2.0",
|
|
34
34
|
"react-draggable": "^4.4.5",
|
|
35
35
|
"react-native-draggable": "^3.3.0",
|
|
36
|
-
"react-native-ckeditor5": "^1.0.9",
|
|
37
36
|
"react-dom": "*",
|
|
38
37
|
"react-native": "*"
|
|
39
38
|
},
|
|
@@ -5,12 +5,14 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
AUTO_SUBMIT_DELAY,
|
|
7
7
|
} from '../../../Constants/Input.js';
|
|
8
|
+
import { CKEditor } from '@ckeditor/ckeditor5-react'; // https://ckeditor.com/docs/ckeditor5/latest/installation/frameworks/react.html
|
|
9
|
+
import './ckeditor.css';
|
|
8
10
|
import Editor from 'ckeditor5-custom-build/build/ckeditor.js'; // built using https://ckeditor.com/ckeditor-5/online-builder/
|
|
9
|
-
import getComponentFromType from '../../../Functions/getComponentFromType.js';
|
|
10
11
|
import withValue from '../../Hoc/withValue.js';
|
|
11
12
|
import withTooltip from '../../Hoc/withTooltip.js';
|
|
12
13
|
import _ from 'lodash';
|
|
13
14
|
|
|
15
|
+
|
|
14
16
|
const
|
|
15
17
|
HtmlEditorElement = (props) => {
|
|
16
18
|
const {
|
|
@@ -18,7 +20,6 @@ const
|
|
|
18
20
|
setValue,
|
|
19
21
|
h = 150,
|
|
20
22
|
} = props,
|
|
21
|
-
CKEditor = getComponentFromType('CKEditor'),
|
|
22
23
|
debouncedSetValueRef = useRef(),
|
|
23
24
|
[editor, setEditor] = useState(null), // in case you need to adjust things procedurally
|
|
24
25
|
config = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import UiGlobals from '../UiGlobals.js';
|
|
2
|
-
import CKEditor from '../PlatformImports/ReactNative/CKEditor';
|
|
3
2
|
import Datetime from '../PlatformImports/ReactNative/Datetime';
|
|
4
3
|
import Draggable from '../PlatformImports/ReactNative/Draggable';
|
|
5
4
|
import ScreenContainer from '../Components/Container/ScreenContainer';
|
|
@@ -7,7 +6,6 @@ import _ from 'lodash';
|
|
|
7
6
|
|
|
8
7
|
export default function registerReactNativeComponents() {
|
|
9
8
|
_.merge(UiGlobals.components, {
|
|
10
|
-
CKEditor,
|
|
11
9
|
Datetime,
|
|
12
10
|
Draggable,
|
|
13
11
|
ScreenContainer,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import UiGlobals from '../UiGlobals.js';
|
|
2
|
-
import CKEditor from '../
|
|
2
|
+
import CKEditor from '../Components/Form/Field/CKEditor/CKEditor.js';
|
|
3
3
|
import Datetime from '../PlatformImports/Web/Datetime.js';
|
|
4
4
|
import Draggable from '../PlatformImports/Web/Draggable.js';
|
|
5
5
|
import File from '../Components/Form/Field/File.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box,
|
|
3
|
-
} from 'native-base';
|
|
4
|
-
import _ from 'lodash';
|
|
5
|
-
|
|
6
|
-
export default function CKEditor(props) {
|
|
7
|
-
|
|
8
|
-
// See ExtJS compatible OneBuild implementation for ideas.
|
|
9
|
-
// Also see es6 folder in Venpal
|
|
10
|
-
|
|
11
|
-
throw new Error('not yet implemented');
|
|
12
|
-
}
|
|
File without changes
|