@desynova-digital/components 9.2.6 → 9.2.7

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.
@@ -68,10 +68,10 @@ var RichTextInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
68
68
  };
69
69
  });
70
70
 
71
- /**
72
- *
73
- * @param {*} str
74
- * @returns
71
+ /**
72
+ *
73
+ * @param {*} str
74
+ * @returns
75
75
  */
76
76
  var changeEmToI = function changeEmToI(str) {
77
77
  var updatedStr = str.replace(/\n/g, "").replace(/<br\s*\/?>/gi, "").replace(/<\/?p>/gi, "").replace(/<[/]?em>/g, function (match) {
@@ -268,10 +268,10 @@ var RichTextInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
268
268
  }, errorMessage), maxLength && showLengthCount && quillInstance.current && /*#__PURE__*/_react["default"].createElement(CountWrapper, null, charCount, "/", maxLength));
269
269
  });
270
270
 
271
- /**
272
- *
273
- * @param {*} props
274
- * @returns
271
+ /**
272
+ *
273
+ * @param {*} props
274
+ * @returns
275
275
  */
276
276
  var returnPadding = function returnPadding(props) {
277
277
  var digitCount = props.maxLength.toString().length;
@@ -93,10 +93,10 @@ var RichTextInputV2 = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
93
93
  };
94
94
  });
95
95
 
96
- /**
97
- *
98
- * @param {*} str
99
- * @returns
96
+ /**
97
+ *
98
+ * @param {*} str
99
+ * @returns
100
100
  */
101
101
  var changeEmToI = function changeEmToI(str) {
102
102
  var updatedStr = str.replace(/\n/g, "").replace(/<br\s*\/?>/gi, "").replace(/<\/?p>/gi, "").replace(/<[/]?em>/g, function (match) {
@@ -112,6 +112,13 @@ var RichTextInputV2 = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
112
112
  // Initialize quill
113
113
  (0, _react.useEffect)(function () {
114
114
  if (!(quillInstance !== null && quillInstance !== void 0 && quillInstance.current)) {
115
+ // Get the keyboard module and remove list autofill binding
116
+ var Keyboard = _quill["default"]["import"]("modules/keyboard");
117
+
118
+ // Remove the list autofill binding
119
+ if (Keyboard && Keyboard.DEFAULTS && Keyboard.DEFAULTS.bindings) {
120
+ delete Keyboard.DEFAULTS.bindings["list autofill"];
121
+ }
115
122
  var quill = new _quill["default"](quillRef.current, {
116
123
  theme: "snow",
117
124
  placeholder: placeholder,
@@ -283,10 +290,10 @@ var RichTextInputV2 = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
283
290
  }, errorMessage), maxLength && showLengthCount && quillInstance.current && /*#__PURE__*/_react["default"].createElement(CountWrapper, null, charCount, "/", maxLength));
284
291
  });
285
292
 
286
- /**
287
- *
288
- * @param {*} props
289
- * @returns
293
+ /**
294
+ *
295
+ * @param {*} props
296
+ * @returns
290
297
  */
291
298
  var returnPadding = function returnPadding(props) {
292
299
  if (props.sleek = "sleek") {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.2.6",
3
+ "version": "9.2.7",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.2.6",
10
+ "@desynova-digital/tokens": "9.2.7",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },