@zohodesk/dot 1.4.9 → 1.4.11

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 (79) hide show
  1. package/.cli/UnValidatedFiles.html +101 -0
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +10 -1
  4. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  5. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  6. package/coverage/ExternalLink/index.html +1 -1
  7. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  8. package/coverage/ExternalLink/props/index.html +1 -1
  9. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  10. package/coverage/IconButton/IconButton.js.html +1 -1
  11. package/coverage/IconButton/IconButton.module.css.html +1 -1
  12. package/coverage/IconButton/index.html +1 -1
  13. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  14. package/coverage/IconButton/props/index.html +1 -1
  15. package/coverage/IconButton/props/propTypes.js.html +1 -1
  16. package/coverage/Image/Image.js.html +1 -1
  17. package/coverage/Image/Image.module.css.html +1 -1
  18. package/coverage/Image/index.html +1 -1
  19. package/coverage/Image/props/defaultProps.js.html +1 -1
  20. package/coverage/Image/props/index.html +1 -1
  21. package/coverage/Image/props/propTypes.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  28. package/coverage/index.html +1 -1
  29. package/es/NewStar/NewStar.module.css +128 -67
  30. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -4
  31. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
  32. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  33. package/es/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  34. package/es/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  35. package/es/form/fields/TextEditor/TextEditor.module.css +63 -47
  36. package/es/v1/form/fields/SelectField/SelectField.js +1 -9
  37. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +42 -13
  38. package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
  39. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
  40. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  41. package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  42. package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  43. package/es/v1/form/fields/TextBoxField/TextBoxField.js +122 -142
  44. package/es/v1/form/fields/TextEditorField/TextEditorField.js +133 -153
  45. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +137 -178
  46. package/es/v1/form/fields/TextareaField/TextareaField.js +113 -137
  47. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +43 -43
  48. package/es/v1/form/layout/Field/Field.js +24 -28
  49. package/es/v1/form/layout/Section/Section.js +26 -33
  50. package/es/v1/list/Subject/Subject.js +39 -48
  51. package/es/v1/list/TagNew/TagNew.js +18 -27
  52. package/es/v1/list/Thread/Thread.js +26 -35
  53. package/lib/NewStar/NewStar.module.css +128 -67
  54. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -5
  55. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +9 -0
  56. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  57. package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  58. package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  59. package/lib/form/fields/TextEditor/TextEditor.module.css +63 -47
  60. package/lib/v1/form/fields/SelectField/SelectField.js +1 -7
  61. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +45 -13
  62. package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +4 -1
  63. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +10 -1
  64. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +9 -2
  65. package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +3 -1
  66. package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +5 -1
  67. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +125 -181
  68. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +138 -193
  69. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +160 -212
  70. package/lib/v1/form/fields/TextareaField/TextareaField.js +117 -177
  71. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +41 -80
  72. package/lib/v1/form/layout/Field/Field.js +22 -69
  73. package/lib/v1/form/layout/Section/Section.js +26 -72
  74. package/lib/v1/list/Subject/Subject.js +39 -87
  75. package/lib/v1/list/TagNew/TagNew.js +18 -66
  76. package/lib/v1/list/Thread/Thread.js +25 -73
  77. package/package.json +10 -10
  78. package/propValidationArg.json +8 -4
  79. package/result.json +1 -1
@@ -31,200 +31,145 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
33
33
 
