diff --git a/fixtures/devtools/shell/app/DeeplyNestedComponents/index.js b/packages/react-devtools-shell/app/DeeplyNestedComponents/index.js similarity index 81% rename from fixtures/devtools/shell/app/DeeplyNestedComponents/index.js rename to packages/react-devtools-shell/app/DeeplyNestedComponents/index.js index 16afd4cec8596..eaf22f4e48f16 100644 --- a/fixtures/devtools/shell/app/DeeplyNestedComponents/index.js +++ b/packages/react-devtools-shell/app/DeeplyNestedComponents/index.js @@ -6,8 +6,11 @@ function wrapWithHoc(Component, index) { function HOC() { return ; } - HOC.displayName = `withHoc${index}(${Component.displayName || - Component.name})`; + + // $FlowFixMe + const displayName = Component.displayName || Component.name; + + HOC.displayName = `withHoc${index}(${displayName})`; return HOC; } diff --git a/fixtures/devtools/shell/app/EditableProps/index.js b/packages/react-devtools-shell/app/EditableProps/index.js similarity index 100% rename from fixtures/devtools/shell/app/EditableProps/index.js rename to packages/react-devtools-shell/app/EditableProps/index.js diff --git a/fixtures/devtools/shell/app/ElementTypes/index.js b/packages/react-devtools-shell/app/ElementTypes/index.js similarity index 100% rename from fixtures/devtools/shell/app/ElementTypes/index.js rename to packages/react-devtools-shell/app/ElementTypes/index.js diff --git a/fixtures/devtools/shell/app/Hydration/index.js b/packages/react-devtools-shell/app/Hydration/index.js similarity index 100% rename from fixtures/devtools/shell/app/Hydration/index.js rename to packages/react-devtools-shell/app/Hydration/index.js diff --git a/fixtures/devtools/shell/app/Iframe/index.js b/packages/react-devtools-shell/app/Iframe/index.js similarity index 100% rename from fixtures/devtools/shell/app/Iframe/index.js rename to packages/react-devtools-shell/app/Iframe/index.js diff --git a/fixtures/devtools/shell/app/InspectableElements/Contexts.js b/packages/react-devtools-shell/app/InspectableElements/Contexts.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/Contexts.js rename to packages/react-devtools-shell/app/InspectableElements/Contexts.js diff --git a/fixtures/devtools/shell/app/InspectableElements/CustomHooks.js b/packages/react-devtools-shell/app/InspectableElements/CustomHooks.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/CustomHooks.js rename to packages/react-devtools-shell/app/InspectableElements/CustomHooks.js diff --git a/fixtures/devtools/shell/app/InspectableElements/CustomObject.js b/packages/react-devtools-shell/app/InspectableElements/CustomObject.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/CustomObject.js rename to packages/react-devtools-shell/app/InspectableElements/CustomObject.js diff --git a/fixtures/devtools/shell/app/InspectableElements/InspectableElements.js b/packages/react-devtools-shell/app/InspectableElements/InspectableElements.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/InspectableElements.js rename to packages/react-devtools-shell/app/InspectableElements/InspectableElements.js diff --git a/fixtures/devtools/shell/app/InspectableElements/NestedProps.js b/packages/react-devtools-shell/app/InspectableElements/NestedProps.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/NestedProps.js rename to packages/react-devtools-shell/app/InspectableElements/NestedProps.js diff --git a/fixtures/devtools/shell/app/InspectableElements/SimpleValues.js b/packages/react-devtools-shell/app/InspectableElements/SimpleValues.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/SimpleValues.js rename to packages/react-devtools-shell/app/InspectableElements/SimpleValues.js diff --git a/fixtures/devtools/shell/app/InspectableElements/index.js b/packages/react-devtools-shell/app/InspectableElements/index.js similarity index 100% rename from fixtures/devtools/shell/app/InspectableElements/index.js rename to packages/react-devtools-shell/app/InspectableElements/index.js diff --git a/fixtures/devtools/shell/app/InteractionTracing/index.js b/packages/react-devtools-shell/app/InteractionTracing/index.js similarity index 100% rename from fixtures/devtools/shell/app/InteractionTracing/index.js rename to packages/react-devtools-shell/app/InteractionTracing/index.js diff --git a/fixtures/devtools/shell/app/PriorityLevels/index.js b/packages/react-devtools-shell/app/PriorityLevels/index.js similarity index 100% rename from fixtures/devtools/shell/app/PriorityLevels/index.js rename to packages/react-devtools-shell/app/PriorityLevels/index.js diff --git a/fixtures/devtools/shell/app/ReactNativeWeb/index.js b/packages/react-devtools-shell/app/ReactNativeWeb/index.js similarity index 100% rename from fixtures/devtools/shell/app/ReactNativeWeb/index.js rename to packages/react-devtools-shell/app/ReactNativeWeb/index.js diff --git a/fixtures/devtools/shell/app/SuspenseTree/index.js b/packages/react-devtools-shell/app/SuspenseTree/index.js similarity index 100% rename from fixtures/devtools/shell/app/SuspenseTree/index.js rename to packages/react-devtools-shell/app/SuspenseTree/index.js diff --git a/fixtures/devtools/shell/app/ToDoList/List.css b/packages/react-devtools-shell/app/ToDoList/List.css similarity index 100% rename from fixtures/devtools/shell/app/ToDoList/List.css rename to packages/react-devtools-shell/app/ToDoList/List.css diff --git a/fixtures/devtools/shell/app/ToDoList/List.js b/packages/react-devtools-shell/app/ToDoList/List.js similarity index 100% rename from fixtures/devtools/shell/app/ToDoList/List.js rename to packages/react-devtools-shell/app/ToDoList/List.js diff --git a/fixtures/devtools/shell/app/ToDoList/ListItem.css b/packages/react-devtools-shell/app/ToDoList/ListItem.css similarity index 100% rename from fixtures/devtools/shell/app/ToDoList/ListItem.css rename to packages/react-devtools-shell/app/ToDoList/ListItem.css diff --git a/fixtures/devtools/shell/app/ToDoList/ListItem.js b/packages/react-devtools-shell/app/ToDoList/ListItem.js similarity index 100% rename from fixtures/devtools/shell/app/ToDoList/ListItem.js rename to packages/react-devtools-shell/app/ToDoList/ListItem.js diff --git a/fixtures/devtools/shell/app/ToDoList/index.js b/packages/react-devtools-shell/app/ToDoList/index.js similarity index 100% rename from fixtures/devtools/shell/app/ToDoList/index.js rename to packages/react-devtools-shell/app/ToDoList/index.js diff --git a/fixtures/devtools/shell/app/Toggle/index.js b/packages/react-devtools-shell/app/Toggle/index.js similarity index 100% rename from fixtures/devtools/shell/app/Toggle/index.js rename to packages/react-devtools-shell/app/Toggle/index.js diff --git a/fixtures/devtools/shell/app/console.js b/packages/react-devtools-shell/app/console.js similarity index 100% rename from fixtures/devtools/shell/app/console.js rename to packages/react-devtools-shell/app/console.js diff --git a/fixtures/devtools/shell/app/index.js b/packages/react-devtools-shell/app/index.js similarity index 100% rename from fixtures/devtools/shell/app/index.js rename to packages/react-devtools-shell/app/index.js diff --git a/fixtures/devtools/shell/app/styles.css b/packages/react-devtools-shell/app/styles.css similarity index 100% rename from fixtures/devtools/shell/app/styles.css rename to packages/react-devtools-shell/app/styles.css diff --git a/fixtures/devtools/shell/index.html b/packages/react-devtools-shell/index.html similarity index 100% rename from fixtures/devtools/shell/index.html rename to packages/react-devtools-shell/index.html diff --git a/fixtures/devtools/shell/now.json b/packages/react-devtools-shell/now.json similarity index 100% rename from fixtures/devtools/shell/now.json rename to packages/react-devtools-shell/now.json diff --git a/packages/react-devtools-shell/package.json b/packages/react-devtools-shell/package.json new file mode 100644 index 0000000000000..1d3e473a1fb52 --- /dev/null +++ b/packages/react-devtools-shell/package.json @@ -0,0 +1,8 @@ +{ + "private": true, + "name": "react-devtools-shell", + "version": "0.0.0", + "dependencies": { + "react-native-web": "^0.11.5" + } +} diff --git a/fixtures/devtools/shell/src/devtools.js b/packages/react-devtools-shell/src/devtools.js similarity index 97% rename from fixtures/devtools/shell/src/devtools.js rename to packages/react-devtools-shell/src/devtools.js index 2b68c73344c4a..0f337793274fa 100644 --- a/fixtures/devtools/shell/src/devtools.js +++ b/packages/react-devtools-shell/src/devtools.js @@ -8,7 +8,7 @@ import { initialize as initializeBackend, } from 'react-devtools-inline/backend'; import {initialize as initializeFrontend} from 'react-devtools-inline/frontend'; -import {initDevTools} from 'src/devtools'; +import {initDevTools} from 'react-devtools-shared/src/devtools'; const iframe = ((document.getElementById('target'): any): HTMLIFrameElement); diff --git a/fixtures/devtools/shell/webpack.config.js b/packages/react-devtools-shell/webpack.config.js similarity index 100% rename from fixtures/devtools/shell/webpack.config.js rename to packages/react-devtools-shell/webpack.config.js diff --git a/yarn.lock b/yarn.lock index 5dcaac0211133..70c95032707f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -851,7 +851,7 @@ array-equal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" -array-find-index@^1.0.1: +array-find-index@^1.0.1, array-find-index@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= @@ -1962,6 +1962,14 @@ crypto-random-string@^1.0.0: resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= +css-in-js-utils@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/css-in-js-utils/-/css-in-js-utils-2.0.1.tgz#3b472b398787291b47cfe3e44fecfdd9e914ba99" + integrity sha512-PJF0SpJT+WdbVVt0AOYp9C8GnuruRlL/UFW7932nLWmFLQTaWEzTBQEx7/hn4BuV+WON75iAViSUJLiU3PKbpA== + dependencies: + hyphenate-style-name "^1.0.2" + isobject "^3.0.1" + cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": version "0.3.2" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" @@ -2025,6 +2033,11 @@ data-urls@^1.0.0: whatwg-mimetype "^2.0.0" whatwg-url "^6.4.0" +debounce@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + integrity sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg== + debug@2.6.9, debug@^2.1.2, debug@^2.1.3, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -2059,6 +2072,13 @@ decode-uri-component@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" +deep-assign@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/deep-assign/-/deep-assign-3.0.0.tgz#c8e4c4d401cba25550a2f0f486a2e75bc5f219a2" + integrity sha512-YX2i9XjJ7h5q/aQ/IM9PEwEnDqETAIYbggmdDB3HLTlSgo1CxPsj6pvhPG68rq6SVE0+p+6Ywsm5fTYNrYtBWw== + dependencies: + is-obj "^1.0.0" + deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -2659,6 +2679,11 @@ fb-watchman@^2.0.0: dependencies: bser "^2.0.0" +fbjs-css-vars@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz#216551136ae02fe255932c3ec8775f18e2c078b8" + integrity sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ== + fbjs-scripts@^0.8.3: version "0.8.3" resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.8.3.tgz#b854de7a11e62a37f72dab9aaf4d9b53c4a03174" @@ -2686,6 +2711,20 @@ fbjs@^0.8.9: setimmediate "^1.0.5" ua-parser-js "^0.7.9" +fbjs@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a" + integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA== + dependencies: + core-js "^2.4.1" + fbjs-css-vars "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + fd-slicer@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65" @@ -3274,6 +3313,11 @@ hyperlinker@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/hyperlinker/-/hyperlinker-1.0.0.tgz#23dc9e38a206b208ee49bc2d6c8ef47027df0c0e" +hyphenate-style-name@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.3.tgz#097bb7fa0b8f1a9cf0bd5c734cf95899981a9b48" + integrity sha512-EcuixamT82oplpoJ2XU4pDtKGWQ7b00CD9f1ug9IaQ3p1bkHMiKCZ9ut9QDI6qsa6cpUuB+A/I+zLtdNK4n2DQ== + iconv-lite@0.4.19: version "0.4.19" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" @@ -3359,6 +3403,13 @@ ini@^1.3.4, ini@~1.3.0: version "1.3.5" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" +inline-style-prefixer@^5.0.3: + version "5.1.0" + resolved "https://registry.yarnpkg.com/inline-style-prefixer/-/inline-style-prefixer-5.1.0.tgz#cb63195f9456dcda25cf59743e45c4d9815b0811" + integrity sha512-giteQHPMrApQOSjNSjteO5ZGSGMRf9gas14fRy2lg2buSc1nRnj6o6xuNds5cMTKrkncyrTu3gJn/yflFMVdmg== + dependencies: + css-in-js-utils "^2.0.0" + inquirer@^6.4.1: version "6.5.0" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" @@ -4706,6 +4757,11 @@ nopt@^4.0.1: abbrev "1" osenv "^0.1.4" +normalize-css-color@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/normalize-css-color/-/normalize-css-color-1.0.2.tgz#02991e97cccec6623fe573afbbf0de6a1f3e9f8d" + integrity sha1-Apkel8zOxmI/5XOvu/Deah8+n40= + normalize-package-data@^2.3.2: version "2.4.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" @@ -5185,14 +5241,7 @@ promise@^7.1.1: dependencies: asap "~2.0.3" -prop-types@^15.6.2: - version "15.6.2" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" - dependencies: - loose-envify "^1.3.1" - object-assign "^4.1.1" - -prop-types@^15.7.2: +prop-types@^15.6.0, prop-types@^15.7.2: version "15.7.2" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== @@ -5201,6 +5250,13 @@ prop-types@^15.7.2: object-assign "^4.1.1" react-is "^16.8.1" +prop-types@^15.6.2: + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" + dependencies: + loose-envify "^1.3.1" + object-assign "^4.1.1" + proxy-from-env@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" @@ -5280,6 +5336,27 @@ react-lifecycles-compat@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.2.tgz#7279047275bd727a912e25f734c0559527e84eff" +react-native-web@^0.11.5: + version "0.11.6" + resolved "https://registry.yarnpkg.com/react-native-web/-/react-native-web-0.11.6.tgz#7766c1550331c8724b2d5fe5d1b9ad83efe32c91" + integrity sha512-Hqf4mnvuuaEPzcnXyk3UkU2pX4L+UpUzFNakg4diiMq/+dCLDYTAJwQerC69YLoB7ItpWIby1LHUx0uVn3opzg== + dependencies: + array-find-index "^1.0.2" + create-react-class "^15.6.2" + debounce "^1.2.0" + deep-assign "^3.0.0" + fbjs "^1.0.0" + hyphenate-style-name "^1.0.2" + inline-style-prefixer "^5.0.3" + normalize-css-color "^1.0.2" + prop-types "^15.6.0" + react-timer-mixin "^0.13.4" + +react-timer-mixin@^0.13.4: + version "0.13.4" + resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.4.tgz#75a00c3c94c13abe29b43d63b4c65a88fc8264d3" + integrity sha512-4+ow23tp/Tv7hBM5Az5/Be/eKKF7DIvJ09voz5LyHGQaqqz9WV8YMs31eFvcYQs7d451LSg7kDJV70XYN/Ug/Q== + react-virtualized-auto-sizer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.2.tgz#a61dd4f756458bbf63bd895a92379f9b70f803bd" @@ -6343,6 +6420,11 @@ typescript@~1.8.10: version "1.8.10" resolved "https://registry.yarnpkg.com/typescript/-/typescript-1.8.10.tgz#b475d6e0dff0bf50f296e5ca6ef9fbb5c7320f1e" +ua-parser-js@^0.7.18: + version "0.7.20" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.20.tgz#7527178b82f6a62a0f243d1f94fd30e3e3c21098" + integrity sha512-8OaIKfzL5cpx8eCMAhhvTlft8GYF8b2eQr6JkCyVdrgjcytyOmPCXrqXFcUnhonRpLlh5yxEZVohm6mzaowUOw== + ua-parser-js@^0.7.9: version "0.7.18" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed"