@hubspot/ui-extensions 0.8.55 → 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.
@@ -771,3 +771,14 @@ export declare const Illustration: "Illustration" & {
771
771
  readonly props?: types.IllustrationProps | undefined;
772
772
  readonly children?: true | undefined;
773
773
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Illustration", types.IllustrationProps, true>>;
774
+ /**
775
+ * The `Tooltip` component renders a tooltip for a component.
776
+ *
777
+ * **Links:**
778
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tooltip Documentation}
779
+ */
780
+ export declare const Tooltip: "Tooltip" & {
781
+ readonly type?: "Tooltip" | undefined;
782
+ readonly props?: types.TooltipProps | undefined;
783
+ readonly children?: true | undefined;
784
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Tooltip", types.TooltipProps, true>>;
@@ -519,3 +519,10 @@ export const Tab = createRemoteReactComponent('Tab');
519
519
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/illustration Illustration Docs}
520
520
  */
521
521
  export const Illustration = createRemoteReactComponent('Illustration');
522
+ /**
523
+ * The `Tooltip` component renders a tooltip for a component.
524
+ *
525
+ * **Links:**
526
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tooltip Documentation}
527
+ */
528
+ export const Tooltip = createRemoteReactComponent('Tooltip');
@@ -78,4 +78,21 @@ declare const Popover: "Popover" & {
78
78
  readonly props?: experimentalTypes.PopoverProps | undefined;
79
79
  readonly children?: true | undefined;
80
80
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Popover", experimentalTypes.PopoverProps, true>>;
81
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, };
81
+ declare const FileInput: "FileInput" & {
82
+ readonly type?: "FileInput" | undefined;
83
+ readonly props?: experimentalTypes.FileInputProps | undefined;
84
+ readonly children?: true | undefined;
85
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"FileInput", experimentalTypes.FileInputProps, true>>;
86
+ /**
87
+ * The `SearchInput` component renders a search input that can be used to search for a value.
88
+ *
89
+ * **Links:**
90
+ *
91
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/search-input SearchInput Docs}
92
+ */
93
+ declare const SearchInput: "SearchInput" & {
94
+ readonly type?: "SearchInput" | undefined;
95
+ readonly props?: experimentalTypes.SearchInputProps | undefined;
96
+ readonly children?: true | undefined;
97
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"SearchInput", experimentalTypes.SearchInputProps, true>>;
98
+ export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, SearchInput, };
@@ -37,4 +37,13 @@ const ExpandableText = createRemoteReactComponent('ExpandableText');
37
37
  const Popover = createRemoteReactComponent('Popover', {
38
38
  fragmentProps: ['header', 'body', 'footer'],
39
39
  });
40
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, };
40
+ const FileInput = createRemoteReactComponent('FileInput');
41
+ /**
42
+ * The `SearchInput` component renders a search input that can be used to search for a value.
43
+ *
44
+ * **Links:**
45
+ *
46
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/search-input SearchInput Docs}
47
+ */
48
+ const SearchInput = createRemoteReactComponent('SearchInput');
49
+ export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, SearchInput, };
@@ -139,4 +139,49 @@ export interface PopoverProps {
139
139
  arrowSize?: 'none' | 'small' | 'medium';
140
140
  onClick?: ReactionsHandler<ExtensionEvent>;
141
141
  }
142
+ export interface FileInputProps {
143
+ value?: File | {
144
+ name: string;
145
+ };
146
+ name: string;
147
+ onChange: (event: any) => void;
148
+ }
149
+ /**
150
+ * @ignore
151
+ * @experimental do not use in production
152
+ */
153
+ export interface SearchInputProps {
154
+ /** The label text to display for the search input. */
155
+ label: string;
156
+ /** The unique identifier for the input element. */
157
+ name: string;
158
+ /** The value of the input. */
159
+ value?: string;
160
+ /** Text that appears in the input when it has no value set. */
161
+ placeholder?: string;
162
+ /** Text that will appear in a tooltip next to the input label. */
163
+ tooltip?: string;
164
+ /** If true, displays a required indicator. */
165
+ required?: boolean;
166
+ /** If true, the field is not editable. */
167
+ readOnly?: boolean;
168
+ /** If true, the field is disabled. */
169
+ disabled?: boolean;
170
+ /** Instructional message to help understand the purpose of the input. */
171
+ description?: string;
172
+ /** If true, renders the error state and shows validationMessage as an error. */
173
+ error?: boolean;
174
+ /** The text to show under the input for error or success validations. Will display below the input*/
175
+ validationMessage?: string;
176
+ /** Called when the input value changes. */
177
+ onChange?: (value: string) => void;
178
+ /** Called every time the field is edited by the user. */
179
+ onInput?: (value: string) => void;
180
+ /** Called every time the field loses focus. */
181
+ onBlur?: (value: string) => void;
182
+ /** Called every time the field gets focused. */
183
+ onFocus?: (value: string) => void;
184
+ /** If true, shows a clear button to clear the input. Default is true. */
185
+ clearable?: boolean;
186
+ }
142
187
  export {};
package/dist/types.d.ts CHANGED
@@ -2391,6 +2391,17 @@ type DefaultToggleTypeProps = {
2391
2391
  * @category Component Props
2392
2392
  */
2393
2393
  export type ToggleGroupProps = CheckboxGroupProps | RadioButtonGroupProps | DefaultToggleTypeProps;
2394
+ export interface TooltipProps {
2395
+ /**
2396
+ * Sets the content to render on the screen, and serves as the trigger for the tooltip. This prop is passed implicitly by providing sub-components.
2397
+ */
2398
+ children: ReactNode;
2399
+ /**
2400
+ * Sets the position of the tooltip relative to its trigger element.
2401
+ * @default 'top'
2402
+ */
2403
+ placement?: 'top' | 'bottom' | 'left' | 'right';
2404
+ }
2394
2405
  /** @ignore */
2395
2406
  interface Team {
2396
2407
  id: number;
@@ -2610,6 +2621,8 @@ interface ActivityCreatorActionArgs {
2610
2621
  objectTypeId: string;
2611
2622
  objectId: number;
2612
2623
  windowVariant?: 'windowed' | 'fullscreen';
2624
+ initialEmailBody?: string;
2625
+ initialEmailSubject?: string;
2613
2626
  }
2614
2627
  /** @ignore */
2615
2628
  interface EngagementAppLinkArgs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.55",
3
+ "version": "0.9.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,5 +66,5 @@
66
66
  "ts-jest": "^29.1.1",
67
67
  "typescript": "5.0.4"
68
68
  },
69
- "gitHead": "93b19d28469b6b8ccf6f757ab301634fcc6ef993"
69
+ "gitHead": "acae89e4a44e12e37e149a2080563e56e729359e"
70
70
  }