@hubspot/ui-extensions 0.10.1 → 0.11.1

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 (149) hide show
  1. package/dist/{pages/home/components.d.ts → __synced__/appHomeRemoteComponents.synced.d.ts} +7 -7
  2. package/dist/{pages/home/components.js → __synced__/appHomeRemoteComponents.synced.js} +1 -0
  3. package/dist/{crm/components.d.ts → __synced__/crmRemoteComponents.synced.d.ts} +40 -41
  4. package/dist/__synced__/crmRemoteComponents.synced.js +15 -0
  5. package/dist/{experimental/types.d.ts → __synced__/experimental/types.synced.d.ts} +6 -1
  6. package/dist/__synced__/experimentalRemoteComponents.synced.d.ts +94 -0
  7. package/dist/__synced__/experimentalRemoteComponents.synced.js +56 -0
  8. package/dist/__synced__/remoteComponents.synced.d.ts +579 -0
  9. package/dist/{coreComponents.js → __synced__/remoteComponents.synced.js} +89 -69
  10. package/dist/__synced__/types/actions.synced.d.ts +57 -0
  11. package/dist/__synced__/types/actions.synced.js +1 -0
  12. package/dist/__synced__/types/components/accordion.synced.d.ts +48 -0
  13. package/dist/__synced__/types/components/accordion.synced.js +1 -0
  14. package/dist/__synced__/types/components/alert.synced.d.ts +24 -0
  15. package/dist/__synced__/types/components/alert.synced.js +1 -0
  16. package/dist/__synced__/types/components/app-home-header-actions.synced.d.ts +39 -0
  17. package/dist/__synced__/types/components/app-home-header-actions.synced.js +1 -0
  18. package/dist/__synced__/types/components/button-row.synced.d.ts +44 -0
  19. package/dist/__synced__/types/components/button-row.synced.js +1 -0
  20. package/dist/__synced__/types/components/button.synced.d.ts +89 -0
  21. package/dist/__synced__/types/components/button.synced.js +1 -0
  22. package/dist/__synced__/types/components/card.synced.d.ts +12 -0
  23. package/dist/__synced__/types/components/card.synced.js +1 -0
  24. package/dist/__synced__/types/components/chart.synced.d.ts +137 -0
  25. package/dist/__synced__/types/components/chart.synced.js +5 -0
  26. package/dist/__synced__/types/components/description-list.synced.d.ts +36 -0
  27. package/dist/__synced__/types/components/description-list.synced.js +1 -0
  28. package/dist/__synced__/types/components/divider.synced.d.ts +14 -0
  29. package/dist/__synced__/types/components/divider.synced.js +1 -0
  30. package/dist/__synced__/types/components/dropdown.synced.d.ts +84 -0
  31. package/dist/__synced__/types/components/dropdown.synced.js +1 -0
  32. package/dist/__synced__/types/components/empty-state.synced.d.ts +51 -0
  33. package/dist/__synced__/types/components/empty-state.synced.js +1 -0
  34. package/dist/__synced__/types/components/error-state.synced.d.ts +24 -0
  35. package/dist/__synced__/types/components/error-state.synced.js +1 -0
  36. package/dist/__synced__/types/components/form.synced.d.ts +29 -0
  37. package/dist/__synced__/types/components/form.synced.js +1 -0
  38. package/dist/__synced__/types/components/heading.synced.d.ts +19 -0
  39. package/dist/__synced__/types/components/heading.synced.js +1 -0
  40. package/dist/__synced__/types/components/icon.synced.d.ts +29 -0
  41. package/dist/__synced__/types/components/icon.synced.js +1 -0
  42. package/dist/__synced__/types/components/iframe.synced.d.ts +20 -0
  43. package/dist/__synced__/types/components/iframe.synced.js +1 -0
  44. package/dist/__synced__/types/components/illustration.synced.d.ts +53 -0
  45. package/dist/__synced__/types/components/illustration.synced.js +43 -0
  46. package/dist/__synced__/types/components/image.synced.d.ts +40 -0
  47. package/dist/__synced__/types/components/image.synced.js +1 -0
  48. package/dist/__synced__/types/components/index.synced.d.ts +38 -0
  49. package/dist/__synced__/types/components/index.synced.js +1 -0
  50. package/dist/__synced__/types/components/inputs.synced.d.ts +350 -0
  51. package/dist/__synced__/types/components/inputs.synced.js +1 -0
  52. package/dist/__synced__/types/components/layouts.synced.d.ts +172 -0
  53. package/dist/__synced__/types/components/layouts.synced.js +1 -0
  54. package/dist/__synced__/types/components/link.synced.d.ts +38 -0
  55. package/dist/__synced__/types/components/link.synced.js +1 -0
  56. package/dist/__synced__/types/components/list.synced.d.ts +18 -0
  57. package/dist/__synced__/types/components/list.synced.js +1 -0
  58. package/dist/__synced__/types/components/loading-spinner.synced.d.ts +31 -0
  59. package/dist/__synced__/types/components/loading-spinner.synced.js +1 -0
  60. package/dist/__synced__/types/components/modal.synced.d.ts +60 -0
  61. package/dist/__synced__/types/components/modal.synced.js +1 -0
  62. package/dist/__synced__/types/components/panel.synced.d.ts +73 -0
  63. package/dist/__synced__/types/components/panel.synced.js +1 -0
  64. package/dist/__synced__/types/components/progress-bar.synced.d.ts +48 -0
  65. package/dist/__synced__/types/components/progress-bar.synced.js +1 -0
  66. package/dist/__synced__/types/components/selects.synced.d.ts +130 -0
  67. package/dist/__synced__/types/components/selects.synced.js +1 -0
  68. package/dist/__synced__/types/components/statistics.synced.d.ts +56 -0
  69. package/dist/__synced__/types/components/statistics.synced.js +1 -0
  70. package/dist/__synced__/types/components/status-tag.synced.d.ts +42 -0
  71. package/dist/__synced__/types/components/status-tag.synced.js +1 -0
  72. package/dist/__synced__/types/components/step-indicator.synced.d.ts +44 -0
  73. package/dist/__synced__/types/components/step-indicator.synced.js +1 -0
  74. package/dist/__synced__/types/components/table.synced.d.ts +138 -0
  75. package/dist/__synced__/types/components/table.synced.js +1 -0
  76. package/dist/__synced__/types/components/tabs.synced.d.ts +55 -0
  77. package/dist/__synced__/types/components/tabs.synced.js +1 -0
  78. package/dist/__synced__/types/components/tag.synced.d.ts +32 -0
  79. package/dist/__synced__/types/components/tag.synced.js +1 -0
  80. package/dist/__synced__/types/components/text.synced.d.ts +93 -0
  81. package/dist/__synced__/types/components/text.synced.js +1 -0
  82. package/dist/__synced__/types/components/tile.synced.d.ts +24 -0
  83. package/dist/__synced__/types/components/tile.synced.js +1 -0
  84. package/dist/__synced__/types/components/toggle.synced.d.ts +60 -0
  85. package/dist/__synced__/types/components/toggle.synced.js +1 -0
  86. package/dist/__synced__/types/components/toggleInputs.synced.d.ts +191 -0
  87. package/dist/__synced__/types/components/toggleInputs.synced.js +1 -0
  88. package/dist/__synced__/types/components/tooltip.synced.d.ts +12 -0
  89. package/dist/__synced__/types/components/tooltip.synced.js +1 -0
  90. package/dist/__synced__/types/context.synced.d.ts +82 -0
  91. package/dist/__synced__/types/context.synced.js +1 -0
  92. package/dist/__synced__/types/crm.synced.d.ts +248 -0
  93. package/dist/__synced__/types/crm.synced.js +1 -0
  94. package/dist/__synced__/types/extension-points.synced.d.ts +122 -0
  95. package/dist/__synced__/types/extension-points.synced.js +9 -0
  96. package/dist/__synced__/types/http-requests.synced.d.ts +106 -0
  97. package/dist/__synced__/types/http-requests.synced.js +8 -0
  98. package/dist/__synced__/types/index.synced.d.ts +8 -0
  99. package/dist/__synced__/types/index.synced.js +1 -0
  100. package/dist/__synced__/types/reactions.synced.d.ts +12 -0
  101. package/dist/__synced__/types/reactions.synced.js +1 -0
  102. package/dist/__synced__/types/shared.synced.d.ts +196 -0
  103. package/dist/{types.js → __synced__/types/shared.synced.js} +0 -68
  104. package/dist/__synced__/utils/remote-component-registry.synced.d.ts +80 -0
  105. package/dist/__synced__/utils/remote-component-registry.synced.js +64 -0
  106. package/dist/crm/index.d.ts +2 -2
  107. package/dist/crm/index.js +1 -2
  108. package/dist/experimental/index.d.ts +2 -73
  109. package/dist/experimental/index.js +1 -34
  110. package/dist/experimental/testing/internal/constants.d.ts +2 -0
  111. package/dist/experimental/testing/internal/constants.js +1 -0
  112. package/dist/experimental/testing/internal/debug.d.ts +8 -0
  113. package/dist/experimental/testing/internal/debug.js +10 -0
  114. package/dist/experimental/testing/internal/element.d.ts +11 -0
  115. package/dist/experimental/testing/internal/element.js +67 -0
  116. package/dist/experimental/testing/internal/errors.d.ts +44 -0
  117. package/dist/experimental/testing/internal/errors.js +52 -0
  118. package/dist/experimental/testing/internal/fragment.d.ts +8 -0
  119. package/dist/experimental/testing/internal/fragment.js +44 -0
  120. package/dist/experimental/testing/internal/print.d.ts +6 -0
  121. package/dist/experimental/testing/internal/print.js +114 -0
  122. package/dist/experimental/testing/internal/query.d.ts +57 -0
  123. package/dist/experimental/testing/internal/query.js +231 -0
  124. package/dist/experimental/testing/internal/root.d.ts +8 -0
  125. package/dist/experimental/testing/internal/root.js +44 -0
  126. package/dist/experimental/testing/internal/text.d.ts +9 -0
  127. package/dist/experimental/testing/internal/text.js +16 -0
  128. package/dist/experimental/testing/internal/types-internal.d.ts +47 -0
  129. package/dist/experimental/testing/internal/types-internal.js +1 -0
  130. package/dist/experimental/testing/type-utils.d.ts +29 -0
  131. package/dist/experimental/testing/type-utils.js +37 -0
  132. package/dist/experimental/testing/types.d.ts +240 -0
  133. package/dist/experimental/testing/types.js +10 -0
  134. package/dist/hubspot.d.ts +1 -1
  135. package/dist/index.d.ts +2 -2
  136. package/dist/index.js +2 -2
  137. package/dist/pages/home/index.d.ts +1 -0
  138. package/dist/pages/home/index.js +1 -0
  139. package/package.json +12 -10
  140. package/dist/coreComponents.d.ts +0 -844
  141. package/dist/crm/components.js +0 -15
  142. package/dist/experimental/testing/index.d.ts +0 -14
  143. package/dist/experimental/testing/index.js +0 -33
  144. package/dist/experimental/testing/jest/matchers/index.d.ts +0 -6
  145. package/dist/experimental/testing/jest/matchers/index.js +0 -6
  146. package/dist/types.d.ts +0 -3167
  147. package/dist/utils/createExtensionComponent.d.ts +0 -3
  148. package/dist/utils/createExtensionComponent.js +0 -4
  149. /package/dist/{experimental/types.js → __synced__/experimental/types.synced.js} +0 -0
