Files
webstudio/app/shared/component/instance-data.ts
T
2022-03-15 13:14:35 +00:00

26 lines
452 B
TypeScript

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