@webstudio-is/react-sdk 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,6 +73,7 @@ const WsComponentMeta = import_zod.z.lazy(
73
73
  Icon: import_zod.z.any(),
74
74
  defaultStyle: import_zod.z.optional(import_zod.z.any()),
75
75
  children: import_zod.z.optional(import_zod.z.array(import_zod.z.string())),
76
- props: Props
76
+ props: Props,
77
+ initialProps: import_zod.z.optional(import_zod.z.array(import_zod.z.string()))
77
78
  })
78
79
  );
@@ -45,6 +45,7 @@ const meta = {
45
45
  label: "Image",
46
46
  Icon: import_icons.ImageIcon,
47
47
  defaultStyle,
48
- props: import_image_props.default
48
+ props: import_image_props.default,
49
+ initialProps: ["src", "width", "height", "alt", "loading"]
49
50
  };
50
51
  var image_ws_default = meta;
@@ -50,7 +50,8 @@ const WsComponentMeta = z.lazy(
50
50
  Icon: z.any(),
51
51
  defaultStyle: z.optional(z.any()),
52
52
  children: z.optional(z.array(z.string())),
53
- props: Props
53
+ props: Props,
54
+ initialProps: z.optional(z.array(z.string()))
54
55
  })
55
56
  );
56
57
  export {
@@ -16,7 +16,8 @@ const meta = {
16
16
  label: "Image",
17
17
  Icon: ImageIcon,
18
18
  defaultStyle,
19
- props
19
+ props,
20
+ initialProps: ["src", "width", "height", "alt", "loading"]
20
21
  };
21
22
  var image_ws_default = meta;
22
23
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -35,7 +35,6 @@
35
35
  "@webstudio-is/generate-arg-types": "*",
36
36
  "@webstudio-is/jest-config": "*",
37
37
  "@webstudio-is/scripts": "*",
38
- "@webstudio-is/design-tokens": "*",
39
38
  "babel-loader": "^8.2.5",
40
39
  "esbuild": "^0.14.25",
41
40
  "esbuild-node-externals": "^1.4.1",
@@ -58,6 +57,7 @@
58
57
  "dependencies": {
59
58
  "@webstudio-is/asset-uploader": "^*",
60
59
  "@webstudio-is/css-data": "*",
60
+ "@webstudio-is/design-tokens": "*",
61
61
  "@webstudio-is/icons": "*",
62
62
  "@webstudio-is/image": "*",
63
63
  "@webstudio-is/prisma-client": "*",
@@ -26,6 +26,7 @@ export type WsComponentMeta = {
26
26
  defaultStyle?: Style;
27
27
  children?: Array<string>;
28
28
  props: MetaProps;
29
+ initialProps?: Array<string>;
29
30
  };
30
31
 
31
32
  const Props = z.record(
@@ -85,5 +86,6 @@ export const WsComponentMeta = z.lazy(() =>
85
86
  defaultStyle: z.optional(z.any()),
86
87
  children: z.optional(z.array(z.string())),
87
88
  props: Props,
89
+ initialProps: z.optional(z.array(z.string())),
88
90
  })
89
91
  );
@@ -23,6 +23,7 @@ const meta: WsComponentMeta = {
23
23
  Icon: ImageIcon,
24
24
  defaultStyle,
25
25
  props: props as MetaProps,
26
+ initialProps: ["src", "width", "height", "alt", "loading"],
26
27
  };
27
28
 
28
29
  export default meta;