@hubspot/ui-extensions 0.11.5 → 0.12.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 (61) hide show
  1. package/dist/__tests__/crm/hooks/useAssociations.spec.js +96 -0
  2. package/dist/__tests__/crm/hooks/useCrmProperties.spec.js +170 -1
  3. package/dist/crm/hooks/useAssociations.d.ts +2 -0
  4. package/dist/crm/hooks/useAssociations.js +87 -0
  5. package/dist/crm/hooks/useCrmProperties.d.ts +5 -1
  6. package/dist/crm/hooks/useCrmProperties.js +81 -2
  7. package/dist/hs-internal/__tests__/createRemoteComponentInternal.spec.d.ts +1 -0
  8. package/dist/hs-internal/__tests__/createRemoteComponentInternal.spec.js +139 -0
  9. package/dist/hs-internal/index.d.ts +35 -0
  10. package/dist/hs-internal/index.js +20 -0
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/shared/remoteComponents.d.ts +9 -0
  14. package/dist/shared/remoteComponents.js +9 -0
  15. package/dist/shared/types/components/accordion.d.ts +5 -5
  16. package/dist/shared/types/components/alert.d.ts +2 -2
  17. package/dist/shared/types/components/button-row.d.ts +5 -2
  18. package/dist/shared/types/components/button.d.ts +16 -10
  19. package/dist/shared/types/components/chart.d.ts +3 -3
  20. package/dist/shared/types/components/description-list.d.ts +2 -2
  21. package/dist/shared/types/components/dropdown.d.ts +8 -8
  22. package/dist/shared/types/components/empty-state.d.ts +5 -7
  23. package/dist/shared/types/components/error-state.d.ts +2 -2
  24. package/dist/shared/types/components/form.d.ts +2 -2
  25. package/dist/shared/types/components/heading.d.ts +1 -1
  26. package/dist/shared/types/components/icon.d.ts +4 -5
  27. package/dist/shared/types/components/illustration.d.ts +12 -0
  28. package/dist/shared/types/components/image.d.ts +9 -4
  29. package/dist/shared/types/components/index.d.ts +1 -0
  30. package/dist/shared/types/components/inputs.d.ts +61 -63
  31. package/dist/shared/types/components/layouts.d.ts +17 -24
  32. package/dist/shared/types/components/link.d.ts +8 -5
  33. package/dist/shared/types/components/loading-spinner.d.ts +3 -3
  34. package/dist/shared/types/components/modal.d.ts +5 -5
  35. package/dist/shared/types/components/panel.d.ts +7 -7
  36. package/dist/shared/types/components/progress-bar.d.ts +4 -4
  37. package/dist/shared/types/components/score.d.ts +13 -0
  38. package/dist/shared/types/components/score.js +1 -0
  39. package/dist/shared/types/components/selects.d.ts +11 -20
  40. package/dist/shared/types/components/statistics.d.ts +2 -2
  41. package/dist/shared/types/components/status-tag.d.ts +5 -5
  42. package/dist/shared/types/components/step-indicator.d.ts +5 -7
  43. package/dist/shared/types/components/table.d.ts +22 -12
  44. package/dist/shared/types/components/tabs.d.ts +10 -10
  45. package/dist/shared/types/components/tag.d.ts +2 -2
  46. package/dist/shared/types/components/text.d.ts +15 -21
  47. package/dist/shared/types/components/tile.d.ts +2 -2
  48. package/dist/shared/types/components/toggle.d.ts +12 -14
  49. package/dist/shared/types/components/toggleInputs.d.ts +26 -19
  50. package/dist/shared/types/components/tooltip.d.ts +1 -1
  51. package/dist/shared/types/crm.d.ts +52 -0
  52. package/dist/shared/types/http-requests.d.ts +2 -2
  53. package/dist/shared/types/index.d.ts +1 -1
  54. package/dist/shared/types/index.js +1 -0
  55. package/dist/shared/types/shared.d.ts +128 -78
  56. package/dist/shared/types/shared.js +123 -78
  57. package/dist/shared/types/worker-globals.d.ts +11 -10
  58. package/dist/testing/__tests__/mocks.useAssociations.spec.js +92 -4
  59. package/dist/testing/__tests__/mocks.useCrmProperties.spec.js +55 -7
  60. package/dist/testing/internal/mocks/mock-hooks.js +4 -0
  61. package/package.json +4 -3
