@webstudio-is/react-sdk 0.0.0-4f7bf18 → 0.0.0-50b8685

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-is/react-sdk",
3
- "version": "0.0.0-4f7bf18",
3
+ "version": "0.0.0-50b8685",
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.32.0",
15
- "vitest": "^3.0.2",
16
- "zod": "^3.22.4",
17
- "@webstudio-is/template": "0.0.0-4f7bf18",
14
+ "type-fest": "^4.37.0",
15
+ "vitest": "^3.0.8",
16
+ "zod": "^3.24.2",
17
+ "@webstudio-is/template": "0.0.0-50b8685",
18
18
  "@webstudio-is/tsconfig": "1.0.7"
19
19
  },
20
20
  "peerDependencies": {
@@ -26,11 +26,11 @@
26
26
  "change-case": "^5.4.4",
27
27
  "html-tags": "^4.0.0",
28
28
  "nanoid": "^5.0.9",
29
- "@webstudio-is/fonts": "0.0.0-4f7bf18",
30
- "@webstudio-is/css-engine": "0.0.0-4f7bf18",
31
- "@webstudio-is/icons": "^0.0.0-4f7bf18",
32
- "@webstudio-is/image": "0.0.0-4f7bf18",
33
- "@webstudio-is/sdk": "0.0.0-4f7bf18"
29
+ "@webstudio-is/fonts": "0.0.0-50b8685",
30
+ "@webstudio-is/css-engine": "0.0.0-50b8685",
31
+ "@webstudio-is/icons": "^0.0.0-50b8685",
32
+ "@webstudio-is/image": "0.0.0-50b8685",
33
+ "@webstudio-is/sdk": "0.0.0-50b8685"
34
34
  },
35
35
  "exports": {
36
36
  ".": {
package/placeholder.d.ts CHANGED
@@ -5,21 +5,22 @@ declare module "__CONSTANTS__" {
5
5
  }
6
6
 
7
7
  declare module "__CLIENT__" {
8
- import type {
9
- FontAsset,
10
- ImageAsset,
11
- ResourceRequest,
12
- System,
13
- } from "@webstudio-is/sdk";
8
+ import type { ResourceRequest, System } from "@webstudio-is/sdk";
14
9
 
15
10
  export const siteName: string;
16
11
 
17
- export const favIconAsset: ImageAsset | undefined;
12
+ export const favIconAsset: string | undefined;
13
+
14
+ export const breakpoints: {
15
+ id: string;
16
+ minWidth?: number;
17
+ maxWidth?: number;
18
+ }[];
18
19
 
19
20
  // Font assets on current page (can be preloaded)
20
- export const pageFontAssets: FontAsset[];
21
+ export const pageFontAssets: string[];
21
22
 
22
- export const pageBackgroundImageAssets: ImageAsset[];
23
+ export const pageBackgroundImageAssets: string[];
23
24
 
24
25
  export const CustomCode: () => ReactNode;
25
26
 
@@ -1,20 +0,0 @@
1
- import { type TransformValue } from "@webstudio-is/css-engine";
2
- import { type Assets, type Breakpoints, type Instances, type Props, type StyleSourceSelections, type Styles, type WsComponentMeta } from "@webstudio-is/sdk";
3
- export type CssConfig = {
4
- assets: Assets;
5
- instances: Instances;
6
- props: Props;
7
- breakpoints: Breakpoints;
8
- styles: Styles;
9
- styleSourceSelections: StyleSourceSelections;
10
- componentMetas: Map<string, WsComponentMeta>;
11
- assetBaseUrl: string;
12
- atomic: boolean;
13
- };
14
- export declare const createImageValueTransformer: (assets: Assets, { assetBaseUrl }: {
15
- assetBaseUrl: string;
16
- }) => TransformValue;
17
- export declare const generateCss: ({ assets, instances, props, breakpoints, styles, styleSourceSelections, componentMetas, assetBaseUrl, atomic, }: CssConfig) => {
18
- cssText: string;
19
- classes: Map<string, string[]>;
20
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import type { StyleSheetRegular } from "@webstudio-is/css-engine";
2
- import type { Assets } from "@webstudio-is/sdk";
3
- export declare const addGlobalRules: (sheet: StyleSheetRegular, { assets, assetBaseUrl }: {
4
- assets: Assets;
5
- assetBaseUrl: string;
6
- }) => void;
@@ -1,2 +0,0 @@
1
- export * from "./global-rules";
2
- export * from "./css";
@@ -1,3 +0,0 @@
1
- import type { Instance, Instances, WsComponentMeta } from "@webstudio-is/sdk";
2
- export type IndexesWithinAncestors = Map<Instance["id"], number>;
3
- export declare const getIndexesWithinAncestors: (metas: Map<Instance["component"], WsComponentMeta>, instances: Instances, rootIds: Instance["id"][]) => IndexesWithinAncestors;
@@ -1 +0,0 @@
1
- export {};