@rippling/pebble-sdui-mobile 0.13.0 → 0.15.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.
Files changed (35) hide show
  1. package/dist/2020-BHvuyx7H.cjs +9 -0
  2. package/dist/2020-BHvuyx7H.cjs.map +1 -0
  3. package/dist/2020-CtiehJXS.js +4988 -0
  4. package/dist/2020-CtiehJXS.js.map +1 -0
  5. package/dist/catalogs/core/action-params.d.ts +24 -0
  6. package/dist/catalogs/core/actions.d.ts +8 -0
  7. package/dist/catalogs/core/catalog.d.ts +33 -0
  8. package/dist/catalogs/core/component-events.d.ts +87 -0
  9. package/dist/catalogs/core/component-props.d.ts +1866 -0
  10. package/dist/catalogs/core/components.d.ts +88 -0
  11. package/dist/catalogs/core/function-params.d.ts +36 -0
  12. package/dist/catalogs/core/functions.d.ts +37 -0
  13. package/dist/catalogs/core/index.cjs +3 -0
  14. package/dist/catalogs/core/index.cjs.map +1 -0
  15. package/dist/catalogs/core/index.d.ts +15 -0
  16. package/dist/catalogs/core/index.js +11070 -0
  17. package/dist/catalogs/core/index.js.map +1 -0
  18. package/dist/catalogs/core/render.d.ts +20 -0
  19. package/dist/catalogs/custom-apps/action-params.d.ts +4 -0
  20. package/dist/catalogs/custom-apps/actions.d.ts +2 -1
  21. package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
  22. package/dist/catalogs/custom-apps/index.cjs +2 -8
  23. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  24. package/dist/catalogs/custom-apps/index.d.ts +2 -2
  25. package/dist/catalogs/custom-apps/index.js +206 -5171
  26. package/dist/catalogs/custom-apps/index.js.map +1 -1
  27. package/dist/docs/typescript/mobile/catalogs/core/actions.md +151 -0
  28. package/dist/docs/typescript/mobile/catalogs/core/components.md +2314 -0
  29. package/dist/docs/typescript/mobile/catalogs/core/computed-functions.md +162 -0
  30. package/dist/docs/typescript/mobile/catalogs/core/definitions.md +3894 -0
  31. package/dist/docs/typescript/mobile/catalogs/core/readme.md +16 -0
  32. package/dist/docs/typescript/mobile/catalogs/core/types.md +1585 -0
  33. package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +28 -0
  34. package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
  35. package/package.json +6 -1
@@ -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.
@@ -2,7 +2,7 @@
2
2
  # custom-apps Catalog
3
3
 
4
4
  Catalog: `custom-apps`
5
- Version: `1.6.0`
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.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "Type-safe TypeScript mobile SDK for authoring json-render specs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,6 +17,11 @@
17
17
  "import": "./dist/index.js",
18
18
  "require": "./dist/index.cjs"
19
19
  },
20
+ "./catalogs/core": {
21
+ "types": "./dist/catalogs/core/index.d.ts",
22
+ "import": "./dist/catalogs/core/index.js",
23
+ "require": "./dist/catalogs/core/index.cjs"
24
+ },
20
25
  "./catalogs/custom-apps": {
21
26
  "types": "./dist/catalogs/custom-apps/index.d.ts",
22
27
  "import": "./dist/catalogs/custom-apps/index.js",