@hubspot/ui-extensions-sdk-api-metadata 0.12.2 → 0.12.3
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/__generated__/component-props.js +415 -3
- package/dist/__tests__/component-props-docs.spec.js +3 -0
- package/dist/component-props-docs.d.ts +1 -1
- package/dist/component-props-docs.js +2 -2
- package/dist/internal/get-type-source.d.ts +1 -1
- package/dist/internal/get-type-source.js +4 -0
- package/dist/internal/render-prop-type.d.ts +1 -1
- package/dist/internal/utils/jsdoc-utils.d.ts +1 -1
- package/dist/internal/utils/jsx-utils.js +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/package.json +25 -17
|
@@ -605,6 +605,17 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
605
605
|
]
|
|
606
606
|
}
|
|
607
607
|
},
|
|
608
|
+
{
|
|
609
|
+
"kind": "export",
|
|
610
|
+
"exportName": "EmptyProps",
|
|
611
|
+
"declarationKind": "type",
|
|
612
|
+
"isType": true,
|
|
613
|
+
"type": {
|
|
614
|
+
"kind": "type-reference",
|
|
615
|
+
"typeId": "EmptyProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts",
|
|
616
|
+
"typeString": "EmptyProps"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
608
619
|
{
|
|
609
620
|
"kind": "export",
|
|
610
621
|
"exportName": "EmptyStateProps",
|
|
@@ -1167,6 +1178,20 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
1167
1178
|
]
|
|
1168
1179
|
}
|
|
1169
1180
|
},
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "export",
|
|
1183
|
+
"exportName": "ReactFragmentProps",
|
|
1184
|
+
"declarationKind": "interface",
|
|
1185
|
+
"isType": true,
|
|
1186
|
+
"type": {
|
|
1187
|
+
"kind": "type-reference",
|
|
1188
|
+
"typeId": "ReactFragmentProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts",
|
|
1189
|
+
"typeString": "ReactFragmentProps"
|
|
1190
|
+
},
|
|
1191
|
+
"jsdoc": {
|
|
1192
|
+
"text": "The props type for a React fragment component."
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1170
1195
|
{
|
|
1171
1196
|
"kind": "export",
|
|
1172
1197
|
"exportName": "ScoreProps",
|
|
@@ -1178,7 +1203,7 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
1178
1203
|
"typeString": "ScoreProps"
|
|
1179
1204
|
},
|
|
1180
1205
|
"jsdoc": {
|
|
1181
|
-
"text": "The props type for
|
|
1206
|
+
"text": "The props type for [ScoreCircle](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/scorecircle)",
|
|
1182
1207
|
"tags": [
|
|
1183
1208
|
{
|
|
1184
1209
|
"name": "category",
|
|
@@ -1913,6 +1938,112 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
1913
1938
|
}
|
|
1914
1939
|
}
|
|
1915
1940
|
],
|
|
1941
|
+
"./experimental/pages": [
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "export",
|
|
1944
|
+
"exportName": "AnyRouteProps",
|
|
1945
|
+
"declarationKind": "type",
|
|
1946
|
+
"isType": true,
|
|
1947
|
+
"type": {
|
|
1948
|
+
"kind": "type-reference",
|
|
1949
|
+
"typeId": "BaseRouteProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts",
|
|
1950
|
+
"typeString": "BaseRouteProps"
|
|
1951
|
+
},
|
|
1952
|
+
"jsdoc": {
|
|
1953
|
+
"text": "The props type for [PageRoutes.AnyRoute](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-routes#pageroutes-anyroute)."
|
|
1954
|
+
}
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"kind": "export",
|
|
1958
|
+
"exportName": "IndexRouteProps",
|
|
1959
|
+
"declarationKind": "type",
|
|
1960
|
+
"isType": true,
|
|
1961
|
+
"type": {
|
|
1962
|
+
"kind": "type-reference",
|
|
1963
|
+
"typeId": "BaseRouteProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts",
|
|
1964
|
+
"typeString": "BaseRouteProps"
|
|
1965
|
+
},
|
|
1966
|
+
"jsdoc": {
|
|
1967
|
+
"text": "The props type for [PageRoutes.IndexRoute](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-routes#pageroutes-indexroute)."
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"kind": "export",
|
|
1972
|
+
"exportName": "PageLinkProps",
|
|
1973
|
+
"declarationKind": "interface",
|
|
1974
|
+
"isType": true,
|
|
1975
|
+
"type": {
|
|
1976
|
+
"kind": "type-reference",
|
|
1977
|
+
"typeId": "PageLinkProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-link.d.ts",
|
|
1978
|
+
"typeString": "PageLinkProps"
|
|
1979
|
+
},
|
|
1980
|
+
"jsdoc": {
|
|
1981
|
+
"text": "The props type for [PageLink](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-link).",
|
|
1982
|
+
"tags": [
|
|
1983
|
+
{
|
|
1984
|
+
"name": "category",
|
|
1985
|
+
"text": "Component Props"
|
|
1986
|
+
}
|
|
1987
|
+
]
|
|
1988
|
+
}
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"kind": "export",
|
|
1992
|
+
"exportName": "PageRouterProps",
|
|
1993
|
+
"declarationKind": "type",
|
|
1994
|
+
"isType": true,
|
|
1995
|
+
"type": {
|
|
1996
|
+
"kind": "type-reference",
|
|
1997
|
+
"typeId": "PageRouterProps:@hubspot/ui-extensions:dist/shared/types/pages/app-pages-types.d.ts",
|
|
1998
|
+
"typeString": "PageRouterProps"
|
|
1999
|
+
},
|
|
2000
|
+
"jsdoc": {
|
|
2001
|
+
"text": "The props type for a PageRouter component."
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"kind": "export",
|
|
2006
|
+
"exportName": "PageRoutesLayoutProps",
|
|
2007
|
+
"declarationKind": "interface",
|
|
2008
|
+
"isType": true,
|
|
2009
|
+
"type": {
|
|
2010
|
+
"kind": "type-reference",
|
|
2011
|
+
"typeId": "PageRoutesLayoutProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts",
|
|
2012
|
+
"typeString": "PageRoutesLayoutProps"
|
|
2013
|
+
},
|
|
2014
|
+
"jsdoc": {
|
|
2015
|
+
"text": "The props type for the layout component of [PageRoutes](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-routes#pageroutes)."
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"kind": "export",
|
|
2020
|
+
"exportName": "PageRoutesProps",
|
|
2021
|
+
"declarationKind": "interface",
|
|
2022
|
+
"isType": true,
|
|
2023
|
+
"type": {
|
|
2024
|
+
"kind": "type-reference",
|
|
2025
|
+
"typeId": "PageRoutesProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts",
|
|
2026
|
+
"typeString": "PageRoutesProps"
|
|
2027
|
+
},
|
|
2028
|
+
"jsdoc": {
|
|
2029
|
+
"text": "The props type for [PageRoutes](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-routes#pageroutes)."
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"kind": "export",
|
|
2034
|
+
"exportName": "RouteProps",
|
|
2035
|
+
"declarationKind": "interface",
|
|
2036
|
+
"isType": true,
|
|
2037
|
+
"type": {
|
|
2038
|
+
"kind": "type-reference",
|
|
2039
|
+
"typeId": "RouteProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts",
|
|
2040
|
+
"typeString": "RouteProps"
|
|
2041
|
+
},
|
|
2042
|
+
"jsdoc": {
|
|
2043
|
+
"text": "The props type for [PageRoutes.Route](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/app-page-components/page-routes#pageroutes-route)."
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
],
|
|
1916
2047
|
"./pages/home": [],
|
|
1917
2048
|
"./experimental": [
|
|
1918
2049
|
{
|
|
@@ -3520,6 +3651,42 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
3520
3651
|
}
|
|
3521
3652
|
]
|
|
3522
3653
|
},
|
|
3654
|
+
"BaseRouteProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts": {
|
|
3655
|
+
"kind": "object",
|
|
3656
|
+
"properties": [
|
|
3657
|
+
{
|
|
3658
|
+
"kind": "property",
|
|
3659
|
+
"name": "component",
|
|
3660
|
+
"type": {
|
|
3661
|
+
"kind": "type-reference",
|
|
3662
|
+
"typeId": "ComponentType:@types/react@18.3.26:index.d.ts",
|
|
3663
|
+
"typeString": "ComponentType<EmptyProps>",
|
|
3664
|
+
"typeArguments": [
|
|
3665
|
+
{
|
|
3666
|
+
"kind": "type-reference",
|
|
3667
|
+
"typeId": "EmptyProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts",
|
|
3668
|
+
"typeString": "EmptyProps"
|
|
3669
|
+
}
|
|
3670
|
+
]
|
|
3671
|
+
},
|
|
3672
|
+
"jsdoc": {
|
|
3673
|
+
"text": "The component to render when the route is matched."
|
|
3674
|
+
}
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"kind": "property",
|
|
3678
|
+
"name": "id",
|
|
3679
|
+
"type": {
|
|
3680
|
+
"kind": "primitive",
|
|
3681
|
+
"name": "string"
|
|
3682
|
+
},
|
|
3683
|
+
"isOptional": true,
|
|
3684
|
+
"jsdoc": {
|
|
3685
|
+
"text": "A unique identifier for the route."
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
]
|
|
3689
|
+
},
|
|
3523
3690
|
"BaseSelectProps:@hubspot/ui-extensions:dist/shared/types/components/selects.d.ts": {
|
|
3524
3691
|
"kind": "object",
|
|
3525
3692
|
"properties": [
|
|
@@ -5827,6 +5994,27 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
5827
5994
|
}
|
|
5828
5995
|
]
|
|
5829
5996
|
},
|
|
5997
|
+
"ComponentClass:@types/react@18.3.26:index.d.ts": {
|
|
5998
|
+
"kind": "external-type-reference",
|
|
5999
|
+
"typeName": "ComponentClass",
|
|
6000
|
+
"typeString": "ComponentClass",
|
|
6001
|
+
"packageName": "@types/react",
|
|
6002
|
+
"packageVersion": "18.3.26"
|
|
6003
|
+
},
|
|
6004
|
+
"ComponentType:@types/react@18.3.26:index.d.ts": {
|
|
6005
|
+
"kind": "external-type-reference",
|
|
6006
|
+
"typeName": "ComponentType",
|
|
6007
|
+
"typeString": "ComponentType<EmptyProps>",
|
|
6008
|
+
"packageName": "@types/react",
|
|
6009
|
+
"packageVersion": "18.3.26",
|
|
6010
|
+
"typeArguments": [
|
|
6011
|
+
{
|
|
6012
|
+
"kind": "type-reference",
|
|
6013
|
+
"typeId": "EmptyProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts",
|
|
6014
|
+
"typeString": "EmptyProps"
|
|
6015
|
+
}
|
|
6016
|
+
]
|
|
6017
|
+
},
|
|
5830
6018
|
"CrmActionButtonProps:@hubspot/ui-extensions:dist/shared/types/crm.d.ts": {
|
|
5831
6019
|
"kind": "object",
|
|
5832
6020
|
"properties": [
|
|
@@ -8676,6 +8864,20 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
8676
8864
|
}
|
|
8677
8865
|
]
|
|
8678
8866
|
},
|
|
8867
|
+
"EmptyProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts": {
|
|
8868
|
+
"kind": "built-in-type-reference",
|
|
8869
|
+
"name": "Record",
|
|
8870
|
+
"typeArguments": [
|
|
8871
|
+
{
|
|
8872
|
+
"kind": "primitive",
|
|
8873
|
+
"name": "string"
|
|
8874
|
+
},
|
|
8875
|
+
{
|
|
8876
|
+
"kind": "unknown",
|
|
8877
|
+
"type": "never"
|
|
8878
|
+
}
|
|
8879
|
+
]
|
|
8880
|
+
},
|
|
8679
8881
|
"EmptyStateProps:@hubspot/ui-extensions:dist/shared/types/components/empty-state.d.ts": {
|
|
8680
8882
|
"kind": "object",
|
|
8681
8883
|
"properties": [
|
|
@@ -9842,6 +10044,13 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
9842
10044
|
}
|
|
9843
10045
|
]
|
|
9844
10046
|
},
|
|
10047
|
+
"FunctionComponent:@types/react@18.3.26:index.d.ts": {
|
|
10048
|
+
"kind": "external-type-reference",
|
|
10049
|
+
"typeName": "FunctionComponent",
|
|
10050
|
+
"typeString": "FunctionComponent",
|
|
10051
|
+
"packageName": "@types/react",
|
|
10052
|
+
"packageVersion": "18.3.26"
|
|
10053
|
+
},
|
|
9845
10054
|
"Gradient:@hubspot/ui-extensions:dist/shared/types/crm.d.ts": {
|
|
9846
10055
|
"kind": "object",
|
|
9847
10056
|
"properties": [
|
|
@@ -10331,7 +10540,7 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
10331
10540
|
},
|
|
10332
10541
|
"isOptional": true,
|
|
10333
10542
|
"jsdoc": {
|
|
10334
|
-
"text": "The color of the icon.",
|
|
10543
|
+
"text": "The color of the icon. See the [colors section](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/icon#colors) for details.",
|
|
10335
10544
|
"tags": [
|
|
10336
10545
|
{
|
|
10337
10546
|
"name": "defaultValue",
|
|
@@ -11109,7 +11318,7 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
11109
11318
|
]
|
|
11110
11319
|
},
|
|
11111
11320
|
"jsdoc": {
|
|
11112
|
-
"text": "Sets the icon to display."
|
|
11321
|
+
"text": "Sets the icon to display. See [all available icons](https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/ui-components/standard-components/icon#available-icons)."
|
|
11113
11322
|
}
|
|
11114
11323
|
},
|
|
11115
11324
|
{
|
|
@@ -14814,6 +15023,147 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
14814
15023
|
}
|
|
14815
15024
|
]
|
|
14816
15025
|
},
|
|
15026
|
+
"PageLinkProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-link.d.ts": {
|
|
15027
|
+
"kind": "object",
|
|
15028
|
+
"properties": [
|
|
15029
|
+
{
|
|
15030
|
+
"kind": "property",
|
|
15031
|
+
"name": "to",
|
|
15032
|
+
"type": {
|
|
15033
|
+
"kind": "primitive",
|
|
15034
|
+
"name": "string"
|
|
15035
|
+
},
|
|
15036
|
+
"jsdoc": {
|
|
15037
|
+
"text": "The path to navigate to when the link is clicked. Supports path parameters (e.g. `/view-contact/:contactId`)."
|
|
15038
|
+
}
|
|
15039
|
+
},
|
|
15040
|
+
{
|
|
15041
|
+
"kind": "property",
|
|
15042
|
+
"name": "params",
|
|
15043
|
+
"type": {
|
|
15044
|
+
"kind": "built-in-type-reference",
|
|
15045
|
+
"name": "Record",
|
|
15046
|
+
"typeArguments": [
|
|
15047
|
+
{
|
|
15048
|
+
"kind": "primitive",
|
|
15049
|
+
"name": "string"
|
|
15050
|
+
},
|
|
15051
|
+
{
|
|
15052
|
+
"kind": "primitive",
|
|
15053
|
+
"name": "string"
|
|
15054
|
+
}
|
|
15055
|
+
]
|
|
15056
|
+
},
|
|
15057
|
+
"isOptional": true,
|
|
15058
|
+
"jsdoc": {
|
|
15059
|
+
"text": "Values for path parameters and query string entries.\nParameters matching `:paramName` tokens in `to` are substituted into the path.\nAny remaining parameters are appended as query string entries."
|
|
15060
|
+
}
|
|
15061
|
+
},
|
|
15062
|
+
{
|
|
15063
|
+
"kind": "property",
|
|
15064
|
+
"name": "children",
|
|
15065
|
+
"type": {
|
|
15066
|
+
"kind": "type-reference",
|
|
15067
|
+
"typeId": "ReactNode:@types/react@18.3.26:index.d.ts",
|
|
15068
|
+
"typeString": "ReactNode"
|
|
15069
|
+
},
|
|
15070
|
+
"jsdoc": {
|
|
15071
|
+
"text": "The content to render inside the link."
|
|
15072
|
+
}
|
|
15073
|
+
},
|
|
15074
|
+
{
|
|
15075
|
+
"kind": "property",
|
|
15076
|
+
"name": "testId",
|
|
15077
|
+
"type": {
|
|
15078
|
+
"kind": "primitive",
|
|
15079
|
+
"name": "string"
|
|
15080
|
+
},
|
|
15081
|
+
"isOptional": true,
|
|
15082
|
+
"jsdoc": {
|
|
15083
|
+
"text": "Used by `findByTestId()` to locate this component in tests.",
|
|
15084
|
+
"tags": [
|
|
15085
|
+
{
|
|
15086
|
+
"name": "see",
|
|
15087
|
+
"text": "{@link https://developers.hubspot.com/docs/apps/developer-platform/add-features/ui-extensibility/testing/reference#findbytestid Testing utilities reference}"
|
|
15088
|
+
}
|
|
15089
|
+
]
|
|
15090
|
+
}
|
|
15091
|
+
}
|
|
15092
|
+
]
|
|
15093
|
+
},
|
|
15094
|
+
"PageRouterProps:@hubspot/ui-extensions:dist/shared/types/pages/app-pages-types.d.ts": {
|
|
15095
|
+
"kind": "mapped-type",
|
|
15096
|
+
"declarationText": "EmptyProps"
|
|
15097
|
+
},
|
|
15098
|
+
"PageRoutesLayoutProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts": {
|
|
15099
|
+
"kind": "object",
|
|
15100
|
+
"properties": [
|
|
15101
|
+
{
|
|
15102
|
+
"kind": "property",
|
|
15103
|
+
"name": "children",
|
|
15104
|
+
"type": {
|
|
15105
|
+
"kind": "type-reference",
|
|
15106
|
+
"typeId": "ReactNode:@types/react@18.3.26:index.d.ts",
|
|
15107
|
+
"typeString": "ReactNode"
|
|
15108
|
+
},
|
|
15109
|
+
"jsdoc": {
|
|
15110
|
+
"text": "The content to render inside the layout."
|
|
15111
|
+
}
|
|
15112
|
+
}
|
|
15113
|
+
]
|
|
15114
|
+
},
|
|
15115
|
+
"PageRoutesProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts": {
|
|
15116
|
+
"kind": "object",
|
|
15117
|
+
"properties": [
|
|
15118
|
+
{
|
|
15119
|
+
"kind": "property",
|
|
15120
|
+
"name": "path",
|
|
15121
|
+
"type": {
|
|
15122
|
+
"kind": "primitive",
|
|
15123
|
+
"name": "string"
|
|
15124
|
+
},
|
|
15125
|
+
"isOptional": true,
|
|
15126
|
+
"jsdoc": {
|
|
15127
|
+
"text": "The path pattern of the route to include with all nested routes."
|
|
15128
|
+
}
|
|
15129
|
+
},
|
|
15130
|
+
{
|
|
15131
|
+
"kind": "property",
|
|
15132
|
+
"name": "layoutComponent",
|
|
15133
|
+
"type": {
|
|
15134
|
+
"kind": "union",
|
|
15135
|
+
"types": [
|
|
15136
|
+
{
|
|
15137
|
+
"kind": "type-reference",
|
|
15138
|
+
"typeId": "ComponentClass:@types/react@18.3.26:index.d.ts",
|
|
15139
|
+
"typeString": "ComponentClass"
|
|
15140
|
+
},
|
|
15141
|
+
{
|
|
15142
|
+
"kind": "type-reference",
|
|
15143
|
+
"typeId": "FunctionComponent:@types/react@18.3.26:index.d.ts",
|
|
15144
|
+
"typeString": "FunctionComponent"
|
|
15145
|
+
}
|
|
15146
|
+
]
|
|
15147
|
+
},
|
|
15148
|
+
"isOptional": true,
|
|
15149
|
+
"jsdoc": {
|
|
15150
|
+
"text": "The component to render for the layout of the page routes."
|
|
15151
|
+
}
|
|
15152
|
+
},
|
|
15153
|
+
{
|
|
15154
|
+
"kind": "property",
|
|
15155
|
+
"name": "children",
|
|
15156
|
+
"type": {
|
|
15157
|
+
"kind": "type-reference",
|
|
15158
|
+
"typeId": "ReactNode:@types/react@18.3.26:index.d.ts",
|
|
15159
|
+
"typeString": "ReactNode"
|
|
15160
|
+
},
|
|
15161
|
+
"jsdoc": {
|
|
15162
|
+
"text": "The nested route definitions."
|
|
15163
|
+
}
|
|
15164
|
+
}
|
|
15165
|
+
]
|
|
15166
|
+
},
|
|
14817
15167
|
"PanelAction:@hubspot/ui-extensions:dist/shared/types/reactions.d.ts": {
|
|
14818
15168
|
"kind": "function",
|
|
14819
15169
|
"functionKind": "arrow",
|
|
@@ -16193,6 +16543,21 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
16193
16543
|
}
|
|
16194
16544
|
]
|
|
16195
16545
|
},
|
|
16546
|
+
"ReactFragmentProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts": {
|
|
16547
|
+
"kind": "object",
|
|
16548
|
+
"properties": [
|
|
16549
|
+
{
|
|
16550
|
+
"kind": "property",
|
|
16551
|
+
"name": "children",
|
|
16552
|
+
"type": {
|
|
16553
|
+
"kind": "type-reference",
|
|
16554
|
+
"typeId": "ReactNode:@types/react@18.3.26:index.d.ts",
|
|
16555
|
+
"typeString": "ReactNode"
|
|
16556
|
+
},
|
|
16557
|
+
"isOptional": true
|
|
16558
|
+
}
|
|
16559
|
+
]
|
|
16560
|
+
},
|
|
16196
16561
|
"ReactNode:@types/react@18.3.26:index.d.ts": {
|
|
16197
16562
|
"kind": "external-type-reference",
|
|
16198
16563
|
"typeName": "ReactNode",
|
|
@@ -16323,6 +16688,53 @@ export const componentPropsReader = createAnalyzeResultReader({
|
|
|
16323
16688
|
}
|
|
16324
16689
|
]
|
|
16325
16690
|
},
|
|
16691
|
+
"RouteProps:@hubspot/ui-extensions:dist/shared/types/pages/components/page-routes.d.ts": {
|
|
16692
|
+
"kind": "object",
|
|
16693
|
+
"properties": [
|
|
16694
|
+
{
|
|
16695
|
+
"kind": "property",
|
|
16696
|
+
"name": "path",
|
|
16697
|
+
"type": {
|
|
16698
|
+
"kind": "primitive",
|
|
16699
|
+
"name": "string"
|
|
16700
|
+
},
|
|
16701
|
+
"jsdoc": {
|
|
16702
|
+
"text": "The path pattern of the route to match."
|
|
16703
|
+
}
|
|
16704
|
+
},
|
|
16705
|
+
{
|
|
16706
|
+
"kind": "property",
|
|
16707
|
+
"name": "component",
|
|
16708
|
+
"type": {
|
|
16709
|
+
"kind": "type-reference",
|
|
16710
|
+
"typeId": "ComponentType:@types/react@18.3.26:index.d.ts",
|
|
16711
|
+
"typeString": "ComponentType<EmptyProps>",
|
|
16712
|
+
"typeArguments": [
|
|
16713
|
+
{
|
|
16714
|
+
"kind": "type-reference",
|
|
16715
|
+
"typeId": "EmptyProps:@hubspot/ui-extensions:dist/shared/types/shared.d.ts",
|
|
16716
|
+
"typeString": "EmptyProps"
|
|
16717
|
+
}
|
|
16718
|
+
]
|
|
16719
|
+
},
|
|
16720
|
+
"jsdoc": {
|
|
16721
|
+
"text": "The component to render when the route is matched."
|
|
16722
|
+
}
|
|
16723
|
+
},
|
|
16724
|
+
{
|
|
16725
|
+
"kind": "property",
|
|
16726
|
+
"name": "id",
|
|
16727
|
+
"type": {
|
|
16728
|
+
"kind": "primitive",
|
|
16729
|
+
"name": "string"
|
|
16730
|
+
},
|
|
16731
|
+
"isOptional": true,
|
|
16732
|
+
"jsdoc": {
|
|
16733
|
+
"text": "A unique identifier for the route."
|
|
16734
|
+
}
|
|
16735
|
+
}
|
|
16736
|
+
]
|
|
16737
|
+
},
|
|
16326
16738
|
"ScoreProps:@hubspot/ui-extensions:dist/shared/types/components/score.d.ts": {
|
|
16327
16739
|
"kind": "object",
|
|
16328
16740
|
"properties": [
|
|
@@ -217,6 +217,9 @@ describe('getComponentPropsDocumentation', () => {
|
|
|
217
217
|
it('should return the correct component prop documentation for the SettingsView component', async () => {
|
|
218
218
|
await runComponentPropsSnapshotTest(ComponentName.SettingsView);
|
|
219
219
|
});
|
|
220
|
+
it('should return the correct component prop documentation for the Spacer component', async () => {
|
|
221
|
+
await runComponentPropsSnapshotTest(ComponentName.Spacer);
|
|
222
|
+
});
|
|
220
223
|
it('should return the correct component prop documentation for the Stack2 component', async () => {
|
|
221
224
|
await runComponentPropsSnapshotTest(ComponentName.Stack2);
|
|
222
225
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isObjectNode, isTypeReferenceNode, } from '@hubspot/ts-export-types-reader';
|
|
2
2
|
import { componentPropsReader } from "./__generated__/component-props.js";
|
|
3
|
-
import {
|
|
3
|
+
import { getComponentTypeSource } from "./internal/get-type-source.js";
|
|
4
|
+
import { renderPropTypeToJsx } from "./internal/render-prop-type.js";
|
|
4
5
|
import { getDefaultValueFromJsdocTags, getSeeTagsFromJsdocTags, hasDeprecatedJsdocTag, } from "./internal/utils/jsdoc-utils.js";
|
|
5
6
|
import { renderMarkdownToJsx } from "./internal/utils/markdown-utils.js";
|
|
6
|
-
import { getComponentTypeSource } from "./internal/get-type-source.js";
|
|
7
7
|
/**
|
|
8
8
|
* Recursively resolves an API node to an ObjectNode if possible.
|
|
9
9
|
*
|
|
@@ -284,6 +284,10 @@ const componentSourceLookup = {
|
|
|
284
284
|
exportName: 'SettingsViewProps',
|
|
285
285
|
exportPath: './experimental',
|
|
286
286
|
},
|
|
287
|
+
Spacer: {
|
|
288
|
+
exportName: 'SpacerProps',
|
|
289
|
+
exportPath: '.',
|
|
290
|
+
},
|
|
287
291
|
Stack2: {
|
|
288
292
|
exportName: 'Stack2Props',
|
|
289
293
|
exportPath: './experimental',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module provides helper functions for parsing and extracting information
|
|
5
5
|
* from JSDoc comments associated with component props, such as default values.
|
|
6
6
|
*/
|
|
7
|
-
import { JsdocTag } from '@hubspot/ts-export-types-reader';
|
|
7
|
+
import type { JsdocTag } from '@hubspot/ts-export-types-reader';
|
|
8
8
|
/**
|
|
9
9
|
* Extracts the default value from JSDoc tags.
|
|
10
10
|
*
|
package/dist/types.d.ts
CHANGED
|
@@ -105,6 +105,7 @@ export declare enum ComponentName {
|
|
|
105
105
|
SecondaryHeaderActionButton = "SecondaryHeaderActionButton",
|
|
106
106
|
Select = "Select",
|
|
107
107
|
SettingsView = "SettingsView",
|
|
108
|
+
Spacer = "Spacer",
|
|
108
109
|
Stack2 = "Stack2",
|
|
109
110
|
Statistics = "Statistics",
|
|
110
111
|
StatisticsItem = "StatisticsItem",
|
package/dist/types.js
CHANGED
|
@@ -75,6 +75,7 @@ export var ComponentName;
|
|
|
75
75
|
ComponentName["SecondaryHeaderActionButton"] = "SecondaryHeaderActionButton";
|
|
76
76
|
ComponentName["Select"] = "Select";
|
|
77
77
|
ComponentName["SettingsView"] = "SettingsView";
|
|
78
|
+
ComponentName["Spacer"] = "Spacer";
|
|
78
79
|
ComponentName["Stack2"] = "Stack2";
|
|
79
80
|
ComponentName["Statistics"] = "Statistics";
|
|
80
81
|
ComponentName["StatisticsItem"] = "StatisticsItem";
|
package/package.json
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions-sdk-api-metadata",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "UI Extensions SDK API Metadata",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"clean": "rm -rf dist/ src/__generated__/",
|
|
8
|
-
"build": "npm run clean && npm run generate && tsc",
|
|
9
|
-
"check:tsc": "tsc",
|
|
10
|
-
"generate": "npm run generate:sdk-api-metadata",
|
|
11
|
-
"generate:sdk-api-metadata": "(cd ../ui-extensions-components && npm run build) && ts-export-types analyze --config ts-export-types.component-props.config.js",
|
|
12
|
-
"test": "vitest run",
|
|
13
|
-
"watch": "npm run clean && tsc --watch",
|
|
14
|
-
"prepublishOnly": "npm run build",
|
|
15
|
-
"lint": "echo 'No linter configured for @hubspot/ui-extensions-sdk-api-metadata'"
|
|
16
|
-
},
|
|
6
|
+
"prettier": "@private/prettier-config",
|
|
17
7
|
"files": [
|
|
18
8
|
"dist"
|
|
19
9
|
],
|
|
@@ -26,18 +16,36 @@
|
|
|
26
16
|
"license": "MIT",
|
|
27
17
|
"dependencies": {
|
|
28
18
|
"@hubspot/ts-export-types-reader": "1.1.0",
|
|
29
|
-
"dom-serializer": "
|
|
30
|
-
"htmlparser2": "
|
|
19
|
+
"dom-serializer": "2.0.0",
|
|
20
|
+
"htmlparser2": "9.1.0",
|
|
31
21
|
"marked": "17.0.1"
|
|
32
22
|
},
|
|
33
23
|
"devDependencies": {
|
|
34
24
|
"@hubspot/ts-export-types": "1.1.0",
|
|
25
|
+
"@types/node": "22.19.7",
|
|
35
26
|
"@vitest/coverage-v8": "4.0.18",
|
|
27
|
+
"@vitest/eslint-plugin": "1.6.6",
|
|
28
|
+
"eslint": "9.39.2",
|
|
29
|
+
"prettier": "3.8.1",
|
|
36
30
|
"typescript": "5.9.3",
|
|
37
|
-
"vitest": "4.0.18"
|
|
31
|
+
"vitest": "4.0.18",
|
|
32
|
+
"@private/eslint-config": "1.0.0",
|
|
33
|
+
"@private/prettier-config": "1.0.0",
|
|
34
|
+
"@hubspot/ui-extensions": "0.12.3"
|
|
38
35
|
},
|
|
39
36
|
"engines": {
|
|
40
37
|
"node": ">=16"
|
|
41
38
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
39
|
+
"scripts": {
|
|
40
|
+
"clean": "rm -rf dist/ *.tsbuildinfo .turbo src/__generated__/",
|
|
41
|
+
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
42
|
+
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
43
|
+
"generate": "pnpm run generate:sdk-api-metadata",
|
|
44
|
+
"generate:sdk-api-metadata": "ts-export-types analyze --config ts-export-types.component-props.config.js",
|
|
45
|
+
"lint": "eslint src/",
|
|
46
|
+
"lint:fix": "eslint src/ --fix",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"tsc": "tsc",
|
|
49
|
+
"tsc:watch": "tsc --watch"
|
|
50
|
+
}
|
|
51
|
+
}
|