web-extend-plugin-vue2 0.3.5 → 0.3.6

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/index.d.ts CHANGED
@@ -87,6 +87,11 @@ export type HostContext = Readonly<
87
87
  }
88
88
  >
89
89
 
90
+ export type HostBridgeOptions = {
91
+ modules?: Record<string, unknown>
92
+ components?: Record<string, unknown | { component: unknown }>
93
+ }
94
+
90
95
  export type OnBeforePluginActivateFn = (ctx: {
91
96
  pluginId: string
92
97
  router: unknown
@@ -274,6 +279,11 @@ export function installWebExtendPluginVue2(
274
279
  options?: WebExtendPluginRuntimeOptions
275
280
  ): Promise<void>
276
281
 
282
+ export function installHostBridge(
283
+ Vue: unknown,
284
+ options?: HostBridgeOptions
285
+ ): Readonly<Record<string, unknown>>
286
+
277
287
  export const ExtensionPoint: unknown
278
288
 
279
289
  export function createVueCliAxiosInstallOptions(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-extend-plugin-vue2",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -43,18 +43,18 @@
43
43
  "prepublishOnly": "npm run build"
44
44
  },
45
45
  "license": "Apache-2.0",
46
- "repository": {
47
- "type": "git",
48
- "url": "https://github.com/xtemplus/extend-plugin-framework.git",
49
- "directory": "web-extend-plugin-vue2"
50
- },
51
- "bugs": {
52
- "url": "https://github.com/xtemplus/extend-plugin-framework/issues"
53
- },
54
- "homepage": "https://github.com/xtemplus/extend-plugin-framework/tree/master/web-extend-plugin-vue2#readme",
55
- "keywords": [
56
- "vue2",
57
- "plugin",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/xtemplus/extend-plugin-framework.git",
49
+ "directory": "web-extend-plugin-vue2"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/xtemplus/extend-plugin-framework/issues"
53
+ },
54
+ "homepage": "https://github.com/xtemplus/extend-plugin-framework/tree/master/web-extend-plugin-vue2#readme",
55
+ "keywords": [
56
+ "vue2",
57
+ "plugin",
58
58
  "extension"
59
59
  ]
60
60
  }