@@ -1,4 +1,11 @@
1
- import { createRemoteReactComponent } from '@remote-ui/react';
1
+ import { createRemoteComponentRegistry } from './utils/remote-component-registry.synced';
2
+ /**
3
+ * Represents a registry of HubSpot-provided React components that should only be used **internally** by the UI extension SDK.
4
+ *
5
+ * @internal
6
+ */
7
+ export const __hubSpotComponentRegistry = createRemoteComponentRegistry();
8
+ const { createAndRegisterRemoteReactComponent, createAndRegisterRemoteCompoundReactComponent, } = __hubSpotComponentRegistry;
2
9
  /**
3
10
  * The `Alert` component renders an alert within a card. Use this component to give usage guidance, notify users of action results, or warn them about potential issues or failures.
4
11
  *
@@ -7,7 +14,7 @@ import { createRemoteReactComponent } from '@remote-ui/react';
7
14
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/alert Docs}
8
15
  * - {@link https://app.hubspot.com/docs/48008916/reference/ui-components/standard-components/alert#variants Variants}
9
16
  */
10
- export const Alert = createRemoteReactComponent('Alert');
17
+ export const Alert = createAndRegisterRemoteReactComponent('Alert');
11
18
  /**
12
19
  * The `Button` component renders a single button. Use this component to enable users to perform actions, such as submitting a form, sending data to an external system, or deleting data.
13
20
  *
@@ -17,7 +24,7 @@ export const Alert = createRemoteReactComponent('Alert');
17
24
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/button#usage-examples Examples}
18
25
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/design-patterns#button Design Pattern Examples}
19
26
  */
