Files
webstudio/app/shared/canvas-components/instance-data.ts
T
2022-06-20 00:46:19 +02:00

34 lines
623 B
TypeScript

import {
type Instance,
type InstanceProps,
type CssRule,
type Style,
type StyleProperty,
type StyleValue,
type Breakpoint,
} from "@webstudio-is/sdk";
export type SelectedInstanceData = {
id: Instance["id"];
component: Instance["component"];
cssRules: Array<CssRule>;
browserStyle: Style;
props: InstanceProps;
};
export type HoveredInstanceData = {
id: Instance["id"];
component: Instance["component"];
};
type StyleUpdate = {
property: StyleProperty;
value: StyleValue;
};
export type StyleUpdates = {
id: Instance["id"];
updates: Array<StyleUpdate>;
breakpoint: Breakpoint;
};