webstudio 0.205.0 → 0.206.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstudio",
3
- "version": "0.205.0",
3
+ "version": "0.206.0",
4
4
  "description": "Webstudio CLI",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -68,16 +68,16 @@
68
68
  "vite": "^5.4.11",
69
69
  "vitest": "^3.0.4",
70
70
  "wrangler": "^3.63.2",
71
- "@webstudio-is/http-client": "0.205.0",
72
- "@webstudio-is/image": "0.205.0",
73
- "@webstudio-is/sdk": "0.205.0",
74
- "@webstudio-is/sdk-components-animation": "0.205.0",
75
- "@webstudio-is/react-sdk": "0.205.0",
76
- "@webstudio-is/sdk-components-react": "0.205.0",
77
- "@webstudio-is/sdk-components-react-remix": "0.205.0",
78
- "@webstudio-is/sdk-components-react-radix": "0.205.0",
79
- "@webstudio-is/sdk-components-react-router": "0.205.0",
80
- "@webstudio-is/tsconfig": "1.0.7"
71
+ "@webstudio-is/http-client": "0.206.0",
72
+ "@webstudio-is/image": "0.206.0",
73
+ "@webstudio-is/react-sdk": "0.206.0",
74
+ "@webstudio-is/sdk": "0.206.0",
75
+ "@webstudio-is/sdk-components-animation": "0.206.0",
76
+ "@webstudio-is/sdk-components-react": "0.206.0",
77
+ "@webstudio-is/sdk-components-react-remix": "0.206.0",
78
+ "@webstudio-is/tsconfig": "1.0.7",
79
+ "@webstudio-is/sdk-components-react-router": "0.206.0",
80
+ "@webstudio-is/sdk-components-react-radix": "0.206.0"
81
81
  },
