@hubspot/ui-extensions 0.8.24 → 0.8.25
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/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 +13 -1
- package/dist/experimental/index.js +5 -1
- package/dist/types.d.ts +78 -0
- package/dist/types.js +1 -0
- package/package.json +2 -2
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,16 @@ 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 StatusTag: "StatusTag" & {
|
|
16
|
+
readonly type?: "StatusTag" | undefined;
|
|
17
|
+
readonly props?: types.StatusTagProps | undefined;
|
|
18
|
+
readonly children?: true | undefined;
|
|
19
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"StatusTag", types.StatusTagProps, true>>;
|
|
20
|
+
/** @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. */
|
|
21
|
+
declare const Iframe: "Iframe" & {
|
|
22
|
+
readonly type?: "Iframe" | undefined;
|
|
23
|
+
readonly props?: types.IframeProps | undefined;
|
|
24
|
+
readonly children?: true | undefined;
|
|
25
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Iframe", types.IframeProps, true>>;
|
|
26
|
+
export { Tooltip, Slider, StatusTag, Iframe };
|
|
@@ -3,4 +3,8 @@ 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 StatusTag = createRemoteReactComponent('StatusTag');
|
|
8
|
+
/** @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. */
|
|
9
|
+
const Iframe = createRemoteReactComponent('Iframe');
|
|
10
|
+
export { Tooltip, Slider, StatusTag, 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,53 @@ 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
|
+
* When set to true, adjusts the styling of a status tag for better spacing on the same line as other status tags or text
|
|
851
|
+
*
|
|
852
|
+
* @defaultValue `false`
|
|
853
|
+
*/
|
|
854
|
+
inline?: boolean;
|
|
855
|
+
/**
|
|
856
|
+
* A function that will be invoked when the status tag is clicked. It receives no arguments and its return value is ignored.
|
|
857
|
+
*
|
|
858
|
+
* @event
|
|
859
|
+
*/
|
|
860
|
+
onClick?: () => void;
|
|
861
|
+
/**
|
|
862
|
+
* When set to true, the status tag will show a small clickable 'x' icon.
|
|
863
|
+
*
|
|
864
|
+
* @defaultValue `false`
|
|
865
|
+
*/
|
|
866
|
+
showRemoveIcon?: boolean;
|
|
867
|
+
/**
|
|
868
|
+
* A function that will be invoked when the 'x' icon is clicked. It receives no arguments and its return value is ignored.
|
|
869
|
+
*
|
|
870
|
+
* @event
|
|
871
|
+
*/
|
|
872
|
+
onRemoveClick?: () => void;
|
|
873
|
+
/**
|
|
874
|
+
* 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.
|
|
875
|
+
*/
|
|
876
|
+
children: ReactNode;
|
|
877
|
+
}
|
|
811
878
|
/**
|
|
812
879
|
* The props type for {@link !components.Tag}.
|
|
813
880
|
*
|
|
@@ -1413,6 +1480,7 @@ export interface StandardCrmExtensionPoint extends ExtensionPointContract {
|
|
|
1413
1480
|
CrmReport: ComponentType<CrmReportProps>;
|
|
1414
1481
|
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
1415
1482
|
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
1483
|
+
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
1416
1484
|
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
1417
1485
|
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
1418
1486
|
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
@@ -1437,6 +1505,7 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
|
1437
1505
|
CrmReport: ComponentType<CrmReportProps>;
|
|
1438
1506
|
CrmAssociationPivot: ComponentType<CrmAssociationPivotProps>;
|
|
1439
1507
|
CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
|
|
1508
|
+
CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
|
|
1440
1509
|
CrmStageTracker: ComponentType<CrmStageTrackerProps>;
|
|
1441
1510
|
CrmStatistics?: ComponentType<CrmStatisticsProps>;
|
|
1442
1511
|
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
@@ -1520,6 +1589,15 @@ export interface CrmAssociationPropertyListProps {
|
|
|
1520
1589
|
sort?: Array<CrmSortDescriptor>;
|
|
1521
1590
|
}
|
|
1522
1591
|
/** @ignore */
|
|
1592
|
+
export interface CrmAssociationStageTrackerProps {
|
|
1593
|
+
objectTypeId: string;
|
|
1594
|
+
properties: Array<string>;
|
|
1595
|
+
associationLabels?: Array<string>;
|
|
1596
|
+
filters?: Array<CrmSearchFilter>;
|
|
1597
|
+
showProperties?: boolean;
|
|
1598
|
+
sort?: Array<CrmSortDescriptor>;
|
|
1599
|
+
}
|
|
1600
|
+
/** @ignore */
|
|
1523
1601
|
export interface CrmStageTrackerProps {
|
|
1524
1602
|
objectId?: number;
|
|
1525
1603
|
objectTypeId?: string;
|
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.25",
|
|
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": "36b80f541eceededf57ac1c4ba6149b184564707"
|
|
55
55
|
}
|