@hubspot/ui-extensions 0.8.7 → 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 +19 -5
- package/dist/coreComponents.js +4 -4
- package/dist/experimental/experimentalComponents.d.ts +6 -6
- package/dist/experimental/experimentalComponents.js +2 -4
- package/dist/experimental/index.d.ts +1 -2
- package/dist/experimental/index.js +1 -2
- package/dist/types.d.ts +62 -7
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -226,14 +226,28 @@ export declare const Toggle: "Toggle" & {
|
|
|
226
226
|
readonly props?: types.ToggleProps | undefined;
|
|
227
227
|
readonly children?: true | undefined;
|
|
228
228
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Toggle", types.ToggleProps, true>>;
|
|
229
|
-
|
|
229
|
+
export declare const Dropdown: "Dropdown" & {
|
|
230
|
+
readonly type?: "Dropdown" | undefined;
|
|
231
|
+
readonly props?: types.DropdownProps | undefined;
|
|
232
|
+
readonly children?: true | undefined;
|
|
233
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Dropdown", types.DropdownProps, true>>;
|
|
230
234
|
export declare const Panel: "Panel" & {
|
|
231
235
|
readonly type?: "Panel" | undefined;
|
|
232
236
|
readonly props?: types.PanelProps | undefined;
|
|
233
237
|
readonly children?: true | undefined;
|
|
234
238
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Panel", types.PanelProps, true>>;
|
|
235
|
-
export declare const
|
|
236
|
-
readonly type?: "
|
|
237
|
-
readonly props?: types.
|
|
239
|
+
export declare const PanelFooter: "PanelFooter" & {
|
|
240
|
+
readonly type?: "PanelFooter" | undefined;
|
|
241
|
+
readonly props?: types.PanelFooterProps | undefined;
|
|
238
242
|
readonly children?: true | undefined;
|
|
239
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"
|
|
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
|
@@ -48,8 +48,8 @@ export const Checkbox = createRemoteReactComponent('Checkbox');
|
|
|
48
48
|
export const RadioButton = createRemoteReactComponent('RadioButton');
|
|
49
49
|
export const List = createRemoteReactComponent('List');
|
|
50
50
|
export const Toggle = createRemoteReactComponent('Toggle');
|
|
51
|
-
/** @experimental */
|
|
52
|
-
export const Panel = createRemoteReactComponent('Panel', {
|
|
53
|
-
fragmentProps: ['footer'],
|
|
54
|
-
});
|
|
55
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,13 +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
3
|
export declare const Tooltip: "Tooltip" & {
|
|
10
4
|
readonly type?: "Tooltip" | undefined;
|
|
11
5
|
readonly props?: types.TooltipProps | undefined;
|
|
12
6
|
readonly children?: true | undefined;
|
|
13
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,7 +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
|
-
fragmentProps: ['footer'],
|
|
5
|
-
});
|
|
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
|
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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Panel, Tooltip };
|
|
1
|
+
export { Tooltip, Slider } from './experimentalComponents';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Panel, Tooltip };
|
|
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: {
|
|
@@ -1978,22 +1984,38 @@ export interface PanelProps {
|
|
|
1978
1984
|
*/
|
|
1979
1985
|
title?: string;
|
|
1980
1986
|
/**
|
|
1981
|
-
* The
|
|
1987
|
+
* The variant of the panel
|
|
1982
1988
|
*
|
|
1989
|
+
* @defaultValue `"default"`
|
|
1983
1990
|
*/
|
|
1984
|
-
|
|
1991
|
+
variant?: 'modal' | 'default';
|
|
1992
|
+
}
|
|
1993
|
+
export interface PanelSectionProps {
|
|
1985
1994
|
/**
|
|
1986
|
-
* When set to `true`, the
|
|
1995
|
+
* When set to `true`, the section will have no bottom margin
|
|
1987
1996
|
*
|
|
1988
1997
|
* @defaultValue `false`
|
|
1989
1998
|
*/
|
|
1990
1999
|
flush?: boolean;
|
|
1991
2000
|
/**
|
|
1992
|
-
* The
|
|
2001
|
+
* The main content of the section
|
|
1993
2002
|
*
|
|
1994
|
-
* @defaultValue `"default"`
|
|
1995
2003
|
*/
|
|
1996
|
-
|
|
2004
|
+
children: React.ReactNode;
|
|
2005
|
+
}
|
|
2006
|
+
export interface PanelBodyProps {
|
|
2007
|
+
/**
|
|
2008
|
+
* The main content of the body
|
|
2009
|
+
*
|
|
2010
|
+
*/
|
|
2011
|
+
children: React.ReactNode;
|
|
2012
|
+
}
|
|
2013
|
+
export interface PanelFooterProps {
|
|
2014
|
+
/**
|
|
2015
|
+
* The main content of the footer
|
|
2016
|
+
*
|
|
2017
|
+
*/
|
|
2018
|
+
children: React.ReactNode;
|
|
1997
2019
|
}
|
|
1998
2020
|
export interface DropdownOption {
|
|
1999
2021
|
/**
|
|
@@ -2052,4 +2074,37 @@ export interface TooltipProps {
|
|
|
2052
2074
|
content?: string;
|
|
2053
2075
|
placement?: 'left' | 'right' | 'top' | 'bottom';
|
|
2054
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
|
+
}
|
|
2055
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
|
}
|