@wordpress/compose 5.8.0 → 5.9.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 +2 -2
- package/build/higher-order/if-condition/index.js +14 -10
- package/build/higher-order/if-condition/index.js.map +1 -1
- package/build/higher-order/pure/index.js +9 -5
- package/build/higher-order/pure/index.js.map +1 -1
- package/build/higher-order/with-global-events/index.js +2 -2
- package/build/higher-order/with-global-events/index.js.map +1 -1
- package/build/higher-order/with-instance-id/index.js +3 -3
- package/build/higher-order/with-instance-id/index.js.map +1 -1
- package/build/higher-order/with-preferred-color-scheme/index.native.js +2 -2
- package/build/higher-order/with-preferred-color-scheme/index.native.js.map +1 -1
- package/build/higher-order/with-safe-timeout/index.js +10 -7
- package/build/higher-order/with-safe-timeout/index.js.map +1 -1
- package/build/higher-order/with-state/index.js +2 -2
- package/build/higher-order/with-state/index.js.map +1 -1
- package/build/hooks/use-debounce/index.js.map +1 -1
- package/build/hooks/use-dialog/index.js.map +1 -1
- package/build/hooks/use-disabled/index.js.map +1 -1
- package/build/hooks/use-focus-return/index.js.map +1 -1
- package/build/hooks/use-keyboard-shortcut/index.js.map +1 -1
- package/build/hooks/use-merge-refs/index.js.map +1 -1
- package/build/hooks/use-throttle/index.js.map +1 -1
- package/build/index.js +48 -7
- package/build/index.js.map +1 -1
- package/build/index.native.js +40 -7
- package/build/index.native.js.map +1 -1
- package/build/utils/create-higher-order-component/index.js +19 -5
- package/build/utils/create-higher-order-component/index.js.map +1 -1
- package/build-module/higher-order/if-condition/index.js +13 -7
- package/build-module/higher-order/if-condition/index.js.map +1 -1
- package/build-module/higher-order/pure/index.js +10 -9
- package/build-module/higher-order/pure/index.js.map +1 -1
- package/build-module/higher-order/with-global-events/index.js +1 -1
- package/build-module/higher-order/with-global-events/index.js.map +1 -1
- package/build-module/higher-order/with-instance-id/index.js +3 -3
- package/build-module/higher-order/with-instance-id/index.js.map +1 -1
- package/build-module/higher-order/with-preferred-color-scheme/index.native.js +1 -1
- package/build-module/higher-order/with-preferred-color-scheme/index.native.js.map +1 -1
- package/build-module/higher-order/with-safe-timeout/index.js +9 -7
- package/build-module/higher-order/with-safe-timeout/index.js.map +1 -1
- package/build-module/higher-order/with-state/index.js +1 -1
- package/build-module/higher-order/with-state/index.js.map +1 -1
- package/build-module/hooks/use-debounce/index.js.map +1 -1
- package/build-module/hooks/use-dialog/index.js.map +1 -1
- package/build-module/hooks/use-disabled/index.js.map +1 -1
- package/build-module/hooks/use-focus-return/index.js.map +1 -1
- package/build-module/hooks/use-keyboard-shortcut/index.js.map +1 -1
- package/build-module/hooks/use-merge-refs/index.js.map +1 -1
- package/build-module/hooks/use-throttle/index.js.map +1 -1
- package/build-module/index.js +2 -2
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +2 -2
- package/build-module/index.native.js.map +1 -1
- package/build-module/utils/create-higher-order-component/index.js +18 -4
- package/build-module/utils/create-higher-order-component/index.js.map +1 -1
- package/build-types/higher-order/if-condition/index.d.ts +5 -1
- package/build-types/higher-order/if-condition/index.d.ts.map +1 -1
- package/build-types/higher-order/pure/index.d.ts +1 -1
- package/build-types/higher-order/pure/index.d.ts.map +1 -1
- package/build-types/higher-order/with-global-events/index.d.ts.map +1 -1
- package/build-types/higher-order/with-instance-id/index.d.ts +8 -3
- package/build-types/higher-order/with-instance-id/index.d.ts.map +1 -1
- package/build-types/higher-order/with-safe-timeout/index.d.ts +37 -4
- package/build-types/higher-order/with-safe-timeout/index.d.ts.map +1 -1
- package/build-types/hooks/use-debounce/index.d.ts.map +1 -1
- package/build-types/hooks/use-dialog/index.d.ts.map +1 -1
- package/build-types/hooks/use-disabled/index.d.ts.map +1 -1
- package/build-types/hooks/use-focus-return/index.d.ts.map +1 -1
- package/build-types/hooks/use-merge-refs/index.d.ts.map +1 -1
- package/build-types/hooks/use-throttle/index.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -1
- package/build-types/utils/create-higher-order-component/index.d.ts +5 -12
- package/build-types/utils/create-higher-order-component/index.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/higher-order/if-condition/index.tsx +11 -7
- package/src/higher-order/pure/index.tsx +29 -31
- package/src/higher-order/with-global-events/index.js +4 -2
- package/src/higher-order/with-global-events/test/index.js +2 -2
- package/src/higher-order/with-instance-id/index.tsx +19 -10
- package/src/higher-order/with-preferred-color-scheme/index.native.js +1 -1
- package/src/higher-order/with-safe-timeout/index.tsx +22 -19
- package/src/higher-order/with-state/index.js +1 -1
- package/src/hooks/use-debounce/index.js +4 -5
- package/src/hooks/use-dialog/index.js +13 -12
- package/src/hooks/use-disabled/index.js +8 -9
- package/src/hooks/use-focus-return/index.js +3 -1
- package/src/hooks/use-keyboard-shortcut/index.js +1 -1
- package/src/hooks/use-merge-refs/index.js +2 -1
- package/src/hooks/use-throttle/index.js +4 -5
- package/src/index.js +2 -2
- package/src/index.native.js +2 -2
- package/src/utils/create-higher-order-component/index.ts +30 -27
- package/src/utils/create-higher-order-component/test/index.js +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ComponentType, ComponentClass } from 'react';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
* WordPress dependencies
|
|
3
8
|
*/
|
|
@@ -7,43 +12,36 @@ import { Component } from '@wordpress/element';
|
|
|
7
12
|
/**
|
|
8
13
|
* Internal dependencies
|
|
9
14
|
*/
|
|
10
|
-
import createHigherOrderComponent from '../../utils/create-higher-order-component';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* External dependencies
|
|
14
|
-
*/
|
|
15
|
-
import type { ComponentType, ComponentClass } from 'react';
|
|
15
|
+
import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Given a component returns the enhanced component augmented with a component
|
|
19
19
|
* only re-rendering when its props/state change
|
|
20
20
|
*/
|
|
21
|
-
const pure = createHigherOrderComponent(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return class extends Component< TProps > {
|
|
37
|
-
shouldComponentUpdate( nextProps: TProps ) {
|
|
38
|
-
return ! isShallowEqual( nextProps, this.props );
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
render() {
|
|
42
|
-
return <Wrapped { ...this.props } />;
|
|
21
|
+
const pure = createHigherOrderComponent( function < Props >(
|
|
22
|
+
WrappedComponent: ComponentType< Props >
|
|
23
|
+
): ComponentType< Props > {
|
|
24
|
+
if ( WrappedComponent.prototype instanceof Component ) {
|
|
25
|
+
return class extends ( WrappedComponent as ComponentClass< Props > ) {
|
|
26
|
+
shouldComponentUpdate( nextProps: Props, nextState: any ) {
|
|
27
|
+
return (
|
|
28
|
+
! isShallowEqual( nextProps, this.props ) ||
|
|
29
|
+
! isShallowEqual( nextState, this.state )
|
|
30
|
+
);
|
|
43
31
|
}
|
|
44
32
|
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return class extends Component< Props > {
|
|
36
|
+
shouldComponentUpdate( nextProps: Props ) {
|
|
37
|
+
return ! isShallowEqual( nextProps, this.props );
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
render() {
|
|
41
|
+
return <WrappedComponent { ...this.props } />;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
'pure' );
|
|
48
46
|
|
|
49
47
|
export default pure;
|
|
@@ -12,7 +12,7 @@ import deprecated from '@wordpress/deprecated';
|
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
|
-
import createHigherOrderComponent from '../../utils/create-higher-order-component';
|
|
15
|
+
import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
|
|
16
16
|
import Listener from './listener';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -71,7 +71,9 @@ export default function withGlobalEvents( eventTypesToHandlers ) {
|
|
|
71
71
|
handleEvent( /** @type {any} */ event ) {
|
|
72
72
|
const handler =
|
|
73
73
|
eventTypesToHandlers[
|
|
74
|
-
/** @type {keyof GlobalEventHandlersEventMap} */ (
|
|
74
|
+
/** @type {keyof GlobalEventHandlersEventMap} */ (
|
|
75
|
+
event.type
|
|
76
|
+
)
|
|
75
77
|
/* eslint-enable jsdoc/no-undefined-types */
|
|
76
78
|
];
|
|
77
79
|
if ( typeof this.wrappedRef[ handler ] === 'function' ) {
|
|
@@ -82,8 +82,8 @@ describe( 'withGlobalEvents', () => {
|
|
|
82
82
|
mountEnhancedComponent();
|
|
83
83
|
|
|
84
84
|
// Get the HOC wrapper instance.
|
|
85
|
-
const hocInstance =
|
|
86
|
-
.instance;
|
|
85
|
+
const hocInstance =
|
|
86
|
+
wrapper.root.findByType( OriginalComponent ).parent.instance;
|
|
87
87
|
|
|
88
88
|
expect( Listener._instance.add ).toHaveBeenCalledWith(
|
|
89
89
|
'resize',
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
createHigherOrderComponent,
|
|
6
|
+
WithInjectedProps,
|
|
7
|
+
WithoutInjectedProps,
|
|
8
|
+
} from '../../utils/create-higher-order-component';
|
|
5
9
|
import useInstanceId from '../../hooks/use-instance-id';
|
|
6
10
|
|
|
11
|
+
type InstanceIdProps = { instanceId: string | number };
|
|
12
|
+
|
|
7
13
|
/**
|
|
8
14
|
* A Higher Order Component used to be provide a unique instance ID by
|
|
9
15
|
* component.
|
|
10
16
|
*/
|
|
11
|
-
const withInstanceId = createHigherOrderComponent
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
17
|
+
const withInstanceId = createHigherOrderComponent(
|
|
18
|
+
< C extends WithInjectedProps< C, InstanceIdProps > >(
|
|
19
|
+
WrappedComponent: C
|
|
20
|
+
) => {
|
|
21
|
+
return ( props: WithoutInjectedProps< C, InstanceIdProps > ) => {
|
|
22
|
+
const instanceId = useInstanceId( WrappedComponent );
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
return <WrappedComponent { ...props } instanceId={ instanceId } />;
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
'instanceId'
|
|
28
|
+
);
|
|
20
29
|
|
|
21
30
|
export default withInstanceId;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
|
-
import createHigherOrderComponent from '../../utils/create-higher-order-component';
|
|
4
|
+
import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
|
|
5
5
|
import usePreferredColorScheme from '../../hooks/use-preferred-color-scheme';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { without } from 'lodash';
|
|
5
|
-
import type { ComponentType } from 'react';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* WordPress dependencies
|
|
@@ -12,7 +11,11 @@ import { Component } from '@wordpress/element';
|
|
|
12
11
|
/**
|
|
13
12
|
* Internal dependencies
|
|
14
13
|
*/
|
|
15
|
-
import
|
|
14
|
+
import {
|
|
15
|
+
createHigherOrderComponent,
|
|
16
|
+
WithInjectedProps,
|
|
17
|
+
WithoutInjectedProps,
|
|
18
|
+
} from '../../utils/create-higher-order-component';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* We cannot use the `Window['setTimeout']` and `Window['clearTimeout']`
|
|
@@ -22,25 +25,24 @@ import createHigherOrderComponent from '../../utils/create-higher-order-componen
|
|
|
22
25
|
* In the case of this component, we only handle the simplest case where
|
|
23
26
|
* `setTimeout` only accepts a function (not a string) and an optional delay.
|
|
24
27
|
*/
|
|
25
|
-
|
|
28
|
+
interface TimeoutProps {
|
|
26
29
|
setTimeout: ( fn: () => void, delay: number ) => number;
|
|
27
30
|
clearTimeout: ( id: number ) => void;
|
|
28
|
-
}
|
|
31
|
+
}
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* A higher-order component used to provide and manage delayed function calls
|
|
32
35
|
* that ought to be bound to a component's lifecycle.
|
|
33
36
|
*/
|
|
34
|
-
const withSafeTimeout = createHigherOrderComponent
|
|
35
|
-
<
|
|
36
|
-
OriginalComponent:
|
|
37
|
+
const withSafeTimeout = createHigherOrderComponent(
|
|
38
|
+
< C extends WithInjectedProps< C, TimeoutProps > >(
|
|
39
|
+
OriginalComponent: C
|
|
37
40
|
) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
> {
|
|
41
|
+
type WrappedProps = WithoutInjectedProps< C, TimeoutProps >;
|
|
42
|
+
return class WrappedComponent extends Component< WrappedProps > {
|
|
41
43
|
timeouts: number[];
|
|
42
44
|
|
|
43
|
-
constructor( props:
|
|
45
|
+
constructor( props: WrappedProps ) {
|
|
44
46
|
super( props );
|
|
45
47
|
this.timeouts = [];
|
|
46
48
|
this.setTimeout = this.setTimeout.bind( this );
|
|
@@ -51,7 +53,7 @@ const withSafeTimeout = createHigherOrderComponent< TimeoutProps >(
|
|
|
51
53
|
this.timeouts.forEach( clearTimeout );
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
setTimeout( fn: (
|
|
56
|
+
setTimeout( fn: () => void, delay: number ) {
|
|
55
57
|
const id = setTimeout( () => {
|
|
56
58
|
fn();
|
|
57
59
|
this.clearTimeout( id );
|
|
@@ -66,13 +68,14 @@ const withSafeTimeout = createHigherOrderComponent< TimeoutProps >(
|
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
render() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
return (
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
<OriginalComponent
|
|
74
|
+
{ ...this.props }
|
|
75
|
+
setTimeout={ this.setTimeout }
|
|
76
|
+
clearTimeout={ this.clearTimeout }
|
|
77
|
+
/>
|
|
78
|
+
);
|
|
76
79
|
}
|
|
77
80
|
};
|
|
78
81
|
},
|
|
@@ -7,7 +7,7 @@ import deprecated from '@wordpress/deprecated';
|
|
|
7
7
|
/**
|
|
8
8
|
* Internal dependencies
|
|
9
9
|
*/
|
|
10
|
-
import createHigherOrderComponent from '../../utils/create-higher-order-component';
|
|
10
|
+
import { createHigherOrderComponent } from '../../utils/create-higher-order-component';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A Higher Order Component used to provide and manage internal component state
|
|
@@ -27,11 +27,10 @@ import { useEffect } from '@wordpress/element';
|
|
|
27
27
|
*/
|
|
28
28
|
export default function useDebounce( fn, wait, options ) {
|
|
29
29
|
/* eslint-enable jsdoc/valid-types */
|
|
30
|
-
const debounced = useMemoOne(
|
|
31
|
-
fn,
|
|
32
|
-
wait,
|
|
33
|
-
|
|
34
|
-
] );
|
|
30
|
+
const debounced = useMemoOne(
|
|
31
|
+
() => debounce( fn, wait, options ),
|
|
32
|
+
[ fn, wait, options ]
|
|
33
|
+
);
|
|
35
34
|
useEffect( () => () => debounced.cancel(), [ debounced ] );
|
|
36
35
|
return debounced;
|
|
37
36
|
}
|
|
@@ -57,19 +57,20 @@ function useDialog( options ) {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
node.addEventListener(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
node.addEventListener(
|
|
61
|
+
'keydown',
|
|
62
|
+
( /** @type {KeyboardEvent} */ event ) => {
|
|
63
|
+
// Close on escape.
|
|
64
|
+
if (
|
|
65
|
+
event.keyCode === ESCAPE &&
|
|
66
|
+
! event.defaultPrevented &&
|
|
67
|
+
currentOptions.current?.onClose
|
|
68
|
+
) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
currentOptions.current.onClose();
|
|
71
|
+
}
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
+
);
|
|
73
74
|
}, [] );
|
|
74
75
|
|
|
75
76
|
return [
|
|
@@ -70,9 +70,8 @@ export default function useDisabled( {
|
|
|
70
70
|
|
|
71
71
|
const disable = () => {
|
|
72
72
|
if ( node.style.getPropertyValue( 'user-select' ) !== 'none' ) {
|
|
73
|
-
const previousValue =
|
|
74
|
-
'user-select'
|
|
75
|
-
);
|
|
73
|
+
const previousValue =
|
|
74
|
+
node.style.getPropertyValue( 'user-select' );
|
|
76
75
|
node.style.setProperty( 'user-select', 'none' );
|
|
77
76
|
node.style.setProperty( '-webkit-user-select', 'none' );
|
|
78
77
|
updates.push( () => {
|
|
@@ -110,9 +109,8 @@ export default function useDisabled( {
|
|
|
110
109
|
focusable.nodeName === 'A' &&
|
|
111
110
|
focusable.getAttribute( 'tabindex' ) !== '-1'
|
|
112
111
|
) {
|
|
113
|
-
const previousValue =
|
|
114
|
-
'tabindex'
|
|
115
|
-
);
|
|
112
|
+
const previousValue =
|
|
113
|
+
focusable.getAttribute( 'tabindex' );
|
|
116
114
|
focusable.setAttribute( 'tabindex', '-1' );
|
|
117
115
|
updates.push( () => {
|
|
118
116
|
if ( ! focusable.isConnected ) {
|
|
@@ -158,9 +156,10 @@ export default function useDisabled( {
|
|
|
158
156
|
focusable instanceof
|
|
159
157
|
node.ownerDocument.defaultView.HTMLElement
|
|
160
158
|
) {
|
|
161
|
-
const previousValue =
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
const previousValue =
|
|
160
|
+
focusable.style.getPropertyValue(
|
|
161
|
+
'pointer-events'
|
|
162
|
+
);
|
|
164
163
|
focusable.style.setProperty( 'pointer-events', 'none' );
|
|
165
164
|
updates.push( () => {
|
|
166
165
|
if ( ! focusable.isConnected ) {
|
|
@@ -64,7 +64,9 @@ function useFocusReturn( onFocusReturn ) {
|
|
|
64
64
|
if ( onFocusReturnRef.current ) {
|
|
65
65
|
onFocusReturnRef.current();
|
|
66
66
|
} else {
|
|
67
|
-
/** @type {null | HTMLElement} */ (
|
|
67
|
+
/** @type {null | HTMLElement} */ (
|
|
68
|
+
focusedBeforeMount.current
|
|
69
|
+
)?.focus();
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
}, [] );
|
|
@@ -73,7 +73,7 @@ function useKeyboardShortcut(
|
|
|
73
73
|
: // We were passing `document` here previously, so to successfully cast it to Element we must cast it first to `unknown`.
|
|
74
74
|
// Not sure if this is a mistake but it was the behavior previous to the addition of types so we're just doing what's
|
|
75
75
|
// necessary to maintain the existing behavior.
|
|
76
|
-
/** @type {Element} */ (/** @type {unknown} */ ( document ))
|
|
76
|
+
/** @type {Element} */ ( /** @type {unknown} */ ( document ) )
|
|
77
77
|
);
|
|
78
78
|
castArray( shortcuts ).forEach( ( shortcut ) => {
|
|
79
79
|
const keys = shortcut.split( '+' );
|
|
@@ -20,7 +20,8 @@ function assignRef( ref, value ) {
|
|
|
20
20
|
ref( value );
|
|
21
21
|
} else if ( ref && ref.hasOwnProperty( 'current' ) ) {
|
|
22
22
|
/* eslint-disable jsdoc/no-undefined-types */
|
|
23
|
-
/** @type {import('react').MutableRefObject<T>} */ ( ref ).current =
|
|
23
|
+
/** @type {import('react').MutableRefObject<T>} */ ( ref ).current =
|
|
24
|
+
value;
|
|
24
25
|
/* eslint-enable jsdoc/no-undefined-types */
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -25,11 +25,10 @@ import { useEffect } from '@wordpress/element';
|
|
|
25
25
|
* @return {import('lodash').DebouncedFunc<TFunc>} Throttled function.
|
|
26
26
|
*/
|
|
27
27
|
export default function useThrottle( fn, wait, options ) {
|
|
28
|
-
const throttled = useMemoOne(
|
|
29
|
-
fn,
|
|
30
|
-
wait,
|
|
31
|
-
|
|
32
|
-
] );
|
|
28
|
+
const throttled = useMemoOne(
|
|
29
|
+
() => throttle( fn, wait, options ),
|
|
30
|
+
[ fn, wait, options ]
|
|
31
|
+
);
|
|
33
32
|
useEffect( () => () => throttled.cancel(), [ throttled ] );
|
|
34
33
|
return throttled;
|
|
35
34
|
}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
export
|
|
1
|
+
// The `createHigherOrderComponent` helper and helper types.
|
|
2
|
+
export * from './utils/create-higher-order-component';
|
|
3
3
|
|
|
4
4
|
// Compose helper (aliased flowRight from Lodash)
|
|
5
5
|
export { default as compose } from './higher-order/compose';
|
package/src/index.native.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
export
|
|
1
|
+
// The `createHigherOrderComponent` helper and helper types.
|
|
2
|
+
export * from './utils/create-higher-order-component';
|
|
3
3
|
|
|
4
4
|
// Compose helper (aliased flowRight from Lodash)
|
|
5
5
|
export { default as compose } from './higher-order/compose';
|
|
@@ -4,22 +4,13 @@
|
|
|
4
4
|
import { camelCase, upperFirst } from 'lodash';
|
|
5
5
|
import type { ComponentType } from 'react';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* simply modifies the internals.
|
|
15
|
-
*/
|
|
16
|
-
export type HigherOrderComponent< HOCProps extends Record< string, any > > = <
|
|
17
|
-
InnerProps extends HOCProps
|
|
18
|
-
>(
|
|
19
|
-
Inner: ComponentType< InnerProps >
|
|
20
|
-
) => {} extends HOCProps
|
|
21
|
-
? ComponentType< InnerProps >
|
|
22
|
-
: ComponentType< Omit< InnerProps, keyof HOCProps > >;
|
|
7
|
+
type GetProps< C > = C extends ComponentType< infer P > ? P : never;
|
|
8
|
+
|
|
9
|
+
export type WithoutInjectedProps< C, I > = Omit< GetProps< C >, keyof I >;
|
|
10
|
+
|
|
11
|
+
export type WithInjectedProps< C, I > = ComponentType<
|
|
12
|
+
WithoutInjectedProps< C, I > & I
|
|
13
|
+
>;
|
|
23
14
|
|
|
24
15
|
/**
|
|
25
16
|
* Given a function mapping a component to an enhanced component and modifier
|
|
@@ -30,19 +21,31 @@ export type HigherOrderComponent< HOCProps extends Record< string, any > > = <
|
|
|
30
21
|
*
|
|
31
22
|
* @return Component class with generated display name assigned.
|
|
32
23
|
*/
|
|
33
|
-
function createHigherOrderComponent<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
) => {
|
|
24
|
+
export function createHigherOrderComponent<
|
|
25
|
+
TInner extends ComponentType< any >,
|
|
26
|
+
TOuter extends ComponentType< any >
|
|
27
|
+
>( mapComponent: ( Inner: TInner ) => TOuter, modifierName: string ) {
|
|
28
|
+
return ( Inner: TInner ) => {
|
|
39
29
|
const Outer = mapComponent( Inner );
|
|
40
|
-
|
|
41
|
-
Outer.displayName = `${ upperFirst(
|
|
42
|
-
camelCase( modifierName )
|
|
43
|
-
) }(${ displayName })`;
|
|
30
|
+
Outer.displayName = hocName( modifierName, Inner );
|
|
44
31
|
return Outer;
|
|
45
32
|
};
|
|
46
33
|
}
|
|
47
34
|
|
|
48
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Returns a displayName for a higher-order component, given a wrapper name.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* hocName( 'MyMemo', Widget ) === 'MyMemo(Widget)';
|
|
40
|
+
* hocName( 'MyMemo', <div /> ) === 'MyMemo(Component)';
|
|
41
|
+
*
|
|
42
|
+
* @param name Name assigned to higher-order component's wrapper component.
|
|
43
|
+
* @param Inner Wrapped component inside higher-order component.
|
|
44
|
+
* @return Wrapped name of higher-order component.
|
|
45
|
+
*/
|
|
46
|
+
const hocName = ( name: string, Inner: ComponentType< any > ) => {
|
|
47
|
+
const inner = Inner.displayName || Inner.name || 'Component';
|
|
48
|
+
const outer = upperFirst( camelCase( name ) );
|
|
49
|
+
|
|
50
|
+
return `${ outer }(${ inner })`;
|
|
51
|
+
};
|
|
@@ -6,7 +6,7 @@ import { Component } from '@wordpress/element';
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
|
-
import createHigherOrderComponent from '../';
|
|
9
|
+
import { createHigherOrderComponent } from '../';
|
|
10
10
|
|
|
11
11
|
describe( 'createHigherOrderComponent', () => {
|
|
12
12
|
it( 'should use default name for anonymous function', () => {
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"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.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.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.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.es2020.bigint.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.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.esnext.intl.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","./src/utils/create-higher-order-component/index.ts","./src/higher-order/compose.ts","./src/higher-order/if-condition/index.tsx","../is-shallow-equal/build-types/objects.d.ts","../is-shallow-equal/build-types/arrays.d.ts","../is-shallow-equal/build-types/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react-dom/index.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/higher-order/pure/index.tsx","../../node_modules/utility-types/dist/aliases-and-guards.d.ts","../../node_modules/utility-types/dist/mapped-types.d.ts","../../node_modules/utility-types/dist/utility-types.d.ts","../../node_modules/utility-types/dist/functional-helpers.d.ts","../../node_modules/utility-types/dist/index.d.ts","../deprecated/build-types/index.d.ts","./src/higher-order/with-global-events/listener.js","./src/higher-order/with-global-events/index.js","./src/hooks/use-instance-id/index.js","./src/higher-order/with-instance-id/index.tsx","./src/higher-order/with-safe-timeout/index.tsx","./src/higher-order/with-state/index.js","../keycodes/build-types/index.d.ts","../dom/build-types/dom/compute-caret-rect.d.ts","../dom/build-types/dom/document-has-text-selection.d.ts","../dom/build-types/dom/document-has-uncollapsed-selection.d.ts","../dom/build-types/dom/document-has-selection.d.ts","../dom/build-types/dom/get-rectangle-from-range.d.ts","../dom/build-types/dom/get-scroll-container.d.ts","../dom/build-types/dom/get-offset-parent.d.ts","../dom/build-types/dom/is-entirely-selected.d.ts","../dom/build-types/dom/is-form-element.d.ts","../dom/build-types/dom/is-horizontal-edge.d.ts","../dom/build-types/dom/is-number-input.d.ts","../dom/build-types/dom/is-text-field.d.ts","../dom/build-types/dom/is-vertical-edge.d.ts","../dom/build-types/dom/place-caret-at-horizontal-edge.d.ts","../dom/build-types/dom/place-caret-at-vertical-edge.d.ts","../dom/build-types/dom/replace.d.ts","../dom/build-types/dom/remove.d.ts","../dom/build-types/dom/insert-after.d.ts","../dom/build-types/dom/unwrap.d.ts","../dom/build-types/dom/replace-tag.d.ts","../dom/build-types/dom/wrap.d.ts","../dom/build-types/dom/strip-html.d.ts","../dom/build-types/dom/is-empty.d.ts","../dom/build-types/dom/clean-node-list.d.ts","../dom/build-types/dom/remove-invalid-html.d.ts","../dom/build-types/dom/is-rtl.d.ts","../dom/build-types/dom/safe-html.d.ts","../dom/build-types/dom/index.d.ts","../dom/build-types/phrasing-content.d.ts","../dom/build-types/data-transfer.d.ts","../dom/build-types/focusable.d.ts","../dom/build-types/tabbable.d.ts","../dom/build-types/index.d.ts","./src/hooks/use-ref-effect/index.ts","./src/hooks/use-constrained-tabbing/index.js","../../node_modules/clipboard/src/clipboard.d.ts","./src/hooks/use-copy-on-click/index.js","./src/hooks/use-copy-to-clipboard/index.js","./src/hooks/use-focus-on-mount/index.js","./src/hooks/use-focus-return/index.js","./src/hooks/use-focus-outside/index.js","./src/hooks/use-merge-refs/index.js","./src/hooks/use-dialog/index.js","./src/hooks/use-disabled/index.js","./src/hooks/use-isomorphic-layout-effect/index.js","./src/hooks/use-dragging/index.js","../../node_modules/@types/mousetrap/index.d.ts","../../node_modules/@types/mousetrap/plugins/global-bind/mousetrap-global-bind.d.ts","./src/hooks/use-keyboard-shortcut/index.js","./src/hooks/use-media-query/index.js","./src/hooks/use-previous/index.ts","./src/hooks/use-reduced-motion/index.js","./src/hooks/use-viewport-match/index.js","./src/hooks/use-resize-observer/index.tsx","../priority-queue/build-types/index.d.ts","./src/hooks/use-async-list/index.ts","./src/hooks/use-warn-on-change/index.js","../../node_modules/use-memo-one/index.d.ts","./src/hooks/use-debounce/index.js","./src/hooks/use-throttle/index.js","./src/hooks/use-drop-zone/index.js","./src/hooks/use-focusable-iframe/index.js","./src/hooks/use-fixed-window-list/index.js","./src/index.js","../../typings/gutenberg-env/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},"e630cc9d4ff48793647b1de978ec0d4257a8a2d1c88cd0b0742dd119c128e495","69b10db64ffa3da633ed87c4287bf34639c09e9fd7e9253b865b68a778ad59a3","b86f97467ecbdc4fa41019031ba789ad562b4710ba771ac0a756d1d843e4bcc2","5190f1a110a789c2f8ed8dcf2da6ce122dcb74249d0c01d19d1ed0b1c6bb02a1","3650bbe137c9c44bc6b8f44a56353b00eba9654e41a9355e6228f7f0f464c648","9c4f32d2fa2b6efeed4f9fbd98254121b17982110b48edcede96e2dc2af0894d","e59d00012fb20e6746def2f4bc94650526aa6c574c49ad6a50a992f61a3ee675","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526","45a63e17814c570ea59407f231ef9c561510bd6edb36f17479b09b44619496c6","5d7018910750d9cb4a912577ad2951fc3fad83c30d637689b69ffc6bbb0c9f5a","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","d7a53306f1683ff923002add80baf6a8b54fe9bfc1eb2b2dd77b71234cfe7330","bd0d80db12ef1aceefc4f9d3eb88517b9634fa747ae8475981da8655292feab8","55e68fb1618e3f55f7866b8c8415152159309a14b716370081ab0b7af96d876e","bf0491af2455f92282b61807be2be6e7ad7d532e47fac7b698019d3617c28ff7","5d874fb879ab8601c02549817dceb2d0a30729cb7e161625dd6f819bbff1ec0b","ee551a880882770c4f56a0964a9767c9feafe497a5be52652527d098c88d85cb","b192606574769a5566620f9bf19358a3994bc2726ecdeaad9c66f3333b2687c8","685c1e09dc780ec54927eb79661f631c10753d9dd36063994c35df72d97ec32c","fc6f916d76818c8fff04ca01843162618f1d3243530306d72dc61380be0df018","97d817c482aed9bfe6fa9a5d4ebf1b155b5d9435233a983d1afc66096babf7fa","4be2d89e567e49b6a24576615373f9ded22a1206c0481df3604c335e30c9c1bc","9560f634fc3eb4fa49b5fba027a555ba6170a2fc6549c66a80642affd742510e","1110671ef0c9bed54246577aea5c934bc47fa382c554a3e0a79d03da5a65a3ad","f8c1fc8d1d92c7b953cf047a994edb35ed08a0a54ab4daefa8996944689d0c9d","cbf4ee77c80de53d71a1d076ea25eddd23541685119a67c43bd4aeaad8533b1f","215f6d27f88aeaa56a4e0fe358a6fe3b8b5f7c76a2f83663035028b0c2595b1f","f8d84deeb6367b306c78f83111f36b14a7cb786af0c3a93168ffc97a2e0916c9","c307c0c1d2a162347fe19da27d37ee9f333617a23686649acbe4190848225970","ed29e483e8f02b00928f055ff2ba529f951464fb8fd7d1c7f77ea851b4e56039","fe43e4fd566293aee946e5db5b055db1215602498d315e468c6adaf1e6917fb4","ea912b91fed2f873b87e24180399baad37c43019b6f51b210e1d9f1d1d0135ba","a1cd2b1943db96616abf3a3f939dfd0eb69fab8149725d195a8acc7f5672a1f9","ddf5e2dd1897b3271acd68a587d43996e18c63ccc51b17f9149763a7d4bbadb7","1466691ae57846e0280465b012fd01aed3c4a4e0b39fcc11276833fbfc72ade7","b3ceffa2a65a5d7a6f0d6daf429d23dd301df58718ad07e397bfa28f7d8a2688","cfa03019dd5cdd18ff1b5f00b3cb37ac762faf9eca2e86ea2c718502285cf67b","4d8d7075a3381162b4ae5147f84b4d2a2ae49398d98bef7c4437b8db0fefb194","a8b1a9f91ecb89faabb130af767e007ee28ac6ca794565d856759bb87e42feb1","1b1c43c378278f5dfea558337b0e3d57944a806eb4f55330baba592967253350","5ad070af2f7e4b7a676a63137c6a6cf670144ee5f23a9a30b21c19e70bb077f3","df060b3639c427e1c09bcf5cc14975f00b296e53192c710ea76e4a658a382aa0","4dd037aee1fed84d54490818e9a32d12e3e2f75d1dd9816d25fb9a0ecacee3b9","ca84eb7ffe779cb8812ee0a6aa151adac3dd25c4dc877767f37d079e5b62151f","f1d5239e0cdfb4ddd24a47727b88871802d3d2b3fda70229b158525753ad643e","af89d09746be737e24c50de49f035f3afea14c11be30ad5d2764d142daaa4078","5422948be7ac69dd13078af8ce2a8d9ea4d79eb510bfc54b75586573185183f9","246fc68fbf5c3ae2fded7eebcc38e6c5bb0f2cb796096916d0e65505cfbe850f","fc35e9bf454dcd7c42bab9e51bdedd4c9a5662b8d9964b1204913e268cb1fe6f","6e278ba8dbcf2617a2c5f5805e3addd1cf1c35b75b7dde3cbdabbccbf926b6fe","a2e36dad616090f5bcb99c4491b8b34bf8f2b5bf2fdcd6b5a43ddfd23f1b8433","c9d56f52ca68c2c86ec5ba05d927ef3892dca4923bd3cebe6593ebbcdd7e70c3","419dd7c5f46e04ddc2a390070fe19423200334f464bcd41a8bac56007127a13d","067b19c3d1fde05a39e5b769cbb5f44e0f6cf201f52fa2cafedc3943ea2e9052","e3ea09f9ea097b88c98df19c52694ac83daab0692e90cea9cf3faff00087899f","02e1dfd21586ad4379dc0d0ab88283694734f786ed4dcffaf5fbe25b23cd4b62","544b4da7754bbf07f95644d0bf4fdc791e5a60836dda88a317127a083dee9205","4a43623f49489a0e0359e905dc2eaeb88c9bc5dce62819b9c04c8c60d79d2782","82e37f3013111a0a7abf743e89b074261bb92655bea624bb07ac77c6f0a94657","0529cc464f3dcf6322b23f37cb2a35bcc52baccb9afe128b38485cda9ea5db7d","d7865f701e0b27e883babea23a4aa1d1a8f37ccc502f7834b81d117401d689f4","2290ccf854da4cabed41ff4013869e463b16772b3f16ae308e382f91d516c895","198ebdc9a229972b281bb98bc86528dbbe00a91f6fd7b1a2d987f0f3f52157d8","50c61f235257b1c9068c41a5a50baeb4274ea5dfc07d2f86c4032617e30d0732","b2f5779995addb268ede0af28f431d3496b482f1f41debf05b89e063e55ff366","5e34bcdfc35d0c41091a22fe4c3ff84d219cc6b34d2af52c17a3ab9ddf6c757d","be8b993a2eebe3915c6aa0216c1c33ffc768f76ac12347ed3ba4c012c595b64c","07dc58e23bdf7b870e57039c95ad2b841772034d247b469d1db6d062b225e658","b25162b7e96edd069a91c14f0e39a76de4a709ccbda59dfda16740e3d23b4b76","98d019534dd7c963b013eed9a2a2e8a96618e70a40730f6920614be6d410ef80","314f946c60be58c8783f62d7e635ed6a84200f49944818594e349e405b6c69c5","96520a873073a2f39f922d0a422498cdcc28be9066a769000cdd07ecaba7b645","135aa6d18002bfec723f8697aa80a59648cf0582752d5e089b6eb0770b63a02d","bf6d3e315df1b10ee43c4862ea3db487ededb25246ab428e8ed1fb048ef719f6","831d99b85c6ced631649a70014e1288d3f927fa262e4009ba1fbcd11b965ce58","38fef887c5b2cae9d244172fe72957e61c3393bacc2be3ae5e2c1bf1e8a69e71","e064325c76ef07fec4cd69a91dabe717fae011bba5e15d81a2486ce25e80a91e","914d7cdcd8c7ebff500b43e8a878164ef0f93168eea0e5246747484a160d730b",{"version":"4169be501cd57005d1c910fa24cef850c2922596632b00096063f58d649ba85a","affectsGlobalScope":true},"abb6d9adcc79c591f712e79c55f769b48690ec66a55b6f6189569a0d357c7e58","e7669752758ae96e591040a264669535d7e65a8ce01f86812211fe39dc7bef6c","8ebd5899eefab0ba9bb82ae4cdd18aca44564a25cebfa51ea5d92db4252b49dd","62540abf0bac8bf8c13c183db0457c5495a2bdad157f9eb03916c3953feb765e","8a126a8c4817c6365ffb7445acec8149af98848f032a9cfcabcfdb4265378617","87ac7ab11dcc72117e09c35493e19a0bdcf75ca611e48e3a81beebca9f3f04b5","99a0244daefbc026e6822c18165c0e63855bb038daca05d506442fc35a04227a","6dd661da9a47bde2190abb41b215af59eb3f5161ea91d827dc7192bb8d071273","10dd593394a526fe1cb261d8bff72357a05fd774d6a1552559e547fb52ab7cea","74784e022b34ce98b975c6a694b62555b6e7d1ada5023134aec8bdaef81c69b8",{"version":"f254c1abf6bb4c92633159831f924588908da902aa5e04ae45c39bd001f62e2e","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[45,47,48,49,50,51,52,53,54,55,56,57],[45,46,48,49,50,51,52,53,54,55,56,57],[46,47,48,49,50,51,52,53,54,55,56,57],[45,46,47,49,50,51,52,53,54,55,56,57],[45,46,47,48,50,51,52,53,54,55,56,57],[45,46,47,48,49,51,52,53,54,55,56,57],[45,46,47,48,49,50,52,53,54,55,56,57],[45,46,47,48,49,50,51,53,54,55,56,57],[45,46,47,48,49,50,51,52,54,55,56,57],[45,46,47,48,49,50,51,52,53,55,56,57],[45,46,47,48,49,50,51,52,53,54,56,57],[45,46,47,48,49,50,51,52,53,54,55,57],[45,46,47,48,49,50,51,52,53,54,55,56],[138],[62],[58,59,60,61],[79,80,81,82],[79],[80],[57],[63],[62,63,68,77],[57,63,77,84,85],[63,87],[57,62,63,77],[63,77,84],[77,146],[62,91,124,125],[62,77,84,127],[62,77,125,127],[57,77,149],[62,77,91,126,130,131,132,133],[57,62,124,125],[77,136],[62,77,125],[57,62,77,91,124],[62,77,124],[57,62,77],[62,77],[125],[77],[57,62,77,138,139],[141],[77,141],[142],[63,64,65,78,86,87,88,89,90,125,126,128,129,130,131,132,133,134,135,136,137,140,141,142,143,144,145,147,148,150,151,152,153,154],[57,62],[83],[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118],[115],[119,120,121,122,123],[69],[69,70,72,73,74,75,76],[71],[62,69],[66,67],[68]],"referencedMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[139,14],[71,15],[62,16],[83,17],[80,18],[81,19],[64,20],[65,21],[78,22],[86,23],[85,20],[88,24],[89,25],[90,26],[147,27],[126,28],[128,29],[129,30],[150,31],[134,32],[135,33],[137,34],[152,35],[154,36],[130,37],[132,38],[131,39],[153,40],[87,41],[136,41],[140,42],[141,41],[133,39],[142,41],[143,43],[125,39],[145,39],[151,31],[144,44],[148,45],[155,46],[63,47],[84,48],[119,49],[116,50],[124,51],[70,52],[77,53],[76,15],[72,54],[69,15],[75,55],[68,56],[66,57]],"exportedModulesMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[139,14],[71,15],[62,16],[83,17],[80,18],[81,19],[64,20],[65,21],[78,22],[86,23],[85,20],[88,24],[89,25],[90,26],[147,27],[126,28],[128,29],[129,30],[150,31],[134,32],[135,33],[137,34],[152,35],[154,36],[130,37],[132,38],[131,39],[153,40],[87,41],[136,41],[140,42],[141,41],[133,39],[142,41],[143,43],[125,39],[145,39],[151,31],[144,44],[148,45],[155,46],[63,47],[84,48],[119,49],[116,50],[124,51],[70,52],[77,53],[76,15],[72,54],[69,15],[75,55],[68,56],[66,57]],"semanticDiagnosticsPerFile":[46,47,45,48,49,50,51,52,53,54,55,56,57,138,139,60,71,58,62,59,61,127,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,149,79,82,83,80,81,64,65,78,86,85,88,89,90,147,126,128,129,150,134,135,137,152,154,130,132,131,153,87,136,140,141,133,142,143,125,145,151,144,148,155,63,84,121,115,92,95,93,94,98,96,97,119,109,114,99,100,101,102,117,103,104,105,106,116,108,111,107,118,113,110,112,122,124,120,123,70,77,74,76,72,69,75,73,67,68,66,91,146,156]},"version":"4.4.2"}
|
|
1
|
+
{"program":{"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.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.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.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.es2020.bigint.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.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.esnext.intl.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","./src/utils/create-higher-order-component/index.ts","./src/higher-order/compose.ts","./src/higher-order/if-condition/index.tsx","../is-shallow-equal/build-types/objects.d.ts","../is-shallow-equal/build-types/arrays.d.ts","../is-shallow-equal/build-types/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react-dom/index.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/higher-order/pure/index.tsx","../../node_modules/utility-types/dist/aliases-and-guards.d.ts","../../node_modules/utility-types/dist/mapped-types.d.ts","../../node_modules/utility-types/dist/utility-types.d.ts","../../node_modules/utility-types/dist/functional-helpers.d.ts","../../node_modules/utility-types/dist/index.d.ts","../deprecated/build-types/index.d.ts","./src/higher-order/with-global-events/listener.js","./src/higher-order/with-global-events/index.js","./src/hooks/use-instance-id/index.js","./src/higher-order/with-instance-id/index.tsx","./src/higher-order/with-safe-timeout/index.tsx","./src/higher-order/with-state/index.js","../keycodes/build-types/index.d.ts","../dom/build-types/dom/compute-caret-rect.d.ts","../dom/build-types/dom/document-has-text-selection.d.ts","../dom/build-types/dom/document-has-uncollapsed-selection.d.ts","../dom/build-types/dom/document-has-selection.d.ts","../dom/build-types/dom/get-rectangle-from-range.d.ts","../dom/build-types/dom/get-scroll-container.d.ts","../dom/build-types/dom/get-offset-parent.d.ts","../dom/build-types/dom/is-entirely-selected.d.ts","../dom/build-types/dom/is-form-element.d.ts","../dom/build-types/dom/is-horizontal-edge.d.ts","../dom/build-types/dom/is-number-input.d.ts","../dom/build-types/dom/is-text-field.d.ts","../dom/build-types/dom/is-vertical-edge.d.ts","../dom/build-types/dom/place-caret-at-horizontal-edge.d.ts","../dom/build-types/dom/place-caret-at-vertical-edge.d.ts","../dom/build-types/dom/replace.d.ts","../dom/build-types/dom/remove.d.ts","../dom/build-types/dom/insert-after.d.ts","../dom/build-types/dom/unwrap.d.ts","../dom/build-types/dom/replace-tag.d.ts","../dom/build-types/dom/wrap.d.ts","../dom/build-types/dom/strip-html.d.ts","../dom/build-types/dom/is-empty.d.ts","../dom/build-types/dom/clean-node-list.d.ts","../dom/build-types/dom/remove-invalid-html.d.ts","../dom/build-types/dom/is-rtl.d.ts","../dom/build-types/dom/safe-html.d.ts","../dom/build-types/dom/index.d.ts","../dom/build-types/phrasing-content.d.ts","../dom/build-types/data-transfer.d.ts","../dom/build-types/focusable.d.ts","../dom/build-types/tabbable.d.ts","../dom/build-types/index.d.ts","./src/hooks/use-ref-effect/index.ts","./src/hooks/use-constrained-tabbing/index.js","../../node_modules/clipboard/src/clipboard.d.ts","./src/hooks/use-copy-on-click/index.js","./src/hooks/use-copy-to-clipboard/index.js","./src/hooks/use-focus-on-mount/index.js","./src/hooks/use-focus-return/index.js","./src/hooks/use-focus-outside/index.js","./src/hooks/use-merge-refs/index.js","./src/hooks/use-dialog/index.js","./src/hooks/use-disabled/index.js","./src/hooks/use-isomorphic-layout-effect/index.js","./src/hooks/use-dragging/index.js","../../node_modules/@types/mousetrap/index.d.ts","../../node_modules/@types/mousetrap/plugins/global-bind/mousetrap-global-bind.d.ts","./src/hooks/use-keyboard-shortcut/index.js","./src/hooks/use-media-query/index.js","./src/hooks/use-previous/index.ts","./src/hooks/use-reduced-motion/index.js","./src/hooks/use-viewport-match/index.js","./src/hooks/use-resize-observer/index.tsx","../priority-queue/build-types/index.d.ts","./src/hooks/use-async-list/index.ts","./src/hooks/use-warn-on-change/index.js","../../node_modules/use-memo-one/index.d.ts","./src/hooks/use-debounce/index.js","./src/hooks/use-throttle/index.js","./src/hooks/use-drop-zone/index.js","./src/hooks/use-focusable-iframe/index.js","./src/hooks/use-fixed-window-list/index.js","./src/index.js","../../typings/gutenberg-env/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","438284c7c455a29b9c0e2d1e72abc62ee93d9a163029ffe918a34c5db3b92da2","0c75b204aed9cf6ff1c7b4bed87a3ece0d9d6fc857a6350c0c95ed0c38c814e8","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"1bc82f5b3bb93df76d19730c84467b0b346187198537135d63a672956f323720","affectsGlobalScope":true},"be3af1734bbc3e065406888b0c59d56031b240fd53a0d0f83228814ed4823ac2","69b10db64ffa3da633ed87c4287bf34639c09e9fd7e9253b865b68a778ad59a3","f9fd6e3ade5a1179d67ba174b2f4219ba5afa7c0b8817cd07e398f0ebccefbe7","5190f1a110a789c2f8ed8dcf2da6ce122dcb74249d0c01d19d1ed0b1c6bb02a1","3650bbe137c9c44bc6b8f44a56353b00eba9654e41a9355e6228f7f0f464c648","9c4f32d2fa2b6efeed4f9fbd98254121b17982110b48edcede96e2dc2af0894d","e59d00012fb20e6746def2f4bc94650526aa6c574c49ad6a50a992f61a3ee675","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526","45a63e17814c570ea59407f231ef9c561510bd6edb36f17479b09b44619496c6","5d7018910750d9cb4a912577ad2951fc3fad83c30d637689b69ffc6bbb0c9f5a","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","1dd3d421923d8f03af788abb7e9585e2cf2fe7365958e727928cbab8f691a9e8","bd0d80db12ef1aceefc4f9d3eb88517b9634fa747ae8475981da8655292feab8","55e68fb1618e3f55f7866b8c8415152159309a14b716370081ab0b7af96d876e","bf0491af2455f92282b61807be2be6e7ad7d532e47fac7b698019d3617c28ff7","5d874fb879ab8601c02549817dceb2d0a30729cb7e161625dd6f819bbff1ec0b","ee551a880882770c4f56a0964a9767c9feafe497a5be52652527d098c88d85cb","b192606574769a5566620f9bf19358a3994bc2726ecdeaad9c66f3333b2687c8","685c1e09dc780ec54927eb79661f631c10753d9dd36063994c35df72d97ec32c","32509a2b1458febe85d00a31b88195e88ca8c0fd4cc7b7e5dfa26acb7edbc1c6","97d817c482aed9bfe6fa9a5d4ebf1b155b5d9435233a983d1afc66096babf7fa","5cc991dfbc9af88d5fad5edf08593065d9eefea81cd07a8277b28198645db0b6","eadaf4831e8a1729c215f1d340d53954d80d72f4570acd303a640127217b51f7","04960fe91185fc317b9f8d2d2604b4547c8ea3ec49563062c28ae95c89e06e3a","f8c1fc8d1d92c7b953cf047a994edb35ed08a0a54ab4daefa8996944689d0c9d","cbf4ee77c80de53d71a1d076ea25eddd23541685119a67c43bd4aeaad8533b1f","215f6d27f88aeaa56a4e0fe358a6fe3b8b5f7c76a2f83663035028b0c2595b1f","f8d84deeb6367b306c78f83111f36b14a7cb786af0c3a93168ffc97a2e0916c9","c307c0c1d2a162347fe19da27d37ee9f333617a23686649acbe4190848225970","ed29e483e8f02b00928f055ff2ba529f951464fb8fd7d1c7f77ea851b4e56039","fe43e4fd566293aee946e5db5b055db1215602498d315e468c6adaf1e6917fb4","ea912b91fed2f873b87e24180399baad37c43019b6f51b210e1d9f1d1d0135ba","a1cd2b1943db96616abf3a3f939dfd0eb69fab8149725d195a8acc7f5672a1f9","ddf5e2dd1897b3271acd68a587d43996e18c63ccc51b17f9149763a7d4bbadb7","1466691ae57846e0280465b012fd01aed3c4a4e0b39fcc11276833fbfc72ade7","b3ceffa2a65a5d7a6f0d6daf429d23dd301df58718ad07e397bfa28f7d8a2688","cfa03019dd5cdd18ff1b5f00b3cb37ac762faf9eca2e86ea2c718502285cf67b","4d8d7075a3381162b4ae5147f84b4d2a2ae49398d98bef7c4437b8db0fefb194","a8b1a9f91ecb89faabb130af767e007ee28ac6ca794565d856759bb87e42feb1","1b1c43c378278f5dfea558337b0e3d57944a806eb4f55330baba592967253350","5ad070af2f7e4b7a676a63137c6a6cf670144ee5f23a9a30b21c19e70bb077f3","df060b3639c427e1c09bcf5cc14975f00b296e53192c710ea76e4a658a382aa0","4dd037aee1fed84d54490818e9a32d12e3e2f75d1dd9816d25fb9a0ecacee3b9","ca84eb7ffe779cb8812ee0a6aa151adac3dd25c4dc877767f37d079e5b62151f","f1d5239e0cdfb4ddd24a47727b88871802d3d2b3fda70229b158525753ad643e","af89d09746be737e24c50de49f035f3afea14c11be30ad5d2764d142daaa4078","5422948be7ac69dd13078af8ce2a8d9ea4d79eb510bfc54b75586573185183f9","246fc68fbf5c3ae2fded7eebcc38e6c5bb0f2cb796096916d0e65505cfbe850f","fc35e9bf454dcd7c42bab9e51bdedd4c9a5662b8d9964b1204913e268cb1fe6f","6e278ba8dbcf2617a2c5f5805e3addd1cf1c35b75b7dde3cbdabbccbf926b6fe","a2e36dad616090f5bcb99c4491b8b34bf8f2b5bf2fdcd6b5a43ddfd23f1b8433","c9d56f52ca68c2c86ec5ba05d927ef3892dca4923bd3cebe6593ebbcdd7e70c3","419dd7c5f46e04ddc2a390070fe19423200334f464bcd41a8bac56007127a13d","067b19c3d1fde05a39e5b769cbb5f44e0f6cf201f52fa2cafedc3943ea2e9052","e3ea09f9ea097b88c98df19c52694ac83daab0692e90cea9cf3faff00087899f","02e1dfd21586ad4379dc0d0ab88283694734f786ed4dcffaf5fbe25b23cd4b62","544b4da7754bbf07f95644d0bf4fdc791e5a60836dda88a317127a083dee9205","4a43623f49489a0e0359e905dc2eaeb88c9bc5dce62819b9c04c8c60d79d2782","82e37f3013111a0a7abf743e89b074261bb92655bea624bb07ac77c6f0a94657","0529cc464f3dcf6322b23f37cb2a35bcc52baccb9afe128b38485cda9ea5db7d","d7865f701e0b27e883babea23a4aa1d1a8f37ccc502f7834b81d117401d689f4","2290ccf854da4cabed41ff4013869e463b16772b3f16ae308e382f91d516c895","198ebdc9a229972b281bb98bc86528dbbe00a91f6fd7b1a2d987f0f3f52157d8","50c61f235257b1c9068c41a5a50baeb4274ea5dfc07d2f86c4032617e30d0732","bc4724a288bcb43fb7248fdc5dc371c3faf8fced20033e4bb75f4eb09cfdf01d","5e34bcdfc35d0c41091a22fe4c3ff84d219cc6b34d2af52c17a3ab9ddf6c757d","241cad5f02126b99157e1d67a2b6247b72eb999d06a3da864d6119686465411c","d87153e0f6b4d78bdd3c4c2c67468ee4b11f3f7c7f08bab7f7f3102101aa2100","c6ac00b4e98ebc24fb2f050866dd8b536a91932e9f6eefcadcc0387febb242e4","98d019534dd7c963b013eed9a2a2e8a96618e70a40730f6920614be6d410ef80","314f946c60be58c8783f62d7e635ed6a84200f49944818594e349e405b6c69c5","96520a873073a2f39f922d0a422498cdcc28be9066a769000cdd07ecaba7b645","135aa6d18002bfec723f8697aa80a59648cf0582752d5e089b6eb0770b63a02d","abe64c6e44fa806e8af0812d218c4d090b8fb86d11d998468993b3ec6bc9ac06","831d99b85c6ced631649a70014e1288d3f927fa262e4009ba1fbcd11b965ce58","38fef887c5b2cae9d244172fe72957e61c3393bacc2be3ae5e2c1bf1e8a69e71","e064325c76ef07fec4cd69a91dabe717fae011bba5e15d81a2486ce25e80a91e","914d7cdcd8c7ebff500b43e8a878164ef0f93168eea0e5246747484a160d730b",{"version":"4169be501cd57005d1c910fa24cef850c2922596632b00096063f58d649ba85a","affectsGlobalScope":true},"abb6d9adcc79c591f712e79c55f769b48690ec66a55b6f6189569a0d357c7e58","e7669752758ae96e591040a264669535d7e65a8ce01f86812211fe39dc7bef6c","8ebd5899eefab0ba9bb82ae4cdd18aca44564a25cebfa51ea5d92db4252b49dd","62540abf0bac8bf8c13c183db0457c5495a2bdad157f9eb03916c3953feb765e","a34cc5328cfcf036f54c00cde1dfd532eaffdaf677ac8fc1a1ef6b6204d637c5","41dad9ea3e8c5db37561ee6feb2acef59fa15a556900f547f63092511efdb759","99a0244daefbc026e6822c18165c0e63855bb038daca05d506442fc35a04227a","6dd661da9a47bde2190abb41b215af59eb3f5161ea91d827dc7192bb8d071273","10dd593394a526fe1cb261d8bff72357a05fd774d6a1552559e547fb52ab7cea","c49e6a27958e12a7f1ca716372d516c2b0493a0988aa43dcae421ec58d479a1e",{"version":"f254c1abf6bb4c92633159831f924588908da902aa5e04ae45c39bd001f62e2e","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[45,47,48,49,50,51,52,53,54,55,56,57],[45,46,48,49,50,51,52,53,54,55,56,57],[46,47,48,49,50,51,52,53,54,55,56,57],[45,46,47,49,50,51,52,53,54,55,56,57],[45,46,47,48,50,51,52,53,54,55,56,57],[45,46,47,48,49,51,52,53,54,55,56,57],[45,46,47,48,49,50,52,53,54,55,56,57],[45,46,47,48,49,50,51,53,54,55,56,57],[45,46,47,48,49,50,51,52,54,55,56,57],[45,46,47,48,49,50,51,52,53,55,56,57],[45,46,47,48,49,50,51,52,53,54,56,57],[45,46,47,48,49,50,51,52,53,54,55,57],[45,46,47,48,49,50,51,52,53,54,55,56],[138],[62],[58,59,60,61],[79,80,81,82],[79],[80],[57],[62,63],[62,63,68,77],[57,63,77,84,85],[63,87],[57,63,77],[63,77,84],[77,146],[62,91,124,125],[62,77,84,127],[62,77,125,127],[57,77,149],[62,77,91,126,130,131,132,133],[57,62,124,125],[77,136],[62,77,125],[57,62,77,91,124],[62,77,124],[57,62,77],[62,77],[125],[77],[57,62,77,138,139],[141],[77,141],[142],[63,64,65,78,86,87,88,89,90,125,126,128,129,130,131,132,133,134,135,136,137,140,141,142,143,144,145,147,148,150,151,152,153,154],[57,62],[83],[92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118],[115],[119,120,121,122,123],[69],[69,70,72,73,74,75,76],[71],[62,69],[66,67],[68]],"referencedMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[139,14],[71,15],[62,16],[83,17],[80,18],[81,19],[64,20],[65,21],[78,22],[86,23],[85,20],[88,24],[89,25],[90,26],[147,27],[126,28],[128,29],[129,30],[150,31],[134,32],[135,33],[137,34],[152,35],[154,36],[130,37],[132,38],[131,39],[153,40],[87,41],[136,41],[140,42],[141,41],[133,39],[142,41],[143,43],[125,39],[145,39],[151,31],[144,44],[148,45],[155,46],[63,47],[84,48],[119,49],[116,50],[124,51],[70,52],[77,53],[76,15],[72,54],[69,15],[75,55],[68,56],[66,57]],"exportedModulesMap":[[46,1],[47,2],[45,3],[48,4],[49,5],[50,6],[51,7],[52,8],[53,9],[54,10],[55,11],[56,12],[57,13],[139,14],[71,15],[62,16],[83,17],[80,18],[81,19],[64,20],[65,21],[78,22],[86,23],[85,20],[88,24],[89,25],[90,26],[147,27],[126,28],[128,29],[129,30],[150,31],[134,32],[135,33],[137,34],[152,35],[154,36],[130,37],[132,38],[131,39],[153,40],[87,41],[136,41],[140,42],[141,41],[133,39],[142,41],[143,43],[125,39],[145,39],[151,31],[144,44],[148,45],[155,46],[63,47],[84,48],[119,49],[116,50],[124,51],[70,52],[77,53],[76,15],[72,54],[69,15],[75,55],[68,56],[66,57]],"semanticDiagnosticsPerFile":[46,47,45,48,49,50,51,52,53,54,55,56,57,138,139,60,71,58,62,59,61,127,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,149,79,82,83,80,81,64,65,78,86,85,88,89,90,147,126,128,129,150,134,135,137,152,154,130,132,131,153,87,136,140,141,133,142,143,125,145,151,144,148,155,63,84,121,115,92,95,93,94,98,96,97,119,109,114,99,100,101,102,117,103,104,105,106,116,108,111,107,118,113,110,112,122,124,120,123,70,77,74,76,72,69,75,73,67,68,66,91,146,156]},"version":"4.4.2"}
|