@hubspot/ui-extensions 0.11.0 → 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 (39) hide show
  1. package/dist/__synced__/remoteComponents.synced.d.ts +85 -354
  2. package/dist/__synced__/remoteComponents.synced.js +88 -83
  3. package/dist/__synced__/types/components/index.synced.d.ts +38 -38
  4. package/dist/__synced__/types/index.synced.d.ts +7 -7
  5. package/dist/__synced__/types/index.synced.js +1 -9
  6. package/dist/__synced__/types/shared.synced.d.ts +2 -3
  7. package/dist/__synced__/utils/remote-component-registry.synced.d.ts +80 -0
  8. package/dist/__synced__/utils/remote-component-registry.synced.js +64 -0
  9. package/dist/experimental/testing/internal/constants.d.ts +2 -0
  10. package/dist/experimental/testing/internal/constants.js +1 -0
  11. package/dist/experimental/testing/internal/debug.d.ts +8 -0
  12. package/dist/experimental/testing/internal/debug.js +10 -0
  13. package/dist/experimental/testing/internal/element.d.ts +11 -0
  14. package/dist/experimental/testing/internal/element.js +67 -0
  15. package/dist/experimental/testing/internal/errors.d.ts +44 -0
  16. package/dist/experimental/testing/internal/errors.js +52 -0
  17. package/dist/experimental/testing/internal/fragment.d.ts +8 -0
  18. package/dist/experimental/testing/internal/fragment.js +44 -0
  19. package/dist/experimental/testing/internal/print.d.ts +6 -0
  20. package/dist/experimental/testing/internal/print.js +114 -0
  21. package/dist/experimental/testing/internal/query.d.ts +57 -0
  22. package/dist/experimental/testing/internal/query.js +231 -0
  23. package/dist/experimental/testing/internal/root.d.ts +8 -0
  24. package/dist/experimental/testing/internal/root.js +44 -0
  25. package/dist/experimental/testing/internal/text.d.ts +9 -0
  26. package/dist/experimental/testing/internal/text.js +16 -0
  27. package/dist/experimental/testing/types.d.ts +1 -1
  28. package/dist/hubspot.d.ts +1 -1
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +2 -2
  31. package/dist/pages/home/index.d.ts +1 -1
  32. package/dist/pages/home/index.js +1 -1
  33. package/package.json +10 -5
  34. package/dist/coreComponents.d.ts +0 -848
  35. package/dist/coreComponents.js +0 -582
  36. package/dist/experimental/types.d.ts +0 -240
  37. package/dist/experimental/types.js +0 -5
  38. package/dist/types.d.ts +0 -3214
  39. package/dist/types.js +0 -244
