@hubspot/ui-extensions 0.8.24 → 0.8.26
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.d.ts +5 -0
- package/dist/coreComponents.js +1 -0
- package/dist/crm/components.d.ts +7 -2
- package/dist/crm/components.js +2 -1
- package/dist/crm/index.d.ts +2 -2
- package/dist/crm/index.js +2 -2
- package/dist/experimental/index.d.ts +7 -1
- package/dist/experimental/index.js +3 -1
- package/dist/types.d.ts +73 -0
- package/dist/types.js +1 -0
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -276,3 +276,8 @@ export declare const Icon: "Icon" & {
|
|
|
276
276
|
readonly props?: types.IconProps | undefined;
|
|
277
277
|
readonly children?: true | undefined;
|
|
278
278
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Icon", types.IconProps, true>>;
|
|
279
|
+
export declare const StatusTag: "StatusTag" & {
|
|
280
|
+
readonly type?: "StatusTag" | undefined;
|
|
281
|
+
readonly props?: types.StatusTagProps | undefined;
|
|
282
|
+
readonly children?: true | undefined;
|
|
283
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"StatusTag", types.StatusTagProps, true>>;
|
package/dist/coreComponents.js
CHANGED
|
@@ -66,3 +66,4 @@ export const Modal = createRemoteReactComponent('Modal');
|
|
|
66
66
|
export const ModalBody = createRemoteReactComponent('ModalBody');
|
|
67
67
|
export const ModalFooter = createRemoteReactComponent('ModalFooter');
|
|
68
68
|
export const Icon = createRemoteReactComponent('Icon');
|
|
69
|
+
export const StatusTag = createRemoteReactComponent('StatusTag');
|
package/dist/crm/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CrmAssociationPivotProps, CrmAssociationTableProps, CrmDataHighlightProps, CrmPropertyListProps, CrmReportProps, CrmAssociationPropertyListProps, CrmStageTrackerProps, CrmStatisticsProps, CrmActionButtonProps, CrmActionLinkProps, CrmCardActionsProps } from '../types';
|
|
1
|
+
import { CrmAssociationPivotProps, CrmAssociationTableProps, CrmDataHighlightProps, CrmPropertyListProps, CrmReportProps, CrmAssociationPropertyListProps, CrmAssociationStageTrackerProps, CrmStageTrackerProps, CrmStatisticsProps, CrmActionButtonProps, CrmActionLinkProps, CrmCardActionsProps } from '../types';
|
|
2
2
|
declare const CrmPropertyList: "CrmPropertyList" & {
|
|
3
3
|
readonly type?: "CrmPropertyList" | undefined;
|
|
4
4
|
readonly props?: CrmPropertyListProps | undefined;
|
|
@@ -29,6 +29,11 @@ declare const CrmAssociationPropertyList: "CrmAssociationPropertyList" & {
|
|
|
29
29
|
readonly props?: CrmAssociationPropertyListProps | undefined;
|
|
30
30
|
readonly children?: true | undefined;
|
|
31
31
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmAssociationPropertyList", CrmAssociationPropertyListProps, true>>;
|
|
32
|
+
declare const CrmAssociationStageTracker: "CrmAssociationStageTracker" & {
|
|
33
|
+
readonly type?: "CrmAssociationStageTracker" | undefined;
|
|
34
|
+
readonly props?: CrmAssociationStageTrackerProps | undefined;
|
|
35
|
+
readonly children?: true | undefined;
|
|
36
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmAssociationStageTracker", CrmAssociationStageTrackerProps, true>>;
|
|
32
37
|
declare const CrmStageTracker: "CrmStageTracker" & {
|
|
33
38
|
readonly type?: "CrmStageTracker" | undefined;
|
|
34
39
|
readonly props?: CrmStageTrackerProps | undefined;
|
|
@@ -54,4 +59,4 @@ declare const CrmCardActions: "CrmCardActions" & {
|
|
|
54
59
|
readonly props?: CrmCardActionsProps | undefined;
|
|
55
60
|
readonly children?: true | undefined;
|
|
56
61
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmCardActions", CrmCardActionsProps, true>>;
|
|
57
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
62
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/components.js
CHANGED
|
@@ -5,9 +5,10 @@ const CrmDataHighlight = createExtensionComponent('CrmDataHighlight');
|
|
|
5
5
|
const CrmReport = createExtensionComponent('CrmReport');
|
|
6
6
|
const CrmAssociationPivot = createExtensionComponent('CrmAssociationPivot');
|
|
7
7
|
const CrmAssociationPropertyList = createExtensionComponent('CrmAssociationPropertyList');
|
|
8
|
+
const CrmAssociationStageTracker = createExtensionComponent('CrmAssociationStageTracker');
|
|
8
9
|
const CrmStageTracker = createExtensionComponent('CrmStageTracker');
|
|
9
10
|
const CrmStatistics = createExtensionComponent('CrmStatistics');
|
|
10
11
|
const CrmActionButton = createExtensionComponent('CrmActionButton');
|
|
11
12
|
const CrmActionLink = createExtensionComponent('CrmActionLink');
|
|
12
13
|
const CrmCardActions = createExtensionComponent('CrmCardActions');
|
|
13
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
14
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions } from './components';
|
|
2
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
1
|
+
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions } from './components';
|
|
2
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, } from './components';
|
|
2
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
1
|
+
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, } from './components';
|
|
2
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
@@ -11,4 +11,10 @@ declare const Slider: "Slider" & {
|
|
|
11
11
|
readonly props?: types.SliderProps | undefined;
|
|
12
12
|
readonly children?: true | undefined;
|
|
13
13
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Slider", types.SliderProps, true>>;
|
|
14
|
-
|
|
14
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
15
|
+
declare const Iframe: "Iframe" & {
|
|
16
|
+
readonly type?: "Iframe" | undefined;
|
|
17
|
+
readonly props?: types.IframeProps | undefined;
|
|
18
|
+
readonly children?: true | undefined;
|
|
19
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Iframe", types.IframeProps, true>>;
|
|
20
|
+
export { Tooltip, Slider, Iframe };
|
|
@@ -3,4 +3,6 @@ import { createRemoteReactComponent } from '@remote-ui/react';
|
|
|
3
3
|
const Tooltip = createRemoteReactComponent('Tooltip');
|
|
4
4
|
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
5
5
|
const Slider = createRemoteReactComponent('Slider');
|
|
6
|
-
|
|
6
|
+
/** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
|
|
7
|
+
const Iframe = createRemoteReactComponent('Iframe');
|
|
8
|
+
export { Tooltip, Slider, Iframe };
|
package/dist/types.d.ts
CHANGED
|
@@ -287,6 +287,25 @@ export interface HeadingProps {
|
|
|
287
287
|
*/
|
|
288
288
|
inline?: boolean;
|
|
289
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* The props type for {@link !components.Iframe}.
|
|
292
|
+
*
|
|
293
|
+
* @ignore
|
|
294
|
+
* @experimental
|
|
295
|
+
* @category Component Props
|
|
296
|
+
*/
|
|
297
|
+
export interface IframeProps {
|
|
298
|
+
/**
|
|
299
|
+
* Sets the height of the iframe. If this prop is not provided, the iframe defaults size medium.
|
|
300
|
+
*
|
|
301
|
+
* @defaultValue `"medium"`
|
|
302
|
+
*/
|
|
303
|
+
height?: TShirtSizes['sm'] | TShirtSizes['md'] | TShirtSizes['lg'];
|
|
304
|
+
/**
|
|
305
|
+
* The URL to render into the inline iframe.
|
|
306
|
+
*/
|
|
307
|
+
src: string;
|
|
308
|
+
}
|
|
290
309
|
/**
|
|
291
310
|
* The props type for {@link !components.Icon}.
|
|
292
311
|
*
|
|
@@ -335,6 +354,7 @@ export declare const iconNames: {
|
|
|
335
354
|
readonly robot: "simpleBot";
|
|
336
355
|
readonly refresh: "refresh";
|
|
337
356
|
readonly faceHappy: "emoji";
|
|
357
|
+
readonly faceNeutral: "emojiLineNeutral";
|
|
338
358
|
readonly faceSad: "emojiLineSad";
|
|
339
359
|
readonly upload: "upload";
|
|
340
360
|
readonly download: "download";
|
|
@@ -808,6 +828,47 @@ export interface MultiSelectProps extends BaseSelectProps {
|
|
|
808
828
|
*/
|
|
809
829
|
onChange?: (value: NonNullable<MultiSelectProps['value']>) => void;
|
|
810
830
|
}
|
|
831
|
+
/**
|
|
832
|
+
* The props type for {@link !components.StatusTag}.
|
|
833
|
+
*
|
|
834
|
+
* @category Component Props
|
|
835
|
+
*/
|
|
836
|
+
export interface StatusTagProps {
|
|
837
|
+
/**
|
|
838
|
+
* The status tag's indicator color.
|
|
839
|
+
*
|
|
840
|
+
* @defaultValue `"default"`
|
|
841
|
+
*/
|
|
842
|
+
variant?: 'danger' | 'warning' | 'info' | 'success' | 'default';
|
|
843
|
+
/**
|
|
844
|
+
* When set to true, the status tag's dot will be a ring instead.
|
|
845
|
+
*
|
|
846
|
+
* @defaultValue `false `
|
|
847
|
+
*/
|
|
848
|
+
hollow?: boolean;
|
|
849
|
+
/**
|
|
850
|
+
* A function that will be invoked when the status tag is clicked. It receives no arguments and its return value is ignored.
|
|
851
|
+
*
|
|
852
|
+
* @event
|
|
853
|
+
*/
|
|
854
|
+
onClick?: () => void;
|
|
855
|
+
/**
|
|
856
|
+
* When set to true, the status tag will show a small clickable 'x' icon.
|
|
857
|
+
*
|
|
858
|
+
* @defaultValue `false`
|
|
859
|
+
*/
|
|
860
|
+
showRemoveIcon?: boolean;
|
|
861
|
+
/**
|
|
862
|
+
* A function that will be invoked when the 'x' icon is clicked. It receives no arguments and its return value is ignored.
|
|
863
|
+
*
|
|
864
|
+
* @event
|
|
865
|
+
*/
|
|
866
|
+
onRemoveClick?: () => void;
|
|
867
|
+
/**
|
|
868
|
+
* Sets the content that will render inside the StatusTag. This prop is passed implicitly by providing sub-components. We recommend only using a small amount of text.
|
|
869
|
+
*/
|
|
870
|
+
children: ReactNode;
|
|
871
|
+
}
|
|
811
872
|
/**
|
|
812
873
|
* The props type for {@link !components.Tag}.
|
|
813
874
|
*
|
|
@@ -1413,6 +1474,7 @@ export interface StandardCrmExtensionPoint extends ExtensionPointContract {
|
|
|
1413
1474
|
CrmReport: ComponentType<CrmReportProps>;
|
|
1414
1475
|
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
1415
1476
|
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
1477
|
+
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
1416
1478
|
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
1417
1479
|
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
1418
1480
|
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
@@ -1437,6 +1499,7 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
|
1437
1499
|
CrmReport: ComponentType<CrmReportProps>;
|
|
1438
1500
|
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
1439
1501
|
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
1502
|
+
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
1440
1503
|
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
1441
1504
|
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
1442
1505
|
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
@@ -1520,6 +1583,15 @@ export interface CrmAssociationPropertyListProps {
|
|
|
1520
1583
|
sort?: Array<CrmSortDescriptor>;
|
|
1521
1584
|
}
|
|
1522
1585
|
/** @ignore */
|
|
1586
|
+
export interface CrmAssociationStageTrackerProps {
|
|
1587
|
+
objectTypeId: string;
|
|
1588
|
+
properties: Array<string>;
|
|
1589
|
+
associationLabels?: Array<string>;
|
|
1590
|
+
filters?: Array<CrmSearchFilter>;
|
|
1591
|
+
showProperties?: boolean;
|
|
1592
|
+
sort?: Array<CrmSortDescriptor>;
|
|
1593
|
+
}
|
|
1594
|
+
/** @ignore */
|
|
1523
1595
|
export interface CrmStageTrackerProps {
|
|
1524
1596
|
objectId?: number;
|
|
1525
1597
|
objectTypeId?: string;
|
|
@@ -2326,6 +2398,7 @@ export interface HubSpotFetchOptions {
|
|
|
2326
2398
|
body?: {
|
|
2327
2399
|
[key: string]: unknown;
|
|
2328
2400
|
};
|
|
2401
|
+
headers?: Headers | Record<string, string>;
|
|
2329
2402
|
}
|
|
2330
2403
|
export type HubSpotFetchRequestURI = string | URL;
|
|
2331
2404
|
export {};
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.26",
|
|
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": "2cf3d398c538788c36beb8d0f0c923b42b5d0e67"
|
|
55
55
|
}
|