@dotcms/uve 0.0.1-beta.24 → 0.0.1-beta.26
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/index.cjs.js +10 -9
- package/index.esm.js +3 -2
- package/internal.cjs.js +99 -35
- package/internal.esm.js +75 -2
- package/package.json +4 -10
- package/{index.cjs2.js → public.cjs.js} +504 -577
- package/{index.esm2.js → public.esm.js} +506 -579
- package/src/internal/constants.d.ts +1 -1
- package/src/internal/events.d.ts +1 -1
- package/src/internal/index.d.ts +1 -0
- package/src/internal/tinymce.config.d.ts +45 -0
- package/src/internal.d.ts +0 -3
- package/src/lib/core/core.utils.d.ts +1 -1
- package/src/lib/dom/dom.utils.d.ts +6 -7
- package/src/lib/editor/internal.d.ts +3 -3
- package/src/lib/editor/public.d.ts +2 -3
- package/src/script/utils.d.ts +2 -2
- package/src/lib/types/block-editor-renderer/internal.d.ts +0 -46
- package/src/lib/types/block-editor-renderer/public.d.ts +0 -38
- package/src/lib/types/editor/internal.d.ts +0 -119
- package/src/lib/types/editor/public.d.ts +0 -273
- package/src/lib/types/events/internal.d.ts +0 -34
- package/src/lib/types/events/public.d.ts +0 -18
- package/src/lib/types/page/public.d.ts +0 -485
- package/src/types.d.ts +0 -4
- package/types.cjs.d.ts +0 -1
- package/types.cjs.default.js +0 -1
- package/types.cjs.js +0 -111
- package/types.cjs.mjs +0 -2
- package/types.esm.d.ts +0 -1
- package/types.esm.js +0 -111
package/index.cjs.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('
|
|
3
|
+
var _public = require('./public.cjs.js');
|
|
4
|
+
require('@dotcms/types');
|
|
5
|
+
require('@dotcms/types/internal');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
exports.createUVESubscription =
|
|
9
|
-
exports.editContentlet =
|
|
10
|
-
exports.getUVEState =
|
|
11
|
-
exports.initInlineEditing =
|
|
12
|
-
exports.initUVE =
|
|
13
|
-
exports.reorderMenu =
|
|
14
|
-
exports.sendMessageToUVE =
|
|
9
|
+
exports.createUVESubscription = _public.createUVESubscription;
|
|
10
|
+
exports.editContentlet = _public.editContentlet;
|
|
11
|
+
exports.getUVEState = _public.getUVEState;
|
|
12
|
+
exports.initInlineEditing = _public.initInlineEditing;
|
|
13
|
+
exports.initUVE = _public.initUVE;
|
|
14
|
+
exports.reorderMenu = _public.reorderMenu;
|
|
15
|
+
exports.sendMessageToUVE = _public.sendMessageToUVE;
|
package/index.esm.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '
|
|
1
|
+
export { c as createUVESubscription, e as editContentlet, g as getUVEState, i as initInlineEditing, a as initUVE, r as reorderMenu, s as sendMessageToUVE } from './public.esm.js';
|
|
2
|
+
import '@dotcms/types';
|
|
3
|
+
import '@dotcms/types/internal';
|
package/internal.cjs.js
CHANGED
|
@@ -1,39 +1,103 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('
|
|
3
|
+
var _public = require('./public.cjs.js');
|
|
4
|
+
require('@dotcms/types');
|
|
5
|
+
require('@dotcms/types/internal');
|
|
5
6
|
|
|
7
|
+
/**
|
|
8
|
+
* TinyMCE default config across all versions
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const __DEFAULT_TINYMCE_CONFIG__ = {
|
|
13
|
+
menubar: false,
|
|
14
|
+
inline: true,
|
|
15
|
+
valid_styles: {
|
|
16
|
+
'*': 'font-size,font-family,color,text-decoration,text-align'
|
|
17
|
+
},
|
|
18
|
+
powerpaste_word_import: 'clean',
|
|
19
|
+
powerpaste_html_import: 'clean',
|
|
20
|
+
suffix: '.min' // Suffix to use when loading resources
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* TinyMCE config to use per mode
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
|
|
28
|
+
full: {
|
|
29
|
+
plugins: 'link lists autolink charmap',
|
|
30
|
+
toolbar: ['styleselect undo redo | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignfull | numlist bullist outdent indent | hr charmap removeformat | link'],
|
|
31
|
+
style_formats: [{
|
|
32
|
+
title: 'Paragraph',
|
|
33
|
+
format: 'p'
|
|
34
|
+
}, {
|
|
35
|
+
title: 'Header 1',
|
|
36
|
+
format: 'h1'
|
|
37
|
+
}, {
|
|
38
|
+
title: 'Header 2',
|
|
39
|
+
format: 'h2'
|
|
40
|
+
}, {
|
|
41
|
+
title: 'Header 3',
|
|
42
|
+
format: 'h3'
|
|
43
|
+
}, {
|
|
44
|
+
title: 'Header 4',
|
|
45
|
+
format: 'h4'
|
|
46
|
+
}, {
|
|
47
|
+
title: 'Header 5',
|
|
48
|
+
format: 'h5'
|
|
49
|
+
}, {
|
|
50
|
+
title: 'Header 6',
|
|
51
|
+
format: 'h6'
|
|
52
|
+
}, {
|
|
53
|
+
title: 'Pre',
|
|
54
|
+
format: 'pre'
|
|
55
|
+
}, {
|
|
56
|
+
title: 'Code',
|
|
57
|
+
format: 'code'
|
|
58
|
+
}]
|
|
59
|
+
},
|
|
60
|
+
plain: {
|
|
61
|
+
plugins: '',
|
|
62
|
+
toolbar: ''
|
|
63
|
+
},
|
|
64
|
+
minimal: {
|
|
65
|
+
plugins: 'link autolink',
|
|
66
|
+
toolbar: 'bold italic underline | link',
|
|
67
|
+
valid_elements: 'strong,em,span[style],a[href]'
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* TinyMCE path
|
|
72
|
+
*
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
|
|
6
76
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.getDotCMSContentletsBound = internal.getDotCMSContentletsBound;
|
|
35
|
-
exports.getDotCMSPageBounds = internal.getDotCMSPageBounds;
|
|
36
|
-
exports.getDotContainerAttributes = internal.getDotContainerAttributes;
|
|
37
|
-
exports.getDotContentletAttributes = internal.getDotContentletAttributes;
|
|
38
|
-
exports.isValidBlocks = internal.isValidBlocks;
|
|
39
|
-
exports.setBounds = internal.setBounds;
|
|
77
|
+
exports.CUSTOM_NO_COMPONENT = _public.CUSTOM_NO_COMPONENT;
|
|
78
|
+
exports.DEVELOPMENT_MODE = _public.DEVELOPMENT_MODE;
|
|
79
|
+
exports.EMPTY_CONTAINER_STYLE_ANGULAR = _public.EMPTY_CONTAINER_STYLE_ANGULAR;
|
|
80
|
+
exports.EMPTY_CONTAINER_STYLE_REACT = _public.EMPTY_CONTAINER_STYLE_REACT;
|
|
81
|
+
exports.END_CLASS = _public.END_CLASS;
|
|
82
|
+
exports.PRODUCTION_MODE = _public.PRODUCTION_MODE;
|
|
83
|
+
exports.START_CLASS = _public.START_CLASS;
|
|
84
|
+
exports.__UVE_EVENTS__ = _public.__UVE_EVENTS__;
|
|
85
|
+
exports.__UVE_EVENT_ERROR_FALLBACK__ = _public.__UVE_EVENT_ERROR_FALLBACK__;
|
|
86
|
+
exports.combineClasses = _public.combineClasses;
|
|
87
|
+
exports.computeScrollIsInBottom = _public.computeScrollIsInBottom;
|
|
88
|
+
exports.findDotCMSElement = _public.findDotCMSElement;
|
|
89
|
+
exports.findDotCMSVTLData = _public.findDotCMSVTLData;
|
|
90
|
+
exports.getClosestDotCMSContainerData = _public.getClosestDotCMSContainerData;
|
|
91
|
+
exports.getColumnPositionClasses = _public.getColumnPositionClasses;
|
|
92
|
+
exports.getContainersData = _public.getContainersData;
|
|
93
|
+
exports.getContentletsInContainer = _public.getContentletsInContainer;
|
|
94
|
+
exports.getDotCMSContainerData = _public.getDotCMSContainerData;
|
|
95
|
+
exports.getDotCMSContentletsBound = _public.getDotCMSContentletsBound;
|
|
96
|
+
exports.getDotCMSPageBounds = _public.getDotCMSPageBounds;
|
|
97
|
+
exports.getDotContainerAttributes = _public.getDotContainerAttributes;
|
|
98
|
+
exports.getDotContentletAttributes = _public.getDotContentletAttributes;
|
|
99
|
+
exports.isValidBlocks = _public.isValidBlocks;
|
|
100
|
+
exports.setBounds = _public.setBounds;
|
|
101
|
+
exports.__BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__;
|
|
102
|
+
exports.__DEFAULT_TINYMCE_CONFIG__ = __DEFAULT_TINYMCE_CONFIG__;
|
|
103
|
+
exports.__TINYMCE_PATH_ON_DOTCMS__ = __TINYMCE_PATH_ON_DOTCMS__;
|
package/internal.esm.js
CHANGED
|
@@ -1,2 +1,75 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '
|
|
1
|
+
export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, f as EMPTY_CONTAINER_STYLE_ANGULAR, d as EMPTY_CONTAINER_STYLE_REACT, E as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, _ as __UVE_EVENTS__, b as __UVE_EVENT_ERROR_FALLBACK__, p as combineClasses, o as computeScrollIsInBottom, m as findDotCMSElement, n as findDotCMSVTLData, l as getClosestDotCMSContainerData, q as getColumnPositionClasses, u as getContainersData, v as getContentletsInContainer, k as getDotCMSContainerData, j as getDotCMSContentletsBound, h as getDotCMSPageBounds, w as getDotContainerAttributes, t as getDotContentletAttributes, y as isValidBlocks, x as setBounds } from './public.esm.js';
|
|
2
|
+
import '@dotcms/types';
|
|
3
|
+
import '@dotcms/types/internal';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* TinyMCE default config across all versions
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const __DEFAULT_TINYMCE_CONFIG__ = {
|
|
11
|
+
menubar: false,
|
|
12
|
+
inline: true,
|
|
13
|
+
valid_styles: {
|
|
14
|
+
'*': 'font-size,font-family,color,text-decoration,text-align'
|
|
15
|
+
},
|
|
16
|
+
powerpaste_word_import: 'clean',
|
|
17
|
+
powerpaste_html_import: 'clean',
|
|
18
|
+
suffix: '.min' // Suffix to use when loading resources
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* TinyMCE config to use per mode
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
const __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__ = {
|
|
26
|
+
full: {
|
|
27
|
+
plugins: 'link lists autolink charmap',
|
|
28
|
+
toolbar: ['styleselect undo redo | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignfull | numlist bullist outdent indent | hr charmap removeformat | link'],
|
|
29
|
+
style_formats: [{
|
|
30
|
+
title: 'Paragraph',
|
|
31
|
+
format: 'p'
|
|
32
|
+
}, {
|
|
33
|
+
title: 'Header 1',
|
|
34
|
+
format: 'h1'
|
|
35
|
+
}, {
|
|
36
|
+
title: 'Header 2',
|
|
37
|
+
format: 'h2'
|
|
38
|
+
}, {
|
|
39
|
+
title: 'Header 3',
|
|
40
|
+
format: 'h3'
|
|
41
|
+
}, {
|
|
42
|
+
title: 'Header 4',
|
|
43
|
+
format: 'h4'
|
|
44
|
+
}, {
|
|
45
|
+
title: 'Header 5',
|
|
46
|
+
format: 'h5'
|
|
47
|
+
}, {
|
|
48
|
+
title: 'Header 6',
|
|
49
|
+
format: 'h6'
|
|
50
|
+
}, {
|
|
51
|
+
title: 'Pre',
|
|
52
|
+
format: 'pre'
|
|
53
|
+
}, {
|
|
54
|
+
title: 'Code',
|
|
55
|
+
format: 'code'
|
|
56
|
+
}]
|
|
57
|
+
},
|
|
58
|
+
plain: {
|
|
59
|
+
plugins: '',
|
|
60
|
+
toolbar: ''
|
|
61
|
+
},
|
|
62
|
+
minimal: {
|
|
63
|
+
plugins: 'link autolink',
|
|
64
|
+
toolbar: 'bold italic underline | link',
|
|
65
|
+
valid_elements: 'strong,em,span[style],a[href]'
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* TinyMCE path
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
const __TINYMCE_PATH_ON_DOTCMS__ = '/ext/tinymcev7/tinymce.min.js';
|
|
74
|
+
|
|
75
|
+
export { __BASE_TINYMCE_CONFIG_WITH_NO_DEFAULT__, __DEFAULT_TINYMCE_CONFIG__, __TINYMCE_PATH_ON_DOTCMS__ };
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/uve",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.26",
|
|
4
4
|
"description": "Official JavaScript library for interacting with Universal Visual Editor (UVE)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dotCMS/core.git#main"
|
|
8
8
|
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@dotcms/types": "next"
|
|
11
|
+
},
|
|
9
12
|
"keywords": [
|
|
10
13
|
"dotCMS",
|
|
11
14
|
"CMS",
|
|
@@ -21,12 +24,6 @@
|
|
|
21
24
|
"import": "./index.cjs.mjs",
|
|
22
25
|
"default": "./index.cjs.js"
|
|
23
26
|
},
|
|
24
|
-
"./types": {
|
|
25
|
-
"module": "./types.esm.js",
|
|
26
|
-
"types": "./types.esm.d.ts",
|
|
27
|
-
"import": "./types.cjs.mjs",
|
|
28
|
-
"default": "./types.cjs.js"
|
|
29
|
-
},
|
|
30
27
|
"./internal": {
|
|
31
28
|
"module": "./internal.esm.js",
|
|
32
29
|
"types": "./internal.esm.d.ts",
|
|
@@ -39,9 +36,6 @@
|
|
|
39
36
|
".": [
|
|
40
37
|
"./src/index.d.ts"
|
|
41
38
|
],
|
|
42
|
-
"types": [
|
|
43
|
-
"./src/types.d.ts"
|
|
44
|
-
],
|
|
45
39
|
"internal": [
|
|
46
40
|
"./src/internal.d.ts"
|
|
47
41
|
]
|