mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-28 23:57:17 +09:00
Ref https://github.com/webstudio-is/webstudio-builder/issues/1529 Instead of SuccessMessage and ErrorMessage components we can use Box with bound state from form. For now this is only boolean state which should be set on Form component side. Soon we explore using expression as data sources to change only enum value instead of booleans. Changes in template - ErrorMessage and SuccessMessage are replaced with Box with "show" bound to expression - ErrorMessage and SuccessMessage have text in own children - the rest of Form content is wrapped with Box bound to expression - Form got state prop bound to variable - Form initialState prop is deleted Migration just bind show props of all from direct children to data sources. Without additional wrapping.
9 lines
148 B
JSON
9 lines
148 B
JSON
{
|
|
"extends": "@webstudio-is/tsconfig/base.json",
|
|
"include": ["src"],
|
|
"compilerOptions": {
|
|
"rootDir": "./src",
|
|
"outDir": "./lib"
|
|
}
|
|
}
|