@mastergo/plugin-typings 1.10.0 → 1.10.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.10.2](https://github.com/mastergo-design/plugin-typings/compare/v1.10.0...v1.10.2) (2022-12-13)
2
+
3
+
4
+ ### Features
5
+
6
+ * 添加mg.mixed ([8196894](https://github.com/mastergo-design/plugin-typings/commit/8196894b5ad35214319dc311a52e1c441e36bc35))
7
+ * 废弃teamLibrary, 换成getTeamLibraryAsync([ffecaa](https://github.com/mastergo-design/plugin-typings/commit/ffecaaf8fae47530e75b818a7918716b4170a984))
8
+
9
+
1
10
  # [1.10.0](https://github.com/mastergo-design/plugin-typings/compare/v1.9.0...v1.10.0) (2022-12-01)
2
11
 
3
12
 
package/dist/index.d.ts CHANGED
@@ -41,6 +41,8 @@ declare global {
41
41
 
42
42
  readonly command: string
43
43
 
44
+ readonly mixed: string | symbol
45
+
44
46
  readonly clientStorage: ClientStorageAPI
45
47
 
46
48
  readonly viewport: ViewportAPI
@@ -108,13 +110,17 @@ declare global {
108
110
  createImage(imageData: Uint8Array): Promise<Image>
109
111
  getImageByHref(href: string): Image
110
112
 
111
- /**
112
- * 订阅团队库数据
113
- */
114
- teamLibrary: TeamLibrary,
113
+
114
+ getTeamLibraryAsync(): Promise<TeamLibrary>,
115
115
  importComponentByKeyAsync(ukey: string): Promise<ComponentNode>,
116
116
  importComponentSetByKeyAsync(ukey: string): Promise<ComponentSetNode>,
117
117
  importStyleByKeyAsync(ukey: string): Promise<Style>,
118
+ /**
119
+ * @deprecated
120
+ *
121
+ * This attribute is deprecated, please use getTeamLibraryAsync instead.
122
+ */
123
+ teamLibrary: TeamLibrary,
118
124
 
119
125
  hexToRGBA(hex: string): RGBA
120
126
  RGBAToHex(rgba: RGBA): string
@@ -568,7 +574,7 @@ declare global {
568
574
  interface CornerMixin {
569
575
  // 待确认
570
576
  cornerSmooth: number
571
- cornerRadius: number | symbol
577
+ cornerRadius: number | PluginAPI['mixed']
572
578
  }
573
579
 
574
580
  interface DefaultShapeMixin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",