@hubspot/ui-extensions 0.5.0 → 0.6.0
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/README.md +8 -1
- package/dist/coreComponents.d.ts +5 -4
- package/dist/coreComponents.js +1 -0
- package/dist/types.d.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1565,12 +1565,16 @@ import { TableCell } from '@hubspot/ui-extensions';
|
|
|
1565
1565
|
```typescript
|
|
1566
1566
|
interface TableCellProps {
|
|
1567
1567
|
children: ReactNode;
|
|
1568
|
+
width?: 'min' | 'max' | 'auto' | number;
|
|
1569
|
+
align?: 'left' | 'center' | 'right';
|
|
1568
1570
|
}
|
|
1569
1571
|
```
|
|
1570
1572
|
|
|
1571
1573
|
| Prop | Type | Default | Description |
|
|
1572
1574
|
| --- | --- | --- | --- |
|
|
1573
1575
|
| `children` | `ReactNode` | `N/A` | Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. |
|
|
1576
|
+
| `width` | `'min' \| 'max' \| 'auto' \| number` | `'auto'` | Sets the width of a table cell |
|
|
1577
|
+
| `align` | `'left' \| 'center' \| 'right'` | `'left'` | Sets the alignment of a table cell |
|
|
1574
1578
|
|
|
1575
1579
|
##### Usage
|
|
1576
1580
|
|
|
@@ -1713,13 +1717,16 @@ import { TableHeader } from '@hubspot/ui-extensions';
|
|
|
1713
1717
|
```typescript
|
|
1714
1718
|
interface TableHeaderProps {
|
|
1715
1719
|
children: ReactNode;
|
|
1720
|
+
width?: 'min' | 'max' | 'auto' | number;
|
|
1721
|
+
align?: 'left' | 'center' | 'right';
|
|
1716
1722
|
}
|
|
1717
1723
|
```
|
|
1718
1724
|
|
|
1719
1725
|
| Prop | Type | Default | Description |
|
|
1720
1726
|
| --- | --- | --- | --- |
|
|
1721
1727
|
| `children` | `ReactNode` | `N/A` | Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components. |
|
|
1722
|
-
|
|
1728
|
+
| `width` | `'min' \| 'max' \| 'auto' \| 'large'` | `'auto'` | Sets the width of a table header |
|
|
1729
|
+
| `align` | `'left' \| 'center' \| 'right'` | `'left'` | Sets the alignment of a table header |
|
|
1723
1730
|
##### Usage
|
|
1724
1731
|
|
|
1725
1732
|
```javascript
|
package/dist/coreComponents.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare const TextArea: "TextArea" & {
|
|
|
74
74
|
readonly props?: types.TextAreaProps | undefined;
|
|
75
75
|
readonly children?: true | undefined;
|
|
76
76
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TextArea", types.TextAreaProps, true>>;
|
|
77
|
+
/** @deprecated use TextArea instead. With a capital A.*/
|
|
77
78
|
export declare const Textarea: "Textarea" & {
|
|
78
79
|
readonly type?: "Textarea" | undefined;
|
|
79
80
|
readonly props?: types.TextAreaProps | undefined;
|
|
@@ -146,9 +147,9 @@ export declare const TableFooter: "TableFooter" & {
|
|
|
146
147
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableFooter", types.TableElementProps, true>>;
|
|
147
148
|
export declare const TableCell: "TableCell" & {
|
|
148
149
|
readonly type?: "TableCell" | undefined;
|
|
149
|
-
readonly props?: types.
|
|
150
|
+
readonly props?: types.TableCellProps | undefined;
|
|
150
151
|
readonly children?: true | undefined;
|
|
151
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableCell", types.
|
|
152
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableCell", types.TableCellProps, true>>;
|
|
152
153
|
export declare const TableRow: "TableRow" & {
|
|
153
154
|
readonly type?: "TableRow" | undefined;
|
|
154
155
|
readonly props?: types.TableElementProps | undefined;
|
|
@@ -161,9 +162,9 @@ export declare const TableBody: "TableBody" & {
|
|
|
161
162
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableBody", types.TableElementProps, true>>;
|
|
162
163
|
export declare const TableHeader: "TableHeader" & {
|
|
163
164
|
readonly type?: "TableHeader" | undefined;
|
|
164
|
-
readonly props?: types.
|
|
165
|
+
readonly props?: types.TableHeaderProps | undefined;
|
|
165
166
|
readonly children?: true | undefined;
|
|
166
|
-
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableHeader", types.
|
|
167
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TableHeader", types.TableHeaderProps, true>>;
|
|
167
168
|
export declare const TableHead: "TableHead" & {
|
|
168
169
|
readonly type?: "TableHead" | undefined;
|
|
169
170
|
readonly props?: types.TableElementProps | undefined;
|
package/dist/coreComponents.js
CHANGED
|
@@ -16,6 +16,7 @@ export const Link = createRemoteReactComponent('Link');
|
|
|
16
16
|
export const TextArea = createRemoteReactComponent('TextArea');
|
|
17
17
|
// Textarea was changed to TextArea
|
|
18
18
|
// Exporting both for backwards compat
|
|
19
|
+
/** @deprecated use TextArea instead. With a capital A.*/
|
|
19
20
|
export const Textarea = createRemoteReactComponent('Textarea');
|
|
20
21
|
export const LoadingSpinner = createRemoteReactComponent('LoadingSpinner');
|
|
21
22
|
export const ProgressBar = createRemoteReactComponent('ProgressBar');
|
package/dist/types.d.ts
CHANGED
|
@@ -308,7 +308,9 @@ export interface ServerlessErrorResponse {
|
|
|
308
308
|
}
|
|
309
309
|
export interface ExtensionCardContextData {
|
|
310
310
|
cardId: string;
|
|
311
|
+
cardTitle?: string;
|
|
311
312
|
appId: number | string;
|
|
313
|
+
appName?: string;
|
|
312
314
|
objectId: number | string;
|
|
313
315
|
objectTypeId: string;
|
|
314
316
|
location: keyof ExtensionPoints;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "5.0.4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1979c2dce0a920c10e4f8b5ec3bc16a1080120cb"
|
|
52
52
|
}
|