@rippling/pebble-sdui-mobile 0.18.0 → 1.0.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 +8 -6
- package/dist/catalogs/custom-apps/actions.d.ts +3 -2
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-props.d.ts +5 -4
- package/dist/catalogs/custom-apps/index.cjs +8 -7
- 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 +2876 -2834
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/actions.md +41 -17
- package/dist/docs/typescript/mobile/catalogs/custom-apps/definitions.md +22 -21
- package/dist/docs/typescript/mobile/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/mobile/catalogs/custom-apps/types.md +12 -10
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Input, NavigateParamsParam, PushParamsParam } from './component-props';
|
|
2
2
|
export interface CopyToClipboardParams {
|
|
3
3
|
text: string;
|
|
4
4
|
}
|
|
@@ -11,6 +11,10 @@ export interface NavigateParams {
|
|
|
11
11
|
params?: NavigateParamsParam;
|
|
12
12
|
screen: string;
|
|
13
13
|
}
|
|
14
|
+
export interface OpenChatAssistantWithMessageParams {
|
|
15
|
+
target?: 'sidepane' | 'fullscreen' | 'copilot';
|
|
16
|
+
text: string;
|
|
17
|
+
}
|
|
14
18
|
export interface PushParams {
|
|
15
19
|
params?: PushParamsParam;
|
|
16
20
|
screen: string;
|
|
@@ -19,12 +23,10 @@ export interface SetStateParams {
|
|
|
19
23
|
statePath: string;
|
|
20
24
|
value: unknown;
|
|
21
25
|
}
|
|
22
|
-
export interface
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
export interface TriggerFunctionParams {
|
|
27
|
+
functionApiName: string;
|
|
28
|
+
inputs: Input;
|
|
25
29
|
onError?: unknown;
|
|
26
30
|
onSuccess?: unknown;
|
|
27
|
-
payload?: Payload;
|
|
28
31
|
responsePath?: string;
|
|
29
|
-
url: string;
|
|
30
32
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ActionBinding, ActionOptions } from '../../core/action-utils';
|
|
2
2
|
import { WrapWithActionParamValue } from '../../core/expressions';
|
|
3
|
-
import { CopyToClipboardParams, GoBackParams, Linking_openURLParams, NavigateParams, PushParams, SetStateParams,
|
|
3
|
+
import { CopyToClipboardParams, GoBackParams, Linking_openURLParams, NavigateParams, OpenChatAssistantWithMessageParams, PushParams, SetStateParams, TriggerFunctionParams } from './action-params';
|
|
4
4
|
export declare const copyToClipboard: (params: WrapWithActionParamValue<CopyToClipboardParams>, options?: ActionOptions) => ActionBinding;
|
|
5
5
|
export declare const goBack: (params: WrapWithActionParamValue<GoBackParams>, options?: ActionOptions) => ActionBinding;
|
|
6
6
|
export declare const linking_openURL: (params: WrapWithActionParamValue<Linking_openURLParams>, options?: ActionOptions) => ActionBinding;
|
|
7
7
|
export declare const navigate: (params: WrapWithActionParamValue<NavigateParams>, options?: ActionOptions) => ActionBinding;
|
|
8
|
+
export declare const openChatAssistantWithMessage: (params: WrapWithActionParamValue<OpenChatAssistantWithMessageParams>, options?: ActionOptions) => ActionBinding;
|
|
8
9
|
export declare const push: (params: WrapWithActionParamValue<PushParams>, options?: ActionOptions) => ActionBinding;
|
|
9
10
|
export declare const setState: (params: WrapWithActionParamValue<SetStateParams>, options?: ActionOptions) => ActionBinding;
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const triggerFunction: (params: WrapWithActionParamValue<TriggerFunctionParams>, 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 = "
|
|
10
|
+
export declare const CATALOG_VERSION = "2.0.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. */
|
|
@@ -532,6 +532,11 @@ export interface ImageStyle {
|
|
|
532
532
|
width?: SizeValue | string;
|
|
533
533
|
zIndex?: number;
|
|
534
534
|
}
|
|
535
|
+
/** Function inputs. Must include an action string. */
|
|
536
|
+
export interface Input {
|
|
537
|
+
action: string;
|
|
538
|
+
[key: string]: unknown | string;
|
|
539
|
+
}
|
|
535
540
|
export interface InputTextArg {
|
|
536
541
|
[key: string]: unknown;
|
|
537
542
|
}
|
|
@@ -667,10 +672,6 @@ export interface PasswordCheck {
|
|
|
667
672
|
message: string;
|
|
668
673
|
type: string;
|
|
669
674
|
}
|
|
670
|
-
/** POST body or GET query parameters. Defaults to an empty object for POST. */
|
|
671
|
-
export interface Payload {
|
|
672
|
-
[key: string]: unknown;
|
|
673
|
-
}
|
|
674
675
|
export interface PercentageArg {
|
|
675
676
|
[key: string]: unknown;
|
|
676
677
|
}
|