@@ -6,53 +6,57 @@ import { BaseComponentProps } from '../shared.ts';
6
6
  */
7
7
  export interface CheckboxProps extends BaseComponentProps {
8
8
  /**
9
- * A string representing the value of the input. This is not displayed on the client-side,
10
- * but on the server this is the value given to the data submitted with the checkbox's name.
9
+ * The checkbox value. This value is not displayed on the card, but is passed on the server side when submitted, along with the checkbox name.
11
10
  */
12
11
  value?: string;
13
12
  /**
14
- * The current status of the input.
13
+ * When set to `true`, the checkbox is selected.
14
+ *
15
+ * @defaultValue `false`
15
16
  */
16
17
  checked?: boolean;
17
18
  /** @deprecated use readOnly instead */
18
19
  readonly?: boolean;
19
20
  /**
20
- * When set to `true`, the option cannot be selected.
21
+ * When set to `true`, the checkbox cannot be selected.
21
22
  */
22
23
  readOnly?: boolean;
23
24
  /**
24
- * The string that displays below the toggle.
25
+ * Text that describes the field's purpose.
25
26
  */
26
27
  description?: string;
27
28
  /**
28
- * The unique identifier for the checkbox element.
29
+ * The checkbox's unique identifier.
29
30
  */
30
31
  name?: string;
31
32
  /**
32
- * The size variation of the checkbox.
33
+ * The size of the checkbox.
33
34
  *
34
35
  * @defaultValue `"default"`
35
36
  */
36
37
  variant?: 'default' | 'small';
37
38
  /**
38
- * A function that is called when the `checked` input status changes.
39
+ * A callback function that is called when the checkbox is selected or cleared. Passes the new value.
39
40
  *
40
41
  * @event
41
42
  */
42
43
  onChange?: (checked: boolean, value: string) => void;
43
- /** The text that displays in the dropdown menu. */
44
+ /** The text that displays next to the checkbox. */
44
45
  children?: React.ReactNode;
45
46
  /**
46
- * Use the inline prop to arrange checkboxes side-by-side.
47
+ * When set to `true`, arranges checkboxes side by side.
48
+ *
49
+ * @defaultValue `false`
47
50
  */
48
51
  inline?: boolean;
49
52
  /**
50
- * When set to `true`, the option will be selected by default. Use it to
51
- * set the default `checked` state when the component is **uncontrolled**.
53
+ * When set to `true`, the checkbox is selected by default.
54
+ *
55
+ * @defaultValue `false`
52
56
  */
53
57
  initialIsChecked?: boolean;
54
58
  /**
55
- * Accessibility label. It should be present when the checkbox has no label(children).
59
+ * The checkbox's accessibility label.
56
60
  */
57
61
  'aria-label'?: string;
58
62
  }
