@webstudio-is/react-sdk 0.298.0 → 0.300.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.
@@ -24,6 +24,8 @@ export type Params = {
24
24
  * https://assets.webstudio.is/
25
25
  */
26
26
  assetBaseUrl: string;
27
+ /** Runtime URLs keyed by their root-relative path in the Assets panel. */
28
+ assetUrlsByPath?: Readonly<Record<string, string>>;
27
29
  };
28
30
  export declare const ReactSdkContext: import("react").Context<Params & {
29
31
  imageLoader: ImageLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.298.0",
3
+ "version": "0.300.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -15,8 +15,8 @@
15
15
  "typescript": "7.0.2",
16
16
  "vitest": "^3.1.2",
17
17
  "zod": "^4.4.3",
18
- "@webstudio-is/tsconfig": "1.0.7",
19
- "@webstudio-is/template": "0.298.0"
18
+ "@webstudio-is/template": "0.300.0",
19
+ "@webstudio-is/tsconfig": "1.0.7"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "18.3.0-canary-14898b6a9-20240318",
@@ -25,13 +25,13 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "change-case": "^5.4.4",
28
- "@webstudio-is/content-engine": "0.298.0",
29
- "@webstudio-is/css-engine": "0.298.0",
30
- "@webstudio-is/expression": "0.298.0",
31
- "@webstudio-is/sdk": "0.298.0",
32
- "@webstudio-is/icons": "^0.298.0",
33
- "@webstudio-is/image": "0.298.0",
34
- "@webstudio-is/fonts": "0.298.0"
28
+ "@webstudio-is/content-engine": "0.300.0",
29
+ "@webstudio-is/css-engine": "0.300.0",
30
+ "@webstudio-is/expression": "0.300.0",
31
+ "@webstudio-is/fonts": "0.300.0",
32
+ "@webstudio-is/icons": "^0.300.0",
33
+ "@webstudio-is/image": "0.300.0",
34
+ "@webstudio-is/sdk": "0.300.0"
35
35
  },
36
36
  "exports": {
37
37
  ".": {
package/placeholder.d.ts CHANGED
@@ -36,13 +36,14 @@ declare module "__CLIENT__" {
36
36
 
37
37
  declare module "__SERVER__" {
38
38
  import type { PageMeta, System, ResourceRequest } from "@webstudio-is/sdk";
39
+ import type { ResourceRequestGraph } from "@webstudio-is/sdk/runtime";
39
40
 
40
41
  export const getResources: (props: {
41
42
  system: System;
42
43
  resources?: Record<string, any>;
43
44
  }) => {
44
- data: Map<string, ResourceRequest>;
45
- action: Map<string, ResourceRequest>;
45
+ data: ResourceRequestGraph;
46
+ action: Map<string, { id: string; outputName: string }>;
46
47
  contentData?: Map<string, ResourceRequest>;
47
48
  };
48
49
 
@@ -72,6 +73,7 @@ declare module "__SITEMAP__" {
72
73
  declare module "__ASSETS__" {
73
74
  import type { RuntimeAsset } from "@webstudio-is/sdk";
74
75
  export const assets: Record<string, RuntimeAsset>;
76
+ export const assetUrlsByPath: Record<string, string>;
75
77
  }
76
78
 
77
79
  declare module "__REDIRECT__" {