@instructure/ui-position 10.19.2-snapshot-3 → 10.19.2-snapshot-4

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/CHANGELOG.md +1 -1
  2. package/package.json +15 -16
  3. package/tsconfig.build.json +0 -3
  4. package/tsconfig.build.tsbuildinfo +1 -1
  5. package/es/Position/PositionContentLocator.js +0 -27
  6. package/es/Position/PositionLocator.js +0 -48
  7. package/es/Position/PositionTargetLocator.js +0 -27
  8. package/es/Position/__new-tests__/Position.test.js +0 -623
  9. package/es/Position/locator.js +0 -28
  10. package/es/__new-tests__/mirrorHorizontalPlacement.test.js +0 -68
  11. package/es/__new-tests__/mirrorPlacement.test.js +0 -68
  12. package/lib/Position/PositionContentLocator.js +0 -33
  13. package/lib/Position/PositionLocator.js +0 -65
  14. package/lib/Position/PositionTargetLocator.js +0 -33
  15. package/lib/Position/__new-tests__/Position.test.js +0 -624
  16. package/lib/Position/locator.js +0 -55
  17. package/lib/__new-tests__/mirrorHorizontalPlacement.test.js +0 -70
  18. package/lib/__new-tests__/mirrorPlacement.test.js +0 -70
  19. package/src/Position/PositionContentLocator.ts +0 -30
  20. package/src/Position/PositionLocator.ts +0 -55
  21. package/src/Position/PositionTargetLocator.ts +0 -30
  22. package/src/Position/__new-tests__/Position.test.tsx +0 -586
  23. package/src/Position/locator.ts +0 -34
  24. package/src/__new-tests__/mirrorHorizontalPlacement.test.tsx +0 -115
  25. package/src/__new-tests__/mirrorPlacement.test.tsx +0 -113
  26. package/types/Position/PositionContentLocator.d.ts +0 -310
  27. package/types/Position/PositionContentLocator.d.ts.map +0 -1
  28. package/types/Position/PositionLocator.d.ts +0 -1221
  29. package/types/Position/PositionLocator.d.ts.map +0 -1
  30. package/types/Position/PositionTargetLocator.d.ts +0 -310
  31. package/types/Position/PositionTargetLocator.d.ts.map +0 -1
  32. package/types/Position/__new-tests__/Position.test.d.ts +0 -2
  33. package/types/Position/__new-tests__/Position.test.d.ts.map +0 -1
  34. package/types/Position/locator.d.ts +0 -5
  35. package/types/Position/locator.d.ts.map +0 -1
  36. package/types/__new-tests__/mirrorHorizontalPlacement.test.d.ts +0 -2
  37. package/types/__new-tests__/mirrorHorizontalPlacement.test.d.ts.map +0 -1
  38. package/types/__new-tests__/mirrorPlacement.test.d.ts +0 -2
  39. package/types/__new-tests__/mirrorPlacement.test.d.ts.map +0 -1
