@plasmicapp/loader-react 1.0.162 → 1.0.165
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/PlasmicRootProvider.d.ts +10 -0
- package/dist/loader-react.cjs.development.js +61 -3
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +62 -4
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +3 -1
- package/dist/utils.d.ts +17 -1
- package/package.json +4 -4
package/dist/loader.d.ts
CHANGED
|
@@ -24,7 +24,9 @@ interface ProjectOption {
|
|
|
24
24
|
version?: string;
|
|
25
25
|
}
|
|
26
26
|
export interface ComponentRenderData {
|
|
27
|
-
entryCompMetas: ComponentMeta
|
|
27
|
+
entryCompMetas: (ComponentMeta & {
|
|
28
|
+
params?: Record<string, string>;
|
|
29
|
+
})[];
|
|
28
30
|
bundle: LoaderBundleOutput;
|
|
29
31
|
remoteFontUrls: string[];
|
|
30
32
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -8,6 +8,22 @@ export declare function useForceUpdate(): () => void;
|
|
|
8
8
|
export declare function useStableLookupSpec(spec: ComponentLookupSpec): ComponentLookupSpec;
|
|
9
9
|
export declare function useStableLookupSpecs(...specs: ComponentLookupSpec[]): ComponentLookupSpec[];
|
|
10
10
|
export declare function useIsMounted(): () => boolean;
|
|
11
|
-
export declare function getCompMetas(metas: ComponentMeta[], lookup: ComponentLookupSpec): ComponentMeta
|
|
11
|
+
export declare function getCompMetas(metas: ComponentMeta[], lookup: ComponentLookupSpec): (ComponentMeta | {
|
|
12
|
+
params: Record<string, string>;
|
|
13
|
+
id: string;
|
|
14
|
+
usedComponents: string[];
|
|
15
|
+
projectId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
cssFile: string;
|
|
19
|
+
path: string | undefined;
|
|
20
|
+
isPage: boolean;
|
|
21
|
+
plumeType?: string | undefined;
|
|
22
|
+
entry: string;
|
|
23
|
+
isCode: boolean;
|
|
24
|
+
isGlobalContextProvider: boolean;
|
|
25
|
+
pageMetadata?: import("@plasmicapp/loader-core").PageMetadata | undefined;
|
|
26
|
+
metadata?: Record<string, string> | undefined;
|
|
27
|
+
})[];
|
|
12
28
|
export declare function getLookupSpecName(lookup: ComponentLookupSpec): string;
|
|
13
29
|
export declare function uniq<T>(elements: T[]): T[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/loader-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.165",
|
|
4
4
|
"module": "dist/loader-react.esm.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@plasmicapp/host": "1.0.73",
|
|
26
|
-
"@plasmicapp/loader-core": "1.0.
|
|
27
|
-
"@plasmicapp/loader-splits": "1.0.
|
|
26
|
+
"@plasmicapp/loader-core": "1.0.81",
|
|
27
|
+
"@plasmicapp/loader-splits": "1.0.15",
|
|
28
28
|
"@plasmicapp/query": "0.1.53",
|
|
29
29
|
"pascalcase": "^1.0.0",
|
|
30
30
|
"react-is": "^17.0.2",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"typescript": "^4.3.2"
|
|
75
75
|
},
|
|
76
76
|
"license": "MIT",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "af9874eb51e16f6a35b48e4a5a94e9d0d7566b93"
|
|
78
78
|
}
|