@hubspot/ui-extensions 0.8.22 → 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.
- package/dist/coreComponents.js +12 -4
- package/dist/types.d.ts +11 -6
- package/package.json +2 -2
package/dist/coreComponents.js
CHANGED
|
@@ -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
|
*
|
|
@@ -59,7 +63,7 @@ export interface ButtonProps {
|
|
|
59
63
|
*
|
|
60
64
|
* @defaultValue `"secondary"`
|
|
61
65
|
*/
|
|
62
|
-
variant?: 'primary' | 'secondary' | 'destructive';
|
|
66
|
+
variant?: 'primary' | 'secondary' | 'destructive' | 'transparent';
|
|
63
67
|
/**
|
|
64
68
|
* Sets the HTML attribute "role" of the button.
|
|
65
69
|
*
|
|
@@ -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
|
*/
|
|
@@ -1573,13 +1577,14 @@ interface ActivityCreatorActionArgs {
|
|
|
1573
1577
|
interface ActionArgs {
|
|
1574
1578
|
PREVIEW_OBJECT: ObjectCoordinates;
|
|
1575
1579
|
ADD_NOTE: ActivityCreatorActionArgs;
|
|
1580
|
+
ADD_TASK: ActivityCreatorActionArgs;
|
|
1576
1581
|
SEND_EMAIL: ActivityCreatorActionArgs;
|
|
1577
1582
|
SCHEDULE_MEETING: ActivityCreatorActionArgs;
|
|
1578
1583
|
OPEN_RECORD_ASSOCIATION_FORM: OpenRecordAssociationFormArgs;
|
|
1579
1584
|
}
|
|
1580
1585
|
/** @ignore */
|
|
1581
1586
|
export type ArgsFor<SpecificActionType extends ActionType> = ActionArgs[SpecificActionType];
|
|
1582
|
-
export type ActionType = 'PREVIEW_OBJECT' | 'ADD_NOTE' | 'SEND_EMAIL' | 'SCHEDULE_MEETING' | 'OPEN_RECORD_ASSOCIATION_FORM';
|
|
1587
|
+
export type ActionType = 'PREVIEW_OBJECT' | 'ADD_NOTE' | 'ADD_TASK' | 'SEND_EMAIL' | 'SCHEDULE_MEETING' | 'OPEN_RECORD_ASSOCIATION_FORM';
|
|
1583
1588
|
/** @ignore */
|
|
1584
1589
|
interface BaseActionComponent {
|
|
1585
1590
|
children: ReactNode;
|
|
@@ -1853,7 +1858,7 @@ export declare class RemoteEvent<V> {
|
|
|
1853
1858
|
*
|
|
1854
1859
|
* @category Component Props
|
|
1855
1860
|
*/
|
|
1856
|
-
export interface LinkProps {
|
|
1861
|
+
export interface LinkProps extends OverlayComponentProps {
|
|
1857
1862
|
/**
|
|
1858
1863
|
* Sets the content that will render inside the component.
|
|
1859
1864
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
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": "
|
|
54
|
+
"gitHead": "aae9e65af94eab96dbd6b2316c2f5e9a8fe8ae2a"
|
|
55
55
|
}
|