@desynova-digital/components 9.1.41 → 9.1.42

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/_helpers/utils.js CHANGED
@@ -126,10 +126,10 @@ var cleanHtml = exports.cleanHtml = function cleanHtml(htmlStr) {
126
126
  .replace(/\s\s+/g, "").replace(/\t/g, "").replace(/\\"/g, '"').replace(/\n/g, " ");
127
127
  };
128
128
 
129
- /**
130
- *
131
- * @param {*} htmlStr
132
- * @returns
129
+ /**
130
+ *
131
+ * @param {*} htmlStr
132
+ * @returns
133
133
  */
134
134
  var htmlToText = exports.htmlToText = function htmlToText(htmlStr) {
135
135
  var res = htmlStr === null || htmlStr === void 0 ? void 0 : htmlStr.replace(/<\/?[^>]+>/gi, "");
@@ -46,11 +46,11 @@ var CardV2 = function CardV2(props) {
46
46
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, type === 'timeline' && /*#__PURE__*/_react["default"].createElement(_timeline["default"], props) || null, /*#__PURE__*/_react["default"].createElement(_thumbnail["default"], props), /*#__PURE__*/_react["default"].createElement(_content["default"], props));
47
47
  }, [props]);
48
48
 
49
- /**
50
- * based on width will render the card
51
- * if width === sm then flex based card
52
- * else normal
53
- * @function
49
+ /**
50
+ * based on width will render the card
51
+ * if width === sm then flex based card
52
+ * else normal
53
+ * @function
54
54
  */
