@webstudio-is/react-sdk 0.182.0 → 0.189.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/lib/index.js +74 -129
- package/lib/types/component-generator.d.ts +2 -1
- package/lib/types/components/component-meta.d.ts +314 -994
- package/lib/types/core-components.d.ts +149 -1
- package/lib/types/embed-template.d.ts +734 -1432
- package/lib/types/index.d.ts +0 -1
- package/lib/types/props.d.ts +1 -0
- package/package.json +9 -9
- package/lib/types/tree/create-elements-tree.d.ts +0 -26
- package/lib/types/tree/index.d.ts +0 -1
package/lib/types/index.d.ts
CHANGED
package/lib/types/props.d.ts
CHANGED
|
@@ -101,3 +101,4 @@ export declare const showAttribute: "data-ws-show";
|
|
|
101
101
|
export declare const indexAttribute: "data-ws-index";
|
|
102
102
|
export declare const collapsedAttribute: "data-ws-collapsed";
|
|
103
103
|
export declare const textContentAttribute: "data-ws-text-content";
|
|
104
|
+
export declare const isAttributeNameSafe: (attributeName: string) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.189.0",
|
|
4
4
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
13
13
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
14
14
|
"strip-indent": "^4.0.0",
|
|
15
|
-
"type-fest": "^4.
|
|
16
|
-
"typescript": "5.
|
|
15
|
+
"type-fest": "^4.26.1",
|
|
16
|
+
"typescript": "5.6.3",
|
|
17
17
|
"zod": "^3.22.4",
|
|
18
18
|
"@webstudio-is/jest-config": "1.0.7",
|
|
19
19
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"change-case": "^5.4.4",
|
|
28
28
|
"html-tags": "^4.0.0",
|
|
29
29
|
"nanoid": "^5.0.1",
|
|
30
|
-
"title-case": "^4.3.
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/
|
|
33
|
-
"@webstudio-is/
|
|
34
|
-
"@webstudio-is/
|
|
35
|
-
"@webstudio-is/
|
|
30
|
+
"title-case": "^4.3.2",
|
|
31
|
+
"@webstudio-is/fonts": "0.189.0",
|
|
32
|
+
"@webstudio-is/css-engine": "0.189.0",
|
|
33
|
+
"@webstudio-is/image": "0.189.0",
|
|
34
|
+
"@webstudio-is/sdk": "0.189.0",
|
|
35
|
+
"@webstudio-is/icons": "^0.189.0"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
".": {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type ForwardRefExoticComponent, type ReactNode, type RefAttributes } from "react";
|
|
2
|
-
import type { Instance, Instances } from "@webstudio-is/sdk";
|
|
3
|
-
import type { Components } from "../components/components-utils";
|
|
4
|
-
import { type Params } from "../context";
|
|
5
|
-
import type { ImageLoader } from "@webstudio-is/image";
|
|
6
|
-
type InstanceSelector = Instance["id"][];
|
|
7
|
-
export type WebstudioComponentProps = {
|
|
8
|
-
instance: Instance;
|
|
9
|
-
instanceSelector: Instance["id"][];
|
|
10
|
-
components: Components;
|
|
11
|
-
};
|
|
12
|
-
export declare const createElementsTree: ({ renderer, assetBaseUrl, imageBaseUrl, imageLoader, instances, rootInstanceId, Component, components, }: Params & {
|
|
13
|
-
instances: Instances;
|
|
14
|
-
imageLoader: ImageLoader;
|
|
15
|
-
rootInstanceId: Instance["id"];
|
|
16
|
-
Component: ForwardRefExoticComponent<WebstudioComponentProps & RefAttributes<HTMLElement>>;
|
|
17
|
-
components: Components;
|
|
18
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
-
export declare const createInstanceChildrenElements: ({ instances, instanceSelector, children, Component, components, }: {
|
|
20
|
-
instances: Instances;
|
|
21
|
-
instanceSelector: InstanceSelector;
|
|
22
|
-
children: Instance["children"];
|
|
23
|
-
Component: ForwardRefExoticComponent<WebstudioComponentProps & RefAttributes<HTMLElement>>;
|
|
24
|
-
components: Components;
|
|
25
|
-
}) => ReactNode[] | undefined;
|
|
26
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./create-elements-tree";
|