@@ -1,623 +0,0 @@
1
- var _Position, _Position2, _button, _div, _button2, _div2, _button3, _div3, _button4, _div4, _button5, _div5, _button6, _div6, _div7, _button7, _div8, _div9, _button8, _div10, _div11, _button9, _div12, _div13, _button10, _div14, _Position3, _div15, _button11, _div16, _Position4, _Position5;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
26
- import { render, screen, waitFor } from '@testing-library/react';
27
- import { vi } from 'vitest';
28
- import '@testing-library/jest-dom';
29
- import { within } from '@instructure/ui-utils';
30
- import { Position } from '../index';
31
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
32
- describe('<Position />', () => {
33
- const parentDefaults = {
34
- width: 500,
35
- height: 150,
36
- padding: 100,
37
- overflow: 'auto'
38
- };
39
- it('should render', () => {
40
- render(_jsx("div", {
41
- style: {
42
- padding: '50px'
43
- },
44
- children: _jsx("div", {
45
- style: {
46
- ...parentDefaults
47
- },
48
- children: _Position || (_Position = _jsx(Position, {
49
- constrain: "window",
50
- renderTarget: _jsx("button", {
51
- "data-testid": "target-btn",
52
- children: "Target"
53
- }),
54
- children: _jsx("div", {
55
- "data-testid": "content",
56
- children: _jsx("div", {
57
- children: "Content"
58
- })
59
- })
60
- }))
61
- })
62
- }));
63
- const target = screen.getByTestId('target-btn');
64
- const content = screen.getByTestId('content');
65
- expect(target).toBeInTheDocument();
66
- expect(target).toHaveTextContent('Target');
67
- expect(content).toBeInTheDocument();
68
- expect(content).toHaveTextContent('Content');
69
- });
70
- it('should absolutely position content', () => {
71
- render(_jsx("div", {
72
- style: {
73
- padding: '50px'
74
- },
75
- children: _jsx("div", {
76
- style: {
77
- ...parentDefaults
78
- },
79
- children: _Position2 || (_Position2 = _jsx(Position, {
80
- constrain: "window",
81
- renderTarget: _jsx("button", {
82
- "data-testid": "target",
83
- children: "Target"
84
- }),
85
- children: _jsx("div", {
86
- "data-testid": "content",
87
- children: _jsx("div", {
88
- children: "Content"
89
- })
90
- })
91
- }))
92
- })
93
- }));
94
- const content = screen.getByTestId('content');
95
- const style = window.getComputedStyle(content);
96
- expect(style.position).toBe('absolute');
97
- });
98
- it('should render right of target', async () => {
99
- const onPositionChanged = vi.fn();
100
- render(_jsx("div", {
101
- style: {
102
- padding: '50px'
103
- },
104
- children: _jsx("div", {
105
- style: {
106
- ...parentDefaults
107
- },
108
- children: _jsx(Position, {
109
- placement: "end",
110
- onPositionChanged: onPositionChanged,
111
- renderTarget: _button || (_button = _jsx("button", {
112
- "data-testid": "target",
113
- children: "Target"
114
- })),
115
- children: _div || (_div = _jsx("div", {
116
- "data-testid": "content",
117
- children: _jsx("div", {
118
- children: "Content"
119
- })
120
- }))
121
- })
122
- })
123
- }));
124
- const target = screen.getByTestId('target');
125
- const content = screen.getByTestId('content');
126
- await waitFor(() => {
127
- expect(onPositionChanged).toHaveBeenCalled();
128
- });
129
- const targetRect = target.getBoundingClientRect();
130
- const contentRect = content.getBoundingClientRect();
131
- expect(within(Math.floor(contentRect.left), Math.floor(targetRect.right))).toBe(true);
132
- });
133
- it('should render below target', async () => {
134
- const onPositionChanged = vi.fn();
135
- render(_jsx("div", {
136
- style: {
137
- padding: '50px'
138
- },
139
- children: _jsx("div", {
140
- style: {
141
- ...parentDefaults
142
- },
143
- children: _jsx(Position, {
144
- placement: "bottom",
145
- onPositionChanged: onPositionChanged,
146
- renderTarget: _button2 || (_button2 = _jsx("button", {
147
- "data-testid": "target",
148
- children: "Target"
149
- })),
150
- children: _div2 || (_div2 = _jsx("div", {
151
- "data-testid": "content",
152
- children: _jsx("div", {
153
- children: "Content"
154
- })
155
- }))
156
- })
157
- })
158
- }));
159
- const target = screen.getByTestId('target');
160
- const content = screen.getByTestId('content');
161
- await waitFor(() => {
162
- expect(onPositionChanged).toHaveBeenCalled();
163
- });
164
- const targetRect = target.getBoundingClientRect();
165
- const contentRect = content.getBoundingClientRect();
166
- expect(within(Math.floor(contentRect.top), Math.floor(targetRect.bottom), 1)).toBe(true);
167
- });
168
- it('should render left of target', async () => {
169
- const onPositionChanged = vi.fn();
170
- render(_jsx("div", {
171
- style: {
172
- padding: '50px'
173
- },
174
- children: _jsx("div", {
175
- style: {
176
- ...parentDefaults
177
- },
178
- children: _jsx(Position, {
179
- placement: "start",
180
- onPositionChanged: onPositionChanged,
181
- renderTarget: _button3 || (_button3 = _jsx("button", {
182
- "data-testid": "target",
183
- children: "Target"
184
- })),
185
- children: _div3 || (_div3 = _jsx("div", {
186
- "data-testid": "content",
187
- children: _jsx("div", {
188
- children: "Content"
189
- })
190
- }))
191
- })
192
- })
193
- }));
194
- const target = screen.getByTestId('target');
195
- const content = screen.getByTestId('content');
196
- await waitFor(() => {
197
- expect(onPositionChanged).toHaveBeenCalled();
198
- });
199
- const targetRect = target.getBoundingClientRect();
200
- const contentRect = content.getBoundingClientRect();
201
- expect(within(Math.floor(contentRect.right), Math.floor(targetRect.left))).toBe(true);
202
- });
203
- it('should render above target', async () => {
204
- const onPositionChanged = vi.fn();
205
- render(_jsx("div", {
206
- style: {
207
- padding: '50px'
208
- },
209
- children: _jsx("div", {
210
- style: {
211
- ...parentDefaults
212
- },
213
- children: _jsx(Position, {
214
- placement: "top",
215
- onPositionChanged: onPositionChanged,
216
- renderTarget: _button4 || (_button4 = _jsx("button", {
217
- "data-testid": "target",
218
- children: "Target"
219
- })),
220
- children: _div4 || (_div4 = _jsx("div", {
221
- "data-testid": "content",
222
- children: _jsx("div", {
223
- children: "Content"
224
- })
225
- }))
226
- })
227
- })
228
- }));
229
- const target = screen.getByTestId('target');
230
- const content = screen.getByTestId('content');
231
- await waitFor(() => {
232
- expect(onPositionChanged).toHaveBeenCalled();
233
- });
234
- const targetRect = target.getBoundingClientRect();
235
- const contentRect = content.getBoundingClientRect();
236
- expect(Math.floor(contentRect.bottom)).toEqual(Math.floor(targetRect.top));
237
- });
238
- it('should center vertically', async () => {
239
- const onPositionChanged = vi.fn();
240
- render(_jsx("div", {
241
- style: {
242
- padding: '50px'
243
- },
244
- children: _jsx("div", {
245
- style: {
246
- ...parentDefaults
247
- },
248
- children: _jsx(Position, {
249
- placement: "end",
250
- onPositionChanged: onPositionChanged,
251
- renderTarget: _button5 || (_button5 = _jsx("button", {
252
- "data-testid": "target",
253
- children: "Target"
254
- })),
255
- children: _div5 || (_div5 = _jsx("div", {
256
- "data-testid": "content",
257
- children: _jsx("div", {
258
- children: "Content"
259
- })
260
- }))
261
- })
262
- })
263
- }));
264
- const target = screen.getByTestId('target');
265
- const content = screen.getByTestId('content');
266
- await waitFor(() => {
267
- expect(onPositionChanged).toHaveBeenCalled();
268
- });
269
- const targetRect = target.getBoundingClientRect();
270
- const contentRect = content.getBoundingClientRect();
271
- const top = Math.floor(contentRect.top);
272
- const center = Math.floor(targetRect.top + (targetRect.height / 2 - contentRect.height / 2));
273
- expect(within(top, center)).toBe(true);
274
- });
275
- it('should center horizontally', async () => {
276
- const onPositionChanged = vi.fn();
277
- render(_jsx("div", {
278
- style: {
279
- padding: '50px'
280
- },
281
- children: _jsx("div", {
282
- style: {
283
- ...parentDefaults
284
- },
285
- children: _jsx(Position, {
286
- placement: "bottom",
287
- onPositionChanged: onPositionChanged,
288
- renderTarget: _button6 || (_button6 = _jsx("button", {
289
- "data-testid": "target",
290
- children: "Target"
291
- })),
292
- children: _div6 || (_div6 = _jsx("div", {
293
- "data-testid": "content",
294
- children: _jsx("div", {
295
- children: "Content"
296
- })
297
- }))
298
- })
299
- })
300
- }));
301
- const target = screen.getByTestId('target');
302
- const content = screen.getByTestId('content');
303
- await waitFor(() => {
304
- expect(onPositionChanged).toHaveBeenCalled();
305
- });
306
- const targetRect = target.getBoundingClientRect();
307
- const contentRect = content.getBoundingClientRect();
308
- const left = Math.floor(contentRect.left);
309
- const targetCenter = targetRect.width / 2;
310
- const contentCenter = contentRect.width / 2;
311
- const center = Math.floor(targetRect.left + (targetCenter - contentCenter));
312
- expect(within(left, center)).toBe(true);
313
- });
314
- describe('when constrained to scroll-parent', () => {
315
- it('should re-position below target', async () => {
316
- const onPositionChanged = vi.fn();
317
- render(_jsxs("div", {
318
- style: {
319
- padding: '50px'
320
- },
321
- children: [_div7 || (_div7 = _jsx("div", {
322
- "data-testid": "mountNode",
323
- children: "mount"
324
- })), _jsx("div", {
325
- style: {
326
- width: '50px',
327
- height: '50px',
328
- overflow: 'scroll',
329
- padding: '0 50px 50px 50px'
330
- },
331
- children: _jsx(Position, {
332
- placement: "top",
333
- constrain: "scroll-parent",
334
- mountNode: () => document.getElementById('mountNode'),
335
- onPositionChanged: onPositionChanged,
336
- renderTarget: _button7 || (_button7 = _jsx("button", {
337
- "data-testid": "target",
338
- children: "Target"
339
- })),
340
- children: _div8 || (_div8 = _jsx("div", {
341
- "data-testid": "content",
342
- children: _jsx("div", {
343
- children: "Content"
344
- })
345
- }))
346
- })
347
- })]
348
- }));
349
- const target = screen.getByTestId('target');
350
- const content = screen.getByTestId('content');
351
- await waitFor(() => {
352
- expect(onPositionChanged).toHaveBeenCalled();
353
- });
354
- const targetRect = target.getBoundingClientRect();
355
- const contentRect = content.getBoundingClientRect();
356
- expect(within(Math.floor(contentRect.top), Math.floor(targetRect.bottom), 1)).toBe(true);
357
- });
358
- it('should re-position above target', async () => {
359
- const onPositionChanged = vi.fn();
360
- render(_jsxs("div", {
361
- style: {
362
- padding: '50px'
363
- },
364
- children: [_div9 || (_div9 = _jsx("div", {
365
- id: "mountNode",
366
- children: "mount"
367
- })), _jsx("div", {
368
- style: {
369
- width: '50px',
370
- height: '0px',
371
- overflow: 'scroll',
372
- padding: '50px 50px 0 50px'
373
- },
374
- children: _jsx(Position, {
375
- placement: "bottom",
376
- constrain: "scroll-parent",
377
- mountNode: () => document.getElementById('mountNode'),
378
- onPositionChanged: onPositionChanged,
379
- renderTarget: _button8 || (_button8 = _jsx("button", {
380
- "data-testid": "target",
381
- children: "Target"
382
- })),
383
- children: _div10 || (_div10 = _jsx("div", {
384
- "data-testid": "content",
385
- children: _jsx("div", {
386
- children: "Content"
387
- })
388
- }))
389
- })
390
- })]
391
- }));
392
- const target = screen.getByTestId('target');
393
- const content = screen.getByTestId('content');
394
- await waitFor(() => {
395
- expect(onPositionChanged).toHaveBeenCalled();
396
- });
397
- const targetRect = target.getBoundingClientRect();
398
- const contentRect = content.getBoundingClientRect();
399
- expect(within(Math.floor(contentRect.bottom), Math.floor(targetRect.top), 1)).toBe(true);
400
- });
401
- it('should re-position after target', async () => {
402
- const onPositionChanged = vi.fn();
403
- render(_jsxs("div", {
404
- style: {
405
- padding: '50px'
406
- },
407
- children: [_div11 || (_div11 = _jsx("div", {
408
- id: "mountNode",
409
- children: "mount"
410
- })), _jsx("div", {
411
- style: {
412
- width: '50px',
413
- height: '50px',
414
- overflow: 'scroll',
415
- padding: '50px 80px 50px 0'
416
- },
417
- children: _jsx(Position, {
418
- placement: "start",
419
- constrain: "scroll-parent",
420
- mountNode: () => document.getElementById('mountNode'),
421
- onPositionChanged: onPositionChanged,
422
- renderTarget: _button9 || (_button9 = _jsx("button", {
423
- "data-testid": "target",
424
- children: "Target"
425
- })),
426
- children: _div12 || (_div12 = _jsx("div", {
427
- "data-testid": "content",
428
- children: _jsx("div", {
429
- children: "Content"
430
- })
431
- }))
432
- })
433
- })]
434
- }));
435
- const target = screen.getByTestId('target');
436
- const content = screen.getByTestId('content');
437
- await waitFor(() => {
438
- expect(onPositionChanged).toHaveBeenCalled();
439
- });
440
- const targetRect = target.getBoundingClientRect();
441
- const contentRect = content.getBoundingClientRect();
442
- expect(within(Math.floor(contentRect.left), Math.floor(targetRect.right), 1)).toBe(true);
443
- });
444
- it('should re-position before target', async () => {
445
- const onPositionChanged = vi.fn();
446
- render(_jsxs("div", {
447
- style: {
448
- padding: '50px'
449
- },
450
- children: [_div13 || (_div13 = _jsx("div", {
451
- id: "mountNode",
452
- children: "mount"
453
- })), _jsx("div", {
454
- style: {
455
- width: '50px',
456
- height: '50px',
457
- overflow: 'scroll',
458
- padding: '50px 0px 50px 80px'
459
- },
460
- children: _jsx(Position, {
461
- placement: "end",
462
- constrain: "scroll-parent",
463
- mountNode: () => document.getElementById('mountNode'),
464
- onPositionChanged: onPositionChanged,
465
- renderTarget: _button10 || (_button10 = _jsx("button", {
466
- "data-testid": "target",
467
- children: "Target"
468
- })),
469
- children: _div14 || (_div14 = _jsx("div", {
470
- "data-testid": "content",
471
- children: _jsx("div", {
472
- children: "Content"
473
- })
474
- }))
475
- })
476
- })]
477
- }));
478
- const target = screen.getByTestId('target');
479
- const content = screen.getByTestId('content');
480
- await waitFor(() => {
481
- expect(onPositionChanged).toHaveBeenCalled();
482
- });
483
- const targetRect = target.getBoundingClientRect();
484
- const contentRect = content.getBoundingClientRect();
485
- expect(within(Math.floor(contentRect.right), Math.floor(targetRect.left), 1)).toBe(true);
486
- });
487
- });
488
- describe('when the documentElement is offset', () => {
489
- beforeEach(() => {
490
- document.documentElement.style.position = 'fixed';
491
- document.documentElement.style.top = '-100px';
492
- });
493
- afterEach(() => {
494
- document.documentElement.style.position = '';
495
- document.documentElement.style.top = '';
496
- });
497
- it('should position correctly', async () => {
498
- render(_jsx("div", {
499
- style: {
500
- padding: '100px'
501
- },
502
- children: _Position3 || (_Position3 = _jsx(Position, {
503
- placement: "bottom",
504
- renderTarget: _jsx("button", {
505
- "data-testid": "target",
506
- children: "Target"
507
- }),
508
- children: _jsx("div", {
509
- "data-testid": "content",
510
- children: _jsx("div", {
511
- children: "Content"
512
- })
513
- })
514
- }))
515
- }));
516
- const target = screen.getByTestId('target');
517
- const content = screen.getByTestId('content');
518
- await waitFor(() => {
519
- expect(content.getBoundingClientRect().top).toEqual(target.getBoundingClientRect().bottom);
520
- });
521
- });
522
- it('should position correctly with mountNode', async () => {
523
- render(_jsxs("div", {
524
- style: {
525
- padding: '100px'
526
- },
527
- children: [_div15 || (_div15 = _jsx("div", {
528
- "data-testid": "mountNode",
529
- children: "mount"
530
- })), _jsx("div", {
531
- style: {
532
- width: '50px',
533
- height: '50px',
534
- overflow: 'scroll',
535
- padding: '50px'
536
- },
537
- children: _jsx(Position, {
538
- placement: "bottom",
539
- constrain: "scroll-parent",
540
- mountNode: () => document.getElementById('mountNode'),
541
- renderTarget: _button11 || (_button11 = _jsx("button", {
542
- "data-testid": "target",
543
- children: "Target"
544
- })),
545
- children: _div16 || (_div16 = _jsx("div", {
546
- "data-testid": "content",
547
- children: _jsx("div", {
548
- children: "Content"
549
- })
550
- }))
551
- })
552
- })]
553
- }));
554
- const target = screen.getByTestId('target');
555
- const content = screen.getByTestId('content');
556
- await waitFor(() => {
557
- expect(content.getBoundingClientRect().top).toEqual(target.getBoundingClientRect().bottom);
558
- });
559
- });
560
- });
561
- describe('containerDisplay prop', () => {
562
- it('should apply "inline-block"', () => {
563
- const _render = render(_jsx("div", {
564
- style: {
565
- padding: '50px'
566
- },
567
- children: _jsx("div", {
568
- style: {
569
- ...parentDefaults
570
- },
571
- children: _Position4 || (_Position4 = _jsx(Position, {
572
- constrain: "window",
573
- renderTarget: _jsx("button", {
574
- "data-testid": "target",
575
- children: "Target"
576
- }),
577
- containerDisplay: "inline-block",
578
- children: _jsx("div", {
579
- "data-testid": "content",
580
- children: _jsx("div", {
581
- children: "Content"
582
- })
583
- })
584
- }))
585
- })
586
- })),
587
- container = _render.container;
588
- const position = container.querySelector("span[class$='-position']");
589
- const style = getComputedStyle(position);
590
- expect(style.display).toEqual('inline-block');
591
- });
592
- it('should apply "block"', () => {
593
- const _render2 = render(_jsx("div", {
594
- style: {
595
- padding: '50px'
596
- },
597
- children: _jsx("div", {
598
- style: {
599
- ...parentDefaults
600
- },
601
- children: _Position5 || (_Position5 = _jsx(Position, {
602
- constrain: "window",
603
- renderTarget: _jsx("button", {
604
- "data-testid": "target",
605
- children: "Target"
606
- }),
607
- containerDisplay: "block",
608
- children: _jsx("div", {
609
- "data-testid": "content",
610
- children: _jsx("div", {
611
- children: "Content"
612
- })
613
- })
614
- }))
615
- })
616
- })),
617
- container = _render2.container;
618
- const position = container.querySelector("span[class$='-position']");
619
- const style = getComputedStyle(position);
620
- expect(style.display).toEqual('block');
621
- });
622
- });
623
- });
@@ -1,28 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import { PositionLocator } from './PositionLocator';
26
- export { PositionContentLocator, PositionTargetLocator, customMethods } from './PositionLocator';
27
- export { PositionLocator };
28
- export default PositionLocator;