web-extend-plugin-vue2 0.3.4 → 0.3.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/index.d.ts CHANGED
@@ -61,6 +61,13 @@ export type HostModuleRegistry =
61
61
  | Record<string, unknown | HostModuleEntry>
62
62
  | Array<(HostModuleEntry & { name: string })>
63
63
 
64
+ export type RegisterVueGlobalComponentsOptions = {
65
+ source?: Record<string, unknown>
66
+ include?: (name: string, component: unknown) => boolean
67
+ mapName?: (name: string, component: unknown) => string | null | undefined
68
+ meta?: HostComponentMeta | ((name: string, component: unknown) => HostComponentMeta | undefined)
69
+ }
70
+
64
71
  export type HostUiCapability = {
65
72
  framework?: string
66
73
  componentLibrary?: string
@@ -242,6 +249,10 @@ export function disposeWebPlugin(pluginId: string): void
242
249
  export const registries: unknown
243
250
  export function registerHostModules(input: HostModuleRegistry): Readonly<Record<string, HostModuleMeta>>
244
251
  export function registerHostComponents(input: HostComponentRegistry): Readonly<Record<string, HostComponentMeta>>
252
+ export function registerVueGlobalComponents(
253
+ VueRuntime: unknown,
254
+ options?: RegisterVueGlobalComponentsOptions
255
+ ): Readonly<Record<string, HostComponentMeta>>
245
256
  export function getHostModule(name: string): unknown
246
257
  export function getHostModuleMeta(name: string): HostModuleMeta | undefined
247
258
  export function getAllHostModuleMeta(): Readonly<Record<string, HostModuleMeta>>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-extend-plugin-vue2",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -43,14 +43,18 @@
43
43
  "prepublishOnly": "npm run build"
44
44
  },
45
45
  "license": "Apache-2.0",
46
- "repository": {
47
- "type": "git",
48
- "url": "",
49
- "directory": "web-extend-plugin-vue2"
50
- },
51
- "keywords": [
52
- "vue2",
53
- "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",
54
58
  "extension"
55
59
  ]
56
60
  }