34
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
-
36
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
37
-
38
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
-
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
-
44
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
45
-
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
47
-
48
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
49
-
50
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
-
52
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
-
54
- var TextEditorField = /*#__PURE__*/function (_PureComponent) {
55
- _inherits(TextEditorField, _PureComponent);
56
-
57
- var _super = _createSuper(TextEditorField);
58
-
59
- function TextEditorField(props) {
60
- var _this;
61
-
62
- _classCallCheck(this, TextEditorField);
63
-
64
- _this = _super.call(this, props);
65
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
66
- _this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
67
- _this.handleLabelClick = _this.handleLabelClick.bind(_assertThisInitialized(_this));
68
- _this.renderEnd = _this.renderEnd.bind(_assertThisInitialized(_this));
69
- return _this;
70
- }
71
-
72
- _createClass(TextEditorField, [{
73
- key: "handleChange",
74
- value: function handleChange(value) {
75
- var _this$props = this.props,
76
- id = _this$props.id,
77
- onChange = _this$props.onChange;
78
- onChange && onChange(id, value);
34
+ var TextEditorField = function TextEditorField(props) {
35
+ var labelName = props.labelName,
36
+ id = props.id,
37
+ isMandatory = props.isMandatory,
38
+ value = props.value,
39
+ validationMessage = props.validationMessage,
40
+ validationPalette = props.validationPalette,
41
+ isReadOnly = props.isReadOnly,
42
+ onAttachmentUpload = props.onAttachmentUpload,
43
+ needEditor = props.needEditor,
44
+ dataId = props.dataId,
45
+ dataSelectorId = props.dataSelectorId,
46
+ isDisabled = props.isDisabled,
47
+ fieldSize = props.fieldSize,
48
+ textBoxSize = props.textBoxSize,
49
+ textBoxVariant = props.textBoxVariant,
50
+ labelPalette = props.labelPalette,
51
+ labelCustomClass = props.labelCustomClass,
52
+ infoText = props.infoText,
53
+ isLocked = props.isLocked,
54
+ lockedInfoText = props.lockedInfoText,
55
+ errorType = props.errorType,
56
+ EDITORURL = props.EDITORURL,
57
+ editorMode = props.editorMode,
58
+ isCustomScroll = props.isCustomScroll,
59
+ initCallback = props.initCallback,
60
+ loadingComponent = props.loadingComponent,
61
+ handleAlertMessage = props.handleAlertMessage,
62
+ editorCallback = props.editorCallback,
63
+ editorBlurCallback = props.editorBlurCallback,
64
+ editorOptions = props.editorOptions,
65
+ onFocus = props.onFocus,
66
+ isEditorDefaultOpen = props.isEditorDefaultOpen,
67
+ changeEditorContent = props.changeEditorContent,
68
+ shouldEditorUpdateContent = props.shouldEditorUpdateContent,
69
+ setInlineAttachmentInProgress = props.setInlineAttachmentInProgress,
70
+ handleEditorDropUpload = props.handleEditorDropUpload,
71
+ ImgLazyLoad = props.ImgLazyLoad,
72
+ needInlineAttachment = props.needInlineAttachment,
73
+ i18nKeys = props.i18nKeys,
74
+ className = props.className,
75
+ children = props.children,
76
+ ePhiData = props.ePhiData,
77
+ customProps = props.customProps,
78
+ onChange = props.onChange,
79
+ getRef = props.getRef,
80
+ isFocusOnLabelClick = props.isFocusOnLabelClick;
81
+ var textEditorEleRef = (0, _react.useRef)(null);
82
+ var _customProps$LabelPro = customProps.LabelProps,
83
+ LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
84
+ _customProps$TextEdit = customProps.TextEditorWrapperProps,
85
+ TextEditorWrapperProps = _customProps$TextEdit === void 0 ? {} : _customProps$TextEdit,
86
+ _customProps$Validati = customProps.ValidationMessageProps,
87
+ ValidationMessageProps = _customProps$Validati === void 0 ? {} : _customProps$Validati;
88
+
89
+ var handleChange = function handleChange(value) {
90
+ onChange && onChange(id, value);
91
+ };
92
+
93
+ var handleGetRef = function handleGetRef(el) {
94
+ textEditorEleRef.current = el;
95
+ getRef && getRef(el, id);
96
+ };
97
+
98
+ var handleLabelClick = function handleLabelClick() {
99
+ if (isFocusOnLabelClick && !isDisabled && !isReadOnly && textEditorEleRef.current && textEditorEleRef.current.focus) {
100
+ textEditorEleRef.current.focus();
79
101
  }
80
- }, {
81
- key: "handleGetRef",
82
- value: function handleGetRef(el) {
83
- var _this$props2 = this.props,
84
- getRef = _this$props2.getRef,
85
- id = _this$props2.id;
86
- this.textEditor = el;
87
- getRef && getRef(el, id);
102
+ };
103
+
104
+ var renderEnd = function renderEnd() {
105
+ return children ? children : null;
106
+ };
107
+
108
+ return /*#__PURE__*/_react["default"].createElement("div", {
109
+ className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(className || ''),
110
+ "data-selector-id": dataSelectorId
111
+ }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
112
+ infoText: infoText,
113
+ isLocked: isLocked,
114
+ lockedInfoText: lockedInfoText,
115
+ ePhiData: ePhiData,
116
+ dataId: dataId,
117
+ renderProps: {
118
+ end: renderEnd
88
119
  }
89
- }, {
90
- key: "handleLabelClick",
91
- value: function handleLabelClick() {
92
- var _this$props3 = this.props,
93
- isFocusOnLabelClick = _this$props3.isFocusOnLabelClick,
94
- isDisabled = _this$props3.isDisabled,
95
- isReadOnly = _this$props3.isReadOnly;
96
-
97
- if (isFocusOnLabelClick && !isDisabled && !isReadOnly && this.textEditor && this.textEditor.focus) {
98
- this.textEditor.focus();
99
- }
100
- }
101
- }, {
102
- key: "renderEnd",
103
- value: function renderEnd() {
104
- var children = this.props.children;
105
- return children ? children : null;
106
- }
107
- }, {
108
- key: "render",
109
- value: function render() {
110
- var _this$props4 = this.props,
111
- labelName = _this$props4.labelName,
112
- id = _this$props4.id,
113
- isMandatory = _this$props4.isMandatory,
114
- value = _this$props4.value,
115
- validationMessage = _this$props4.validationMessage,
116
- validationPalette = _this$props4.validationPalette,
117
- isReadOnly = _this$props4.isReadOnly,
118
- onAttachmentUpload = _this$props4.onAttachmentUpload,
119
- needEditor = _this$props4.needEditor,
120
- dataId = _this$props4.dataId,
121
- dataSelectorId = _this$props4.dataSelectorId,
122
- isDisabled = _this$props4.isDisabled,
123
- fieldSize = _this$props4.fieldSize,
124
- textBoxSize = _this$props4.textBoxSize,
125
- textBoxVariant = _this$props4.textBoxVariant,
126
- labelPalette = _this$props4.labelPalette,
127
- labelCustomClass = _this$props4.labelCustomClass,
128
- infoText = _this$props4.infoText,
129
- isLocked = _this$props4.isLocked,
130
- lockedInfoText = _this$props4.lockedInfoText,
131
- errorType = _this$props4.errorType,
132
- EDITORURL = _this$props4.EDITORURL,
133
- editorMode = _this$props4.editorMode,
134
- isCustomScroll = _this$props4.isCustomScroll,
135
- initCallback = _this$props4.initCallback,
136
- loadingComponent = _this$props4.loadingComponent,
137
- handleAlertMessage = _this$props4.handleAlertMessage,
138
- editorCallback = _this$props4.editorCallback,
139
- editorBlurCallback = _this$props4.editorBlurCallback,
140
- editorOptions = _this$props4.editorOptions,
141
- onFocus = _this$props4.onFocus,
142
- isEditorDefaultOpen = _this$props4.isEditorDefaultOpen,
143
- changeEditorContent = _this$props4.changeEditorContent,
144
- shouldEditorUpdateContent = _this$props4.shouldEditorUpdateContent,
145
- setInlineAttachmentInProgress = _this$props4.setInlineAttachmentInProgress,
146
- handleEditorDropUpload = _this$props4.handleEditorDropUpload,
147
- ImgLazyLoad = _this$props4.ImgLazyLoad,
148
- needInlineAttachment = _this$props4.needInlineAttachment,
149
- i18nKeys = _this$props4.i18nKeys,
150
- className = _this$props4.className,
151
- children = _this$props4.children,
152
- ePhiData = _this$props4.ePhiData,
153
- customProps = _this$props4.customProps;
154
- var _customProps$LabelPro = customProps.LabelProps,
155
- LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
156
- _customProps$TextEdit = customProps.TextEditorWrapperProps,
157
- TextEditorWrapperProps = _customProps$TextEdit === void 0 ? {} : _customProps$TextEdit,
158
- _customProps$Validati = customProps.ValidationMessageProps,
159
- ValidationMessageProps = _customProps$Validati === void 0 ? {} : _customProps$Validati;
160
- return /*#__PURE__*/_react["default"].createElement("div", {
161
- className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(className || ''),
162
- "data-selector-id": dataSelectorId
163
- }, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
164
- infoText: infoText,
165
- isLocked: isLocked,
166
- lockedInfoText: lockedInfoText,
167
- ePhiData: ePhiData,
168
- dataId: dataId,
169
- renderProps: {
170
- end: this.renderEnd
171
- }
172
- }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
173
- text: labelName,
174
- size: fieldSize === 'small' ? 'small' : 'medium',
175
- htmlFor: !isReadOnly && !isDisabled ? id : undefined,
176
- palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
177
- onClick: this.handleLabelClick,
178
- customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
179
- dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
180
- }, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
181
- className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
182
- }, /*#__PURE__*/_react["default"].createElement(_TextEditorWrapper["default"], _extends({
183
- needEditor: needEditor,
184
- onChange: this.handleChange,
185
- id: id,
186
- value: value,
187
- isReadOnly: isReadOnly,
188
- getRef: this.handleGetRef,
189
- onAttachmentUpload: onAttachmentUpload,
190
- dataId: dataId,
191
- isDisabled: isDisabled,
192
- textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
193
- textBoxVariant: textBoxVariant,
194
- EDITORURL: EDITORURL,
195
- editorMode: editorMode,
196
- isCustomScroll: isCustomScroll,
197
- initCallback: initCallback,
198
- loadingComponent: loadingComponent,
199
- handleAlertMessage: handleAlertMessage,
200
- editorCallback: editorCallback,
201
- i18nKeys: i18nKeys,
202
- ImgLazyLoad: ImgLazyLoad,
203
- editorOptions: editorOptions,
204
- editorBlurCallback: editorBlurCallback,
205
- onFocus: onFocus,
206
- isEditorDefaultOpen: isEditorDefaultOpen,
207
- changeEditorContent: changeEditorContent,
208
- shouldEditorUpdateContent: shouldEditorUpdateContent,
209
- setInlineAttachmentInProgress: setInlineAttachmentInProgress,
210
- handleEditorDropUpload: handleEditorDropUpload,
211
- needInlineAttachment: needInlineAttachment
212
- }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
213
- text: validationMessage,
214
- palette: validationPalette,
215
- type: errorType,
216
- dataId: "".concat(dataId, "_ValidationMessage")
217
- }, ValidationMessageProps)));
218
- }
219
- }]);
220
-
221
- return TextEditorField;
222
- }(_react.PureComponent);
120
+ }, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
121
+ text: labelName,
122
+ size: fieldSize === 'small' ? 'small' : 'medium',
123
+ htmlFor: !isReadOnly && !isDisabled ? id : undefined,
124
+ palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
125
+ onClick: handleLabelClick,
126
+ customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
127
+ dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
128
+ }, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
129
+ className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
130
+ }, /*#__PURE__*/_react["default"].createElement(_TextEditorWrapper["default"], _extends({
131
+ needEditor: needEditor,
132
+ onChange: handleChange,
133
+ id: id,
134
+ value: value,
135
+ isReadOnly: isReadOnly,
136
+ getRef: handleGetRef,
137
+ onAttachmentUpload: onAttachmentUpload,
138
+ dataId: dataId,
139
+ isDisabled: isDisabled,
140
+ textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
141
+ textBoxVariant: textBoxVariant,
142
+ EDITORURL: EDITORURL,
143
+ editorMode: editorMode,
144
+ isCustomScroll: isCustomScroll,
145
+ initCallback: initCallback,
146
+ loadingComponent: loadingComponent,
147
+ handleAlertMessage: handleAlertMessage,
148
+ editorCallback: editorCallback,
149
+ i18nKeys: i18nKeys,
150
+ ImgLazyLoad: ImgLazyLoad,
151
+ editorOptions: editorOptions,
152
+ editorBlurCallback: editorBlurCallback,
153
+ onFocus: onFocus,
154
+ isEditorDefaultOpen: isEditorDefaultOpen,
155
+ changeEditorContent: changeEditorContent,
156
+ shouldEditorUpdateContent: shouldEditorUpdateContent,
157
+ setInlineAttachmentInProgress: setInlineAttachmentInProgress,
158
+ handleEditorDropUpload: handleEditorDropUpload,
159
+ needInlineAttachment: needInlineAttachment
160
+ }, TextEditorWrapperProps))), validationMessage && /*#__PURE__*/_react["default"].createElement(_ValidationMessage["default"], _extends({
161
+ text: validationMessage,
162
+ palette: validationPalette,
163
+ type: errorType,
164
+ dataId: "".concat(dataId, "_ValidationMessage")
165
+ }, ValidationMessageProps)));
166
+ };
223
167
 
224
- exports["default"] = TextEditorField;
225
168
  TextEditorField.propTypes = _propTypes.propTypes;
226
- TextEditorField.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
227
- // TextEditorField.docs = {
228
- // componentGroup: 'Fields'
229
- // };
230
- // }
169
+ TextEditorField.defaultProps = _defaultProps.defaultProps;
170
+ var MemoizedTextEditorField = /*#__PURE__*/(0, _react.memo)(TextEditorField);
171
+ MemoizedTextEditorField.propTypes = _propTypes.propTypes;
172
+ MemoizedTextEditorField.defaultProps = _defaultProps.defaultProps;
173
+ MemoizedTextEditorField.displayName = 'TextEditorField';
174
+ var _default = TextEditorField;
175
+ exports["default"] = _default;