@plasmicapp/loader-react 1.0.45 → 1.0.49
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-react.cjs.development.js +21 -4
- 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 +22 -5
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +2 -1
- package/package.json +4 -4
package/dist/loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentMeta as InternalCodeComponentMeta } from '@plasmicapp/host';
|
|
1
|
+
import { ComponentMeta as InternalCodeComponentMeta, ContextMeta } 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';
|
|
@@ -55,6 +55,7 @@ export declare class InternalPlasmicComponentLoader {
|
|
|
55
55
|
registerModules(modules: Record<string, any>): void;
|
|
56
56
|
substituteComponent<P>(component: React.ComponentType<P>, name: ComponentLookupSpec): void;
|
|
57
57
|
registerComponent<T extends React.ComponentType<any>>(component: T, meta: CodeComponentMeta<React.ComponentProps<T>>): void;
|
|
58
|
+
registerContext<T extends React.ComponentType<any>>(context: T, meta: ContextMeta<React.ComponentProps<T>>): void;
|
|
58
59
|
registerPrefetchedBundle(bundle: LoaderBundleOutput): void;
|
|
59
60
|
subscribePlasmicRoot(watcher: PlasmicRootWatcher): void;
|
|
60
61
|
unsubscribePlasmicRoot(watcher: PlasmicRootWatcher): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/loader-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
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": "0.0.
|
|
25
|
-
"@plasmicapp/loader-core": "1.0.
|
|
26
|
-
"@plasmicapp/query": "0.1.
|
|
24
|
+
"@plasmicapp/host": "0.0.49",
|
|
25
|
+
"@plasmicapp/loader-core": "1.0.39",
|
|
26
|
+
"@plasmicapp/query": "0.1.7",
|
|
27
27
|
"pascalcase": "^1.0.0",
|
|
28
28
|
"react-is": "^17.0.2",
|
|
29
29
|
"react-ssr-prepass": "^1.4.0"
|