Move out more ReactDOM FB shims (#9987)
* move out further ReactDOM shims from FB * fixed a typo
Dominic Gannaway committed
Jun 16, 2017 at 15:41 UTC
54e8478a3d0bccea957610c3f1c5f839954024cb
10 files changed
-181
scripts/rollup/shims/facebook-www/ReactDOMSelection.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule ReactDOMSelection
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDOMSelection;
scripts/rollup/shims/facebook-www/ReactInputSelection.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule ReactInputSelection
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactInputSelection;
scripts/rollup/shims/facebook-www/getEventCharCode.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule getEventCharCode
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getEventCharCode;
scripts/rollup/shims/facebook-www/getEventKey.js
deleted
-18
@@ -1,18 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule getEventKey
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getEventKey;
scripts/rollup/shims/facebook-www/getEventTarget.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule getEventTarget
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getEventTarget;
scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule getVendorPrefixedEventName
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getVendorPrefixedEventName;
scripts/rollup/shims/facebook-www/isEventSupported.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule isEventSupported
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.isEventSupported;
scripts/rollup/shims/facebook-www/setInnerHTML.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule setInnerHTML
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.setInnerHTML;
scripts/rollup/shims/facebook-www/setTextContent.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule setTextContent
10
- */
11
-
12
-'use strict';
13
-
14
-const {
15
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
-} = require('ReactDOM-fb');
17
-
18
-module.exports =
19
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.setTextContent;
src/fb/ReactDOMFiberFBEntry.js
-11
@@ -14,17 +14,6 @@ var ReactDOMFiber = require('ReactDOMFiberEntry');
14
Object.assign(
15
ReactDOMFiber.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16
{
17
- // These should be easy to copy into react_contrib and remove from here:
18
- getVendorPrefixedEventName: require('getVendorPrefixedEventName'),
19
- getEventCharCode: require('getEventCharCode'),
20
- getEventKey: require('getEventKey'),
21
- getEventTarget: require('getEventTarget'),
22
- isEventSupported: require('isEventSupported'),
23
- setInnerHTML: require('setInnerHTML'),
24
- setTextContent: require('setTextContent'),
25
- PooledClass: require('PooledClass'),
26
- ReactDOMSelection: require('ReactDOMSelection'),
27
- ReactInputSelection: require('ReactInputSelection'),
17
// These are real internal dependencies that are trickier to remove:
18
ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
19
ReactErrorUtils: require('ReactErrorUtils'),