@webstudio-is/react-sdk 0.139.0 → 0.141.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 +9 -26
- package/lib/types/components/component-meta.d.ts +2557 -437
- package/lib/types/context.d.ts +0 -7
- package/lib/types/css/normalize.d.ts +13726 -3338
- package/lib/types/embed-template.d.ts +9959 -1267
- package/lib/types/generator.d.ts +1 -2
- package/package.json +7 -7
package/lib/types/context.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Page } from "@webstudio-is/sdk";
|
|
3
2
|
import type { ImageLoader } from "@webstudio-is/image";
|
|
4
3
|
export type Params = {
|
|
5
4
|
renderer?: "canvas" | "preview";
|
|
@@ -29,12 +28,6 @@ export type Params = {
|
|
|
29
28
|
};
|
|
30
29
|
export declare const ReactSdkContext: import("react").Context<Params & {
|
|
31
30
|
imageLoader: ImageLoader;
|
|
32
|
-
/**
|
|
33
|
-
* List of pages paths for link component
|
|
34
|
-
* to navigate without reloading on published sites
|
|
35
|
-
* always empty for builder which handle anchor clicks globally
|
|
36
|
-
*/
|
|
37
|
-
pagesPaths: Set<Page["path"]>;
|
|
38
31
|
resources: Record<string, any>;
|
|
39
32
|
}>;
|
|
40
33
|
export declare const useResource: (name: string) => any;
|