@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.
Files changed (102) hide show
  1. package/dist/__tests__/crm/utils/fetchAssociations.spec.js +1 -1
  2. package/dist/__tests__/crm/utils/fetchCrmProperties.spec.js +1 -1
  3. package/dist/crm/hooks/useAssociations.d.ts +1 -1
  4. package/dist/crm/hooks/useAssociations.js +2 -2
  5. package/dist/crm/hooks/useCrmProperties.d.ts +1 -1
  6. package/dist/crm/hooks/useCrmProperties.js +2 -2
  7. package/dist/crm/utils/fetchAssociations.d.ts +1 -1
  8. package/dist/crm/utils/fetchAssociations.js +0 -1
  9. package/dist/crm/utils/fetchCrmProperties.js +0 -1
  10. package/dist/experimental/pages/index.d.ts +4 -0
  11. package/dist/experimental/pages/index.js +3 -0
  12. package/dist/hs-internal/__tests__/createRemoteComponentInternal.spec.js +4 -4
  13. package/dist/hubspot.js +0 -1
  14. package/dist/internal/global-utils.d.ts +1 -1
  15. package/dist/internal/hook-utils.d.ts +3 -3
  16. package/dist/shared/remoteComponents.d.ts +4 -2
  17. package/dist/shared/remoteComponents.js +4 -0
  18. package/dist/shared/types/components/accordion.d.ts +2 -2
  19. package/dist/shared/types/components/alert.d.ts +2 -2
  20. package/dist/shared/types/components/app-home-header-actions.d.ts +3 -3
  21. package/dist/shared/types/components/button-row.d.ts +2 -2
  22. package/dist/shared/types/components/button.d.ts +3 -3
  23. package/dist/shared/types/components/card.d.ts +2 -2
  24. package/dist/shared/types/components/chart.d.ts +1 -1
  25. package/dist/shared/types/components/description-list.d.ts +2 -2
  26. package/dist/shared/types/components/divider.d.ts +1 -1
  27. package/dist/shared/types/components/dropdown.d.ts +2 -3
  28. package/dist/shared/types/components/empty-state.d.ts +2 -2
  29. package/dist/shared/types/components/error-state.d.ts +2 -2
  30. package/dist/shared/types/components/form.d.ts +3 -3
  31. package/dist/shared/types/components/heading.d.ts +2 -2
  32. package/dist/shared/types/components/icon.d.ts +3 -3
  33. package/dist/shared/types/components/iframe.d.ts +1 -1
  34. package/dist/shared/types/components/illustration.d.ts +1 -1
  35. package/dist/shared/types/components/image.d.ts +2 -2
  36. package/dist/shared/types/components/inputs.d.ts +1 -1
  37. package/dist/shared/types/components/layouts.d.ts +2 -2
  38. package/dist/shared/types/components/link.d.ts +3 -3
  39. package/dist/shared/types/components/list.d.ts +2 -2
  40. package/dist/shared/types/components/loading-spinner.d.ts +1 -1
  41. package/dist/shared/types/components/modal.d.ts +2 -2
  42. package/dist/shared/types/components/panel.d.ts +2 -2
  43. package/dist/shared/types/components/progress-bar.d.ts +1 -1
  44. package/dist/shared/types/components/score.d.ts +2 -2
  45. package/dist/shared/types/components/selects.d.ts +1 -1
  46. package/dist/shared/types/components/spacer.d.ts +1 -1
  47. package/dist/shared/types/components/statistics.d.ts +2 -2
  48. package/dist/shared/types/components/status-tag.d.ts +2 -2
  49. package/dist/shared/types/components/step-indicator.d.ts +1 -1
  50. package/dist/shared/types/components/table.d.ts +2 -2
  51. package/dist/shared/types/components/tabs.d.ts +2 -2
  52. package/dist/shared/types/components/tag.d.ts +3 -3
  53. package/dist/shared/types/components/text.d.ts +2 -2
  54. package/dist/shared/types/components/tile.d.ts +2 -2
  55. package/dist/shared/types/components/toggle.d.ts +1 -1
  56. package/dist/shared/types/components/toggleInputs.d.ts +1 -1
  57. package/dist/shared/types/components/tooltip.d.ts +2 -2
  58. package/dist/shared/types/crm.d.ts +2 -2
  59. package/dist/shared/types/experimental.d.ts +1 -1
  60. package/dist/shared/types/extend.d.ts +2 -2
  61. package/dist/shared/types/extension-points.d.ts +4 -5
  62. package/dist/shared/types/pages/app-pages-types.d.ts +75 -0
  63. package/dist/shared/types/pages/app-pages-types.js +1 -0
  64. package/dist/shared/types/pages/components/index.d.ts +2 -0
  65. package/dist/shared/types/pages/components/index.js +1 -0
  66. package/dist/shared/types/pages/components/page-link.d.ts +23 -0
  67. package/dist/shared/types/pages/components/page-link.js +1 -0
  68. package/dist/shared/types/pages/components/page-routes.d.ts +115 -0
  69. package/dist/shared/types/pages/components/page-routes.js +1 -0
  70. package/dist/shared/types/shared.d.ts +15 -1
  71. package/dist/shared/types/worker-globals.d.ts +17 -3
  72. package/dist/shared/utils/remote-component-registry.d.ts +1 -1
  73. package/dist/testing/__tests__/isMatch.spec.js +1 -1
  74. package/dist/testing/__tests__/mocks.runServerlessFunction.spec.js +1 -1
  75. package/dist/testing/__tests__/mocks.useAssociations.spec.js +2 -2
  76. package/dist/testing/__tests__/mocks.useCrmProperties.spec.js +2 -2
  77. package/dist/testing/__tests__/mocks.useExtensionActions.spec.js +1 -1
  78. package/dist/testing/__tests__/mocks.useExtensionApi.spec.js +1 -1
  79. package/dist/testing/__tests__/mocks.useExtensionContext.spec.js +1 -1
  80. package/dist/testing/internal/convert.d.ts +1 -1
  81. package/dist/testing/internal/convert.js +4 -5
  82. package/dist/testing/internal/debug.d.ts +1 -1
  83. package/dist/testing/internal/element.d.ts +1 -1
  84. package/dist/testing/internal/errors.d.ts +2 -2
  85. package/dist/testing/internal/fragment.d.ts +1 -1
  86. package/dist/testing/internal/match.d.ts +2 -2
  87. package/dist/testing/internal/mocks/index.d.ts +3 -3
  88. package/dist/testing/internal/mocks/index.js +1 -1
  89. package/dist/testing/internal/mocks/mock-extension-point-api.d.ts +2 -1
  90. package/dist/testing/internal/mocks/mock-extension-point-api.js +1 -1
  91. package/dist/testing/internal/mocks/mock-hooks.d.ts +1 -1
  92. package/dist/testing/internal/text.d.ts +2 -2
  93. package/dist/testing/internal/type-utils-internal.d.ts +2 -2
  94. package/dist/testing/internal/types-internal.d.ts +6 -6
  95. package/dist/testing/render.d.ts +2 -2
  96. package/dist/testing/render.js +5 -6
  97. package/dist/testing/type-utils.d.ts +1 -1
  98. package/dist/testing/type-utils.js +1 -1
  99. package/dist/testing/types.d.ts +9 -9
  100. package/dist/testing/utils.d.ts +1 -1
  101. package/dist/testing/utils.js +1 -1
  102. package/package.json +31 -23
