@webstudio-is/react-sdk 0.196.0 → 0.198.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.
@@ -2,8 +2,6 @@ export * from "./remix";
2
2
  export * from "./css/index";
3
3
  export * from "./core-components";
4
4
  export * from "./components/components-utils";
5
- export { PropMeta } from "./prop-meta";
6
- export { type WsComponentPropsMeta, type ComponentState, type PresetStyle, WsComponentMeta, componentCategories, stateCategories, defaultStates, } from "./components/component-meta";
7
5
  export * from "./embed-template";
8
6
  export * from "./props";
9
7
  export type * from "./context";
@@ -1,4 +1,3 @@
1
- import type { Instance, Instances } from "@webstudio-is/sdk";
2
- import type { WsComponentMeta } from "./components/component-meta";
1
+ import type { Instance, Instances, WsComponentMeta } from "@webstudio-is/sdk";
3
2
  export type IndexesWithinAncestors = Map<Instance["id"], number>;
4
3
  export declare const getIndexesWithinAncestors: (metas: Map<Instance["component"], WsComponentMeta>, instances: Instances, rootIds: Instance["id"][]) => IndexesWithinAncestors;
@@ -1,4 +1,9 @@
1
1
  export * from "./context";
2
2
  export * from "./hook";
3
3
  export * from "./variable-state";
4
+ /**
5
+ * React has issues rendering certain elements, such as errors when a <link> element has children.
6
+ * To render XML, we wrap it with an <svg> tag and add a suffix to avoid React's default behavior on these elements.
7
+ */
8
+ export declare const xmlNodeTagSuffix = "-ws-xml-node-fb77f896-8e96-40b9-b8f8-90a4e70d724a";
4
9
  export declare const getIndexWithinAncestorFromComponentProps: (props: Record<string, unknown>) => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.196.0",
3
+ "version": "0.198.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -11,10 +11,10 @@
11
11
  "react": "18.3.0-canary-14898b6a9-20240318",
12
12
  "react-dom": "18.3.0-canary-14898b6a9-20240318",
13
13
  "strip-indent": "^4.0.0",
14
- "type-fest": "^4.28.0",
14
+ "type-fest": "^4.31.0",
15
15
  "vitest": "^2.1.8",
16
16
  "zod": "^3.22.4",
17
- "@webstudio-is/template": "0.196.0",
17
+ "@webstudio-is/template": "0.198.0",
18
18
  "@webstudio-is/tsconfig": "1.0.7"
19
19
  },
20
20
  "peerDependencies": {
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "change-case": "^5.4.4",
27
27
  "html-tags": "^4.0.0",
28
- "nanoid": "^5.0.8",
29
- "@webstudio-is/css-engine": "0.196.0",
30
- "@webstudio-is/icons": "^0.196.0",
31
- "@webstudio-is/fonts": "0.196.0",
32
- "@webstudio-is/sdk": "0.196.0",
33
- "@webstudio-is/image": "0.196.0"
28
+ "nanoid": "^5.0.9",
29
+ "@webstudio-is/css-engine": "0.198.0",
30
+ "@webstudio-is/fonts": "0.198.0",
31
+ "@webstudio-is/icons": "^0.198.0",
32
+ "@webstudio-is/image": "0.198.0",
33
+ "@webstudio-is/sdk": "0.198.0"
34
34
  },
35
35
  "exports": {
36
36
  ".": {