@rippling/pebble-sdui-mobile 0.8.0 → 0.12.1

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.
Files changed (34) hide show
  1. package/dist/catalogs/custom-apps/action-params.d.ts +16 -3
  2. package/dist/catalogs/custom-apps/actions.d.ts +3 -1
  3. package/dist/catalogs/custom-apps/catalog.d.ts +2 -2
  4. package/dist/catalogs/custom-apps/component-events.d.ts +9 -6
  5. package/dist/catalogs/custom-apps/component-props.d.ts +337 -174
  6. package/dist/catalogs/custom-apps/components.d.ts +11 -8
  7. package/dist/catalogs/custom-apps/function-params.d.ts +3 -3
  8. package/dist/catalogs/custom-apps/index.cjs +4 -4
  9. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  10. package/dist/catalogs/custom-apps/index.d.ts +5 -5
  11. package/dist/catalogs/custom-apps/index.js +1764 -1567
  12. package/dist/catalogs/custom-apps/index.js.map +1 -1
  13. package/dist/core/catalog-validation.cjs +2 -0
  14. package/dist/core/catalog-validation.cjs.map +1 -0
  15. package/dist/core/catalog-validation.d.ts +21 -0
  16. package/dist/core/catalog-validation.js +245 -0
  17. package/dist/core/catalog-validation.js.map +1 -0
  18. package/dist/core/directives.cjs +2 -0
  19. package/dist/core/directives.cjs.map +1 -0
  20. package/dist/core/directives.d.ts +72 -0
  21. package/dist/core/directives.js +35 -0
  22. package/dist/core/directives.js.map +1 -0
  23. package/dist/core/expressions.d.ts +5 -15
  24. package/dist/core/index.cjs +1 -1
  25. package/dist/core/index.d.ts +2 -0
  26. package/dist/core/index.js +28 -20
  27. package/dist/core/index.js.map +1 -1
  28. package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +75 -11
  29. package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +537 -452
  30. package/dist/docs/typescript/mobile/catalogs/custom-apps/computed-functions.md +17 -17
  31. package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +631 -134
  32. package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +2 -2
  33. package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +347 -137
  34. package/package.json +1 -1
@@ -5,12 +5,12 @@ Import action creators from `@rippling/pebble-sdui-mobile/catalogs/custom-apps`.
5
5
 
6
6
  ## goBack
7
7
 
8
- Go back to the previous screen in the navigation stack.
8
+ Mobile-specific action that goes back to the previous screen in the navigation stack.
9
9
 
10
10
  No params. Calls NavigationService.navigateBack(). No-ops if there is no screen to go back to.
11
11
 
12
- Catalog key: `goBack`
13
- Creator: `goBack`
12
+ Catalog key: `goBack`
13
+ Creator: `goBack`
14
14
  Params type: `GoBackParams`
15
15
 
16
16
  ### Params