@@ -1,12 +1,12 @@
1
- import { ExtensionPointApi, ExtensionPointApiActions, ExtensionPointLocation } from '../shared/types/extension-points.ts';
2
- import { ServerlessFuncRunner } from '../shared/types/http-requests.ts';
3
- import { SpyImpl } from 'tinyspy';
4
- import { HubSpotReactComponent, HubSpotReactFragmentProp, UnknownComponentProps } from '../shared/types/shared.ts';
5
- import { useAssociations, useCrmProperties } from '../crm/index.ts';
6
- import { useExtensionContext } from '../hooks/useExtensionContext.tsx';
7
- import { AnyFunction } from './internal/types-internal.ts';
8
- import { useExtensionActions } from '../hooks/useExtensionActions.tsx';
9
- import { useExtensionApi } from '../hooks/useExtensionApi.tsx';
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
  */
@@ -1,5 +1,5 @@
1
1
  import { type HubSpotReactComponent, type UnknownComponentProps } from '../shared/types/shared.ts';
2
- import { type ElementMatcher, type RenderedElementNode, type RenderedNode } from './types.ts';
2
+ import type { ElementMatcher, RenderedElementNode, RenderedNode } from './types.ts';
3
3
  /**
4
4
  * Checks if the node matches the component and matcher.
5
5
  *
@@ -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.2",
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
- "scripts": {
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": "^10.4.0",
63
- "@testing-library/react": "^14.1.2",
64
- "@types/node": "^22.14.0",
65
- "@types/react": "^18.3.1",
66
- "@types/react-dom": "^18.3.1",
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": "^0.29.0",
71
- "tsd": "^0.33.0",
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": "b8c8170048a28b28112833cb552be43d4587c2ed"
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
+ }