@hubspot/ui-extensions 0.8.39 → 0.8.41

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/types.d.ts CHANGED
@@ -1425,6 +1425,10 @@ export interface CrmContext extends BaseContext {
1425
1425
  extension?: AppContext;
1426
1426
  }
1427
1427
  /** @ignore */
1428
+ export interface SettingsContext extends BaseContext {
1429
+ location: 'settings';
1430
+ }
1431
+ /** @ignore */
1428
1432
  export interface GenericContext extends BaseContext {
1429
1433
  location: 'uie.playground.middle';
1430
1434
  }
@@ -1627,19 +1631,22 @@ export interface ServerlessErrorResponse {
1627
1631
  status: number;
1628
1632
  }
1629
1633
  /** @ignore */
1630
- export interface ExtensionCardContextData {
1631
- cardId: string;
1632
- cardTitle?: string;
1634
+ export interface ExtensionContextData {
1633
1635
  appId: number | string;
1634
1636
  appName?: string;
1635
- sourceId?: string | null;
1636
- objectId: number | string;
1637
- objectTypeId: string;
1638
1637
  location: keyof ExtensionPoints;
1638
+ sourceId?: string | null;
1639
+ appAccessLevel: 'PUBLIC' | 'PRIVATE';
1639
1640
  additionalProperties?: {
1640
1641
  [key: string]: string;
1641
1642
  } | null;
1642
- appAccessLevel: 'PUBLIC' | 'PRIVATE';
1643
+ }
1644
+ /** @ignore */
1645
+ export interface ExtensionCardContextData extends ExtensionContextData {
1646
+ cardId: string;
1647
+ cardTitle?: string;
1648
+ objectId: number | string;
1649
+ objectTypeId: string;
1643
1650
  }
1644
1651
  /** @ignore */
1645
1652
  export type ExtensionPointAction = (...args: any[]) => Promise<any> | void;
@@ -1739,6 +1746,11 @@ export interface CrmSidebarExtensionPoint extends ExtensionPointContract {
1739
1746
  };
1740
1747
  }
1741
1748
  /** @ignore */
1749
+ export interface SettingsExtensionPoint extends ExtensionPointContract {
1750
+ actions: UiePlatformActions;
1751
+ context: SettingsContext;
1752
+ }
1753
+ /** @ignore */
1742
1754
  export interface CrmDataHighlightProps {
1743
1755
  properties: Array<string>;
1744
1756
  objectTypeId?: string;
@@ -1989,7 +2001,7 @@ interface RemotePlaygroundExtensionPoint extends ExtensionPointContract {
1989
2001
  ExampleCrmComponent: ComponentType<ExampleCrmComponentProps>;
1990
2002
  };
1991
2003
  }
1992
- export declare const EXTENSION_POINT_LOCATIONS: readonly ["crm.preview", "crm.record.sidebar", "crm.record.tab", "helpdesk.sidebar", "uie.playground.middle"];
2004
+ export declare const EXTENSION_POINT_LOCATIONS: readonly ["crm.preview", "crm.record.sidebar", "crm.record.tab", "helpdesk.sidebar", "uie.playground.middle", "settings"];
1993
2005
  export type ExtensionPointLocation = TypesOfReadOnlyArray<typeof EXTENSION_POINT_LOCATIONS>;
1994
2006
  /** @ignore */
1995
2007
  interface LocationToExtensionPoint {
@@ -1998,6 +2010,7 @@ interface LocationToExtensionPoint {
1998
2010
  'crm.preview': StandardCrmExtensionPoint;
1999
2011
  'crm.record.sidebar': CrmSidebarExtensionPoint;
2000
2012
  'helpdesk.sidebar': StandardCrmExtensionPoint;
2013
+ settings: SettingsExtensionPoint;
2001
2014
  }
2002
2015
  /**
2003
2016
  * While this resolves to the same result as LocationToExtensionPoint, it ensures that every location
@@ -2036,6 +2049,7 @@ interface OpenIframeActionPayload {
2036
2049
  uri: string;
2037
2050
  height: number;
2038
2051
  width: number;
2052
+ /** @deprecated This property is no longer functional and has no effect. Please avoid using it, as it will be removed in future updates */
2039
2053
  associatedObjectProperties?: string[];
2040
2054
  title?: string;
2041
2055
  flush?: boolean;
@@ -2652,15 +2666,4 @@ export type ProxyMetadata = {
2652
2666
  userId?: number;
2653
2667
  portalId?: number;
2654
2668
  };
2655
- /**
2656
- * @ignore
2657
- * @experimental
2658
- */
2659
- export interface MediaObjectProps {
2660
- align?: 'start' | 'center' | 'baseline' | 'end' | 'stretch';
2661
- spacing?: 'none' | 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
2662
- children?: ReactNode;
2663
- itemLeft?: RemoteFragment;
2664
- itemRight?: RemoteFragment;
2665
- }
2666
2669
  export {};
package/dist/types.js CHANGED
@@ -78,6 +78,7 @@ export const EXTENSION_POINT_LOCATIONS = [
78
78
  'crm.record.tab',
79
79
  'helpdesk.sidebar',
80
80
  'uie.playground.middle',
81
+ 'settings',
81
82
  ];
82
83
  /** @deprecated use ExtensionEvent/FormSubmitExtensionEvent instead */
83
84
  export class RemoteEvent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.39",
3
+ "version": "0.8.41",
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": "3dbfe0afee58682d51c4a5eb7e0e40a6e3920631"
63
+ "gitHead": "ce6d6332d471d5c5ac127de88a8fa51dd7506c3e"
64
64
  }