@mastergo/plugin-typings 2.8.0-beta.4 → 2.8.1-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 +22 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -70,7 +70,7 @@ declare global {
70
70
  /**
71
71
  * 自定义样式
72
72
  */
73
- type TokenItem = TokenCommonItem | TokenTextItem;
73
+ type TokenItem = TokenCommonItem | TokenTextItem | TokenEffectItem;
74
74
  type TokenCommonItem = {
75
75
  id: string;
76
76
  type: 'color' | 'padding' | 'border-radius' | 'border-width' | 'gap';
@@ -85,7 +85,7 @@ declare global {
85
85
  */
86
86
  isMultiple?: boolean;
87
87
  };
88
- type TokenTextSubItemType = 'fontfamily' | 'fontstyle' | 'fontsize' | 'lineheight' | 'decoration' | 'letterspacing';
88
+ type TokenTextSubItemType = 'font' | 'fontfamily' | 'fontstyle' | 'fontsize' | 'lineheight' | 'decoration' | 'letterspacing';
89
89
 
90
90
  type TokenTextItem = {
91
91
  id: string;
@@ -93,6 +93,7 @@ declare global {
93
93
  name: TokenName;
94
94
  originName: string;
95
95
  originAlias: string;
96
+ variable: TokenVariable;
96
97
  textItems: Record<TokenTextSubItemType, TokenTextSubItem>;
97
98
  };
98
99
 
@@ -102,6 +103,25 @@ declare global {
102
103
  value: TokenValue;
103
104
  };
104
105
 
106
+ type TokenEffectItem = {
107
+ id: string;
108
+ type: 'effect';
109
+ name: TokenName;
110
+ originName: string;
111
+ originAlias: string;
112
+ value: TokenValue;
113
+ variable: TokenVariable;
114
+ effectItems: Record<TokenEffectSubItemType, TokenEffectSubItem>;
115
+ };
116
+
117
+ type TokenEffectSubItemType = 'shadow' | 'filter' | 'backdropfilter';
118
+
119
+ type TokenEffectSubItem = {
120
+ type: TokenEffectSubItemType;
121
+ name: TokenName;
122
+ value: TokenValue;
123
+ };
124
+
105
125
  /**
106
126
  * TODO: 安卓自定义样式
107
127
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "2.8.0-beta.4",
3
+ "version": "2.8.1-beta.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",