@dotcms/uve 1.2.1-next.15 → 1.2.1-next.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "1.2.1-next.15",
3
+ "version": "1.2.1-next.16",
4
4
  "description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
5
5
  "repository": {
6
6
  "type": "git",
package/public.cjs.js CHANGED
@@ -238,8 +238,8 @@ function getDotContentletAttributes(contentlet, container) {
238
238
  'data-dot-type': contentlet?.contentType,
239
239
  'data-dot-container': container,
240
240
  'data-dot-on-number-of-pages': contentlet?.['onNumberOfPages'] || '1',
241
- ...(contentlet?.styleProperties && {
242
- 'data-dot-style-properties': JSON.stringify(contentlet.styleProperties)
241
+ ...(contentlet?.dotStyleProperties && {
242
+ 'data-dot-style-properties': JSON.stringify(contentlet.dotStyleProperties)
243
243
  })
244
244
  };
245
245
  }
@@ -480,7 +480,7 @@ function onContentletHovered(callback) {
480
480
  widgetTitle: foundElement.dataset?.['dotWidgetTitle'],
481
481
  onNumberOfPages: foundElement.dataset?.['dotOnNumberOfPages'],
482
482
  ...(foundElement.dataset?.['dotStyleProperties'] && {
483
- styleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
483
+ dotStyleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
484
484
  })
485
485
  };
486
486
  const vtlFiles = findDotCMSVTLData(foundElement);
package/public.esm.js CHANGED
@@ -236,8 +236,8 @@ function getDotContentletAttributes(contentlet, container) {
236
236
  'data-dot-type': contentlet?.contentType,
237
237
  'data-dot-container': container,
238
238
  'data-dot-on-number-of-pages': contentlet?.['onNumberOfPages'] || '1',
239
- ...(contentlet?.styleProperties && {
240
- 'data-dot-style-properties': JSON.stringify(contentlet.styleProperties)
239
+ ...(contentlet?.dotStyleProperties && {
240
+ 'data-dot-style-properties': JSON.stringify(contentlet.dotStyleProperties)
241
241
  })
242
242
  };
243
243
  }
@@ -478,7 +478,7 @@ function onContentletHovered(callback) {
478
478
  widgetTitle: foundElement.dataset?.['dotWidgetTitle'],
479
479
  onNumberOfPages: foundElement.dataset?.['dotOnNumberOfPages'],
480
480
  ...(foundElement.dataset?.['dotStyleProperties'] && {
481
- styleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
481
+ dotStyleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
482
482
  })
483
483
  };
484
484
  const vtlFiles = findDotCMSVTLData(foundElement);