@yoobic/yobi 8.3.0-52 → 8.3.0-53

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.
@@ -230,11 +230,11 @@ const YooFormTextAreaComponent = class {
230
230
  this.allowLinkUpdate = false;
231
231
  setTimeout(() => {
232
232
  this.allowLinkUpdate = true;
233
- const content = this.inputEl.textContent || '';
233
+ const content = this.inputEl.innerHTML || '';
234
234
  if (!overlays.containsUrls(content) && !(ev.inputType === 'deleteContentBackward' || ev.key === 'Backspace')) {
235
235
  return;
236
236
  }
237
- const { links } = overlays.replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ');
237
+ const { links } = overlays.replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ') || {};
238
238
  if (links === null || links === void 0 ? void 0 : links.length) {
239
239
  this.linkPreviews = links.map((link) => {
240
240
  var _a;
@@ -211,11 +211,11 @@ export class YooFormTextAreaComponent {
211
211
  this.allowLinkUpdate = false;
212
212
  setTimeout(() => {
213
213
  this.allowLinkUpdate = true;
214
- const content = this.inputEl.textContent || '';
214
+ const content = this.inputEl.innerHTML || '';
215
215
  if (!containsUrls(content) && !(ev.inputType === 'deleteContentBackward' || ev.key === 'Backspace')) {
216
216
  return;
217
217
  }
218
- const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ');
218
+ const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ') || {};
219
219
  if (links === null || links === void 0 ? void 0 : links.length) {
220
220
  this.linkPreviews = links.map((link) => {
221
221
  var _a;
@@ -226,11 +226,11 @@ const YooFormTextAreaComponent = class {
226
226
  this.allowLinkUpdate = false;
227
227
  setTimeout(() => {
228
228
  this.allowLinkUpdate = true;
229
- const content = this.inputEl.textContent || '';
229
+ const content = this.inputEl.innerHTML || '';
230
230
  if (!containsUrls(content) && !(ev.inputType === 'deleteContentBackward' || ev.key === 'Backspace')) {
231
231
  return;
232
232
  }
233
- const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ');
233
+ const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ') || {};
234
234
  if (links === null || links === void 0 ? void 0 : links.length) {
235
235
  this.linkPreviews = links.map((link) => {
236
236
  var _a;
@@ -226,11 +226,11 @@ const YooFormTextAreaComponent = class {
226
226
  this.allowLinkUpdate = false;
227
227
  setTimeout(() => {
228
228
  this.allowLinkUpdate = true;
229
- const content = this.inputEl.textContent || '';
229
+ const content = this.inputEl.innerHTML || '';
230
230
  if (!containsUrls(content) && !(ev.inputType === 'deleteContentBackward' || ev.key === 'Backspace')) {
231
231
  return;
232
232
  }
233
- const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ');
233
+ const { links } = replaceAndGetAllLinks(content.replace(/ /g, ' '), ' ') || {};
234
234
  if (links === null || links === void 0 ? void 0 : links.length) {
235
235
  this.linkPreviews = links.map((link) => {
236
236
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.3.0-52",
3
+ "version": "8.3.0-53",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",