20
- export const Button = createRemoteReactComponent('Button', {
27
+ export const Button = createAndRegisterRemoteReactComponent('Button', {
21
28
  fragmentProps: ['overlay'],
22
29
  });
23
30
  /**
@@ -27,8 +34,8 @@ export const Button = createRemoteReactComponent('Button', {
27
34
  *
28
35
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/button-row Docs}
29
36
  */
30
- export const ButtonRow = createRemoteReactComponent('ButtonRow');
31
- export const Card = createRemoteReactComponent('Card');
37
+ export const ButtonRow = createAndRegisterRemoteReactComponent('ButtonRow');
38
+ export const Card = createAndRegisterRemoteReactComponent('Card');
32
39
  /**
33
40
  * The `DescriptionList` component renders pairs of labels and values. Use this component to display pairs of labels and values in a way that's easy to read at a glance.
34
41
  *
@@ -36,7 +43,7 @@ export const Card = createRemoteReactComponent('Card');
36
43
  *
37
44
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/description-list Docs}
38
45
  */
39
- export const DescriptionList = createRemoteReactComponent('DescriptionList');
46
+ export const DescriptionList = createAndRegisterRemoteReactComponent('DescriptionList');
40
47
  /**
41
48
  * The `DescriptionListItem` component renders a single set of a label and value. Use this component within a `DescriptionList` component.
42
49
  *
@@ -44,7 +51,7 @@ export const DescriptionList = createRemoteReactComponent('DescriptionList');
44
51
  *
45
52
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/description-list Docs}
46
53
  */
47
- export const DescriptionListItem = createRemoteReactComponent('DescriptionListItem');
54
+ export const DescriptionListItem = createAndRegisterRemoteReactComponent('DescriptionListItem');
48
55
  /**
49
56
  * The `Divider` component renders a grey, horizontal line for spacing out components vertically or creating sections in an extension. Use this component to space out other components when the content needs more separation than white space.
50
57
  *
@@ -52,7 +59,7 @@ export const DescriptionListItem = createRemoteReactComponent('DescriptionListIt
52
59
  *
53
60
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/divider Docs}
54
61
  */
55
- export const Divider = createRemoteReactComponent('Divider');
62
+ export const Divider = createAndRegisterRemoteReactComponent('Divider');
56
63
  /**
57
64
  * The `EmptyState` component sets the content that appears when the extension is in an empty state. Use this component when there's no content or data to help guide users.
58
65
  *
@@ -60,7 +67,7 @@ export const Divider = createRemoteReactComponent('Divider');
60
67
  *
61
68
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/empty-state Docs}
62
69
  */
63
- export const EmptyState = createRemoteReactComponent('EmptyState');
70
+ export const EmptyState = createAndRegisterRemoteReactComponent('EmptyState');
64
71
  /**
65
72
  * The `ErrorState` component sets the content of an erroring extension. Use this component to guide users through resolving errors that your extension might encounter.
66
73
  *
@@ -68,7 +75,7 @@ export const EmptyState = createRemoteReactComponent('EmptyState');
68
75
  *
69
76
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/error-state Docs}
70
77
  */
71
- export const ErrorState = createRemoteReactComponent('ErrorState');
78
+ export const ErrorState = createAndRegisterRemoteReactComponent('ErrorState');
72
79
  /**
73
80
  * The `Form` component renders a form that can contain other subcomponents, such as `Input`, `Select`, and `Button`. Use this component to enable users to submit data to HubSpot or an external system.
74
81
  *
@@ -77,7 +84,7 @@ export const ErrorState = createRemoteReactComponent('ErrorState');
77
84
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/form Docs}
78
85
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/design-patterns#form Design Pattern Examples}
79
86
  */
80
- export const Form = createRemoteReactComponent('Form');
87
+ export const Form = createAndRegisterRemoteReactComponent('Form');
81
88
  /**
82
89
  * The `Heading` component renders large heading text. Use this component to introduce or differentiate sections of your component.
83
90
  *
@@ -85,7 +92,7 @@ export const Form = createRemoteReactComponent('Form');
85
92
  *
86
93
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/heading Docs}
87
94
  */
88
- export const Heading = createRemoteReactComponent('Heading');
95
+ export const Heading = createAndRegisterRemoteReactComponent('Heading');
89
96
  /**
90
97
  * The `Image` component renders an image. Use this component to add a logo or other visual brand identity asset, or to accentuate other content in the extension.
91
98
  *
@@ -93,7 +100,7 @@ export const Heading = createRemoteReactComponent('Heading');
93
100
  *
94
101
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/image Docs}
95
102
  */
96
- export const Image = createRemoteReactComponent('Image', {
103
+ export const Image = createAndRegisterRemoteReactComponent('Image', {
97
104
  fragmentProps: ['overlay'],
98
105
  });
99
106
  /**
@@ -103,7 +110,7 @@ export const Image = createRemoteReactComponent('Image', {
103
110
  *
104
111
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/input Docs}
105
112
  */
106
- export const Input = createRemoteReactComponent('Input');
113
+ export const Input = createAndRegisterRemoteReactComponent('Input');
107
114
  /**
108
115
  * The `Link` component renders a clickable hyperlink. Use links to direct users to an external web page or another part of the HubSpot app.
109
116
  *
@@ -111,7 +118,7 @@ export const Input = createRemoteReactComponent('Input');
111
118
  *
112
119
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/link Docs}
113
120
  */
114
- export const Link = createRemoteReactComponent('Link', {
121
+ export const Link = createAndRegisterRemoteReactComponent('Link', {
115
122
  fragmentProps: ['overlay'],
116
123
  });
117
124
  /**
@@ -121,11 +128,11 @@ export const Link = createRemoteReactComponent('Link', {
121
128
  *
122
129
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/text-area Docs}
123
130
  */
124
- export const TextArea = createRemoteReactComponent('TextArea');
131
+ export const TextArea = createAndRegisterRemoteReactComponent('TextArea');
125
132
  // Textarea was changed to TextArea
126
133
  // Exporting both for backwards compat
127
134
  /** @deprecated use TextArea instead. With a capital A.*/
128
- export const Textarea = createRemoteReactComponent('Textarea');
135
+ export const Textarea = createAndRegisterRemoteReactComponent('Textarea');
129
136
  /**
130
137
  * The `LoadingSpinner` component renders a visual indicator for when an extension is loading or processing data.
131
138
  *
@@ -133,7 +140,7 @@ export const Textarea = createRemoteReactComponent('Textarea');
133
140
  *
134
141
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/loading-spinner Docs}
135
142
  */
136
- export const LoadingSpinner = createRemoteReactComponent('LoadingSpinner');
143
+ export const LoadingSpinner = createAndRegisterRemoteReactComponent('LoadingSpinner');
137
144
  /**
138
145
  * The `ProgressBar` component renders a visual indicator showing a numeric and/or percentage-based representation of progress. The percentage is calculated based on the maximum possible value specified in the component.
139
146
  *
@@ -141,7 +148,7 @@ export const LoadingSpinner = createRemoteReactComponent('LoadingSpinner');
141
148
  *
142
149
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/progress-bar Docs}
143
150
  */
144
- export const ProgressBar = createRemoteReactComponent('ProgressBar');
151
+ export const ProgressBar = createAndRegisterRemoteReactComponent('ProgressBar');
145
152
  /**
146
153
  * The `Select` component renders a dropdown menu select field where a user can select a single value. A search bar will be automatically included when there are more than seven options. Like other inputs, this component should be used within a `Form` that has a submit button.
147
154
  *
@@ -149,7 +156,7 @@ export const ProgressBar = createRemoteReactComponent('ProgressBar');
149
156
  *
150
157
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/select Docs}
151
158
  */
152
- export const Select = createRemoteReactComponent('Select');
159
+ export const Select = createAndRegisterRemoteReactComponent('Select');
153
160
  /**
154
161
  * The `Tag` component renders a tag to label or categorize information or other components. Tags can be static or clickable for invoking functions.
155
162
  *
@@ -157,7 +164,7 @@ export const Select = createRemoteReactComponent('Select');
157
164
  *
158
165
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tag Docs}
159
166
  */
160
- export const Tag = createRemoteReactComponent('Tag', {
167
+ export const Tag = createAndRegisterRemoteReactComponent('Tag', {
161
168
  fragmentProps: ['overlay'],
162
169
  });
163
170
  /**
@@ -167,7 +174,7 @@ export const Tag = createRemoteReactComponent('Tag', {
167
174
  *
168
175
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/text Docs}
169
176
  */
170
- export const Text = createRemoteReactComponent('Text');
177
+ export const Text = createAndRegisterRemoteReactComponent('Text');
171
178
  /**
172
179
  * The `Tile` component renders a square tile that can contain other components. Use this component to create groups of related components.
173
180
  *
@@ -175,9 +182,9 @@ export const Text = createRemoteReactComponent('Text');
175
182
  *
176
183
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tile Docs}
177
184
  */
178
- export const Tile = createRemoteReactComponent('Tile');
185
+ export const Tile = createAndRegisterRemoteReactComponent('Tile');
179
186
  /** @deprecated use Flex instead. It will be removed in the next release. */
180
- export const Stack = createRemoteReactComponent('Stack');
187
+ export const Stack = createAndRegisterRemoteReactComponent('Stack');
181
188
  /**
182
189
  * The `ToggleGroup` component renders a list of selectable options, either in radio button or checkbox form.
183
190
  *
@@ -185,7 +192,7 @@ export const Stack = createRemoteReactComponent('Stack');
185
192
  *
186
193
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/toggle-group Docs}
187
194
  */
188
- export const ToggleGroup = createRemoteReactComponent('ToggleGroup');
195
+ export const ToggleGroup = createAndRegisterRemoteReactComponent('ToggleGroup');
189
196
  /**
190
197
  * The `StatisticsItem` component renders a single data point within a `Statistics` component. Use this component to display a single data point, such as a number or percentage.
191
198
  *
@@ -193,7 +200,7 @@ export const ToggleGroup = createRemoteReactComponent('ToggleGroup');
193
200
  *
194
201
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/statistics Docs}
195
202
  */
196
- export const StatisticsItem = createRemoteReactComponent('StatisticsItem');
203
+ export const StatisticsItem = createAndRegisterRemoteReactComponent('StatisticsItem');
197
204
  /**
198
205
  * The `Statistics` component renders a visual spotlight of one or more data points. Includes the `StatisticsItem` and `StatisticsTrend` subcomponents.
199
206
  *
@@ -201,7 +208,7 @@ export const StatisticsItem = createRemoteReactComponent('StatisticsItem');
201
208
  *
202
209
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/statistics Docs}
203
210
  */
204
- export const Statistics = createRemoteReactComponent('Statistics');
211
+ export const Statistics = createAndRegisterRemoteReactComponent('Statistics');
205
212
  /**
206
213
  * The `StatisticsTrend` component renders a percentage trend value and direction alonside a `StatisticsItem` component. Use this component within the `StatisticsItem` component.
207
214
  *
@@ -209,7 +216,7 @@ export const Statistics = createRemoteReactComponent('Statistics');
209
216
  *
210
217
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/statistics Docs}
211
218
  */
212
- export const StatisticsTrend = createRemoteReactComponent('StatisticsTrend');
219
+ export const StatisticsTrend = createAndRegisterRemoteReactComponent('StatisticsTrend');
213
220
  /**
214
221
  * The `Table` component renders a table. To format the table, use the subcomponents `TableHead`, `TableRow`, `TableHeader`, `TableBody`, `TableCell`and `TableFooter`.
215
222
  *
@@ -218,7 +225,7 @@ export const StatisticsTrend = createRemoteReactComponent('StatisticsTrend');
218
225
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
219
226
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/design-patterns#table Design Pattern Example}
220
227
  */
221
- export const Table = createRemoteReactComponent('Table');
228
+ export const Table = createAndRegisterRemoteReactComponent('Table');
222
229
  /**
223
230
  * The `TableFooter` component renders a footer within a `Table` component. Use this component to display totals or other summary information.
224
231
  *
@@ -226,7 +233,7 @@ export const Table = createRemoteReactComponent('Table');
226
233
  *
227
234
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
228
235
  */
229
- export const TableFooter = createRemoteReactComponent('TableFooter');
236
+ export const TableFooter = createAndRegisterRemoteReactComponent('TableFooter');
230
237
  /**
231
238
  * The `TableCell` component renders individual cells within the `TableBody` component.
232
239
  *
@@ -234,7 +241,7 @@ export const TableFooter = createRemoteReactComponent('TableFooter');
234
241
  *
235
242
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
236
243
  */
237
- export const TableCell = createRemoteReactComponent('TableCell');
244
+ export const TableCell = createAndRegisterRemoteReactComponent('TableCell');
238
245
  /**
239
246
  * The `TableRow` component renders a row within the `TableBody` or `TableHead` component.
240
247
  *
@@ -242,7 +249,7 @@ export const TableCell = createRemoteReactComponent('TableCell');
242
249
  *
243
250
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
244
251
  */
245
- export const TableRow = createRemoteReactComponent('TableRow');
252
+ export const TableRow = createAndRegisterRemoteReactComponent('TableRow');
246
253
  /**
247
254
  * The `TableBody` component renders the body (rows and cells) of a table within the `Table` component.
248
255
  *
@@ -250,7 +257,7 @@ export const TableRow = createRemoteReactComponent('TableRow');
250
257
  *
251
258
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
252
259
  */
253
- export const TableBody = createRemoteReactComponent('TableBody');
260
+ export const TableBody = createAndRegisterRemoteReactComponent('TableBody');
254
261
  /**
255
262
  * The `TableHeader` component renders individual cells containing bolded column labels, within `TableHead`.
256
263
  *
@@ -258,7 +265,7 @@ export const TableBody = createRemoteReactComponent('TableBody');
258
265
  *
259
266
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
260
267
  */
261
- export const TableHeader = createRemoteReactComponent('TableHeader');
268
+ export const TableHeader = createAndRegisterRemoteReactComponent('TableHeader');
262
269
  /**
263
270
  * The `TableHead` component renders the header section of the `Table` component, containing column labels.
264
271
  *
@@ -266,7 +273,7 @@ export const TableHeader = createRemoteReactComponent('TableHeader');
266
273
  *
267
274
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/table Docs}
268
275
  */
269
- export const TableHead = createRemoteReactComponent('TableHead');
276
+ export const TableHead = createAndRegisterRemoteReactComponent('TableHead');
270
277
  /**
271
278
  * The `NumberInput` component renders a number input field. Like other inputs, this component should be used within a `Form` that has a submit button.
272
279
  *
@@ -274,7 +281,7 @@ export const TableHead = createRemoteReactComponent('TableHead');
274
281
  *
275
282
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/number-input Docs}
276
283
  */
277
- export const NumberInput = createRemoteReactComponent('NumberInput');
284
+ export const NumberInput = createAndRegisterRemoteReactComponent('NumberInput');
278
285
  /**
279
286
  * The `Box` component renders an empty div container for fine tuning the spacing of components. Commonly used with the `Flex` component.
280
287
  *
@@ -283,7 +290,7 @@ export const NumberInput = createRemoteReactComponent('NumberInput');
283
290
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/box Docs}
284
291
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/flex-and-box Flex and Box Example}
285
292
  */
286
- export const Box = createRemoteReactComponent('Box');
293
+ export const Box = createAndRegisterRemoteReactComponent('Box');
287
294
  /**
288
295
  * The `StepIndicator` component renders an indicator to show the current step of a multi-step process.
289
296
  *
@@ -291,7 +298,7 @@ export const Box = createRemoteReactComponent('Box');
291
298
  *
292
299
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/step-indicator Docs}
293
300
  */
294
- export const StepIndicator = createRemoteReactComponent('StepIndicator');
301
+ export const StepIndicator = createAndRegisterRemoteReactComponent('StepIndicator');
295
302
  /**
296
303
  * The `Accordion` component renders an expandable and collapsable section that can contain other components. This component can be helpful for saving space and breaking up extension content.
297
304
  *
@@ -299,7 +306,7 @@ export const StepIndicator = createRemoteReactComponent('StepIndicator');
299
306
  *
300
307
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/accordion Docs}
301
308
  */
302
- export const Accordion = createRemoteReactComponent('Accordion');
309
+ export const Accordion = createAndRegisterRemoteReactComponent('Accordion');
303
310
  /**
304
311
  * The MultiSelect component renders a dropdown menu select field where a user can select multiple values. Commonly used within the `Form` component.
305
312
  *
@@ -307,7 +314,7 @@ export const Accordion = createRemoteReactComponent('Accordion');
307
314
  *
308
315
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/multi-select Docs}
309
316
  */
310
- export const MultiSelect = createRemoteReactComponent('MultiSelect');
317
+ export const MultiSelect = createAndRegisterRemoteReactComponent('MultiSelect');
311
318
  /**
312
319
  * The `Flex` component renders a flex container that can contain other components, and arrange them with props. Use this component to create a flexible and responsive layout.
313
320
  *
@@ -316,7 +323,7 @@ export const MultiSelect = createRemoteReactComponent('MultiSelect');
316
323
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/flex Docs}
317
324
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/flex-and-box Flex and Box Example}
318
325
  */
319
- export const Flex = createRemoteReactComponent('Flex');
326
+ export const Flex = createAndRegisterRemoteReactComponent('Flex');
320
327
  /**
321
328
  * The `DateInput` component renders an input field where a user can select a date. Commonly used within the `Form` component.
322
329
  *
@@ -324,7 +331,7 @@ export const Flex = createRemoteReactComponent('Flex');
324
331
  *
325
332
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/date-input Docs}
326
333
  */
327
- export const DateInput = createRemoteReactComponent('DateInput');
334
+ export const DateInput = createAndRegisterRemoteReactComponent('DateInput');
328
335
  /**
329
336
  * The `Checkbox` component renders a single checkbox input. Commonly used within the `Form` component. If you want to display multiple checkboxes, you should use `ToggleGroup` instead, as it comes with extra logic for handling multiple checkboxes.
330
337
  *
@@ -332,11 +339,11 @@ export const DateInput = createRemoteReactComponent('DateInput');
332
339
  *
333
340
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/checkbox Docs}
334
341
  */
335
- export const Checkbox = createRemoteReactComponent('Checkbox');
342
+ export const Checkbox = createAndRegisterRemoteReactComponent('Checkbox');
336
343
  /**
337
344
  * The `RadioButton` component renders a single radio input. Commonly used within the `Form` component. If you want to display multiple radio inputs, you should use `ToggleGroup` instead, as it comes with extra logic for handling multiple inputs.
338
345
  */
339
- export const RadioButton = createRemoteReactComponent('RadioButton');
346
+ export const RadioButton = createAndRegisterRemoteReactComponent('RadioButton');
340
347
  /**
341
348
  * The `List` component renders a list of items. Use this component to display a list of items, such as a list of contacts, tasks, or other data. A list can be styled as a bulleted list or a numbered list.
342
349
  *
@@ -344,7 +351,7 @@ export const RadioButton = createRemoteReactComponent('RadioButton');
344
351
  *
345
352
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/list Docs}
346
353
  */
347
- export const List = createRemoteReactComponent('List');
354
+ export const List = createAndRegisterRemoteReactComponent('List');
348
355
  /**
349
356
  * The `Toggle` component renders a boolean toggle switch that can be configured with sizing, label position, read-only, and more.
350
357
  *
@@ -352,7 +359,7 @@ export const List = createRemoteReactComponent('List');
352
359
  *
353
360
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/toggle Docs}
354
361
  */
355
- export const Toggle = createRemoteReactComponent('Toggle');
362
+ export const Toggle = createAndRegisterRemoteReactComponent('Toggle');
356
363
  /**
357
364
  * The `Dropdown` component renders a dropdown menu that can appear as a button or hyperlink. Use this component to enable users to select from multiple options in a compact list.
358
365
  *
@@ -360,7 +367,20 @@ export const Toggle = createRemoteReactComponent('Toggle');
360
367
  *
361
368
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/dropdown Docs}
362
369
  */
363
- export const Dropdown = createRemoteReactComponent('Dropdown');
370
+ export const Dropdown = createAndRegisterRemoteCompoundReactComponent('Dropdown', {
371
+ compoundComponentProperties: {
372
+ /**
373
+ * The `Dropdown.ButtonItem` component represents a single option within a `Dropdown` menu. Use this component as a child of the `Dropdown` component.
374
+ *
375
+ * **Links:**
376
+ *
377
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/dropdown Docs}
378
+ */
379
+ ButtonItem: createAndRegisterRemoteReactComponent('DropdownButtonItem', {
380
+ fragmentProps: ['overlay'],
381
+ }),
382
+ },
383
+ });
364
384
  /**
365
385
  * The Panel component renders a panel overlay on the right side of the page and contains other components.
366
386
  *
@@ -370,7 +390,7 @@ export const Dropdown = createRemoteReactComponent('Dropdown');
370
390
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
371
391
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/design-patterns#panel Design Pattern Examples}
372
392
  */
373
- export const Panel = createRemoteReactComponent('Panel');
393
+ export const Panel = createAndRegisterRemoteReactComponent('Panel');
374
394
  /**
375
395
  * The `PanelFooter` is a sticky footer component displayed at the bottom of a `Panel` component. Use this component to display actions or other content that should be visible at all times. Include only one `PanelFooter` component per `Panel`.
376
396
  *
@@ -379,7 +399,7 @@ export const Panel = createRemoteReactComponent('Panel');
379
399
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/panel-footer Docs}
380
400
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
381
401
  */
382
- export const PanelFooter = createRemoteReactComponent('PanelFooter');
402
+ export const PanelFooter = createAndRegisterRemoteReactComponent('PanelFooter');
383
403
  /**
384
404
  * The `PanelBody` component is a container that wraps the panel's content and makes it scrollable. Include only one `PanelBody` component per `Panel`.
385
405
  *
@@ -388,7 +408,7 @@ export const PanelFooter = createRemoteReactComponent('PanelFooter');
388
408
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/panel-footer Docs}
389
409
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
390
410
  */
391
- export const PanelBody = createRemoteReactComponent('PanelBody');
411
+ export const PanelBody = createAndRegisterRemoteReactComponent('PanelBody');
392
412
  /**
393
413
  * The `PanelSection` component is a container that adds padding and bottom margin to provide spacing between content. Use the `PanelSection` component to separate content within a `PanelBody`.
394
414
  *
@@ -397,7 +417,7 @@ export const PanelBody = createRemoteReactComponent('PanelBody');
397
417
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/panel-footer Docs}
398
418
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
399
419
  */
400
- export const PanelSection = createRemoteReactComponent('PanelSection');
420
+ export const PanelSection = createAndRegisterRemoteReactComponent('PanelSection');
401
421
  /**
402
422
  * The `StepperInput` component renders a number input field that can be increased or decreased by a set number. Commonly used within the `Form` component.
403
423
  *
@@ -405,7 +425,7 @@ export const PanelSection = createRemoteReactComponent('PanelSection');
405
425
  *
406
426
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/stepper-input Docs}
407
427
  */
408
- export const StepperInput = createRemoteReactComponent('StepperInput');
428
+ export const StepperInput = createAndRegisterRemoteReactComponent('StepperInput');
409
429
  /**
410
430
  * The Modal component renders a pop-up overlay that can contain other components.
411
431
  *
@@ -415,7 +435,7 @@ export const StepperInput = createRemoteReactComponent('StepperInput');
415
435
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
416
436
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/design-patterns#modal Design Pattern Examples}
417
437
  */
418
- export const Modal = createRemoteReactComponent('Modal');
438
+ export const Modal = createAndRegisterRemoteReactComponent('Modal');
419
439
  /**
420
440
  * The `ModalBody` component contains the main content of the modal. One `ModalBody` is required per `Modal`.
421
441
  *
@@ -424,7 +444,7 @@ export const Modal = createRemoteReactComponent('Modal');
424
444
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/modal Docs}
425
445
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
426
446
  */
427
- export const ModalBody = createRemoteReactComponent('ModalBody');
447
+ export const ModalBody = createAndRegisterRemoteReactComponent('ModalBody');
428
448
  /**
429
449
  * The `ModalFooter` component is an optional component to format the footer section of the modal. Use one `ModalFooter` per `Modal`.
430
450
  *
@@ -433,7 +453,7 @@ export const ModalBody = createRemoteReactComponent('ModalBody');
433
453
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/modal Docs}
434
454
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/overlay-example Overlay Example}
435
455
  */
436
- export const ModalFooter = createRemoteReactComponent('ModalFooter');
456
+ export const ModalFooter = createAndRegisterRemoteReactComponent('ModalFooter');
437
457
  /**
438
458
  * Use the `Icon` component to render a visual icon within other components. It can generally be used inside most components, excluding ones that don't support child components.
439
459
  *
@@ -441,7 +461,7 @@ export const ModalFooter = createRemoteReactComponent('ModalFooter');
441
461
  *
442
462
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/icon Docs}
443
463
  */
444
- export const Icon = createRemoteReactComponent('Icon');
464
+ export const Icon = createAndRegisterRemoteReactComponent('Icon');
445
465
  /**
446
466
  * The `StatusTag` component renders a visual indicator to display the current status of an item. Status tags can be static or clickable.
447
467
  *
@@ -450,7 +470,7 @@ export const Icon = createRemoteReactComponent('Icon');
450
470
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/status-tag Docs}
451
471
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/status-tag#variants Variants}
452
472
  */
453
- export const StatusTag = createRemoteReactComponent('StatusTag');
473
+ export const StatusTag = createAndRegisterRemoteReactComponent('StatusTag');
454
474
  /**
455
475
  * The `LoadingButton` component renders a button with loading state options.
456
476
  *
@@ -458,7 +478,7 @@ export const StatusTag = createRemoteReactComponent('StatusTag');
458
478
  *
459
479
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/loading-button Docs}
460
480
  */
461
- export const LoadingButton = createRemoteReactComponent('LoadingButton', {
481
+ export const LoadingButton = createAndRegisterRemoteReactComponent('LoadingButton', {
462
482
  fragmentProps: ['overlay'],
463
483
  });
464
484
  /**
@@ -470,7 +490,7 @@ export const LoadingButton = createRemoteReactComponent('LoadingButton', {
470
490
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/charts Charts Docs}
471
491
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/charts-example Charts Example}
472
492
  */
473
- export const BarChart = createRemoteReactComponent('BarChart');
493
+ export const BarChart = createAndRegisterRemoteReactComponent('BarChart');
474
494
  /**
475
495
  * The `LineChart` component renders a line chart for visualizing data. This type of chart is best suited for time series plots or trend data.
476
496
  *
@@ -480,7 +500,7 @@ export const BarChart = createRemoteReactComponent('BarChart');
480
500
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/charts Charts Docs}
481
501
  * - {@link https://github.com/HubSpot/ui-extensions-examples/tree/main/charts-example Charts Example}
482
502
  */
483
- export const LineChart = createRemoteReactComponent('LineChart');
503
+ export const LineChart = createAndRegisterRemoteReactComponent('LineChart');
484
504
  /**
485
505
  * `Tabs` allow you to group related content in a compact space, allowing users to switch between views without leaving the page.
486
506
  * @example
@@ -495,7 +515,7 @@ export const LineChart = createRemoteReactComponent('LineChart');
495
515
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tabs Documentation}
496
516
  * - {@link https://github.com/hubspotdev/uie-tabbed-product-carousel Tabs Example}
497
517
  */
498
- export const Tabs = createRemoteReactComponent('Tabs');
518
+ export const Tabs = createAndRegisterRemoteReactComponent('Tabs');
499
519
  /**
500
520
  * Each `Tab` represents a single tab (or "view") within the parent `Tabs` component.
501
521
  * @example
@@ -510,7 +530,7 @@ export const Tabs = createRemoteReactComponent('Tabs');
510
530
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tabs Documentation}
511
531
  * - {@link https://github.com/hubspotdev/uie-tabbed-product-carousel Tabs Example}
512
532
  */
513
- export const Tab = createRemoteReactComponent('Tab');
533
+ export const Tab = createAndRegisterRemoteReactComponent('Tab');
514
534
  /**
515
535
  * The `Illustration` component renders an illustration.
516
536
  *
@@ -518,14 +538,14 @@ export const Tab = createRemoteReactComponent('Tab');
518
538
  *
519
539
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/illustration Illustration Docs}
520
540
  */
521
- export const Illustration = createRemoteReactComponent('Illustration');
541
+ export const Illustration = createAndRegisterRemoteReactComponent('Illustration');
522
542
  /**
523
543
  * The `Tooltip` component renders a tooltip for a component.
524
544
  *
525
545
  * **Links:**
526
546
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tooltip Documentation}
527
547
  */
528
- export const Tooltip = createRemoteReactComponent('Tooltip');
548
+ export const Tooltip = createAndRegisterRemoteReactComponent('Tooltip');
529
549
  /**
530
550
  * The `SearchInput` component renders a search input field.
531
551
  *
@@ -533,7 +553,7 @@ export const Tooltip = createRemoteReactComponent('Tooltip');
533
553
  *
534
554
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/search-input SearchInput Docs}
535
555
  */
536
- export const SearchInput = createRemoteReactComponent('SearchInput');
556
+ export const SearchInput = createAndRegisterRemoteReactComponent('SearchInput');
537
557
  /**
538
558
  * The `TimeInput` component renders an input field where a user can select a time. Commonly used within the `Form` component.
539
559
  *
@@ -541,7 +561,7 @@ export const SearchInput = createRemoteReactComponent('SearchInput');
541
561
  *
542
562
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/time-input Docs}
543
563
  */
544
- export const TimeInput = createRemoteReactComponent('TimeInput');
564
+ export const TimeInput = createAndRegisterRemoteReactComponent('TimeInput');
545
565
  /**
546
566
  * The `CurrencyInput` component renders a currency input field with proper formatting,
547
567
  * currency symbols, and locale-specific display patterns. Commonly used within the `Form` component.
@@ -550,14 +570,14 @@ export const TimeInput = createRemoteReactComponent('TimeInput');
550
570
  *
551
571
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/currency-input Docs}
552
572
  */
553
- export const CurrencyInput = createRemoteReactComponent('CurrencyInput');
573
+ export const CurrencyInput = createAndRegisterRemoteReactComponent('CurrencyInput');
554
574
  /**
555
575
  * The `Inline` component spreads aligns its children horizontally (along the x-axis).
556
576
  *
557
577
  * **Links:**
558
578
  *
559
579
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/inline Docs}
560
- */ export const Inline = createRemoteReactComponent('Inline');
580
+ */ export const Inline = createAndRegisterRemoteReactComponent('Inline');
561
581
  /**
562
582
  * The `AutoGrid` component renders a responsive grid layout that automatically adjusts the number of columns based on available space. Use this component to create flexible grid layouts for cards, tiles, or other content.
563
583
  *
@@ -565,4 +585,4 @@ export const CurrencyInput = createRemoteReactComponent('CurrencyInput');
565
585
  *
566
586
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/simple-grid Docs}
567
587
  */
568
- export const AutoGrid = createRemoteReactComponent('AutoGrid');
588
+ export const AutoGrid = createAndRegisterRemoteReactComponent('AutoGrid');
@@ -0,0 +1,57 @@
1
+ /** @ignore */
2
+ type AlertType = 'info' | 'warning' | 'success' | 'danger' | 'tip' | undefined;
3
+ /** @ignore */
4
+ export type AddAlertAction = (args: {
5
+ type?: AlertType;
6
+ message: string;
7
+ title?: string;
8
+ }) => void;
9
+ /** @ignore */
10
+ export type ReloadPageAction = () => void;
11
+ /** @ignore */
12
+ export type FetchCrmObjectPropertiesAction = (properties: string[] | '*') => Promise<Record<string, string>>;
13
+ /** @ignore */
14
+ interface OpenIframeActionPayload {
15
+ uri: string;
16
+ height: number;
17
+ width: number;
18
+ /** @deprecated This property is no longer functional and has no effect. Please avoid using it, as it will be removed in future updates */
19
+ associatedObjectProperties?: string[];
20
+ title?: string;
21
+ flush?: boolean;
22
+ }
23
+ /** @ignore */
24
+ export type OpenIframeModalAction = (action: OpenIframeActionPayload, onClose?: () => void) => void;
25
+ /** @ignore */
26
+ export type refreshObjectPropertiesAction = () => void;
27
+ /** @ignore */
28
+ export type onCrmPropertiesUpdateAction = (properties: string[] | '*', callback: (properties: Record<string, string>, error?: {
29
+ message: string;
30
+ }) => void) => void;
31
+ /** @ignore */
32
+ export type CloseOverlayAction = (id: string) => void;
33
+ /** @ignore */
34
+ export interface CrmHostActions {
35
+ addAlert: AddAlertAction;
36
+ reloadPage: ReloadPageAction;
37
+ fetchCrmObjectProperties: FetchCrmObjectPropertiesAction;
38
+ openIframeModal: OpenIframeModalAction;
39
+ refreshObjectProperties: refreshObjectPropertiesAction;
40
+ onCrmPropertiesUpdate: onCrmPropertiesUpdateAction;
41
+ }
42
+ /** @ignore */
43
+ export interface SettingsActions {
44
+ addAlert: AddAlertAction;
45
+ }
46
+ /** @ignore */
47
+ export interface AppHomeActions {
48
+ addAlert: AddAlertAction;
49
+ }
50
+ /** @ignore */
51
+ export interface UiePlatformActions {
52
+ copyTextToClipboard: Clipboard['writeText'];
53
+ closeOverlay: CloseOverlayAction;
54
+ reloadPage: ReloadPageAction;
55
+ openIframeModal: OpenIframeModalAction;
56
+ }
57
+ export {};
@@ -0,0 +1 @@
1
+ export {};