@wordpress/keycodes 4.27.1-next.46f643fa0.0 → 4.28.0
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/CHANGELOG.md +2 -0
- package/README.md +6 -18
- package/build/index.js +29 -54
- package/build/index.js.map +1 -1
- package/build/platform.js +3 -3
- package/build/platform.js.map +1 -1
- package/build-module/index.js +29 -54
- package/build-module/index.js.map +1 -1
- package/build-module/platform.js +3 -3
- package/build-module/platform.js.map +1 -1
- package/build-types/index.d.ts +53 -62
- package/build-types/index.d.ts.map +1 -1
- package/build-types/platform.d.ts +3 -3
- package/build-types/platform.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/{index.js → index.ts} +113 -111
- package/src/{platform.js → platform.ts} +3 -3
- package/src/test/{index.js → index.ts} +143 -100
- package/src/test/platform.ts +56 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/src/test/platform.js +0 -54
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
rawShortcut,
|
|
8
8
|
shortcutAriaLabel,
|
|
9
9
|
isKeyboardEvent,
|
|
10
|
-
} from '
|
|
10
|
+
} from '..';
|
|
11
11
|
|
|
12
|
-
const isAppleOSFalse = () => false;
|
|
13
|
-
const isAppleOSTrue = () => true;
|
|
12
|
+
const isAppleOSFalse = (): boolean => false;
|
|
13
|
+
const isAppleOSTrue = (): boolean => true;
|
|
14
14
|
|
|
15
15
|
describe( 'displayShortcutList', () => {
|
|
16
16
|
describe( 'primary', () => {
|
|
@@ -277,7 +277,10 @@ describe( 'isKeyboardEvent', () => {
|
|
|
277
277
|
}
|
|
278
278
|
} );
|
|
279
279
|
|
|
280
|
-
function keyPress(
|
|
280
|
+
function keyPress(
|
|
281
|
+
target: HTMLElement,
|
|
282
|
+
modifiers: Partial< KeyboardEventInit > & { key: string }
|
|
283
|
+
) {
|
|
281
284
|
[ 'keydown', 'keypress', 'keyup' ].forEach( ( eventName ) => {
|
|
282
285
|
const event = new window.KeyboardEvent( eventName, {
|
|
283
286
|
...modifiers,
|
|
@@ -288,11 +291,19 @@ describe( 'isKeyboardEvent', () => {
|
|
|
288
291
|
} );
|
|
289
292
|
}
|
|
290
293
|
|
|
291
|
-
function attachEventListeners(
|
|
292
|
-
|
|
294
|
+
function attachEventListeners(
|
|
295
|
+
eventHandler: ( event: KeyboardEvent ) => void
|
|
296
|
+
): HTMLElement {
|
|
297
|
+
const attachNode = document.createElement( 'div' ) as HTMLDivElement;
|
|
293
298
|
document.body.appendChild( attachNode );
|
|
294
299
|
|
|
295
|
-
|
|
300
|
+
const keyboardEvents: Array< 'keydown' | 'keypress' | 'keyup' > = [
|
|
301
|
+
'keydown',
|
|
302
|
+
'keypress',
|
|
303
|
+
'keyup',
|
|
304
|
+
];
|
|
305
|
+
|
|
306
|
+
keyboardEvents.forEach( ( eventName ) => {
|
|
296
307
|
attachNode.addEventListener( eventName, eventHandler );
|
|
297
308
|
} );
|
|
298
309
|
|
|
@@ -301,7 +312,7 @@ describe( 'isKeyboardEvent', () => {
|
|
|
301
312
|
|
|
302
313
|
it( 'returns false for a superset of modifiers', () => {
|
|
303
314
|
expect.assertions( 3 );
|
|
304
|
-
const attachNode = attachEventListeners( ( event ) => {
|
|
315
|
+
const attachNode = attachEventListeners( ( event: KeyboardEvent ) => {
|
|
305
316
|
expect(
|
|
306
317
|
isKeyboardEvent.primary( event, 'm', isAppleOSFalse )
|
|
307
318
|
).toBe( false );
|
|
@@ -317,11 +328,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
317
328
|
describe( 'primary', () => {
|
|
318
329
|
it( 'should identify modifier key when Ctrl is pressed', () => {
|
|
319
330
|
expect.assertions( 3 );
|
|
320
|
-
const attachNode = attachEventListeners(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
331
|
+
const attachNode = attachEventListeners(
|
|
332
|
+
( event: KeyboardEvent ) => {
|
|
333
|
+
expect(
|
|
334
|
+
isKeyboardEvent.primary( event, '', isAppleOSFalse )
|
|
335
|
+
).toBe( true );
|
|
336
|
+
}
|
|
337
|
+
);
|
|
325
338
|
|
|
326
339
|
keyPress( attachNode, {
|
|
327
340
|
ctrlKey: true,
|
|
@@ -331,11 +344,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
331
344
|
|
|
332
345
|
it( 'should identify modifier key when ⌘ is pressed', () => {
|
|
333
346
|
expect.assertions( 3 );
|
|
334
|
-
const attachNode = attachEventListeners(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
347
|
+
const attachNode = attachEventListeners(
|
|
348
|
+
( event: KeyboardEvent ) => {
|
|
349
|
+
expect(
|
|
350
|
+
isKeyboardEvent.primary( event, '', isAppleOSTrue )
|
|
351
|
+
).toBe( true );
|
|
352
|
+
}
|
|
353
|
+
);
|
|
339
354
|
|
|
340
355
|
keyPress( attachNode, {
|
|
341
356
|
metaKey: true,
|
|
@@ -345,11 +360,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
345
360
|
|
|
346
361
|
it( 'should identify modifier key when Ctrl + M is pressed', () => {
|
|
347
362
|
expect.assertions( 3 );
|
|
348
|
-
const attachNode = attachEventListeners(
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
363
|
+
const attachNode = attachEventListeners(
|
|
364
|
+
( event: KeyboardEvent ) => {
|
|
365
|
+
expect(
|
|
366
|
+
isKeyboardEvent.primary( event, 'm', isAppleOSFalse )
|
|
367
|
+
).toBe( true );
|
|
368
|
+
}
|
|
369
|
+
);
|
|
353
370
|
|
|
354
371
|
keyPress( attachNode, {
|
|
355
372
|
ctrlKey: true,
|
|
@@ -359,11 +376,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
359
376
|
|
|
360
377
|
it( 'should identify modifier key when ⌘M is pressed', () => {
|
|
361
378
|
expect.assertions( 3 );
|
|
362
|
-
const attachNode = attachEventListeners(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
379
|
+
const attachNode = attachEventListeners(
|
|
380
|
+
( event: KeyboardEvent ) => {
|
|
381
|
+
expect(
|
|
382
|
+
isKeyboardEvent.primary( event, 'm', isAppleOSTrue )
|
|
383
|
+
).toBe( true );
|
|
384
|
+
}
|
|
385
|
+
);
|
|
367
386
|
|
|
368
387
|
keyPress( attachNode, {
|
|
369
388
|
metaKey: true,
|
|
@@ -375,15 +394,17 @@ describe( 'isKeyboardEvent', () => {
|
|
|
375
394
|
describe( 'primaryShift', () => {
|
|
376
395
|
it( 'should identify modifier key when Shift + Ctrl is pressed', () => {
|
|
377
396
|
expect.assertions( 3 );
|
|
378
|
-
const attachNode = attachEventListeners(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
397
|
+
const attachNode = attachEventListeners(
|
|
398
|
+
( event: KeyboardEvent ) => {
|
|
399
|
+
expect(
|
|
400
|
+
isKeyboardEvent.primaryShift(
|
|
401
|
+
event,
|
|
402
|
+
'',
|
|
403
|
+
isAppleOSFalse
|
|
404
|
+
)
|
|
405
|
+
).toBe( true );
|
|
406
|
+
}
|
|
407
|
+
);
|
|
387
408
|
|
|
388
409
|
keyPress( attachNode, {
|
|
389
410
|
ctrlKey: true,
|
|
@@ -394,15 +415,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
394
415
|
|
|
395
416
|
it( 'should identify modifier key when ⇧⌘ is pressed', () => {
|
|
396
417
|
expect.assertions( 3 );
|
|
397
|
-
const attachNode = attachEventListeners(
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
event,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
).toBe( true );
|
|
405
|
-
} );
|
|
418
|
+
const attachNode = attachEventListeners(
|
|
419
|
+
( event: KeyboardEvent ) => {
|
|
420
|
+
expect(
|
|
421
|
+
isKeyboardEvent.primaryShift( event, '', isAppleOSTrue )
|
|
422
|
+
).toBe( true );
|
|
423
|
+
}
|
|
424
|
+
);
|
|
406
425
|
|
|
407
426
|
keyPress( attachNode, {
|
|
408
427
|
metaKey: true,
|
|
@@ -413,11 +432,17 @@ describe( 'isKeyboardEvent', () => {
|
|
|
413
432
|
|
|
414
433
|
it( 'should identify modifier key when Shift + Ctrl + M is pressed', () => {
|
|
415
434
|
expect.assertions( 3 );
|
|
416
|
-
const attachNode = attachEventListeners(
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
435
|
+
const attachNode = attachEventListeners(
|
|
436
|
+
( event: KeyboardEvent ) => {
|
|
437
|
+
expect(
|
|
438
|
+
isKeyboardEvent.primaryShift(
|
|
439
|
+
event,
|
|
440
|
+
'm',
|
|
441
|
+
isAppleOSFalse
|
|
442
|
+
)
|
|
443
|
+
).toBe( true );
|
|
444
|
+
}
|
|
445
|
+
);
|
|
421
446
|
|
|
422
447
|
keyPress( attachNode, {
|
|
423
448
|
ctrlKey: true,
|
|
@@ -428,11 +453,17 @@ describe( 'isKeyboardEvent', () => {
|
|
|
428
453
|
|
|
429
454
|
it( 'should identify modifier key when ⇧⌘M is pressed', () => {
|
|
430
455
|
expect.assertions( 3 );
|
|
431
|
-
const attachNode = attachEventListeners(
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
456
|
+
const attachNode = attachEventListeners(
|
|
457
|
+
( event: KeyboardEvent ) => {
|
|
458
|
+
expect(
|
|
459
|
+
isKeyboardEvent.primaryShift(
|
|
460
|
+
event,
|
|
461
|
+
'm',
|
|
462
|
+
isAppleOSTrue
|
|
463
|
+
)
|
|
464
|
+
).toBe( true );
|
|
465
|
+
}
|
|
466
|
+
);
|
|
436
467
|
|
|
437
468
|
keyPress( attachNode, {
|
|
438
469
|
metaKey: true,
|
|
@@ -445,15 +476,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
445
476
|
describe( 'secondary', () => {
|
|
446
477
|
it( 'should identify modifier key when Shift + Alt + Ctrl is pressed', () => {
|
|
447
478
|
expect.assertions( 3 );
|
|
448
|
-
const attachNode = attachEventListeners(
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
event,
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
).toBe( true );
|
|
456
|
-
} );
|
|
479
|
+
const attachNode = attachEventListeners(
|
|
480
|
+
( event: KeyboardEvent ) => {
|
|
481
|
+
expect(
|
|
482
|
+
isKeyboardEvent.secondary( event, '', isAppleOSFalse )
|
|
483
|
+
).toBe( true );
|
|
484
|
+
}
|
|
485
|
+
);
|
|
457
486
|
|
|
458
487
|
keyPress( attachNode, {
|
|
459
488
|
ctrlKey: true,
|
|
@@ -465,11 +494,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
465
494
|
|
|
466
495
|
it( 'should identify modifier key when ⇧⌥⌘ is pressed', () => {
|
|
467
496
|
expect.assertions( 3 );
|
|
468
|
-
const attachNode = attachEventListeners(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
497
|
+
const attachNode = attachEventListeners(
|
|
498
|
+
( event: KeyboardEvent ) => {
|
|
499
|
+
expect(
|
|
500
|
+
isKeyboardEvent.secondary( event, '', isAppleOSTrue )
|
|
501
|
+
).toBe( true );
|
|
502
|
+
}
|
|
503
|
+
);
|
|
473
504
|
|
|
474
505
|
keyPress( attachNode, {
|
|
475
506
|
metaKey: true,
|
|
@@ -481,11 +512,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
481
512
|
|
|
482
513
|
it( 'should identify modifier key when Shift + Ctrl + ALt + M is pressed', () => {
|
|
483
514
|
expect.assertions( 3 );
|
|
484
|
-
const attachNode = attachEventListeners(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
515
|
+
const attachNode = attachEventListeners(
|
|
516
|
+
( event: KeyboardEvent ) => {
|
|
517
|
+
expect(
|
|
518
|
+
isKeyboardEvent.secondary( event, 'm', isAppleOSFalse )
|
|
519
|
+
).toBe( true );
|
|
520
|
+
}
|
|
521
|
+
);
|
|
489
522
|
|
|
490
523
|
keyPress( attachNode, {
|
|
491
524
|
ctrlKey: true,
|
|
@@ -497,11 +530,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
497
530
|
|
|
498
531
|
it( 'should identify modifier key when ⇧⌥⌘M is pressed', () => {
|
|
499
532
|
expect.assertions( 3 );
|
|
500
|
-
const attachNode = attachEventListeners(
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
533
|
+
const attachNode = attachEventListeners(
|
|
534
|
+
( event: KeyboardEvent ) => {
|
|
535
|
+
expect(
|
|
536
|
+
isKeyboardEvent.secondary( event, 'm', isAppleOSTrue )
|
|
537
|
+
).toBe( true );
|
|
538
|
+
}
|
|
539
|
+
);
|
|
505
540
|
|
|
506
541
|
keyPress( attachNode, {
|
|
507
542
|
metaKey: true,
|
|
@@ -515,11 +550,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
515
550
|
describe( 'access', () => {
|
|
516
551
|
it( 'should identify modifier key when Shift + Alt is pressed', () => {
|
|
517
552
|
expect.assertions( 3 );
|
|
518
|
-
const attachNode = attachEventListeners(
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
553
|
+
const attachNode = attachEventListeners(
|
|
554
|
+
( event: KeyboardEvent ) => {
|
|
555
|
+
expect(
|
|
556
|
+
isKeyboardEvent.access( event, '', isAppleOSFalse )
|
|
557
|
+
).toBe( true );
|
|
558
|
+
}
|
|
559
|
+
);
|
|
523
560
|
|
|
524
561
|
keyPress( attachNode, {
|
|
525
562
|
shiftKey: true,
|
|
@@ -530,11 +567,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
530
567
|
|
|
531
568
|
it( 'should identify modifier key when Ctrl + ⌥ is pressed', () => {
|
|
532
569
|
expect.assertions( 3 );
|
|
533
|
-
const attachNode = attachEventListeners(
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
570
|
+
const attachNode = attachEventListeners(
|
|
571
|
+
( event: KeyboardEvent ) => {
|
|
572
|
+
expect(
|
|
573
|
+
isKeyboardEvent.access( event, '', isAppleOSTrue )
|
|
574
|
+
).toBe( true );
|
|
575
|
+
}
|
|
576
|
+
);
|
|
538
577
|
|
|
539
578
|
keyPress( attachNode, {
|
|
540
579
|
ctrlKey: true,
|
|
@@ -545,11 +584,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
545
584
|
|
|
546
585
|
it( 'should identify modifier key when Shift + Alt + M is pressed', () => {
|
|
547
586
|
expect.assertions( 3 );
|
|
548
|
-
const attachNode = attachEventListeners(
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
587
|
+
const attachNode = attachEventListeners(
|
|
588
|
+
( event: KeyboardEvent ) => {
|
|
589
|
+
expect(
|
|
590
|
+
isKeyboardEvent.access( event, 'm', isAppleOSFalse )
|
|
591
|
+
).toBe( true );
|
|
592
|
+
}
|
|
593
|
+
);
|
|
553
594
|
|
|
554
595
|
keyPress( attachNode, {
|
|
555
596
|
shiftKey: true,
|
|
@@ -560,11 +601,13 @@ describe( 'isKeyboardEvent', () => {
|
|
|
560
601
|
|
|
561
602
|
it( 'should identify modifier key when Ctrl + ⌥M is pressed', () => {
|
|
562
603
|
expect.assertions( 3 );
|
|
563
|
-
const attachNode = attachEventListeners(
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
604
|
+
const attachNode = attachEventListeners(
|
|
605
|
+
( event: KeyboardEvent ) => {
|
|
606
|
+
expect(
|
|
607
|
+
isKeyboardEvent.access( event, 'm', isAppleOSTrue )
|
|
608
|
+
).toBe( true );
|
|
609
|
+
}
|
|
610
|
+
);
|
|
568
611
|
|
|
569
612
|
keyPress( attachNode, {
|
|
570
613
|
ctrlKey: true,
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { isAppleOS } from '../platform';
|
|
5
|
+
|
|
6
|
+
describe( 'isAppleOS helper', () => {
|
|
7
|
+
it( 'should identify anything with "Mac" in it as Apple OS', () => {
|
|
8
|
+
expect(
|
|
9
|
+
isAppleOS( { navigator: { platform: 'Mac' } } as Window )
|
|
10
|
+
).toEqual( true );
|
|
11
|
+
expect(
|
|
12
|
+
isAppleOS( { navigator: { platform: 'MacIntel' } } as Window )
|
|
13
|
+
).toEqual( true );
|
|
14
|
+
} );
|
|
15
|
+
|
|
16
|
+
it( 'should identify "iPad" as Apple OS', () => {
|
|
17
|
+
expect(
|
|
18
|
+
isAppleOS( { navigator: { platform: 'iPad' } } as Window )
|
|
19
|
+
).toEqual( true );
|
|
20
|
+
} );
|
|
21
|
+
|
|
22
|
+
it( 'should identify "iPhone" as Apple OS', () => {
|
|
23
|
+
expect(
|
|
24
|
+
isAppleOS( { navigator: { platform: 'iPhone' } } as Window )
|
|
25
|
+
).toEqual( true );
|
|
26
|
+
} );
|
|
27
|
+
|
|
28
|
+
it( 'should not identify Windows as MacOS', () => {
|
|
29
|
+
expect(
|
|
30
|
+
isAppleOS( {
|
|
31
|
+
navigator: { platform: 'Windows' },
|
|
32
|
+
} as Window )
|
|
33
|
+
).toEqual( false );
|
|
34
|
+
expect(
|
|
35
|
+
isAppleOS( { navigator: { platform: 'Win' } } as Window )
|
|
36
|
+
).toEqual( false );
|
|
37
|
+
} );
|
|
38
|
+
|
|
39
|
+
it( 'should not identify *NIX as MacOS', () => {
|
|
40
|
+
expect(
|
|
41
|
+
isAppleOS( { navigator: { platform: 'Linux' } } as Window )
|
|
42
|
+
).toEqual( false );
|
|
43
|
+
expect(
|
|
44
|
+
isAppleOS( { navigator: { platform: 'Unix' } } as Window )
|
|
45
|
+
).toEqual( false );
|
|
46
|
+
} );
|
|
47
|
+
|
|
48
|
+
it( 'should not identify other cases as MacOS', () => {
|
|
49
|
+
expect(
|
|
50
|
+
isAppleOS( { navigator: { platform: 'MAC' } } as Window )
|
|
51
|
+
).toEqual( false );
|
|
52
|
+
expect(
|
|
53
|
+
isAppleOS( { navigator: { platform: 'mac' } } as Window )
|
|
54
|
+
).toEqual( false );
|
|
55
|
+
} );
|
|
56
|
+
} );
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/@tannin/sprintf/types/index.d.ts","../../node_modules/@tannin/sprintf/src/index.d.ts","../../node_modules/tannin/index.d.ts","../i18n/build-types/types.d.ts","../i18n/build-types/sprintf.d.ts","../hooks/build-types/createAddHook.d.ts","../hooks/build-types/types.d.ts","../hooks/build-types/createRemoveHook.d.ts","../hooks/build-types/createHasHook.d.ts","../hooks/build-types/createRunHook.d.ts","../hooks/build-types/createCurrentHook.d.ts","../hooks/build-types/createDoingHook.d.ts","../hooks/build-types/createDidHook.d.ts","../hooks/build-types/createHooks.d.ts","../hooks/build-types/index.d.ts","../i18n/build-types/create-i18n.d.ts","../i18n/build-types/default-i18n.d.ts","../i18n/build-types/index.d.ts","./src/platform.js","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/react/index.d.ts","./src/index.js"],"fileIdsList":[[79],[98,99,100],[93],[85],[84,85,86,87,88,89,90,91],[84,85,86,87,88,90,91,92],[92],[82,93],[82],[82,83,94,95],[80,81],[96,97,101]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c709147f2a650b942c69f42c341f0456922911e8ee0b63eba1d46ed7c24d82bf","impliedFormat":99},{"version":"7c8f354ebfae57b7db67e7b00e3e98ce949f2d2804d7fd34b9dd7c6880e7eb2a","impliedFormat":99},{"version":"0d1179b6e77f3c31405e0c31f52f13bc4270555bdd3157f0bc855d5e7fe2c4cf","impliedFormat":1},"497a2fc9f9029fab0cc80a784845867c5af173fbe16881500b62edd6919ba3ce","ccbb4955fbd599f75be76bc0f6b9ffa9264dc59c507a2aeecb41dec88bb5f3f6","e89c5f3e57750498ecc0904025a5faaa2067a54ce82dac6ba2b8cf0cfd41ccc2","09fe1d225f4a83f48ea5f67f1be80f6e674280a4f8c38d0ebd649862237066bb","4ad429086c5d55543eb1146b31a2de27e54ad772d1626d19b80502b3fff43b84","6b089383aa85af6dd1619a6fb9468a1eec60c2ce83be3f4fc691a323275860c4","cdbced29135877ea367650ee1c49c482a46cbbd0befdbfb730e8780d5982aa41","5461443f907ddbae5a8b8cd9a32ac614e396bf505acd4b09245d4ec0b1dbebd2","26a0c627921511b17209aa6e90510e25a424b8cb1b08ac74d29d98bfb35e1959","6508e23a7d089883b385ab273c9ae40301e953e987c4363bdbc6f788b88ff9ce","ee1a1f6f69c6e3f7cdb0fd5a920d72cd9c2e69229919ad0d7b590dda51348bca","d150550f9f93d9b865bdba497dfee108bfc0af237d186fb173af51a0646e3643","2aef2be50a4cc4626209af6c7735a3be2eb9d8643fb189c72a21ea4d467231c7","4c74dd582fab386fc92df4c0f214f0e6ac3d522b73f5dae2ebcf8094c50cf08b","f07884c953b96279eaed286f01f6b3deeea5d889125db08b27ee6e9dbd3e369b",{"version":"c813ac99663202e702fe5f635f7ec2d7b20747c57ff0a85a86af0dadac9170e2","signature":"6270f21b52d381dda2ca953a728f44b5ceb9edf965c97cb55f77ba7a477d77f0"},{"version":"55461596dc873b866911ef4e640fae4c39da7ac1fbc7ef5e649cb2f2fb42c349","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","impliedFormat":1},{"version":"f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","impliedFormat":1},{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a9c4f1c3d57af155b0016c2c52c8051f5472abee776a1a5a279b6f504554637","signature":"079ae7b7b7e8717e26b6823b7595a91470479aed7be955e3cc55e9e51487a655"}],"root":[97,102],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"referencedMap":[[80,1],[101,2],[84,3],[89,4],[91,4],[90,4],[87,4],[92,5],[86,4],[88,4],[93,6],[85,7],[94,8],[95,9],[96,10],[83,9],[82,11],[102,12]],"latestChangedDtsFile":"./build-types/index.d.ts","version":"5.7.2"}
|
|
1
|
+
{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/@tannin/sprintf/types/index.d.ts","../../node_modules/@tannin/sprintf/src/index.d.ts","../../node_modules/tannin/index.d.ts","../i18n/build-types/types.d.ts","../i18n/build-types/sprintf.d.ts","../hooks/build-types/createAddHook.d.ts","../hooks/build-types/types.d.ts","../hooks/build-types/createRemoveHook.d.ts","../hooks/build-types/createHasHook.d.ts","../hooks/build-types/createRunHook.d.ts","../hooks/build-types/createCurrentHook.d.ts","../hooks/build-types/createDoingHook.d.ts","../hooks/build-types/createDidHook.d.ts","../hooks/build-types/createHooks.d.ts","../hooks/build-types/index.d.ts","../i18n/build-types/create-i18n.d.ts","../i18n/build-types/default-i18n.d.ts","../i18n/build-types/index.d.ts","./src/platform.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/react/index.d.ts","./src/index.ts"],"fileIdsList":[[79],[98,99,100],[93],[85],[84,85,86,87,88,89,90,91],[84,85,86,87,88,90,91,92],[92],[82,93],[82],[82,83,94,95],[80,81],[96,97,101]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c709147f2a650b942c69f42c341f0456922911e8ee0b63eba1d46ed7c24d82bf","impliedFormat":99},{"version":"7c8f354ebfae57b7db67e7b00e3e98ce949f2d2804d7fd34b9dd7c6880e7eb2a","impliedFormat":99},{"version":"0d1179b6e77f3c31405e0c31f52f13bc4270555bdd3157f0bc855d5e7fe2c4cf","impliedFormat":1},"497a2fc9f9029fab0cc80a784845867c5af173fbe16881500b62edd6919ba3ce","ccbb4955fbd599f75be76bc0f6b9ffa9264dc59c507a2aeecb41dec88bb5f3f6","e89c5f3e57750498ecc0904025a5faaa2067a54ce82dac6ba2b8cf0cfd41ccc2","09fe1d225f4a83f48ea5f67f1be80f6e674280a4f8c38d0ebd649862237066bb","4ad429086c5d55543eb1146b31a2de27e54ad772d1626d19b80502b3fff43b84","6b089383aa85af6dd1619a6fb9468a1eec60c2ce83be3f4fc691a323275860c4","cdbced29135877ea367650ee1c49c482a46cbbd0befdbfb730e8780d5982aa41","5461443f907ddbae5a8b8cd9a32ac614e396bf505acd4b09245d4ec0b1dbebd2","26a0c627921511b17209aa6e90510e25a424b8cb1b08ac74d29d98bfb35e1959","6508e23a7d089883b385ab273c9ae40301e953e987c4363bdbc6f788b88ff9ce","ee1a1f6f69c6e3f7cdb0fd5a920d72cd9c2e69229919ad0d7b590dda51348bca","d150550f9f93d9b865bdba497dfee108bfc0af237d186fb173af51a0646e3643","2aef2be50a4cc4626209af6c7735a3be2eb9d8643fb189c72a21ea4d467231c7","4c74dd582fab386fc92df4c0f214f0e6ac3d522b73f5dae2ebcf8094c50cf08b","f07884c953b96279eaed286f01f6b3deeea5d889125db08b27ee6e9dbd3e369b",{"version":"442de40df36db9b2569f8c37902cfe5928406bf851a2baaace3a544d88f27667","signature":"5689bbb026f9c964c62cea8932316041877fbeacaabbafa98294cd067b850de8"},{"version":"55461596dc873b866911ef4e640fae4c39da7ac1fbc7ef5e649cb2f2fb42c349","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","impliedFormat":1},{"version":"f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","impliedFormat":1},{"version":"8ca4709dbd22a34bcc1ebf93e1877645bdb02ebd3f3d9a211a299a8db2ee4ba1","affectsGlobalScope":true,"impliedFormat":1},{"version":"384fd55c467bc0cdc9f458b21f707fbd549f0eafed7d5b9445e2abbb8430d65b","signature":"eee058526b3f30491b0ee6ce996a86b73f3d308a90b3868f6a9bd0b67e537823"}],"root":[97,102],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"referencedMap":[[80,1],[101,2],[84,3],[89,4],[91,4],[90,4],[87,4],[92,5],[86,4],[88,4],[93,6],[85,7],[94,8],[95,9],[96,10],[83,9],[82,11],[102,12]],"latestChangedDtsFile":"./build-types/index.d.ts","version":"5.7.2"}
|
package/src/test/platform.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { isAppleOS } from '../platform';
|
|
5
|
-
|
|
6
|
-
describe( 'isAppleOS helper', () => {
|
|
7
|
-
it( 'should identify anything with "Mac" in it as Apple OS', () => {
|
|
8
|
-
expect( isAppleOS( { navigator: { platform: 'Mac' } } ) ).toEqual(
|
|
9
|
-
true
|
|
10
|
-
);
|
|
11
|
-
expect( isAppleOS( { navigator: { platform: 'MacIntel' } } ) ).toEqual(
|
|
12
|
-
true
|
|
13
|
-
);
|
|
14
|
-
} );
|
|
15
|
-
|
|
16
|
-
it( 'should identify "iPad" as Apple OS', () => {
|
|
17
|
-
expect( isAppleOS( { navigator: { platform: 'iPad' } } ) ).toEqual(
|
|
18
|
-
true
|
|
19
|
-
);
|
|
20
|
-
} );
|
|
21
|
-
|
|
22
|
-
it( 'should identify "iPhone" as Apple OS', () => {
|
|
23
|
-
expect( isAppleOS( { navigator: { platform: 'iPhone' } } ) ).toEqual(
|
|
24
|
-
true
|
|
25
|
-
);
|
|
26
|
-
} );
|
|
27
|
-
|
|
28
|
-
it( 'should not identify Windows as MacOS', () => {
|
|
29
|
-
expect( isAppleOS( { navigator: { platform: 'Windows' } } ) ).toEqual(
|
|
30
|
-
false
|
|
31
|
-
);
|
|
32
|
-
expect( isAppleOS( { navigator: { platform: 'Win' } } ) ).toEqual(
|
|
33
|
-
false
|
|
34
|
-
);
|
|
35
|
-
} );
|
|
36
|
-
|
|
37
|
-
it( 'should not identify *NIX as MacOS', () => {
|
|
38
|
-
expect( isAppleOS( { navigator: { platform: 'Linux' } } ) ).toEqual(
|
|
39
|
-
false
|
|
40
|
-
);
|
|
41
|
-
expect( isAppleOS( { navigator: { platform: 'Unix' } } ) ).toEqual(
|
|
42
|
-
false
|
|
43
|
-
);
|
|
44
|
-
} );
|
|
45
|
-
|
|
46
|
-
it( 'should not identify other cases as MacOS', () => {
|
|
47
|
-
expect( isAppleOS( { navigator: { platform: 'MAC' } } ) ).toEqual(
|
|
48
|
-
false
|
|
49
|
-
);
|
|
50
|
-
expect( isAppleOS( { navigator: { platform: 'mac' } } ) ).toEqual(
|
|
51
|
-
false
|
|
52
|
-
);
|
|
53
|
-
} );
|
|
54
|
-
} );
|