@ovine/craft
Version:
Ovine json editor.
157 lines (156 loc) • 3.91 kB
TypeScript
export const nodes: {
page: {
refProps: {
base: {
type: string;
name: string;
label: string;
}[];
ui: {
type: string;
name: string;
label: string;
}[];
advance: {
type: string;
name: string;
label: string;
}[];
};
selectProps: {};
};
html: {
refProps: {
base: {
type: string;
name: string;
label: string;
}[];
ui: {
type: string;
name: string;
label: string;
}[];
};
selectProps: {};
};
form: {
refProps: {
base: ({
type: string;
name: string;
label: string;
value: string;
options: {
label: string;
value: string;
}[];
} | {
name: string;
label: string;
type: string;
value?: undefined;
options?: undefined;
})[];
ui: {
type: string;
name: string;
label: string;
}[];
advance: {
type: string;
name: string;
label: string;
}[];
};
selectProps: {};
};
action: {
refProps: {
base: ({
name: string;
label: string;
type: string;
value?: undefined;
options?: undefined;
} | {
type: string;
name: string;
label: string;
value: string;
options: {
label: string;
value: string;
}[];
})[];
ui: {
type: string;
name: string;
label: string;
}[];
advance: {
type: string;
name: string;
label: string;
}[];
};
selectProps: {};
selectorInfo: {
type: string;
label: string;
img: string;
desc: string;
template: {
type: string;
label: string;
};
};
};
text: {
refProps: {
base: {
name: string;
label: string;
type: string;
}[];
ui: {
type: string;
name: string;
label: string;
}[];
advance: {
type: string;
name: string;
label: string;
}[];
};
selectProps: {};
};
};
export namespace domId {
const editorPreview: string;
const editorSelector: string;
const editorSelectorNav: string;
}
export const nodeIdKey: "$dataId";
export namespace message {
const toggleSelector: string;
const updateSelected: string;
const updateHover: string;
const onNodeAction: string;
}
export namespace nodeAction {
export const addChild: string;
export const addLeftChild: string;
export const addTopChild: string;
export const addRightChild: string;
export const addBottomChild: string;
export const changePosition: string;
export const toPrev: string;
export const toNext: string;
export const copy: string;
export const cut: string;
export const paste: string;
const _delete: string;
export { _delete as delete };
}