@hubspot/ui-extensions 0.8.38 → 0.8.40
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/clientTypes.d.ts +40 -0
- package/dist/clientTypes.js +1 -0
- package/dist/coreComponents.d.ts +396 -3
- package/dist/coreComponents.js +396 -3
- package/dist/experimental/index.d.ts +22 -3
- package/dist/experimental/index.js +7 -1
- package/dist/experimental/testing/index.d.ts +14 -0
- package/dist/experimental/testing/index.js +33 -0
- package/dist/experimental/testing/jest/matchers/index.d.ts +6 -0
- package/dist/experimental/testing/jest/matchers/index.js +6 -0
- package/dist/experimental/types.d.ts +61 -0
- package/dist/experimental/types.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +21 -19
- package/dist/types.js +1 -0
- package/package.json +12 -3
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// In order to easily fix [this issue](https://git.hubteam.com/HubSpot/ui-extensibility/issues/2587) we are temporarily importing a manually created subset of Vite client types. This should be removed once we have a proper solution for this issue.
|
|
2
|
+
import './clientTypes';
|
|
1
3
|
export { hubspot } from './hubspot';
|
|
2
4
|
export { logger } from './logger';
|
|
3
5
|
export * from './coreComponents';
|
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
|
|
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
|
-
|
|
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
|
|
@@ -2652,15 +2665,4 @@ export type ProxyMetadata = {
|
|
|
2652
2665
|
userId?: number;
|
|
2653
2666
|
portalId?: number;
|
|
2654
2667
|
};
|
|
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
2668
|
export {};
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,11 +22,14 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": "./dist/index.js",
|
|
24
24
|
"./crm": "./dist/crm/index.js",
|
|
25
|
-
"./experimental": "./dist/experimental/index.js"
|
|
25
|
+
"./experimental": "./dist/experimental/index.js",
|
|
26
|
+
"./experimental/testing": "./dist/experimental/testing/index.js",
|
|
27
|
+
"./experimental/testing/jest-matchers": "./dist/experimental/testing/jest/matchers/index.js"
|
|
26
28
|
},
|
|
27
29
|
"license": "MIT",
|
|
28
30
|
"dependencies": {
|
|
29
31
|
"@remote-ui/react": "^5.0.0",
|
|
32
|
+
"@remote-ui/testing": "^1.4.3",
|
|
30
33
|
"react": "^18.2.0"
|
|
31
34
|
},
|
|
32
35
|
"engines": {
|
|
@@ -46,10 +49,16 @@
|
|
|
46
49
|
},
|
|
47
50
|
"typescript": {
|
|
48
51
|
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"jest": {
|
|
54
|
+
"optional": true
|
|
49
55
|
}
|
|
50
56
|
},
|
|
51
57
|
"devDependencies": {
|
|
58
|
+
"@types/jest": "^29.5.13",
|
|
59
|
+
"jest": "^29.7.0",
|
|
60
|
+
"react-reconciler": "^0.29.0",
|
|
52
61
|
"typescript": "5.0.4"
|
|
53
62
|
},
|
|
54
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "1f4550a901eeba1e56943ef50c6ea7af30f95bc1"
|
|
55
64
|
}
|