@micromag/fields 0.3.732 → 0.3.736
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 +3 -4
- package/package.json +8 -8
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 } from 'react';
|
|
6
|
+
import React, { useMemo, useCallback, useState, useRef, useEffect, useId } 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,9 +8790,8 @@ var TextEditorField = function TextEditorField(_ref) {
|
|
|
8790
8790
|
}
|
|
8791
8791
|
return editorConfig;
|
|
8792
8792
|
}, [editorConfig, withoutLink]);
|
|
8793
|
-
var
|
|
8794
|
-
|
|
8795
|
-
}, []);
|
|
8793
|
+
var uniqueId = useId();
|
|
8794
|
+
var id = "editor-".concat(uniqueId);
|
|
8796
8795
|
var finalEditorConfig = useMemo(function () {
|
|
8797
8796
|
return _objectSpread(_objectSpread({
|
|
8798
8797
|
extraPlugins: [].concat(_toConsumableArray(defaultPlugins), _toConsumableArray(inline ? inlinePlugins : []), _toConsumableArray(withFullEditor ? fullPlugins : [])).filter(function (it) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/fields",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.736",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
81
81
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
82
82
|
"@micromag/ckeditor": "^0.3.676",
|
|
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.
|
|
83
|
+
"@micromag/core": "^0.3.736",
|
|
84
|
+
"@micromag/data": "^0.3.736",
|
|
85
|
+
"@micromag/element-grid": "^0.3.736",
|
|
86
|
+
"@micromag/element-keypad": "^0.3.736",
|
|
87
|
+
"@micromag/element-map": "^0.3.736",
|
|
88
|
+
"@micromag/media-gallery": "^0.3.736",
|
|
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": "77bd0bf6941418463c0f7bbb68bf9b20379c5c55"
|
|
109
109
|
}
|