@rippling/pebble-sdui-mobile 0.8.0 → 0.11.0
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/dist/catalogs/custom-apps/action-params.d.ts +7 -3
- package/dist/catalogs/custom-apps/actions.d.ts +2 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-events.d.ts +2 -0
- package/dist/catalogs/custom-apps/component-props.d.ts +244 -96
- package/dist/catalogs/custom-apps/components.d.ts +4 -2
- package/dist/catalogs/custom-apps/function-params.d.ts +3 -3
- package/dist/catalogs/custom-apps/index.cjs +4 -4
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +5 -5
- package/dist/catalogs/custom-apps/index.js +655 -542
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +38 -11
- package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +398 -342
- package/dist/docs/typescript/mobile/catalogs/custom-apps/computed-functions.md +17 -17
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +511 -122
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +2 -2
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +262 -62
- 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
|
-
|
|
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
|
|
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 | [
|
|
49
|
-
| `screen` | yes |
|
|
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,32 @@ 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
|
+
```
|