55
55
  var renderBasedOnWidth = (0, _react.useCallback)(function () {
56
56
  if (width === 'sm') {
@@ -71,9 +71,9 @@ var Content = function Content(props) {
71
71
  tooltipVisibleSection = _useState2[0],
72
72
  setTooltipVisibleSection = _useState2[1];
73
73
 
74
- /**
75
- * toogle tooltip -> true / false
76
- * @function
74
+ /**
75
+ * toogle tooltip -> true / false
76
+ * @function
77
77
  */
78
78
  var handleTooltip = (0, _react.useCallback)(function (tooltipSection, tooltipText) {
79
79
  return function () {
@@ -83,9 +83,9 @@ var Content = function Content(props) {
83
83
  };
84
84
  }, []);
85
85
 
86
- /**
87
- * returns filtered list removing undefined from input array
88
- * @function
86
+ /**
87
+ * returns filtered list removing undefined from input array
88
+ * @function
89
89
  */
90
90
  var getTooltipData = function getTooltipData() {
91
91
  for (var _len = arguments.length, list = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -22,38 +22,38 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
22
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
23
23
  var OverlayBackgroundStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background: rgba(0, 0, 0, 0.5);\n"])));
24
24
  var assetStyles = {
25
- "folder": {
26
- backgroundColor: '#121D29',
27
- backgroundSize: 'inherit'
25
+ folder: {
26
+ backgroundColor: "#121D29",
27
+ backgroundSize: "inherit"
28
28
  },
29
- "asset": {
30
- backgroundColor: 'inherit',
31
- backgroundSize: 'cover'
29
+ asset: {
30
+ backgroundColor: "inherit",
31
+ backgroundSize: "cover"
32
32
  }
33
33
  };
34
- var ThumbnailStyles = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n background: ", ";\n background-color:", ";\n background-size: ", ";\n width: ", ";\n height: ", ";\n\n .iframe-image-block {\n cursor: ", ";\n background: #000;\n opacity: 0;\n &:hover {\n opacity: 1;\n }\n .hover-pointer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0;\n background: #fff;\n pointer-events: none;\n z-index: 1;\n }\n }\n .background-block {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n .circle {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: #15212f;\n }\n i {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n img {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: auto;\n }\n }\n .thumbnail-image-block {\n cursor: pointer;\n background: #182738;\n }\n"])), function (_ref) {
34
+ var ThumbnailStyles = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n background: ", ";\n background-color: ", ";\n background-size: ", ";\n width: ", ";\n height: ", ";\n\n .iframe-image-block {\n cursor: ", ";\n background: #000;\n opacity: 0;\n &:hover {\n opacity: 1;\n }\n .hover-pointer {\n position: absolute;\n width: 1px;\n height: 100%;\n top: 0;\n background: #fff;\n pointer-events: none;\n z-index: 1;\n }\n }\n .background-block {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n overflow: hidden;\n .circle {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: #15212f;\n }\n i {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n img {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: auto;\n }\n }\n .thumbnail-image-block {\n cursor: pointer;\n background: #182738;\n }\n"])), function (_ref) {
35
35
  var thumbnail = _ref.thumbnail;
36
36
  return "url(".concat(thumbnail, ") no-repeat 50%");
37
37
  }, function (_ref2) {
38
38
  var data_type = _ref2.data_type;
39
- return assetStyles[data_type] && assetStyles[data_type].backgroundColor ? assetStyles[data_type].backgroundColor : 'inherit';
39
+ return assetStyles[data_type] && assetStyles[data_type].backgroundColor ? assetStyles[data_type].backgroundColor : "inherit";
40
40
  }, function (_ref3) {
41
41
  var data_type = _ref3.data_type;
42
- return assetStyles[data_type] && assetStyles[data_type].backgroundSize ? assetStyles[data_type].backgroundSize : 'cover';
42
+ return assetStyles[data_type] && assetStyles[data_type].backgroundSize ? assetStyles[data_type].backgroundSize : "cover";
43
43
  }, function (_ref4) {
44
44
  var width = _ref4.width;
45
- return width === 'sm' ? '90px' : width === 'md' ? '125px' : '222px';
45
+ return width === "sm" ? "90px" : width === "md" ? "125px" : "222px";
46
46
  }, function (_ref5) {
47
47
  var width = _ref5.width;
48
- return width === 'sm' ? '50px' : width === 'md' ? '70px' : '126px';
48
+ return width === "sm" ? "50px" : width === "md" ? "70px" : "126px";
49
49
  }, function (_ref6) {
50
50
  var isClickPrevented = _ref6.isClickPrevented;
51
- return !isClickPrevented ? 'pointer' : 'default';
51
+ return !isClickPrevented ? "pointer" : "default";
52
52
  });
53
- var UploadTypeContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n z-index: 2;\n .uploadWrapper {\n border-radius: 50%;\n background: ", ";\n\n color: ", ";\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n .wrapper {\n font-size: 10px;\n font-family: 'SFUIText-Regular';\n line-height: 1.1;\n text-transform: uppercase;\n }\n }\n"])), function (props) {
54
- return props.upload_type === 'rc' ? '#FF6327' : _tokens.colors[props.theme].card.themeColor;
53
+ var UploadTypeContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n z-index: 2;\n .uploadWrapper {\n border-radius: 50%;\n background: ", ";\n\n color: ", ";\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n .wrapper {\n font-size: 10px;\n font-family: \"SFUIText-Regular\";\n line-height: 1.1;\n text-transform: uppercase;\n }\n }\n"])), function (props) {
54
+ return props.upload_type === "rc" ? "#FF6327" : _tokens.colors[props.theme].card.themeColor;
55
55
  }, function (props) {
56
- return props.upload_type === 'rc' ? '#FFFFFF' : '#0C141D';
56
+ return props.upload_type === "rc" ? "#FFFFFF" : "#0C141D";
57
57
  });
58
58
  var StatusBoxStyles = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n padding: 5px 8px;\n width: fit-content;\n border-radius: 15px;\n margin-right: 5px;\n display: flex;\n align-items: center;\n ", ";\n\n .status-color {\n height: 6px;\n width: 6px;\n border-radius: 100%;\n background-color: ", ";\n margin-right: 5px;\n }\n\n .status-text {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n height: 10px;\n }\n"])), OverlayBackgroundStyles, function (_ref7) {
59
59
  var hex = _ref7.hex;
@@ -61,7 +61,7 @@ var StatusBoxStyles = _styledComponents["default"].div(_templateObject4 || (_tem
61
61
  });
62
62
  var IconButtonStyles = (0, _styledComponents["default"])(function (props) {
63
63
  return /*#__PURE__*/_react["default"].createElement(_cardV.BaseButtonStyles, props);
64
- })(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n\n .tooltip {\n position: absolute;\n bottom: 130%;\n left: 30%;\n transform: translateX(-50%);\n padding: 5px 9px;\n box-sizing: border-box;\n background: #000000;\n color: #fff;\n border-radius: 10px;\n visibility: hidden;\n opacity: 0;\n z-index: 10;\n transition: all 350ms ease-in-out 0s;\n &:after {\n content: '';\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid #000;\n bottom: -5px;\n left: 50%;\n }\n .details-header {\n color: #666666;\n font-family: 'SFUIText-Regular';\n text-transform: none;\n margin-bottom: 8px;\n }\n .details-value {\n color: #999999;\n font-family: 'SFUIText-Light';\n text-transform: none;\n font-size: 10px;\n }\n }\n\n &:hover {\n background-color: ", ";\n .tooltip {\n opacity: 1;\n visibility: visible;\n }\n }\n &:active,\n &:focus {\n outline: none;\n }\n"])), OverlayBackgroundStyles, function (props) {
64
+ })(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n ", ";\n\n .tooltip {\n position: absolute;\n bottom: 130%;\n left: 30%;\n transform: translateX(-50%);\n padding: 5px 9px;\n box-sizing: border-box;\n background: #000000;\n color: #fff;\n border-radius: 10px;\n visibility: hidden;\n opacity: 0;\n z-index: 10;\n transition: all 350ms ease-in-out 0s;\n &:after {\n content: \"\";\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid #000;\n bottom: -5px;\n left: 50%;\n }\n .details-header {\n color: #666666;\n font-family: \"SFUIText-Regular\";\n text-transform: none;\n margin-bottom: 8px;\n }\n .details-value {\n color: #999999;\n font-family: \"SFUIText-Light\";\n text-transform: none;\n font-size: 10px;\n }\n }\n\n &:hover {\n background-color: ", ";\n .tooltip {\n opacity: 1;\n visibility: visible;\n }\n }\n &:active,\n &:focus {\n outline: none;\n }\n"])), OverlayBackgroundStyles, function (props) {
65
65
  return _tokens.colors[props.theme].card.themeColor;
66
66
  });
67
67
  var CardHeader = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: space-between;\n padding: 10px;\n"])));
@@ -91,22 +91,22 @@ var Thumbnail = function Thumbnail(props) {
91
91
  var hoverPointerRef = (0, _react.useRef)(null);
92
92
  (0, _react.useEffect)(function () {
93
93
  if (actions && actions.length > 0 && actions.some(function (item) {
94
- return item.field === 'upload' || item.field === 'phupload_ingest';
94
+ return item.field === "upload" || item.field === "phupload_ingest";
95
95
  }) // can add multiple condition in future to prevent click
96
96
  ) {
97
97
  setClickPreventation(true);
98
98
  }
99
99
  }, [actions && JSON.stringify(actions).length > 0]);
100
100
  (0, _react.useEffect)(function () {
101
- /**
102
- * will return the hex based status passed
103
- * eg. status = In Progress -> will format to "in_progress"
104
- * then it will find its index in CARD_ASSET_STATUS which will
105
- * return hex
106
- * @const
101
+ /**
102
+ * will return the hex based status passed
103
+ * eg. status = In Progress -> will format to "in_progress"
104
+ * then it will find its index in CARD_ASSET_STATUS which will
105
+ * return hex
106
+ * @const
107
107
  */
108
108
  var index = _tokens2.CARD_ASSET_STATUS.findIndex(function (label) {
109
- return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(' ').join('_') : []);
109
+ return label.code.includes(card_status || upload_status ? (card_status || upload_status).toLowerCase().split(" ").join("_") : []);
110
110
  });
111
111
  setStatusIndex(index);
112
112
  }, [upload_status, card_status]);
@@ -121,24 +121,24 @@ var Thumbnail = function Thumbnail(props) {
121
121
  var iframeOffsetHeight = offsetHeight / iframeCount;
122
122
  var imageChangePoint = offsetWidth / iframeCount;
123
123
  var offsetTop = Math.abs(iframeBlockHeight - iframeOffsetHeight) / 2;
124
- hoverPointerRef.current.style.left = event.offsetX + 'px';
124
+ hoverPointerRef.current.style.left = event.offsetX + "px";
125
125
  var imageNum = parseInt(event.offsetX / imageChangePoint) || 1;
126
126
  var imageTop = iframeOffsetHeight * imageNum + offsetTop;
127
127
  if (imageTop > offsetHeight) {
128
128
  imageTop = offsetHeight + offsetTop - iframeOffsetHeight;
129
129
  }
130
- iframeImageRef.current.style.top = '-' + imageTop + 'px';
130
+ iframeImageRef.current.style.top = "-" + imageTop + "px";
131
131
  }
132
132
  }, [iframeImageBlockRef, hoverPointerRef, iframeImageRef]);
133
133
 
134
- /**
135
- * will decide thumbnail click based on its condition
136
- * eg. if task_type === upload then prevent click
137
- * @function
134
+ /**
135
+ * will decide thumbnail click based on its condition
136
+ * eg. if task_type === upload then prevent click
137
+ * @function
138
138
  */
139
139
  var handleThumbnailClick = (0, _react.useCallback)(function (e) {
140
140
  if (!isClickPrevented) {
141
- actionClick(e, 'play', ingest_db_id);
141
+ actionClick(e, "play", ingest_db_id);
142
142
  } else {
143
143
  e.preventDefault();
144
144
  }
@@ -166,10 +166,10 @@ var Thumbnail = function Thumbnail(props) {
166
166
  position: "relative",
167
167
  zIndex: "2",
168
168
  marginLeft: "auto"
169
- }, (card_status || upload_status) && statusIndex > -1 && /*#__PURE__*/_react["default"].createElement(StatusBoxStyles, {
169
+ }, (card_status || upload_status) && /*#__PURE__*/_react["default"].createElement(StatusBoxStyles, {
170
170
  theme: props.theme,
171
171
  hex: _tokens2.CARD_ASSET_STATUS[statusIndex] ? _tokens2.CARD_ASSET_STATUS[statusIndex].hex : {
172
- background: '#AFB2BA'
172
+ background: "#AFB2BA"
173
173
  }
174
174
  }, /*#__PURE__*/_react["default"].createElement("div", {
175
175
  className: "status-color"
@@ -192,7 +192,7 @@ var Thumbnail = function Thumbnail(props) {
192
192
  height: "26px",
193
193
  padding: "0px",
194
194
  width: "26px",
195
- margin: actions.length === i + 1 ? '0' : '0 5px 0px 0px',
195
+ margin: actions.length === i + 1 ? "0" : "0 5px 0px 0px",
196
196
  onClick: function onClick(e) {
197
197
  e.stopPropagation();
198
198
  actionClick(e, item.field);
@@ -227,7 +227,7 @@ var Thumbnail = function Thumbnail(props) {
227
227
  })) || null);
228
228
  };
229
229
  Thumbnail.propTypes = {
230
- theme: _propTypes["default"].oneOf(['light', 'dark', 'nexc']),
230
+ theme: _propTypes["default"].oneOf(["light", "dark", "nexc"]),
231
231
  width: _propTypes["default"].string,
232
232
  thumbnail: _propTypes["default"].string,
233
233
  file_type: _propTypes["default"].string,
@@ -239,9 +239,9 @@ Thumbnail.propTypes = {
239
239
  actionClick: _propTypes["default"].func
240
240
  };
241
241
  Thumbnail.defaultProps = {
242
- theme: 'dark',
243
- width: 'lg',
244
- thumbnail: 'https://thumbnail.desynova.com/default_placeholder/Contido_Placeholder_Image.png',
245
- iframeurl: ''
242
+ theme: "dark",
243
+ width: "lg",
244
+ thumbnail: "https://thumbnail.desynova.com/default_placeholder/Contido_Placeholder_Image.png",
245
+ iframeurl: ""
246
246
  };
247
247
  var _default = exports["default"] = Thumbnail;
@@ -75,11 +75,11 @@ var DraftInputText = function DraftInputText(_ref) {
75
75
  var passwordButton = props.passwordButton;
76
76
  }
77
77
 
78
- /**
79
- *
80
- * @param {string} command string representing the keyboard command being invoked
81
- * @param {object} editorState represents the current state of the editor, including the content, selection, and various editor properties.
82
- * @returns new Editor State with applied styling
78
+ /**
79
+ *
80
+ * @param {string} command string representing the keyboard command being invoked
81
+ * @param {object} editorState represents the current state of the editor, including the content, selection, and various editor properties.
82
+ * @returns new Editor State with applied styling
83
83
  */
84
84
  var handleKeyCommand = function handleKeyCommand(command, editorState) {
85
85
  var newState = _draftJs.RichUtils.handleKeyCommand(editorState, command);
@@ -90,9 +90,9 @@ var DraftInputText = function DraftInputText(_ref) {
90
90
  return 'not-handled';
91
91
  };
92
92
 
93
- /**
94
- *
95
- * @returns Return the length of text in editor in a synchronous way
93
+ /**
94
+ *
95
+ * @returns Return the length of text in editor in a synchronous way
96
96
  */
97
97
  var _getLengthOfSelectedText = function _getLengthOfSelectedText() {
98
98
  var currentSelection = editorState.getSelection();
@@ -127,11 +127,11 @@ var DraftInputText = function DraftInputText(_ref) {
127
127
  return length;
128
128
  };
129
129
 
130
- /**
131
- *
132
- * @param {string} text The text that is pasted in the editor
133
- * @param {string} position tells whether we have to check for inserted text or pasted text
134
- * @returns whether pasting or inserting text is feasible
130
+ /**
131
+ *
132
+ * @param {string} text The text that is pasted in the editor
133
+ * @param {string} position tells whether we have to check for inserted text or pasted text
134
+ * @returns whether pasting or inserting text is feasible
135
135
  */
136
136
  var _handleInput = function _handleInput(text, position) {
137
137
  var currentContent = editorState.getCurrentContent();
@@ -150,27 +150,27 @@ var DraftInputText = function DraftInputText(_ref) {
150
150
  }
151
151
  };
152
152
 
153
- /**
154
- *
155
- * @returns calls the function to check before typing the text does not exceed maximum length
153
+ /**
154
+ *
155
+ * @returns calls the function to check before typing the text does not exceed maximum length
156
156
  */
157
157
  var _handleBeforeInput = function _handleBeforeInput() {
158
158
  return _handleInput('', 'before');
159
159
  };
160
160
 
161
- /**
162
- *
163
- * @param {string} pastedText the text that is copy pasted in our editor
164
- * @returns calls the function to check copying the text does not exceed maximum length
161
+ /**
162
+ *
163
+ * @param {string} pastedText the text that is copy pasted in our editor
164
+ * @returns calls the function to check copying the text does not exceed maximum length
165
165
  */
166
166
  var _handlePastedText = function _handlePastedText(pastedText) {
167
167
  return _handleInput(pastedText, 'after');
168
168
  };
169
169
 
170
- /**
171
- *
172
- * @param {object} newEditorState the newstate of editor when we type any text in our editor
173
- * @returns the new state of editor
170
+ /**
171
+ *
172
+ * @param {object} newEditorState the newstate of editor when we type any text in our editor
173
+ * @returns the new state of editor
174
174
  */
175
175
  var _handleChange = function _handleChange(newEditorState) {
176
176
  var contentState = newEditorState.getCurrentContent();
@@ -182,10 +182,10 @@ var DraftInputText = function DraftInputText(_ref) {
182
182
  }
183
183
  };
184
184
 
185
- /**
186
- *
187
- * @param {string} htmlString the string that is passed to the parent
188
- * @returns removes the default <p> tag of draftjs
185
+ /**
186
+ *
187
+ * @param {string} htmlString the string that is passed to the parent
188
+ * @returns removes the default <p> tag of draftjs
189
189
  */
190
190
  var removeOuterPTag = function removeOuterPTag(htmlString) {
191
191
  var regex = /^<p>(.*?)<\/p>$/;
@@ -198,10 +198,10 @@ var DraftInputText = function DraftInputText(_ref) {
198
198
  });
199
199
  };
200
200
 
201
- /**
202
- *
203
- * @param {string} html the string that is passed to the parent
204
- * @returns removes the symbols of special character like commas and convert them back to character
201
+ /**
202
+ *
203
+ * @param {string} html the string that is passed to the parent
204
+ * @returns removes the symbols of special character like commas and convert them back to character
205
205
  */
206
206
 
207
207
  function decodeHtml(html) {
@@ -210,8 +210,8 @@ var DraftInputText = function DraftInputText(_ref) {
210
210
  return txt.value;
211
211
  }
212
212
 
213
- /**
214
- * this useEffect is used to send value to parent component as soon as editor state gets updated
213
+ /**
214
+ * this useEffect is used to send value to parent component as soon as editor state gets updated
215
215
  */
216
216
  (0, _react.useEffect)(function () {
217
217
  var html = (0, _draftConvert.convertToHTML)(editorState.getCurrentContent());
@@ -227,8 +227,8 @@ var DraftInputText = function DraftInputText(_ref) {
227
227
  }
228
228
  }, [editorState]);
229
229
 
230
- /**
231
- * This useEffect handles our focus condition and also updates state when the props value changes
230
+ /**
231
+ * This useEffect handles our focus condition and also updates state when the props value changes
232
232
  */
233
233
  (0, _react.useEffect)(function () {
234
234
  if (diff && value !== '' && value !== undefined) {
@@ -248,8 +248,8 @@ var DraftInputText = function DraftInputText(_ref) {
248
248
  }
249
249
  }
250
250
  }, [value]);
251
- /**
252
- * This useEffect is used to chnage our value when timeline is changed
251
+ /**
252
+ * This useEffect is used to chnage our value when timeline is changed
253
253
  */
254
254
  (0, _react.useEffect)(function () {
255
255
  if (listScrollTop !== null) {
@@ -263,8 +263,8 @@ var DraftInputText = function DraftInputText(_ref) {
263
263
  }
264
264
  }, [listScrollTop]);
265
265
 
266
- /**
267
- * This useEffect is used to focus on Line1 when a new segment is created
266
+ /**
267
+ * This useEffect is used to focus on Line1 when a new segment is created
268
268
  */
269
269
  (0, _react.useEffect)(function () {
270
270
  if (autoFocus) {