@hubspot/ui-extensions 0.9.2 → 0.9.4
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/__tests__/experimental/crm/fetchAssociations.spec.d.ts +1 -0
- package/dist/__tests__/experimental/crm/fetchAssociations.spec.js +396 -0
- package/dist/__tests__/experimental/crm/fetchCrmProperties.spec.js +180 -14
- package/dist/__tests__/experimental/hooks/useAssociations.spec.d.ts +1 -0
- package/dist/__tests__/experimental/hooks/useAssociations.spec.js +368 -0
- package/dist/__tests__/experimental/hooks/useCrmProperties.spec.js +151 -4
- package/dist/experimental/crm/fetchAssociations.d.ts +29 -0
- package/dist/experimental/crm/fetchAssociations.js +42 -0
- package/dist/experimental/crm/fetchCrmProperties.d.ts +23 -2
- package/dist/experimental/crm/fetchCrmProperties.js +22 -16
- package/dist/experimental/hooks/useAssociations.d.ts +10 -0
- package/dist/experimental/hooks/useAssociations.js +116 -0
- package/dist/experimental/hooks/useCrmProperties.d.ts +3 -2
- package/dist/experimental/hooks/useCrmProperties.js +95 -31
- package/dist/experimental/index.d.ts +34 -1
- package/dist/experimental/index.js +19 -4
- package/dist/experimental/types.d.ts +212 -6
- package/dist/types.d.ts +15 -1
- package/dist/types.js +1 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -231,6 +231,10 @@ export interface SettingsActions {
|
|
|
231
231
|
addAlert: AddAlertAction;
|
|
232
232
|
}
|
|
233
233
|
/** @ignore */
|
|
234
|
+
export interface AppHomeActions {
|
|
235
|
+
addAlert: AddAlertAction;
|
|
236
|
+
}
|
|
237
|
+
/** @ignore */
|
|
234
238
|
export interface UiePlatformActions {
|
|
235
239
|
copyTextToClipboard: Clipboard['writeText'];
|
|
236
240
|
closeOverlay: CloseOverlayAction;
|
|
@@ -2461,6 +2465,10 @@ export interface SettingsContext extends BaseContext {
|
|
|
2461
2465
|
location: 'settings';
|
|
2462
2466
|
}
|
|
2463
2467
|
/** @ignore */
|
|
2468
|
+
export interface AppHomeContext extends BaseContext {
|
|
2469
|
+
location: 'home';
|
|
2470
|
+
}
|
|
2471
|
+
/** @ignore */
|
|
2464
2472
|
export interface GenericContext extends BaseContext {
|
|
2465
2473
|
location: 'uie.playground.middle';
|
|
2466
2474
|
}
|
|
@@ -2793,6 +2801,11 @@ export interface SettingsExtensionPoint extends ExtensionPointContract {
|
|
|
2793
2801
|
actions: SettingsActions & UiePlatformActions;
|
|
2794
2802
|
context: SettingsContext;
|
|
2795
2803
|
}
|
|
2804
|
+
/** @ignore */
|
|
2805
|
+
export interface AppHomeExtensionPoint extends ExtensionPointContract {
|
|
2806
|
+
actions: AppHomeActions;
|
|
2807
|
+
context: AppHomeContext;
|
|
2808
|
+
}
|
|
2796
2809
|
export interface ExampleCrmComponentProps {
|
|
2797
2810
|
name: string;
|
|
2798
2811
|
size: 'sm' | 'md' | 'lg';
|
|
@@ -2808,7 +2821,7 @@ interface RemotePlaygroundExtensionPoint extends ExtensionPointContract {
|
|
|
2808
2821
|
ExampleCrmComponent: ComponentType<ExampleCrmComponentProps>;
|
|
2809
2822
|
};
|
|
2810
2823
|
}
|
|
2811
|
-
export declare const EXTENSION_POINT_LOCATIONS: readonly ["crm.preview", "crm.record.sidebar", "crm.record.tab", "helpdesk.sidebar", "uie.playground.middle", "settings"];
|
|
2824
|
+
export declare const EXTENSION_POINT_LOCATIONS: readonly ["crm.preview", "crm.record.sidebar", "crm.record.tab", "helpdesk.sidebar", "uie.playground.middle", "settings", "home"];
|
|
2812
2825
|
export type ExtensionPointLocation = TypesOfReadOnlyArray<typeof EXTENSION_POINT_LOCATIONS>;
|
|
2813
2826
|
/** @ignore */
|
|
2814
2827
|
interface LocationToExtensionPoint {
|
|
@@ -2818,6 +2831,7 @@ interface LocationToExtensionPoint {
|
|
|
2818
2831
|
'crm.record.sidebar': CrmSidebarExtensionPoint;
|
|
2819
2832
|
'helpdesk.sidebar': StandardCrmExtensionPoint;
|
|
2820
2833
|
settings: SettingsExtensionPoint;
|
|
2834
|
+
home: AppHomeExtensionPoint;
|
|
2821
2835
|
}
|
|
2822
2836
|
/**
|
|
2823
2837
|
* While this resolves to the same result as LocationToExtensionPoint, it ensures that every location
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"ts-jest": "^29.1.1",
|
|
67
67
|
"typescript": "5.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "65046f5f3ce4c51652bc454e4425b57bd33aedbf"
|
|
70
70
|
}
|