@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 +3 -3
- package/internal.cjs.js +2 -0
- package/internal.esm.js +1 -1
- package/package.json +1 -1
- package/public.cjs.js +21 -5
- package/public.esm.js +20 -6
- package/src/internal/contentlet-sentinel.constants.d.ts +13 -0
- package/src/internal/index.d.ts +1 -0
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
|
|
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
|
-
|
|
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
|
-
|
|
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__,
|
|
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
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:
|
|
496
|
-
title:
|
|
497
|
-
contentType:
|
|
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:
|
|
500
|
-
baseType:
|
|
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:
|
|
494
|
-
title:
|
|
495
|
-
contentType:
|
|
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:
|
|
498
|
-
baseType:
|
|
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 {
|
|
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";
|
package/src/internal/index.d.ts
CHANGED