@@ -1,240 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { RemoteFragment } from '@remote-ui/core';
3
- import type { AllDistances, ExtensionEvent, ReactionsHandler } from '../types';
4
- /**
5
- * @ignore
6
- * @experimental do not use in production
7
- */
8
- interface BaseLayout {
9
- fullWidth?: boolean;
10
- fullHeight?: boolean;
11
- }
12
- /**
13
- * @ignore
14
- * @experimental do not use in production
15
- */
16
- export type FlexJustify = 'center' | 'end' | 'start' | 'around' | 'between';
17
- /**
18
- * @ignore
19
- * @experimental do not use in production
20
- */
21
- export type FlexAlign = 'start' | 'center' | 'baseline' | 'end' | 'stretch';
22
- /**
23
- * @ignore
24
- * @experimental do not use in production
25
- */
26
- export interface Stack2Props extends BaseLayout {
27
- align?: FlexAlign;
28
- gap?: AllDistances;
29
- children?: ReactNode;
30
- }
31
- /**
32
- * @ignore
33
- * @experimental do not use in production
34
- */
35
- export interface CenterProps extends BaseLayout {
36
- maxContentSize?: number | string;
37
- gutter?: AllDistances;
38
- children?: ReactNode;
39
- }
40
- /**
41
- * @ignore
42
- * @experimental
43
- */
44
- export interface MediaObjectProps {
45
- align?: 'start' | 'center' | 'baseline' | 'end' | 'stretch';
46
- spacing?: 'none' | 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
47
- children?: ReactNode;
48
- itemLeft?: RemoteFragment;
49
- itemRight?: RemoteFragment;
50
- }
51
- export interface GridProps {
52
- justify?: FlexJustify;
53
- align?: FlexAlign;
54
- gap?: AllDistances;
55
- size?: number;
56
- children?: ReactNode;
57
- }
58
- export interface GridItemProps {
59
- size?: number;
60
- children?: ReactNode;
61
- offset?: number;
62
- }
63
- /**
64
- * @ignore
65
- * @experimental do not use in production
66
- */
67
- export interface SettingsViewProps {
68
- /**
69
- * Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
70
- */
71
- children: ReactNode;
72
- /**
73
- * If set to `true`, will show the save bar with "cancel" and "save" buttons at the bottom of the page.
74
- *
75
- * @defaultValue `false`
76
- */
77
- saveBarVisible?: boolean;
78
- /**
79
- * Used in the save bar to let the user know how many settings they've changed and not yet saved.
80
- */
81
- numberOfSettingsChanged?: number;
82
- /**
83
- * The function that will be invoked when the save button in the save bar is clicked.
84
- *
85
- * @event
86
- */
87
- onSave?: ReactionsHandler<ExtensionEvent>;
88
- /**
89
- * The function that will be invoked when the cancel button in the save bar is clicked.
90
- *
91
- * @event
92
- */
93
- onCancel?: ReactionsHandler<ExtensionEvent>;
94
- }
95
- /**
96
- * @ignore
97
- * @experimental do not use in production
98
- */
99
- export interface ExpandableTextProps {
100
- children: ReactNode;
101
- maxHeight?: number;
102
- expandButtonText?: string;
103
- collapseButtonText?: string;
104
- expanded?: boolean;
105
- }
106
- /**
107
- * @ignore
108
- * @experimental do not use in production
109
- */
110
- export interface PopoverProps {
111
- /**
112
- * A unique ID for the popover. Used to identify the popover in the overlay system.
113
- *
114
- */
115
- id: string;
116
- /**
117
- * The content to render inside the popover.
118
- */
119
- children: ReactNode;
120
- /**
121
- * The placement of the popover.
122
- *
123
- * @defaultValue `top`
124
- */
125
- placement?: 'left' | 'right' | 'top' | 'bottom';
126
- /**
127
- * The variant of the popover.
128
- *
129
- * @defaultValue `default`
130
- */
131
- variant?: 'default' | 'shepherd' | 'longform';
132
- /**
133
- * If set to `true`, will show the close button in the popover. PopoverHeader required to display close button.
134
- *
135
- * @defaultValue `false`
136
- */
137
- showCloseButton?: boolean;
138
- /**
139
- * The size of the arrow in the popover. If set to `none`, the arrow will not be displayed.
140
- *
141
- * @defaultValue `small`
142
- */
143
- arrowSize?: 'none' | 'small' | 'medium';
144
- }
145
- /**
146
- * @ignore
147
- * @experimental do not use in production
148
- */
149
- export interface FileInputProps {
150
- value?: File | {
151
- name: string;
152
- };
153
- name: string;
154
- onChange: (event: any) => void;
155
- }
156
- /**
157
- * Generic collection of props for all inputs (experimental version)
158
- * @internal
159
- * */
160
- export interface BaseInputProps<T = string, V = string> {
161
- /**
162
- * The label text to display for the form input element.
163
- */
164
- label: string;
165
- /**
166
- * The unique identifier for the input element, this could be thought of as the HTML5 [Input element's name attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name).
167
- */
168
- name: string;
169
- /**
170
- * The value of the input.
171
- */
172
- value?: T;
173
- /**
174
- * Determines if the required indicator should be displayed.
175
- *
176
- * @defaultValue `false`
177
- */
178
- required?: boolean;
179
- /**
180
- * Determines if the field is editable or not.
181
- *
182
- * @defaultValue `false`
183
- */
184
- readOnly?: boolean;
185
- /**
186
- * Instructional message to display to the user to help understand the purpose of the input.
187
- */
188
- description?: string;
189
- /**
190
- * Text that will appear in a tooltip next to the input label.
191
- */
192
- tooltip?: string;
193
- /**
194
- * Text that appears in the input when it has no value set.
195
- */
196
- placeholder?: string;
197
- /**
198
- * If set to `true`, `validationMessage` is displayed as an error message, if it was provided. The input will also render its error state to let the user know there is an error. If set to `false`, `validationMessage` is displayed as a success message.
199
- *
200
- * @defaultValue `false`
201
- */
202
- error?: boolean;
203
- /**
204
- * The value of the input on the first render.
205
- */
206
- defaultValue?: T;
207
- /**
208
- * The text to show under the input for error or success validations.
209
- */
210
- validationMessage?: string;
211
- /**
212
- * A callback function that is invoked when the value is committed. Currently these times are `onBlur` of the input and when the user submits the form.
213
- *
214
- * @event
215
- */
216
- onChange?: (value: V) => void;
217
- /**
218
- * A function that is called and passed the value every time the field is edited by the user. It is recommended that you do not use this value to update state, that is what `onChange` should be used for. Instead this should be used for validation.
219
- *
220
- * @event
221
- */
222
- onInput?: (value: V) => void;
223
- /**
224
- * A function that is called and passed the value every time the field loses focus.
225
- *
226
- * @event
227
- */
228
- onBlur?: (value: V) => void;
229
- /**
230
- * A function that is called and passed the value every time the field gets focused.
231
- *
232
- * @event
233
- */
234
- onFocus?: (value: V) => void;
235
- }
236
- export {};
237
- /**
238
- * @ignore
239
- * @experimental do not use in production
240
- */
@@ -1,5 +0,0 @@
1
- export {};
2
- /**
3
- * @ignore
4
- * @experimental do not use in production
5
- */