@hubspot/ui-extensions 0.8.42 → 0.8.43
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.
|
@@ -49,4 +49,9 @@ declare const GridItem: "GridItem" & {
|
|
|
49
49
|
readonly props?: experimentalTypes.GridItemProps | undefined;
|
|
50
50
|
readonly children?: true | undefined;
|
|
51
51
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"GridItem", experimentalTypes.GridItemProps, true>>;
|
|
52
|
-
|
|
52
|
+
declare const SettingsView: "SettingsView" & {
|
|
53
|
+
readonly type?: "SettingsView" | undefined;
|
|
54
|
+
readonly props?: experimentalTypes.SettingsViewProps | undefined;
|
|
55
|
+
readonly children?: true | undefined;
|
|
56
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"SettingsView", experimentalTypes.SettingsViewProps, true>>;
|
|
57
|
+
export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, };
|
|
@@ -18,4 +18,5 @@ const SimpleGrid = createRemoteReactComponent('SimpleGrid');
|
|
|
18
18
|
const Grid = createRemoteReactComponent('Grid');
|
|
19
19
|
/** @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. */
|
|
20
20
|
const GridItem = createRemoteReactComponent('GridItem');
|
|
21
|
-
|
|
21
|
+
const SettingsView = createRemoteReactComponent('SettingsView');
|
|
22
|
+
export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { RemoteFragment } from '@remote-ui/core';
|
|
3
|
-
import type { AllDistances } from '../types';
|
|
3
|
+
import type { AllDistances, ExtensionEvent, ReactionsHandler } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
* @experimental do not use in production
|
|
@@ -79,4 +79,36 @@ export interface GridItemProps {
|
|
|
79
79
|
children?: ReactNode;
|
|
80
80
|
offset?: number;
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* @ignore
|
|
84
|
+
* @experimental do not use in production
|
|
85
|
+
*/
|
|
86
|
+
export interface SettingsViewProps {
|
|
87
|
+
/**
|
|
88
|
+
* Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
|
|
89
|
+
*/
|
|
90
|
+
children: ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* If set to `true`, will show the save bar with "cancel" and "save" buttons at the bottom of the page.
|
|
93
|
+
*
|
|
94
|
+
* @defaultValue `false`
|
|
95
|
+
*/
|
|
96
|
+
saveBarVisible?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Used in the save bar to let the user know how many settings they've changed and not yet saved.
|
|
99
|
+
*/
|
|
100
|
+
numberOfSettingsChanged?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The function that will be invoked when the save button in the save bar is clicked.
|
|
103
|
+
*
|
|
104
|
+
* @event
|
|
105
|
+
*/
|
|
106
|
+
onSave?: ReactionsHandler<ExtensionEvent>;
|
|
107
|
+
/**
|
|
108
|
+
* The function that will be invoked when the cancel button in the save bar is clicked.
|
|
109
|
+
*
|
|
110
|
+
* @event
|
|
111
|
+
*/
|
|
112
|
+
onCancel?: ReactionsHandler<ExtensionEvent>;
|
|
113
|
+
}
|
|
82
114
|
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.43",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react-reconciler": "^0.29.0",
|
|
61
61
|
"typescript": "5.0.4"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a140eea0a991c41c86030a5017b54bfd6151ab4c"
|
|
64
64
|
}
|