@mastergo/plugin-typings 1.18.0 → 1.19.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [1.19.0](https://github.com/mastergo-design/plugin-typings/compare/v1.18.0...v1.19.0) (2023-04-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * 添加currentUser接口 ([ebc74c3](https://github.com/mastergo-design/plugin-typings/commit/ebc74c3f98f97cd0fb58867ceb05fb27767bc596))
7
+
8
+
9
+
1
10
  # [1.18.0](https://github.com/mastergo-design/plugin-typings/compare/v1.17.1...v1.18.0) (2023-04-06)
2
11
 
3
12
 
package/dist/index.d.ts CHANGED
@@ -45,6 +45,8 @@ declare global {
45
45
 
46
46
  readonly clientStorage: ClientStorageAPI
47
47
 
48
+ readonly currentUser: User | null
49
+
48
50
  readonly viewport: ViewportAPI
49
51
 
50
52
  closePlugin(): void
@@ -129,6 +131,12 @@ declare global {
129
131
  RGBAToHex(rgba: RGBA): string
130
132
  }
131
133
 
134
+ interface User {
135
+ id: string | null
136
+ name: string | 'Anonymous'
137
+ photoUrl: string | null
138
+ }
139
+
132
140
  interface Rect extends Readonly<Bound> {}
133
141
  interface NotificationHandler {
134
142
  cancel: () => void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",