- Adds Web workers and does evaluations in off the main thread - Removes any need to store functions in the data tree and only keeps them around while evaluating - Maintains a stored data tree in the redux state - Evaluates based on editor events instead of state changes
17 lines
353 B
TypeScript
17 lines
353 B
TypeScript
import {
|
|
VALIDATION_TYPES,
|
|
ValidationType,
|
|
Validator,
|
|
} from "constants/WidgetValidation";
|
|
|
|
export const BASE_WIDGET_VALIDATION = {
|
|
isLoading: VALIDATION_TYPES.BOOLEAN,
|
|
isVisible: VALIDATION_TYPES.BOOLEAN,
|
|
isDisabled: VALIDATION_TYPES.BOOLEAN,
|
|
};
|
|
|
|
export type WidgetPropertyValidationType = Record<
|
|
string,
|
|
ValidationType | Validator
|
|
>;
|