@micromag/fields 0.3.753 → 0.3.757

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.
Files changed (2) hide show
  1. package/es/index.js +8 -2
  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, useId } from 'react';
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
- var uniqueId = useId();
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.753",
3
+ "version": "0.3.757",
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.676",
83
- "@micromag/core": "^0.3.753",
84
- "@micromag/data": "^0.3.753",
85
- "@micromag/element-grid": "^0.3.753",
86
- "@micromag/element-keypad": "^0.3.753",
87
- "@micromag/element-map": "^0.3.753",
88
- "@micromag/media-gallery": "^0.3.753",
82
+ "@micromag/ckeditor": "^0.3.757",
83
+ "@micromag/core": "^0.3.757",
84
+ "@micromag/data": "^0.3.757",
85
+ "@micromag/element-grid": "^0.3.757",
86
+ "@micromag/element-keypad": "^0.3.757",
87
+ "@micromag/element-map": "^0.3.757",
88
+ "@micromag/media-gallery": "^0.3.757",
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": "35ea18f2d1f7f8f0b8cbe0c1dd1ed3debb10de03"
108
+ "gitHead": "9f1f9aa6e7a767417e33e420bc6c0e1581d40087"
109
109
  }