@proulr/sdui-contract 0.1.5 → 0.1.8

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.5",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -22,7 +22,8 @@
22
22
  "prepublishOnly": "npm run typecheck",
23
23
  "lint": "eslint .",
24
24
  "lint:fix": "eslint . --fix",
25
- "version:sync": "node ../scripts/proulr-bump-and-sync-deps.mjs"
25
+ "version:sync": "node ../scripts/proulr-bump-and-sync-deps.mjs",
26
+ "test:coverage": "vitest run --coverage"
26
27
  },
27
28
  "publishConfig": {
28
29
  "access": "public"
@@ -30,6 +31,7 @@
30
31
  "devDependencies": {
31
32
  "@eslint/js": "^9.39.4",
32
33
  "@types/node": "^22.20.0",
34
+ "@vitest/coverage-v8": "^3.2.7",
33
35
  "eslint": "^9.0.0",
34
36
  "globals": "^16.0.0",
35
37
  "husky": "^9.1.7",
@@ -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>;
@@ -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,