@rippling/pebble-sdui-mobile 0.8.0 → 0.12.1

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 (34) hide show
  1. package/dist/catalogs/custom-apps/action-params.d.ts +16 -3
  2. package/dist/catalogs/custom-apps/actions.d.ts +3 -1
  3. package/dist/catalogs/custom-apps/catalog.d.ts +2 -2
  4. package/dist/catalogs/custom-apps/component-events.d.ts +9 -6
  5. package/dist/catalogs/custom-apps/component-props.d.ts +337 -174
  6. package/dist/catalogs/custom-apps/components.d.ts +11 -8
  7. package/dist/catalogs/custom-apps/function-params.d.ts +3 -3
  8. package/dist/catalogs/custom-apps/index.cjs +4 -4
  9. package/dist/catalogs/custom-apps/index.cjs.map +1 -1
  10. package/dist/catalogs/custom-apps/index.d.ts +5 -5
  11. package/dist/catalogs/custom-apps/index.js +1764 -1567
  12. package/dist/catalogs/custom-apps/index.js.map +1 -1
  13. package/dist/core/catalog-validation.cjs +2 -0
  14. package/dist/core/catalog-validation.cjs.map +1 -0
  15. package/dist/core/catalog-validation.d.ts +21 -0
  16. package/dist/core/catalog-validation.js +245 -0
  17. package/dist/core/catalog-validation.js.map +1 -0
  18. package/dist/core/directives.cjs +2 -0
  19. package/dist/core/directives.cjs.map +1 -0
  20. package/dist/core/directives.d.ts +72 -0
  21. package/dist/core/directives.js +35 -0
  22. package/dist/core/directives.js.map +1 -0
  23. package/dist/core/expressions.d.ts +5 -15
  24. package/dist/core/index.cjs +1 -1
  25. package/dist/core/index.d.ts +2 -0
  26. package/dist/core/index.js +28 -20
  27. package/dist/core/index.js.map +1 -1
  28. package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +75 -11
  29. package/dist/docs/typescript/mobile/catalogs/custom-apps/components.md +537 -452
  30. package/dist/docs/typescript/mobile/catalogs/custom-apps/computed-functions.md +17 -17
  31. package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +631 -134
  32. package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +2 -2
  33. package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +347 -137
  34. package/package.json +1 -1
@@ -1,7 +1,20 @@
1
- import { NavigationRoutesMobilePlatform, Param } from './component-props';
1
+ import { NavigateParamsParam, Payload, PushParamsParam } from './component-props';
2
2
  export interface GoBackParams {
3
3
  }
4
4
  export interface NavigateParams {
5
- params?: Param;
6
- screen: NavigationRoutesMobilePlatform;
5
+ params?: NavigateParamsParam;
6
+ screen: string;
7
+ }
8
+ export interface PushParams {
9
+ params?: PushParamsParam;
10
+ screen: string;
11
+ }
12
+ export interface TriggerApiParams {
13
+ errorPath?: string;
14
+ method?: 'GET' | 'POST';
15
+ onError?: unknown;
16
+ onSuccess?: unknown;
17
+ payload?: Payload;
18
+ responsePath?: string;
19
+ url: string;
7
20
  }
@@ -1,5 +1,7 @@
1
1
  import { ActionBinding, ActionOptions } from '../../core/action-utils';
2
2
  import { WrapWithActionParamValue } from '../../core/expressions';
3
- import { GoBackParams, NavigateParams } from './action-params';
3
+ import { GoBackParams, NavigateParams, PushParams, 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
+ export declare const push: (params: WrapWithActionParamValue<PushParams>, options?: ActionOptions) => ActionBinding;
7
+ export declare const triggerApi: (params: WrapWithActionParamValue<TriggerApiParams>, options?: ActionOptions) => ActionBinding;
@@ -4,10 +4,10 @@
4
4
  * Auto-generated from catalogs/custom-apps.catalog.json — do not edit.
5
5
  *
6
6
  * Provides runtime access to the raw catalog schema: component definitions,
7
- * action definitions, and spec validation.
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.1.3";
10
+ export declare const CATALOG_VERSION = "1.5.1";
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. */
@@ -4,6 +4,8 @@
4
4
  * Auto-generated from catalogs/custom-apps.catalog.json — do not edit.
5
5
  */
6
6
  export type ActionCardEvents = 'primaryAction' | 'secondaryAction';
7
+ export type AnchorEvents = 'press' | 'open' | 'error';
8
+ export type AnimationEvents = never;
7
9
  export type AvatarEvents = 'press';
8
10
  export type AvatarStackEvents = never;
9
11
  export type BadgeEvents = never;
@@ -12,23 +14,19 @@ export type CardEvents = 'press';
12
14
  export type CheckboxEvents = 'change' | 'blur';
13
15
  export type CheckboxGroupEvents = 'change';
14
16
  export type ChipEvents = 'press' | 'close';
15
- export type CondensedFooterEvents = 'action';
16
- export type CondensedHeaderEvents = never;
17
17
  export type CountryEvents = never;
18
18
  export type CurrencyEvents = 'change' | 'blur';
19
19
  export type DateEvents = 'change' | 'blur';
20
20
  export type DateRangeEvents = 'change';
21
21
  export type DateTimePickerEvents = 'close' | 'change';
22
22
  export type DividerEvents = never;
23
+ export type EmailEvents = 'change' | 'blur';
23
24
  export type ExpansionPanelEvents = 'toggle';
24
25
  export type FileViewerButtonEvents = 'press';
25
26
  export type FileViewerPressableEvents = 'press';
26
- export type FilterHeaderEvents = 'filterMenuPress';
27
27
  export type FloatingButtonEvents = 'press';
28
- export type FooterEvents = 'action';
29
28
  export type FormEvents = 'submit' | 'valid' | 'invalid';
30
29
  export type GroupEvents = never;
31
- export type HeaderEvents = never;
32
30
  export type HiddenEvents = 'change';
33
31
  export type HStackEvents = never;
34
32
  export type IconEvents = 'press';
@@ -37,7 +35,6 @@ export type InputTextEvents = 'change' | 'blur';
37
35
  export type LabelEvents = never;
38
36
  export type ListEvents = never;
39
37
  export type ListItemEvents = 'press';
40
- export type ModalActionHeaderEvents = 'leftPress' | 'rightPress';
41
38
  export type ModalSheetEvents = 'close';
42
39
  export type NoticeEvents = 'primaryPress' | 'secondaryPress' | 'close';
43
40
  export type NumberEvents = 'change' | 'blur';
@@ -45,6 +42,12 @@ export type ObjectFooterEvents = 'reject' | 'approve' | 'notes' | 'leftChevron'
45
42
  export type ObjectItemEvents = never;
46
43
  export type ObjectListViewEvents = never;
47
44
  export type ObjectListViewCardEvents = never;
45
+ export type PageCondensedFooterEvents = 'action';
46
+ export type PageCondensedHeaderEvents = never;
47
+ export type PageFilterHeaderEvents = 'filterMenuPress';
48
+ export type PageFooterEvents = 'action';
49
+ export type PageHeaderEvents = never;
50
+ export type PageModalActionHeaderEvents = 'leftPress' | 'rightPress';
48
51
  export type PasswordEvents = 'change' | 'blur';
49
52
  export type PercentageEvents = 'change' | 'blur';
50
53
  export type PhoneEvents = 'change' | 'blur';