@proulr/sdui-contract 0.1.19 → 0.1.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proulr/sdui-contract",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -390,6 +390,8 @@ export type SduiScreenChromeMetaWire = {
390
390
  surface?: 'discover' | 'vibes' | null;
391
391
  header_slot?: boolean;
392
392
  pull_refresh?: boolean;
393
+ /** Action id que o shell executa uma vez quando o wire chega pronto (ex. navegar ao casar). */
394
+ auto_action_id?: string;
393
395
  };
394
396
 
395
397
  export type SduiScreenMetaWire = {
@@ -454,6 +456,8 @@ export type SduiScreenChromeMeta = {
454
456
  surface?: 'discover' | 'vibes' | null;
455
457
  headerSlot?: boolean;
456
458
  pullRefresh?: boolean;
459
+ /** Action id que o shell executa uma vez quando o wire chega pronto (ex. navegar ao casar). */
460
+ autoActionId?: string;
457
461
  };
458
462
 
459
463
  export type SduiScreenMeta = {
@@ -75,6 +75,7 @@ describe('decodeSduiScreenWire', () => {
75
75
  wide_layout: 'chat_master_detail',
76
76
  owns_header: false,
77
77
  self_managed: false,
78
+ auto_action_id: 'open_random_thread',
78
79
  },
79
80
  },
80
81
  });
@@ -88,6 +89,7 @@ describe('decodeSduiScreenWire', () => {
88
89
  surface: 'discover',
89
90
  headerSlot: true,
90
91
  pullRefresh: true,
92
+ autoActionId: 'open_random_thread',
91
93
  });
92
94
  });
93
95
 
@@ -79,6 +79,7 @@ function mapChromeMetaWire(
79
79
  surface: wire.surface,
80
80
  headerSlot: wire.header_slot,
81
81
  pullRefresh: wire.pull_refresh,
82
+ autoActionId: wire.auto_action_id,
82
83
  };
83
84
  }
84
85