@proulr/sdui-contract 0.1.6 → 0.1.10

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.6",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -9,6 +9,7 @@ export type SduiActionType =
9
9
  | 'navigate'
10
10
  | 'open_sheet'
11
11
  | 'open_url'
12
+ | 'share'
12
13
  | 'api_call'
13
14
  | 'track'
14
15
  | 'toggle_search'
@@ -42,6 +43,8 @@ export type SduiActionWire = {
42
43
  sheet_id?: string;
43
44
  /** Absolute / mailto URL for `open_url`. */
44
45
  url?: string;
46
+ /** Share sheet message for `share` (may include URL). */
47
+ message?: string;
45
48
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
46
49
  path?: string;
47
50
  body?: Record<string, unknown>;
@@ -90,6 +93,7 @@ export type SduiAction = {
90
93
  params?: Record<string, string>;
91
94
  sheetId?: string;
92
95
  url?: string;
96
+ message?: string;
93
97
  method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
94
98
  path?: string;
95
99
  body?: Record<string, unknown>;
@@ -185,6 +189,7 @@ export type StyleWire = {
185
189
  opacity?: number;
186
190
  flex?: number;
187
191
  align_items?: 'flex-start' | 'center' | 'flex-end';
192
+ text_align?: 'left' | 'center' | 'right';
188
193
  typography?: TypeToken;
189
194
  };
190
195
 
@@ -40,6 +40,7 @@ function mapActionWire(wire: SduiActionWire): SduiAction {
40
40
  params: wire.params,
41
41
  sheetId: wire.sheet_id,
42
42
  url: wire.url,
43
+ message: wire.message,
43
44
  method: wire.method,
44
45
  path: wire.path,
45
46
  body: wire.body,