@apexcura/ui-builder
Version:
A low-code UI builder library for dynamic form generation and reusable components built with React, Redux, Tailwind, and Ant Design.
65 lines (64 loc) • 1.68 kB
TypeScript
/**
* Transforms string values starting with @ into appropriate action objects
* @param value Any value to check for transformation
* @returns Action object or undefined if no transformation needed
*/
export declare const transformAtValue: (value: any) => {
action: string;
args: {
storedLocation: string;
location?: undefined;
key?: undefined;
pattern?: undefined;
};
type?: undefined;
} | {
type: string;
action: string;
args: {
location: string;
storedLocation?: undefined;
key?: undefined;
pattern?: undefined;
};
} | {
type: string;
action: string;
args: {
storedLocation: string;
location?: undefined;
key?: undefined;
pattern?: undefined;
};
} | {
action: string;
args: {
key: string;
pattern: string;
storedLocation?: undefined;
location?: undefined;
};
type?: undefined;
} | {
action: string;
args: {
key: string;
storedLocation?: undefined;
location?: undefined;
pattern?: undefined;
};
type?: undefined;
} | undefined;
/**
* Process a simplified schema by applying styles, handlers, and effects
* @param schema The schema object to process
* @returns The processed schema
*/
export declare const processSimplifiedSchema: (schema: any) => any;
/**
* Process a collection of schema items by checking each to see if it needs
* to be processed with processSimplifiedSchema
* @param schemaItems Array of schema items
* @returns Processed schema items
*/
export declare const processSchemaCollection: (schema: any) => any;