@@ -29,24 +29,22 @@ on: {
29
29
 
30
30
  ## navigate
31
31
 
32
- Navigate to a React Navigation screen by name. Use the screen name as registered in the navigator (format: "{namespace}/{ScreenName}").
32
+ Navigate to a React Navigation screen by name using the mobile route registered in the navigator.
33
33
 
34
- `screen` (required): the React Navigation screen name to navigate to.
35
- Valid screen names are scoped to the "mobile_platform" execution namespace.
34
+ `screen` (required): the React Navigation screen name to navigate to, usually in "{namespace}/{ScreenName}" format.
36
35
  `params` (optional): key-value params forwarded to the target screen (same as React Navigation `navigate` second argument).
37
36
  Uses the global NavigationService, so it works from any SDUI component regardless of navigation context.
38
- Valid screen names are regenerated automatically via `pnpm catalog:update`.
39
37
 
40
- Catalog key: `navigate`
41
- Creator: `navigate`
38
+ Catalog key: `navigate`
39
+ Creator: `navigate`
42
40
  Params type: `NavigateParams`
43
41
 
44
42
  ### Params
45
43
 
46
44
  | Name | Required | Type | Description |
47
45
  |---|---:|---|---|
48
- | `params` | no | [Param](./types.md#param) | Optional params object forwarded to the target screen. |
49
- | `screen` | yes | [navigateScreen](./definitions.md#navigatescreen) | React Navigation screen name to navigate to. Format: "{namespace}/{ScreenName}". |
46
+ | `params` | no | [NavigateParamsParam](./types.md#navigateparamsparam) | Optional params object forwarded to the target screen. |
47
+ | `screen` | yes | string | React Navigation screen name to navigate to. Mobile screens typically use the "{namespace}/{ScreenName}" route name. |
50
48
 
51
49
  No additional properties.
52
50
 
@@ -57,3 +55,69 @@ on: {
57
55
  press: navigate({ ... })
58
56
  }
59
57
  ```
58
+
59
+ ## push
60
+
61
+ Push a React Navigation screen onto the current stack by name using the mobile route registered in the navigator.
62
+
63
+ `screen` (required): the React Navigation screen name to push, usually in "{namespace}/{ScreenName}" format.
64
+ `params` (optional): key-value params forwarded to the target screen (same as React Navigation `push` second argument).
65
+ Uses the global NavigationService, so it works from any SDUI component regardless of navigation context.
66
+
67
+ Catalog key: `push`
68
+ Creator: `push`
69
+ Params type: `PushParams`
70
+
71
+ ### Params
72
+
73
+ | Name | Required | Type | Description |
74
+ |---|---:|---|---|
75
+ | `params` | no | [PushParamsParam](./types.md#pushparamsparam) | Optional params object forwarded to the target screen. |
76
+ | `screen` | yes | string | React Navigation screen name to navigate to. Mobile screens typically use the "{namespace}/{ScreenName}" route name. |
77
+
78
+ No additional properties.
79
+
80
+ ### Usage Shape
81
+
82
+ ```ts
83
+ on: {
84
+ press: push({ ... })
85
+ }
86
+ ```
87
+
88
+ ## triggerApi
89
+
90
+ Call a Rippling internal API endpoint and optionally store its response in SDUI state.
91
+
92
+ `url` (required): relative Rippling path beginning with a single "/". Absolute and protocol-relative URLs are rejected.
93
+ `method` (optional): "GET" or "POST"; defaults to "POST".
94
+ `payload` (optional): query parameters for GET or the JSON body for POST.
95
+ `responsePath` (optional): state path where the response body is stored.
96
+ `errorPath` (optional): on failure, stores `{ status, message }`; a later success clears it to `null`.
97
+ `onSuccess` / `onError` (optional): action lifecycle configuration matching the web SDUI helper.
98
+
99
+ Catalog key: `triggerApi`
100
+ Creator: `triggerApi`
101
+ Params type: `TriggerApiParams`
102
+
103
+ ### Params
104
+
105
+ | Name | Required | Type | Description |
106
+ |---|---:|---|---|
107
+ | `errorPath` | no | string | State path where a structured { status, message } error is stored. |
108
+ | `method` | no | [triggerApiMethod](./definitions.md#triggerapimethod) | HTTP method. Defaults to POST. |
109
+ | `onError` | no | unknown | Action lifecycle configuration run after a failed call. |
110
+ | `onSuccess` | no | unknown | Action lifecycle configuration run after a successful call. |
111
+ | `payload` | no | [Payload](./types.md#payload) | POST body or GET query parameters. Defaults to an empty object for POST. |
112
+ | `responsePath` | no | string | State path where the successful response body is stored. |
113
+ | `url` | yes | string | Relative Rippling API path. Absolute and protocol-relative URLs are not allowed. |
114
+
115
+ No additional properties.
116
+
117
+ ### Usage Shape
118
+
119
+ ```ts
120
+ on: {
121
+ press: triggerApi({ ... })
122
+ }
123
+ ```