@plasmicapp/loader-react 1.0.84 → 1.0.85
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/loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentMeta as InternalCodeComponentMeta, GlobalContextMeta } from '@plasmicapp/host';
|
|
1
|
+
import { ComponentMeta as InternalCodeComponentMeta, GlobalContextMeta as InternalGlobalContextMeta } from '@plasmicapp/host';
|
|
2
2
|
import { ComponentMeta, LoaderBundleCache, LoaderBundleOutput, PageMeta } from '@plasmicapp/loader-core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ComponentLookup } from './component-lookup';
|
|
@@ -41,6 +41,15 @@ export declare type CodeComponentMeta<P> = Omit<InternalCodeComponentMeta<P>, 'i
|
|
|
41
41
|
*/
|
|
42
42
|
importPath?: string;
|
|
43
43
|
};
|
|
44
|
+
export declare type GlobalContextMeta<P> = Omit<InternalGlobalContextMeta<P>, 'importPath'> & {
|
|
45
|
+
/**
|
|
46
|
+
* The path to be used when importing the component in the generated code.
|
|
47
|
+
* It can be the name of the package that contains the component, or the path
|
|
48
|
+
* to the file in the project (relative to the root directory).
|
|
49
|
+
* Optional: not used by Plasmic headless API, only by codegen.
|
|
50
|
+
*/
|
|
51
|
+
importPath?: string;
|
|
52
|
+
};
|
|
44
53
|
export declare class InternalPlasmicComponentLoader {
|
|
45
54
|
private opts;
|
|
46
55
|
private fetcher;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/loader-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.85",
|
|
4
4
|
"module": "dist/loader-react.esm.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"analyze": "size-limit --why"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@plasmicapp/host": "1.0.
|
|
25
|
-
"@plasmicapp/loader-core": "1.0.
|
|
26
|
-
"@plasmicapp/query": "0.1.
|
|
24
|
+
"@plasmicapp/host": "1.0.29",
|
|
25
|
+
"@plasmicapp/loader-core": "1.0.66",
|
|
26
|
+
"@plasmicapp/query": "0.1.36",
|
|
27
27
|
"pascalcase": "^1.0.0",
|
|
28
28
|
"react-is": "^17.0.2",
|
|
29
29
|
"react-ssr-prepass": "^1.4.0"
|