Files
webstudio/app/shared/component/instance-data.ts
T
Oleg Isonen 5116ea4140 predefined breakpoints now loaded from server
in preparation to be loaded form db
2022-04-20 17:34:42 +01:00

29 lines
525 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;
};
type StyleUpdate = {
property: StyleProperty;
value: StyleValue;
};
export type StyleUpdates = {
id: Instance["id"];
updates: Array<StyleUpdate>;
breakpoint: Breakpoint;
};