@panneau/field-html 3.0.101 → 3.0.113
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 +1 -3
- package/lib/index.js +1 -3
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -92,7 +92,6 @@ var defaultProps = {
|
|
|
92
92
|
// 'blockQuote',
|
|
93
93
|
// 'mediaEmbed',
|
|
94
94
|
],
|
|
95
|
-
|
|
96
95
|
heading: {
|
|
97
96
|
options: [{
|
|
98
97
|
model: 'paragraph',
|
|
@@ -122,7 +121,6 @@ var defaultProps = {
|
|
|
122
121
|
className: null
|
|
123
122
|
};
|
|
124
123
|
var HtmlField = function HtmlField(_ref) {
|
|
125
|
-
var _ref2;
|
|
126
124
|
var feedback = _ref.feedback,
|
|
127
125
|
errors = _ref.errors,
|
|
128
126
|
value = _ref.value,
|
|
@@ -136,7 +134,7 @@ var HtmlField = function HtmlField(_ref) {
|
|
|
136
134
|
className = _ref.className;
|
|
137
135
|
var CKEditorBuild = useCKEditorBuild$1();
|
|
138
136
|
var CKValue = value !== null ? value : '';
|
|
139
|
-
var finalClassName = inline ? classNames([styles.container, 'form-control', (
|
|
137
|
+
var finalClassName = inline ? classNames([styles.container, 'form-control', _defineProperty(_defineProperty(_defineProperty({}, className, className !== null), 'is-valid', feedback === 'valid'), 'is-invalid', feedback === 'invalid' || errors !== null && errors.length > 0)]) : classNames([styles.container, _defineProperty({}, className, className !== null)]);
|
|
140
138
|
var onCkEditorChange = useCallback(function (event, editor) {
|
|
141
139
|
var data = editor.getData();
|
|
142
140
|
if (onChange !== null) {
|
package/lib/index.js
CHANGED
|
@@ -123,7 +123,6 @@ var defaultProps = {
|
|
|
123
123
|
// 'blockQuote',
|
|
124
124
|
// 'mediaEmbed',
|
|
125
125
|
],
|
|
126
|
-
|
|
127
126
|
heading: {
|
|
128
127
|
options: [{
|
|
129
128
|
model: 'paragraph',
|
|
@@ -153,7 +152,6 @@ var defaultProps = {
|
|
|
153
152
|
className: null
|
|
154
153
|
};
|
|
155
154
|
var HtmlField = function HtmlField(_ref) {
|
|
156
|
-
var _ref2;
|
|
157
155
|
var feedback = _ref.feedback,
|
|
158
156
|
errors = _ref.errors,
|
|
159
157
|
value = _ref.value,
|
|
@@ -167,7 +165,7 @@ var HtmlField = function HtmlField(_ref) {
|
|
|
167
165
|
className = _ref.className;
|
|
168
166
|
var CKEditorBuild = useCKEditorBuild$1();
|
|
169
167
|
var CKValue = value !== null ? value : '';
|
|
170
|
-
var finalClassName = inline ? classNames__default["default"]([styles.container, 'form-control', (
|
|
168
|
+
var finalClassName = inline ? classNames__default["default"]([styles.container, 'form-control', _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"]({}, className, className !== null), 'is-valid', feedback === 'valid'), 'is-invalid', feedback === 'invalid' || errors !== null && errors.length > 0)]) : classNames__default["default"]([styles.container, _defineProperty__default["default"]({}, className, className !== null)]);
|
|
171
169
|
var onCkEditorChange = React.useCallback(function (event, editor) {
|
|
172
170
|
var data = editor.getData();
|
|
173
171
|
if (onChange !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-html",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.113",
|
|
4
4
|
"description": "A HTML field, using either Quill or CK Editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"@ckeditor/ckeditor5-build-classic": "^40.2.0",
|
|
57
57
|
"@ckeditor/ckeditor5-build-inline": "^40.2.0",
|
|
58
58
|
"@ckeditor/ckeditor5-react": "^6.2.0",
|
|
59
|
-
"@panneau/core": "^3.0.
|
|
60
|
-
"@panneau/field-input-group": "^3.0.
|
|
61
|
-
"@panneau/themes": "^3.0.
|
|
59
|
+
"@panneau/core": "^3.0.113",
|
|
60
|
+
"@panneau/field-input-group": "^3.0.113",
|
|
61
|
+
"@panneau/themes": "^3.0.113",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"prop-types": "^15.7.2"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "a59fb00eb93cc259b4c2b6c3e6f3645f3d1b019f"
|
|
69
69
|
}
|