@rippling/pebble-sdui-web 0.7.0 → 0.9.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/ai_gateway/action-params.d.ts +5 -0
- package/dist/catalogs/ai_gateway/actions.d.ts +5 -0
- package/dist/catalogs/ai_gateway/catalog.d.ts +33 -0
- package/dist/catalogs/ai_gateway/component-events.d.ts +6 -0
- package/dist/catalogs/ai_gateway/component-props.d.ts +51 -0
- package/dist/catalogs/ai_gateway/components.d.ts +7 -0
- package/dist/catalogs/ai_gateway/function-params.d.ts +5 -0
- package/dist/catalogs/ai_gateway/functions.d.ts +5 -0
- package/dist/catalogs/ai_gateway/index.cjs +2 -0
- package/dist/catalogs/ai_gateway/index.cjs.map +1 -0
- package/dist/catalogs/ai_gateway/index.d.ts +11 -0
- package/dist/catalogs/ai_gateway/index.js +366 -0
- package/dist/catalogs/ai_gateway/index.js.map +1 -0
- package/dist/catalogs/ai_gateway/render.d.ts +20 -0
- package/dist/catalogs/custom-apps/action-params.d.ts +4 -0
- package/dist/catalogs/custom-apps/actions.d.ts +2 -1
- package/dist/catalogs/custom-apps/catalog.d.ts +1 -1
- package/dist/catalogs/custom-apps/component-events.d.ts +16 -13
- package/dist/catalogs/custom-apps/component-props.d.ts +973 -161
- package/dist/catalogs/custom-apps/components.d.ts +5 -2
- package/dist/catalogs/custom-apps/index.cjs +3 -2
- package/dist/catalogs/custom-apps/index.cjs.map +1 -1
- package/dist/catalogs/custom-apps/index.d.ts +5 -5
- package/dist/catalogs/custom-apps/index.js +5951 -1306
- package/dist/catalogs/custom-apps/index.js.map +1 -1
- package/dist/docs/typescript/web/catalogs/ai_gateway/actions.md +6 -0
- package/dist/docs/typescript/web/catalogs/ai_gateway/components.md +31 -0
- package/dist/docs/typescript/web/catalogs/ai_gateway/computed-functions.md +6 -0
- package/dist/docs/typescript/web/catalogs/ai_gateway/definitions.md +6 -0
- package/dist/docs/typescript/web/catalogs/ai_gateway/readme.md +16 -0
- package/dist/docs/typescript/web/catalogs/ai_gateway/types.md +75 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/actions.md +28 -0
- package/dist/docs/typescript/web/catalogs/custom-apps/components.md +450 -222
- package/dist/docs/typescript/web/catalogs/custom-apps/definitions.md +274 -242
- package/dist/docs/typescript/web/catalogs/custom-apps/readme.md +1 -1
- package/dist/docs/typescript/web/catalogs/custom-apps/types.md +1329 -116
- 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: 'web';
|
|
5
|
+
catalog: string;
|
|
6
|
+
catalogVersion: string;
|
|
7
|
+
}
|
|
8
|
+
type CatalogElementNode = ElementNode<'web', 'ai_gateway'>;
|
|
9
|
+
/**
|
|
10
|
+
* Render an element tree into a flat json-render spec tagged with
|
|
11
|
+
* the ai_gateway 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 {};
|
|
@@ -7,6 +7,10 @@ export interface NavigateParams {
|
|
|
7
7
|
openInNewTab?: boolean;
|
|
8
8
|
path: string;
|
|
9
9
|
}
|
|
10
|
+
export interface OpenChatAssistantWithMessageParams {
|
|
11
|
+
target?: 'sidepane' | 'fullscreen' | 'copilot';
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
10
14
|
export interface PushStateParams {
|
|
11
15
|
clearStatePath?: string;
|
|
12
16
|
statePath: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ActionBinding, ActionOptions } from '../../core/action-utils';
|
|
2
2
|
import { WrapWithActionParamValue } from '../../core/expressions';
|
|
3
|
-
import { NavigateParams, PushStateParams, RemoveStateParams, SetStateParams, ShowNotificationParams, TriggerFunctionParams } from './action-params';
|
|
3
|
+
import { NavigateParams, OpenChatAssistantWithMessageParams, PushStateParams, RemoveStateParams, SetStateParams, ShowNotificationParams, TriggerFunctionParams } from './action-params';
|
|
4
4
|
export declare const navigate: (params: WrapWithActionParamValue<NavigateParams>, options?: ActionOptions) => ActionBinding;
|
|
5
|
+
export declare const openChatAssistantWithMessage: (params: WrapWithActionParamValue<OpenChatAssistantWithMessageParams>, options?: ActionOptions) => ActionBinding;
|
|
5
6
|
export declare const pushState: (params: WrapWithActionParamValue<PushStateParams>, options?: ActionOptions) => ActionBinding;
|
|
6
7
|
export declare const removeState: (params: WrapWithActionParamValue<RemoveStateParams>, options?: ActionOptions) => ActionBinding;
|
|
7
8
|
export declare const setState: (params: WrapWithActionParamValue<SetStateParams>, options?: ActionOptions) => ActionBinding;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* action definitions, and spec validation.
|
|
8
8
|
*/
|
|
9
9
|
export declare const CATALOG_NAME = "custom-apps";
|
|
10
|
-
export declare const CATALOG_VERSION = "1.
|
|
10
|
+
export declare const CATALOG_VERSION = "1.3.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. */
|
|
@@ -20,7 +20,7 @@ export type BrandBadgeEvents = never;
|
|
|
20
20
|
export type BreadcrumbEvents = 'select';
|
|
21
21
|
export type ButtonEvents = 'press' | 'pressWhileDisabled' | 'mouseEnter' | 'mouseLeave';
|
|
22
22
|
export type ButtonGroupEvents = never;
|
|
23
|
-
export type CalendarEvents = 'click' | 'clear';
|
|
23
|
+
export type CalendarEvents = 'click' | 'clear' | 'confirmMobile';
|
|
24
24
|
export type CardEvents = 'edit' | 'delete' | 'add' | 'click' | 'action';
|
|
25
25
|
export type CardGroupEvents = never;
|
|
26
26
|
export type CarouselEvents = 'done';
|
|
@@ -44,16 +44,17 @@ export type DistributionBarEvents = never;
|
|
|
44
44
|
export type DividerEvents = never;
|
|
45
45
|
export type DraggableListEvents = 'update' | 'remove' | 'dragStart' | 'dragEnd';
|
|
46
46
|
export type DrawerEvents = 'close';
|
|
47
|
-
export type DropdownEvents = 'change';
|
|
47
|
+
export type DropdownEvents = 'change' | 'toggle';
|
|
48
48
|
export type EmailEvents = 'change' | 'blur' | 'focus' | 'click' | 'keydown' | 'keyup' | 'paste' | 'mouseenter' | 'mouseleave';
|
|
49
49
|
export type EmojiPickerEvents = 'change';
|
|
50
|
+
export type EmployeeSearchEvents = 'change';
|
|
50
51
|
export type ExpansionPanelEvents = 'toggle';
|
|
51
52
|
export type ExpansionPanelGroupEvents = never;
|
|
52
53
|
export type FieldEvents = never;
|
|
53
|
-
export type FileEvents = 'change' | 'delete';
|
|
54
|
+
export type FileEvents = 'change' | 'delete' | 'chipClick';
|
|
54
55
|
export type FileDropEvents = 'change' | 'blur';
|
|
55
56
|
export type FloatingButtonEvents = 'press' | 'pressWhileDisabled' | 'mouseEnter' | 'mouseLeave';
|
|
56
|
-
export type FormEvents = 'change' | 'submit' | 'valid' | 'invalid' | 'cancel' | 'edit';
|
|
57
|
+
export type FormEvents = 'change' | 'submit' | 'valid' | 'invalid' | 'cancel' | 'edit' | 'skip';
|
|
57
58
|
export type FormCheckboxEvents = 'change';
|
|
58
59
|
export type FormCheckboxGroupEvents = 'change';
|
|
59
60
|
export type FormContentEvents = never;
|
|
@@ -62,6 +63,7 @@ export type FormDateEvents = 'change';
|
|
|
62
63
|
export type FormDateRangeEvents = 'change';
|
|
63
64
|
export type FormDaySelectorEvents = 'change';
|
|
64
65
|
export type FormEmailEvents = 'change' | 'blur';
|
|
66
|
+
export type FormEmployeeSearchEvents = 'change';
|
|
65
67
|
export type FormFileEvents = 'change' | 'blur';
|
|
66
68
|
export type FormFileDropEvents = 'change' | 'blur';
|
|
67
69
|
export type FormGroupEvents = never;
|
|
@@ -70,10 +72,10 @@ export type FormHiddenEvents = never;
|
|
|
70
72
|
export type FormInlineGroupEvents = never;
|
|
71
73
|
export type FormInputGroupEvents = 'change';
|
|
72
74
|
export type FormMaskerEvents = 'change' | 'blur';
|
|
73
|
-
export type FormNumberEvents = 'change' | 'blur';
|
|
75
|
+
export type FormNumberEvents = 'change' | 'blur' | 'changeRaw' | 'changeCalculationState';
|
|
74
76
|
export type FormPasswordEvents = 'change' | 'blur';
|
|
75
77
|
export type FormPercentageEvents = 'change' | 'blur';
|
|
76
|
-
export type FormPhoneEvents = 'change' | 'blur';
|
|
78
|
+
export type FormPhoneEvents = 'change' | 'blur' | 'countryCodeChange';
|
|
77
79
|
export type FormRadioEvents = 'change';
|
|
78
80
|
export type FormSegmentedControlEvents = 'change';
|
|
79
81
|
export type FormSelectEvents = 'change' | 'blur';
|
|
@@ -85,7 +87,7 @@ export type FormSsnEvents = 'change' | 'blur';
|
|
|
85
87
|
export type FormSurveyEvents = 'change';
|
|
86
88
|
export type FormSwitchEvents = 'change';
|
|
87
89
|
export type FormTextEvents = 'change' | 'blur';
|
|
88
|
-
export type FormTextareaEvents = 'change' | 'blur';
|
|
90
|
+
export type FormTextareaEvents = 'change' | 'blur' | 'focus';
|
|
89
91
|
export type FormTextAutoSuggestEvents = 'change' | 'blur';
|
|
90
92
|
export type FormTimeEvents = 'change' | 'blur';
|
|
91
93
|
export type FormTimezoneEvents = 'change' | 'blur' | 'focus';
|
|
@@ -121,7 +123,7 @@ export type NumberEvents = 'change' | 'blur' | 'changeRaw' | 'changeCalculationS
|
|
|
121
123
|
export type ObjectListViewEvents = never;
|
|
122
124
|
export type ObjectUIEvents = never;
|
|
123
125
|
export type ObjectUIContentEvents = never;
|
|
124
|
-
export type ObjectUIHeaderEvents =
|
|
126
|
+
export type ObjectUIHeaderEvents = 'primaryAction';
|
|
125
127
|
export type ObjectUIStatsEvents = 'actionClick';
|
|
126
128
|
export type ObjectUITemplateEvents = never;
|
|
127
129
|
export type PageAppLogoEvents = never;
|
|
@@ -131,7 +133,7 @@ export type PageHeaderEvents = 'action';
|
|
|
131
133
|
export type PaginateEvents = 'change';
|
|
132
134
|
export type PaginateListEvents = 'change';
|
|
133
135
|
export type PaneEvents = 'collapsedChange' | 'dismiss' | 'resize';
|
|
134
|
-
export type PasswordEvents = 'change' | 'blur' | 'focus' | 'click' | 'keydown' | 'keyup' | 'paste' | 'mouseenter' | 'mouseleave' | '
|
|
136
|
+
export type PasswordEvents = 'change' | 'blur' | 'focus' | 'click' | 'keydown' | 'keyup' | 'paste' | 'mouseenter' | 'mouseleave' | 'revealChange';
|
|
135
137
|
export type PercentageEvents = 'change' | 'blur';
|
|
136
138
|
export type PhoneEvents = 'change' | 'blur' | 'focus' | 'click' | 'keydown' | 'keyup' | 'paste' | 'mouseenter' | 'mouseleave' | 'countryCodeChange';
|
|
137
139
|
export type ProgressBarEvents = never;
|
|
@@ -139,6 +141,7 @@ export type ProgressStepsEvents = never;
|
|
|
139
141
|
export type RadioEvents = 'change' | 'blur' | 'mouseenter' | 'mouseleave';
|
|
140
142
|
export type RangeSliderEvents = 'change' | 'beforeChange' | 'afterChange' | 'blur';
|
|
141
143
|
export type ReportLoaderEvents = never;
|
|
144
|
+
export type ReportsEvents = never;
|
|
142
145
|
export type ReportShareLoaderEvents = never;
|
|
143
146
|
export type ReportViewerLoaderEvents = never;
|
|
144
147
|
export type ResizableBoardEvents = 'layoutChange' | 'breakpointChange' | 'dragStart' | 'dragStop' | 'resizeStart' | 'resizeStop';
|
|
@@ -166,17 +169,17 @@ export type SwitchEvents = 'change' | 'blur';
|
|
|
166
169
|
export type TabEvents = 'change';
|
|
167
170
|
export type TableBasicEvents = never;
|
|
168
171
|
export type TextEvents = never;
|
|
169
|
-
export type TextareaEvents = 'change' | 'blur' | 'focus';
|
|
172
|
+
export type TextareaEvents = 'change' | 'blur' | 'focus' | 'keydown';
|
|
170
173
|
export type TextAutoSuggestEvents = 'change' | 'blur' | 'focus' | 'click';
|
|
171
174
|
export type TextClipEvents = never;
|
|
172
175
|
export type TextInputEvents = 'change' | 'blur' | 'focus' | 'click' | 'keydown' | 'keyup' | 'paste' | 'mouseenter' | 'mouseleave';
|
|
173
176
|
export type TextSnippetEvents = never;
|
|
174
|
-
export type TimeEvents = 'change' | 'blur';
|
|
177
|
+
export type TimeEvents = 'change' | 'blur' | 'inferredTimeChange';
|
|
175
178
|
export type TimeRangeEvents = 'change' | 'blur';
|
|
176
179
|
export type TimezoneEvents = 'change' | 'blur' | 'focus';
|
|
177
180
|
export type TipEvents = never;
|
|
178
|
-
export type TitleCaptionEvents =
|
|
179
|
-
export type ToggleableArrowEvents =
|
|
181
|
+
export type TitleCaptionEvents = 'press';
|
|
182
|
+
export type ToggleableArrowEvents = 'change';
|
|
180
183
|
export type TreeEvents = 'change' | 'footerAction';
|
|
181
184
|
export type TreeSelectEvents = 'change';
|
|
182
185
|
export type VideoEvents = never;
|