@limekex/bugreport-widget-sdk 0.1.5 → 0.2.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.
- package/README.md +14 -3
- package/dist/types/shared.types.d.ts +27 -0
- package/dist/types/shared.types.d.ts.map +1 -1
- package/dist/utils/apiClient.d.ts +10 -4
- package/dist/utils/apiClient.d.ts.map +1 -1
- package/dist/utils/apiClient.js +94 -4
- package/dist/utils/apiClient.js.map +1 -1
- package/dist/utils/regionSelector.d.ts +23 -0
- package/dist/utils/regionSelector.d.ts.map +1 -0
- package/dist/utils/regionSelector.js +147 -0
- package/dist/utils/regionSelector.js.map +1 -0
- package/dist/widget/annotationEditor.d.ts +55 -0
- package/dist/widget/annotationEditor.d.ts.map +1 -0
- package/dist/widget/annotationEditor.js +408 -0
- package/dist/widget/annotationEditor.js.map +1 -0
- package/dist/widget/authModal.d.ts +24 -0
- package/dist/widget/authModal.d.ts.map +1 -0
- package/dist/widget/authModal.js +403 -0
- package/dist/widget/authModal.js.map +1 -0
- package/dist/widget/modal.d.ts.map +1 -1
- package/dist/widget/modal.js +179 -26
- package/dist/widget/modal.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication Modal
|
|
3
|
+
*
|
|
4
|
+
* Provides login/register UI for tester authentication within the widget.
|
|
5
|
+
*/
|
|
6
|
+
import { login, register, setAuthToken, setTesterInfo } from '../utils/apiClient';
|
|
7
|
+
let authModal = null;
|
|
8
|
+
let isOpen = false;
|
|
9
|
+
let onSuccessCallback = null;
|
|
10
|
+
export function getAuthModal() {
|
|
11
|
+
return authModal;
|
|
12
|
+
}
|
|
13
|
+
export function isAuthModalOpen() {
|
|
14
|
+
return isOpen;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Initialize the authentication modal
|
|
18
|
+
*/
|
|
19
|
+
export function initAuthModal(apiBaseUrl) {
|
|
20
|
+
if (authModal)
|
|
21
|
+
return; // Already initialized
|
|
22
|
+
authModal = document.createElement('div');
|
|
23
|
+
authModal.id = '__bugreport-auth-modal__';
|
|
24
|
+
authModal.style.cssText = `
|
|
25
|
+
display: none;
|
|
26
|
+
position: fixed;
|
|
27
|
+
inset: 0;
|
|
28
|
+
background: rgba(0, 0, 0, 0.5);
|
|
29
|
+
z-index: 2147483646;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
33
|
+
`;
|
|
34
|
+
authModal.innerHTML = `
|
|
35
|
+
<div style="
|
|
36
|
+
background: white;
|
|
37
|
+
border-radius: 12px;
|
|
38
|
+
width: 400px;
|
|
39
|
+
max-width: 90%;
|
|
40
|
+
padding: 2rem;
|
|
41
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
42
|
+
position: relative;
|
|
43
|
+
">
|
|
44
|
+
<button id="__bugreport-auth-close__" style="
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 1rem;
|
|
47
|
+
right: 1rem;
|
|
48
|
+
background: transparent;
|
|
49
|
+
border: none;
|
|
50
|
+
font-size: 1.5rem;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
color: #6b7280;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
padding: 0;
|
|
55
|
+
width: 2rem;
|
|
56
|
+
height: 2rem;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
">×</button>
|
|
61
|
+
|
|
62
|
+
<div id="__bugreport-auth-content__">
|
|
63
|
+
<!-- Login form (default) -->
|
|
64
|
+
<div id="__bugreport-auth-login__">
|
|
65
|
+
<h2 style="margin: 0 0 0.5rem 0; font-size: 1.5rem; color: #111827;">Sign In</h2>
|
|
66
|
+
<p style="margin: 0 0 1.5rem 0; font-size: 0.875rem; color: #6b7280;">
|
|
67
|
+
Sign in to your tester account to submit bug reports.
|
|
68
|
+
</p>
|
|
69
|
+
|
|
70
|
+
<div style="margin-bottom: 1rem;">
|
|
71
|
+
<label style="display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem;">
|
|
72
|
+
Email
|
|
73
|
+
</label>
|
|
74
|
+
<input id="__bugreport-auth-login-email__" type="email" placeholder="your@email.com" style="
|
|
75
|
+
width: 100%;
|
|
76
|
+
padding: 0.625rem 0.75rem;
|
|
77
|
+
border: 1px solid #d1d5db;
|
|
78
|
+
border-radius: 0.375rem;
|
|
79
|
+
font-size: 0.875rem;
|
|
80
|
+
" />
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div style="margin-bottom: 1.5rem;">
|
|
84
|
+
<label style="display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem;">
|
|
85
|
+
Password
|
|
86
|
+
</label>
|
|
87
|
+
<input id="__bugreport-auth-login-password__" type="password" placeholder="••••••••" style="
|
|
88
|
+
width: 100%;
|
|
89
|
+
padding: 0.625rem 0.75rem;
|
|
90
|
+
border: 1px solid #d1d5db;
|
|
91
|
+
border-radius: 0.375rem;
|
|
92
|
+
font-size: 0.875rem;
|
|
93
|
+
" />
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div id="__bugreport-auth-login-error__" style="
|
|
97
|
+
display: none;
|
|
98
|
+
padding: 0.75rem;
|
|
99
|
+
background: #fee2e2;
|
|
100
|
+
color: #991b1b;
|
|
101
|
+
border-radius: 0.375rem;
|
|
102
|
+
font-size: 0.875rem;
|
|
103
|
+
margin-bottom: 1rem;
|
|
104
|
+
"></div>
|
|
105
|
+
|
|
106
|
+
<button id="__bugreport-auth-login-submit__" style="
|
|
107
|
+
width: 100%;
|
|
108
|
+
padding: 0.625rem;
|
|
109
|
+
background: #2563eb;
|
|
110
|
+
color: white;
|
|
111
|
+
border: none;
|
|
112
|
+
border-radius: 0.375rem;
|
|
113
|
+
font-size: 0.875rem;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
">Sign In</button>
|
|
117
|
+
|
|
118
|
+
<p style="margin-top: 1rem; text-align: center; font-size: 0.875rem; color: #6b7280;">
|
|
119
|
+
Don't have an account?
|
|
120
|
+
<a href="#" id="__bugreport-auth-show-register__" style="color: #2563eb; text-decoration: none;">Register</a>
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<!-- Register form -->
|
|
125
|
+
<div id="__bugreport-auth-register__" style="display: none;">
|
|
126
|
+
<h2 style="margin: 0 0 0.5rem 0; font-size: 1.5rem; color: #111827;">Create Account</h2>
|
|
127
|
+
<p style="margin: 0 0 1.5rem 0; font-size: 0.875rem; color: #6b7280;">
|
|
128
|
+
Register to start submitting bug reports.
|
|
129
|
+
</p>
|
|
130
|
+
|
|
131
|
+
<div style="margin-bottom: 1rem;">
|
|
132
|
+
<label style="display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem;">
|
|
133
|
+
Name
|
|
134
|
+
</label>
|
|
135
|
+
<input id="__bugreport-auth-register-name__" type="text" placeholder="John Doe" style="
|
|
136
|
+
width: 100%;
|
|
137
|
+
padding: 0.625rem 0.75rem;
|
|
138
|
+
border: 1px solid #d1d5db;
|
|
139
|
+
border-radius: 0.375rem;
|
|
140
|
+
font-size: 0.875rem;
|
|
141
|
+
" />
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div style="margin-bottom: 1rem;">
|
|
145
|
+
<label style="display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem;">
|
|
146
|
+
Email
|
|
147
|
+
</label>
|
|
148
|
+
<input id="__bugreport-auth-register-email__" type="email" placeholder="your@email.com" style="
|
|
149
|
+
width: 100%;
|
|
150
|
+
padding: 0.625rem 0.75rem;
|
|
151
|
+
border: 1px solid #d1d5db;
|
|
152
|
+
border-radius: 0.375rem;
|
|
153
|
+
font-size: 0.875rem;
|
|
154
|
+
" />
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div style="margin-bottom: 1.5rem;">
|
|
158
|
+
<label style="display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.25rem;">
|
|
159
|
+
Password
|
|
160
|
+
</label>
|
|
161
|
+
<input id="__bugreport-auth-register-password__" type="password" placeholder="Minimum 8 characters" style="
|
|
162
|
+
width: 100%;
|
|
163
|
+
padding: 0.625rem 0.75rem;
|
|
164
|
+
border: 1px solid #d1d5db;
|
|
165
|
+
border-radius: 0.375rem;
|
|
166
|
+
font-size: 0.875rem;
|
|
167
|
+
" />
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div id="__bugreport-auth-register-error__" style="
|
|
171
|
+
display: none;
|
|
172
|
+
padding: 0.75rem;
|
|
173
|
+
background: #fee2e2;
|
|
174
|
+
color: #991b1b;
|
|
175
|
+
border-radius: 0.375rem;
|
|
176
|
+
font-size: 0.875rem;
|
|
177
|
+
margin-bottom: 1rem;
|
|
178
|
+
"></div>
|
|
179
|
+
|
|
180
|
+
<button id="__bugreport-auth-register-submit__" style="
|
|
181
|
+
width: 100%;
|
|
182
|
+
padding: 0.625rem;
|
|
183
|
+
background: #10b981;
|
|
184
|
+
color: white;
|
|
185
|
+
border: none;
|
|
186
|
+
border-radius: 0.375rem;
|
|
187
|
+
font-size: 0.875rem;
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
">Create Account</button>
|
|
191
|
+
|
|
192
|
+
<p style="margin-top: 1rem; text-align: center; font-size: 0.875rem; color: #6b7280;">
|
|
193
|
+
Already have an account?
|
|
194
|
+
<a href="#" id="__bugreport-auth-show-login__" style="color: #2563eb; text-decoration: none;">Sign in</a>
|
|
195
|
+
</p>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
`;
|
|
200
|
+
document.body.appendChild(authModal);
|
|
201
|
+
// Event listeners
|
|
202
|
+
setupAuthEventListeners(apiBaseUrl);
|
|
203
|
+
}
|
|
204
|
+
function setupAuthEventListeners(apiBaseUrl) {
|
|
205
|
+
if (!authModal)
|
|
206
|
+
return;
|
|
207
|
+
// Close button
|
|
208
|
+
const closeBtn = authModal.querySelector('#__bugreport-auth-close__');
|
|
209
|
+
closeBtn?.addEventListener('click', closeAuthModal);
|
|
210
|
+
// Close on backdrop click
|
|
211
|
+
authModal.addEventListener('click', (e) => {
|
|
212
|
+
if (e.target === authModal) {
|
|
213
|
+
closeAuthModal();
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
// Toggle between login and register
|
|
217
|
+
const showRegisterBtn = authModal.querySelector('#__bugreport-auth-show-register__');
|
|
218
|
+
const showLoginBtn = authModal.querySelector('#__bugreport-auth-show-login__');
|
|
219
|
+
showRegisterBtn?.addEventListener('click', (e) => {
|
|
220
|
+
e.preventDefault();
|
|
221
|
+
showRegisterForm();
|
|
222
|
+
});
|
|
223
|
+
showLoginBtn?.addEventListener('click', (e) => {
|
|
224
|
+
e.preventDefault();
|
|
225
|
+
showLoginForm();
|
|
226
|
+
});
|
|
227
|
+
// Login form submission
|
|
228
|
+
const loginSubmit = authModal.querySelector('#__bugreport-auth-login-submit__');
|
|
229
|
+
const loginEmail = authModal.querySelector('#__bugreport-auth-login-email__');
|
|
230
|
+
const loginPassword = authModal.querySelector('#__bugreport-auth-login-password__');
|
|
231
|
+
loginSubmit?.addEventListener('click', async () => {
|
|
232
|
+
await handleLogin(apiBaseUrl, loginEmail.value, loginPassword.value);
|
|
233
|
+
});
|
|
234
|
+
loginEmail?.addEventListener('keypress', (e) => {
|
|
235
|
+
if (e.key === 'Enter')
|
|
236
|
+
loginSubmit?.dispatchEvent(new Event('click'));
|
|
237
|
+
});
|
|
238
|
+
loginPassword?.addEventListener('keypress', (e) => {
|
|
239
|
+
if (e.key === 'Enter')
|
|
240
|
+
loginSubmit?.dispatchEvent(new Event('click'));
|
|
241
|
+
});
|
|
242
|
+
// Register form submission
|
|
243
|
+
const registerSubmit = authModal.querySelector('#__bugreport-auth-register-submit__');
|
|
244
|
+
const registerName = authModal.querySelector('#__bugreport-auth-register-name__');
|
|
245
|
+
const registerEmail = authModal.querySelector('#__bugreport-auth-register-email__');
|
|
246
|
+
const registerPassword = authModal.querySelector('#__bugreport-auth-register-password__');
|
|
247
|
+
registerSubmit?.addEventListener('click', async () => {
|
|
248
|
+
await handleRegister(apiBaseUrl, registerName.value, registerEmail.value, registerPassword.value);
|
|
249
|
+
});
|
|
250
|
+
registerName?.addEventListener('keypress', (e) => {
|
|
251
|
+
if (e.key === 'Enter')
|
|
252
|
+
registerSubmit?.dispatchEvent(new Event('click'));
|
|
253
|
+
});
|
|
254
|
+
registerEmail?.addEventListener('keypress', (e) => {
|
|
255
|
+
if (e.key === 'Enter')
|
|
256
|
+
registerSubmit?.dispatchEvent(new Event('click'));
|
|
257
|
+
});
|
|
258
|
+
registerPassword?.addEventListener('keypress', (e) => {
|
|
259
|
+
if (e.key === 'Enter')
|
|
260
|
+
registerSubmit?.dispatchEvent(new Event('click'));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
function showLoginForm() {
|
|
264
|
+
if (!authModal)
|
|
265
|
+
return;
|
|
266
|
+
const loginForm = authModal.querySelector('#__bugreport-auth-login__');
|
|
267
|
+
const registerForm = authModal.querySelector('#__bugreport-auth-register__');
|
|
268
|
+
loginForm.style.display = 'block';
|
|
269
|
+
registerForm.style.display = 'none';
|
|
270
|
+
clearErrors();
|
|
271
|
+
}
|
|
272
|
+
function showRegisterForm() {
|
|
273
|
+
if (!authModal)
|
|
274
|
+
return;
|
|
275
|
+
const loginForm = authModal.querySelector('#__bugreport-auth-login__');
|
|
276
|
+
const registerForm = authModal.querySelector('#__bugreport-auth-register__');
|
|
277
|
+
loginForm.style.display = 'none';
|
|
278
|
+
registerForm.style.display = 'block';
|
|
279
|
+
clearErrors();
|
|
280
|
+
}
|
|
281
|
+
function clearErrors() {
|
|
282
|
+
if (!authModal)
|
|
283
|
+
return;
|
|
284
|
+
const loginError = authModal.querySelector('#__bugreport-auth-login-error__');
|
|
285
|
+
const registerError = authModal.querySelector('#__bugreport-auth-register-error__');
|
|
286
|
+
loginError.style.display = 'none';
|
|
287
|
+
registerError.style.display = 'none';
|
|
288
|
+
loginError.textContent = '';
|
|
289
|
+
registerError.textContent = '';
|
|
290
|
+
}
|
|
291
|
+
function showLoginError(message) {
|
|
292
|
+
if (!authModal)
|
|
293
|
+
return;
|
|
294
|
+
const errorEl = authModal.querySelector('#__bugreport-auth-login-error__');
|
|
295
|
+
errorEl.textContent = message;
|
|
296
|
+
errorEl.style.display = 'block';
|
|
297
|
+
}
|
|
298
|
+
function showRegisterError(message) {
|
|
299
|
+
if (!authModal)
|
|
300
|
+
return;
|
|
301
|
+
const errorEl = authModal.querySelector('#__bugreport-auth-register-error__');
|
|
302
|
+
errorEl.textContent = message;
|
|
303
|
+
errorEl.style.display = 'block';
|
|
304
|
+
}
|
|
305
|
+
async function handleLogin(apiBaseUrl, email, password) {
|
|
306
|
+
clearErrors();
|
|
307
|
+
if (!email || !password) {
|
|
308
|
+
showLoginError('Please enter email and password');
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
const response = await login(apiBaseUrl, { email, password });
|
|
313
|
+
if (!response.success) {
|
|
314
|
+
showLoginError(response.error || 'Login failed');
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
// Store token and tester info
|
|
318
|
+
if (response.token) {
|
|
319
|
+
setAuthToken(response.token);
|
|
320
|
+
}
|
|
321
|
+
if (response.tester) {
|
|
322
|
+
setTesterInfo(response.tester);
|
|
323
|
+
}
|
|
324
|
+
// Close modal and trigger success callback
|
|
325
|
+
closeAuthModal();
|
|
326
|
+
if (onSuccessCallback) {
|
|
327
|
+
onSuccessCallback();
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
catch (err) {
|
|
331
|
+
showLoginError('Network error. Please try again.');
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
async function handleRegister(apiBaseUrl, name, email, password) {
|
|
335
|
+
clearErrors();
|
|
336
|
+
if (!name || !email || !password) {
|
|
337
|
+
showRegisterError('All fields are required');
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
if (password.length < 8) {
|
|
341
|
+
showRegisterError('Password must be at least 8 characters');
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
try {
|
|
345
|
+
const response = await register(apiBaseUrl, { email, name, password });
|
|
346
|
+
if (!response.success) {
|
|
347
|
+
showRegisterError(response.error || 'Registration failed');
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
// Store token and tester info
|
|
351
|
+
if (response.token) {
|
|
352
|
+
setAuthToken(response.token);
|
|
353
|
+
}
|
|
354
|
+
if (response.tester) {
|
|
355
|
+
setTesterInfo(response.tester);
|
|
356
|
+
}
|
|
357
|
+
// Close modal and trigger success callback
|
|
358
|
+
closeAuthModal();
|
|
359
|
+
if (onSuccessCallback) {
|
|
360
|
+
onSuccessCallback();
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
catch (err) {
|
|
364
|
+
showRegisterError('Network error. Please try again.');
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Open the authentication modal
|
|
369
|
+
*/
|
|
370
|
+
export function openAuthModal(onSuccess) {
|
|
371
|
+
if (!authModal) {
|
|
372
|
+
console.error('Auth modal not initialized');
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
onSuccessCallback = onSuccess || null;
|
|
376
|
+
authModal.style.display = 'flex';
|
|
377
|
+
isOpen = true;
|
|
378
|
+
showLoginForm();
|
|
379
|
+
clearErrors();
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Close the authentication modal
|
|
383
|
+
*/
|
|
384
|
+
export function closeAuthModal() {
|
|
385
|
+
if (!authModal)
|
|
386
|
+
return;
|
|
387
|
+
authModal.style.display = 'none';
|
|
388
|
+
isOpen = false;
|
|
389
|
+
onSuccessCallback = null;
|
|
390
|
+
clearErrors();
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Destroy the authentication modal
|
|
394
|
+
*/
|
|
395
|
+
export function destroyAuthModal() {
|
|
396
|
+
if (authModal) {
|
|
397
|
+
authModal.remove();
|
|
398
|
+
authModal = null;
|
|
399
|
+
isOpen = false;
|
|
400
|
+
onSuccessCallback = null;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
//# sourceMappingURL=authModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authModal.js","sourceRoot":"","sources":["../../src/widget/authModal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAiB,MAAM,oBAAoB,CAAC;AAEjG,IAAI,SAAS,GAAuB,IAAI,CAAC;AACzC,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,IAAI,iBAAiB,GAAwB,IAAI,CAAC;AAElD,MAAM,UAAU,YAAY;IAC1B,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC9C,IAAI,SAAS;QAAE,OAAO,CAAC,sBAAsB;IAE7C,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,GAAG,0BAA0B,CAAC;IAC1C,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG;;;;;;;;;GASzB,CAAC;IAEF,SAAS,CAAC,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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file":"modal.d.ts","sourceRoot":"","sources":["../../src/widget/modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/widget/modal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAc/D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAgTD,wBAAgB,SAAS,CAAC,MAAM,EAAE,iBAAiB,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI,CAqEpF;AAED,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,IAAI,CAU3D"}
|