@hubspot/ui-extensions 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/__tests__/crm/utils/fetchAssociations.spec.js +1 -1
- package/dist/__tests__/crm/utils/fetchCrmProperties.spec.js +1 -1
- package/dist/crm/hooks/useAssociations.d.ts +1 -1
- package/dist/crm/hooks/useAssociations.js +2 -2
- package/dist/crm/hooks/useCrmProperties.d.ts +1 -1
- package/dist/crm/hooks/useCrmProperties.js +2 -2
- package/dist/crm/utils/fetchAssociations.d.ts +1 -1
- package/dist/crm/utils/fetchAssociations.js +0 -1
- package/dist/crm/utils/fetchCrmProperties.js +0 -1
- package/dist/experimental/pages/index.d.ts +4 -0
- package/dist/experimental/pages/index.js +3 -0
- package/dist/hs-internal/__tests__/createRemoteComponentInternal.spec.js +4 -4
- package/dist/hubspot.js +0 -1
- package/dist/internal/global-utils.d.ts +1 -1
- package/dist/internal/hook-utils.d.ts +3 -3
- package/dist/shared/remoteComponents.d.ts +4 -2
- package/dist/shared/remoteComponents.js +4 -0
- package/dist/shared/types/components/accordion.d.ts +2 -2
- package/dist/shared/types/components/alert.d.ts +2 -2
- package/dist/shared/types/components/app-home-header-actions.d.ts +3 -3
- package/dist/shared/types/components/button-row.d.ts +2 -2
- package/dist/shared/types/components/button.d.ts +3 -3
- package/dist/shared/types/components/card.d.ts +2 -2
- package/dist/shared/types/components/chart.d.ts +1 -1
- package/dist/shared/types/components/description-list.d.ts +2 -2
- package/dist/shared/types/components/divider.d.ts +1 -1
- package/dist/shared/types/components/dropdown.d.ts +2 -3
- package/dist/shared/types/components/empty-state.d.ts +2 -2
- package/dist/shared/types/components/error-state.d.ts +2 -2
- package/dist/shared/types/components/form.d.ts +3 -3
- package/dist/shared/types/components/heading.d.ts +2 -2
- package/dist/shared/types/components/icon.d.ts +3 -3
- package/dist/shared/types/components/iframe.d.ts +1 -1
- package/dist/shared/types/components/illustration.d.ts +1 -1
- package/dist/shared/types/components/image.d.ts +2 -2
- package/dist/shared/types/components/inputs.d.ts +1 -1
- package/dist/shared/types/components/layouts.d.ts +2 -2
- package/dist/shared/types/components/link.d.ts +3 -3
- package/dist/shared/types/components/list.d.ts +2 -2
- package/dist/shared/types/components/loading-spinner.d.ts +1 -1
- package/dist/shared/types/components/modal.d.ts +2 -2
- package/dist/shared/types/components/panel.d.ts +2 -2
- package/dist/shared/types/components/progress-bar.d.ts +1 -1
- package/dist/shared/types/components/score.d.ts +2 -2
- package/dist/shared/types/components/selects.d.ts +1 -1
- package/dist/shared/types/components/spacer.d.ts +1 -1
- package/dist/shared/types/components/statistics.d.ts +2 -2
- package/dist/shared/types/components/status-tag.d.ts +2 -2
- package/dist/shared/types/components/step-indicator.d.ts +1 -1
- package/dist/shared/types/components/table.d.ts +2 -2
- package/dist/shared/types/components/tabs.d.ts +2 -2
- package/dist/shared/types/components/tag.d.ts +3 -3
- package/dist/shared/types/components/text.d.ts +2 -2
- package/dist/shared/types/components/tile.d.ts +2 -2
- package/dist/shared/types/components/toggle.d.ts +1 -1
- package/dist/shared/types/components/toggleInputs.d.ts +1 -1
- package/dist/shared/types/components/tooltip.d.ts +2 -2
- package/dist/shared/types/crm.d.ts +2 -2
- package/dist/shared/types/experimental.d.ts +1 -1
- package/dist/shared/types/extend.d.ts +2 -2
- package/dist/shared/types/extension-points.d.ts +4 -5
- package/dist/shared/types/pages/app-pages-types.d.ts +75 -0
- package/dist/shared/types/pages/app-pages-types.js +1 -0
- package/dist/shared/types/pages/components/index.d.ts +2 -0
- package/dist/shared/types/pages/components/index.js +1 -0
- package/dist/shared/types/pages/components/page-link.d.ts +23 -0
- package/dist/shared/types/pages/components/page-link.js +1 -0
- package/dist/shared/types/pages/components/page-routes.d.ts +115 -0
- package/dist/shared/types/pages/components/page-routes.js +1 -0
- package/dist/shared/types/shared.d.ts +15 -1
- package/dist/shared/types/worker-globals.d.ts +17 -3
- package/dist/shared/utils/remote-component-registry.d.ts +1 -1
- package/dist/testing/__tests__/isMatch.spec.js +1 -1
- package/dist/testing/__tests__/mocks.runServerlessFunction.spec.js +1 -1
- package/dist/testing/__tests__/mocks.useAssociations.spec.js +2 -2
- package/dist/testing/__tests__/mocks.useCrmProperties.spec.js +2 -2
- package/dist/testing/__tests__/mocks.useExtensionActions.spec.js +1 -1
- package/dist/testing/__tests__/mocks.useExtensionApi.spec.js +1 -1
- package/dist/testing/__tests__/mocks.useExtensionContext.spec.js +1 -1
- package/dist/testing/internal/convert.d.ts +1 -1
- package/dist/testing/internal/convert.js +4 -5
- package/dist/testing/internal/debug.d.ts +1 -1
- package/dist/testing/internal/element.d.ts +1 -1
- package/dist/testing/internal/errors.d.ts +2 -2
- package/dist/testing/internal/fragment.d.ts +1 -1
- package/dist/testing/internal/match.d.ts +2 -2
- package/dist/testing/internal/mocks/index.d.ts +3 -3
- package/dist/testing/internal/mocks/index.js +1 -1
- package/dist/testing/internal/mocks/mock-extension-point-api.d.ts +2 -1
- package/dist/testing/internal/mocks/mock-extension-point-api.js +1 -1
- package/dist/testing/internal/mocks/mock-hooks.d.ts +1 -1
- package/dist/testing/internal/text.d.ts +2 -2
- package/dist/testing/internal/type-utils-internal.d.ts +2 -2
- package/dist/testing/internal/types-internal.d.ts +6 -6
- package/dist/testing/render.d.ts +2 -2
- package/dist/testing/render.js +5 -6
- package/dist/testing/type-utils.d.ts +1 -1
- package/dist/testing/type-utils.js +1 -1
- package/dist/testing/types.d.ts +9 -9
- package/dist/testing/utils.d.ts +1 -1
- package/dist/testing/utils.js +1 -1
- package/package.json +31 -23
package/dist/testing/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import type { SpyImpl } from 'tinyspy';
|
|
2
|
+
import type { useAssociations, useCrmProperties } from '../crm/index.ts';
|
|
3
|
+
import type { useExtensionActions } from '../hooks/useExtensionActions.tsx';
|
|
4
|
+
import type { useExtensionApi } from '../hooks/useExtensionApi.tsx';
|
|
5
|
+
import type { useExtensionContext } from '../hooks/useExtensionContext.tsx';
|
|
6
|
+
import type { ExtensionPointApi, ExtensionPointApiActions, ExtensionPointLocation } from '../shared/types/extension-points.ts';
|
|
7
|
+
import type { ServerlessFuncRunner } from '../shared/types/http-requests.ts';
|
|
8
|
+
import type { HubSpotReactComponent, HubSpotReactFragmentProp, UnknownComponentProps } from '../shared/types/shared.ts';
|
|
9
|
+
import type { AnyFunction } from './internal/types-internal.ts';
|
|
10
10
|
/**
|
|
11
11
|
* The type of a rendered node.
|
|
12
12
|
*/
|
package/dist/testing/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HubSpotReactComponent, type UnknownComponentProps } from '../shared/types/shared.ts';
|
|
2
|
-
import {
|
|
2
|
+
import type { ElementMatcher, RenderedElementNode, RenderedNode } from './types.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Checks if the node matches the component and matcher.
|
|
5
5
|
*
|
package/dist/testing/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RenderedNodeType, } from "./types.js";
|
|
2
1
|
import { __hubSpotComponentRegistry } from "../shared/remoteComponents.js";
|
|
3
2
|
import { checkElementMatches } from "./internal/match.js";
|
|
3
|
+
import { RenderedNodeType } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the node matches the component and matcher.
|
|
6
6
|
*
|
package/package.json
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
"clean": "rm -rf dist/",
|
|
10
|
-
"build": "npm run clean && tsc",
|
|
11
|
-
"check:tsc": "tsc",
|
|
12
|
-
"watch": "npm run clean && tsc --watch",
|
|
13
|
-
"prepare": "npm run build",
|
|
14
|
-
"lint": "echo 'No linter configured for @hubspot/ui-extensions'",
|
|
15
|
-
"test": "vitest run && tsd",
|
|
16
|
-
"test:coverage": "vitest run --coverage",
|
|
17
|
-
"test:watch": "vitest",
|
|
18
|
-
"test:types": "tsd"
|
|
19
|
-
},
|
|
8
|
+
"prettier": "@private/prettier-config",
|
|
20
9
|
"files": [
|
|
21
10
|
"dist"
|
|
22
11
|
],
|
|
@@ -26,6 +15,7 @@
|
|
|
26
15
|
"exports": {
|
|
27
16
|
".": "./dist/index.js",
|
|
28
17
|
"./crm": "./dist/crm/index.js",
|
|
18
|
+
"./experimental/pages": "./dist/experimental/pages/index.js",
|
|
29
19
|
"./pages/home": "./dist/pages/home/index.js",
|
|
30
20
|
"./experimental": "./dist/experimental/index.js",
|
|
31
21
|
"./testing": "./dist/testing/index.js",
|
|
@@ -59,21 +49,39 @@
|
|
|
59
49
|
}
|
|
60
50
|
},
|
|
61
51
|
"devDependencies": {
|
|
62
|
-
"@testing-library/dom": "
|
|
63
|
-
"@testing-library/react": "
|
|
64
|
-
"@types/node": "
|
|
65
|
-
"@types/react": "
|
|
66
|
-
"@types/react-dom": "
|
|
52
|
+
"@testing-library/dom": "10.4.1",
|
|
53
|
+
"@testing-library/react": "14.3.1",
|
|
54
|
+
"@types/node": "22.19.7",
|
|
55
|
+
"@types/react": "18.3.26",
|
|
56
|
+
"@types/react-dom": "18.3.7",
|
|
67
57
|
"@vitest/coverage-v8": "4.0.18",
|
|
58
|
+
"@vitest/eslint-plugin": "1.6.6",
|
|
59
|
+
"eslint": "9.39.2",
|
|
68
60
|
"jsdom": "26.1.0",
|
|
61
|
+
"prettier": "3.8.1",
|
|
69
62
|
"react-dom": "18.3.1",
|
|
70
|
-
"react-reconciler": "
|
|
71
|
-
"tsd": "
|
|
63
|
+
"react-reconciler": "0.29.2",
|
|
64
|
+
"tsd": "0.33.0",
|
|
72
65
|
"typescript": "5.9.3",
|
|
73
|
-
"vitest": "4.0.18"
|
|
66
|
+
"vitest": "4.0.18",
|
|
67
|
+
"@private/eslint-config": "1.0.0",
|
|
68
|
+
"@private/prettier-config": "1.0.0"
|
|
74
69
|
},
|
|
75
70
|
"tsd": {
|
|
76
71
|
"directory": "src/__tests__/test-d"
|
|
77
72
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
-
|
|
73
|
+
"gitHead": "3da4a07183d48528ef431d46a8d327c053c4fe94",
|
|
74
|
+
"scripts": {
|
|
75
|
+
"clean": "rm -rf dist/ *.tsbuildinfo .turbo",
|
|
76
|
+
"format": "prettier --write . --ignore-path ../../.prettierignore",
|
|
77
|
+
"format:check": "prettier --check . --ignore-path ../../.prettierignore",
|
|
78
|
+
"lint": "eslint src/",
|
|
79
|
+
"lint:fix": "eslint src/ --fix",
|
|
80
|
+
"tsc": "tsc",
|
|
81
|
+
"test": "vitest run && tsd",
|
|
82
|
+
"test:coverage": "vitest run --coverage",
|
|
83
|
+
"test:types": "tsd",
|
|
84
|
+
"test:watch": "vitest",
|
|
85
|
+
"tsc:watch": "tsc --watch"
|
|
86
|
+
}
|
|
87
|
+
}
|