@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
@@ -0,0 +1,20 @@
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 {};
@@ -9,6 +9,10 @@ export interface PushParams {
9
9
  params?: PushParamsParam;
10
10
  screen: string;
11
11
  }
12
+ export interface SetStateParams {
13
+ statePath: string;
14
+ value: unknown;
15
+ }
12
16
  export interface TriggerApiParams {
13
17
  errorPath?: string;
14
18
  method?: 'GET' | 'POST';
@@ -1,7 +1,8 @@
1
1
  import { ActionBinding, ActionOptions } from '../../core/action-utils';
2
2
  import { WrapWithActionParamValue } from '../../core/expressions';
3
- import { GoBackParams, NavigateParams, PushParams, TriggerApiParams } from './action-params';
3
+ import { GoBackParams, NavigateParams, PushParams, SetStateParams, TriggerApiParams } from './action-params';
4
4
  export declare const goBack: (params: WrapWithActionParamValue<GoBackParams>, options?: ActionOptions) => ActionBinding;
5
5
  export declare const navigate: (params: WrapWithActionParamValue<NavigateParams>, options?: ActionOptions) => ActionBinding;
6
6
  export declare const push: (params: WrapWithActionParamValue<PushParams>, options?: ActionOptions) => ActionBinding;
7
+ export declare const setState: (params: WrapWithActionParamValue<SetStateParams>, options?: ActionOptions) => ActionBinding;
7
8
  export declare const triggerApi: (params: WrapWithActionParamValue<TriggerApiParams>, options?: ActionOptions) => ActionBinding;
@@ -7,7 +7,7 @@
7
7
  * action definitions, directive definitions, and spec validation.
8
8
  */
9
9
  export declare const CATALOG_NAME = "custom-apps";
10
- export declare const CATALOG_VERSION = "1.6.0";
10
+ export declare const CATALOG_VERSION = "1.7.0";
11
11
  /** Return component descriptions keyed by component name. */
12
12
  export declare function getComponents(): Record<string, string>;
13
13
  /** Return action descriptions keyed by action name. */