@hubspot/ui-extensions 0.8.29 → 0.8.30
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 +19 -3
- 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 +1 -13
- package/dist/experimental/index.js +1 -5
- package/dist/types.d.ts +81 -115
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -118,9 +118,25 @@ export declare const Stack: "Stack" & {
|
|
|
118
118
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Stack", types.StackProps, true>>;
|
|
119
119
|
export declare const ToggleGroup: "ToggleGroup" & {
|
|
120
120
|
readonly type?: "ToggleGroup" | undefined;
|
|
121
|
-
readonly props?:
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
readonly props?: ({
|
|
122
|
+
toggleType: "checkboxList";
|
|
123
|
+
onChange?: ((value: string[]) => void) | undefined;
|
|
124
|
+
value?: string[] | undefined;
|
|
125
|
+
} & types.CommonGroupProps) | ({
|
|
126
|
+
toggleType: "radioButtonList";
|
|
127
|
+
onChange?: ((value: string) => void) | undefined;
|
|
128
|
+
value?: string | undefined;
|
|
129
|
+
} & types.CommonGroupProps) | undefined;
|
|
130
|
+
readonly children?: true | undefined;
|
|
131
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"ToggleGroup", ({
|
|
132
|
+
toggleType: "checkboxList";
|
|
133
|
+
onChange?: ((value: string[]) => void) | undefined;
|
|
134
|
+
value?: string[] | undefined;
|
|
135
|
+
} & types.CommonGroupProps) | ({
|
|
136
|
+
toggleType: "radioButtonList";
|
|
137
|
+
onChange?: ((value: string) => void) | undefined;
|
|
138
|
+
value?: string | undefined;
|
|
139
|
+
} & types.CommonGroupProps), true>>;
|
|
124
140
|
export declare const StatisticsItem: "StatisticsItem" & {
|
|
125
141
|
readonly type?: "StatisticsItem" | undefined;
|
|
126
142
|
readonly props?: types.StatisticsItemProps | undefined;
|
package/dist/crm/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CrmAssociationPivotProps, CrmAssociationTableProps, CrmDataHighlightProps, CrmPropertyListProps, CrmReportProps, CrmAssociationPropertyListProps, CrmAssociationStageTrackerProps, CrmStageTrackerProps, CrmStatisticsProps, CrmActionButtonProps, CrmActionLinkProps, CrmCardActionsProps } from '../types';
|
|
1
|
+
import { CrmAssociationPivotProps, CrmAssociationTableProps, CrmDataHighlightProps, CrmPropertyListProps, CrmReportProps, CrmAssociationPropertyListProps, CrmAssociationStageTrackerProps, CrmSimpleDeadlineProps, 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;
|
|
@@ -34,6 +34,11 @@ declare const CrmAssociationStageTracker: "CrmAssociationStageTracker" & {
|
|
|
34
34
|
readonly props?: CrmAssociationStageTrackerProps | undefined;
|
|
35
35
|
readonly children?: true | undefined;
|
|
36
36
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmAssociationStageTracker", CrmAssociationStageTrackerProps, true>>;
|
|
37
|
+
declare const CrmSimpleDeadline: "CrmSimpleDeadline" & {
|
|
38
|
+
readonly type?: "CrmSimpleDeadline" | undefined;
|
|
39
|
+
readonly props?: CrmSimpleDeadlineProps | undefined;
|
|
40
|
+
readonly children?: true | undefined;
|
|
41
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmSimpleDeadline", CrmSimpleDeadlineProps, true>>;
|
|
37
42
|
declare const CrmStageTracker: "CrmStageTracker" & {
|
|
38
43
|
readonly type?: "CrmStageTracker" | undefined;
|
|
39
44
|
readonly props?: CrmStageTrackerProps | undefined;
|
|
@@ -59,4 +64,4 @@ declare const CrmCardActions: "CrmCardActions" & {
|
|
|
59
64
|
readonly props?: CrmCardActionsProps | undefined;
|
|
60
65
|
readonly children?: true | undefined;
|
|
61
66
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CrmCardActions", CrmCardActionsProps, true>>;
|
|
62
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
67
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/components.js
CHANGED
|
@@ -6,9 +6,10 @@ const CrmReport = createExtensionComponent('CrmReport');
|
|
|
6
6
|
const CrmAssociationPivot = createExtensionComponent('CrmAssociationPivot');
|
|
7
7
|
const CrmAssociationPropertyList = createExtensionComponent('CrmAssociationPropertyList');
|
|
8
8
|
const CrmAssociationStageTracker = createExtensionComponent('CrmAssociationStageTracker');
|
|
9
|
+
const CrmSimpleDeadline = createExtensionComponent('CrmSimpleDeadline');
|
|
9
10
|
const CrmStageTracker = createExtensionComponent('CrmStageTracker');
|
|
10
11
|
const CrmStatistics = createExtensionComponent('CrmStatistics');
|
|
11
12
|
const CrmActionButton = createExtensionComponent('CrmActionButton');
|
|
12
13
|
const CrmActionLink = createExtensionComponent('CrmActionLink');
|
|
13
14
|
const CrmCardActions = createExtensionComponent('CrmCardActions');
|
|
14
|
-
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
15
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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, };
|
|
1
|
+
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions } from './components';
|
|
2
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
package/dist/crm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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, };
|
|
1
|
+
import { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, } from './components';
|
|
2
|
+
export { CrmPropertyList, CrmAssociationTable, CrmDataHighlight, CrmReport, CrmAssociationPivot, CrmAssociationPropertyList, CrmAssociationStageTracker, CrmSimpleDeadline, CrmStageTracker, CrmStatistics, CrmActionButton, CrmActionLink, CrmCardActions, };
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import type * as types from '../types';
|
|
2
2
|
/** @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. */
|
|
3
|
-
declare const Tooltip: "Tooltip" & {
|
|
4
|
-
readonly type?: "Tooltip" | undefined;
|
|
5
|
-
readonly props?: types.TooltipProps | undefined;
|
|
6
|
-
readonly children?: true | undefined;
|
|
7
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Tooltip", types.TooltipProps, true>>;
|
|
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
|
-
declare const Slider: "Slider" & {
|
|
10
|
-
readonly type?: "Slider" | undefined;
|
|
11
|
-
readonly props?: types.SliderProps | undefined;
|
|
12
|
-
readonly children?: true | undefined;
|
|
13
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Slider", types.SliderProps, true>>;
|
|
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
3
|
declare const Iframe: "Iframe" & {
|
|
16
4
|
readonly type?: "Iframe" | undefined;
|
|
17
5
|
readonly props?: types.IframeProps | undefined;
|
|
18
6
|
readonly children?: true | undefined;
|
|
19
7
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Iframe", types.IframeProps, true>>;
|
|
20
|
-
export {
|
|
8
|
+
export { Iframe };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { createRemoteReactComponent } from '@remote-ui/react';
|
|
2
2
|
/** @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. */
|
|
3
|
-
const Tooltip = createRemoteReactComponent('Tooltip');
|
|
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
|
-
const Slider = createRemoteReactComponent('Slider');
|
|
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
3
|
const Iframe = createRemoteReactComponent('Iframe');
|
|
8
|
-
export {
|
|
4
|
+
export { Iframe };
|
package/dist/types.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface BaseButtonProps {
|
|
|
48
48
|
/**
|
|
49
49
|
* A URL that will be opened when the button is clicked. If the value is a URL external to `hubspot.com` it will be opened in a new tab.
|
|
50
50
|
*/
|
|
51
|
-
href?:
|
|
51
|
+
href?: HrefProp;
|
|
52
52
|
/**
|
|
53
53
|
* Determines whether or not the button should be disabled.
|
|
54
54
|
*/
|
|
@@ -430,7 +430,7 @@ export interface ImageProps extends OverlayComponentProps {
|
|
|
430
430
|
* If provided, will be used as the href that will be opened in a new browser tab on click.
|
|
431
431
|
*
|
|
432
432
|
*/
|
|
433
|
-
href?:
|
|
433
|
+
href?: HrefProp;
|
|
434
434
|
/**
|
|
435
435
|
* A function that will be called when the image is clicked.
|
|
436
436
|
*
|
|
@@ -1138,49 +1138,12 @@ export interface RadioButtonListProps extends ToggleGroupListBaseProps {
|
|
|
1138
1138
|
value?: RadioButtonGroupProps['value'];
|
|
1139
1139
|
onChange?: RadioButtonGroupProps['onChange'];
|
|
1140
1140
|
}
|
|
1141
|
-
|
|
1141
|
+
type ToggleType = 'checkboxList' | 'radioButtonList';
|
|
1142
|
+
export interface CommonGroupProps {
|
|
1142
1143
|
/**
|
|
1143
1144
|
* Denotes the type of list to render.
|
|
1144
|
-
*
|
|
1145
|
-
* @defaultValue `"checkboxList"`
|
|
1146
|
-
*/
|
|
1147
|
-
toggleType: 'checkboxList';
|
|
1148
|
-
/**
|
|
1149
|
-
* A function that is called with the new value or values when the list is updated.
|
|
1150
|
-
*
|
|
1151
|
-
* @event
|
|
1152
1145
|
*/
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* The value of the toggle group.
|
|
1156
|
-
*/
|
|
1157
|
-
value?: string[];
|
|
1158
|
-
}
|
|
1159
|
-
interface RadioButtonGroupProps {
|
|
1160
|
-
/**
|
|
1161
|
-
* Denotes the type of list to render.
|
|
1162
|
-
*
|
|
1163
|
-
* @defaultValue `"checkboxList"`
|
|
1164
|
-
*/
|
|
1165
|
-
toggleType: 'radioButtonList';
|
|
1166
|
-
/**
|
|
1167
|
-
* A function that is called with the new value or values when the list is updated.
|
|
1168
|
-
*
|
|
1169
|
-
* @event
|
|
1170
|
-
*/
|
|
1171
|
-
onChange?: (value: this['value']) => void;
|
|
1172
|
-
/**
|
|
1173
|
-
* The value of the toggle group.
|
|
1174
|
-
*/
|
|
1175
|
-
value?: string;
|
|
1176
|
-
}
|
|
1177
|
-
/**
|
|
1178
|
-
* The props type for {@link !components.ToggleGroup}.
|
|
1179
|
-
*
|
|
1180
|
-
* @interface
|
|
1181
|
-
* @category Component Props
|
|
1182
|
-
*/
|
|
1183
|
-
export type ToggleGroupProps = {
|
|
1146
|
+
toggleType?: ToggleType;
|
|
1184
1147
|
/**
|
|
1185
1148
|
* The unique identifier for the toggle group element.
|
|
1186
1149
|
*/
|
|
@@ -1227,7 +1190,54 @@ export type ToggleGroupProps = {
|
|
|
1227
1190
|
* @defaultValue `"default"`
|
|
1228
1191
|
*/
|
|
1229
1192
|
variant?: 'default' | 'small';
|
|
1230
|
-
|
|
1193
|
+
value?: string[] | string;
|
|
1194
|
+
}
|
|
1195
|
+
type CheckboxGroupProps = {
|
|
1196
|
+
/**
|
|
1197
|
+
* Denotes the type of list to render.
|
|
1198
|
+
*
|
|
1199
|
+
* @defaultValue `"checkboxList"`
|
|
1200
|
+
*/
|
|
1201
|
+
toggleType: 'checkboxList';
|
|
1202
|
+
/**
|
|
1203
|
+
* A function that is called with the new value or values when the list is updated.
|
|
1204
|
+
*
|
|
1205
|
+
* @event
|
|
1206
|
+
*/
|
|
1207
|
+
onChange?: (value: string[]) => void;
|
|
1208
|
+
/**
|
|
1209
|
+
* The value of the toggle group.
|
|
1210
|
+
*/
|
|
1211
|
+
value?: string[];
|
|
1212
|
+
} & CommonGroupProps;
|
|
1213
|
+
type RadioButtonGroupProps = {
|
|
1214
|
+
/**
|
|
1215
|
+
* Denotes the type of list to render.
|
|
1216
|
+
*
|
|
1217
|
+
* @defaultValue `"checkboxList"`
|
|
1218
|
+
*/
|
|
1219
|
+
toggleType: 'radioButtonList';
|
|
1220
|
+
/**
|
|
1221
|
+
* A function that is called with the new value or values when the list is updated.
|
|
1222
|
+
*
|
|
1223
|
+
* @event
|
|
1224
|
+
*/
|
|
1225
|
+
onChange?: (value: string) => void;
|
|
1226
|
+
/**
|
|
1227
|
+
* The value of the toggle group.
|
|
1228
|
+
*/
|
|
1229
|
+
value?: string;
|
|
1230
|
+
} & CommonGroupProps;
|
|
1231
|
+
type DefaultToggleTypeProps = {
|
|
1232
|
+
toggleType?: never;
|
|
1233
|
+
} & CheckboxGroupProps;
|
|
1234
|
+
/**
|
|
1235
|
+
* The props type for {@link !components.ToggleGroup}.
|
|
1236
|
+
*
|
|
1237
|
+
* @interface
|
|
1238
|
+
* @category Component Props
|
|
1239
|
+
*/
|
|
1240
|
+
export type ToggleGroupProps = CheckboxGroupProps | RadioButtonGroupProps | DefaultToggleTypeProps;
|
|
1231
1241
|
/** @ignore */
|
|
1232
1242
|
export interface UserContext {
|
|
1233
1243
|
id: number;
|
|
@@ -1470,9 +1480,11 @@ export interface ExtensionCardContextData {
|
|
|
1470
1480
|
cardTitle?: string;
|
|
1471
1481
|
appId: number | string;
|
|
1472
1482
|
appName?: string;
|
|
1483
|
+
sourceId?: string | null;
|
|
1473
1484
|
objectId: number | string;
|
|
1474
1485
|
objectTypeId: string;
|
|
1475
1486
|
location: keyof ExtensionPoints;
|
|
1487
|
+
appAccessLevel?: 'PRIVATE' | 'PUBLIC';
|
|
1476
1488
|
}
|
|
1477
1489
|
/** @ignore */
|
|
1478
1490
|
export type ExtensionPointAction = (...args: any[]) => Promise<any> | void;
|
|
@@ -1505,16 +1517,24 @@ export type onCrmPropertiesUpdateAction = (properties: string[] | '*', callback:
|
|
|
1505
1517
|
message: string;
|
|
1506
1518
|
}) => void) => void;
|
|
1507
1519
|
/** @ignore */
|
|
1520
|
+
export type CloseOverlayAction = (id: string) => void;
|
|
1521
|
+
/** @ignore */
|
|
1522
|
+
export interface CrmHostActions {
|
|
1523
|
+
addAlert: AddAlertAction;
|
|
1524
|
+
reloadPage: ReloadPageAction;
|
|
1525
|
+
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1526
|
+
openIframeModal: OpenIframeModalAction;
|
|
1527
|
+
refreshObjectProperties: refreshObjectPropertiesAction;
|
|
1528
|
+
onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
|
|
1529
|
+
}
|
|
1530
|
+
/** @ignore */
|
|
1531
|
+
export interface UiePlatformActions {
|
|
1532
|
+
copyTextToClipboard: Clipboard['writeText'];
|
|
1533
|
+
closeOverlay: CloseOverlayAction;
|
|
1534
|
+
}
|
|
1535
|
+
/** @ignore */
|
|
1508
1536
|
export interface StandardCrmExtensionPoint extends ExtensionPointContract {
|
|
1509
|
-
actions:
|
|
1510
|
-
addAlert: AddAlertAction;
|
|
1511
|
-
reloadPage: ReloadPageAction;
|
|
1512
|
-
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1513
|
-
openIframeModal: OpenIframeModalAction;
|
|
1514
|
-
refreshObjectProperties: refreshObjectPropertiesAction;
|
|
1515
|
-
onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
|
|
1516
|
-
copyTextToClipboard?: Clipboard['writeText'];
|
|
1517
|
-
};
|
|
1537
|
+
actions: CrmHostActions & UiePlatformActions;
|
|
1518
1538
|
context: CrmContext;
|
|
1519
1539
|
customComponents: {
|
|
1520
1540
|
CrmPropertyList: ComponentType<CrmPropertyListProps>;
|
|
@@ -1532,15 +1552,9 @@ export interface StandardCrmExtensionPoint extends ExtensionPointContract {
|
|
|
1532
1552
|
CrmCardActions?: ComponentType<CrmCardActionsProps>;
|
|
1533
1553
|
};
|
|
1534
1554
|
}
|
|
1555
|
+
/** @deprecated this interface has been replaced by StandardCrmExtensionPoint */
|
|
1535
1556
|
export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
1536
|
-
actions:
|
|
1537
|
-
addAlert: AddAlertAction;
|
|
1538
|
-
reloadPage: ReloadPageAction;
|
|
1539
|
-
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1540
|
-
openIframeModal: OpenIframeModalAction;
|
|
1541
|
-
refreshObjectProperties: refreshObjectPropertiesAction;
|
|
1542
|
-
onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
|
|
1543
|
-
};
|
|
1557
|
+
actions: CrmHostActions;
|
|
1544
1558
|
context: CrmContext;
|
|
1545
1559
|
customComponents: {
|
|
1546
1560
|
CrmPropertyList: ComponentType<CrmPropertyListProps>;
|
|
@@ -1560,14 +1574,7 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
|
1560
1574
|
}
|
|
1561
1575
|
/** @ignore */
|
|
1562
1576
|
export interface CrmSidebarExtensionPoint extends ExtensionPointContract {
|
|
1563
|
-
actions:
|
|
1564
|
-
addAlert: AddAlertAction;
|
|
1565
|
-
reloadPage: ReloadPageAction;
|
|
1566
|
-
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1567
|
-
openIframeModal: OpenIframeModalAction;
|
|
1568
|
-
refreshObjectProperties?: refreshObjectPropertiesAction;
|
|
1569
|
-
onCrmPropertiesUpdate?: onCrmPropertiesUpdateAction;
|
|
1570
|
-
};
|
|
1577
|
+
actions: CrmHostActions & UiePlatformActions;
|
|
1571
1578
|
context: CrmContext;
|
|
1572
1579
|
customComponents: {
|
|
1573
1580
|
CrmActionButton?: ComponentType<CrmActionButtonProps>;
|
|
@@ -2000,6 +2007,11 @@ export declare class RemoteEvent<V> {
|
|
|
2000
2007
|
targetValue: V;
|
|
2001
2008
|
constructor(value: V, event: Event);
|
|
2002
2009
|
}
|
|
2010
|
+
export type HrefOptions = {
|
|
2011
|
+
url: string;
|
|
2012
|
+
external?: boolean;
|
|
2013
|
+
};
|
|
2014
|
+
export type HrefProp = string | HrefOptions;
|
|
2003
2015
|
/**
|
|
2004
2016
|
* The props type for {@link !components.Link}.
|
|
2005
2017
|
*
|
|
@@ -2015,7 +2027,7 @@ export interface LinkProps extends OverlayComponentProps {
|
|
|
2015
2027
|
* The URL that will be opened on click. Links to pages in the HubSpot account will open in the same tab, while non-HubSpot links will open in a new tab.
|
|
2016
2028
|
*
|
|
2017
2029
|
*/
|
|
2018
|
-
href:
|
|
2030
|
+
href: HrefProp;
|
|
2019
2031
|
/**
|
|
2020
2032
|
* The color variation of the link.
|
|
2021
2033
|
*
|
|
@@ -2421,52 +2433,6 @@ export interface DropdownProps {
|
|
|
2421
2433
|
*/
|
|
2422
2434
|
disabled?: boolean;
|
|
2423
2435
|
}
|
|
2424
|
-
/**
|
|
2425
|
-
* @ignore
|
|
2426
|
-
* @experimental
|
|
2427
|
-
*/
|
|
2428
|
-
export interface TooltipProps {
|
|
2429
|
-
children: ReactNode;
|
|
2430
|
-
delay?: number;
|
|
2431
|
-
maxWidth?: number;
|
|
2432
|
-
open?: boolean;
|
|
2433
|
-
onOpenChange?: () => void;
|
|
2434
|
-
content?: string;
|
|
2435
|
-
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
2436
|
-
}
|
|
2437
|
-
/**
|
|
2438
|
-
* The props type for {@link !components.Slider}.
|
|
2439
|
-
*
|
|
2440
|
-
* @category Component Props
|
|
2441
|
-
* @ignore remove when it's not experimental
|
|
2442
|
-
* @experimental
|
|
2443
|
-
*/
|
|
2444
|
-
export interface SliderProps extends Omit<BaseInputForNumber, 'placeholder'> {
|
|
2445
|
-
/**
|
|
2446
|
-
* Sets the lower bound of the input.
|
|
2447
|
-
* @defaultValue `0`
|
|
2448
|
-
*/
|
|
2449
|
-
min?: number;
|
|
2450
|
-
/**
|
|
2451
|
-
* Sets the upper bound of the input.
|
|
2452
|
-
* @defaultValue `100`
|
|
2453
|
-
*/
|
|
2454
|
-
max?: number;
|
|
2455
|
-
/** The amount that the current value will increase or decrease on each step drag of the mouse
|
|
2456
|
-
* or keyboar interaction
|
|
2457
|
-
* @defaultValue `1`
|
|
2458
|
-
*/
|
|
2459
|
-
stepSize?: number;
|
|
2460
|
-
/** If `true`, it will display the min and max value labels.
|
|
2461
|
-
* @defaultValue `false`
|
|
2462
|
-
*/
|
|
2463
|
-
showLabels?: boolean;
|
|
2464
|
-
/**
|
|
2465
|
-
* Sets the size of the slider
|
|
2466
|
-
* @defaultValue `"md"`
|
|
2467
|
-
*/
|
|
2468
|
-
size?: TShirtSizes['md'] | TShirtSizes['lg'];
|
|
2469
|
-
}
|
|
2470
2436
|
export interface HubSpotFetchOptions {
|
|
2471
2437
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
2472
2438
|
timeout?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.30",
|
|
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": "389360d4b4301252237feec1cf0fcf3b01a20f0c"
|
|
55
55
|
}
|