@hubspot/ui-extensions 0.11.0 → 0.11.2
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/__synced__/experimental/types.synced.d.ts +3 -4
- package/dist/__synced__/remoteComponents.synced.d.ts +168 -355
- package/dist/__synced__/remoteComponents.synced.js +186 -83
- package/dist/__synced__/types/components/button.synced.d.ts +6 -0
- package/dist/__synced__/types/components/index.synced.d.ts +38 -38
- package/dist/__synced__/types/index.synced.d.ts +7 -7
- package/dist/__synced__/types/index.synced.js +1 -9
- package/dist/__synced__/types/shared.synced.d.ts +2 -3
- package/dist/__synced__/utils/remote-component-registry.synced.d.ts +80 -0
- package/dist/__synced__/utils/remote-component-registry.synced.js +64 -0
- package/dist/__tests__/crm/hooks/useAssociations.spec.js +33 -29
- package/dist/__tests__/crm/hooks/useCrmProperties.spec.js +19 -18
- package/dist/__tests__/crm/utils/fetchAssociations.spec.js +8 -7
- package/dist/__tests__/crm/utils/fetchCrmProperties.spec.js +34 -33
- package/dist/crm/index.d.ts +1 -1
- package/dist/crm/index.js +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/experimental/testing/__tests__/debug.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/debug.spec.js +43 -0
- package/dist/experimental/testing/__tests__/find.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/find.spec.js +33 -0
- package/dist/experimental/testing/__tests__/findAll.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/findAll.spec.js +12 -0
- package/dist/experimental/testing/__tests__/findAllChildren.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/findAllChildren.spec.js +48 -0
- package/dist/experimental/testing/__tests__/findChild.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/findChild.spec.js +29 -0
- package/dist/experimental/testing/__tests__/fragments.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/fragments.spec.js +59 -0
- package/dist/experimental/testing/__tests__/invalid-components.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/invalid-components.spec.js +88 -0
- package/dist/experimental/testing/__tests__/isMatch.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/isMatch.spec.js +60 -0
- package/dist/experimental/testing/__tests__/maybeFind.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/maybeFind.spec.js +58 -0
- package/dist/experimental/testing/__tests__/maybeFindChild.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/maybeFindChild.spec.js +65 -0
- package/dist/experimental/testing/__tests__/trigger.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/trigger.spec.js +40 -0
- package/dist/experimental/testing/__tests__/type-utils.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/type-utils.spec.js +163 -0
- package/dist/experimental/testing/__tests__/waitFor.spec.d.ts +1 -0
- package/dist/experimental/testing/__tests__/waitFor.spec.js +55 -0
- package/dist/experimental/testing/index.d.ts +3 -0
- package/dist/experimental/testing/index.js +3 -0
- package/dist/experimental/testing/internal/constants.d.ts +2 -0
- package/dist/experimental/testing/internal/constants.js +1 -0
- package/dist/experimental/testing/internal/convert.d.ts +10 -0
- package/dist/experimental/testing/internal/convert.js +131 -0
- package/dist/experimental/testing/internal/debug.d.ts +8 -0
- package/dist/experimental/testing/internal/debug.js +19 -0
- package/dist/experimental/testing/internal/document.d.ts +14 -0
- package/dist/experimental/testing/internal/document.js +37 -0
- package/dist/experimental/testing/internal/element.d.ts +11 -0
- package/dist/experimental/testing/internal/element.js +67 -0
- package/dist/experimental/testing/internal/errors.d.ts +56 -0
- package/dist/experimental/testing/internal/errors.js +70 -0
- package/dist/experimental/testing/internal/fragment.d.ts +8 -0
- package/dist/experimental/testing/internal/fragment.js +44 -0
- package/dist/experimental/testing/internal/match.d.ts +19 -0
- package/dist/experimental/testing/internal/match.js +42 -0
- package/dist/experimental/testing/internal/print.d.ts +6 -0
- package/dist/experimental/testing/internal/print.js +114 -0
- package/dist/experimental/testing/internal/query.d.ts +57 -0
- package/dist/experimental/testing/internal/query.js +213 -0
- package/dist/experimental/testing/internal/root.d.ts +8 -0
- package/dist/experimental/testing/internal/root.js +44 -0
- package/dist/experimental/testing/internal/text.d.ts +9 -0
- package/dist/experimental/testing/internal/text.js +16 -0
- package/dist/experimental/testing/internal/utils/promise-utils.d.ts +14 -0
- package/dist/experimental/testing/internal/utils/promise-utils.js +14 -0
- package/dist/experimental/testing/render.d.ts +9 -0
- package/dist/experimental/testing/render.js +155 -0
- package/dist/experimental/testing/types.d.ts +2 -1
- package/dist/hubspot.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/pages/home/index.d.ts +1 -1
- package/dist/pages/home/index.js +1 -1
- package/package.json +19 -16
- package/dist/__synced__/appHomeRemoteComponents.synced.d.ts +0 -28
- package/dist/__synced__/appHomeRemoteComponents.synced.js +0 -21
- package/dist/__synced__/crmRemoteComponents.synced.d.ts +0 -66
- package/dist/__synced__/crmRemoteComponents.synced.js +0 -15
- package/dist/__synced__/experimentalRemoteComponents.synced.d.ts +0 -94
- package/dist/__synced__/experimentalRemoteComponents.synced.js +0 -56
- package/dist/coreComponents.d.ts +0 -848
- package/dist/coreComponents.js +0 -582
- package/dist/experimental/types.d.ts +0 -240
- package/dist/experimental/types.js +0 -5
- package/dist/types.d.ts +0 -3214
- package/dist/types.js +0 -244
package/dist/types.js
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
export class ExtensionEvent {
|
|
2
|
-
type;
|
|
3
|
-
bubbles;
|
|
4
|
-
timeStamp;
|
|
5
|
-
id;
|
|
6
|
-
constructor(event) {
|
|
7
|
-
this.bubbles = event.bubbles;
|
|
8
|
-
this.type = event.type;
|
|
9
|
-
this.timeStamp = event.timeStamp;
|
|
10
|
-
this.id = crypto.randomUUID();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export class FormSubmitExtensionEvent extends ExtensionEvent {
|
|
14
|
-
targetValue;
|
|
15
|
-
constructor(value, event) {
|
|
16
|
-
super(event);
|
|
17
|
-
this.targetValue = value;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export const iconNames = {
|
|
21
|
-
success: 'success',
|
|
22
|
-
remove: 'remove',
|
|
23
|
-
add: 'add',
|
|
24
|
-
attach: 'attach',
|
|
25
|
-
date: 'date',
|
|
26
|
-
copy: 'duplicate',
|
|
27
|
-
delete: 'delete',
|
|
28
|
-
edit: 'edit',
|
|
29
|
-
email: 'email',
|
|
30
|
-
exclamation: 'exclamation',
|
|
31
|
-
question: 'question',
|
|
32
|
-
home: 'home',
|
|
33
|
-
location: 'location',
|
|
34
|
-
upCarat: 'upCarat',
|
|
35
|
-
downCarat: 'downCarat',
|
|
36
|
-
warning: 'warning',
|
|
37
|
-
shoppingCart: 'cart',
|
|
38
|
-
clock: 'time',
|
|
39
|
-
comment: 'comments',
|
|
40
|
-
contact: 'contacts',
|
|
41
|
-
star: 'favorite',
|
|
42
|
-
file: 'file',
|
|
43
|
-
reports: 'reports',
|
|
44
|
-
video: 'video',
|
|
45
|
-
robot: 'simpleBot',
|
|
46
|
-
refresh: 'refresh',
|
|
47
|
-
faceHappy: 'emoji',
|
|
48
|
-
faceNeutral: 'emojiLineNeutral',
|
|
49
|
-
faceSad: 'emojiLineSad',
|
|
50
|
-
upload: 'upload',
|
|
51
|
-
download: 'download',
|
|
52
|
-
left: 'left',
|
|
53
|
-
right: 'right',
|
|
54
|
-
dataSync: 'dataSync',
|
|
55
|
-
imageGallery: 'imageGallery',
|
|
56
|
-
search: 'search',
|
|
57
|
-
save: 'saveEditableView',
|
|
58
|
-
notification: 'notification',
|
|
59
|
-
bulb: 'bulb',
|
|
60
|
-
settings: 'settings',
|
|
61
|
-
filter: 'filter',
|
|
62
|
-
gauge: 'gauge',
|
|
63
|
-
enroll: 'enroll',
|
|
64
|
-
generateChart: 'generateChart',
|
|
65
|
-
gift: 'gift',
|
|
66
|
-
flame: 'highlyEngagedLead',
|
|
67
|
-
inbox: 'inbox',
|
|
68
|
-
image: 'insertImage',
|
|
69
|
-
quote: 'insertQuote',
|
|
70
|
-
insertVideo: 'insertVideo',
|
|
71
|
-
invoice: 'invoice',
|
|
72
|
-
key: 'key',
|
|
73
|
-
book: 'knowledgeBase',
|
|
74
|
-
globe: 'language',
|
|
75
|
-
lesson: 'lesson',
|
|
76
|
-
link: 'link',
|
|
77
|
-
listView: 'listView',
|
|
78
|
-
locked: 'locked',
|
|
79
|
-
mention: 'mention',
|
|
80
|
-
messages: 'messages',
|
|
81
|
-
mobile: 'mobile',
|
|
82
|
-
notificationOff: 'notificationOff',
|
|
83
|
-
hash: 'numericDataType',
|
|
84
|
-
objectAssociations: 'objectAssociations',
|
|
85
|
-
objectAssociationsManyToMany: 'objectAssociationsManyToMany',
|
|
86
|
-
objectAssociationsManyToOne: 'objectAssociationsManyToOne',
|
|
87
|
-
office365: 'office365',
|
|
88
|
-
order: 'order',
|
|
89
|
-
paymentSubscriptions: 'paymentSubscriptions',
|
|
90
|
-
product: 'product',
|
|
91
|
-
powerPointFile: 'powerPointFile',
|
|
92
|
-
presentation: 'presentation',
|
|
93
|
-
publish: 'publish',
|
|
94
|
-
questionAnswer: 'questionAnswer',
|
|
95
|
-
quickbooks: 'quickbooks',
|
|
96
|
-
readMore: 'readMore',
|
|
97
|
-
realEstateListing: 'realEstateListing',
|
|
98
|
-
readOnlyView: 'readOnlyView',
|
|
99
|
-
recentlySelected: 'recentlySelected',
|
|
100
|
-
record: 'record',
|
|
101
|
-
redo: 'redo',
|
|
102
|
-
undo: 'undo',
|
|
103
|
-
registration: 'registration',
|
|
104
|
-
replace: 'replace',
|
|
105
|
-
rotate: 'rotate',
|
|
106
|
-
salesQuote: 'salesQuote',
|
|
107
|
-
salesTemplates: 'salesTemplates',
|
|
108
|
-
sequences: 'sequences',
|
|
109
|
-
spellCheck: 'spellCheck',
|
|
110
|
-
strike: 'strike',
|
|
111
|
-
tablet: 'tablet',
|
|
112
|
-
tag: 'tag',
|
|
113
|
-
tasks: 'tasks',
|
|
114
|
-
test: 'test',
|
|
115
|
-
ticket: 'ticket',
|
|
116
|
-
thumbsUp: 'thumbsUp',
|
|
117
|
-
thumbsDown: 'thumbsDown',
|
|
118
|
-
translate: 'translate',
|
|
119
|
-
trophy: 'trophy',
|
|
120
|
-
videoFile: 'videoFile',
|
|
121
|
-
videoPlayerSubtitles: 'videoPlayerSubtitles',
|
|
122
|
-
view: 'view',
|
|
123
|
-
viewDetails: 'viewDetails',
|
|
124
|
-
website: 'website',
|
|
125
|
-
workflows: 'workflows',
|
|
126
|
-
zoomIn: 'zoomIn',
|
|
127
|
-
zoomOut: 'zoomOut',
|
|
128
|
-
goal: 'goal',
|
|
129
|
-
campaigns: 'campaigns',
|
|
130
|
-
cap: 'cap',
|
|
131
|
-
block: 'block',
|
|
132
|
-
bank: 'bank',
|
|
133
|
-
approvals: 'approvals',
|
|
134
|
-
appointment: 'appointment',
|
|
135
|
-
facebook: 'socialBlockFacebook',
|
|
136
|
-
googlePlus: 'socialBlockGoogleplus',
|
|
137
|
-
instagram: 'socialBlockInstagram',
|
|
138
|
-
linkedin: 'socialBlockLinkedin',
|
|
139
|
-
pinterest: 'socialBlockPinterest',
|
|
140
|
-
rss: 'socialBlockRss',
|
|
141
|
-
twitter: 'socialBlockTwitter',
|
|
142
|
-
x: 'socialBlockX',
|
|
143
|
-
xing: 'socialBlockXing',
|
|
144
|
-
youtube: 'socialBlockYoutube',
|
|
145
|
-
youtubePlay: 'socialBlockYoutubeplay',
|
|
146
|
-
sortAlpAsc: 'sortAlpAsc',
|
|
147
|
-
sortAlpDesc: 'sortAlpDesc',
|
|
148
|
-
sortAmtAsc: 'sortAmtAsc',
|
|
149
|
-
sortAmtDesc: 'sortAmtDesc',
|
|
150
|
-
sortNumAsc: 'sortNumAsc',
|
|
151
|
-
sortNumDesc: 'sortNumDesc',
|
|
152
|
-
sortTableAsc: 'sortTableAsc',
|
|
153
|
-
sortTableDesc: 'sortTableDesc',
|
|
154
|
-
text: 'text',
|
|
155
|
-
textColor: 'textColor',
|
|
156
|
-
textDataType: 'textDataType',
|
|
157
|
-
textSnippet: 'textSnippet',
|
|
158
|
-
calling: 'calling',
|
|
159
|
-
callingHangup: 'callingHangup',
|
|
160
|
-
callingMade: 'callingMade',
|
|
161
|
-
callingMissed: 'callingMissed',
|
|
162
|
-
callingVoicemail: 'callingVoicemail',
|
|
163
|
-
faceHappyFilled: 'emojiFillHappy',
|
|
164
|
-
faceNeutralFilled: 'emojiFillNeutral',
|
|
165
|
-
faceSadFilled: 'emojiFillSad',
|
|
166
|
-
};
|
|
167
|
-
/** @deprecated use ExtensionEvent/FormSubmitExtensionEvent instead */
|
|
168
|
-
export class RemoteEvent {
|
|
169
|
-
type;
|
|
170
|
-
bubbles;
|
|
171
|
-
timeStamp;
|
|
172
|
-
targetValue;
|
|
173
|
-
constructor(value, event) {
|
|
174
|
-
this.bubbles = event.bubbles;
|
|
175
|
-
this.type = event.type;
|
|
176
|
-
this.timeStamp = event.timeStamp;
|
|
177
|
-
this.targetValue = value;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
export const chartFieldTypes = {
|
|
181
|
-
datetime: 'datetime',
|
|
182
|
-
linear: 'linear',
|
|
183
|
-
category: 'category',
|
|
184
|
-
};
|
|
185
|
-
export const illustrationNames = {
|
|
186
|
-
// Standard 1:1 mappings
|
|
187
|
-
lock: 'lock',
|
|
188
|
-
unlock: 'unlock',
|
|
189
|
-
electronicSignature: 'electronic-signature',
|
|
190
|
-
electronicSignatureEmptyState: 'electronic-signature-empty-state',
|
|
191
|
-
callingSetUp: 'calling-set-up',
|
|
192
|
-
companies: 'companies',
|
|
193
|
-
contacts: 'contacts',
|
|
194
|
-
multipleObjects: 'multiple-objects',
|
|
195
|
-
object: 'object',
|
|
196
|
-
task: 'task',
|
|
197
|
-
deals: 'deals',
|
|
198
|
-
registration: 'registration',
|
|
199
|
-
developerSecurityUpdate: 'developer-security-update',
|
|
200
|
-
social: 'social',
|
|
201
|
-
leads: 'leads',
|
|
202
|
-
target: 'target',
|
|
203
|
-
emailConfirmation: 'email-confirmation',
|
|
204
|
-
successfullyConnectedEmail: 'successfully-connected-email',
|
|
205
|
-
contentStrategy: 'content-strategy',
|
|
206
|
-
addOnReporting: 'add-on-reporting',
|
|
207
|
-
productsShoppingCart: 'products-shopping-cart',
|
|
208
|
-
store: 'store',
|
|
209
|
-
storeDisabled: 'store-disabled',
|
|
210
|
-
customerSupport: 'customer-support',
|
|
211
|
-
customerExperience: 'customer-experience',
|
|
212
|
-
api: 'api',
|
|
213
|
-
integrations: 'integrations',
|
|
214
|
-
sandboxAddOn: 'sandbox-add-on',
|
|
215
|
-
customObjects: 'custom-objects',
|
|
216
|
-
paymentsButton: 'payments-button',
|
|
217
|
-
automatedTesting: 'automated-testing',
|
|
218
|
-
emptyStateCharts: 'empty-state-charts',
|
|
219
|
-
// Special mappings that are not 1:1
|
|
220
|
-
meetings: 'meetings-small',
|
|
221
|
-
tickets: 'ticket-small',
|
|
222
|
-
errorGeneral: 'errors/general',
|
|
223
|
-
errorHourglass: 'errors/hourglass',
|
|
224
|
-
middlePaneCards: 'settings-middle-pane-cards',
|
|
225
|
-
propertiesSidebar: 'settings-properties-sidebar',
|
|
226
|
-
sidebar: 'settings-sidebar',
|
|
227
|
-
};
|
|
228
|
-
export const EXTENSION_POINT_LOCATIONS = [
|
|
229
|
-
'crm.preview',
|
|
230
|
-
'crm.record.sidebar',
|
|
231
|
-
'crm.record.tab',
|
|
232
|
-
'helpdesk.sidebar',
|
|
233
|
-
'uie.playground.middle',
|
|
234
|
-
'settings',
|
|
235
|
-
'home',
|
|
236
|
-
];
|
|
237
|
-
/**
|
|
238
|
-
* @category Serverless
|
|
239
|
-
*/
|
|
240
|
-
export var ServerlessExecutionStatus;
|
|
241
|
-
(function (ServerlessExecutionStatus) {
|
|
242
|
-
ServerlessExecutionStatus["Success"] = "SUCCESS";
|
|
243
|
-
ServerlessExecutionStatus["Error"] = "ERROR";
|
|
244
|
-
})(ServerlessExecutionStatus || (ServerlessExecutionStatus = {}));
|