82
82
  "scripts": {
83
83
  "typecheck": "tsc",
@@ -151,7 +151,7 @@ export const links: LinksFunction = () => {
151
151
  result.push({
152
152
  rel: "icon",
153
153
  href: imageLoader({
154
- src: `${assetBaseUrl}${favIconAsset.name}`,
154
+ src: `${assetBaseUrl}${favIconAsset}`,
155
155
  // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
156
156
  width: 144,
157
157
  height: 144,
@@ -166,7 +166,7 @@ export const links: LinksFunction = () => {
166
166
  for (const asset of pageFontAssets) {
167
167
  result.push({
168
168
  rel: "preload",
169
- href: `${assetBaseUrl}${asset.name}`,
169
+ href: `${assetBaseUrl}${asset}`,
170
170
  as: "font",
171
171
  crossOrigin: "anonymous",
172
172
  });
@@ -175,7 +175,7 @@ export const links: LinksFunction = () => {
175
175
  for (const backgroundImageAsset of pageBackgroundImageAssets) {
176
176
  result.push({
177
177
  rel: "preload",
178
- href: `${assetBaseUrl}${backgroundImageAsset.name}`,
178
+ href: `${assetBaseUrl}${backgroundImageAsset}`,
179
179
  as: "image",
180
180
  });
181
181
  }
@@ -71,10 +71,6 @@ export const loader = async (arg: LoaderFunctionArgs) => {
71
71
  </ReactSdkContext.Provider>
72
72
  );
73
73
 
74
- // Xml is wrapped with <svg> to prevent React from hoisting elements like <title>, <meta>, and <link> out of their intended scope during rendering.
75
- // More details: https://github.com/facebook/react/blob/7c8e5e7ab8bb63de911637892392c5efd8ce1d0f/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js#L3083
76
- text = text.replace(/^<svg>/g, "").replace(/<\/svg>$/g, "");
77
-
78
74
  // React has issues rendering certain elements, such as errors when a <link> element has children.
79
75
  // To render XML, we wrap it with an <svg> tag and add a suffix to avoid React's default behavior on these elements.
80
76
  text = text.replaceAll(xmlNodeTagSuffix, "");
@@ -11,13 +11,13 @@
11
11
  "@remix-run/node": "2.15.2",
12
12
  "@remix-run/react": "2.15.2",
13
13
  "@remix-run/server-runtime": "2.15.2",
14
- "@webstudio-is/image": "0.205.0",
15
- "@webstudio-is/react-sdk": "0.205.0",
16
- "@webstudio-is/sdk": "0.205.0",
17
- "@webstudio-is/sdk-components-react": "0.205.0",
18
- "@webstudio-is/sdk-components-animation": "0.205.0",
19
- "@webstudio-is/sdk-components-react-radix": "0.205.0",
20
- "@webstudio-is/sdk-components-react-remix": "0.205.0",
14
+ "@webstudio-is/image": "0.206.0",
15
+ "@webstudio-is/react-sdk": "0.206.0",
16
+ "@webstudio-is/sdk": "0.206.0",
17
+ "@webstudio-is/sdk-components-react": "0.206.0",
18
+ "@webstudio-is/sdk-components-animation": "0.206.0",
19
+ "@webstudio-is/sdk-components-react-radix": "0.206.0",
20
+ "@webstudio-is/sdk-components-react-remix": "0.206.0",
21
21
  "isbot": "^5.1.22",
22
22
  "react": "18.3.0-canary-14898b6a9-20240318",
23
23
  "react-dom": "18.3.0-canary-14898b6a9-20240318"
@@ -150,7 +150,7 @@ export const links: LinksFunction = () => {
150
150
  result.push({
151
151
  rel: "icon",
152
152
  href: imageLoader({
153
- src: `${assetBaseUrl}${favIconAsset.name}`,
153
+ src: `${assetBaseUrl}${favIconAsset}`,
154
154
  // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
155
155
  width: 144,
156
156
  height: 144,
@@ -165,7 +165,7 @@ export const links: LinksFunction = () => {
165
165
  for (const asset of pageFontAssets) {
166
166
  result.push({
167
167
  rel: "preload",
168
- href: `${assetBaseUrl}${asset.name}`,
168
+ href: `${assetBaseUrl}${asset}`,
169
169
  as: "font",
170
170
  crossOrigin: "anonymous",
171
171
  });
@@ -174,7 +174,7 @@ export const links: LinksFunction = () => {
174
174
  for (const backgroundImageAsset of pageBackgroundImageAssets) {
175
175
  result.push({
176
176
  rel: "preload",
177
- href: `${assetBaseUrl}${backgroundImageAsset.name}`,
177
+ href: `${assetBaseUrl}${backgroundImageAsset}`,
178
178
  as: "image",
179
179
  });
180
180
  }
@@ -10,13 +10,13 @@
10
10
  "dependencies": {
11
11
  "@react-router/dev": "^7.1.5",
12
12
  "@react-router/fs-routes": "^7.1.5",
13
- "@webstudio-is/image": "0.205.0",
14
- "@webstudio-is/react-sdk": "0.205.0",
15
- "@webstudio-is/sdk": "0.205.0",
16
- "@webstudio-is/sdk-components-animation": "0.205.0",
17
- "@webstudio-is/sdk-components-react-radix": "0.205.0",
18
- "@webstudio-is/sdk-components-react-router": "0.205.0",
19
- "@webstudio-is/sdk-components-react": "0.205.0",
13
+ "@webstudio-is/image": "0.206.0",
14
+ "@webstudio-is/react-sdk": "0.206.0",
15
+ "@webstudio-is/sdk": "0.206.0",
16
+ "@webstudio-is/sdk-components-animation": "0.206.0",
17
+ "@webstudio-is/sdk-components-react-radix": "0.206.0",
18
+ "@webstudio-is/sdk-components-react-router": "0.206.0",
19
+ "@webstudio-is/sdk-components-react": "0.206.0",
20
20
  "isbot": "^5.1.22",
21
21
  "react": "18.3.0-canary-14898b6a9-20240318",
22
22
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
@@ -60,7 +60,7 @@ export const Head = ({ data }: { data: PageContext["data"] }) => {
60
60
  <link
61
61
  rel="icon"
62
62
  href={imageLoader({
63
- src: `${assetBaseUrl}${favIconAsset.name}`,
63
+ src: `${assetBaseUrl}${favIconAsset}`,
64
64
  // width,height must be multiple of 48 https://developers.google.com/search/docs/appearance/favicon-in-search
65
65
  width: 144,
66
66
  height: 144,
@@ -72,18 +72,18 @@ export const Head = ({ data }: { data: PageContext["data"] }) => {
72
72
  )}
73
73
  {pageFontAssets.map((asset) => (
74
74
  <link
75
- key={asset.id}
75
+ key={asset}
76
76
  rel="preload"
77
- href={`${assetBaseUrl}${asset.name}`}
77
+ href={`${assetBaseUrl}${asset}`}
78
78
  as="font"
79
79
  crossOrigin="anonymous"
80
80
  />
81
81
  ))}
82
82
  {pageBackgroundImageAssets.map((asset) => (
83
83
  <link
84
- key={asset.id}
84
+ key={asset}
85
85
  rel="preload"
86
- href={`${assetBaseUrl}${asset.name}`}
86
+ href={`${assetBaseUrl}${asset}`}
87
87
  as="image"
88
88
  />
89
89
  ))}
@@ -8,12 +8,12 @@
8
8
  "typecheck": "tsc"
9
9
  },
10
10
  "dependencies": {
11
- "@webstudio-is/image": "0.205.0",
12
- "@webstudio-is/react-sdk": "0.205.0",
13
- "@webstudio-is/sdk": "0.205.0",
14
- "@webstudio-is/sdk-components-react": "0.205.0",
15
- "@webstudio-is/sdk-components-animation": "0.205.0",
16
- "@webstudio-is/sdk-components-react-radix": "0.205.0",
11
+ "@webstudio-is/image": "0.206.0",
12
+ "@webstudio-is/react-sdk": "0.206.0",
13
+ "@webstudio-is/sdk": "0.206.0",
14
+ "@webstudio-is/sdk-components-react": "0.206.0",
15
+ "@webstudio-is/sdk-components-animation": "0.206.0",
16
+ "@webstudio-is/sdk-components-react-radix": "0.206.0",
17
17
  "react": "18.3.0-canary-14898b6a9-20240318",
18
18
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
19
19
  "vike": "^0.4.222"