@satorijs/adapter-lark 3.11.1 → 3.11.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/lib/content.d.ts +1 -2
- package/lib/index.cjs +1 -1
- package/package.json +1 -1
- package/src/content.ts +1 -3
- package/src/message.ts +1 -1
package/lib/content.d.ts
CHANGED
|
@@ -159,8 +159,7 @@ export declare namespace MessageContent {
|
|
|
159
159
|
title: I18nTextElement;
|
|
160
160
|
subtitle?: I18nTextElement;
|
|
161
161
|
template?: Header.Template;
|
|
162
|
-
icon?:
|
|
163
|
-
ud_icon?: StandardIconElement;
|
|
162
|
+
icon?: IconElement;
|
|
164
163
|
text_tag_list?: TextTagElement[];
|
|
165
164
|
i18n_text_tag_list?: Record<string, TextTagElement[]>;
|
|
166
165
|
padding?: string;
|
package/lib/index.cjs
CHANGED
|
@@ -1138,7 +1138,7 @@ var LarkMessageEncoder = class extends import_core3.MessageEncoder {
|
|
|
1138
1138
|
schema: "2.0",
|
|
1139
1139
|
header: attrs.title && {
|
|
1140
1140
|
template: attrs.color,
|
|
1141
|
-
|
|
1141
|
+
icon: attrs.icon && {
|
|
1142
1142
|
tag: "standard_icon",
|
|
1143
1143
|
token: attrs.icon
|
|
1144
1144
|
},
|
package/package.json
CHANGED
package/src/content.ts
CHANGED
|
@@ -202,8 +202,7 @@ export namespace MessageContent {
|
|
|
202
202
|
title: I18nTextElement
|
|
203
203
|
subtitle?: I18nTextElement
|
|
204
204
|
template?: Header.Template
|
|
205
|
-
icon?:
|
|
206
|
-
ud_icon?: StandardIconElement
|
|
205
|
+
icon?: IconElement
|
|
207
206
|
text_tag_list?: TextTagElement[]
|
|
208
207
|
i18n_text_tag_list?: Record<string, TextTagElement[]>
|
|
209
208
|
padding?: string
|
|
@@ -410,7 +409,6 @@ export namespace MessageContent {
|
|
|
410
409
|
lines?: number
|
|
411
410
|
drop_invalid_user_id?: string
|
|
412
411
|
icon?: IconElement
|
|
413
|
-
// ud_icon?: StandardIconElement
|
|
414
412
|
}
|
|
415
413
|
|
|
416
414
|
/** @see https://open.feishu.cn/document/feishu-cards/card-json-v2-components/content-components/chart */
|
package/src/message.ts
CHANGED
|
@@ -402,7 +402,7 @@ export class LarkMessageEncoder<C extends Context = Context> extends MessageEnco
|
|
|
402
402
|
schema: '2.0',
|
|
403
403
|
header: attrs.title && {
|
|
404
404
|
template: attrs.color,
|
|
405
|
-
|
|
405
|
+
icon: attrs.icon && {
|
|
406
406
|
tag: 'standard_icon',
|
|
407
407
|
token: attrs.icon,
|
|
408
408
|
},
|