Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix merge
Roman Pominov005eedd37ebb
diff --git a/packages/react-sdk/src/css/schema.ts b/packages/react-sdk/src/css/schema.tsindex aabba3dc9a..b7ddbeca85 100644--- a/packages/react-sdk/src/css/schema.ts+++ b/packages/react-sdk/src/css/schema.ts@@ -12,12 +12,16 @@ export const UnitValue = z.object({value: z.number(),});+export type UnitValue = z.infer<typeof UnitValue>;+export const KeywordValue = z.object({type: z.literal("keyword"),// @todo use exact typevalue: z.string(),});+export type KeywordValue = z.infer<typeof KeywordValue>;+// We want to be able to render the invalid value// and show it is invalid visually, without saving it to the dbexport const InvalidValue = z.object({@@ -32,7 +36,12 @@ export const UnsetValue = z.object({export type UnsetValue = z.infer<typeof UnsetValue>;-export const StyleValue = z.union([UnitValue, KeywordValue, InvalidValue, UnsetValue]);+export const StyleValue = z.union([+ UnitValue,+ KeywordValue,+ InvalidValue,+ UnsetValue,+]);export type StyleValue = z.infer<typeof StyleValue>;