@rippling/pebble-sdui-mobile 0.12.1 → 0.14.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.
@@ -85,6 +85,34 @@ on: {
85
85
  }
86
86
  ```
87
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
+
88
116
  ## triggerApi
89
117
 
90
118
  Call a Rippling internal API endpoint and optionally store its response in SDUI state.
@@ -1095,6 +1095,30 @@ Events: _none_
1095
1095
 
1096
1096
  No additional properties.
1097
1097
 
1098
+ ## PageContent
1099
+
1100
+ The standard wrapper for a page's main body area. Use PageContent for every page-level content region.
1101
+
1102
+ PageContent renders as Page.Content from Pebble Mobile. It fills the available page body, always lays out children vertically, and applies space400 padding on all sides by default. Use align for horizontal child alignment, select padding regions with the padding prop, or apply all safe-area insets with enableSafeArea.
1103
+
1104
+ Catalog key: `PageContent`
1105
+ Builder: `PageContent`
1106
+ Props type: `PageContentProps`
1107
+ Accepts children: yes
1108
+ Events: _none_
1109
+
1110
+ ### Props
1111
+
1112
+ | Name | Required | Type | Description |
1113
+ |---|---:|---|---|
1114
+ | `align` | no | [HStackAlign](./definitions.md#hstackalign) | Alignment of child elements along the horizontal axis |
1115
+ | `enableSafeArea` | no | boolean | Whether to add all safe-area insets to the content padding |
1116
+ | `gap` | no | number | Gap between child elements |
1117
+ | `padding` | no | [PageContentPadding](./definitions.md#pagecontentpadding)[] | Areas padded using the space400 token |
1118
+ | `testID` | no | string | Sets the test ID on the page content container |
1119
+
1120
+ No additional properties.
1121
+
1098
1122
  ## PageFilterHeader
1099
1123
 
1100
1124
  Page header with title, badge, and collapsible filter menu
@@ -2037,13 +2061,13 @@ No additional properties.
2037
2061
 
2038
2062
  Card-like widget with a title, body content, and optional action buttons
2039
2063
 
2040
- Pass children for body content. Use isLoading to show shimmer placeholders.
2064
+ Pass children for body content. Use isLoading to show shimmer placeholders. Wire the `press` event when the entire widget card should be tappable.
2041
2065
 
2042
2066
  Catalog key: `Widget`
2043
2067
  Builder: `Widget`
2044
2068
  Props type: `WidgetProps`
2045
2069
  Accepts children: yes
2046
- Events: `titlePress`, `primaryAction`, `secondaryAction`
2070
+ Events: `press`, `titlePress`, `primaryAction`, `secondaryAction`
2047
2071
 
2048
2072
  ### Props
2049
2073
 
@@ -1896,6 +1896,7 @@ Referenced by:
1896
1896
  | Kind | Entity | Field |
1897
1897
  |---|---|---|
1898
1898
  | component | `HStack` | `align` |
1899
+ | component | `PageContent` | `align` |
1899
1900
  | component | `VStack` | `align` |
1900
1901
  | type | `ButtonStyle` | `alignItems` |
1901
1902
  | type | `FileViewerButtonStyle` | `alignItems` |
@@ -3155,6 +3156,31 @@ Referenced by:
3155
3156
  |---|---|---|
3156
3157
  | component | `ObjectItem` | `appearance` |
3157
3158
 
3159
+ ## PageContentPadding
3160
+
3161
+ TypeScript type:
3162
+
3163
+ ```ts
3164
+ "vertical" | "horizontal" | "top" | "bottom" | "all" | "none"
3165
+ ```
3166
+
3167
+ Allowed values:
3168
+
3169
+ | Value |
3170
+ |---|
3171
+ | `vertical` |
3172
+ | `horizontal` |
3173
+ | `top` |
3174
+ | `bottom` |
3175
+ | `all` |
3176
+ | `none` |
3177
+
3178
+ Referenced by:
3179
+
3180
+ | Kind | Entity | Field |
3181
+ |---|---|---|
3182
+ | component | `PageContent` | `padding` |
3183
+
3158
3184
  ## PageFooterAlign
3159
3185
 
3160
3186
  TypeScript type:
@@ -2,7 +2,7 @@
2
2
  # custom-apps Catalog
3
3
 
4
4
  Catalog: `custom-apps`
5
- Version: `1.5.1`
5
+ Version: `1.7.0`
6
6
  SDK language: `typescript`
7
7
 
8
8
  Use this catalog index after you have chosen this catalog for the spec. Do not mix components, actions, computed functions, or render helpers from another catalog unless that catalog explicitly documents compatibility.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rippling/pebble-sdui-mobile",
3
- "version": "0.12.1",
3
+ "version": "0.14.0",
4
4
  "description": "Type-safe TypeScript mobile SDK for authoring json-render specs",
5
5
  "repository": {
6
6
  "type": "git",