@mastergo/plugin-typings 2.18.2-beta.0 → 2.18.5-beta.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +19 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1522,6 +1522,7 @@ declare global {
1522
1522
  importComponentByKeyAsync(ukey: string): Promise<ComponentNode>
1523
1523
  importComponentSetByKeyAsync(ukey: string): Promise<ComponentSetNode>
1524
1524
  importStyleByKeyAsync(ukey: string): Promise<Style>
1525
+ getComponentListVal(): ComponentItemVal[]
1525
1526
  /**
1526
1527
  * @deprecated
1527
1528
  *
@@ -2843,6 +2844,24 @@ declare global {
2843
2844
  type ComponentPropertyOptions = {
2844
2845
  preferredValues?: InstanceSwapPreferredValue[]
2845
2846
  }
2847
+ type ComponentItemVal = {
2848
+ id: string
2849
+ name: string
2850
+ componentSignature: string
2851
+ cover: string
2852
+ description: string
2853
+ documentationLinks: Array<{ url: string }>
2854
+ height: number
2855
+ width: number
2856
+ isExternal: boolean
2857
+ isHidden: boolean
2858
+ pageId: string
2859
+ pageName: string
2860
+ ukey: string
2861
+ version: number
2862
+ componentNameAlias: string
2863
+ parentId?: string
2864
+ }
2846
2865
  type ComponentProperties = {
2847
2866
  name: string
2848
2867
  id?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "2.18.2-beta.0",
3
+ "version": "2.18.5-beta.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "type": "module",
6
6
  "main": "",