@@ -91,15 +95,15 @@ export interface RadioButtonListProps extends ToggleGroupListBaseProps {
91
95
  type ToggleType = 'checkboxList' | 'radioButtonList';
92
96
  export interface CommonGroupProps extends BaseComponentProps {
93
97
  /**
94
- * Denotes the type of list to render.
98
+ * The type of toggle, whether checkboxes or radio buttons. Radio buttons only allow one option to be selected.
95
99
  */
96
100
  toggleType?: ToggleType;
97
101
  /**
98
- * The unique identifier for the toggle group element.
102
+ * The input's unique identifier.
99
103
  */
100
104
  name: string;
101
105
  /**
102
- * The label that displays above the toggle group.
106
+ * The text that displays above the toggles.
103
107
  */
104
108
  label: string;
105
109
  /**
@@ -117,13 +121,13 @@ export interface CommonGroupProps extends BaseComponentProps {
117
121
  */
118
122
  tooltip?: string;
119
123
  /**
120
- * When set to `true`, `validationMessage` is displayed as an error message if provided. The input will also render its error state to let the user know there is an error. If left false, `validationMessage` is displayed as a success message.
124
+ * When set to `true`, `validationMessage` is displayed as an error message if provided. The input will also render its error state to let the user know there is an error. If left `false`, `validationMessage` is displayed as a success message.
121
125
  *
122
126
  * @defaultValue `false`
123
127
  */
124
128
  error?: boolean;
125
129
  /**
126
- * An array of options to display in the dropdown menu.
130
+ * An array of options to display in the group.
127
131
  *
128
132
  * @defaultValue `[]`
129
133
  */
@@ -135,11 +139,14 @@ export interface CommonGroupProps extends BaseComponentProps {
135
139
  */
136
140
  inline?: boolean;
137
141
  /**
138
- * The size variation of the individual options.
142
+ * The size of the toggle.
139
143
  *
140
144
  * @defaultValue `"default"`
141
145
  */
142
146
  variant?: 'default' | 'small';
147
+ /**
148
+ * The value of the toggle group.
149
+ */
143
150
  value?: string[] | string;
144
151
  }
145
152
  type CheckboxGroupProps = {
@@ -6,7 +6,7 @@ export interface TooltipProps extends BaseComponentProps {
6
6
  */
7
7
  children: ReactNode;
8
8
  /**
9
- * Sets the position of the tooltip relative to its trigger element.
9
+ * The position where the tooltip will be displayed, relative to the parent UI component.
10
10
  * @default 'top'
11
11
  */
12
12
  placement?: 'top' | 'bottom' | 'left' | 'right';
@@ -2,20 +2,54 @@ import { ReactNode } from 'react';
2
2
  import { TShirtSizes, BaseComponentProps } from './shared.ts';
3
3
  /** @ignore */
4
4
  export interface CrmDataHighlightProps extends BaseComponentProps {
5
+ /**
6
+ * The properties to display, up to four. By default, will display property data from the currently displaying record. To pull data from a specific record, include the `objectTypeId` and `objectId` props.
7
+ */
5
8
  properties: Array<string>;
9
+ /**
10
+ * The numeric ID of the type of associated object to display (e.g., `0-1` for contacts).
11
+ */
6
12
  objectTypeId?: string;
13
+ /**
14
+ * The ID of the CRM record to display property data from.
15
+ */
7
16
  objectId?: number;
8
17
  }
9
18
  /** @ignore */
10
19
  export interface CrmReportProps extends BaseComponentProps {
20
+ /**
21
+ * The numeric ID of the single object report, which can be found in the URL when viewing the report in HubSpot.
22
+ */
11
23
  reportId: string;
24
+ /**
25
+ * Specifies how the report should be filtered based on its relationship to the currently displaying CRM record:
26
+ * - `associations`: report will only include data from records associated with the currently displaying record.
27
+ * - `subject`: report will only include data from the currently displaying record. Will not include data from associated records.
28
+ * - `unfiltered`: report will display all data regardless of the currently displaying record and its associations.
29
+ *
30
+ * @defaultValue `"associations"`
31
+ */
12
32
  use?: 'associations' | 'subject' | 'unfiltered';
13
33
  }
14
34
  /** @ignore */
15
35
  export interface CrmPropertyListProps extends BaseComponentProps {
36
+ /**
37
+ * The properties to display, up to 24. By default, will display property data from the currently displaying record. To pull data from a specific record, include the `objectTypeId` and `objectId` props.
38
+ */
16
39
  properties: Array<string>;
40
+ /**
41
+ * The layout direction of the table.
42
+ *
43
+ * @defaultValue `"column"`
44
+ */
17
45
  direction?: string;
46
+ /**
47
+ * The numeric ID of the type of associated object to display (e.g., `0-1` for contacts).
48
+ */
18
49
  objectTypeId?: string;
50
+ /**
51
+ * The ID of the CRM record to display property data from.
52
+ */
19
53
  objectId?: number;
20
54
  }
21
55
  /** @ignore */
@@ -101,7 +135,13 @@ interface PercentileMetricItem extends BaseCrmStatisticItem {
101
135
  type CrmStatisticItem = BasicMetricItem | PercentileMetricItem;
102
136
  /** @ignore */
103
137
  export interface CrmStatisticsProps extends BaseComponentProps {
138
+ /**
139
+ * The numeric ID of the type of object to fetch statistics about (e.g., `0-1` for contacts).
140
+ */
104
141
  objectTypeId: string;
142
+ /**
143
+ * An array of objects that define each statistic to fetch.
144
+ */
105
145
  statistics: Array<CrmStatisticItem>;
106
146
  }
107
147
  /** @ignore */
@@ -117,9 +157,21 @@ interface Gradient {
117
157
  }
118
158
  /** @ignore */
119
159
  export interface CrmStageTrackerProps extends BaseComponentProps {
160
+ /**
161
+ * The ID of the CRM record to display property data from.
162
+ */
120
163
  objectId?: number;
164
+ /**
165
+ * The numeric ID of the type of associated object to display (e.g., `0-1` for contacts).
166
+ */
121
167
  objectTypeId?: string;
168
+ /**
169
+ * The properties to display, up to four. By default, will display property data from the currently displaying record.
170
+ */
122
171
  properties: Array<string>;
172
+ /**
173
+ * Whether to display the properties below the progress indicator.
174
+ */
123
175
  showProperties?: boolean;
124
176
  }
125
177
  /** @ignore */
@@ -66,8 +66,8 @@ export interface ServerlessExecutionRequest {
66
66
  serverlessFunction: string;
67
67
  location: keyof ExtensionPoints;
68
68
  objectQuery?: {
69
- objectId: number;
70
- objectTypeId: string;
69
+ objectId?: number;
70
+ objectTypeId?: string;
71
71
  objectPropertyNames: string[];
72
72
  };
73
73
  parameters?: JsonValue;
@@ -3,6 +3,6 @@ export type * from './actions.ts';
3
3
  export type * from './context.ts';
4
4
  export type * from './crm.ts';
5
5
  export type * from './extension-points.ts';
6
- export type * from './http-requests.ts';
6
+ export * from './http-requests.ts';
7
7
  export type * from './reactions.ts';
8
8
  export * from './shared.ts';
@@ -1 +1,2 @@
1
+ export * from "./http-requests.js"; // NOTE: `http-requests.ts` has some exported enums so we can't use `export type`
1
2
  export * from "./shared.js"; // NOTE: `shared.ts` has some exported classes so we can't use `export type` for now
@@ -38,151 +38,196 @@ export interface TShirtSizes {
38
38
  export type AllSizes = TShirtSizes['xs'] | TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'] | TShirtSizes['xl'];
39
39
  export type AllDistances = 'flush' | AllSizes;
40
40
  export declare const iconNames: {
41
- readonly success: "success";
42
- readonly remove: "remove";
43
41
  readonly add: "add";
42
+ readonly appointment: "appointment";
43
+ readonly approvals: "approvals";
44
+ readonly artificialIntelligence: "artificialIntelligence";
45
+ readonly artificialIntelligenceEnhanced: "artificialIntelligenceEnhanced";
44
46
  readonly attach: "attach";
45
- readonly date: "date";
47
+ readonly bank: "bank";
48
+ readonly block: "block";
49
+ readonly book: "knowledgeBase";
50
+ readonly bulb: "bulb";
51
+ readonly callTranscript: "callTranscript";
52
+ readonly calling: "calling";
53
+ readonly callingHangup: "callingHangup";
54
+ readonly callingMade: "callingMade";
55
+ readonly callingMissed: "callingMissed";
56
+ readonly callingVoicemail: "callingVoicemail";
57
+ readonly campaigns: "campaigns";
58
+ readonly cap: "cap";
59
+ readonly checkCircle: "checkCircle";
60
+ readonly circleFilled: "circleFilled";
61
+ readonly circleHollow: "circleHollow";
62
+ readonly clock: "time";
63
+ readonly comment: "comments";
64
+ readonly contact: "contacts";
46
65
  readonly copy: "duplicate";
66
+ readonly crm: "crm";
67
+ readonly dataSync: "dataSync";
68
+ readonly date: "date";
69
+ readonly delay: "delay";
47
70
  readonly delete: "delete";
71
+ readonly description: "description";
72
+ readonly developerProjects: "developerProjects";
73
+ readonly documents: "documents";
74
+ readonly downCarat: "downCarat";
75
+ readonly download: "download";
48
76
  readonly edit: "edit";
77
+ readonly ellipses: "ellipses";
49
78
  readonly email: "email";
79
+ readonly emailOpen: "emailOpen";
80
+ readonly emailThreadedReplies: "emailThreadedReplies";
81
+ readonly enrichment: "enrichment";
82
+ readonly enroll: "enroll";
50
83
  readonly exclamation: "exclamation";
51
- readonly question: "question";
52
- readonly home: "home";
53
- readonly location: "location";
54
- readonly upCarat: "upCarat";
55
- readonly downCarat: "downCarat";
56
- readonly warning: "warning";
57
- readonly shoppingCart: "cart";
58
- readonly clock: "time";
59
- readonly comment: "comments";
60
- readonly contact: "contacts";
61
- readonly star: "favorite";
62
- readonly file: "file";
63
- readonly reports: "reports";
64
- readonly video: "video";
65
- readonly robot: "simpleBot";
66
- readonly refresh: "refresh";
84
+ readonly exclamationCircle: "exclamationCircle";
67
85
  readonly faceHappy: "emoji";
86
+ readonly faceHappyFilled: "emojiFillHappy";
68
87
  readonly faceNeutral: "emojiLineNeutral";
88
+ readonly faceNeutralFilled: "emojiFillNeutral";
69
89
  readonly faceSad: "emojiLineSad";
70
- readonly upload: "upload";
71
- readonly download: "download";
72
- readonly left: "left";
73
- readonly right: "right";
74
- readonly dataSync: "dataSync";
75
- readonly imageGallery: "imageGallery";
76
- readonly search: "search";
77
- readonly save: "saveEditableView";
78
- readonly notification: "notification";
79
- readonly bulb: "bulb";
80
- readonly settings: "settings";
90
+ readonly faceSadFilled: "emojiFillSad";
91
+ readonly facebook: "socialBlockFacebook";
92
+ readonly favoriteHollow: "favoriteHollow";
93
+ readonly file: "file";
94
+ readonly filledXCircleIcon: "filledXCircleIcon";
81
95
  readonly filter: "filter";
96
+ readonly flame: "highlyEngagedLead";
97
+ readonly folder: "folder";
98
+ readonly folderOpen: "folderOpen";
99
+ readonly forward: "forward";
82
100
  readonly gauge: "gauge";
83
- readonly enroll: "enroll";
84
101
  readonly generateChart: "generateChart";
85
102
  readonly gift: "gift";
86
- readonly flame: "highlyEngagedLead";
87
- readonly inbox: "inbox";
103
+ readonly globe: "language";
104
+ readonly globeLine: "globe";
105
+ readonly goal: "goal";
106
+ readonly googlePlus: "socialBlockGoogleplus";
107
+ readonly guidedActions: "guidedActions";
108
+ readonly hash: "numericDataType";
109
+ readonly hide: "hide";
110
+ readonly home: "home";
111
+ readonly hubDB: "hubDB";
88
112
  readonly image: "insertImage";
89
- readonly quote: "insertQuote";
113
+ readonly imageGallery: "imageGallery";
114
+ readonly inbox: "inbox";
115
+ readonly info: "info";
116
+ readonly infoNoCircle: "infoNoCircle";
90
117
  readonly insertVideo: "insertVideo";
118
+ readonly instagram: "socialBlockInstagram";
119
+ readonly integrations: "integrations";
91
120
  readonly invoice: "invoice";
92
121
  readonly key: "key";
93
- readonly book: "knowledgeBase";
94
- readonly globe: "language";
122
+ readonly language: "language";
123
+ readonly left: "left";
124
+ readonly lessCircle: "lessCircle";
95
125
  readonly lesson: "lesson";
126
+ readonly light: "light";
96
127
  readonly link: "link";
128
+ readonly linkedin: "socialBlockLinkedin";
97
129
  readonly listView: "listView";
130
+ readonly location: "location";
98
131
  readonly locked: "locked";
99
132
  readonly mention: "mention";
100
133
  readonly messages: "messages";
101
134
  readonly mobile: "mobile";
135
+ readonly moreCircle: "moreCircle";
136
+ readonly notEditable: "notEditable";
137
+ readonly notification: "notification";
102
138
  readonly notificationOff: "notificationOff";
103
- readonly hash: "numericDataType";
104
139
  readonly objectAssociations: "objectAssociations";
105
140
  readonly objectAssociationsManyToMany: "objectAssociationsManyToMany";
106
141
  readonly objectAssociationsManyToOne: "objectAssociationsManyToOne";
107
142
  readonly office365: "office365";
108
143
  readonly order: "order";
109
144
  readonly paymentSubscriptions: "paymentSubscriptions";
110
- readonly product: "product";
145
+ readonly pin: "pin";
146
+ readonly pinterest: "socialBlockPinterest";
111
147
  readonly powerPointFile: "powerPointFile";
112
148
  readonly presentation: "presentation";
149
+ readonly product: "product";
113
150
  readonly publish: "publish";
151
+ readonly question: "question";
114
152
  readonly questionAnswer: "questionAnswer";
153
+ readonly questionCircle: "questionCircle";
115
154
  readonly quickbooks: "quickbooks";
155
+ readonly quote: "insertQuote";
116
156
  readonly readMore: "readMore";
117
- readonly realEstateListing: "realEstateListing";
118
157
  readonly readOnlyView: "readOnlyView";
158
+ readonly realEstateListing: "realEstateListing";
119
159
  readonly recentlySelected: "recentlySelected";
120
160
  readonly record: "record";
121
161
  readonly redo: "redo";
122
- readonly undo: "undo";
162
+ readonly refresh: "refresh";
123
163
  readonly registration: "registration";
164
+ readonly remove: "remove";
124
165
  readonly replace: "replace";
166
+ readonly reports: "reports";
167
+ readonly right: "right";
168
+ readonly robot: "simpleBot";
125
169
  readonly rotate: "rotate";
170
+ readonly rss: "socialBlockRss";
126
171
  readonly salesQuote: "salesQuote";
127
172
  readonly salesTemplates: "salesTemplates";
173
+ readonly save: "saveEditableView";
174
+ readonly search: "search";
175
+ readonly send: "send";
128
176
  readonly sequences: "sequences";
177
+ readonly settings: "settings";
178
+ readonly shoppingCart: "cart";
179
+ readonly signal: "signal";
180
+ readonly signalPoor: "signalPoor";
181
+ readonly signature: "signature";
182
+ readonly snooze: "snooze";
183
+ readonly sortAlpAsc: "sortAlpAsc";
184
+ readonly sortAlpDesc: "sortAlpDesc";
185
+ readonly sortAmtAsc: "sortAmtAsc";
186
+ readonly sortAmtDesc: "sortAmtDesc";
187
+ readonly sortNumAsc: "sortNumAsc";
188
+ readonly sortNumDesc: "sortNumDesc";
189
+ readonly sortTableAsc: "sortTableAsc";
190
+ readonly sortTableDesc: "sortTableDesc";
129
191
  readonly spellCheck: "spellCheck";
192
+ readonly sprocket: "sprocket";
193
+ readonly star: "favorite";
194
+ readonly stopRecord: "stopRecord";
130
195
  readonly strike: "strike";
196
+ readonly styles: "styles";
197
+ readonly success: "success";
131
198
  readonly tablet: "tablet";
132
199
  readonly tag: "tag";
133
200
  readonly tasks: "tasks";
134
201
  readonly test: "test";
135
- readonly ticket: "ticket";
136
- readonly thumbsUp: "thumbsUp";
202
+ readonly text: "text";
203
+ readonly textBodyExpanded: "textBodyExpanded";
204
+ readonly textColor: "textColor";
205
+ readonly textDataType: "textDataType";
206
+ readonly textSnippet: "textSnippet";
137
207
  readonly thumbsDown: "thumbsDown";
208
+ readonly thumbsUp: "thumbsUp";
209
+ readonly ticket: "ticket";
138
210
  readonly translate: "translate";
139
211
  readonly trophy: "trophy";
212
+ readonly twitter: "socialBlockTwitter";
213
+ readonly undo: "undo";
214
+ readonly upCarat: "upCarat";
215
+ readonly upload: "upload";
216
+ readonly video: "video";
140
217
  readonly videoFile: "videoFile";
141
218
  readonly videoPlayerSubtitles: "videoPlayerSubtitles";
142
219
  readonly view: "view";
143
220
  readonly viewDetails: "viewDetails";
221
+ readonly warning: "warning";
144
222
  readonly website: "website";
145
223
  readonly workflows: "workflows";
146
- readonly zoomIn: "zoomIn";
147
- readonly zoomOut: "zoomOut";
148
- readonly goal: "goal";
149
- readonly campaigns: "campaigns";
150
- readonly cap: "cap";
151
- readonly block: "block";
152
- readonly bank: "bank";
153
- readonly approvals: "approvals";
154
- readonly appointment: "appointment";
155
- readonly facebook: "socialBlockFacebook";
156
- readonly googlePlus: "socialBlockGoogleplus";
157
- readonly instagram: "socialBlockInstagram";
158
- readonly linkedin: "socialBlockLinkedin";
159
- readonly pinterest: "socialBlockPinterest";
160
- readonly rss: "socialBlockRss";
161
- readonly twitter: "socialBlockTwitter";
162
224
  readonly x: "socialBlockX";
225
+ readonly xCircle: "xCircle";
163
226
  readonly xing: "socialBlockXing";
164
227
  readonly youtube: "socialBlockYoutube";
165
228
  readonly youtubePlay: "socialBlockYoutubeplay";
166
- readonly sortAlpAsc: "sortAlpAsc";
167
- readonly sortAlpDesc: "sortAlpDesc";
168
- readonly sortAmtAsc: "sortAmtAsc";
169
- readonly sortAmtDesc: "sortAmtDesc";
170
- readonly sortNumAsc: "sortNumAsc";
171
- readonly sortNumDesc: "sortNumDesc";
172
- readonly sortTableAsc: "sortTableAsc";
173
- readonly sortTableDesc: "sortTableDesc";
174
- readonly text: "text";
175
- readonly textColor: "textColor";
176
- readonly textDataType: "textDataType";
177
- readonly textSnippet: "textSnippet";
178
- readonly calling: "calling";
179
- readonly callingHangup: "callingHangup";
180
- readonly callingMade: "callingMade";
181
- readonly callingMissed: "callingMissed";
182
- readonly callingVoicemail: "callingVoicemail";
183
- readonly faceHappyFilled: "emojiFillHappy";
184
- readonly faceNeutralFilled: "emojiFillNeutral";
185
- readonly faceSadFilled: "emojiFillSad";
229
+ readonly zoomIn: "zoomIn";
230
+ readonly zoomOut: "zoomOut";
186
231
  };
187
232
  export type IconNames = keyof typeof iconNames;
188
233
  export type TypesOfReadOnlyArray<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
@@ -195,5 +240,10 @@ export declare class RemoteEvent<V> {
195
240
  constructor(value: V, event: Event);
196
241
  }
197
242
  export interface BaseComponentProps {
243
+ /**
244
+ * Used by `findByTestId()` to locate this component in tests.
245
+ *
246
+ * @see {@link https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/testing/reference#findbytestid | Testing utilities reference}
247
+ */
198
248
  testId?: string;
199
249
  }