@rippling/pebble-sdui-mobile 0.15.0 → 0.17.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 +3 -0
- package/dist/catalogs/custom-apps/actions.d.ts +2 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +3 -1
- package/dist/catalogs/custom-apps/index.cjs +9 -2
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +3 -3
- package/dist/catalogs/custom-apps/index.js +5214 -189
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/core/component-markdown.cjs +19 -0
- package/dist/core/component-markdown.cjs.map +1 -0
- package/dist/core/component-markdown.d.ts +8 -0
- package/dist/core/component-markdown.js +58 -0
- package/dist/core/component-markdown.js.map +1 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +26 -0
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/package.json +1 -6
- package/dist/2020-BHvuyx7H.cjs +0 -9
- package/dist/2020-BHvuyx7H.cjs.map +0 -1
- package/dist/2020-CtiehJXS.js +0 -4988
- package/dist/2020-CtiehJXS.js.map +0 -1
- package/dist/catalogs/core/action-params.d.ts +0 -24
- package/dist/catalogs/core/actions.d.ts +0 -8
- package/dist/catalogs/core/catalog.d.ts +0 -33
- package/dist/catalogs/core/component-events.d.ts +0 -87
- package/dist/catalogs/core/component-props.d.ts +0 -1866
- package/dist/catalogs/core/components.d.ts +0 -88
- package/dist/catalogs/core/function-params.d.ts +0 -36
- package/dist/catalogs/core/functions.d.ts +0 -37
- package/dist/catalogs/core/index.cjs +0 -3
- package/dist/catalogs/core/index.cjs.map +0 -1
- package/dist/catalogs/core/index.d.ts +0 -15
- package/dist/catalogs/core/index.js +0 -11070
- package/dist/catalogs/core/index.js.map +0 -1
- package/dist/catalogs/core/render.d.ts +0 -20
- package/dist/docs/typescript/mobile/catalogs/core/actions.md +0 -151
- package/dist/docs/typescript/mobile/catalogs/core/components.md +0 -2314
- package/dist/docs/typescript/mobile/catalogs/core/computed-functions.md +0 -162
- package/dist/docs/typescript/mobile/catalogs/core/definitions.md +0 -3894
- package/dist/docs/typescript/mobile/catalogs/core/readme.md +0 -16
- package/dist/docs/typescript/mobile/catalogs/core/types.md +0 -1585
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElementNode } from '../../core/elements';
|
|
2
|
-
import { CoreSpec } from '../../core/spec';
|
|
3
|
-
export interface CatalogSpec extends CoreSpec {
|
|
4
|
-
platform: 'mobile';
|
|
5
|
-
catalog: string;
|
|
6
|
-
catalogVersion: string;
|
|
7
|
-
}
|
|
8
|
-
type CatalogElementNode = ElementNode<'mobile', 'core'>;
|
|
9
|
-
/**
|
|
10
|
-
* Render an element tree into a flat json-render spec tagged with
|
|
11
|
-
* the core catalog name and version.
|
|
12
|
-
*
|
|
13
|
-
* This is the catalog-level render — consumers import this instead
|
|
14
|
-
* of using createSpec().render() directly.
|
|
15
|
-
*/
|
|
16
|
-
export declare function render<TState extends object = Record<string, unknown>>(opts: {
|
|
17
|
-
root: CatalogElementNode;
|
|
18
|
-
state?: TState;
|
|
19
|
-
}): CatalogSpec;
|
|
20
|
-
export {};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
<!-- Auto-generated from catalogs/core.catalog.json; do not edit directly. -->
|
|
2
|
-
# core Actions
|
|
3
|
-
|
|
4
|
-
Import action creators from `@rippling/pebble-sdui-mobile/catalogs/core`. Read [definitions.md](./definitions.md) for enum values linked from param tables.
|
|
5
|
-
|
|
6
|
-
## goBack
|
|
7
|
-
|
|
8
|
-
Mobile-specific action that goes back to the previous screen in the navigation stack.
|
|
9
|
-
|
|
10
|
-
No params. Calls NavigationService.navigateBack(). No-ops if there is no screen to go back to.
|
|
11
|
-
|
|
12
|
-
Catalog key: `goBack`
|
|
13
|
-
Creator: `goBack`
|
|
14
|
-
Params type: `GoBackParams`
|
|
15
|
-
|
|
16
|
-
### Params
|
|
17
|
-
|
|
18
|
-
_No fields._
|
|
19
|
-
|
|
20
|
-
No additional properties.
|
|
21
|
-
|
|
22
|
-
### Usage Shape
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
on: {
|
|
26
|
-
press: goBack({ ... })
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## navigate
|
|
31
|
-
|
|
32
|
-
Navigate to a React Navigation screen by name using the mobile route registered in the navigator.
|
|
33
|
-
|
|
34
|
-
`screen` (required): the React Navigation screen name to navigate to, usually in "{namespace}/{ScreenName}" format.
|
|
35
|
-
`params` (optional): key-value params forwarded to the target screen (same as React Navigation `navigate` second argument).
|
|
36
|
-
Uses the global NavigationService, so it works from any SDUI component regardless of navigation context.
|
|
37
|
-
|
|
38
|
-
Catalog key: `navigate`
|
|
39
|
-
Creator: `navigate`
|
|
40
|
-
Params type: `NavigateParams`
|
|
41
|
-
|
|
42
|
-
### Params
|
|
43
|
-
|
|
44
|
-
| Name | Required | Type | Description |
|
|
45
|
-
|---|---:|---|---|
|
|
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. |
|
|
48
|
-
|
|
49
|
-
No additional properties.
|
|
50
|
-
|
|
51
|
-
### Usage Shape
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
on: {
|
|
55
|
-
press: navigate({ ... })
|
|
56
|
-
}
|
|
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
|
-
## setState
|
|
89
|
-
|
|
90
|
-
Update SDUI state at a JSON Pointer.
|
|
91
|
-
|
|
92
|
-
This exposes the JSON Render built-in setState action in the generated catalog; no custom runtime handler is installed.
|
|
93
|
-
The value may use $state or $computed expressions. This is useful for deriving visibility flags after a form field changes.
|
|
94
|
-
|
|
95
|
-
Catalog key: `setState`
|
|
96
|
-
Creator: `setState`
|
|
97
|
-
Params type: `SetStateParams`
|
|
98
|
-
|
|
99
|
-
### Params
|
|
100
|
-
|
|
101
|
-
| Name | Required | Type | Description |
|
|
102
|
-
|---|---:|---|---|
|
|
103
|
-
| `statePath` | yes | string | |
|
|
104
|
-
| `value` | yes | unknown | |
|
|
105
|
-
|
|
106
|
-
No additional properties.
|
|
107
|
-
|
|
108
|
-
### Usage Shape
|
|
109
|
-
|
|
110
|
-
```ts
|
|
111
|
-
on: {
|
|
112
|
-
press: setState({ ... })
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
## triggerApi
|
|
117
|
-
|
|
118
|
-
Call a Rippling internal API endpoint and optionally store its response in SDUI state.
|
|
119
|
-
|
|
120
|
-
`url` (required): relative Rippling path beginning with a single "/". Absolute and protocol-relative URLs are rejected.
|
|
121
|
-
`method` (optional): "GET" or "POST"; defaults to "POST".
|
|
122
|
-
`payload` (optional): query parameters for GET or the JSON body for POST.
|
|
123
|
-
`responsePath` (optional): state path where the response body is stored.
|
|
124
|
-
`errorPath` (optional): on failure, stores `{ status, message }`; a later success clears it to `null`.
|
|
125
|
-
`onSuccess` / `onError` (optional): action lifecycle configuration matching the web SDUI helper.
|
|
126
|
-
|
|
127
|
-
Catalog key: `triggerApi`
|
|
128
|
-
Creator: `triggerApi`
|
|
129
|
-
Params type: `TriggerApiParams`
|
|
130
|
-
|
|
131
|
-
### Params
|
|
132
|
-
|
|
133
|
-
| Name | Required | Type | Description |
|
|
134
|
-
|---|---:|---|---|
|
|
135
|
-
| `errorPath` | no | string | State path where a structured { status, message } error is stored. |
|
|
136
|
-
| `method` | no | [triggerApiMethod](./definitions.md#triggerapimethod) | HTTP method. Defaults to POST. |
|
|
137
|
-
| `onError` | no | unknown | Action lifecycle configuration run after a failed call. |
|
|
138
|
-
| `onSuccess` | no | unknown | Action lifecycle configuration run after a successful call. |
|
|
139
|
-
| `payload` | no | [Payload](./types.md#payload) | POST body or GET query parameters. Defaults to an empty object for POST. |
|
|
140
|
-
| `responsePath` | no | string | State path where the successful response body is stored. |
|
|
141
|
-
| `url` | yes | string | Relative Rippling API path. Absolute and protocol-relative URLs are not allowed. |
|
|
142
|
-
|
|
143
|
-
No additional properties.
|
|
144
|
-
|
|
145
|
-
### Usage Shape
|
|
146
|
-
|
|
147
|
-
```ts
|
|
148
|
-
on: {
|
|
149
|
-
press: triggerApi({ ... })
|
|
150
|
-
}
|
|
151
|
-
```
|