@hubspot/ui-extensions 0.8.23 → 0.8.24

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.
@@ -1,6 +1,8 @@
1
1
  import { createRemoteReactComponent } from '@remote-ui/react';
2
2
  export const Alert = createRemoteReactComponent('Alert');
3
- export const Button = createRemoteReactComponent('Button');
3
+ export const Button = createRemoteReactComponent('Button', {
4
+ fragmentProps: ['overlay'],
5
+ });
4
6
  export const ButtonRow = createRemoteReactComponent('ButtonRow');
5
7
  export const Card = createRemoteReactComponent('Card');
6
8
  export const DescriptionList = createRemoteReactComponent('DescriptionList');
@@ -10,9 +12,13 @@ export const EmptyState = createRemoteReactComponent('EmptyState');
10
12
  export const ErrorState = createRemoteReactComponent('ErrorState');
11
13
  export const Form = createRemoteReactComponent('Form');
12
14
  export const Heading = createRemoteReactComponent('Heading');
13
- export const Image = createRemoteReactComponent('Image');
15
+ export const Image = createRemoteReactComponent('Image', {
16
+ fragmentProps: ['overlay'],
17
+ });
14
18
  export const Input = createRemoteReactComponent('Input');
15
- export const Link = createRemoteReactComponent('Link');
19
+ export const Link = createRemoteReactComponent('Link', {
20
+ fragmentProps: ['overlay'],
21
+ });
16
22
  export const TextArea = createRemoteReactComponent('TextArea');
17
23
  // Textarea was changed to TextArea
18
24
  // Exporting both for backwards compat
@@ -21,7 +27,9 @@ export const Textarea = createRemoteReactComponent('Textarea');
21
27
  export const LoadingSpinner = createRemoteReactComponent('LoadingSpinner');
22
28
  export const ProgressBar = createRemoteReactComponent('ProgressBar');
23
29
  export const Select = createRemoteReactComponent('Select');
24
- export const Tag = createRemoteReactComponent('Tag');
30
+ export const Tag = createRemoteReactComponent('Tag', {
31
+ fragmentProps: ['overlay'],
32
+ });
25
33
  export const Text = createRemoteReactComponent('Text');
26
34
  export const Tile = createRemoteReactComponent('Tile');
27
35
  /** @deprecated use Flex instead. It will be removed in the next release. */
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { RemoteFragment } from '@remote-ui/core';
1
2
  import { ReactNode, ComponentType } from 'react';
2
3
  export declare class ExtensionEvent {
3
4
  type: string;
@@ -11,6 +12,9 @@ export declare class FormSubmitExtensionEvent<V> extends ExtensionEvent {
11
12
  constructor(value: V, event: Event);
12
13
  }
13
14
  export type ReactionsHandler<T> = (event: T, reactions: Reactions) => void | Promise<void>;
15
+ export type OverlayComponentProps = {
16
+ overlay?: RemoteFragment;
17
+ };
14
18
  /**
15
19
  * The props type for {@link !components.Alert}.
16
20
  *
@@ -39,7 +43,7 @@ export interface AlertProps {
39
43
  *
40
44
  * @category Component Props
41
45
  */
42
- export interface ButtonProps {
46
+ export interface ButtonProps extends OverlayComponentProps {
43
47
  /**
44
48
  * A function that will be invoked when the button is clicked. Do not use this function for submitting a form; use Form's `onSubmit` function instead.
45
49
  *
@@ -348,7 +352,7 @@ export type IconNames = keyof typeof iconNames;
348
352
  *
349
353
  * @category Component Props
350
354
  */
351
- export interface ImageProps {
355
+ export interface ImageProps extends OverlayComponentProps {
352
356
  /**
353
357
  * The alt text for the image.
354
358
  *
@@ -809,7 +813,7 @@ export interface MultiSelectProps extends BaseSelectProps {
809
813
  *
810
814
  * @category Component Props
811
815
  */
812
- export interface TagProps {
816
+ export interface TagProps extends OverlayComponentProps {
813
817
  /**
814
818
  * Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
815
819
  */
@@ -1854,7 +1858,7 @@ export declare class RemoteEvent<V> {
1854
1858
  *
1855
1859
  * @category Component Props
1856
1860
  */
1857
- export interface LinkProps {
1861
+ export interface LinkProps extends OverlayComponentProps {
1858
1862
  /**
1859
1863
  * Sets the content that will render inside the component.
1860
1864
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.23",
3
+ "version": "0.8.24",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -51,5 +51,5 @@
51
51
  "devDependencies": {
52
52
  "typescript": "5.0.4"
53
53
  },
54
- "gitHead": "4e1721543d4dd631fb2aedbcd314d92b66f56e33"
54
+ "gitHead": "aae9e65af94eab96dbd6b2316c2f5e9a8fe8ae2a"
55
55
  }