@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 CHANGED
@@ -159,8 +159,7 @@ export declare namespace MessageContent {
159
159
  title: I18nTextElement;
160
160
  subtitle?: I18nTextElement;
161
161
  template?: Header.Template;
162
- icon?: CustomIconElement;
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
- ud_icon: attrs.icon && {
1141
+ icon: attrs.icon && {
1142
1142
  tag: "standard_icon",
1143
1143
  token: attrs.icon
1144
1144
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satorijs/adapter-lark",
3
3
  "description": "Lark (飞书) Adapter for Satorijs",
4
- "version": "3.11.1",
4
+ "version": "3.11.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "types": "lib/index.d.ts",
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?: CustomIconElement
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
- ud_icon: attrs.icon && {
405
+ icon: attrs.icon && {
406
406
  tag: 'standard_icon',
407
407
  token: attrs.icon,
408
408
  },