@micromag/fields 0.3.755 → 0.3.763
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/es/index.js +8 -2
- package/package.json +9 -9
package/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defineMessage, FormattedMessage, useIntl } from 'react-intl';
|
|
|
3
3
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import { v1, v4 } from 'uuid';
|
|
6
|
-
import React, { useMemo, useCallback, useState, useRef, useEffect
|
|
6
|
+
import React, { useMemo, useCallback, useState, useRef, useEffect } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useFieldsManager, useFieldComponent, useFieldContext, FieldsValueContextProvider, useGetColors, FieldContextProvider, useFonts, useGoogleMapsClient, useFieldsValue, useScreenDefinition, ComponentsProvider, FIELDS_NAMESPACE, FieldsProvider as FieldsProvider$1 } from '@micromag/core/contexts';
|
|
9
9
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
@@ -8790,10 +8790,13 @@ var TextEditorField = function TextEditorField(_ref) {
|
|
|
8790
8790
|
}
|
|
8791
8791
|
return editorConfig;
|
|
8792
8792
|
}, [editorConfig, withoutLink]);
|
|
8793
|
-
|
|
8793
|
+
|
|
8794
|
+
// const uniqueId = useId();
|
|
8795
|
+
var uniqueId = 'fdsfsdfs';
|
|
8794
8796
|
var id = "editor-".concat(uniqueId);
|
|
8795
8797
|
var finalEditorConfig = useMemo(function () {
|
|
8796
8798
|
return _objectSpread(_objectSpread({
|
|
8799
|
+
licenseKey: 'GPL',
|
|
8797
8800
|
extraPlugins: [].concat(_toConsumableArray(defaultPlugins), _toConsumableArray(inline ? inlinePlugins : []), _toConsumableArray(withFullEditor ? fullPlugins : [])).filter(function (it) {
|
|
8798
8801
|
return it !== null;
|
|
8799
8802
|
}),
|
|
@@ -8820,6 +8823,9 @@ var TextEditorField = function TextEditorField(_ref) {
|
|
|
8820
8823
|
}
|
|
8821
8824
|
});
|
|
8822
8825
|
}, [defaultEditorConfig, inline, locale, withFullEditor, defaultPlugins, inlinePlugins, fullPlugins]);
|
|
8826
|
+
console.log({
|
|
8827
|
+
finalEditorConfig: finalEditorConfig
|
|
8828
|
+
});
|
|
8823
8829
|
var onEditorReady = useCallback(function () {}, []);
|
|
8824
8830
|
var onEditorChange = useCallback(function (event, editor) {
|
|
8825
8831
|
var data = editor.getData();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/fields",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.763",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
80
80
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
81
81
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
82
|
-
"@micromag/ckeditor": "^0.3.
|
|
83
|
-
"@micromag/core": "^0.3.
|
|
84
|
-
"@micromag/data": "^0.3.
|
|
85
|
-
"@micromag/element-grid": "^0.3.
|
|
86
|
-
"@micromag/element-keypad": "^0.3.
|
|
87
|
-
"@micromag/element-map": "^0.3.
|
|
88
|
-
"@micromag/media-gallery": "^0.3.
|
|
82
|
+
"@micromag/ckeditor": "^0.3.757",
|
|
83
|
+
"@micromag/core": "^0.3.763",
|
|
84
|
+
"@micromag/data": "^0.3.763",
|
|
85
|
+
"@micromag/element-grid": "^0.3.763",
|
|
86
|
+
"@micromag/element-keypad": "^0.3.763",
|
|
87
|
+
"@micromag/element-map": "^0.3.763",
|
|
88
|
+
"@micromag/media-gallery": "^0.3.763",
|
|
89
89
|
"@panneau/uppy": "^3.0.162",
|
|
90
90
|
"classnames": "^2.2.6",
|
|
91
91
|
"draft-js": "^0.11.7",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"access": "public",
|
|
106
106
|
"registry": "https://registry.npmjs.org/"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "843084e78ba9bf2de883b2c958bd38853cdc20e6"
|
|
109
109
|
}
|