@dotcms/uve 0.0.1-beta.28 → 0.0.1-beta.29
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 +1 -0
- package/index.esm.js +1 -1
- package/internal.esm.js +1 -1
- package/package.json +1 -1
- package/public.cjs.js +17 -0
- package/public.esm.js +17 -1
- package/src/lib/editor/public.d.ts +9 -0
package/index.cjs.js
CHANGED
package/index.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { c as createUVESubscription, e as editContentlet, a as enableBlockEditorInline, g as getUVEState, i as initInlineEditing, b as initUVE, r as reorderMenu, s as sendMessageToUVE } from './public.esm.js';
|
|
1
|
+
export { c as createUVESubscription, e as editContentlet, a as enableBlockEditorInline, g as getUVEState, i as initInlineEditing, b as initUVE, r as reorderMenu, s as sendMessageToUVE, u as updateNavigation } from './public.esm.js';
|
|
2
2
|
import '@dotcms/types';
|
|
3
3
|
import '@dotcms/types/internal';
|
package/internal.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, h as EMPTY_CONTAINER_STYLE_ANGULAR, f as EMPTY_CONTAINER_STYLE_REACT, E as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, _ as __UVE_EVENTS__, d as __UVE_EVENT_ERROR_FALLBACK__, q as combineClasses, p as computeScrollIsInBottom, n as findDotCMSElement, o as findDotCMSVTLData, m as getClosestDotCMSContainerData, t as getColumnPositionClasses,
|
|
1
|
+
export { C as CUSTOM_NO_COMPONENT, D as DEVELOPMENT_MODE, h as EMPTY_CONTAINER_STYLE_ANGULAR, f as EMPTY_CONTAINER_STYLE_REACT, E as END_CLASS, P as PRODUCTION_MODE, S as START_CLASS, _ as __UVE_EVENTS__, d as __UVE_EVENT_ERROR_FALLBACK__, q as combineClasses, p as computeScrollIsInBottom, n as findDotCMSElement, o as findDotCMSVTLData, m as getClosestDotCMSContainerData, t as getColumnPositionClasses, w as getContainersData, x as getContentletsInContainer, l as getDotCMSContainerData, k as getDotCMSContentletsBound, j as getDotCMSPageBounds, y as getDotContainerAttributes, v as getDotContentletAttributes, A as isValidBlocks, z as setBounds } from './public.esm.js';
|
|
2
2
|
import '@dotcms/types';
|
|
3
3
|
import '@dotcms/types/internal';
|
|
4
4
|
|
package/package.json
CHANGED
package/public.cjs.js
CHANGED
|
@@ -933,6 +933,22 @@ const listenBlockEditorClick = () => {
|
|
|
933
933
|
});
|
|
934
934
|
};
|
|
935
935
|
|
|
936
|
+
/**
|
|
937
|
+
* Updates the navigation in the editor.
|
|
938
|
+
*
|
|
939
|
+
* @param {string} pathname - The pathname to update the navigation with.
|
|
940
|
+
* @memberof DotCMSPageEditor
|
|
941
|
+
* @example
|
|
942
|
+
* updateNavigation('/home'); // Sends a message to the editor to update the navigation to '/home'
|
|
943
|
+
*/
|
|
944
|
+
function updateNavigation(pathname) {
|
|
945
|
+
sendMessageToUVE({
|
|
946
|
+
action: types.DotCMSUVEAction.NAVIGATION_UPDATE,
|
|
947
|
+
payload: {
|
|
948
|
+
url: pathname || '/'
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
}
|
|
936
952
|
/**
|
|
937
953
|
* Post message to dotcms page editor
|
|
938
954
|
*
|
|
@@ -1108,3 +1124,4 @@ exports.isValidBlocks = isValidBlocks;
|
|
|
1108
1124
|
exports.reorderMenu = reorderMenu;
|
|
1109
1125
|
exports.sendMessageToUVE = sendMessageToUVE;
|
|
1110
1126
|
exports.setBounds = setBounds;
|
|
1127
|
+
exports.updateNavigation = updateNavigation;
|
package/public.esm.js
CHANGED
|
@@ -931,6 +931,22 @@ const listenBlockEditorClick = () => {
|
|
|
931
931
|
});
|
|
932
932
|
};
|
|
933
933
|
|
|
934
|
+
/**
|
|
935
|
+
* Updates the navigation in the editor.
|
|
936
|
+
*
|
|
937
|
+
* @param {string} pathname - The pathname to update the navigation with.
|
|
938
|
+
* @memberof DotCMSPageEditor
|
|
939
|
+
* @example
|
|
940
|
+
* updateNavigation('/home'); // Sends a message to the editor to update the navigation to '/home'
|
|
941
|
+
*/
|
|
942
|
+
function updateNavigation(pathname) {
|
|
943
|
+
sendMessageToUVE({
|
|
944
|
+
action: DotCMSUVEAction.NAVIGATION_UPDATE,
|
|
945
|
+
payload: {
|
|
946
|
+
url: pathname || '/'
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
}
|
|
934
950
|
/**
|
|
935
951
|
* Post message to dotcms page editor
|
|
936
952
|
*
|
|
@@ -1074,4 +1090,4 @@ function initUVE(config = {}) {
|
|
|
1074
1090
|
};
|
|
1075
1091
|
}
|
|
1076
1092
|
|
|
1077
|
-
export { CUSTOM_NO_COMPONENT as C, DEVELOPMENT_MODE as D, END_CLASS as E, PRODUCTION_MODE as P, START_CLASS as S, __UVE_EVENTS__ as _, enableBlockEditorInline as a, initUVE as b, createUVESubscription as c, __UVE_EVENT_ERROR_FALLBACK__ as d, editContentlet as e, EMPTY_CONTAINER_STYLE_REACT as f, getUVEState as g, EMPTY_CONTAINER_STYLE_ANGULAR as h, initInlineEditing as i, getDotCMSPageBounds as j, getDotCMSContentletsBound as k, getDotCMSContainerData as l, getClosestDotCMSContainerData as m, findDotCMSElement as n, findDotCMSVTLData as o, computeScrollIsInBottom as p, combineClasses as q, reorderMenu as r, sendMessageToUVE as s, getColumnPositionClasses as t,
|
|
1093
|
+
export { isValidBlocks as A, CUSTOM_NO_COMPONENT as C, DEVELOPMENT_MODE as D, END_CLASS as E, PRODUCTION_MODE as P, START_CLASS as S, __UVE_EVENTS__ as _, enableBlockEditorInline as a, initUVE as b, createUVESubscription as c, __UVE_EVENT_ERROR_FALLBACK__ as d, editContentlet as e, EMPTY_CONTAINER_STYLE_REACT as f, getUVEState as g, EMPTY_CONTAINER_STYLE_ANGULAR as h, initInlineEditing as i, getDotCMSPageBounds as j, getDotCMSContentletsBound as k, getDotCMSContainerData as l, getClosestDotCMSContainerData as m, findDotCMSElement as n, findDotCMSVTLData as o, computeScrollIsInBottom as p, combineClasses as q, reorderMenu as r, sendMessageToUVE as s, getColumnPositionClasses as t, updateNavigation as u, getDotContentletAttributes as v, getContainersData as w, getContentletsInContainer as x, getDotContainerAttributes as y, setBounds as z };
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Contentlet, DotCMSUVEConfig, DotCMSInlineEditingPayload, DotCMSInlineEditingType, DotCMSBasicContentlet } from '@dotcms/types';
|
|
2
2
|
import { DotCMSReorderMenuConfig, DotCMSUVEMessage } from '@dotcms/types/internal';
|
|
3
|
+
/**
|
|
4
|
+
* Updates the navigation in the editor.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} pathname - The pathname to update the navigation with.
|
|
7
|
+
* @memberof DotCMSPageEditor
|
|
8
|
+
* @example
|
|
9
|
+
* updateNavigation('/home'); // Sends a message to the editor to update the navigation to '/home'
|
|
10
|
+
*/
|
|
11
|
+
export declare function updateNavigation(pathname: string): void;
|
|
3
12
|
/**
|
|
4
13
|
* Post message to dotcms page editor
|
|
5
14
|
*
|