@talend/react-containers
Version:
Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.
41 lines (40 loc) • 2.23 kB
TypeScript
/**
* @param {Action{definitionURL: String, uiSpecPath: String, componentId: String }} action
*/
export function fetchDefinition(action: any): Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").CallEffect<any>, void, {
data: any;
response: any;
}>;
export function onDidMount({ componentId, definition, definitionURL, uiSpecPath, data, }: {
componentId?: string | undefined;
definition: any;
definitionURL: any;
uiSpecPath: any;
data: any;
}): Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").CallEffect<any>, void, {
data: any;
response: any;
}>, void, unknown>;
export function onFormSubmit(componentId: any, submitURL: any, action: any): Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").CallEffect<any> | import("redux-saga/effects").SelectEffect, void, {
response: any;
data: any;
}>;
/**
* check that the formId and action type match with the provided actions
* @param {String} componentId
* @return {(Action{type: String, componentid: String}) => Bool}
*/
export function checkFormComponentId(componentId: string, actionType: any): (Action);
/**
* This function handle a change of the dirty state for a given component form id
* @param {object} reduxAction with a componentId (string) & the dirtyState (boolean) to apply
*/
export function handleSetDirtyState({ componentId, dirty }: object): Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").SelectEffect, void, unknown>;
export function handle(props: any): Generator<import("redux-saga/effects").ForkEffect<never> | import("redux-saga/effects").TakeEffect | import("redux-saga/effects").CallEffect<Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").SelectEffect | Generator<import("redux-saga/effects").PutEffect<any> | import("redux-saga/effects").CallEffect<any>, void, {
data: any;
response: any;
}>, void, unknown>>, void, unknown>;
declare const _default: {
'ComponentForm#default': typeof handle;
};
export default _default;