@dotcms/uve 1.5.1-next.1977 → 1.5.1-next.2010

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/README.md CHANGED
@@ -736,8 +736,8 @@ Please ensure your code follows the existing style and includes appropriate test
736
736
 
737
737
  ## Licensing
738
738
 
739
- dotCMS comes in multiple editions and as such is dual-licensed. The dotCMS Community Edition is licensed under the GPL 3.0 and is freely available for download, customization, and deployment for use within organizations of all stripes. dotCMS Enterprise Editions (EE) adds several enterprise features and is available via a supported, indemnified commercial license from dotCMS. For the differences between the editions, see [the feature page](http://www.dotcms.com/cms-platform/features).
739
+ dotCMS is available under either the [Business Source License 1.1 (BSL)](https://www.dotcms.com/bsl) or a commercial license.
740
740
 
741
- This SDK is part of dotCMS's dual-licensed platform (GPL 3.0 for Community, commercial license for Enterprise).
741
+ Under the BSL, dotCMS can be used at no cost by individual developers, small businesses or agencies under $5M in total finances, and by larger organizations in non-production environments. Every BSL release automatically converts to GPL v3 four years after its release date. For full terms and FAQs, visit [dotcms.com/bsl](https://www.dotcms.com/bsl) and [dotcms.com/bsl-faq](https://www.dotcms.com/bsl-faq).
742
742
 
743
- [Learn more ](https://www.dotcms.com)at [dotcms.com](https://www.dotcms.com).
743
+ Production use in larger organizations, along with access to managed cloud, SLAs, support, and enterprise capabilities, is available under a commercial license from dotCMS. For details on commercial plans, features, and support options, see [dotcms.com/pricing](https://www.dotcms.com/pricing).
package/internal.cjs.js CHANGED
@@ -378,6 +378,8 @@ exports.EMPTY_CONTAINER_STYLE_REACT = _public.EMPTY_CONTAINER_STYLE_REACT;
378
378
  exports.END_CLASS = _public.END_CLASS;
379
379
  exports.PRODUCTION_MODE = _public.PRODUCTION_MODE;
380
380
  exports.START_CLASS = _public.START_CLASS;
381
+ exports.TEMP_EMPTY_CONTENTLET = _public.TEMP_EMPTY_CONTENTLET;
382
+ exports.TEMP_EMPTY_CONTENTLET_TYPE = _public.TEMP_EMPTY_CONTENTLET_TYPE;
381
383
  exports.__UVE_EVENTS__ = _public.__UVE_EVENTS__;
382
384
  exports.__UVE_EVENT_ERROR_FALLBACK__ = _public.__UVE_EVENT_ERROR_FALLBACK__;
383
385
  exports.combineClasses = _public.combineClasses;
package/internal.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { g as getUVEState, s as sendMessageToUVE } from './public.esm.js';
2
- export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, f as DOT_SECTION_ID_PREFIX, E as EMPTY_CONTAINER_STYLE_ANGULAR, h as EMPTY_CONTAINER_STYLE_REACT, j as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, _ as __UVE_EVENTS__, k as __UVE_EVENT_ERROR_FALLBACK__, l as combineClasses, m as computeScrollIsInBottom, a as createUVESubscription, n as findDotCMSElement, o as findDotCMSVTLData, p as getClosestDotCMSContainerData, q as getColumnPositionClasses, t as getContainersData, v as getContentletsInContainer, w as getDotCMSContainerData, x as getDotCMSContentletsBound, y as getDotCMSPageBounds, z as getDotContainerAttributes, A as getDotContentletAttributes, B as isValidBlocks, F as observeDocumentHeight, G as setBounds } from './public.esm.js';
2
+ export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, f as DOT_SECTION_ID_PREFIX, E as EMPTY_CONTAINER_STYLE_ANGULAR, h as EMPTY_CONTAINER_STYLE_REACT, j as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, T as TEMP_EMPTY_CONTENTLET, k as TEMP_EMPTY_CONTENTLET_TYPE, _ as __UVE_EVENTS__, l as __UVE_EVENT_ERROR_FALLBACK__, m as combineClasses, n as computeScrollIsInBottom, a as createUVESubscription, o as findDotCMSElement, p as findDotCMSVTLData, q as getClosestDotCMSContainerData, t as getColumnPositionClasses, v as getContainersData, w as getContentletsInContainer, x as getDotCMSContainerData, y as getDotCMSContentletsBound, z as getDotCMSPageBounds, A as getDotContainerAttributes, B as getDotContentletAttributes, F as isValidBlocks, G as observeDocumentHeight, H as setBounds } from './public.esm.js';
3
3
  import { UVE_MODE, DotCMSUVEAction } from '@dotcms/types';
4
4
  import '@dotcms/types/internal';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/uve",
3
- "version": "1.5.1-next.1977",
3
+ "version": "1.5.1-next.2010",
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
@@ -3,6 +3,20 @@
3
3
  var types = require('@dotcms/types');
4
4
  var internal = require('@dotcms/types/internal');
5
5
 
6
+ /**
7
+ * Sentinel values for the placeholder contentlet used when the UVE represents
8
+ * an empty container (e.g. hover / selection without a real contentlet).
9
+ *
10
+ * @internal
11
+ */
12
+ const TEMP_EMPTY_CONTENTLET = 'TEMP_EMPTY_CONTENTLET';
13
+ /**
14
+ * Placeholder `contentType` for {@link TEMP_EMPTY_CONTENTLET}.
15
+ *
16
+ * @internal
17
+ */
18
+ const TEMP_EMPTY_CONTENTLET_TYPE = 'TEMP_EMPTY_CONTENTLET_TYPE';
19
+
6
20
  /**
7
21
  * Calculates the bounding information for each page element within the given containers.
8
22
  *
@@ -492,12 +506,12 @@ function onContentletHovered(callback) {
492
506
  } = foundElement.getBoundingClientRect();
493
507
  const isContainer = foundElement.dataset?.['dotObject'] === 'container';
494
508
  const contentletForEmptyContainer = {
495
- identifier: 'TEMP_EMPTY_CONTENTLET',
496
- title: 'TEMP_EMPTY_CONTENTLET',
497
- contentType: 'TEMP_EMPTY_CONTENTLET_TYPE',
509
+ identifier: TEMP_EMPTY_CONTENTLET,
510
+ title: TEMP_EMPTY_CONTENTLET,
511
+ contentType: TEMP_EMPTY_CONTENTLET_TYPE,
498
512
  inode: 'TEMPY_EMPTY_CONTENTLET_INODE',
499
- widgetTitle: 'TEMP_EMPTY_CONTENTLET',
500
- baseType: 'TEMP_EMPTY_CONTENTLET',
513
+ widgetTitle: TEMP_EMPTY_CONTENTLET,
514
+ baseType: TEMP_EMPTY_CONTENTLET,
501
515
  onNumberOfPages: 1
502
516
  };
503
517
  const contentlet = {
@@ -1339,6 +1353,8 @@ exports.EMPTY_CONTAINER_STYLE_REACT = EMPTY_CONTAINER_STYLE_REACT;
1339
1353
  exports.END_CLASS = END_CLASS;
1340
1354
  exports.PRODUCTION_MODE = PRODUCTION_MODE;
1341
1355
  exports.START_CLASS = START_CLASS;
1356
+ exports.TEMP_EMPTY_CONTENTLET = TEMP_EMPTY_CONTENTLET;
1357
+ exports.TEMP_EMPTY_CONTENTLET_TYPE = TEMP_EMPTY_CONTENTLET_TYPE;
1342
1358
  exports.__UVE_EVENTS__ = __UVE_EVENTS__;
1343
1359
  exports.__UVE_EVENT_ERROR_FALLBACK__ = __UVE_EVENT_ERROR_FALLBACK__;
1344
1360
  exports.combineClasses = combineClasses;
package/public.esm.js CHANGED
@@ -1,6 +1,20 @@
1
1
  import { UVEEventType, UVE_MODE, DotCMSUVEAction } from '@dotcms/types';
2
2
  import { __DOTCMS_UVE_EVENT__ } from '@dotcms/types/internal';
3
3
 
4
+ /**
5
+ * Sentinel values for the placeholder contentlet used when the UVE represents
6
+ * an empty container (e.g. hover / selection without a real contentlet).
7
+ *
8
+ * @internal
9
+ */
10
+ const TEMP_EMPTY_CONTENTLET = 'TEMP_EMPTY_CONTENTLET';
11
+ /**
12
+ * Placeholder `contentType` for {@link TEMP_EMPTY_CONTENTLET}.
13
+ *
14
+ * @internal
15
+ */
16
+ const TEMP_EMPTY_CONTENTLET_TYPE = 'TEMP_EMPTY_CONTENTLET_TYPE';
17
+
4
18
  /**
5
19
  * Calculates the bounding information for each page element within the given containers.
6
20
  *
@@ -490,12 +504,12 @@ function onContentletHovered(callback) {
490
504
  } = foundElement.getBoundingClientRect();
491
505
  const isContainer = foundElement.dataset?.['dotObject'] === 'container';
492
506
  const contentletForEmptyContainer = {
493
- identifier: 'TEMP_EMPTY_CONTENTLET',
494
- title: 'TEMP_EMPTY_CONTENTLET',
495
- contentType: 'TEMP_EMPTY_CONTENTLET_TYPE',
507
+ identifier: TEMP_EMPTY_CONTENTLET,
508
+ title: TEMP_EMPTY_CONTENTLET,
509
+ contentType: TEMP_EMPTY_CONTENTLET_TYPE,
496
510
  inode: 'TEMPY_EMPTY_CONTENTLET_INODE',
497
- widgetTitle: 'TEMP_EMPTY_CONTENTLET',
498
- baseType: 'TEMP_EMPTY_CONTENTLET',
511
+ widgetTitle: TEMP_EMPTY_CONTENTLET,
512
+ baseType: TEMP_EMPTY_CONTENTLET,
499
513
  onNumberOfPages: 1
500
514
  };
501
515
  const contentlet = {
@@ -1329,4 +1343,4 @@ function initUVE(config = {}) {
1329
1343
  };
1330
1344
  }
1331
1345
 
1332
- export { getDotContentletAttributes as A, isValidBlocks as B, CUSTOM_NO_COMPONENT as C, DEVELOPMENT_MODE as D, EMPTY_CONTAINER_STYLE_ANGULAR as E, observeDocumentHeight as F, setBounds as G, PRODUCTION_MODE as P, START_CLASS as S, __UVE_EVENTS__ as _, createUVESubscription as a, enableBlockEditorInline as b, createContentlet as c, initUVE as d, editContentlet as e, DOT_SECTION_ID_PREFIX as f, getUVEState as g, EMPTY_CONTAINER_STYLE_REACT as h, initInlineEditing as i, END_CLASS as j, __UVE_EVENT_ERROR_FALLBACK__ as k, combineClasses as l, computeScrollIsInBottom as m, findDotCMSElement as n, findDotCMSVTLData as o, getClosestDotCMSContainerData as p, getColumnPositionClasses as q, reorderMenu as r, sendMessageToUVE as s, getContainersData as t, updateNavigation as u, getContentletsInContainer as v, getDotCMSContainerData as w, getDotCMSContentletsBound as x, getDotCMSPageBounds as y, getDotContainerAttributes as z };
1346
+ export { getDotContainerAttributes as A, getDotContentletAttributes as B, CUSTOM_NO_COMPONENT as C, DEVELOPMENT_MODE as D, EMPTY_CONTAINER_STYLE_ANGULAR as E, isValidBlocks as F, observeDocumentHeight as G, setBounds as H, PRODUCTION_MODE as P, START_CLASS as S, TEMP_EMPTY_CONTENTLET as T, __UVE_EVENTS__ as _, createUVESubscription as a, enableBlockEditorInline as b, createContentlet as c, initUVE as d, editContentlet as e, DOT_SECTION_ID_PREFIX as f, getUVEState as g, EMPTY_CONTAINER_STYLE_REACT as h, initInlineEditing as i, END_CLASS as j, TEMP_EMPTY_CONTENTLET_TYPE as k, __UVE_EVENT_ERROR_FALLBACK__ as l, combineClasses as m, computeScrollIsInBottom as n, findDotCMSElement as o, findDotCMSVTLData as p, getClosestDotCMSContainerData as q, reorderMenu as r, sendMessageToUVE as s, getColumnPositionClasses as t, updateNavigation as u, getContainersData as v, getContentletsInContainer as w, getDotCMSContainerData as x, getDotCMSContentletsBound as y, getDotCMSPageBounds as z };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Sentinel values for the placeholder contentlet used when the UVE represents
3
+ * an empty container (e.g. hover / selection without a real contentlet).
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const TEMP_EMPTY_CONTENTLET: "TEMP_EMPTY_CONTENTLET";
8
+ /**
9
+ * Placeholder `contentType` for {@link TEMP_EMPTY_CONTENTLET}.
10
+ *
11
+ * @internal
12
+ */
13
+ export declare const TEMP_EMPTY_CONTENTLET_TYPE: "TEMP_EMPTY_CONTENTLET_TYPE";
@@ -1,2 +1,3 @@
1
1
  export * from './constants';
2
+ export * from './contentlet-sentinel.constants';
2
3
  export * from './tinymce.config';