@plasmicapp/loader-react 1.0.103 → 1.0.104

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/dist/render.d.ts CHANGED
@@ -5,14 +5,23 @@ export declare function renderToElement(loader: PlasmicComponentLoader, target:
5
5
  prefetchedData?: ComponentRenderData;
6
6
  componentProps?: any;
7
7
  globalVariants?: GlobalVariantSpec[];
8
+ prefetchedQueryData?: Record<string, any>;
8
9
  }): Promise<void>;
9
10
  export declare function renderToString(loader: PlasmicComponentLoader, lookup: ComponentLookupSpec, opts?: {
10
11
  prefetchedData?: ComponentRenderData;
11
12
  componentProps?: any;
12
13
  globalVariants?: GlobalVariantSpec[];
14
+ prefetchedQueryData?: Record<string, any>;
13
15
  }): string;
16
+ export declare function extractPlasmicQueryDataFromElement(loader: PlasmicComponentLoader, lookup: ComponentLookupSpec, opts?: {
17
+ prefetchedData?: ComponentRenderData;
18
+ componentProps?: any;
19
+ globalVariants?: GlobalVariantSpec[];
20
+ prefetchedQueryData?: Record<string, any>;
21
+ }): Promise<Record<string, any>>;
14
22
  export declare function hydrateFromElement(loader: PlasmicComponentLoader, target: HTMLElement, lookup: ComponentLookupSpec, opts?: {
15
23
  prefetchedData?: ComponentRenderData;
16
24
  componentProps?: any;
17
25
  globalVariants?: GlobalVariantSpec[];
26
+ prefetchedQueryData?: Record<string, any>;
18
27
  }): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/loader-react",
3
- "version": "1.0.103",
3
+ "version": "1.0.104",
4
4
  "module": "dist/loader-react.esm.js",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -73,5 +73,5 @@
73
73
  "typescript": "^4.3.2"
74
74
  },
75
75
  "license": "MIT",
76
- "gitHead": "db8215c610667a2765f229a4cc531ed0e8b548ad"
76
+ "gitHead": "a15aecc262def2817559dfdca3b008f2a5ec4d98"
77
77
  }