@hubspot/ui-extensions 0.8.8 → 0.8.9
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 +20 -0
- package/dist/coreComponents.js +4 -0
- package/dist/experimental/experimentalComponents.d.ts +6 -24
- package/dist/experimental/experimentalComponents.js +2 -8
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/types.d.ts +40 -12
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -231,3 +231,23 @@ export declare const Dropdown: "Dropdown" & {
|
|
|
231
231
|
readonly props?: types.DropdownProps | undefined;
|
|
232
232
|
readonly children?: true | undefined;
|
|
233
233
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Dropdown", types.DropdownProps, true>>;
|
|
234
|
+
export declare const Panel: "Panel" & {
|
|
235
|
+
readonly type?: "Panel" | undefined;
|
|
236
|
+
readonly props?: types.PanelProps | undefined;
|
|
237
|
+
readonly children?: true | undefined;
|
|
238
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Panel", types.PanelProps, true>>;
|
|
239
|
+
export declare const PanelFooter: "PanelFooter" & {
|
|
240
|
+
readonly type?: "PanelFooter" | undefined;
|
|
241
|
+
readonly props?: types.PanelFooterProps | undefined;
|
|
242
|
+
readonly children?: true | undefined;
|
|
243
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelFooter", types.PanelFooterProps, true>>;
|
|
244
|
+
export declare const PanelBody: "PanelBody" & {
|
|
245
|
+
readonly type?: "PanelBody" | undefined;
|
|
246
|
+
readonly props?: types.PanelBodyProps | undefined;
|
|
247
|
+
readonly children?: true | undefined;
|
|
248
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelBody", types.PanelBodyProps, true>>;
|
|
249
|
+
export declare const PanelSection: "PanelSection" & {
|
|
250
|
+
readonly type?: "PanelSection" | undefined;
|
|
251
|
+
readonly props?: types.PanelSectionProps | undefined;
|
|
252
|
+
readonly children?: true | undefined;
|
|
253
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelSection", types.PanelSectionProps, true>>;
|
package/dist/coreComponents.js
CHANGED
|
@@ -49,3 +49,7 @@ export const RadioButton = createRemoteReactComponent('RadioButton');
|
|
|
49
49
|
export const List = createRemoteReactComponent('List');
|
|
50
50
|
export const Toggle = createRemoteReactComponent('Toggle');
|
|
51
51
|
export const Dropdown = createRemoteReactComponent('Dropdown');
|
|
52
|
+
export const Panel = createRemoteReactComponent('Panel');
|
|
53
|
+
export const PanelFooter = createRemoteReactComponent('PanelFooter');
|
|
54
|
+
export const PanelBody = createRemoteReactComponent('PanelBody');
|
|
55
|
+
export const PanelSection = createRemoteReactComponent('PanelSection');
|
|
@@ -1,31 +1,13 @@
|
|
|
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
|
-
export declare const Panel: "Panel" & {
|
|
4
|
-
readonly type?: "Panel" | undefined;
|
|
5
|
-
readonly props?: types.PanelProps | undefined;
|
|
6
|
-
readonly children?: true | undefined;
|
|
7
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Panel", types.PanelProps, 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
|
-
export declare const PanelFooter: "PanelFooter" & {
|
|
10
|
-
readonly type?: "PanelFooter" | undefined;
|
|
11
|
-
readonly props?: types.PanelFooterProps | undefined;
|
|
12
|
-
readonly children?: true | undefined;
|
|
13
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelFooter", types.PanelFooterProps, 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
|
-
export declare const PanelBody: "PanelBody" & {
|
|
16
|
-
readonly type?: "PanelBody" | undefined;
|
|
17
|
-
readonly props?: types.PanelBodyProps | undefined;
|
|
18
|
-
readonly children?: true | undefined;
|
|
19
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelBody", types.PanelBodyProps, 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
|
-
export declare const PanelSection: "PanelSection" & {
|
|
22
|
-
readonly type?: "PanelSection" | undefined;
|
|
23
|
-
readonly props?: types.PanelSectionProps | undefined;
|
|
24
|
-
readonly children?: true | undefined;
|
|
25
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"PanelSection", types.PanelSectionProps, true>>;
|
|
26
|
-
/** @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. */
|
|
27
3
|
export declare const Tooltip: "Tooltip" & {
|
|
28
4
|
readonly type?: "Tooltip" | undefined;
|
|
29
5
|
readonly props?: types.TooltipProps | undefined;
|
|
30
6
|
readonly children?: true | undefined;
|
|
31
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
|
+
export 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>>;
|
|
@@ -1,11 +1,5 @@
|
|
|
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
|
-
export const Panel = createRemoteReactComponent('Panel');
|
|
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
|
-
export const PanelFooter = createRemoteReactComponent('PanelFooter');
|
|
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
|
-
export const PanelBody = createRemoteReactComponent('PanelBody');
|
|
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
|
-
export const PanelSection = createRemoteReactComponent('PanelSection');
|
|
10
|
-
/** @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. */
|
|
11
3
|
export 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
|
+
export const Slider = createRemoteReactComponent('Slider');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Tooltip, Slider } from './experimentalComponents';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Tooltip, Slider } from './experimentalComponents';
|
package/dist/types.d.ts
CHANGED
|
@@ -1264,12 +1264,16 @@ export type AddAlertAction = (args: {
|
|
|
1264
1264
|
/** @ignore */
|
|
1265
1265
|
export type ReloadPageAction = () => void;
|
|
1266
1266
|
/** @ignore */
|
|
1267
|
-
export type FetchCrmObjectPropertiesAction = (properties: string[]) => Promise<Record<string, string>>;
|
|
1267
|
+
export type FetchCrmObjectPropertiesAction = (properties: string[] | '*') => Promise<Record<string, string>>;
|
|
1268
1268
|
/** @ignore */
|
|
1269
1269
|
export type OpenIframeModalAction = (action: OpenIframeActionPayload) => void;
|
|
1270
1270
|
/** @ignore */
|
|
1271
1271
|
export type refreshObjectPropertiesAction = () => void;
|
|
1272
1272
|
/** @ignore */
|
|
1273
|
+
export type onCrmPropertiesUpdateAction = (properties: string[] | '*', callback: (properties: Record<string, string>, error?: {
|
|
1274
|
+
message: string;
|
|
1275
|
+
}) => void) => void;
|
|
1276
|
+
/** @ignore */
|
|
1273
1277
|
export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
1274
1278
|
actions: {
|
|
1275
1279
|
addAlert: AddAlertAction;
|
|
@@ -1277,6 +1281,7 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
|
|
|
1277
1281
|
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1278
1282
|
openIframeModal: OpenIframeModalAction;
|
|
1279
1283
|
refreshObjectProperties?: refreshObjectPropertiesAction;
|
|
1284
|
+
onCrmPropertiesUpdate?: onCrmPropertiesUpdateAction;
|
|
1280
1285
|
};
|
|
1281
1286
|
context: CrmContext;
|
|
1282
1287
|
customComponents: {
|
|
@@ -1302,6 +1307,7 @@ export interface CrmSidebarExtensionPoint extends ExtensionPointContract {
|
|
|
1302
1307
|
fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
|
|
1303
1308
|
openIframeModal: OpenIframeModalAction;
|
|
1304
1309
|
refreshObjectProperties?: refreshObjectPropertiesAction;
|
|
1310
|
+
onCrmPropertiesUpdate?: onCrmPropertiesUpdateAction;
|
|
1305
1311
|
};
|
|
1306
1312
|
context: CrmContext;
|
|
1307
1313
|
customComponents: {
|
|
@@ -1977,17 +1983,6 @@ export interface PanelProps {
|
|
|
1977
1983
|
*
|
|
1978
1984
|
*/
|
|
1979
1985
|
title?: string;
|
|
1980
|
-
/**
|
|
1981
|
-
* The Footer of the panel
|
|
1982
|
-
*
|
|
1983
|
-
*/
|
|
1984
|
-
footer?: React.ReactNode;
|
|
1985
|
-
/**
|
|
1986
|
-
* When set to `true`, the table will not have side padding.
|
|
1987
|
-
*
|
|
1988
|
-
* @defaultValue `false`
|
|
1989
|
-
*/
|
|
1990
|
-
flush?: boolean;
|
|
1991
1986
|
/**
|
|
1992
1987
|
* The variant of the panel
|
|
1993
1988
|
*
|
|
@@ -2079,4 +2074,37 @@ export interface TooltipProps {
|
|
|
2079
2074
|
content?: string;
|
|
2080
2075
|
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
2081
2076
|
}
|
|
2077
|
+
/**
|
|
2078
|
+
* The props type for {@link !components.Slider}.
|
|
2079
|
+
*
|
|
2080
|
+
* @category Component Props
|
|
2081
|
+
* @ignore remove when it's not experimental
|
|
2082
|
+
* @experimental
|
|
2083
|
+
*/
|
|
2084
|
+
export interface SliderProps extends Omit<BaseInputForNumber, 'placeholder'> {
|
|
2085
|
+
/**
|
|
2086
|
+
* Sets the lower bound of the input.
|
|
2087
|
+
* @defaultValue `0`
|
|
2088
|
+
*/
|
|
2089
|
+
min?: number;
|
|
2090
|
+
/**
|
|
2091
|
+
* Sets the upper bound of the input.
|
|
2092
|
+
* @defaultValue `100`
|
|
2093
|
+
*/
|
|
2094
|
+
max?: number;
|
|
2095
|
+
/** The amount that the current value will increase or decrease on each step drag of the mouse
|
|
2096
|
+
* or keyboar interaction
|
|
2097
|
+
* @defaultValue `1`
|
|
2098
|
+
*/
|
|
2099
|
+
stepSize?: number;
|
|
2100
|
+
/** If `true`, it will display the min and max value labels.
|
|
2101
|
+
* @defaultValue `false`
|
|
2102
|
+
*/
|
|
2103
|
+
showLabels?: boolean;
|
|
2104
|
+
/**
|
|
2105
|
+
* Sets the size of the slider
|
|
2106
|
+
* @defaultValue `"md"`
|
|
2107
|
+
*/
|
|
2108
|
+
size?: TShirtSizes['md'] | TShirtSizes['lg'];
|
|
2109
|
+
}
|
|
2082
2110
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
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": "03c10fd116330e174654829acfa99c5e41ff870e"
|
|
55
55
|
}
|