unlayer-types 1.489.0 → 1.492.0
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/embed.d.ts +6 -0
- package/package.json +1 -1
package/embed.d.ts
CHANGED
|
@@ -2588,6 +2588,8 @@ declare module "packages/editor/src/engine/config/callbacks" {
|
|
|
2588
2588
|
export type CallbackMap = {
|
|
2589
2589
|
[name: string]: CallbackFn | undefined;
|
|
2590
2590
|
};
|
|
2591
|
+
/** Resolve a public event name to the one callbacks are stored under. */
|
|
2592
|
+
export function resolveCallbackType(type: string): string;
|
|
2591
2593
|
export function getCallback(type: string): CallbackFn;
|
|
2592
2594
|
export function hasCallback(type: string): boolean;
|
|
2593
2595
|
export function getCallbackTriggerCount(type: string): number;
|
|
@@ -3791,6 +3793,8 @@ declare module "packages/editor/src/state/types/callbacks" {
|
|
|
3791
3793
|
}
|
|
3792
3794
|
export interface CallbackTypeMap<TDisplayMode extends DisplayMode | undefined = undefined> {
|
|
3793
3795
|
'editor:ready': () => void;
|
|
3796
|
+
'text-editor:ready': () => void;
|
|
3797
|
+
/** @deprecated Use text-editor:ready instead */
|
|
3794
3798
|
'textEditor:ready': () => void;
|
|
3795
3799
|
'design:loaded': (data: {
|
|
3796
3800
|
design: JSONTemplate<TDisplayMode>;
|
|
@@ -3823,6 +3827,8 @@ declare module "packages/editor/src/state/types/callbacks" {
|
|
|
3823
3827
|
item: Record<string, any>;
|
|
3824
3828
|
active: boolean;
|
|
3825
3829
|
}) => void;
|
|
3830
|
+
'inbox-previews:viewed': (data: InboxPreviewViewedEvent) => void;
|
|
3831
|
+
/** @deprecated Use inbox-previews:viewed instead */
|
|
3826
3832
|
'inboxPreview:viewed': (data: InboxPreviewViewedEvent) => void;
|
|
3827
3833
|
'page:added': (data: {
|
|
3828
3834
|
page: Record<string, any>;
|
package/package.json
CHANGED