@merkur/plugin-component 0.46.0-rc.1 → 0.46.0-rc.5
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/package.json +3 -3
- package/types.d.ts +17 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkur/plugin-component",
|
|
3
|
-
"version": "0.46.0-rc.
|
|
3
|
+
"version": "0.46.0-rc.5",
|
|
4
4
|
"description": "Merkur component plugin.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"module": "lib/index",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://merkur.js.org/",
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@merkur/core": "0.46.0-rc.
|
|
64
|
+
"@merkur/core": "0.46.0-rc.5"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@merkur/core": "*"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "9fadd39e2996bcef5210299e32115338e700b589"
|
|
70
70
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type Widget,
|
|
3
|
+
type WidgetFunction,
|
|
4
|
+
type WidgetPartial,
|
|
5
|
+
type WidgetPlugin,
|
|
6
|
+
} from '@merkur/core';
|
|
2
7
|
|
|
3
8
|
export interface ViewType {
|
|
4
9
|
(widget: WidgetPartial): any;
|
|
@@ -69,7 +74,6 @@ export declare function createViewFactory(
|
|
|
69
74
|
|
|
70
75
|
export declare function componentPlugin(): WidgetPlugin;
|
|
71
76
|
|
|
72
|
-
|
|
73
77
|
declare module '@merkur/core' {
|
|
74
78
|
interface DefineWidgetArgs {
|
|
75
79
|
viewFactory: ViewFactory;
|
|
@@ -89,6 +93,16 @@ declare module '@merkur/core' {
|
|
|
89
93
|
unmount?: (widget: WidgetPartial) => Promise<void>;
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
interface RequiredWidgetKeys {
|
|
97
|
+
bootstrap: unknown;
|
|
98
|
+
container: unknown;
|
|
99
|
+
info: unknown;
|
|
100
|
+
mount: unknown;
|
|
101
|
+
shouldHydrate: unknown;
|
|
102
|
+
update: unknown;
|
|
103
|
+
unmount: unknown;
|
|
104
|
+
}
|
|
105
|
+
|
|
92
106
|
interface WidgetPartial {
|
|
93
107
|
slot: Record<
|
|
94
108
|
string,
|
|
@@ -114,4 +128,4 @@ declare module '@merkur/core' {
|
|
|
114
128
|
resolvedViews: Map<ViewFactory, MapViewArgs[]>;
|
|
115
129
|
};
|
|
116
130
|
}
|
|
117
|
-
}
|
|
131
|
+
}
|