@hubspot/ui-extensions 0.8.31 → 0.8.33

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +40 -3
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -257,6 +257,12 @@ export type AxisPairOptions = {
257
257
  * @defaultValue `false`
258
258
  */
259
259
  stacking?: boolean;
260
+ /**
261
+ * If provided, assigns a color to each specified values of the field provided in `groupFieldByColor`.
262
+ */
263
+ colors?: {
264
+ [key: string]: ChartColor;
265
+ };
260
266
  };
261
267
  export declare const chartFieldTypes: {
262
268
  readonly datetime: "datetime";
@@ -273,6 +279,10 @@ export declare const chartFieldTypes: {
273
279
  */
274
280
  export type ChartFieldType = keyof typeof chartFieldTypes;
275
281
  export type ChartOptions = {
282
+ /**
283
+ * Renders a title above the chart.
284
+ */
285
+ title?: string;
276
286
  /**
277
287
  * When set to `true`, shows a legend for the chart.
278
288
  *
@@ -292,9 +302,12 @@ export type ChartOptions = {
292
302
  */
293
303
  showDataLabels?: boolean;
294
304
  /**
295
- * Use to choose the order in which our chart colors are assigned to your data. Unspecified colors will be chosen after the ones you've provided here.
305
+ * Use to choose the order in which our chart colors are assigned to your data. Unspecified colors will be chosen after the ones you've provided here,
306
+ * so you don't need to provide a complete list of all possible colors.
296
307
  * Please read the documentation for guidance on color usage.
297
308
  */
309
+ colorList?: ChartColor[];
310
+ /** @deprecated use colorList instead */
298
311
  colors?: ChartColor[];
299
312
  };
300
313
  /**
@@ -435,6 +448,11 @@ export interface FormProps {
435
448
  onSubmit?: ReactionsHandler<FormSubmitExtensionEvent<FormInputValues>>;
436
449
  /** @deprecated the value for `preventDefault` is now always `true`, use `onSubmit` to handle all form submission behavior */
437
450
  preventDefault?: boolean;
451
+ /**
452
+ * Specifies how autcomplete behaves in the entire form.
453
+ * @defaultValue `"on"`
454
+ */
455
+ autoComplete?: 'off' | 'on';
438
456
  }
439
457
  /**
440
458
  * The props type for {@link !components.Heading}.
@@ -1056,13 +1074,19 @@ export interface TagProps extends OverlayComponentProps {
1056
1074
  *
1057
1075
  * @defaultValue `"default"`
1058
1076
  */
1059
- variant?: 'default' | 'warning' | 'success' | 'error';
1077
+ variant?: 'default' | 'warning' | 'success' | 'error' | 'info';
1060
1078
  /**
1061
1079
  * A function that will be invoked when the tag is clicked.
1062
1080
  *
1063
1081
  * @event
1064
1082
  */
1065
1083
  onClick?: ReactionsHandler<ExtensionEvent>;
1084
+ /**
1085
+ * When set to true, this component can be aligned side-by-side with text.
1086
+ *
1087
+ * @defaultValue `false`
1088
+ */
1089
+ inline?: boolean;
1066
1090
  }
1067
1091
  /**
1068
1092
  * @internal
@@ -1475,6 +1499,10 @@ export interface StatisticsTrendProps {
1475
1499
  * @defaultValue `"increase"`
1476
1500
  */
1477
1501
  direction: 'increase' | 'decrease';
1502
+ /**
1503
+ * The color of the trend arrow.
1504
+ */
1505
+ color?: 'red' | 'green';
1478
1506
  }
1479
1507
  /**
1480
1508
  * The props type for {@link !components.StatisticsItem}.
@@ -1608,7 +1636,10 @@ export interface ExtensionCardContextData {
1608
1636
  objectId: number | string;
1609
1637
  objectTypeId: string;
1610
1638
  location: keyof ExtensionPoints;
1611
- appAccessLevel: 'PRIVATE' | 'PUBLIC';
1639
+ additionalProperties?: {
1640
+ [key: string]: string;
1641
+ } | null;
1642
+ appAccessLevel: 'PUBLIC' | 'PRIVATE';
1612
1643
  }
1613
1644
  /** @ignore */
1614
1645
  export type ExtensionPointAction = (...args: any[]) => Promise<any> | void;
@@ -1669,6 +1700,7 @@ export interface StandardCrmExtensionPoint extends ExtensionPointContract {
1669
1700
  CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
1670
1701
  CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
1671
1702
  CrmSimpleDeadline?: ComponentType<CrmSimpleDeadlineProps>;
1703
+ CrmRelativeTimeline?: ComponentType<CrmRelativeTimelineProps>;
1672
1704
  CrmStageTracker: ComponentType<CrmStageTrackerProps>;
1673
1705
  CrmStatistics?: ComponentType<CrmStatisticsProps>;
1674
1706
  CrmActionButton?: ComponentType<CrmActionButtonProps>;
@@ -1689,6 +1721,7 @@ export interface CrmMiddleExtensionPoint extends ExtensionPointContract {
1689
1721
  CrmAssociationPropertyList: ComponentType<CrmAssociationPropertyListProps>;
1690
1722
  CrmAssociationStageTracker?: ComponentType<CrmAssociationStageTrackerProps>;
1691
1723
  CrmSimpleDeadline?: ComponentType<CrmSimpleDeadlineProps>;
1724
+ CrmRelativeTimeline?: ComponentType<CrmRelativeTimelineProps>;
1692
1725
  CrmStageTracker: ComponentType<CrmStageTrackerProps>;
1693
1726
  CrmStatistics?: ComponentType<CrmStatisticsProps>;
1694
1727
  CrmActionButton?: ComponentType<CrmActionButtonProps>;
@@ -1782,6 +1815,10 @@ export interface CrmSimpleDeadlineProps {
1782
1815
  startDatePropertyName: string;
1783
1816
  }
1784
1817
  /** @ignore */
1818
+ export interface CrmRelativeTimelineProps {
1819
+ properties: Array<string>;
1820
+ }
1821
+ /** @ignore */
1785
1822
  export interface CrmStageTrackerProps {
1786
1823
  objectId?: number;
1787
1824
  objectTypeId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.31",
3
+ "version": "0.8.33",
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": "6b4dc14443e533403206aeb72635132851b5f558"
54
+ "gitHead": "43946879c6cc1dbd76102fe92f6c1838ea34db6b"
55
55
  }