@dotcms/uve 1.2.1-next.14 → 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.14",
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
  }
@@ -273,6 +273,8 @@ const getContainersData = (dotCMSPageAsset, columContainer) => {
273
273
  container
274
274
  } = dotContainer;
275
275
  const acceptTypes = containerStructures?.map(structure => structure.contentTypeVar).join(',') ?? '';
276
+ // TODO: Check if the variantId is needed and we need to find another way to get it.
277
+ // Since the parentPermissionable is not available after: https://github.com/dotCMS/core/pull/32890
276
278
  const variantId = container?.parentPermissionable?.variantId;
277
279
  const maxContentlets = container?.maxContentlets ?? 0;
278
280
  const path = container?.path;
@@ -478,7 +480,7 @@ function onContentletHovered(callback) {
478
480
  widgetTitle: foundElement.dataset?.['dotWidgetTitle'],
479
481
  onNumberOfPages: foundElement.dataset?.['dotOnNumberOfPages'],
480
482
  ...(foundElement.dataset?.['dotStyleProperties'] && {
481
- styleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
483
+ dotStyleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
482
484
  })
483
485
  };
484
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
  }
@@ -271,6 +271,8 @@ const getContainersData = (dotCMSPageAsset, columContainer) => {
271
271
  container
272
272
  } = dotContainer;
273
273
  const acceptTypes = containerStructures?.map(structure => structure.contentTypeVar).join(',') ?? '';
274
+ // TODO: Check if the variantId is needed and we need to find another way to get it.
275
+ // Since the parentPermissionable is not available after: https://github.com/dotCMS/core/pull/32890
274
276
  const variantId = container?.parentPermissionable?.variantId;
275
277
  const maxContentlets = container?.maxContentlets ?? 0;
276
278
  const path = container?.path;
@@ -476,7 +478,7 @@ function onContentletHovered(callback) {
476
478
  widgetTitle: foundElement.dataset?.['dotWidgetTitle'],
477
479
  onNumberOfPages: foundElement.dataset?.['dotOnNumberOfPages'],
478
480
  ...(foundElement.dataset?.['dotStyleProperties'] && {
479
- styleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
481
+ dotStyleProperties: JSON.parse(foundElement.dataset['dotStyleProperties'])
480
482
  })
481
483
  };
482
484
  const vtlFiles = findDotCMSVTLData(foundElement);