@dotcms/uve
Version:
Official JavaScript library for interacting with Universal Visual Editor (UVE)
84 lines (83 loc) • 1.76 kB
TypeScript
import { UVEEventSubscriber, UVEEventType } from '@dotcms/types';
/**
* Events that can be subscribed to in the UVE
*
* @internal
* @type {Record<UVEEventType, UVEEventSubscriber>}
*/
export declare const __UVE_EVENTS__: Record<UVEEventType, UVEEventSubscriber>;
/**
* Default UVE event
*
* @param {string} event - The event to subscribe to.
* @internal
*/
export declare const __UVE_EVENT_ERROR_FALLBACK__: (event: string) => {
unsubscribe: () => void;
event: string;
};
/**
* Development mode
*
* @internal
*/
export declare const DEVELOPMENT_MODE = "development";
/**
* Production mode
*
* @internal
*/
export declare const PRODUCTION_MODE = "production";
/**
* End class
*
* @internal
*/
export declare const END_CLASS = "col-end-";
/**
* Start class
*
* @internal
*/
export declare const START_CLASS = "col-start-";
/**
* Empty container style for React
*
* @internal
*/
export declare const EMPTY_CONTAINER_STYLE_REACT: {
width: string;
backgroundColor: string;
display: string;
justifyContent: string;
alignItems: string;
color: string;
height: string;
};
/**
* Empty container style for Angular
*
* @internal
*/
export declare const EMPTY_CONTAINER_STYLE_ANGULAR: {
width: string;
'background-color': string;
display: string;
'justify-content': string;
'align-items': string;
color: string;
height: string;
};
/**
* Custom no component
*
* @internal
*/
export declare const CUSTOM_NO_COMPONENT = "CustomNoComponent";
/**
* ID prefix applied to page section wrappers for editor scroll-to-section support.
* Used by SDK row components and the UVE scroll event handler.
*
* @internal
*/
export declare const DOT_SECTION_ID_PREFIX = "dot-section-";