├── .github ├── codeql │ └── codeql-config-template.yml ├── scripts │ └── list-dirs └── workflows │ └── code-scanning.yml ├── README.md ├── docs └── README.md ├── project-1 ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .github │ ├── CONTRIBUTING.md │ ├── lock.yml │ └── workflows │ │ └── tests.yml ├── .gitignore ├── .internal │ ├── Hash.js │ ├── ListCache.js │ ├── MapCache.js │ ├── SetCache.js │ ├── Stack.js │ ├── addMapEntry.js │ ├── addSetEntry.js │ ├── arrayEach.js │ ├── arrayEachRight.js │ ├── arrayIncludes.js │ ├── arrayIncludesWith.js │ ├── arrayLikeKeys.js │ ├── arrayReduce.js │ ├── arrayReduceRight.js │ ├── asciiSize.js │ ├── asciiToArray.js │ ├── assignMergeValue.js │ ├── assignValue.js │ ├── assocIndexOf.js │ ├── baseAssignValue.js │ ├── baseAt.js │ ├── baseClone.js │ ├── baseConforms.js │ ├── baseConformsTo.js │ ├── baseDifference.js │ ├── baseEach.js │ ├── baseEachRight.js │ ├── baseFindIndex.js │ ├── baseFindKey.js │ ├── baseFlatten.js │ ├── baseFor.js │ ├── baseForOwn.js │ ├── baseForOwnRight.js │ ├── baseForRight.js │ ├── baseGet.js │ ├── baseInRange.js │ ├── baseIndexOf.js │ ├── baseIndexOfWith.js │ ├── baseIntersection.js │ ├── baseIsEqual.js │ ├── baseIsEqualDeep.js │ ├── baseIsMatch.js │ ├── baseIsNaN.js │ ├── baseMatches.js │ ├── baseMatchesProperty.js │ ├── baseMerge.js │ ├── baseMergeDeep.js │ ├── baseOrderBy.js │ ├── basePick.js │ ├── basePickBy.js │ ├── baseProperty.js │ ├── basePropertyDeep.js │ ├── basePropertyOf.js │ ├── basePullAll.js │ ├── basePullAt.js │ ├── baseRange.js │ ├── baseReduce.js │ ├── baseSet.js │ ├── baseSortBy.js │ ├── baseSortedIndex.js │ ├── baseSortedIndexBy.js │ ├── baseSortedUniq.js │ ├── baseSum.js │ ├── baseToNumber.js │ ├── baseToString.js │ ├── baseUniq.js │ ├── baseUnset.js │ ├── baseUpdate.js │ ├── baseValues.js │ ├── baseWhile.js │ ├── baseXor.js │ ├── baseZipObject.js │ ├── cacheHas.js │ ├── castArrayLikeObject.js │ ├── castPath.js │ ├── castSlice.js │ ├── charsEndIndex.js │ ├── charsStartIndex.js │ ├── cloneArrayBuffer.js │ ├── cloneBuffer.js │ ├── cloneDataView.js │ ├── cloneRegExp.js │ ├── cloneSymbol.js │ ├── cloneTypedArray.js │ ├── compareAscending.js │ ├── compareMultiple.js │ ├── composeArgs.js │ ├── composeArgsRight.js │ ├── copyArray.js │ ├── copyObject.js │ ├── copySymbols.js │ ├── copySymbolsIn.js │ ├── createAssigner.js │ ├── createCaseFirst.js │ ├── createMathOperation.js │ ├── createPadding.js │ ├── createRange.js │ ├── createRound.js │ ├── createSet.js │ ├── customDefaultsMerge.js │ ├── deburrLetter.js │ ├── equalArrays.js │ ├── equalByTag.js │ ├── equalObjects.js │ ├── freeGlobal.js │ ├── getAllKeys.js │ ├── getAllKeysIn.js │ ├── getHolder.js │ ├── getMatchData.js │ ├── getSymbols.js │ ├── getSymbolsIn.js │ ├── getTag.js │ ├── hasUnicode.js │ ├── initCloneObject.js │ ├── isFlattenable.js │ ├── isIndex.js │ ├── isIterateeCall.js │ ├── isKey.js │ ├── isPrototype.js │ ├── isStrictComparable.js │ ├── iteratorToArray.js │ ├── mapToArray.js │ ├── matchesStrictComparable.js │ ├── memoizeCapped.js │ ├── metaMap.js │ ├── nodeTypes.js │ ├── parent.js │ ├── reEscape.js │ ├── reEvaluate.js │ ├── reInterpolate.js │ ├── root.js │ ├── setToArray.js │ ├── setToPairs.js │ ├── setToString.js │ ├── strictIndexOf.js │ ├── strictLastIndexOf.js │ ├── stringSize.js │ ├── stringToArray.js │ ├── stringToPath.js │ ├── toKey.js │ ├── unicodeSize.js │ ├── unicodeToArray.js │ └── unicodeWords.js ├── CHANGELOG ├── LICENSE ├── README.md ├── SECURITY.md ├── add.js ├── after.js ├── at.js ├── attempt.js ├── before.js ├── camelCase.js ├── capitalize.js ├── castArray.js ├── ceil.js ├── chunk.js ├── clamp.js ├── clone.js ├── cloneDeep.js ├── cloneDeepWith.js ├── cloneWith.js ├── compact.js ├── cond.js ├── conforms.js ├── conformsTo.js ├── countBy.js ├── create.js ├── debounce.js ├── deburr.js ├── defaultTo.js ├── defaultToAny.js ├── defaults.js ├── defaultsDeep.js ├── defer.js ├── delay.js ├── difference.js ├── differenceBy.js ├── differenceWith.js ├── divide.js ├── drop.js ├── dropRight.js ├── dropRightWhile.js ├── dropWhile.js ├── each.js ├── eachRight.js ├── endsWith.js ├── eq.js ├── eqDeep.js ├── escape.js ├── escapeRegExp.js ├── every.js ├── everyValue.js ├── filter.js ├── filterObject.js ├── findKey.js ├── findLast.js ├── findLastIndex.js ├── findLastKey.js ├── first.js ├── flatMap.js ├── flatMapDeep.js ├── flatMapDepth.js ├── flatten.js ├── flattenDeep.js ├── flattenDepth.js ├── flip.js ├── floor.js ├── flow.js ├── flowRight.js ├── forEach.js ├── forEachRight.js ├── forOwn.js ├── forOwnRight.js ├── fromEntries.js ├── functions.js ├── get.js ├── groupBy.js ├── gt.js ├── gte.js ├── has.js ├── hasIn.js ├── hasPath.js ├── hasPathIn.js ├── head.js ├── inRange.js ├── indexOf.js ├── initial.js ├── intersection.js ├── intersectionBy.js ├── intersectionWith.js ├── invert.js ├── invertBy.js ├── invoke.js ├── invokeMap.js ├── isArguments.js ├── isArrayBuffer.js ├── isArrayLike.js ├── isArrayLikeObject.js ├── isBoolean.js ├── isBuffer.js ├── isDate.js ├── isElement.js ├── isEmpty.js ├── isEqualWith.js ├── isError.js ├── isFunction.js ├── isLength.js ├── isMap.js ├── isMatch.js ├── isMatchWith.js ├── isNative.js ├── isNil.js ├── isNull.js ├── isNumber.js ├── isObject.js ├── isObjectLike.js ├── isPlainObject.js ├── isRegExp.js ├── isSet.js ├── isString.js ├── isSymbol.js ├── isTypedArray.js ├── isUndefined.js ├── isWeakMap.js ├── isWeakSet.js ├── kebabCase.js ├── keyBy.js ├── keys.js ├── keysIn.js ├── last.js ├── lastIndexOf.js ├── lowerCase.js ├── lowerFirst.js ├── lt.js ├── lte.js ├── map.js ├── mapKey.js ├── mapObject.js ├── mapValue.js ├── matches.js ├── matchesProperty.js ├── maxBy.js ├── mean.js ├── meanBy.js ├── memoize.js ├── merge.js ├── mergeWith.js ├── method.js ├── methodOf.js ├── minBy.js ├── multiply.js ├── negate.js ├── nth.js ├── nthArg.js ├── once.js ├── orderBy.js ├── over.js ├── overArgs.js ├── overEvery.js ├── overSome.js ├── package-lock.json ├── package.json ├── pad.js ├── padEnd.js ├── padStart.js ├── parseInt.js ├── partition.js ├── pick.js ├── pickBy.js ├── property.js ├── propertyOf.js ├── pull.js ├── pullAll.js ├── pullAllBy.js ├── pullAllWith.js ├── pullAt.js ├── random.js ├── range.js ├── rangeRight.js ├── reduce.js ├── reduceRight.js ├── reject.js ├── remove.js ├── repeat.js ├── replace.js ├── result.js ├── round.js ├── sample.js ├── sampleSize.js ├── set.js ├── setWith.js ├── shuffle.js ├── size.js ├── slice.js ├── snakeCase.js ├── some.js ├── someValue.js ├── sortedIndex.js ├── sortedIndexBy.js ├── sortedIndexOf.js ├── sortedLastIndex.js ├── sortedLastIndexBy.js ├── sortedLastIndexOf.js ├── sortedUniq.js ├── sortedUniqBy.js ├── split.js ├── startCase.js ├── startsWith.js ├── subtract.js ├── sum.js ├── sumBy.js ├── tail.js ├── take.js ├── takeRight.js ├── takeRightWhile.js ├── takeWhile.js ├── test │ ├── Arrays-category-methods.js │ ├── Strings-category-methods.test.js │ ├── __proto__-property-bugs.js │ ├── add.test.js │ ├── after.test.js │ ├── ary.js │ ├── assign-and-assignIn.js │ ├── assignIn.js │ ├── assignInWith.js │ ├── assignWith-and-assignInWith.js │ ├── at.test.js │ ├── attempt.test.js │ ├── basename.js │ ├── before.js │ ├── bind.js │ ├── bindAll.js │ ├── bindKey.js │ ├── camelCase.test.js │ ├── capitalize.test.js │ ├── case-methods.test.js │ ├── castArray.test.js │ ├── chain.js │ ├── chunk.test.js │ ├── clamp.js │ ├── clone-methods.js │ ├── compact.js │ ├── concat.js │ ├── cond.js │ ├── conforms-methods.js │ ├── conforms.js │ ├── constant.js │ ├── countBy.js │ ├── create.test.js │ ├── curry-methods.js │ ├── curry.js │ ├── curryRight.js │ ├── custom-_.iteratee-methods.js │ ├── debounce-and-throttle.js │ ├── debounce.test.js │ ├── deburr.test.js │ ├── defaultTo.test.js │ ├── defaults.test.js │ ├── defaultsDeep.js │ ├── defer.test.js │ ├── delay.js │ ├── difference-methods.js │ ├── differenceBy.js │ ├── differenceWith.test.js │ ├── divide.test.js │ ├── drop.test.js │ ├── dropRight.test.js │ ├── dropRightWhile.js │ ├── dropWhile.js │ ├── endsWith.test.js │ ├── eq.test.js │ ├── escape.test.js │ ├── escapeRegExp.test.js │ ├── every.js │ ├── exit-early.js │ ├── extremum-methods.js │ ├── fill.js │ ├── filter-methods.js │ ├── filter.test.js │ ├── find-and-findLast.js │ ├── find-and-includes.js │ ├── find-methods.js │ ├── findLast.test.js │ ├── findLastIndex-and-lastIndexOf.test.js │ ├── flatMap-methods.js │ ├── flatMapDepth.js │ ├── flatten-methods.js │ ├── flattenDepth.js │ ├── flip.test.js │ ├── flow-methods.test.js │ ├── forEach.test.js │ ├── forEachRight.test.js │ ├── forIn-methods.js │ ├── forOwn-methods.js │ ├── fromPairs.js │ ├── functions.test.js │ ├── get-and-result.js │ ├── groupBy.js │ ├── gt.test.js │ ├── gte.test.js │ ├── has-methods.js │ ├── head.js │ ├── identity.js │ ├── inRange.js │ ├── includes.js │ ├── indexOf-methods.js │ ├── indexOf.test.js │ ├── initial.js │ ├── intersection-methods.js │ ├── intersectionBy.js │ ├── intersectionWith.test.js │ ├── invert.test.js │ ├── invertBy.js │ ├── invoke.js │ ├── invokeMap.js │ ├── isArguments.test.js │ ├── isArray.js │ ├── isArrayBuffer.test.js │ ├── isArrayLike.test.js │ ├── isBoolean.test.js │ ├── isBuffer.test.js │ ├── isDate.test.js │ ├── isElement.test.js │ ├── isEmpty.js │ ├── isEqual.js │ ├── isEqualWith.js │ ├── isError.test.js │ ├── isFinite.js │ ├── isFunction.js │ ├── isIndex.test.js │ ├── isInteger-methods.js │ ├── isIterateeCall.js │ ├── isLength.test.js │ ├── isMap.test.js │ ├── isMatchWith.js │ ├── isNaN.js │ ├── isNative.js │ ├── isNil.test.js │ ├── isNull.test.js │ ├── isNumber.test.js │ ├── isObject.test.js │ ├── isObjectLike.test.js │ ├── isPlainObject.js │ ├── isRegExp.test.js │ ├── isSet.test.js │ ├── isString.test.js │ ├── isSymbol.test.js │ ├── isType-checks.js │ ├── isTypedArray.js │ ├── isUndefined.test.js │ ├── isWeakMap.test.js │ ├── isWeakSet.test.js │ ├── iteratee.js │ ├── iteration-methods.js │ ├── join.js │ ├── keyBy.js │ ├── keys-methods.js │ ├── last.js │ ├── lodash(...)-methods-that-return-new-wrapped-values.js │ ├── lodash(...)-methods-that-return-the-wrapped-modified-array.js │ ├── lodash(...)-methods-that-return-unwrapped-values.js │ ├── lodash(...).commit.js │ ├── lodash(...).next.js │ ├── lodash(...).plant.js │ ├── lodash(...).pop.js │ ├── lodash(...).push.js │ ├── lodash(...).shift.js │ ├── lodash(...).sort.js │ ├── lodash(...).splice.js │ ├── lodash(...).unshift.js │ ├── lodash(...).value.js │ ├── lodash-constructor.js │ ├── lodash-methods.js │ ├── lodash.methodName.js │ ├── lowerCase.test.js │ ├── lowerFirst.test.js │ ├── lt.test.js │ ├── lte.test.js │ ├── map-caches.js │ ├── map.js │ ├── mapKeys-and-mapValues.js │ ├── mapKeys.js │ ├── mapValues.js │ ├── matches-methods.js │ ├── matches.js │ ├── matchesProperty.js │ ├── math-operator-methods.js │ ├── max.js │ ├── mean.test.js │ ├── meanBy.js │ ├── memoize.test.js │ ├── memoizeCapped.test.js │ ├── merge.test.js │ ├── mergeWith.js │ ├── method.js │ ├── methodOf.js │ ├── methods-using-createWrapper.js │ ├── min.js │ ├── mixin.js │ ├── multiply.test.js │ ├── negate.js │ ├── noConflict.js │ ├── now.js │ ├── nth.js │ ├── nthArg.js │ ├── number-coercion-methods.js │ ├── object-assignments.js │ ├── omit-methods.js │ ├── omit.js │ ├── omitBy.js │ ├── once.test.js │ ├── orderBy.js │ ├── over.js │ ├── overArgs.js │ ├── overEvery.js │ ├── overSome.js │ ├── pad-methods.js │ ├── pad.js │ ├── padEnd.js │ ├── padStart.js │ ├── parseInt.js │ ├── partial-methods.js │ ├── partialRight.js │ ├── partition.js │ ├── pick-methods.js │ ├── pick.js │ ├── pickBy.test.js │ ├── property.test.js │ ├── propertyOf.test.js │ ├── pull-methods.js │ ├── pullAll.test.js │ ├── pullAllBy.test.js │ ├── pullAllWith.test.js │ ├── pullAt.js │ ├── random.js │ ├── range-methods.js │ ├── rearg.js │ ├── reduce-methods.js │ ├── reduce.js │ ├── reduceRight.js │ ├── reject.test.js │ ├── remove.js │ ├── repeat.js │ ├── replace.test.js │ ├── rest.js │ ├── result.test.js │ ├── reverse.js │ ├── round-methods.js │ ├── runInContext.js │ ├── sample.js │ ├── sampleSize.js │ ├── set-methods.js │ ├── setWith.js │ ├── shuffle.js │ ├── size.test.js │ ├── slice-and-toArray.js │ ├── slice.js │ ├── some.js │ ├── sortBy-methods.js │ ├── sortBy.js │ ├── sortedIndex-methods.js │ ├── sortedIndexBy-methods.js │ ├── sortedIndexOf-methods.js │ ├── sortedUniq.test.js │ ├── split.js │ ├── spread.js │ ├── startCase.test.js │ ├── startsWith-and-endsWith.js │ ├── startsWith.js │ ├── strict-mode-checks.js │ ├── stub-methods.js │ ├── subtract.test.js │ ├── sum-methods.js │ ├── sumBy.js │ ├── tail.js │ ├── take.js │ ├── takeRight.js │ ├── takeRightWhile.js │ ├── takeWhile.js │ ├── tap.js │ ├── template.js │ ├── throttle.js │ ├── times.js │ ├── toArray.test.js │ ├── toInteger-methods.js │ ├── toLength.test.js │ ├── toLower.js │ ├── toPairs-methods.js │ ├── toPairs.js │ ├── toPairsIn.js │ ├── toPath.js │ ├── toPlainObject.js │ ├── toString.test.js │ ├── toUpper.js │ ├── transform.js │ ├── trim-methods.js │ ├── truncate.js │ ├── unary.js │ ├── uncommon-symbols.js │ ├── unescape.js │ ├── union-methods.js │ ├── unionBy.js │ ├── unionWith.test.js │ ├── uniq-methods.js │ ├── uniq.js │ ├── uniqBy-methods.js │ ├── uniqWith.test.js │ ├── uniqueId.test.js │ ├── unset.js │ ├── unzip-and-zip.js │ ├── unzipWith.js │ ├── update-methods.js │ ├── updateWith.js │ ├── upperCase.test.js │ ├── upperFirst.test.js │ ├── utils.js │ ├── values-methods.js │ ├── without.test.js │ ├── words.test.js │ ├── wrap.js │ ├── xor-methods.js │ ├── xorBy.js │ ├── xorWith.test.js │ ├── zipObject-methods.js │ └── zipWith.js ├── throttle.js ├── times.js ├── toArray.js ├── toFinite.js ├── toInteger.js ├── toLength.js ├── toNumber.js ├── toPath.js ├── toPlainObject.js ├── toSafeInteger.js ├── toString.js ├── transform.js ├── trim.js ├── trimEnd.js ├── trimStart.js ├── truncate.js ├── unescape.js ├── union.js ├── unionBy.js ├── unionWith.js ├── uniq.js ├── uniqBy.js ├── uniqWith.js ├── uniqueId.js ├── unset.js ├── unzip.js ├── unzipWith.js ├── update.js ├── updateWith.js ├── upperCase.js ├── upperFirst.js ├── values.js ├── without.js ├── words.js ├── xor.js ├── xorBy.js ├── xorWith.js ├── zip.js ├── zipObject.js ├── zipObjectDeep.js └── zipWith.js ├── project-2 ├── .circleci │ └── config.yml ├── .codesandbox │ └── ci.json ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github │ ├── ISSUE_TEMPLATE │ │ ├── bug_report.md │ │ └── config.yml │ ├── PULL_REQUEST_TEMPLATE.md │ └── stale.yml ├── .gitignore ├── .mailmap ├── .nvmrc ├── .prettierignore ├── .prettierrc.js ├── .watchmanconfig ├── AUTHORS ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── appveyor.yml ├── babel.config.js ├── dangerfile.js ├── fixtures │ ├── art │ │ ├── .gitignore │ │ ├── README.md │ │ ├── VectorWidget.js │ │ ├── app.js │ │ ├── index.html │ │ ├── package.json │ │ ├── webpack.config.js │ │ └── yarn.lock │ ├── attribute-behavior │ │ ├── .gitignore │ │ ├── AttributeTableSnapshot.md │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ └── manifest.json │ │ ├── src │ │ │ ├── App.js │ │ │ ├── App.test.js │ │ │ ├── attributes.js │ │ │ ├── index.css │ │ │ └── index.js │ │ └── yarn.lock │ ├── blocks │ │ ├── .env │ │ ├── db.json │ │ ├── delay.js │ │ ├── package.json │ │ ├── public │ │ │ └── index.html │ │ ├── src │ │ │ ├── Router.js │ │ │ ├── client │ │ │ │ ├── Link.js │ │ │ │ ├── ProfileNav.js │ │ │ │ ├── RouterContext.js │ │ │ │ ├── Shell.js │ │ │ │ └── TabNav.js │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ └── server │ │ │ │ ├── App.js │ │ │ │ ├── Comments.js │ │ │ │ ├── Feed.js │ │ │ │ ├── FeedPage.js │ │ │ │ ├── Post.js │ │ │ │ ├── PostGlimmer.js │ │ │ │ ├── PostList.js │ │ │ │ ├── ProfileBio.js │ │ │ │ ├── ProfilePage.js │ │ │ │ ├── ProfileTimeline.js │ │ │ │ └── ServerRouter.js │ │ └── yarn.lock │ ├── concurrent │ │ └── time-slicing │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ └── manifest.json │ │ │ ├── src │ │ │ ├── Charts.js │ │ │ ├── Clock.js │ │ │ ├── index.css │ │ │ └── index.js │ │ │ └── yarn.lock │ ├── devtools │ │ ├── regression │ │ │ ├── 14.9.html │ │ │ ├── 15.0.html │ │ │ ├── 15.1.html │ │ │ ├── 15.2.html │ │ │ ├── 15.3.html │ │ │ ├── 15.4.html │ │ │ ├── 15.5.html │ │ │ ├── 15.6.html │ │ │ ├── 16.0.html │ │ │ ├── 16.1.html │ │ │ ├── 16.2.html │ │ │ ├── 16.3.html │ │ │ ├── 16.4.html │ │ │ ├── 16.5.html │ │ │ ├── 16.6.html │ │ │ ├── 16.7.html │ │ │ ├── canary.html │ │ │ ├── index.html │ │ │ ├── next.html │ │ │ ├── server.js │ │ │ ├── shared.js │ │ │ └── styles.css │ │ └── standalone │ │ │ └── index.html │ ├── dom │ │ ├── .gitignore │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ ├── act-dom.html │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ ├── react-logo.svg │ │ │ ├── renderer.html │ │ │ ├── renderer.js │ │ │ └── test.mp4 │ │ ├── src │ │ │ ├── __tests__ │ │ │ │ ├── nested-act-test.js │ │ │ │ └── wrong-act-test.js │ │ │ ├── components │ │ │ │ ├── App.js │ │ │ │ ├── Fixture.js │ │ │ │ ├── FixtureSet.js │ │ │ │ ├── Header.js │ │ │ │ ├── Iframe.js │ │ │ │ ├── IssueList.js │ │ │ │ ├── TestCase.js │ │ │ │ ├── VersionPicker.js │ │ │ │ ├── fixtures │ │ │ │ │ ├── buttons │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── custom-elements │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── date-inputs │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── switch-date-test-case.js │ │ │ │ │ ├── email-inputs │ │ │ │ │ │ ├── EmailDisabledAttributesTestCase.js │ │ │ │ │ │ ├── EmailEnabledAttributesTestCase.js │ │ │ │ │ │ ├── JumpingCursorTestCase.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── error-handling │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── event-pooling │ │ │ │ │ │ ├── hit-box.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── mouse-move.js │ │ │ │ │ │ └── persistence.js │ │ │ │ │ ├── form-state │ │ │ │ │ │ ├── ControlledFormFixture.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── home.js │ │ │ │ │ ├── hydration │ │ │ │ │ │ ├── Code.js │ │ │ │ │ │ ├── code-transformer.js │ │ │ │ │ │ ├── codemirror-paraiso-dark.css │ │ │ │ │ │ ├── data.js │ │ │ │ │ │ ├── hydration.css │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── input-change-events │ │ │ │ │ │ ├── InputPlaceholderFixture.js │ │ │ │ │ │ ├── RadioClickFixture.js │ │ │ │ │ │ ├── RadioGroupFixture.js │ │ │ │ │ │ ├── RadioNameChangeFixture.js │ │ │ │ │ │ ├── RangeKeyboardFixture.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── media-events │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── mouse-events │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── mouse-enter.js │ │ │ │ │ │ └── mouse-movement.js │ │ │ │ │ ├── number-inputs │ │ │ │ │ │ ├── NumberInputDecimal.js │ │ │ │ │ │ ├── NumberInputExtraZeroes.js │ │ │ │ │ │ ├── NumberTestCase.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── password-inputs │ │ │ │ │ │ ├── PasswordTestCase.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── pointer-events │ │ │ │ │ │ ├── drag-box.js │ │ │ │ │ │ ├── drag.js │ │ │ │ │ │ ├── hover-box.js │ │ │ │ │ │ ├── hover.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── progress │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── range-inputs │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── selection-events │ │ │ │ │ │ ├── OnSelectEventTestCase.js │ │ │ │ │ │ ├── ReorderedInputsTestCase.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── selects │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── suspense │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── text-inputs │ │ │ │ │ │ ├── InputTestCase.js │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── ReplaceEmailInput.js │ │ │ │ │ │ └── index.js │ │ │ │ │ └── textareas │ │ │ │ │ │ └── index.js │ │ │ │ └── propTypes.js │ │ │ ├── find-dom-node.js │ │ │ ├── index.js │ │ │ ├── polyfills.js │ │ │ ├── react-loader.js │ │ │ ├── style.css │ │ │ ├── tags.js │ │ │ └── toWarnDev.js │ │ └── yarn.lock │ ├── eslint │ │ ├── .eslintrc.json │ │ ├── README.md │ │ ├── index.js │ │ ├── package.json │ │ ├── proxy │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── watch.sh │ │ └── yarn.lock │ ├── expiration │ │ ├── .gitignore │ │ ├── package.json │ │ ├── public │ │ │ └── index.html │ │ ├── src │ │ │ └── index.js │ │ └── yarn.lock │ ├── fiber-debugger │ │ ├── .env │ │ ├── .gitignore │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ └── index.html │ │ ├── src │ │ │ ├── App.js │ │ │ ├── Editor.js │ │ │ ├── Fibers.js │ │ │ ├── describeFibers.js │ │ │ ├── index.css │ │ │ └── index.js │ │ └── yarn.lock │ ├── fiber-triangle │ │ └── index.html │ ├── fizz-ssr-browser │ │ └── index.html │ ├── flight-browser │ │ └── index.html │ ├── flight │ │ ├── .env │ │ ├── .gitignore │ │ ├── config │ │ │ ├── env.js │ │ │ ├── getHttpsConfig.js │ │ │ ├── jest │ │ │ │ ├── cssTransform.js │ │ │ │ └── fileTransform.js │ │ │ ├── modules.js │ │ │ ├── package.json │ │ │ ├── paths.js │ │ │ ├── pnpTs.js │ │ │ ├── webpack.config.js │ │ │ └── webpackDevServer.config.js │ │ ├── loader │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── package.json │ │ ├── public │ │ │ └── index.html │ │ ├── scripts │ │ │ ├── build.js │ │ │ ├── package.json │ │ │ ├── start.js │ │ │ └── test.js │ │ ├── server │ │ │ ├── cli.server.js │ │ │ ├── handler.server.js │ │ │ └── package.json │ │ ├── src │ │ │ ├── App.server.js │ │ │ ├── Container.js │ │ │ ├── Counter.client.js │ │ │ ├── Counter2.client.js │ │ │ ├── ShowMore.client.js │ │ │ └── index.js │ │ └── yarn.lock │ ├── legacy-jsx-runtimes │ │ ├── README.md │ │ ├── babel.config.js │ │ ├── lint-runtimes.js │ │ ├── package.json │ │ ├── react-14 │ │ │ ├── cjs │ │ │ │ ├── react-jsx-dev-runtime.development.js │ │ │ │ ├── react-jsx-dev-runtime.production.min.js │ │ │ │ ├── react-jsx-runtime.development.js │ │ │ │ └── react-jsx-runtime.production.min.js │ │ │ ├── jsx-dev-runtime.js │ │ │ ├── jsx-runtime.js │ │ │ ├── package.json │ │ │ ├── react-14.test.js │ │ │ └── yarn.lock │ │ ├── react-15 │ │ │ ├── cjs │ │ │ │ ├── react-jsx-dev-runtime.development.js │ │ │ │ ├── react-jsx-dev-runtime.production.min.js │ │ │ │ ├── react-jsx-runtime.development.js │ │ │ │ └── react-jsx-runtime.production.min.js │ │ │ ├── jsx-dev-runtime.js │ │ │ ├── jsx-runtime.js │ │ │ ├── package.json │ │ │ ├── react-15.test.js │ │ │ └── yarn.lock │ │ ├── react-16 │ │ │ ├── cjs │ │ │ │ ├── react-jsx-dev-runtime.development.js │ │ │ │ ├── react-jsx-dev-runtime.production.min.js │ │ │ │ ├── react-jsx-runtime.development.js │ │ │ │ └── react-jsx-runtime.production.min.js │ │ │ ├── jsx-dev-runtime.js │ │ │ ├── jsx-runtime.js │ │ │ ├── package.json │ │ │ ├── react-16.test.js │ │ │ └── yarn.lock │ │ ├── react-17 │ │ │ ├── cjs │ │ │ │ ├── react-jsx-dev-runtime.development.js │ │ │ │ ├── react-jsx-dev-runtime.production.min.js │ │ │ │ ├── react-jsx-runtime.development.js │ │ │ │ └── react-jsx-runtime.production.min.js │ │ │ ├── jsx-dev-runtime.js │ │ │ ├── jsx-runtime.js │ │ │ ├── package.json │ │ │ ├── react-17.test.js │ │ │ └── yarn.lock │ │ ├── setupTests.js │ │ └── yarn.lock │ ├── nesting │ │ ├── .env │ │ ├── .eslintignore │ │ ├── .gitignore │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ └── index.html │ │ └── src │ │ │ ├── index.js │ │ │ ├── legacy │ │ │ ├── Greeting.js │ │ │ ├── createLegacyRoot.js │ │ │ └── package.json │ │ │ ├── modern │ │ │ ├── AboutPage.js │ │ │ ├── App.js │ │ │ ├── HomePage.js │ │ │ ├── index.js │ │ │ ├── lazyLegacyRoot.js │ │ │ └── package.json │ │ │ ├── shared │ │ │ ├── Clock.js │ │ │ ├── ThemeContext.js │ │ │ └── useTime.js │ │ │ └── store.js │ ├── packaging │ │ ├── README.md │ │ ├── babel-standalone │ │ │ └── dev.html │ │ ├── browserify │ │ │ ├── dev │ │ │ │ ├── .gitignore │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ │ ├── .gitignore │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ ├── brunch │ │ │ ├── dev │ │ │ │ ├── .gitignore │ │ │ │ ├── app │ │ │ │ │ └── initialize.js │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ │ ├── .gitignore │ │ │ │ ├── app │ │ │ │ └── initialize.js │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ ├── build-all.js │ │ ├── globals │ │ │ ├── dev.html │ │ │ └── prod.html │ │ ├── index.html │ │ ├── requirejs │ │ │ ├── dev.html │ │ │ └── prod.html │ │ ├── rjs │ │ │ ├── dev │ │ │ │ ├── .gitignore │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ │ ├── .gitignore │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ ├── systemjs-builder │ │ │ ├── dev │ │ │ │ ├── .gitignore │ │ │ │ ├── build.js │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ │ ├── .gitignore │ │ │ │ ├── build.js │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ ├── systemjs │ │ │ ├── dev.html │ │ │ └── prod.html │ │ ├── webpack-alias │ │ │ ├── dev │ │ │ │ ├── .gitignore │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ │ ├── .gitignore │ │ │ │ ├── config.js │ │ │ │ ├── index.html │ │ │ │ ├── input.js │ │ │ │ ├── package.json │ │ │ │ └── yarn.lock │ │ └── webpack │ │ │ ├── dev │ │ │ ├── .gitignore │ │ │ ├── config.js │ │ │ ├── index.html │ │ │ ├── input.js │ │ │ ├── package.json │ │ │ └── yarn.lock │ │ │ └── prod │ │ │ ├── .gitignore │ │ │ ├── config.js │ │ │ ├── index.html │ │ │ ├── input.js │ │ │ ├── package.json │ │ │ └── yarn.lock │ ├── scheduler │ │ └── index.html │ ├── ssr │ │ ├── README.md │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ └── index.html │ │ ├── server │ │ │ ├── index.js │ │ │ └── render.js │ │ ├── src │ │ │ ├── components │ │ │ │ ├── App.js │ │ │ │ ├── Chrome.css │ │ │ │ ├── Chrome.js │ │ │ │ ├── Page.css │ │ │ │ ├── Page.js │ │ │ │ ├── Page2.js │ │ │ │ ├── Suspend.js │ │ │ │ └── Theme.js │ │ │ └── index.js │ │ └── yarn.lock │ ├── stacks │ │ ├── BabelClasses-compiled.js │ │ ├── BabelClasses-compiled.js.map │ │ ├── BabelClasses.js │ │ ├── Components.js │ │ ├── Example.js │ │ ├── babel.config.json │ │ └── index.html │ └── tracing │ │ ├── index.html │ │ ├── script.js │ │ ├── test.html │ │ └── test.js ├── netlify.toml ├── package.json ├── packages │ ├── create-subscription │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── __tests__ │ │ │ └── createSubscription-test.js │ │ │ └── createSubscription.js │ ├── dom-event-testing-library │ │ ├── README.md │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── index-test.internal.js.snap │ │ │ └── index-test.internal.js │ │ ├── constants.js │ │ ├── domEnvironment.js │ │ ├── domEventSequences.js │ │ ├── domEvents.js │ │ ├── index.js │ │ ├── package.json │ │ ├── testHelpers.js │ │ └── touchStore.js │ ├── eslint-plugin-react-hooks │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── __tests__ │ │ │ ├── ESLintRuleExhaustiveDeps-test.js │ │ │ └── ESLintRulesOfHooks-test.js │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── ExhaustiveDeps.js │ │ │ ├── RulesOfHooks.js │ │ │ └── index.js │ ├── jest-mock-scheduler │ │ ├── README.md │ │ ├── npm │ │ │ └── index.js │ │ └── package.json │ ├── jest-react │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ └── JestReact.js │ ├── react-art │ │ ├── Circle.js │ │ ├── README.md │ │ ├── Rectangle.js │ │ ├── Wedge.js │ │ ├── index.js │ │ ├── npm │ │ │ ├── Circle.js │ │ │ ├── Rectangle.js │ │ │ ├── Wedge.js │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactART.js │ │ │ ├── ReactARTHostConfig.js │ │ │ ├── ReactARTInternals.js │ │ │ └── __tests__ │ │ │ ├── ReactART-test.js │ │ │ └── __snapshots__ │ │ │ └── ReactART-test.js.snap │ ├── react-cache │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── LRU.js │ │ │ ├── ReactCacheOld.js │ │ │ └── __tests__ │ │ │ └── ReactCacheOld-test.internal.js │ ├── react-client │ │ ├── README.md │ │ ├── flight.js │ │ ├── npm │ │ │ └── flight.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactFlightClient.js │ │ │ ├── ReactFlightClientHostConfig.js │ │ │ ├── ReactFlightClientHostConfigBrowser.js │ │ │ ├── ReactFlightClientHostConfigNoStream.js │ │ │ ├── ReactFlightClientHostConfigStream.js │ │ │ ├── ReactFlightClientStream.js │ │ │ ├── __tests__ │ │ │ └── ReactFlight-test.js │ │ │ └── forks │ │ │ ├── ReactFlightClientHostConfig.custom.js │ │ │ ├── ReactFlightClientHostConfig.dom-browser.js │ │ │ ├── ReactFlightClientHostConfig.dom-relay.js │ │ │ ├── ReactFlightClientHostConfig.dom.js │ │ │ └── ReactFlightClientHostConfig.native-relay.js │ ├── react-debug-tools │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactDebugHooks.js │ │ │ ├── ReactDebugTools.js │ │ │ └── __tests__ │ │ │ ├── ReactDevToolsHooksIntegration-test.js │ │ │ ├── ReactHooksInspection-test.js │ │ │ └── ReactHooksInspectionIntegration-test.js │ ├── react-devtools-core │ │ ├── README.md │ │ ├── backend.js │ │ ├── package.json │ │ ├── src │ │ │ ├── backend.js │ │ │ ├── editor.js │ │ │ └── standalone.js │ │ ├── standalone.js │ │ ├── webpack.backend.js │ │ └── webpack.standalone.js │ ├── react-devtools-extensions │ │ ├── .circleci │ │ │ └── config.yml │ │ ├── README.md │ │ ├── build.js │ │ ├── chrome │ │ │ ├── README.md │ │ │ ├── build.js │ │ │ ├── deploy.js │ │ │ ├── manifest.json │ │ │ ├── now.json │ │ │ └── test.js │ │ ├── deploy.chrome.html │ │ ├── deploy.edge.html │ │ ├── deploy.firefox.html │ │ ├── deploy.html │ │ ├── deploy.js │ │ ├── edge │ │ │ ├── README.md │ │ │ ├── build.js │ │ │ ├── deploy.js │ │ │ ├── manifest.json │ │ │ ├── now.json │ │ │ └── test.js │ │ ├── firefox │ │ │ ├── README.md │ │ │ ├── build.js │ │ │ ├── deploy.js │ │ │ ├── manifest.json │ │ │ ├── now.json │ │ │ └── test.js │ │ ├── flow-typed │ │ │ ├── jest.js │ │ │ └── npm │ │ │ │ └── react-test-renderer_v16.x.x.js │ │ ├── icons │ │ │ ├── 128-deadcode.png │ │ │ ├── 128-development.png │ │ │ ├── 128-disabled.png │ │ │ ├── 128-outdated.png │ │ │ ├── 128-production.png │ │ │ ├── 128-restricted.png │ │ │ ├── 128-unminified.png │ │ │ ├── 16-deadcode.png │ │ │ ├── 16-development.png │ │ │ ├── 16-disabled.png │ │ │ ├── 16-outdated.png │ │ │ ├── 16-production.png │ │ │ ├── 16-restricted.png │ │ │ ├── 16-unminified.png │ │ │ ├── 32-deadcode.png │ │ │ ├── 32-development.png │ │ │ ├── 32-disabled.png │ │ │ ├── 32-outdated.png │ │ │ ├── 32-production.png │ │ │ ├── 32-restricted.png │ │ │ ├── 32-unminified.png │ │ │ ├── 48-deadcode.png │ │ │ ├── 48-development.png │ │ │ ├── 48-disabled.png │ │ │ ├── 48-outdated.png │ │ │ ├── 48-production.png │ │ │ ├── 48-restricted.png │ │ │ ├── 48-unminified.png │ │ │ ├── deadcode.svg │ │ │ ├── development.svg │ │ │ ├── disabled.svg │ │ │ ├── outdated.svg │ │ │ ├── production.svg │ │ │ └── restricted.svg │ │ ├── main.html │ │ ├── package.json │ │ ├── panel.html │ │ ├── popups │ │ │ ├── deadcode.html │ │ │ ├── development.html │ │ │ ├── disabled.html │ │ │ ├── outdated.html │ │ │ ├── production.html │ │ │ ├── restricted.html │ │ │ ├── shared.css │ │ │ ├── shared.js │ │ │ └── unminified.html │ │ ├── src │ │ │ ├── backend.js │ │ │ ├── background.js │ │ │ ├── contentScript.js │ │ │ ├── injectGlobalHook.js │ │ │ ├── main.js │ │ │ ├── panel.js │ │ │ ├── renderer.js │ │ │ └── utils.js │ │ ├── utils.js │ │ ├── webpack.backend.js │ │ └── webpack.config.js │ ├── react-devtools-inline │ │ ├── README.md │ │ ├── backend.js │ │ ├── frontend.js │ │ ├── package.json │ │ ├── src │ │ │ ├── backend.js │ │ │ ├── constants.js │ │ │ └── frontend.js │ │ └── webpack.config.js │ ├── react-devtools-scheduling-profiler │ │ ├── README.md │ │ ├── buildUtils.js │ │ ├── package.json │ │ ├── src │ │ │ ├── App.css │ │ │ ├── App.js │ │ │ ├── CanvasPage.css │ │ │ ├── CanvasPage.js │ │ │ ├── EventTooltip.css │ │ │ ├── EventTooltip.js │ │ │ ├── ImportButton.css │ │ │ ├── ImportButton.js │ │ │ ├── SchedulingProfiler.css │ │ │ ├── SchedulingProfiler.js │ │ │ ├── SchedulingProfilerFeatureFlags.js │ │ │ ├── assets │ │ │ │ ├── logo.svg │ │ │ │ ├── profilerBrowser.png │ │ │ │ └── reactlogo.svg │ │ │ ├── constants.js │ │ │ ├── content-views │ │ │ │ ├── FlamechartView.js │ │ │ │ ├── ReactEventsView.js │ │ │ │ ├── ReactMeasuresView.js │ │ │ │ ├── TimeAxisMarkersView.js │ │ │ │ ├── UserTimingMarksView.js │ │ │ │ ├── constants.js │ │ │ │ ├── index.js │ │ │ │ └── utils │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── colors-test.js │ │ │ │ │ ├── colors.js │ │ │ │ │ └── positioning.js │ │ │ ├── context │ │ │ │ ├── ContextMenu.css │ │ │ │ ├── ContextMenu.js │ │ │ │ ├── ContextMenuItem.css │ │ │ │ ├── ContextMenuItem.js │ │ │ │ ├── Contexts.js │ │ │ │ ├── index.js │ │ │ │ └── useContextMenu.js │ │ │ ├── hooks.js │ │ │ ├── import-worker │ │ │ │ ├── InvalidProfileError.js │ │ │ │ ├── __tests__ │ │ │ │ │ ├── __snapshots__ │ │ │ │ │ │ └── preprocessData-test.js.snap │ │ │ │ │ └── preprocessData-test.js │ │ │ │ ├── import.worker.js │ │ │ │ ├── preprocessData.js │ │ │ │ └── readInputData.js │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ ├── utils │ │ │ │ ├── getBatchRange.js │ │ │ │ └── useSmartTooltip.js │ │ │ └── view-base │ │ │ │ ├── ColorView.js │ │ │ │ ├── HorizontalPanAndZoomView.js │ │ │ │ ├── ResizableSplitView.js │ │ │ │ ├── Surface.js │ │ │ │ ├── VerticalScrollView.js │ │ │ │ ├── View.js │ │ │ │ ├── __tests__ │ │ │ │ └── geometry-test.js │ │ │ │ ├── constants.js │ │ │ │ ├── geometry.js │ │ │ │ ├── index.js │ │ │ │ ├── layouter.js │ │ │ │ ├── useCanvasInteraction.js │ │ │ │ └── utils │ │ │ │ ├── __tests__ │ │ │ │ ├── clamp-test.js │ │ │ │ └── scrollState-test.js │ │ │ │ ├── clamp.js │ │ │ │ ├── normalizeWheel.js │ │ │ │ └── scrollState.js │ │ ├── vercel.json │ │ └── webpack.config.js │ ├── react-devtools-shared │ │ ├── babel.config.js │ │ ├── buildUtils.js │ │ ├── package.json │ │ └── src │ │ │ ├── __tests__ │ │ │ ├── __mocks__ │ │ │ │ └── cssMock.js │ │ │ ├── __snapshots__ │ │ │ │ ├── ownersListContext-test.js.snap │ │ │ │ ├── profilerContext-test.js.snap │ │ │ │ ├── profilingCache-test.js.snap │ │ │ │ ├── profilingCharts-test.js.snap │ │ │ │ ├── profilingCommitTreeBuilder-test.js.snap │ │ │ │ ├── store-test.js.snap │ │ │ │ ├── storeOwners-test.js.snap │ │ │ │ └── storeStressSync-test.js.snap │ │ │ ├── bridge-test.js │ │ │ ├── componentStacks-test.js │ │ │ ├── console-test.js │ │ │ ├── dehydratedValueSerializer.js │ │ │ ├── editing-test.js │ │ │ ├── events-test.js │ │ │ ├── inspectedElement-test.js │ │ │ ├── inspectedElementSerializer.js │ │ │ ├── legacy │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── storeLegacy-v15-test.js.snap │ │ │ │ ├── editing-test.js │ │ │ │ ├── inspectElement-test.js │ │ │ │ └── storeLegacy-v15-test.js │ │ │ ├── ownersListContext-test.js │ │ │ ├── profilerContext-test.js │ │ │ ├── profilerStore-test.js │ │ │ ├── profilingCache-test.js │ │ │ ├── profilingCharts-test.js │ │ │ ├── profilingCommitTreeBuilder-test.js │ │ │ ├── profilingUtils-test.js │ │ │ ├── setupEnv.js │ │ │ ├── setupTests.js │ │ │ ├── store-test.js │ │ │ ├── storeComponentFilters-test.js │ │ │ ├── storeOwners-test.js │ │ │ ├── storeSerializer.js │ │ │ ├── storeStressSync-test.js │ │ │ ├── storeStressTestConcurrent-test.js │ │ │ ├── treeContext-test.js │ │ │ ├── treeContextStateSerializer.js │ │ │ ├── useEditableValue-test.js │ │ │ ├── utils-test.js │ │ │ └── utils.js │ │ │ ├── backend │ │ │ ├── DevToolsComponentStackFrame.js │ │ │ ├── DevToolsFiberComponentStack.js │ │ │ ├── NativeStyleEditor │ │ │ │ ├── resolveBoxStyle.js │ │ │ │ ├── setupNativeStyleEditor.js │ │ │ │ └── types.js │ │ │ ├── ReactSymbols.js │ │ │ ├── agent.js │ │ │ ├── console.js │ │ │ ├── index.js │ │ │ ├── legacy │ │ │ │ ├── renderer.js │ │ │ │ └── utils.js │ │ │ ├── renderer.js │ │ │ ├── types.js │ │ │ ├── utils.js │ │ │ └── views │ │ │ │ ├── Highlighter │ │ │ │ ├── Highlighter.js │ │ │ │ ├── Overlay.js │ │ │ │ └── index.js │ │ │ │ ├── TraceUpdates │ │ │ │ ├── canvas.js │ │ │ │ └── index.js │ │ │ │ └── utils.js │ │ │ ├── backendAPI.js │ │ │ ├── bridge.js │ │ │ ├── config │ │ │ ├── DevToolsFeatureFlags.default.js │ │ │ └── DevToolsFeatureFlags.extension.js │ │ │ ├── constants.js │ │ │ ├── devtools │ │ │ ├── ContextMenu │ │ │ │ ├── ContextMenu.css │ │ │ │ ├── ContextMenu.js │ │ │ │ ├── ContextMenuItem.css │ │ │ │ ├── ContextMenuItem.js │ │ │ │ ├── Contexts.js │ │ │ │ └── useContextMenu.js │ │ │ ├── ProfilerStore.js │ │ │ ├── ProfilingCache.js │ │ │ ├── cache.js │ │ │ ├── index.js │ │ │ ├── store.js │ │ │ ├── utils.js │ │ │ └── views │ │ │ │ ├── Button.css │ │ │ │ ├── Button.js │ │ │ │ ├── ButtonIcon.css │ │ │ │ ├── ButtonIcon.js │ │ │ │ ├── Components │ │ │ │ ├── Badge.css │ │ │ │ ├── Badge.js │ │ │ │ ├── CannotSuspendWarningMessage.js │ │ │ │ ├── Components.css │ │ │ │ ├── Components.js │ │ │ │ ├── EditableName.css │ │ │ │ ├── EditableName.js │ │ │ │ ├── EditableValue.css │ │ │ │ ├── EditableValue.js │ │ │ │ ├── Element.css │ │ │ │ ├── Element.js │ │ │ │ ├── ExpandCollapseToggle.css │ │ │ │ ├── ExpandCollapseToggle.js │ │ │ │ ├── HocBadges.css │ │ │ │ ├── HocBadges.js │ │ │ │ ├── InspectHostNodesToggle.js │ │ │ │ ├── InspectedElement.css │ │ │ │ ├── InspectedElement.js │ │ │ │ ├── InspectedElementContext.js │ │ │ │ ├── InspectedElementContextTree.js │ │ │ │ ├── InspectedElementErrorBoundary.css │ │ │ │ ├── InspectedElementErrorBoundary.js │ │ │ │ ├── InspectedElementErrorsAndWarningsTree.css │ │ │ │ ├── InspectedElementErrorsAndWarningsTree.js │ │ │ │ ├── InspectedElementHooksTree.css │ │ │ │ ├── InspectedElementHooksTree.js │ │ │ │ ├── InspectedElementPropsTree.js │ │ │ │ ├── InspectedElementSharedStyles.css │ │ │ │ ├── InspectedElementStateTree.js │ │ │ │ ├── InspectedElementSuspenseToggle.js │ │ │ │ ├── InspectedElementView.css │ │ │ │ ├── InspectedElementView.js │ │ │ │ ├── KeyValue.css │ │ │ │ ├── KeyValue.js │ │ │ │ ├── LoadingAnimation.css │ │ │ │ ├── LoadingAnimation.js │ │ │ │ ├── NativeStyleEditor │ │ │ │ │ ├── AutoSizeInput.css │ │ │ │ │ ├── AutoSizeInput.js │ │ │ │ │ ├── LayoutViewer.css │ │ │ │ │ ├── LayoutViewer.js │ │ │ │ │ ├── StyleEditor.css │ │ │ │ │ ├── StyleEditor.js │ │ │ │ │ ├── context.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── types.js │ │ │ │ ├── NewArrayValue.css │ │ │ │ ├── NewArrayValue.js │ │ │ │ ├── NewKeyValue.css │ │ │ │ ├── NewKeyValue.js │ │ │ │ ├── OwnersListContext.js │ │ │ │ ├── OwnersStack.css │ │ │ │ ├── OwnersStack.js │ │ │ │ ├── SearchInput.css │ │ │ │ ├── SearchInput.js │ │ │ │ ├── SelectedTreeHighlight.css │ │ │ │ ├── SelectedTreeHighlight.js │ │ │ │ ├── Tree.css │ │ │ │ ├── Tree.js │ │ │ │ ├── TreeContext.js │ │ │ │ ├── TreeFocusedContext.js │ │ │ │ ├── ViewElementSourceContext.js │ │ │ │ ├── types.js │ │ │ │ └── utils.js │ │ │ │ ├── DevTools.css │ │ │ │ ├── DevTools.js │ │ │ │ ├── ErrorBoundary.css │ │ │ │ ├── ErrorBoundary.js │ │ │ │ ├── Icon.css │ │ │ │ ├── Icon.js │ │ │ │ ├── ModalDialog.css │ │ │ │ ├── ModalDialog.js │ │ │ │ ├── Profiler │ │ │ │ ├── ChartNode.css │ │ │ │ ├── ChartNode.js │ │ │ │ ├── ClearProfilingDataButton.js │ │ │ │ ├── CommitFlamegraph.css │ │ │ │ ├── CommitFlamegraph.js │ │ │ │ ├── CommitFlamegraphListItem.js │ │ │ │ ├── CommitRanked.css │ │ │ │ ├── CommitRanked.js │ │ │ │ ├── CommitRankedListItem.js │ │ │ │ ├── CommitTreeBuilder.js │ │ │ │ ├── FlamegraphChartBuilder.js │ │ │ │ ├── HoveredFiberInfo.css │ │ │ │ ├── HoveredFiberInfo.js │ │ │ │ ├── InteractionListItem.css │ │ │ │ ├── InteractionListItem.js │ │ │ │ ├── Interactions.css │ │ │ │ ├── Interactions.js │ │ │ │ ├── InteractionsChartBuilder.js │ │ │ │ ├── NoCommitData.css │ │ │ │ ├── NoCommitData.js │ │ │ │ ├── NoInteractions.css │ │ │ │ ├── NoInteractions.js │ │ │ │ ├── Profiler.css │ │ │ │ ├── Profiler.js │ │ │ │ ├── ProfilerContext.js │ │ │ │ ├── ProfilingImportExportButtons.css │ │ │ │ ├── ProfilingImportExportButtons.js │ │ │ │ ├── RankedChartBuilder.js │ │ │ │ ├── RecordToggle.css │ │ │ │ ├── RecordToggle.js │ │ │ │ ├── ReloadAndProfileButton.js │ │ │ │ ├── RootSelector.css │ │ │ │ ├── RootSelector.js │ │ │ │ ├── SidebarCommitInfo.css │ │ │ │ ├── SidebarCommitInfo.js │ │ │ │ ├── SidebarInteractions.css │ │ │ │ ├── SidebarInteractions.js │ │ │ │ ├── SidebarSelectedFiberInfo.css │ │ │ │ ├── SidebarSelectedFiberInfo.js │ │ │ │ ├── SnapshotCommitList.css │ │ │ │ ├── SnapshotCommitList.js │ │ │ │ ├── SnapshotCommitListItem.css │ │ │ │ ├── SnapshotCommitListItem.js │ │ │ │ ├── SnapshotSelector.css │ │ │ │ ├── SnapshotSelector.js │ │ │ │ ├── Tooltip.css │ │ │ │ ├── Tooltip.js │ │ │ │ ├── WhatChanged.css │ │ │ │ ├── WhatChanged.js │ │ │ │ ├── constants.js │ │ │ │ ├── types.js │ │ │ │ └── utils.js │ │ │ │ ├── ReactLogo.css │ │ │ │ ├── ReactLogo.js │ │ │ │ ├── Settings │ │ │ │ ├── ComponentsSettings.js │ │ │ │ ├── DebuggingSettings.js │ │ │ │ ├── GeneralSettings.js │ │ │ │ ├── ProfilerSettings.js │ │ │ │ ├── SettingsContext.js │ │ │ │ ├── SettingsModal.css │ │ │ │ ├── SettingsModal.js │ │ │ │ ├── SettingsModalContext.js │ │ │ │ ├── SettingsModalContextToggle.js │ │ │ │ └── SettingsShared.css │ │ │ │ ├── TabBar.css │ │ │ │ ├── TabBar.js │ │ │ │ ├── Toggle.css │ │ │ │ ├── Toggle.js │ │ │ │ ├── Tooltip.css │ │ │ │ ├── UnsupportedVersionDialog.css │ │ │ │ ├── UnsupportedVersionDialog.js │ │ │ │ ├── WarnIfLegacyBackendDetected.css │ │ │ │ ├── WarnIfLegacyBackendDetected.js │ │ │ │ ├── context.js │ │ │ │ ├── hooks.js │ │ │ │ ├── portaledContent.js │ │ │ │ ├── root.css │ │ │ │ └── utils.js │ │ │ ├── events.js │ │ │ ├── hook.js │ │ │ ├── hydration.js │ │ │ ├── inspectedElementCache.js │ │ │ ├── storage.js │ │ │ ├── types.js │ │ │ └── utils.js │ ├── react-devtools-shell │ │ ├── README.md │ │ ├── index.html │ │ ├── now.json │ │ ├── package.json │ │ ├── src │ │ │ ├── app │ │ │ │ ├── DeeplyNestedComponents │ │ │ │ │ └── index.js │ │ │ │ ├── EditableProps │ │ │ │ │ └── index.js │ │ │ │ ├── ElementTypes │ │ │ │ │ └── index.js │ │ │ │ ├── Hydration │ │ │ │ │ └── index.js │ │ │ │ ├── Iframe │ │ │ │ │ └── index.js │ │ │ │ ├── InlineWarnings │ │ │ │ │ └── index.js │ │ │ │ ├── InspectableElements │ │ │ │ │ ├── CircularReferences.js │ │ │ │ │ ├── Contexts.js │ │ │ │ │ ├── CustomHooks.js │ │ │ │ │ ├── CustomObject.js │ │ │ │ │ ├── EdgeCaseObjects.js │ │ │ │ │ ├── InspectableElements.js │ │ │ │ │ ├── NestedProps.js │ │ │ │ │ ├── SimpleValues.js │ │ │ │ │ ├── SymbolKeys.js │ │ │ │ │ ├── UnserializableProps.js │ │ │ │ │ └── index.js │ │ │ │ ├── InteractionTracing │ │ │ │ │ └── index.js │ │ │ │ ├── PriorityLevels │ │ │ │ │ └── index.js │ │ │ │ ├── ReactNativeWeb │ │ │ │ │ └── index.js │ │ │ │ ├── SuspenseTree │ │ │ │ │ └── index.js │ │ │ │ ├── ToDoList │ │ │ │ │ ├── List.css │ │ │ │ │ ├── List.js │ │ │ │ │ ├── ListItem.css │ │ │ │ │ ├── ListItem.js │ │ │ │ │ └── index.js │ │ │ │ ├── Toggle │ │ │ │ │ └── index.js │ │ │ │ ├── console.js │ │ │ │ ├── index.js │ │ │ │ └── styles.css │ │ │ └── devtools.js │ │ └── webpack.config.js │ ├── react-devtools │ │ ├── CHANGELOG.md │ │ ├── OVERVIEW.md │ │ ├── README.md │ │ ├── app.html │ │ ├── app.js │ │ ├── bin.js │ │ ├── icons │ │ │ └── icon128.png │ │ ├── index.js │ │ └── package.json │ ├── react-dom │ │ ├── README.md │ │ ├── index.classic.fb.js │ │ ├── index.experimental.js │ │ ├── index.js │ │ ├── index.modern.fb.js │ │ ├── index.stable.js │ │ ├── npm │ │ │ ├── index.js │ │ │ ├── profiling.js │ │ │ ├── server.browser.js │ │ │ ├── server.js │ │ │ ├── server.node.js │ │ │ ├── test-utils.js │ │ │ ├── testing.js │ │ │ ├── unstable-fizz.browser.js │ │ │ ├── unstable-fizz.js │ │ │ └── unstable-fizz.node.js │ │ ├── package.json │ │ ├── server.browser.js │ │ ├── server.js │ │ ├── server.node.js │ │ ├── src │ │ │ ├── __tests__ │ │ │ │ ├── CSSPropertyOperations-test.js │ │ │ │ ├── DOMPropertyOperations-test.js │ │ │ │ ├── InvalidEventListeners-test.js │ │ │ │ ├── ReactBrowserEventEmitter-test.js │ │ │ │ ├── ReactChildReconciler-test.js │ │ │ │ ├── ReactComponent-test.js │ │ │ │ ├── ReactComponentLifeCycle-test.js │ │ │ │ ├── ReactCompositeComponent-test.js │ │ │ │ ├── ReactCompositeComponentDOMMinimalism-test.js │ │ │ │ ├── ReactCompositeComponentNestedState-test.js │ │ │ │ ├── ReactCompositeComponentState-test.js │ │ │ │ ├── ReactDOM-test.js │ │ │ │ ├── ReactDOMAttribute-test.js │ │ │ │ ├── ReactDOMComponent-test.js │ │ │ │ ├── ReactDOMComponentTree-test.js │ │ │ │ ├── ReactDOMEventListener-test.js │ │ │ │ ├── ReactDOMEventPropagation-test.js │ │ │ │ ├── ReactDOMFiber-test.js │ │ │ │ ├── ReactDOMFiberAsync-test.js │ │ │ │ ├── ReactDOMFizzServerBrowser-test.js │ │ │ │ ├── ReactDOMFizzServerNode-test.js │ │ │ │ ├── ReactDOMHooks-test.js │ │ │ │ ├── ReactDOMIframe-test.js │ │ │ │ ├── ReactDOMInput-test.js │ │ │ │ ├── ReactDOMInvalidARIAHook-test.js │ │ │ │ ├── ReactDOMNativeEventHeuristic-test.js │ │ │ │ ├── ReactDOMOption-test.js │ │ │ │ ├── ReactDOMRoot-test.js │ │ │ │ ├── ReactDOMSVG-test.js │ │ │ │ ├── ReactDOMSelect-test.js │ │ │ │ ├── ReactDOMSelection-test.internal.js │ │ │ │ ├── ReactDOMServerIntegrationAttributes-test.js │ │ │ │ ├── ReactDOMServerIntegrationBasic-test.js │ │ │ │ ├── ReactDOMServerIntegrationCheckbox-test.js │ │ │ │ ├── ReactDOMServerIntegrationClassContextType-test.js │ │ │ │ ├── ReactDOMServerIntegrationElements-test.js │ │ │ │ ├── ReactDOMServerIntegrationFragment-test.js │ │ │ │ ├── ReactDOMServerIntegrationHooks-test.js │ │ │ │ ├── ReactDOMServerIntegrationInput-test.js │ │ │ │ ├── ReactDOMServerIntegrationLegacyContext-test.js │ │ │ │ ├── ReactDOMServerIntegrationLegacyContextDisabled-test.internal.js │ │ │ │ ├── ReactDOMServerIntegrationModes-test.js │ │ │ │ ├── ReactDOMServerIntegrationNewContext-test.js │ │ │ │ ├── ReactDOMServerIntegrationReconnecting-test.js │ │ │ │ ├── ReactDOMServerIntegrationRefs-test.js │ │ │ │ ├── ReactDOMServerIntegrationSelect-test.js │ │ │ │ ├── ReactDOMServerIntegrationSpecialTypes-test.js │ │ │ │ ├── ReactDOMServerIntegrationTextarea-test.js │ │ │ │ ├── ReactDOMServerIntegrationUntrustedURL-test.internal.js │ │ │ │ ├── ReactDOMServerIntegrationUserInteraction-test.js │ │ │ │ ├── ReactDOMServerLifecycles-test.js │ │ │ │ ├── ReactDOMServerPartialHydration-test.internal.js │ │ │ │ ├── ReactDOMServerSelectiveHydration-test.internal.js │ │ │ │ ├── ReactDOMServerSuspense-test.internal.js │ │ │ │ ├── ReactDOMShorthandCSSPropertyCollision-test.js │ │ │ │ ├── ReactDOMSuspensePlaceholder-test.js │ │ │ │ ├── ReactDOMTestSelectors-test.internal.js │ │ │ │ ├── ReactDOMTextComponent-test.js │ │ │ │ ├── ReactDOMTextarea-test.js │ │ │ │ ├── ReactDOMserverIntegrationProgress-test.js │ │ │ │ ├── ReactDeprecationWarnings-test.internal.js │ │ │ │ ├── ReactEmptyComponent-test.js │ │ │ │ ├── ReactErrorBoundaries-test.internal.js │ │ │ │ ├── ReactErrorBoundariesHooks-test.internal.js │ │ │ │ ├── ReactErrorLoggingRecovery-test.js │ │ │ │ ├── ReactEventIndependence-test.js │ │ │ │ ├── ReactFunctionComponent-test.js │ │ │ │ ├── ReactIdentity-test.js │ │ │ │ ├── ReactLegacyContextDisabled-test.internal.js │ │ │ │ ├── ReactLegacyErrorBoundaries-test.internal.js │ │ │ │ ├── ReactMockedComponent-test.js │ │ │ │ ├── ReactMount-test.js │ │ │ │ ├── ReactMountDestruction-test.js │ │ │ │ ├── ReactMultiChild-test.js │ │ │ │ ├── ReactMultiChildReconcile-test.js │ │ │ │ ├── ReactMultiChildText-test.js │ │ │ │ ├── ReactRenderDocument-test.js │ │ │ │ ├── ReactServerRendering-test.js │ │ │ │ ├── ReactServerRenderingBrowser-test.js │ │ │ │ ├── ReactServerRenderingHydration-test.js │ │ │ │ ├── ReactTestUtils-test.js │ │ │ │ ├── ReactTestUtilsAct-test.js │ │ │ │ ├── ReactTestUtilsActUnmockedScheduler-test.js │ │ │ │ ├── ReactTreeTraversal-test.js │ │ │ │ ├── ReactUnmockedSchedulerWarning-test.internal.js │ │ │ │ ├── ReactUnmockedSchedulerWarning-test.js │ │ │ │ ├── ReactUpdates-test.js │ │ │ │ ├── ReactWrongReturnPointer-test.js │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── ReactTestUtils-test.js.snap │ │ │ │ ├── escapeTextForBrowser-test.js │ │ │ │ ├── findDOMNode-test.js │ │ │ │ ├── multiple-copies-of-react-test.js │ │ │ │ ├── quoteAttributeValueForBrowser-test.js │ │ │ │ ├── refs-destruction-test.js │ │ │ │ ├── refs-test.js │ │ │ │ ├── renderSubtreeIntoContainer-test.js │ │ │ │ ├── utils │ │ │ │ │ └── ReactDOMServerIntegrationTestUtils.js │ │ │ │ └── validateDOMNesting-test.js │ │ │ ├── client │ │ │ │ ├── DOMAccessibilityRoles.js │ │ │ │ ├── DOMPropertyOperations.js │ │ │ │ ├── ReactDOM.js │ │ │ │ ├── ReactDOMComponent.js │ │ │ │ ├── ReactDOMComponentTree.js │ │ │ │ ├── ReactDOMEventHandle.js │ │ │ │ ├── ReactDOMHostConfig.js │ │ │ │ ├── ReactDOMInput.js │ │ │ │ ├── ReactDOMLegacy.js │ │ │ │ ├── ReactDOMOption.js │ │ │ │ ├── ReactDOMRoot.js │ │ │ │ ├── ReactDOMSelect.js │ │ │ │ ├── ReactDOMSelection.js │ │ │ │ ├── ReactDOMTextarea.js │ │ │ │ ├── ReactInputSelection.js │ │ │ │ ├── ToStringValue.js │ │ │ │ ├── __tests__ │ │ │ │ │ ├── dangerouslySetInnerHTML-test.js │ │ │ │ │ ├── getNodeForCharacterOffset-test.js │ │ │ │ │ └── trustedTypes-test.internal.js │ │ │ │ ├── getActiveElement.js │ │ │ │ ├── getNodeForCharacterOffset.js │ │ │ │ ├── inputValueTracking.js │ │ │ │ ├── setInnerHTML.js │ │ │ │ ├── setTextContent.js │ │ │ │ └── validateDOMNesting.js │ │ │ ├── events │ │ │ │ ├── DOMEventNames.js │ │ │ │ ├── DOMEventProperties.js │ │ │ │ ├── DOMPluginEventSystem.js │ │ │ │ ├── EventListener.js │ │ │ │ ├── EventRegistry.js │ │ │ │ ├── EventSystemFlags.js │ │ │ │ ├── FallbackCompositionState.js │ │ │ │ ├── PluginModuleType.js │ │ │ │ ├── ReactDOMControlledComponent.js │ │ │ │ ├── ReactDOMEventListener.js │ │ │ │ ├── ReactDOMEventReplaying.js │ │ │ │ ├── ReactDOMUpdateBatching.js │ │ │ │ ├── ReactSyntheticEventType.js │ │ │ │ ├── SyntheticEvent.js │ │ │ │ ├── TopLevelEventTypes.js │ │ │ │ ├── __tests__ │ │ │ │ │ ├── DOMPluginEventSystem-test.internal.js │ │ │ │ │ ├── SyntheticClipboardEvent-test.js │ │ │ │ │ ├── SyntheticEvent-test.js │ │ │ │ │ ├── SyntheticFocusEvent-test.js │ │ │ │ │ ├── SyntheticKeyboardEvent-test.js │ │ │ │ │ ├── SyntheticMouseEvent-test.js │ │ │ │ │ ├── SyntheticWheelEvent-test.js │ │ │ │ │ └── getEventKey-test.js │ │ │ │ ├── checkPassiveEvents.js │ │ │ │ ├── forks │ │ │ │ │ └── EventListener-www.js │ │ │ │ ├── getEventCharCode.js │ │ │ │ ├── getEventTarget.js │ │ │ │ ├── getListener.js │ │ │ │ ├── getVendorPrefixedEventName.js │ │ │ │ ├── isEventSupported.js │ │ │ │ ├── isTextInputElement.js │ │ │ │ └── plugins │ │ │ │ │ ├── BeforeInputEventPlugin.js │ │ │ │ │ ├── ChangeEventPlugin.js │ │ │ │ │ ├── EnterLeaveEventPlugin.js │ │ │ │ │ ├── SelectEventPlugin.js │ │ │ │ │ ├── SimpleEventPlugin.js │ │ │ │ │ └── __tests__ │ │ │ │ │ ├── BeforeInputEventPlugin-test.js │ │ │ │ │ ├── ChangeEventPlugin-test.js │ │ │ │ │ ├── EnterLeaveEventPlugin-test.js │ │ │ │ │ ├── SelectEventPlugin-test.js │ │ │ │ │ └── SimpleEventPlugin-test.js │ │ │ ├── server │ │ │ │ ├── DOMMarkupOperations.js │ │ │ │ ├── ReactDOMFizzServerBrowser.js │ │ │ │ ├── ReactDOMFizzServerNode.js │ │ │ │ ├── ReactDOMNodeStreamRenderer.js │ │ │ │ ├── ReactDOMServerBrowser.js │ │ │ │ ├── ReactDOMServerNode.js │ │ │ │ ├── ReactDOMStringRenderer.js │ │ │ │ ├── ReactPartialRenderer.js │ │ │ │ ├── ReactPartialRendererContext.js │ │ │ │ ├── ReactPartialRendererHooks.js │ │ │ │ ├── ReactThreadIDAllocator.js │ │ │ │ ├── escapeTextForBrowser.js │ │ │ │ └── quoteAttributeValueForBrowser.js │ │ │ ├── shared │ │ │ │ ├── CSSProperty.js │ │ │ │ ├── CSSPropertyOperations.js │ │ │ │ ├── CSSShorthandProperty.js │ │ │ │ ├── DOMNamespaces.js │ │ │ │ ├── DOMProperty.js │ │ │ │ ├── HTMLNodeType.js │ │ │ │ ├── ReactControlledValuePropTypes.js │ │ │ │ ├── ReactDOMInvalidARIAHook.js │ │ │ │ ├── ReactDOMNullInputValuePropHook.js │ │ │ │ ├── ReactDOMTypes.js │ │ │ │ ├── ReactDOMUnknownPropertyHook.js │ │ │ │ ├── assertValidProps.js │ │ │ │ ├── checkReact.js │ │ │ │ ├── createMicrosoftUnsafeLocalFunction.js │ │ │ │ ├── dangerousStyleValue.js │ │ │ │ ├── hyphenateStyleName.js │ │ │ │ ├── isCustomComponent.js │ │ │ │ ├── omittedCloseTags.js │ │ │ │ ├── possibleStandardNames.js │ │ │ │ ├── sanitizeURL.js │ │ │ │ ├── validAriaProperties.js │ │ │ │ ├── voidElementTags.js │ │ │ │ └── warnValidStyle.js │ │ │ └── test-utils │ │ │ │ ├── ReactTestUtils.js │ │ │ │ ├── ReactTestUtilsInternalAct.js │ │ │ │ └── ReactTestUtilsPublicAct.js │ │ ├── test-utils.js │ │ ├── testing.classic.fb.js │ │ ├── testing.experimental.js │ │ ├── testing.js │ │ ├── testing.modern.fb.js │ │ ├── testing.stable.js │ │ ├── unstable-fizz.browser.js │ │ ├── unstable-fizz.js │ │ └── unstable-fizz.node.js │ ├── react-fetch │ │ ├── README.md │ │ ├── index.browser.js │ │ ├── index.js │ │ ├── index.node.js │ │ ├── npm │ │ │ ├── index.browser.js │ │ │ ├── index.js │ │ │ └── index.node.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactFetchBrowser.js │ │ │ ├── ReactFetchNode.js │ │ │ └── __tests__ │ │ │ ├── ReactFetchBrowser-test.js │ │ │ └── ReactFetchNode-test.js │ ├── react-fs │ │ ├── README.md │ │ ├── index.browser.server.js │ │ ├── index.js │ │ ├── index.node.server.js │ │ ├── npm │ │ │ ├── index.browser.server.js │ │ │ ├── index.js │ │ │ └── index.node.server.js │ │ ├── package.json │ │ └── src │ │ │ └── ReactFilesystem.js │ ├── react-interactions │ │ ├── README.md │ │ ├── events │ │ │ ├── focus.js │ │ │ └── src │ │ │ │ └── dom │ │ │ │ └── create-event-handle │ │ │ │ ├── Focus.js │ │ │ │ ├── __tests__ │ │ │ │ ├── useFocus-test.internal.js │ │ │ │ └── useFocusWithin-test.internal.js │ │ │ │ └── useEvent.js │ │ ├── npm │ │ │ ├── drag.js │ │ │ ├── focus.js │ │ │ ├── hover.js │ │ │ ├── input.js │ │ │ ├── press-legacy.js │ │ │ ├── press.js │ │ │ ├── scroll.js │ │ │ ├── swipe.js │ │ │ └── tap.js │ │ └── package.json │ ├── react-is │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactIs.js │ │ │ └── __tests__ │ │ │ └── ReactIs-test.js │ ├── react-native-renderer │ │ ├── fabric.js │ │ ├── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── NativeMethodsMixinUtils.js │ │ │ ├── ReactFabric.js │ │ │ ├── ReactFabricComponentTree.js │ │ │ ├── ReactFabricEventEmitter.js │ │ │ ├── ReactFabricGlobalResponderHandler.js │ │ │ ├── ReactFabricHostConfig.js │ │ │ ├── ReactFabricInjection.js │ │ │ ├── ReactNativeAttributePayload.js │ │ │ ├── ReactNativeBridgeEventPlugin.js │ │ │ ├── ReactNativeComponentTree.js │ │ │ ├── ReactNativeEventEmitter.js │ │ │ ├── ReactNativeEventPluginOrder.js │ │ │ ├── ReactNativeFiberHostComponent.js │ │ │ ├── ReactNativeFiberInspector.js │ │ │ ├── ReactNativeGetListener.js │ │ │ ├── ReactNativeGlobalResponderHandler.js │ │ │ ├── ReactNativeHostConfig.js │ │ │ ├── ReactNativeInjection.js │ │ │ ├── ReactNativeInjectionShared.js │ │ │ ├── ReactNativeRenderer.js │ │ │ ├── ReactNativeTypes.js │ │ │ ├── __mocks__ │ │ │ └── react-native │ │ │ │ └── Libraries │ │ │ │ └── ReactPrivate │ │ │ │ ├── BatchedBridge.js │ │ │ │ ├── ExceptionsManager.js │ │ │ │ ├── InitializeNativeFabricUIManager.js │ │ │ │ ├── Platform.js │ │ │ │ ├── RCTEventEmitter.js │ │ │ │ ├── ReactFiberErrorDialog.js │ │ │ │ ├── ReactNativePrivateInitializeCore.js │ │ │ │ ├── ReactNativePrivateInterface.js │ │ │ │ ├── ReactNativeViewConfigRegistry.js │ │ │ │ ├── TextInputState.js │ │ │ │ ├── UIManager.js │ │ │ │ ├── deepDiffer.js │ │ │ │ ├── deepFreezeAndThrowOnMutationInDev.js │ │ │ │ ├── flattenStyle.js │ │ │ │ └── legacySendAccessibilityEvent.js │ │ │ ├── __tests__ │ │ │ ├── EventPluginRegistry-test.internal.js │ │ │ ├── ReactFabric-test.internal.js │ │ │ ├── ReactFabricAndNative-test.internal.js │ │ │ ├── ReactNativeAttributePayload-test.js │ │ │ ├── ReactNativeError-test.internal.js │ │ │ ├── ReactNativeEvents-test.internal.js │ │ │ ├── ReactNativeMount-test.internal.js │ │ │ ├── ResponderEventPlugin-test.internal.js │ │ │ ├── __snapshots__ │ │ │ │ ├── ReactFabric-test.internal.js.snap │ │ │ │ ├── ReactNativeEvents-test.internal.js.snap │ │ │ │ └── ReactNativeMount-test.internal.js.snap │ │ │ └── createReactNativeComponentClass-test.internal.js │ │ │ └── legacy-events │ │ │ ├── EventBatching.js │ │ │ ├── EventPluginRegistry.js │ │ │ ├── EventPluginUtils.js │ │ │ ├── PluginModuleType.js │ │ │ ├── ReactGenericBatching.js │ │ │ ├── ReactSyntheticEventType.js │ │ │ ├── ResponderEventPlugin.js │ │ │ ├── ResponderSyntheticEvent.js │ │ │ ├── ResponderTopLevelEventTypes.js │ │ │ ├── ResponderTouchHistoryStore.js │ │ │ ├── SyntheticEvent.js │ │ │ ├── TopLevelEventTypes.js │ │ │ ├── accumulate.js │ │ │ ├── accumulateInto.js │ │ │ └── forEachAccumulated.js │ ├── react-noop-renderer │ │ ├── README.md │ │ ├── flight-client.js │ │ ├── flight-modules.js │ │ ├── flight-server.js │ │ ├── index.js │ │ ├── npm │ │ │ ├── flight-client.js │ │ │ ├── flight-modules.js │ │ │ ├── flight-server.js │ │ │ ├── index.js │ │ │ ├── persistent.js │ │ │ └── server.js │ │ ├── package.json │ │ ├── persistent.js │ │ ├── server.js │ │ └── src │ │ │ ├── ReactNoop.js │ │ │ ├── ReactNoopFlightClient.js │ │ │ ├── ReactNoopFlightServer.js │ │ │ ├── ReactNoopPersistent.js │ │ │ ├── ReactNoopServer.js │ │ │ └── createReactNoop.js │ ├── react-pg │ │ ├── README.md │ │ ├── index.browser.server.js │ │ ├── index.js │ │ ├── index.node.server.js │ │ ├── npm │ │ │ ├── index.browser.server.js │ │ │ ├── index.js │ │ │ └── index.node.server.js │ │ ├── package.json │ │ └── src │ │ │ └── ReactPostgres.js │ ├── react-reconciler │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ ├── index.js │ │ │ └── reflection.js │ │ ├── package.json │ │ ├── reflection.js │ │ └── src │ │ │ ├── DebugTracing.js │ │ │ ├── MaxInts.js │ │ │ ├── ReactCapturedValue.js │ │ │ ├── ReactChildFiber.new.js │ │ │ ├── ReactChildFiber.old.js │ │ │ ├── ReactCurrentFiber.js │ │ │ ├── ReactFiber.new.js │ │ │ ├── ReactFiber.old.js │ │ │ ├── ReactFiberBeginWork.new.js │ │ │ ├── ReactFiberBeginWork.old.js │ │ │ ├── ReactFiberCacheComponent.new.js │ │ │ ├── ReactFiberCacheComponent.old.js │ │ │ ├── ReactFiberClassComponent.new.js │ │ │ ├── ReactFiberClassComponent.old.js │ │ │ ├── ReactFiberCommitWork.new.js │ │ │ ├── ReactFiberCommitWork.old.js │ │ │ ├── ReactFiberCompleteWork.new.js │ │ │ ├── ReactFiberCompleteWork.old.js │ │ │ ├── ReactFiberComponentStack.js │ │ │ ├── ReactFiberContext.new.js │ │ │ ├── ReactFiberContext.old.js │ │ │ ├── ReactFiberDevToolsHook.new.js │ │ │ ├── ReactFiberDevToolsHook.old.js │ │ │ ├── ReactFiberErrorDialog.js │ │ │ ├── ReactFiberErrorLogger.js │ │ │ ├── ReactFiberFlags.js │ │ │ ├── ReactFiberHooks.new.js │ │ │ ├── ReactFiberHooks.old.js │ │ │ ├── ReactFiberHostConfig.js │ │ │ ├── ReactFiberHostConfigWithNoHydration.js │ │ │ ├── ReactFiberHostConfigWithNoMicrotasks.js │ │ │ ├── ReactFiberHostConfigWithNoMutation.js │ │ │ ├── ReactFiberHostConfigWithNoPersistence.js │ │ │ ├── ReactFiberHostConfigWithNoScopes.js │ │ │ ├── ReactFiberHostConfigWithNoTestSelectors.js │ │ │ ├── ReactFiberHostContext.new.js │ │ │ ├── ReactFiberHostContext.old.js │ │ │ ├── ReactFiberHotReloading.js │ │ │ ├── ReactFiberHotReloading.new.js │ │ │ ├── ReactFiberHotReloading.old.js │ │ │ ├── ReactFiberHydrationContext.new.js │ │ │ ├── ReactFiberHydrationContext.old.js │ │ │ ├── ReactFiberInterleavedUpdates.new.js │ │ │ ├── ReactFiberInterleavedUpdates.old.js │ │ │ ├── ReactFiberLane.new.js │ │ │ ├── ReactFiberLane.old.js │ │ │ ├── ReactFiberLazyComponent.new.js │ │ │ ├── ReactFiberLazyComponent.old.js │ │ │ ├── ReactFiberNewContext.new.js │ │ │ ├── ReactFiberNewContext.old.js │ │ │ ├── ReactFiberOffscreenComponent.js │ │ │ ├── ReactFiberReconciler.js │ │ │ ├── ReactFiberReconciler.new.js │ │ │ ├── ReactFiberReconciler.old.js │ │ │ ├── ReactFiberRoot.new.js │ │ │ ├── ReactFiberRoot.old.js │ │ │ ├── ReactFiberScope.new.js │ │ │ ├── ReactFiberScope.old.js │ │ │ ├── ReactFiberStack.new.js │ │ │ ├── ReactFiberStack.old.js │ │ │ ├── ReactFiberSuspenseComponent.new.js │ │ │ ├── ReactFiberSuspenseComponent.old.js │ │ │ ├── ReactFiberSuspenseContext.new.js │ │ │ ├── ReactFiberSuspenseContext.old.js │ │ │ ├── ReactFiberThrow.new.js │ │ │ ├── ReactFiberThrow.old.js │ │ │ ├── ReactFiberTransition.js │ │ │ ├── ReactFiberTreeReflection.js │ │ │ ├── ReactFiberUnwindWork.new.js │ │ │ ├── ReactFiberUnwindWork.old.js │ │ │ ├── ReactFiberWorkLoop.new.js │ │ │ ├── ReactFiberWorkLoop.old.js │ │ │ ├── ReactHookEffectTags.js │ │ │ ├── ReactInternalTypes.js │ │ │ ├── ReactMutableSource.new.js │ │ │ ├── ReactMutableSource.old.js │ │ │ ├── ReactPortal.js │ │ │ ├── ReactProfilerTimer.new.js │ │ │ ├── ReactProfilerTimer.old.js │ │ │ ├── ReactRootTags.js │ │ │ ├── ReactStrictModeWarnings.new.js │ │ │ ├── ReactStrictModeWarnings.old.js │ │ │ ├── ReactTestSelectors.js │ │ │ ├── ReactTypeOfMode.js │ │ │ ├── ReactUpdateQueue.new.js │ │ │ ├── ReactUpdateQueue.old.js │ │ │ ├── ReactWorkTags.js │ │ │ ├── SchedulerWithReactIntegration.new.js │ │ │ ├── SchedulerWithReactIntegration.old.js │ │ │ ├── SchedulingProfiler.js │ │ │ ├── __tests__ │ │ │ ├── DebugTracing-test.internal.js │ │ │ ├── ErrorBoundaryReconciliation-test.internal.js │ │ │ ├── ReactBatchedMode-test.internal.js │ │ │ ├── ReactCPUSuspense-test.js │ │ │ ├── ReactCache-test.js │ │ │ ├── ReactDisableSchedulerTimeoutBasedOnReactExpirationTime-test.internal.js │ │ │ ├── ReactDoubleInvokeEvents-test.internal.js │ │ │ ├── ReactDoubleInvokeEvents-test.js │ │ │ ├── ReactEffectOrdering-test.js │ │ │ ├── ReactExpiration-test.js │ │ │ ├── ReactFiberHostContext-test.internal.js │ │ │ ├── ReactFragment-test.js │ │ │ ├── ReactHooks-test.internal.js │ │ │ ├── ReactHooksWithNoopRenderer-test.js │ │ │ ├── ReactIncremental-test.js │ │ │ ├── ReactIncrementalErrorHandling-test.internal.js │ │ │ ├── ReactIncrementalErrorLogging-test.js │ │ │ ├── ReactIncrementalErrorReplay-test.internal.js │ │ │ ├── ReactIncrementalErrorReplay-test.js │ │ │ ├── ReactIncrementalReflection-test.js │ │ │ ├── ReactIncrementalScheduling-test.js │ │ │ ├── ReactIncrementalSideEffects-test.js │ │ │ ├── ReactIncrementalTriangle-test.js │ │ │ ├── ReactIncrementalUpdates-test.js │ │ │ ├── ReactIncrementalUpdatesMinimalism-test.js │ │ │ ├── ReactInterleavedUpdates-test.js │ │ │ ├── ReactLazy-test.internal.js │ │ │ ├── ReactMemo-test.js │ │ │ ├── ReactNewContext-test.js │ │ │ ├── ReactNoopRendererAct-test.js │ │ │ ├── ReactOffscreen-test.js │ │ │ ├── ReactPersistent-test.js │ │ │ ├── ReactPersistentUpdatesMinimalism-test.js │ │ │ ├── ReactSchedulerIntegration-test.js │ │ │ ├── ReactScope-test.internal.js │ │ │ ├── ReactSuspense-test.internal.js │ │ │ ├── ReactSuspenseCallback-test.internal.js │ │ │ ├── ReactSuspenseFuzz-test.internal.js │ │ │ ├── ReactSuspenseList-test.js │ │ │ ├── ReactSuspensePlaceholder-test.internal.js │ │ │ ├── ReactSuspenseWithNoopRenderer-test.js │ │ │ ├── ReactTopLevelFragment-test.js │ │ │ ├── ReactTopLevelText-test.js │ │ │ ├── ReactTracing-test.internal.js │ │ │ ├── ReactTransition-test.js │ │ │ ├── SchedulingProfiler-test.internal.js │ │ │ ├── __snapshots__ │ │ │ │ └── ReactHooks-test.internal.js.snap │ │ │ ├── useMutableSource-test.internal.js │ │ │ ├── useMutableSourceHydration-test.js │ │ │ └── useRef-test.internal.js │ │ │ └── forks │ │ │ ├── ReactFiberErrorDialog.native.js │ │ │ ├── ReactFiberErrorDialog.www.js │ │ │ ├── ReactFiberHostConfig.art.js │ │ │ ├── ReactFiberHostConfig.custom.js │ │ │ ├── ReactFiberHostConfig.dom-browser.js │ │ │ ├── ReactFiberHostConfig.dom-relay.js │ │ │ ├── ReactFiberHostConfig.dom.js │ │ │ ├── ReactFiberHostConfig.fabric.js │ │ │ ├── ReactFiberHostConfig.native-relay.js │ │ │ ├── ReactFiberHostConfig.native.js │ │ │ └── ReactFiberHostConfig.test.js │ ├── react-refresh │ │ ├── README.md │ │ ├── babel.js │ │ ├── npm │ │ │ ├── babel.js │ │ │ └── runtime.js │ │ ├── package.json │ │ ├── runtime.js │ │ └── src │ │ │ ├── ReactFreshBabelPlugin.js │ │ │ ├── ReactFreshRuntime.js │ │ │ └── __tests__ │ │ │ ├── ReactFresh-test.js │ │ │ ├── ReactFreshBabelPlugin-test.js │ │ │ ├── ReactFreshIntegration-test.js │ │ │ ├── ReactFreshMultipleRenderer-test.internal.js │ │ │ └── __snapshots__ │ │ │ └── ReactFreshBabelPlugin-test.js.snap │ ├── react-server-dom-relay │ │ ├── index.js │ │ ├── package.json │ │ ├── server.js │ │ └── src │ │ │ ├── ReactFlightDOMRelayClient.js │ │ │ ├── ReactFlightDOMRelayClientHostConfig.js │ │ │ ├── ReactFlightDOMRelayProtocol.js │ │ │ ├── ReactFlightDOMRelayServer.js │ │ │ ├── ReactFlightDOMRelayServerHostConfig.js │ │ │ ├── __mocks__ │ │ │ ├── JSResourceReference.js │ │ │ ├── ReactFlightDOMRelayClientIntegration.js │ │ │ └── ReactFlightDOMRelayServerIntegration.js │ │ │ └── __tests__ │ │ │ └── ReactFlightDOMRelay-test.internal.js │ ├── react-server-dom-webpack │ │ ├── README.md │ │ ├── esm │ │ │ ├── package.json │ │ │ └── react-server-dom-webpack-node-loader.js │ │ ├── index.js │ │ ├── node-register.js │ │ ├── npm │ │ │ ├── esm │ │ │ │ └── package.json │ │ │ ├── index.js │ │ │ ├── node-register.js │ │ │ ├── plugin.js │ │ │ ├── writer.browser.server.js │ │ │ ├── writer.js │ │ │ └── writer.node.server.js │ │ ├── package.json │ │ ├── plugin.js │ │ ├── src │ │ │ ├── ReactFlightClientWebpackBundlerConfig.js │ │ │ ├── ReactFlightDOMClient.js │ │ │ ├── ReactFlightDOMServerBrowser.js │ │ │ ├── ReactFlightDOMServerNode.js │ │ │ ├── ReactFlightServerWebpackBundlerConfig.js │ │ │ ├── ReactFlightWebpackNodeLoader.js │ │ │ ├── ReactFlightWebpackNodeRegister.js │ │ │ ├── ReactFlightWebpackPlugin.js │ │ │ └── __tests__ │ │ │ │ ├── ReactFlightDOM-test.js │ │ │ │ └── ReactFlightDOMBrowser-test.js │ │ ├── writer.browser.server.js │ │ ├── writer.js │ │ └── writer.node.server.js │ ├── react-server-native-relay │ │ ├── index.js │ │ ├── package.json │ │ ├── server.js │ │ └── src │ │ │ ├── ReactFlightNativeRelayClient.js │ │ │ ├── ReactFlightNativeRelayClientHostConfig.js │ │ │ ├── ReactFlightNativeRelayProtocol.js │ │ │ ├── ReactFlightNativeRelayServer.js │ │ │ ├── ReactFlightNativeRelayServerHostConfig.js │ │ │ ├── __mocks__ │ │ │ ├── JSResourceReferenceImpl.js │ │ │ ├── ReactFlightNativeRelayClientIntegration.js │ │ │ └── ReactFlightNativeRelayServerIntegration.js │ │ │ └── __tests__ │ │ │ ├── ReactFlightNativeRelay-test.internal.js │ │ │ └── __snapshots__ │ │ │ └── ReactFlightNativeRelay-test.internal.js.snap │ ├── react-server │ │ ├── README.md │ │ ├── flight.js │ │ ├── index.js │ │ ├── npm │ │ │ ├── flight.js │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── ReactDOMServerFormatConfig.js │ │ │ ├── ReactFizzServer.js │ │ │ ├── ReactFlightServer.js │ │ │ ├── ReactFlightServerBundlerConfigCustom.js │ │ │ ├── ReactFlightServerConfig.js │ │ │ ├── ReactFlightServerConfigStream.js │ │ │ ├── ReactNativeServerFormatConfig.js │ │ │ ├── ReactServerFormatConfig.js │ │ │ ├── ReactServerStreamConfig.js │ │ │ ├── ReactServerStreamConfigBrowser.js │ │ │ ├── ReactServerStreamConfigNode.js │ │ │ ├── __tests__ │ │ │ └── ReactServer-test.js │ │ │ └── forks │ │ │ ├── ReactFlightServerConfig.custom.js │ │ │ ├── ReactFlightServerConfig.dom-browser.js │ │ │ ├── ReactFlightServerConfig.dom-relay.js │ │ │ ├── ReactFlightServerConfig.dom.js │ │ │ ├── ReactFlightServerConfig.native-relay.js │ │ │ ├── ReactServerFormatConfig.custom.js │ │ │ ├── ReactServerFormatConfig.dom-browser.js │ │ │ ├── ReactServerFormatConfig.dom-relay.js │ │ │ ├── ReactServerFormatConfig.dom.js │ │ │ ├── ReactServerFormatConfig.native-relay.js │ │ │ ├── ReactServerStreamConfig.custom.js │ │ │ ├── ReactServerStreamConfig.dom-browser.js │ │ │ ├── ReactServerStreamConfig.dom-relay.js │ │ │ ├── ReactServerStreamConfig.dom.js │ │ │ └── ReactServerStreamConfig.native-relay.js │ ├── react-suspense-test-utils │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ │ └── ReactSuspenseTestUtils.js │ ├── react-test-renderer │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ ├── index.js │ │ │ └── shallow.js │ │ ├── package.json │ │ ├── shallow.js │ │ └── src │ │ │ ├── ReactTestHostConfig.js │ │ │ ├── ReactTestRenderer.js │ │ │ └── __tests__ │ │ │ ├── ReactShallowRenderer-test.js │ │ │ ├── ReactShallowRendererHooks-test.js │ │ │ ├── ReactShallowRendererMemo-test.js │ │ │ ├── ReactTestRenderer-test.internal.js │ │ │ ├── ReactTestRenderer-test.js │ │ │ ├── ReactTestRendererAct-test.js │ │ │ ├── ReactTestRendererAsync-test.js │ │ │ └── ReactTestRendererTraversal-test.js │ ├── react │ │ ├── README.md │ │ ├── index.classic.fb.js │ │ ├── index.experimental.js │ │ ├── index.js │ │ ├── index.modern.fb.js │ │ ├── index.stable.js │ │ ├── jsx-dev-runtime.js │ │ ├── jsx-runtime.js │ │ ├── npm │ │ │ ├── index.js │ │ │ ├── jsx-dev-runtime.js │ │ │ ├── jsx-runtime.js │ │ │ ├── unstable-cache.js │ │ │ └── unstable-shared-subset.js │ │ ├── package.json │ │ ├── src │ │ │ ├── BadMapPolyfill.js │ │ │ ├── IsSomeRendererActing.js │ │ │ ├── React.js │ │ │ ├── ReactBaseClasses.js │ │ │ ├── ReactChildren.js │ │ │ ├── ReactContext.js │ │ │ ├── ReactCreateRef.js │ │ │ ├── ReactCurrentBatchConfig.js │ │ │ ├── ReactCurrentDispatcher.js │ │ │ ├── ReactCurrentOwner.js │ │ │ ├── ReactDebugCurrentFrame.js │ │ │ ├── ReactElement.js │ │ │ ├── ReactElementValidator.js │ │ │ ├── ReactForwardRef.js │ │ │ ├── ReactHooks.js │ │ │ ├── ReactLazy.js │ │ │ ├── ReactMemo.js │ │ │ ├── ReactMutableSource.js │ │ │ ├── ReactNoopUpdateQueue.js │ │ │ ├── ReactSharedInternals.js │ │ │ ├── ReactStartTransition.js │ │ │ ├── __tests__ │ │ │ │ ├── ReactChildren-test.js │ │ │ │ ├── ReactClassEquivalence-test.js │ │ │ │ ├── ReactCoffeeScriptClass-test.coffee │ │ │ │ ├── ReactContextValidator-test.js │ │ │ │ ├── ReactCreateRef-test.js │ │ │ │ ├── ReactDOMTracing-test.internal.js │ │ │ │ ├── ReactES6Class-test.js │ │ │ │ ├── ReactElement-test.js │ │ │ │ ├── ReactElementClone-test.js │ │ │ │ ├── ReactElementJSX-test.js │ │ │ │ ├── ReactElementValidator-test.internal.js │ │ │ │ ├── ReactJSXElement-test.js │ │ │ │ ├── ReactJSXElementValidator-test.js │ │ │ │ ├── ReactProfiler-test.internal.js │ │ │ │ ├── ReactProfilerDOM-test.internal.js │ │ │ │ ├── ReactProfilerDevToolsIntegration-test.internal.js │ │ │ │ ├── ReactPureComponent-test.js │ │ │ │ ├── ReactStrictMode-test.js │ │ │ │ ├── ReactTypeScriptClass-test.ts │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── ReactProfiler-test.internal.js.snap │ │ │ │ ├── createReactClassIntegration-test.js │ │ │ │ ├── forwardRef-test.internal.js │ │ │ │ ├── forwardRef-test.js │ │ │ │ ├── onlyChild-test.js │ │ │ │ └── testDefinitions │ │ │ │ │ ├── PropTypes.d.ts │ │ │ │ │ ├── React.d.ts │ │ │ │ │ └── ReactDOM.d.ts │ │ │ ├── forks │ │ │ │ ├── ReactCurrentDispatcher.www.js │ │ │ │ ├── ReactCurrentOwner.www.js │ │ │ │ └── ReactSharedInternals.umd.js │ │ │ └── jsx │ │ │ │ ├── ReactJSX.js │ │ │ │ ├── ReactJSXElement.js │ │ │ │ └── ReactJSXElementValidator.js │ │ ├── unstable-shared-subset.experimental.js │ │ └── unstable-shared-subset.js │ ├── scheduler │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ │ ├── index.js │ │ │ ├── tracing-profiling.js │ │ │ ├── tracing.js │ │ │ ├── umd │ │ │ │ ├── scheduler-tracing.development.js │ │ │ │ ├── scheduler-tracing.production.min.js │ │ │ │ ├── scheduler-tracing.profiling.min.js │ │ │ │ ├── scheduler.development.js │ │ │ │ ├── scheduler.production.min.js │ │ │ │ └── scheduler.profiling.min.js │ │ │ ├── unstable_mock.js │ │ │ ├── unstable_no_dom.js │ │ │ └── unstable_post_task.js │ │ ├── package.json │ │ ├── src │ │ │ ├── SchedulerFeatureFlags.js │ │ │ ├── SchedulerMinHeap.js │ │ │ ├── SchedulerPriorities.js │ │ │ ├── SchedulerProfiling.js │ │ │ ├── Tracing.js │ │ │ ├── TracingSubscriptions.js │ │ │ ├── __tests__ │ │ │ │ ├── SchedulerDOM-test.js │ │ │ │ ├── SchedulerMock-test.js │ │ │ │ ├── SchedulerNoDOM-test.js │ │ │ │ ├── SchedulerPostTask-test.js │ │ │ │ ├── SchedulerPostTaskOnly-test.js │ │ │ │ ├── SchedulerProfiling-test.js │ │ │ │ ├── SchedulerUMDBundle-test.internal.js │ │ │ │ ├── Tracing-test.internal.js │ │ │ │ ├── Tracing-test.js │ │ │ │ └── TracingSubscriptions-test.internal.js │ │ │ └── forks │ │ │ │ ├── SchedulerDOM.js │ │ │ │ ├── SchedulerFeatureFlags.www.js │ │ │ │ ├── SchedulerMock.js │ │ │ │ ├── SchedulerNoDOM.js │ │ │ │ ├── SchedulerPostTask.js │ │ │ │ └── SchedulerPostTaskOnly.js │ │ ├── tracing.js │ │ ├── unstable_mock.js │ │ ├── unstable_no_dom.js │ │ ├── unstable_post_task.js │ │ └── unstable_post_task_only.js │ ├── shared │ │ ├── ConsolePatchingDev.js │ │ ├── ExecutionEnvironment.js │ │ ├── ReactComponentStackFrame.js │ │ ├── ReactElementType.js │ │ ├── ReactErrorUtils.js │ │ ├── ReactFeatureFlags.js │ │ ├── ReactInstanceMap.js │ │ ├── ReactSharedInternals.js │ │ ├── ReactSymbols.js │ │ ├── ReactTypes.js │ │ ├── ReactVersion.js │ │ ├── __tests__ │ │ │ ├── ReactDOMFrameScheduling-test.js │ │ │ ├── ReactError-test.internal.js │ │ │ ├── ReactErrorProd-test.internal.js │ │ │ ├── ReactErrorUtils-test.internal.js │ │ │ ├── ReactSymbols-test.internal.js │ │ │ └── describeComponentFrame-test.js │ │ ├── checkPropTypes.js │ │ ├── consoleWithStackDev.js │ │ ├── enqueueTask.js │ │ ├── forks │ │ │ ├── ReactFeatureFlags.native-fb.js │ │ │ ├── ReactFeatureFlags.native-oss.js │ │ │ ├── ReactFeatureFlags.readonly.js │ │ │ ├── ReactFeatureFlags.test-renderer.js │ │ │ ├── ReactFeatureFlags.test-renderer.native.js │ │ │ ├── ReactFeatureFlags.test-renderer.www.js │ │ │ ├── ReactFeatureFlags.testing.js │ │ │ ├── ReactFeatureFlags.testing.www.js │ │ │ ├── ReactFeatureFlags.www-dynamic.js │ │ │ ├── ReactFeatureFlags.www.js │ │ │ ├── Scheduler.umd.js │ │ │ ├── SchedulerTracing.umd.js │ │ │ ├── consoleWithStackDev.www.js │ │ │ ├── invokeGuardedCallbackImpl.www.js │ │ │ ├── object-assign.inline-umd.js │ │ │ └── object-assign.umd.js │ │ ├── formatProdErrorMessage.js │ │ ├── getComponentName.js │ │ ├── invariant.js │ │ ├── invokeGuardedCallbackImpl.js │ │ ├── isValidElementType.js │ │ ├── objectIs.js │ │ ├── package.json │ │ └── shallowEqual.js │ └── use-subscription │ │ ├── README.md │ │ ├── index.js │ │ ├── npm │ │ └── index.js │ │ ├── package.json │ │ └── src │ │ ├── __tests__ │ │ └── useSubscription-test.js │ │ └── useSubscription.js ├── scripts │ ├── authors │ ├── babel │ │ ├── __tests__ │ │ │ ├── transform-prevent-infinite-loops-test.js │ │ │ └── transform-test-gate-pragma-test.js │ │ ├── transform-object-assign-require.js │ │ ├── transform-prevent-infinite-loops.js │ │ ├── transform-replace-console-calls.js │ │ └── transform-test-gate-pragma.js │ ├── bench │ │ ├── .gitignore │ │ ├── README.md │ │ ├── benchmark.js │ │ ├── benchmarks │ │ │ ├── hacker-news │ │ │ │ ├── benchmark.js │ │ │ │ ├── build.js │ │ │ │ ├── generate.js │ │ │ │ ├── grayarrow.gif │ │ │ │ ├── index.html │ │ │ │ ├── logo.png │ │ │ │ ├── style.css │ │ │ │ └── top-stories.js │ │ │ ├── pe-class-components │ │ │ │ ├── benchmark.js │ │ │ │ ├── build.js │ │ │ │ └── index.html │ │ │ ├── pe-functional-components │ │ │ │ ├── benchmark.js │ │ │ │ ├── build.js │ │ │ │ └── index.html │ │ │ └── pe-no-components │ │ │ │ ├── benchmark.js │ │ │ │ ├── build.js │ │ │ │ └── index.html │ │ ├── build.js │ │ ├── package.json │ │ ├── runner.js │ │ ├── server.js │ │ ├── stats.js │ │ └── yarn.lock │ ├── circleci │ │ ├── add_build_info_json.sh │ │ ├── bench.sh │ │ ├── check_license.sh │ │ ├── check_minified_errors.sh │ │ ├── check_modules.sh │ │ ├── pack_and_store_artifact.sh │ │ ├── pack_and_store_devtools_artifacts.sh │ │ ├── set_up_github_keys.sh │ │ ├── test_coverage.sh │ │ ├── test_print_warnings.sh │ │ └── update_package_versions.sh │ ├── error-codes │ │ ├── README.md │ │ ├── Types.js │ │ ├── __tests__ │ │ │ ├── __snapshots__ │ │ │ │ └── transform-error-messages.js.snap │ │ │ ├── invertObject-test.js │ │ │ └── transform-error-messages.js │ │ ├── codes.json │ │ ├── extract-errors.js │ │ ├── invertObject.js │ │ └── transform-error-messages.js │ ├── eslint-rules │ │ ├── README.md │ │ ├── __tests__ │ │ │ ├── invariant-args-test.internal.js │ │ │ ├── no-cross-fork-imports-test.internal.js │ │ │ ├── no-cross-fork-types-test.internal.js │ │ │ ├── no-primitive-constructors-test.internal.js │ │ │ ├── no-production-logging-test.internal.js │ │ │ ├── no-to-warn-dev-within-to-throw-test.internal.js │ │ │ └── warning-args-test.internal.js │ │ ├── index.js │ │ ├── invariant-args.js │ │ ├── no-cross-fork-imports.js │ │ ├── no-cross-fork-types.js │ │ ├── no-primitive-constructors.js │ │ ├── no-production-logging.js │ │ ├── no-to-warn-dev-within-to-throw.js │ │ ├── package.json │ │ └── warning-args.js │ ├── eslint │ │ └── index.js │ ├── flow │ │ ├── config │ │ │ └── flowconfig │ │ ├── createFlowConfigs.js │ │ ├── environment.js │ │ ├── react-devtools.js │ │ ├── react-native-host-hooks.js │ │ ├── react-relay-hooks.js │ │ └── runFlow.js │ ├── git │ │ └── pre-commit │ ├── jest │ │ ├── TestFlags.js │ │ ├── config.base.js │ │ ├── config.build-devtools.js │ │ ├── config.build.js │ │ ├── config.source-persistent.js │ │ ├── config.source-www.js │ │ ├── config.source.js │ │ ├── dont-run-jest-directly.js │ │ ├── jest-cli.js │ │ ├── jest.js │ │ ├── jestSequencer.js │ │ ├── matchers │ │ │ ├── __tests__ │ │ │ │ └── toWarnDev-test.js │ │ │ ├── interactionTracingMatchers.js │ │ │ ├── profilerMatchers.js │ │ │ ├── reactTestMatchers.js │ │ │ ├── schedulerTestMatchers.js │ │ │ └── toWarnDev.js │ │ ├── noHaste.js │ │ ├── preprocessor.js │ │ ├── setupEnvironment.js │ │ ├── setupHostConfigs.js │ │ ├── setupTests.build.js │ │ ├── setupTests.js │ │ ├── setupTests.persistent.js │ │ ├── setupTests.www.js │ │ ├── shouldIgnoreConsoleError.js │ │ ├── spec-equivalence-reporter │ │ │ └── setupTests.js │ │ └── typescript │ │ │ ├── jest.d.ts │ │ │ └── preprocessor.js │ ├── merge-fork │ │ ├── README.md │ │ ├── merge-fork.js │ │ └── replace-fork.js │ ├── perf-counters │ │ ├── Makefile │ │ ├── README.md │ │ ├── binding.gyp │ │ ├── index.js │ │ ├── package.json │ │ └── src │ │ │ ├── hardware-counter.cpp │ │ │ ├── hardware-counter.h │ │ │ ├── jsc-perf.cpp │ │ │ ├── perf-counters.cpp │ │ │ ├── portability.h │ │ │ ├── thread-local.cpp │ │ │ └── thread-local.h │ ├── prettier │ │ └── index.js │ ├── print-warnings │ │ ├── README.md │ │ └── print-warnings.js │ ├── release │ │ ├── .gitignore │ │ ├── README.md │ │ ├── build-release-locally-commands │ │ │ ├── add-build-info-json.js │ │ │ ├── build-artifacts.js │ │ │ ├── confirm-automated-testing.js │ │ │ ├── copy-repo-to-temp-directory.js │ │ │ ├── npm-pack-and-unpack.js │ │ │ └── update-version-numbers.js │ │ ├── build-release-locally.js │ │ ├── build-release.js │ │ ├── ci-add-build-info-json.js │ │ ├── ci-npmrc │ │ ├── ci-update-package-versions.js │ │ ├── download-experimental-build-commands │ │ │ └── print-summary.js │ │ ├── download-experimental-build.js │ │ ├── get-build-id-for-commit.js │ │ ├── package.json │ │ ├── prepare-release-from-ci.js │ │ ├── prepare-release-from-npm-commands │ │ │ ├── check-out-packages.js │ │ │ ├── confirm-stable-version-numbers.js │ │ │ ├── get-latest-next-version.js │ │ │ ├── guess-stable-version-numbers.js │ │ │ ├── parse-params.js │ │ │ └── update-stable-version-numbers.js │ │ ├── prepare-release-from-npm.js │ │ ├── publish-commands │ │ │ ├── check-npm-permissions.js │ │ │ ├── confirm-skipped-packages.js │ │ │ ├── confirm-version-and-tags.js │ │ │ ├── parse-params.js │ │ │ ├── print-follow-up-instructions.js │ │ │ ├── prompt-for-otp.js │ │ │ ├── publish-to-npm.js │ │ │ ├── update-stable-version-numbers.js │ │ │ ├── validate-skip-packages.js │ │ │ └── validate-tags.js │ │ ├── publish-using-ci-workflow.js │ │ ├── publish.js │ │ ├── shared-commands │ │ │ ├── download-build-artifacts.js │ │ │ ├── parse-params.js │ │ │ ├── print-prerelease-summary.js │ │ │ ├── test-packaging-fixture.js │ │ │ └── test-tracing-fixture.js │ │ ├── snapshot-test.js │ │ ├── snapshot-test.snapshot │ │ ├── theme.js │ │ ├── utils.js │ │ └── yarn.lock │ ├── rollup │ │ ├── build-all-release-channels.js │ │ ├── build.js │ │ ├── bundles.js │ │ ├── forks.js │ │ ├── modules.js │ │ ├── packaging.js │ │ ├── plugins │ │ │ ├── closure-plugin.js │ │ │ ├── sizes-plugin.js │ │ │ ├── strip-unused-imports.js │ │ │ └── use-forks-plugin.js │ │ ├── shims │ │ │ ├── facebook-www │ │ │ │ ├── ReactBrowserEventEmitter_DO_NOT_USE.js │ │ │ │ ├── findDOMNode.js │ │ │ │ └── renderSubtreeIntoContainer_DO_NOT_USE.js │ │ │ └── react-native │ │ │ │ ├── ReactFabric.js │ │ │ │ ├── ReactFeatureFlags.js │ │ │ │ ├── ReactNative.js │ │ │ │ ├── ReactNativeViewConfigRegistry.js │ │ │ │ └── createReactNativeComponentClass.js │ │ ├── stats.js │ │ ├── sync.js │ │ ├── utils.js │ │ ├── validate │ │ │ ├── eslintrc.cjs.js │ │ │ ├── eslintrc.cjs2015.js │ │ │ ├── eslintrc.esm.js │ │ │ ├── eslintrc.fb.js │ │ │ ├── eslintrc.rn.js │ │ │ ├── eslintrc.umd.js │ │ │ └── index.js │ │ └── wrappers.js │ ├── shared │ │ ├── __tests__ │ │ │ └── evalToString-test.js │ │ ├── evalToString.js │ │ ├── inlinedHostConfigs.js │ │ ├── listChangedFiles.js │ │ └── pathsByLanguageVersion.js │ ├── tasks │ │ ├── danger.js │ │ ├── eslint.js │ │ ├── flow-ci.js │ │ ├── flow.js │ │ ├── linc.js │ │ └── version-check.js │ └── yarn │ │ └── downloadReactIsForPrettyFormat.js └── yarn.lock └── project-3 ├── .editorconfig ├── .gitattributes ├── .github ├── funding.yml ├── security.md └── workflows │ └── main.yml ├── .gitignore ├── .npmrc ├── .replit ├── benchmark.js ├── code-of-conduct.md ├── contributing.md ├── examples ├── rainbow.js └── screenshot.js ├── index.d.ts ├── index.test-d.ts ├── license ├── media ├── logo.png └── logo.svg ├── package.json ├── readme.md ├── source ├── index.js ├── templates.js └── util.js └── test ├── _fixture.js ├── _supports-color.js ├── chalk.js ├── constructor.js ├── instance.js ├── level.js ├── no-color-support.js ├── template-literal.js └── visible.js /.github/codeql/codeql-config-template.yml: -------------------------------------------------------------------------------- 1 | name: "CodeQL config" 2 | 3 | paths: 4 | - __TARGET_DIR__ -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Fake documentation file 2 | 3 | Changes made to any file inside this directory will not suffice to trigger the 4 | [`Code scanning`](../.github/workflows/code-scanning.yml) 5 | workflow. -------------------------------------------------------------------------------- /project-1/.editorconfig: -------------------------------------------------------------------------------- 1 | # This file is for unifying the coding style for different editors and IDEs 2 | # editorconfig.org 3 | 4 | root = true 5 | 6 | [*] 7 | charset = utf-8 8 | end_of_line = lf 9 | indent_size = 2 10 | indent_style = space 11 | insert_final_newline = true 12 | trim_trailing_whitespace = true 13 | -------------------------------------------------------------------------------- /project-1/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /project-1/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.log* 3 | doc/*.html 4 | node_modules 5 | *.code-workspace 6 | *.sublime-project 7 | *.sublime-workspace 8 | -------------------------------------------------------------------------------- /project-1/.internal/addMapEntry.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Adds the key-value `pair` to `map`. 3 | * 4 | * @private 5 | * @param {Object} map The map to modify. 6 | * @param {Array} pair The key-value pair to add. 7 | * @returns {Object} Returns `map`. 8 | */ 9 | function addMapEntry(map, pair) { 10 | // Don't return `map.set` because it's not chainable in IE 11. 11 | map.set(pair[0], pair[1]) 12 | return map 13 | } 14 | 15 | export default addMapEntry 16 | -------------------------------------------------------------------------------- /project-1/.internal/addSetEntry.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Adds `value` to `set`. 3 | * 4 | * @private 5 | * @param {Object} set The set to modify. 6 | * @param {*} value The value to add. 7 | * @returns {Object} Returns `set`. 8 | */ 9 | function addSetEntry(set, value) { 10 | // Don't return `set.add` because it's not chainable in IE 11. 11 | set.add(value) 12 | return set 13 | } 14 | 15 | export default addSetEntry 16 | -------------------------------------------------------------------------------- /project-1/.internal/asciiSize.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Gets the size of an ASCII `string`. 3 | * 4 | * @private 5 | * @param {string} string The string inspect. 6 | * @returns {number} Returns the string size. 7 | */ 8 | function asciiSize({ length }) { 9 | return length 10 | } 11 | 12 | export default asciiSize 13 | -------------------------------------------------------------------------------- /project-1/.internal/asciiToArray.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Converts an ASCII `string` to an array. 3 | * 4 | * @private 5 | * @param {string} string The string to convert. 6 | * @returns {Array} Returns the converted array. 7 | */ 8 | function asciiToArray(string) { 9 | return string.split('') 10 | } 11 | 12 | export default asciiToArray 13 | -------------------------------------------------------------------------------- /project-1/.internal/baseIsNaN.js: -------------------------------------------------------------------------------- 1 | /** 2 | * The base implementation of `isNaN` without support for number objects. 3 | * 4 | * @private 5 | * @param {*} value The value to check. 6 | * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. 7 | */ 8 | function baseIsNaN(value) { 9 | return value !== value 10 | } 11 | 12 | export default baseIsNaN 13 | -------------------------------------------------------------------------------- /project-1/.internal/baseProperty.js: -------------------------------------------------------------------------------- 1 | /** 2 | * The base implementation of `property` without support for deep paths. 3 | * 4 | * @private 5 | * @param {string} key The key of the property to get. 6 | * @returns {Function} Returns the new accessor function. 7 | */ 8 | function baseProperty(key) { 9 | return (object) => object == null ? undefined : object[key] 10 | } 11 | 12 | export default baseProperty 13 | -------------------------------------------------------------------------------- /project-1/.internal/basePropertyDeep.js: -------------------------------------------------------------------------------- 1 | import baseGet from './baseGet.js' 2 | 3 | /** 4 | * A specialized version of `baseProperty` which supports deep paths. 5 | * 6 | * @private 7 | * @param {Array|string} path The path of the property to get. 8 | * @returns {Function} Returns the new accessor function. 9 | */ 10 | function basePropertyDeep(path) { 11 | return (object) => baseGet(object, path) 12 | } 13 | 14 | export default basePropertyDeep 15 | -------------------------------------------------------------------------------- /project-1/.internal/basePropertyOf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * The base implementation of `propertyOf` without support for deep paths. 3 | * 4 | * @private 5 | * @param {Object} object The object to query. 6 | * @returns {Function} Returns the new accessor function. 7 | */ 8 | function basePropertyOf(object) { 9 | return (key) => object == null ? undefined : object[key] 10 | } 11 | 12 | export default basePropertyOf 13 | -------------------------------------------------------------------------------- /project-1/.internal/cacheHas.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Checks if a `cache` value for `key` exists. 3 | * 4 | * @private 5 | * @param {Object} cache The cache to query. 6 | * @param {string} key The key of the entry to check. 7 | * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. 8 | */ 9 | function cacheHas(cache, key) { 10 | return cache.has(key) 11 | } 12 | 13 | export default cacheHas 14 | -------------------------------------------------------------------------------- /project-1/.internal/castArrayLikeObject.js: -------------------------------------------------------------------------------- 1 | import isArrayLikeObject from '../isArrayLikeObject.js' 2 | 3 | /** 4 | * Casts `value` to an empty array if it's not an array like object. 5 | * 6 | * @private 7 | * @param {*} value The value to inspect. 8 | * @returns {Array|Object} Returns the cast array-like object. 9 | */ 10 | function castArrayLikeObject(value) { 11 | return isArrayLikeObject(value) ? value : [] 12 | } 13 | 14 | export default castArrayLikeObject 15 | -------------------------------------------------------------------------------- /project-1/.internal/cloneSymbol.js: -------------------------------------------------------------------------------- 1 | /** Used to convert symbols to primitives and strings. */ 2 | const symbolValueOf = Symbol.prototype.valueOf 3 | 4 | /** 5 | * Creates a clone of the `symbol` object. 6 | * 7 | * @private 8 | * @param {Object} symbol The symbol object to clone. 9 | * @returns {Object} Returns the cloned symbol object. 10 | */ 11 | function cloneSymbol(symbol) { 12 | return Object(symbolValueOf.call(symbol)) 13 | } 14 | 15 | export default cloneSymbol 16 | -------------------------------------------------------------------------------- /project-1/.internal/freeGlobal.js: -------------------------------------------------------------------------------- 1 | /** Detect free variable `global` from Node.js. */ 2 | const freeGlobal = typeof global === 'object' && global !== null && global.Object === Object && global 3 | 4 | export default freeGlobal 5 | -------------------------------------------------------------------------------- /project-1/.internal/getHolder.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Gets the argument placeholder value for `func`. 3 | * 4 | * @private 5 | * @param {Function} func The function to inspect. 6 | * @returns {*} Returns the placeholder value. 7 | */ 8 | function getHolder(func) { 9 | const object = func 10 | return object.placeholder 11 | } 12 | 13 | export default getHolder 14 | -------------------------------------------------------------------------------- /project-1/.internal/getTag.js: -------------------------------------------------------------------------------- 1 | const toString = Object.prototype.toString 2 | 3 | /** 4 | * Gets the `toStringTag` of `value`. 5 | * 6 | * @private 7 | * @param {*} value The value to query. 8 | * @returns {string} Returns the `toStringTag`. 9 | */ 10 | function getTag(value) { 11 | if (value == null) { 12 | return value === undefined ? '[object Undefined]' : '[object Null]' 13 | } 14 | return toString.call(value) 15 | } 16 | 17 | export default getTag 18 | -------------------------------------------------------------------------------- /project-1/.internal/iteratorToArray.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Converts `iterator` to an array. 3 | * 4 | * @private 5 | * @param {Object} iterator The iterator to convert. 6 | * @returns {Array} Returns the converted array. 7 | */ 8 | function iteratorToArray(iterator) { 9 | let data 10 | const result = [] 11 | 12 | while (!(data = iterator.next()).done) { 13 | result.push(data.value) 14 | } 15 | return result 16 | } 17 | 18 | export default iteratorToArray 19 | -------------------------------------------------------------------------------- /project-1/.internal/mapToArray.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Converts `map` to its key-value pairs. 3 | * 4 | * @private 5 | * @param {Object} map The map to convert. 6 | * @returns {Array} Returns the key-value pairs. 7 | */ 8 | function mapToArray(map) { 9 | let index = -1 10 | const result = new Array(map.size) 11 | 12 | map.forEach((value, key) => { 13 | result[++index] = [key, value] 14 | }) 15 | return result 16 | } 17 | 18 | export default mapToArray 19 | -------------------------------------------------------------------------------- /project-1/.internal/metaMap.js: -------------------------------------------------------------------------------- 1 | export default new WeakMap 2 | -------------------------------------------------------------------------------- /project-1/.internal/reEscape.js: -------------------------------------------------------------------------------- 1 | /** Used to match template delimiters. */ 2 | const reEscape = /<%-([\s\S]+?)%>/g 3 | 4 | export default reEscape 5 | -------------------------------------------------------------------------------- /project-1/.internal/reEvaluate.js: -------------------------------------------------------------------------------- 1 | /** Used to match template delimiters. */ 2 | const reEvaluate = /<%([\s\S]+?)%>/g 3 | 4 | export default reEvaluate 5 | -------------------------------------------------------------------------------- /project-1/.internal/reInterpolate.js: -------------------------------------------------------------------------------- 1 | /** Used to match template delimiters. */ 2 | const reInterpolate = /<%=([\s\S]+?)%>/g 3 | 4 | export default reInterpolate 5 | -------------------------------------------------------------------------------- /project-1/.internal/setToArray.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Converts `set` to an array of its values. 3 | * 4 | * @private 5 | * @param {Object} set The set to convert. 6 | * @returns {Array} Returns the values. 7 | */ 8 | function setToArray(set) { 9 | let index = -1 10 | const result = new Array(set.size) 11 | 12 | set.forEach((value) => { 13 | result[++index] = value 14 | }) 15 | return result 16 | } 17 | 18 | export default setToArray 19 | -------------------------------------------------------------------------------- /project-1/.internal/setToPairs.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Converts `set` to its value-value pairs. 3 | * 4 | * @private 5 | * @param {Object} set The set to convert. 6 | * @returns {Array} Returns the value-value pairs. 7 | */ 8 | function setToPairs(set) { 9 | let index = -1 10 | const result = new Array(set.size) 11 | 12 | set.forEach((value) => { 13 | result[++index] = [value, value] 14 | }) 15 | return result 16 | } 17 | 18 | export default setToPairs 19 | -------------------------------------------------------------------------------- /project-1/CHANGELOG: -------------------------------------------------------------------------------- 1 | https://github.com/lodash/lodash/wiki/Changelog 2 | -------------------------------------------------------------------------------- /project-1/each.js: -------------------------------------------------------------------------------- 1 | export { default } from './forEach.js' 2 | -------------------------------------------------------------------------------- /project-1/eachRight.js: -------------------------------------------------------------------------------- 1 | export { default } from './forEachRight.js' 2 | -------------------------------------------------------------------------------- /project-1/first.js: -------------------------------------------------------------------------------- 1 | export { default } from './head.js' 2 | -------------------------------------------------------------------------------- /project-1/isNull.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Checks if `value` is `null`. 3 | * 4 | * @since 0.1.0 5 | * @category Lang 6 | * @param {*} value The value to check. 7 | * @returns {boolean} Returns `true` if `value` is `null`, else `false`. 8 | * @example 9 | * 10 | * isNull(null) 11 | * // => true 12 | * 13 | * isNull(void 0) 14 | * // => false 15 | */ 16 | function isNull(value) { 17 | return value === null 18 | } 19 | 20 | export default isNull 21 | -------------------------------------------------------------------------------- /project-1/last.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Gets the last element of `array`. 3 | * 4 | * @since 0.1.0 5 | * @category Array 6 | * @param {Array} array The array to query. 7 | * @returns {*} Returns the last element of `array`. 8 | * @example 9 | * 10 | * last([1, 2, 3]) 11 | * // => 3 12 | */ 13 | function last(array) { 14 | const length = array == null ? 0 : array.length 15 | return length ? array[length - 1] : undefined 16 | } 17 | 18 | export default last 19 | -------------------------------------------------------------------------------- /project-1/mean.js: -------------------------------------------------------------------------------- 1 | import baseMean from './meanBy.js' 2 | 3 | /** 4 | * Computes the mean of the values in `array`. 5 | * 6 | * @since 4.0.0 7 | * @category Math 8 | * @param {Array} array The array to iterate over. 9 | * @returns {number} Returns the mean. 10 | * @example 11 | * 12 | * mean([4, 2, 8, 6]) 13 | * // => 5 14 | */ 15 | function mean(array) { 16 | return baseMean(array, (value) => value) 17 | } 18 | 19 | export default mean 20 | -------------------------------------------------------------------------------- /project-1/test/assignIn.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import extend from '../extend.js'; 3 | import assignIn from '../assignIn.js'; 4 | 5 | describe('assignIn', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(extend, assignIn); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/assignInWith.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import extendWith from '../extendWith.js'; 3 | import assignInWith from '../assignInWith.js'; 4 | 5 | describe('assignInWith', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(extendWith, assignInWith); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/capitalize.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import capitalize from '../capitalize.js'; 3 | 4 | describe('capitalize', function() { 5 | it('should capitalize the first character of a string', function() { 6 | assert.strictEqual(capitalize('fred'), 'Fred'); 7 | assert.strictEqual(capitalize('Fred'), 'Fred'); 8 | assert.strictEqual(capitalize(' fred'), ' fred'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/filter.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import { isEven } from './utils.js'; 3 | import filter from '../filter.js'; 4 | 5 | describe('filter', function() { 6 | var array = [1, 2, 3]; 7 | 8 | it('should return elements `predicate` returns truthy for', function() { 9 | assert.deepStrictEqual(filter(array, isEven), [2]); 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /project-1/test/flip.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import { slice } from './utils.js'; 3 | import flip from '../flip.js'; 4 | 5 | describe('flip', function() { 6 | function fn() { 7 | return slice.call(arguments); 8 | } 9 | 10 | it('should flip arguments provided to `func`', function() { 11 | var flipped = flip(fn); 12 | assert.deepStrictEqual(flipped('a', 'b', 'c', 'd'), ['d', 'c', 'b', 'a']); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /project-1/test/forEach.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import each from '../each.js'; 3 | import forEach from '../forEach.js'; 4 | 5 | describe('forEach', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(each, forEach); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/forEachRight.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import eachRight from '../eachRight.js'; 3 | import forEachRight from '../forEachRight.js'; 4 | 5 | describe('forEachRight', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(eachRight, forEachRight); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/identity.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import identity from '../identity.js'; 3 | 4 | describe('identity', function() { 5 | it('should return the first argument given', function() { 6 | var object = { 'name': 'fred' }; 7 | assert.strictEqual(identity(object), object); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/lowerCase.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import lowerCase from '../lowerCase.js'; 3 | 4 | describe('lowerCase', function() { 5 | it('should lowercase as space-separated words', function() { 6 | assert.strictEqual(lowerCase('--Foo-Bar--'), 'foo bar'); 7 | assert.strictEqual(lowerCase('fooBar'), 'foo bar'); 8 | assert.strictEqual(lowerCase('__FOO_BAR__'), 'foo bar'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/lowerFirst.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import lowerFirst from '../lowerFirst.js'; 3 | 4 | describe('lowerFirst', function() { 5 | it('should lowercase only the first character', function() { 6 | assert.strictEqual(lowerFirst('fred'), 'fred'); 7 | assert.strictEqual(lowerFirst('Fred'), 'fred'); 8 | assert.strictEqual(lowerFirst('FRED'), 'fRED'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/omitBy.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import omitBy from '../omitBy.js'; 3 | 4 | describe('omitBy', function() { 5 | it('should work with a predicate argument', function() { 6 | var object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }; 7 | 8 | var actual = omitBy(object, function(n) { 9 | return n != 2 && n != 4; 10 | }); 11 | 12 | assert.deepStrictEqual(actual, { 'b': 2, 'd': 4 }); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /project-1/test/pullAll.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import pullAll from '../pullAll.js'; 3 | 4 | describe('pullAll', function() { 5 | it('should work with the same value for `array` and `values`', function() { 6 | var array = [{ 'a': 1 }, { 'b': 2 }], 7 | actual = pullAll(array, array); 8 | 9 | assert.deepStrictEqual(actual, []); 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /project-1/test/reject.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import { isEven } from './utils.js'; 3 | import reject from '../reject.js'; 4 | 5 | describe('reject', function() { 6 | var array = [1, 2, 3]; 7 | 8 | it('should return elements the `predicate` returns falsey for', function() { 9 | assert.deepStrictEqual(reject(array, isEven), [1, 3]); 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /project-1/test/replace.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import replace from '../replace.js'; 3 | 4 | describe('replace', function() { 5 | it('should replace the matched pattern', function() { 6 | var string = 'abcde'; 7 | assert.strictEqual(replace(string, 'de', '123'), 'abc123'); 8 | assert.strictEqual(replace(string, /[bd]/g, '-'), 'a-c-e'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/startCase.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import startCase from '../startCase.js'; 3 | 4 | describe('startCase', function() { 5 | it('should uppercase only the first character of each word', function() { 6 | assert.strictEqual(startCase('--foo-bar--'), 'Foo Bar'); 7 | assert.strictEqual(startCase('fooBar'), 'Foo Bar'); 8 | assert.strictEqual(startCase('__FOO_BAR__'), 'FOO BAR'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/toLower.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import toLower from '../toLower.js'; 3 | 4 | describe('toLower', function() { 5 | it('should convert whole string to lower case', function() { 6 | assert.deepStrictEqual(toLower('--Foo-Bar--'), '--foo-bar--'); 7 | assert.deepStrictEqual(toLower('fooBar'), 'foobar'); 8 | assert.deepStrictEqual(toLower('__FOO_BAR__'), '__foo_bar__'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/toPairs.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import entries from '../entries.js'; 3 | import toPairs from '../toPairs.js'; 4 | 5 | describe('toPairs', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(entries, toPairs); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/toPairsIn.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import entriesIn from '../entriesIn.js'; 3 | import toPairsIn from '../toPairsIn.js'; 4 | 5 | describe('toPairsIn', function() { 6 | it('should be aliased', function() { 7 | assert.strictEqual(entriesIn, toPairsIn); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /project-1/test/toUpper.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import toUpper from '../toUpper.js'; 3 | 4 | describe('toUpper', function() { 5 | it('should convert whole string to upper case', function() { 6 | assert.deepStrictEqual(toUpper('--Foo-Bar'), '--FOO-BAR'); 7 | assert.deepStrictEqual(toUpper('fooBar'), 'FOOBAR'); 8 | assert.deepStrictEqual(toUpper('__FOO_BAR__'), '__FOO_BAR__'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/uniq.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import lodashStable from 'lodash'; 3 | 4 | describe('uniq', function() { 5 | it('should perform an unsorted uniq when used as an iteratee for methods like `_.map`', function() { 6 | var array = [[2, 1, 2], [1, 2, 1]], 7 | actual = lodashStable.map(array, lodashStable.uniq); 8 | 9 | assert.deepStrictEqual(actual, [[2, 1], [1, 2]]); 10 | }); 11 | }); 12 | -------------------------------------------------------------------------------- /project-1/test/upperCase.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import upperCase from '../upperCase.js'; 3 | 4 | describe('upperCase', function() { 5 | it('should uppercase as space-separated words', function() { 6 | assert.strictEqual(upperCase('--foo-bar--'), 'FOO BAR'); 7 | assert.strictEqual(upperCase('fooBar'), 'FOO BAR'); 8 | assert.strictEqual(upperCase('__foo_bar__'), 'FOO BAR'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-1/test/upperFirst.test.js: -------------------------------------------------------------------------------- 1 | import assert from 'assert'; 2 | import upperFirst from '../upperFirst.js'; 3 | 4 | describe('upperFirst', function() { 5 | it('should uppercase only the first character', function() { 6 | assert.strictEqual(upperFirst('fred'), 'Fred'); 7 | assert.strictEqual(upperFirst('Fred'), 'Fred'); 8 | assert.strictEqual(upperFirst('FRED'), 'FRED'); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /project-2/.editorconfig: -------------------------------------------------------------------------------- 1 | # https://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 2 8 | indent_style = space 9 | insert_final_newline = true 10 | max_line_length = 80 11 | trim_trailing_whitespace = true 12 | 13 | [*.md] 14 | max_line_length = 0 15 | trim_trailing_whitespace = false 16 | 17 | [COMMIT_EDITMSG] 18 | max_line_length = 0 19 | -------------------------------------------------------------------------------- /project-2/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /project-2/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | contact_links: 2 | - name: 📃 Documentation Issue 3 | url: https://github.com/reactjs/reactjs.org/issues/new 4 | about: This issue tracker is not for documentation issues. Please file documentation issues here. 5 | - name: 🤔 Questions and Help 6 | url: https://reactjs.org/community/support.html 7 | about: This issue tracker is not for support questions. Please refer to the React community's help and discussion forums. 8 | -------------------------------------------------------------------------------- /project-2/.nvmrc: -------------------------------------------------------------------------------- 1 | v12.16.2 2 | -------------------------------------------------------------------------------- /project-2/.prettierignore: -------------------------------------------------------------------------------- 1 | packages/react-devtools-core/dist 2 | packages/react-devtools-extensions/chrome/build 3 | packages/react-devtools-extensions/firefox/build 4 | packages/react-devtools-extensions/shared/build 5 | packages/react-devtools-inline/dist 6 | packages/react-devtools-shell/dist 7 | packages/react-devtools-scheduling-profiler/dist 8 | packages/react-devtools-scheduling-profiler/static -------------------------------------------------------------------------------- /project-2/.prettierrc.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const {esNextPaths} = require('./scripts/shared/pathsByLanguageVersion'); 4 | 5 | module.exports = { 6 | bracketSpacing: false, 7 | singleQuote: true, 8 | jsxBracketSameLine: true, 9 | trailingComma: 'es5', 10 | printWidth: 80, 11 | parser: 'babel', 12 | 13 | overrides: [ 14 | { 15 | files: esNextPaths, 16 | options: { 17 | trailingComma: 'all', 18 | }, 19 | }, 20 | ], 21 | }; 22 | -------------------------------------------------------------------------------- /project-2/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /project-2/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to React 2 | 3 | Want to contribute to React? There are a few things you need to know. 4 | 5 | We wrote a **[contribution guide](https://reactjs.org/contributing/how-to-contribute.html)** to help you get started. 6 | -------------------------------------------------------------------------------- /project-2/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting Security Issues 2 | 3 | If you believe you have found a security vulnerability in React, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem. 4 | 5 | Please refer to the following page for our responsible disclosure policy, reward guidelines, and those things that should not be reported: 6 | 7 | https://www.facebook.com/whitehat 8 | -------------------------------------------------------------------------------- /project-2/fixtures/art/.gitignore: -------------------------------------------------------------------------------- 1 | bundle.js -------------------------------------------------------------------------------- /project-2/fixtures/art/README.md: -------------------------------------------------------------------------------- 1 | # VectorWidget example 2 | 3 | To try this example, run: 4 | 5 | ``` 6 | yarn 7 | yarn build 8 | ``` 9 | 10 | in this directory, then open index.html in your browser. 11 | -------------------------------------------------------------------------------- /project-2/fixtures/art/app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var React = require('react'); 4 | var ReactDOM = require('react-dom'); 5 | var VectorWidget = require('./VectorWidget'); 6 | 7 | ReactDOM.render(, document.getElementById('container')); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/attribute-behavior/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/attribute-behavior/public/favicon.ico -------------------------------------------------------------------------------- /project-2/fixtures/attribute-behavior/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "192x192", 8 | "type": "image/png" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /project-2/fixtures/attribute-behavior/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | 5 | it('renders without crashing', () => { 6 | const div = document.createElement('div'); 7 | ReactDOM.render(, div); 8 | }); 9 | -------------------------------------------------------------------------------- /project-2/fixtures/attribute-behavior/src/index.css: -------------------------------------------------------------------------------- 1 | * { 2 | box-sizing: border-box; 3 | } 4 | 5 | body { 6 | font-family: monospace; 7 | font-size: 12px; 8 | } 9 | -------------------------------------------------------------------------------- /project-2/fixtures/attribute-behavior/src/index.js: -------------------------------------------------------------------------------- 1 | import './index.css'; 2 | import React from 'react'; 3 | import ReactDOM from 'react-dom'; 4 | import App from './App'; 5 | 6 | ReactDOM.render(, document.getElementById('root')); 7 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true 2 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/delay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | module.exports = (req, res, next) => { 9 | if (req.query.delay) { 10 | setTimeout(next, Number(req.query.delay)); 11 | } else { 12 | next(); 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Blocks Fixture 7 | 8 | 9 | 10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/src/client/RouterContext.js: -------------------------------------------------------------------------------- 1 | import {createContext, useContext} from 'react'; 2 | 3 | const RouterContext = createContext(null); 4 | 5 | export const RouterProvider = RouterContext.Provider; 6 | 7 | export function useRouter() { 8 | return useContext(RouterContext); 9 | } 10 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Helvetica; 3 | padding-left: 10px; 4 | } 5 | 6 | * { 7 | box-sizing: border-box; 8 | } 9 | -------------------------------------------------------------------------------- /project-2/fixtures/blocks/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | import React from 'react'; 9 | import {unstable_createRoot as createRoot} from 'react-dom'; 10 | import './index.css'; 11 | import Router from './Router'; 12 | 13 | createRoot(document.getElementById('root')).render(); 14 | -------------------------------------------------------------------------------- /project-2/fixtures/concurrent/time-slicing/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | -------------------------------------------------------------------------------- /project-2/fixtures/concurrent/time-slicing/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/concurrent/time-slicing/public/favicon.ico -------------------------------------------------------------------------------- /project-2/fixtures/concurrent/time-slicing/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": "./index.html", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /project-2/fixtures/dom/README.md: -------------------------------------------------------------------------------- 1 | # DOM Fixtures 2 | 3 | A set of DOM test cases for quickly identifying browser issues. 4 | 5 | ## Setup 6 | 7 | To reference a local build of React, first run `yarn build` at the root 8 | of the React project. Then: 9 | 10 | ``` 11 | cd fixtures/dom 12 | yarn 13 | yarn start 14 | ``` 15 | 16 | The `start` command runs a script that copies over the local build of react into 17 | the public directory. 18 | -------------------------------------------------------------------------------- /project-2/fixtures/dom/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/dom/public/favicon.ico -------------------------------------------------------------------------------- /project-2/fixtures/dom/public/test.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/dom/public/test.mp4 -------------------------------------------------------------------------------- /project-2/fixtures/dom/src/components/App.js: -------------------------------------------------------------------------------- 1 | import Header from './Header'; 2 | import Fixtures from './fixtures'; 3 | import '../style.css'; 4 | 5 | const React = window.React; 6 | 7 | class App extends React.Component { 8 | render() { 9 | return ( 10 |
11 |
12 | 13 |
14 | ); 15 | } 16 | } 17 | 18 | export default App; 19 | -------------------------------------------------------------------------------- /project-2/fixtures/dom/src/components/Fixture.js: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | const React = window.React; 3 | 4 | const propTypes = { 5 | children: PropTypes.node.isRequired, 6 | }; 7 | 8 | class Fixture extends React.Component { 9 | render() { 10 | const {children} = this.props; 11 | 12 | return
{children}
; 13 | } 14 | } 15 | 16 | Fixture.propTypes = propTypes; 17 | 18 | export default Fixture; 19 | -------------------------------------------------------------------------------- /project-2/fixtures/dom/src/index.js: -------------------------------------------------------------------------------- 1 | import './polyfills'; 2 | import loadReact from './react-loader'; 3 | 4 | loadReact() 5 | .then(() => import('./components/App')) 6 | .then(App => { 7 | const {React, ReactDOM} = window; 8 | 9 | ReactDOM.render( 10 | React.createElement(App.default), 11 | document.getElementById('root') 12 | ); 13 | }); 14 | -------------------------------------------------------------------------------- /project-2/fixtures/eslint/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parserOptions": { 4 | "ecmaVersion": 8, 5 | "sourceType": "module", 6 | "ecmaFeatures": { 7 | "jsx": true 8 | } 9 | }, 10 | "plugins": ["react-hooks"], 11 | "rules": { 12 | "react-hooks/rules-of-hooks": 2, 13 | "react-hooks/exhaustive-deps": 2 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /project-2/fixtures/eslint/README.md: -------------------------------------------------------------------------------- 1 | # ESLint Playground Fixture 2 | 3 | This is an internal playground for quick iteration on our lint rules inside an IDE like VSCode. 4 | 5 | See instructions in `./index.js` in this directory. 6 | 7 | ![Demo](https://duaw26jehqd4r.cloudfront.net/items/2Z390a31003O0l0o0e3O/Screen%20Recording%202019-01-16%20at%2010.29%20PM.gif?v=d6856125) -------------------------------------------------------------------------------- /project-2/fixtures/eslint/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "eslint-playground", 4 | "dependencies": { 5 | "eslint": "4.1.0", 6 | "eslint-plugin-react-hooks": "link:./proxy" 7 | }, 8 | "scripts": { 9 | "start": "./watch.sh", 10 | "lint": "eslint index.js" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /project-2/fixtures/eslint/proxy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "version": "0.0.0" 4 | } -------------------------------------------------------------------------------- /project-2/fixtures/eslint/watch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | (cd ../.. && yarn build eslint --type=NODE_DEV) 3 | (cd ../.. && watchman-make --make 'yarn build eslint --type=NODE_DEV' -p 'packages/eslint-plugin-*/**/*' -t ignored) 4 | -------------------------------------------------------------------------------- /project-2/fixtures/expiration/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | 23 | public/react.development.js 24 | public/react-dom.development.js -------------------------------------------------------------------------------- /project-2/fixtures/fiber-debugger/.env: -------------------------------------------------------------------------------- 1 | NODE_PATH=../../build/packages -------------------------------------------------------------------------------- /project-2/fixtures/fiber-debugger/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | node_modules 5 | 6 | # testing 7 | coverage 8 | 9 | # production 10 | build 11 | 12 | # misc 13 | .DS_Store 14 | npm-debug.log 15 | -------------------------------------------------------------------------------- /project-2/fixtures/fiber-debugger/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/fiber-debugger/public/favicon.ico -------------------------------------------------------------------------------- /project-2/fixtures/fiber-debugger/src/index.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: sans-serif; 5 | height: 100vh; 6 | cursor: -webkit-grab; cursor: -moz-grab; 7 | } 8 | 9 | #root { 10 | height: 100vh; 11 | } 12 | 13 | * { 14 | box-sizing: border-box; 15 | } -------------------------------------------------------------------------------- /project-2/fixtures/fiber-debugger/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | import './index.css'; 5 | 6 | ReactDOM.render(, document.getElementById('root')); 7 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/.env: -------------------------------------------------------------------------------- 1 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /project-2/fixtures/flight/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | /dist 14 | .eslintcache 15 | 16 | # misc 17 | .DS_Store 18 | .env.local 19 | .env.development.local 20 | .env.test.local 21 | .env.production.local 22 | 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/config/jest/cssTransform.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // This is a custom Jest transformer turning style imports into empty objects. 4 | // http://facebook.github.io/jest/docs/en/webpack.html 5 | 6 | module.exports = { 7 | process() { 8 | return 'module.exports = {};'; 9 | }, 10 | getCacheKey() { 11 | // The output is always the same. 12 | return 'cssTransform'; 13 | }, 14 | }; 15 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/loader/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Flight 7 | 8 | 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/scripts/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "commonjs", 3 | "main": "./cli.server.js" 4 | } 5 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/src/Container.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | export default function Container({children}) { 4 | return
{children}
; 5 | } 6 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/src/Counter.client.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import Container from './Container.js'; 4 | 5 | export function Counter() { 6 | const [count, setCount] = React.useState(0); 7 | return ( 8 | 9 | 10 | 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/src/Counter2.client.js: -------------------------------------------------------------------------------- 1 | export * from './Counter.client.js'; 2 | -------------------------------------------------------------------------------- /project-2/fixtures/flight/src/ShowMore.client.js: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import Container from './Container.js'; 4 | 5 | export default function ShowMore({children}) { 6 | const [show, setShow] = React.useState(false); 7 | if (!show) { 8 | return ; 9 | } 10 | return {children}; 11 | } 12 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/README.md: -------------------------------------------------------------------------------- 1 | # Legacy JSX Runtimes 2 | 3 | This is an internal testing fixture for the special JSX runtime versions released for 0.14, 15, and 16. 4 | 5 | They are checked into the corresponding `react-*/cjs/*` folders. 6 | 7 | Run the full regression suite: 8 | 9 | ``` 10 | yarn 11 | yarn test 12 | ``` 13 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | [ 4 | '@babel/react', 5 | { 6 | runtime: 'automatic', 7 | development: process.env.BABEL_ENV === 'development', 8 | }, 9 | ], 10 | ], 11 | plugins: ['@babel/plugin-transform-modules-commonjs'], 12 | }; 13 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-14/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-dev-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-14/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-14/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react": "0.14", 4 | "react-dom": "0.14" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-15/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-dev-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-15/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-15/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "react": "15", 4 | "react-dom": "15" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-16/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-dev-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-16/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-16/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "prop-types": "^15.7.2", 4 | "react": "16", 5 | "react-dom": "16" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-17/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-dev-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-17/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/legacy-jsx-runtimes/react-17/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "prop-types": "^15.7.2", 4 | "react": "17.0.0-rc.3", 5 | "react-dom": "17.0.0-rc.3" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/.env: -------------------------------------------------------------------------------- 1 | EXTEND_ESLINT=true 2 | SKIP_PREFLIGHT_CHECK=true 3 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/.eslintignore: -------------------------------------------------------------------------------- 1 | src/*/node_modules 2 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React App 7 | 8 | 9 | 10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/index.js: -------------------------------------------------------------------------------- 1 | import './modern/index'; 2 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/legacy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "react-nesting-example-legacy", 4 | "dependencies": { 5 | "react": "16.8", 6 | "react-dom": "16.8", 7 | "react-redux": "4.4.10", 8 | "react-router-dom": "5.2.0" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/modern/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {StrictMode} from 'react'; 3 | import ReactDOM from 'react-dom'; 4 | import {Provider} from 'react-redux'; 5 | import App from './App'; 6 | import {store} from '../store'; 7 | 8 | ReactDOM.render( 9 | 10 | 11 | 12 | 13 | , 14 | document.getElementById('root') 15 | ); 16 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/modern/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "react-nesting-example-modern", 4 | "dependencies": { 5 | "react": "0.0.0-3d0895557", 6 | "react-dom": "0.0.0-3d0895557", 7 | "react-redux": "7.2.1", 8 | "react-router-dom": "5.2.0" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/shared/Clock.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import useTime from './useTime'; 4 | 5 | export default function Clock() { 6 | const time = useTime(); 7 | return

Time: {time}

; 8 | } 9 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/shared/ThemeContext.js: -------------------------------------------------------------------------------- 1 | import {createContext} from 'react'; 2 | 3 | const ThemeContext = createContext(null); 4 | 5 | export default ThemeContext; 6 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/shared/useTime.js: -------------------------------------------------------------------------------- 1 | import {useState, useEffect} from 'react'; 2 | 3 | export default function useTimer() { 4 | const [value, setValue] = useState(() => new Date()); 5 | useEffect(() => { 6 | const id = setInterval(() => { 7 | setValue(new Date()); 8 | }, 1000); 9 | return () => clearInterval(id); 10 | }, []); 11 | return value.toLocaleTimeString(); 12 | } 13 | -------------------------------------------------------------------------------- /project-2/fixtures/nesting/src/store.js: -------------------------------------------------------------------------------- 1 | import {createStore} from 'redux'; 2 | 3 | function reducer(state = 0, action) { 4 | switch (action.type) { 5 | case 'increment': 6 | return state + 1; 7 | default: 8 | return state; 9 | } 10 | } 11 | 12 | // Because this file is declared above both Modern and Legacy folders, 13 | // we can import this from either folder without duplicating the object. 14 | export const store = createStore(reducer); 15 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js 2 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/dev/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "browserify-dev-fixture", 4 | "dependencies": { 5 | "browserify": "^13.3.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && browserify ./input.js -o output.js", 9 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js 2 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/prod/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/browserify/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "browserify-prod-fixture", 4 | "dependencies": { 5 | "browserify": "^13.3.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && browserify ./input.js -g [envify --NODE_ENV 'production'] -o output.js", 9 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/" 10 | }, 11 | "devDependencies": { 12 | "envify": "^4.0.0" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js 2 | output.js.map -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/app/initialize.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/config.js: -------------------------------------------------------------------------------- 1 | exports.config = { 2 | paths: { 3 | public: '.', 4 | }, 5 | files: { 6 | javascripts: { 7 | joinTo: 'output.js', 8 | }, 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "brunch-dev-fixture", 4 | "devDependencies": { 5 | "brunch": "^2.9.1", 6 | "javascript-brunch": "^2.0.0" 7 | }, 8 | "scripts": { 9 | "build": "rm -rf public && brunch build", 10 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js 2 | output.js.map -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/app/initialize.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/config.js: -------------------------------------------------------------------------------- 1 | exports.config = { 2 | paths: { 3 | public: '.', 4 | }, 5 | files: { 6 | javascripts: { 7 | joinTo: 'output.js', 8 | }, 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/brunch/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "brunch-prod-fixture", 4 | "devDependencies": { 5 | "brunch": "^2.9.1", 6 | "javascript-brunch": "^2.0.0" 7 | }, 8 | "scripts": { 9 | "build": "rm -rf public && brunch build -p", 10 | "prebuild": "cp -r ../../../../build/node_modules/* ./node_modules/" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | baseUrl: '.', 3 | name: 'input', 4 | out: 'output.js', 5 | optimize: 'none', 6 | paths: { 7 | react: '../../../../build/node_modules/react/umd/react.development', 8 | 'react-dom': 9 | '../../../../build/node_modules/react-dom/umd/react-dom.development', 10 | schedule: 11 | '../../../../build/node_modules/scheduler/umd/schedule.development', 12 | }, 13 | }; 14 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/input.js: -------------------------------------------------------------------------------- 1 | require(['react', 'react-dom'], function(React, ReactDOM) { 2 | ReactDOM.render( 3 | React.createElement('h1', null, 'Hello World!'), 4 | document.getElementById('container') 5 | ); 6 | }); 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "rjs-dev-fixture", 4 | "dependencies": { 5 | "requirejs": "^2.3.2" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && r.js -o config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/dev/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | requirejs@^2.3.2: 6 | version "2.3.5" 7 | resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.5.tgz#617b9acbbcb336540ef4914d790323a8d4b861b0" 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | baseUrl: '.', 3 | name: 'input', 4 | out: 'output.js', 5 | optimize: 'none', 6 | paths: { 7 | react: '../../../../build/node_modules/react/umd/react.production.min', 8 | 'react-dom': 9 | '../../../../build/node_modules/react-dom/umd/react-dom.production.min', 10 | schedule: 11 | '../../../../build/node_modules/scheduler/umd/schedule.development', 12 | }, 13 | }; 14 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/input.js: -------------------------------------------------------------------------------- 1 | require(['react', 'react-dom'], function(React, ReactDOM) { 2 | ReactDOM.render( 3 | React.createElement('h1', null, 'Hello World!'), 4 | document.getElementById('container') 5 | ); 6 | }); 7 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "rjs-prod-fixture", 4 | "dependencies": { 5 | "requirejs": "^2.3.2" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && r.js -o config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/rjs/prod/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | requirejs@^2.3.2: 6 | version "2.3.5" 7 | resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.5.tgz#617b9acbbcb336540ef4914d790323a8d4b861b0" 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/build.js: -------------------------------------------------------------------------------- 1 | var Builder = require('systemjs-builder'); 2 | 3 | var builder = new Builder('/', './config.js'); 4 | builder 5 | .buildStatic('./input.js', './output.js') 6 | .then(function() { 7 | console.log('Build complete'); 8 | }) 9 | .catch(function(err) { 10 | console.log('Build error'); 11 | console.log(err); 12 | }); 13 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/config.js: -------------------------------------------------------------------------------- 1 | System.config({ 2 | paths: { 3 | react: '../../../../build/node_modules/react/umd/react.development.js', 4 | 'react-dom': 5 | '../../../../build/node_modules/react-dom/umd/react-dom.development.js', 6 | schedule: 7 | '../../../../build/node_modules/scheduler/umd/schedule.development', 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/input.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "systemjs-dev-fixture", 4 | "dependencies": { 5 | "systemjs-builder": "^0.15.34" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && node build.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/build.js: -------------------------------------------------------------------------------- 1 | var Builder = require('systemjs-builder'); 2 | 3 | var builder = new Builder('/', './config.js'); 4 | builder 5 | .buildStatic('./input.js', './output.js') 6 | .then(function() { 7 | console.log('Build complete'); 8 | }) 9 | .catch(function(err) { 10 | console.log('Build error'); 11 | console.log(err); 12 | }); 13 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/config.js: -------------------------------------------------------------------------------- 1 | System.config({ 2 | paths: { 3 | react: '../../../../build/node_modules/react/umd/react.production.min.js', 4 | 'react-dom': 5 | '../../../../build/node_modules/react-dom/umd/react-dom.production.min.js', 6 | schedule: 7 | '../../../../build/node_modules/scheduler/umd/schedule.development', 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/input.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/systemjs-builder/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "systemjs-prod-fixture", 4 | "dependencies": { 5 | "systemjs-builder": "^0.15.34" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && node build.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/dev/config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | 3 | module.exports = { 4 | entry: './input', 5 | output: { 6 | filename: 'output.js', 7 | }, 8 | resolve: { 9 | root: path.resolve('../../../../build/node_modules'), 10 | alias: { 11 | react: 'react/umd/react.development', 12 | 'react-dom': 'react-dom/umd/react-dom.development', 13 | }, 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/dev/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "webpack-alias-dev-fixture", 4 | "dependencies": { 5 | "webpack": "^1.14.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && webpack --config config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/prod/config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | 3 | module.exports = { 4 | entry: './input', 5 | output: { 6 | filename: 'output.js', 7 | }, 8 | resolve: { 9 | root: path.resolve('../../../../build/node_modules'), 10 | alias: { 11 | react: 'react/umd/react.production.min', 12 | 'react-dom': 'react-dom/umd/react-dom.production.min', 13 | }, 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/prod/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack-alias/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "webpack-alias-prod-fixture", 4 | "dependencies": { 5 | "webpack": "^1.14.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && webpack --config config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/dev/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/dev/config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | 3 | module.exports = { 4 | entry: './input', 5 | output: { 6 | filename: 'output.js', 7 | }, 8 | resolve: { 9 | root: path.resolve('../../../../build/node_modules/'), 10 | }, 11 | }; 12 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/dev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/dev/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/dev/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "webpack-dev-fixture", 4 | "dependencies": { 5 | "webpack": "^1.14.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && webpack --config config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/prod/.gitignore: -------------------------------------------------------------------------------- 1 | output.js -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/prod/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/prod/input.js: -------------------------------------------------------------------------------- 1 | var React = require('react'); 2 | var ReactDOM = require('react-dom'); 3 | 4 | ReactDOM.render( 5 | React.createElement('h1', null, 'Hello World!'), 6 | document.getElementById('container') 7 | ); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/packaging/webpack/prod/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "webpack-prod-fixture", 4 | "dependencies": { 5 | "webpack": "^1.14.0" 6 | }, 7 | "scripts": { 8 | "build": "rm -f output.js && webpack --config config.js" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/fixtures/ssr/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/fixtures/ssr/public/favicon.ico -------------------------------------------------------------------------------- /project-2/fixtures/ssr/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /project-2/fixtures/ssr/src/components/Page.css: -------------------------------------------------------------------------------- 1 | .link { 2 | font-weight: bold; 3 | cursor: pointer; 4 | } 5 | .light-box { 6 | margin: 10px 0; 7 | padding: 10px; 8 | background-color: #CCCCCC; 9 | color: #333333; 10 | } 11 | .dark-box { 12 | margin: 10px 0; 13 | padding: 10px; 14 | background-color: #333333; 15 | color: #CCCCCC; 16 | } 17 | -------------------------------------------------------------------------------- /project-2/fixtures/ssr/src/components/Page2.js: -------------------------------------------------------------------------------- 1 | import React, {useContext} from 'react'; 2 | 3 | import Theme from './Theme'; 4 | import Suspend from './Suspend'; 5 | 6 | import './Page.css'; 7 | 8 | export default function Page2() { 9 | let theme = useContext(Theme); 10 | return ( 11 |
12 | Content of a different page 13 |
14 | ); 15 | } 16 | -------------------------------------------------------------------------------- /project-2/fixtures/ssr/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {createRoot} from 'react-dom'; 3 | 4 | import App from './components/App'; 5 | 6 | let root = createRoot(document, {hydrate: true}); 7 | root.render(); 8 | -------------------------------------------------------------------------------- /project-2/fixtures/stacks/babel.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | ["@babel/plugin-proposal-class-properties", {"loose": false}], 4 | ["@babel/plugin-transform-classes", {"loose": true}] 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /project-2/netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | base = "" 3 | publish = "fixtures/dom/build" 4 | command = "yarn build --type=UMD_DEV && cd fixtures/dom/ && yarn && yarn prestart && yarn build" 5 | 6 | [[redirects]] 7 | from = "/*" 8 | to = "/index.html" 9 | status = 200 10 | -------------------------------------------------------------------------------- /project-2/packages/create-subscription/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/createSubscription'; 13 | -------------------------------------------------------------------------------- /project-2/packages/create-subscription/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/create-subscription.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/create-subscription.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/dom-event-testing-library/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "dom-event-testing-library", 4 | "version": "0.0.0" 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/eslint-plugin-react-hooks/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './src/index'; 9 | -------------------------------------------------------------------------------- /project-2/packages/eslint-plugin-react-hooks/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // TODO: this doesn't make sense for an ESLint rule. 4 | // We need to fix our build process to not create bundles for "raw" packages like this. 5 | if (process.env.NODE_ENV === 'production') { 6 | module.exports = require('./cjs/eslint-plugin-react-hooks.production.min.js'); 7 | } else { 8 | module.exports = require('./cjs/eslint-plugin-react-hooks.development.js'); 9 | } 10 | -------------------------------------------------------------------------------- /project-2/packages/jest-mock-scheduler/README.md: -------------------------------------------------------------------------------- 1 | # `jest-mock-scheduler` 2 | 3 | Jest matchers and utilities for testing the `scheduler` package. 4 | 5 | This package is experimental. APIs may change between releases. -------------------------------------------------------------------------------- /project-2/packages/jest-mock-scheduler/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('scheduler/unstable_mock'); 4 | -------------------------------------------------------------------------------- /project-2/packages/jest-react/README.md: -------------------------------------------------------------------------------- 1 | # `jest-react` 2 | 3 | Jest matchers and utilities for testing React Test Renderer. -------------------------------------------------------------------------------- /project-2/packages/jest-react/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/JestReact'; 11 | -------------------------------------------------------------------------------- /project-2/packages/jest-react/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/jest-react.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/jest-react.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-art/Circle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {default} from './npm/Circle'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-art/README.md: -------------------------------------------------------------------------------- 1 | # React ART 2 | 3 | React ART is a JavaScript library for drawing vector graphics using [React](https://github.com/facebook/react/). 4 | 5 | It provides declarative and reactive bindings to the [ART library](https://github.com/sebmarkbage/art/). 6 | 7 | Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8). 8 | -------------------------------------------------------------------------------- /project-2/packages/react-art/Rectangle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {default} from './npm/Rectangle'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-art/Wedge.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {default} from './npm/Wedge'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-art/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactART'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-art/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-art.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-art.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-cache/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactCacheOld'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-cache/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-cache.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-cache.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-client/README.md: -------------------------------------------------------------------------------- 1 | # react-client 2 | 3 | This is an experimental package for consuming custom React streaming models. 4 | 5 | **Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.** 6 | 7 | **Use it at your own risk.** 8 | -------------------------------------------------------------------------------- /project-2/packages/react-client/flight.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightClientStream'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-client/npm/flight.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-client-flight.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-client-flight.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-client/src/forks/ReactFlightClientHostConfig.dom-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-server-dom-relay/src/ReactFlightDOMRelayClientHostConfig'; 11 | export * from '../ReactFlightClientHostConfigNoStream'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-client/src/forks/ReactFlightClientHostConfig.native-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-server-native-relay/src/ReactFlightNativeRelayClientHostConfig'; 11 | export * from '../ReactFlightClientHostConfigNoStream'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-debug-tools/README.md: -------------------------------------------------------------------------------- 1 | # react-debug-tools 2 | 3 | This is an experimental package for debugging React renderers. 4 | 5 | **Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.** 6 | 7 | **Use it at your own risk.** 8 | -------------------------------------------------------------------------------- /project-2/packages/react-debug-tools/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './src/ReactDebugTools'; 9 | -------------------------------------------------------------------------------- /project-2/packages/react-debug-tools/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-debug-tools.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-debug-tools.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-debug-tools/src/ReactDebugTools.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import {inspectHooks, inspectHooksOfFiber} from './ReactDebugHooks'; 11 | 12 | export {inspectHooks, inspectHooksOfFiber}; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-core/backend.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/backend'); 2 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-core/standalone.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/standalone'); 2 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/chrome/deploy.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | const deploy = require('../deploy'); 6 | 7 | const main = async () => await deploy('chrome'); 8 | 9 | main(); 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/chrome/now.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-devtools-experimental-chrome", 3 | "alias": ["react-devtools-experimental-chrome"], 4 | "files": ["index.html", "ReactDevTools.zip"] 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/deploy.chrome.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. download extension
  2. 3 |
  3. Double-click to extract
  4. 4 |
  5. Navigate to chrome://extensions/
  6. 5 |
  7. Enable "Developer mode"
  8. 6 |
  9. Click "LOAD UNPACKED"
  10. 7 |
  11. Select extracted extension folder (ReactDevTools)
  12. 8 |
-------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/deploy.edge.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. download extension
  2. 3 |
  3. Double-click to extract
  4. 4 |
  5. Navigate to edge://extensions/
  6. 5 |
  7. Enable "Developer mode"
  8. 6 |
  9. Click "LOAD UNPACKED"
  10. 7 |
  11. Select extracted extension folder (ReactDevTools)
  12. 8 |
-------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/deploy.firefox.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. download extension
  2. 3 |
  3. Extract/unzip
  4. 4 |
  5. Visit about:debugging
  6. 5 |
  7. Click "Load Temporary Add-on"
  8. 6 |
  9. Select the manifest.json file inside of the extracted extension folder (ReactDevTools)
  10. 7 |
-------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/edge/deploy.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | const deploy = require('../deploy'); 6 | 7 | const main = async () => await deploy('edge'); 8 | 9 | main(); 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/edge/now.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-devtools-experimental-edge", 3 | "alias": ["react-devtools-experimental-edge"], 4 | "files": ["index.html", "ReactDevTools.zip"] 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/firefox/deploy.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | const deploy = require('../deploy'); 6 | 7 | const main = async () => await deploy('firefox'); 8 | 9 | main(); 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/firefox/now.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-devtools-experimental-firefox", 3 | "alias": ["react-devtools-experimental-firefox"], 4 | "files": ["index.html", "ReactDevTools.zip"] 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-deadcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-deadcode.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-development.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-development.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-disabled.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-outdated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-outdated.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-production.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-production.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-restricted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-restricted.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/128-unminified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/128-unminified.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-deadcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-deadcode.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-development.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-development.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-disabled.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-outdated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-outdated.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-production.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-production.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-restricted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-restricted.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/16-unminified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/16-unminified.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-deadcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-deadcode.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-development.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-development.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-disabled.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-outdated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-outdated.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-production.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-production.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-restricted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-restricted.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/32-unminified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/32-unminified.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-deadcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-deadcode.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-development.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-development.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-disabled.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-outdated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-outdated.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-production.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-production.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-restricted.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-restricted.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/icons/48-unminified.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-extensions/icons/48-unminified.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/main.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/popups/restricted.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 |

11 | This is a restricted browser page. 12 |
13 | React devtools cannot access this page. 14 |

15 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-extensions/popups/shared.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | font-size: 14px; 3 | } 4 | 5 | body { 6 | margin: 8px; 7 | } -------------------------------------------------------------------------------- /project-2/packages/react-devtools-inline/backend.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/backend'); 2 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-inline/frontend.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./dist/frontend'); 2 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-inline/src/constants.js: -------------------------------------------------------------------------------- 1 | /** @flow */ 2 | 3 | export const MESSAGE_TYPE_GET_SAVED_PREFERENCES = 4 | 'React::DevTools::getSavedPreferences'; 5 | export const MESSAGE_TYPE_SAVED_PREFERENCES = 6 | 'React::DevTools::savedPreferences'; 7 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/CanvasPage.css: -------------------------------------------------------------------------------- 1 | .CanvasPage { 2 | position: absolute; 3 | top: 0.5rem; 4 | bottom: 0.5rem; 5 | left: 0.5rem; 6 | right: 0.5rem; 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/ImportButton.css: -------------------------------------------------------------------------------- 1 | /** 2 | * https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications 3 | */ 4 | .Input { 5 | position: absolute !important; 6 | height: 1px; 7 | width: 1px; 8 | overflow: hidden; 9 | clip: rect(1px, 1px, 1px, 1px); 10 | } 11 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/SchedulingProfilerFeatureFlags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export const enableDarkMode = false; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/assets/profilerBrowser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools-scheduling-profiler/src/assets/profilerBrowser.png -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/constants.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export { 11 | COMFORTABLE_LINE_HEIGHT, 12 | COMPACT_LINE_HEIGHT, 13 | } from 'react-devtools-shared/src/constants.js'; 14 | 15 | export const REACT_TOTAL_NUM_LANES = 31; 16 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/context/ContextMenu.css: -------------------------------------------------------------------------------- 1 | .ContextMenu { 2 | position: absolute; 3 | border-radius: 0.125rem; 4 | background-color: #ffffff; 5 | border: 1px solid #ccc; 6 | box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 7 | font-size: 11px; 8 | overflow: hidden; 9 | z-index: 10000002; 10 | } 11 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/src/import-worker/InvalidProfileError.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | /** 11 | * An error thrown when an invalid profile could not be processed. 12 | */ 13 | export default class InvalidProfileError extends Error {} 14 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-scheduling-profiler/vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-devtools-scheduling-profiler" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/__tests__/__mocks__/cssMock.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/__tests__/setupEnv.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // DevTools stores preferences between sessions in localStorage 4 | if (!global.hasOwnProperty('localStorage')) { 5 | global.localStorage = require('local-storage-fallback').default; 6 | } 7 | 8 | // Mimic the global we set with Webpack's DefinePlugin 9 | global.__DEV__ = process.env.NODE_ENV !== 'production'; 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/ContextMenu/ContextMenu.css: -------------------------------------------------------------------------------- 1 | .ContextMenu { 2 | position: absolute; 3 | background-color: var(--color-context-background); 4 | border-radius: 0.25rem; 5 | overflow: hidden; 6 | z-index: 10000002; 7 | } -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/ButtonIcon.css: -------------------------------------------------------------------------------- 1 | .ButtonIcon { 2 | width: 1rem; 3 | height: 1rem; 4 | fill: currentColor; 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/EditableName.css: -------------------------------------------------------------------------------- 1 | .Input { 2 | flex: 0 1 auto; 3 | box-shadow: 0px 1px 3px transparent; 4 | color: var(--color-text); 5 | } 6 | .Input:focus { 7 | color: var(--color-text); 8 | box-shadow: 0px 1px 3px var(--color-shadow); 9 | } -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/ExpandCollapseToggle.css: -------------------------------------------------------------------------------- 1 | .ExpandCollapseToggle { 2 | flex: 0 0 1rem; 3 | width: 1rem; 4 | height: 1rem; 5 | padding: 0; 6 | color: var(--color-expand-collapse-toggle); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/LoadingAnimation.css: -------------------------------------------------------------------------------- 1 | .Icon { 2 | width: 1rem; 3 | height: 1rem; 4 | fill: currentColor; 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/AutoSizeInput.css: -------------------------------------------------------------------------------- 1 | .Input { 2 | min-width: 0.5rem; 3 | flex: 1 1 auto; 4 | border: none; 5 | background: transparent; 6 | outline: none; 7 | padding: 0; 8 | border: none; 9 | font-family: var(--font-family-monospace); 10 | font-size: var(--font-size-monospace-normal); 11 | } 12 | 13 | .Input:focus { 14 | border-color: var(--color-border); 15 | } 16 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/NewKeyValue.css: -------------------------------------------------------------------------------- 1 | .NewKeyValue { 2 | white-space: nowrap; 3 | display: flex; 4 | align-items: center; 5 | } 6 | 7 | .EditableName { 8 | margin-left: 1rem; 9 | } 10 | 11 | .EditableValue { 12 | min-width: 1rem; 13 | } 14 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/SelectedTreeHighlight.css: -------------------------------------------------------------------------------- 1 | .Active, 2 | .Inactive { 3 | position: absolute; 4 | left: 0; 5 | width: 100%; 6 | z-index: 0; 7 | pointer-events: none; 8 | } 9 | 10 | .Active { 11 | background-color: var(--color-selected-tree-highlight-active); 12 | } 13 | 14 | .Inactive { 15 | background-color: var(--color-selected-tree-highlight-inactive); 16 | } 17 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Components/TreeFocusedContext.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import {createContext} from 'react'; 11 | 12 | const TreeFocusedContext = createContext(false); 13 | 14 | export default TreeFocusedContext; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Icon.css: -------------------------------------------------------------------------------- 1 | .Icon { 2 | width: 1rem; 3 | height: 1rem; 4 | fill: currentColor; 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraph.css: -------------------------------------------------------------------------------- 1 | .Container { 2 | width: 100%; 3 | flex: 1; 4 | padding: 0.5rem; 5 | } 6 | 7 | .PatternPath { 8 | stroke: var(--color-commit-did-not-render-pattern); 9 | stroke-width: 1; 10 | } 11 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.css: -------------------------------------------------------------------------------- 1 | .Container { 2 | width: 100%; 3 | flex: 1; 4 | padding: 0.5rem; 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/Interactions.css: -------------------------------------------------------------------------------- 1 | .Container { 2 | width: 100%; 3 | flex: 1; 4 | padding: 0.5rem; 5 | } 6 | 7 | .FocusTarget:focus { 8 | outline: none; 9 | } 10 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/NoCommitData.css: -------------------------------------------------------------------------------- 1 | .NoCommitData { 2 | width: 100%; 3 | height: 100%; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: center; 8 | } 9 | 10 | .Header { 11 | font-size: var(--font-size-sans-large); 12 | margin-bottom: 0.5rem; 13 | } 14 | 15 | .FilterMessage { 16 | display: flex; 17 | align-items: center; 18 | } 19 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/NoInteractions.css: -------------------------------------------------------------------------------- 1 | .NoInteractions { 2 | width: 100%; 3 | height: 100%; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: center; 8 | } 9 | 10 | .Header { 11 | font-size: var(--font-size-sans-large); 12 | } 13 | 14 | .Link { 15 | color: var(--color-button); 16 | } 17 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Profiler/RootSelector.css: -------------------------------------------------------------------------------- 1 | .Spacer { 2 | flex: 1; 3 | } 4 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/ReactLogo.css: -------------------------------------------------------------------------------- 1 | .ReactLogo { 2 | width: 1.75rem; 3 | height: 1.75rem; 4 | margin: 0 0.75rem 0 0.25rem; 5 | color: var(--color-button-active); 6 | } 7 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/Tooltip.css: -------------------------------------------------------------------------------- 1 | .Tooltip { 2 | border: none; 3 | border-radius: 0.25rem; 4 | padding: 0.25rem 0.5rem; 5 | font-family: var(--font-family-sans); 6 | font-size: 12px; 7 | background-color: var(--color-tooltip-background); 8 | color: var(--color-tooltip-text); 9 | 10 | /* Make sure this is above the DevTools, which are above the Overlay */ 11 | z-index: 10000002; 12 | } 13 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/UnsupportedVersionDialog.css: -------------------------------------------------------------------------------- 1 | .Row { 2 | display: flex; 3 | flex-direction: row; 4 | align-items: center; 5 | } 6 | 7 | .Column { 8 | display: flex; 9 | flex-direction: column; 10 | align-items: center; 11 | } 12 | 13 | .Title { 14 | font-size: var(--font-size-sans-large); 15 | margin-bottom: 0.5rem; 16 | } 17 | 18 | .ReleaseNotesLink { 19 | color: var(--color-button-active); 20 | } -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shared/src/devtools/views/WarnIfLegacyBackendDetected.css: -------------------------------------------------------------------------------- 1 | .Command { 2 | background-color: var(--color-dimmest); 3 | padding: 0.25rem 0.5rem; 4 | display: block; 5 | border-radius: 0.125rem; 6 | } 7 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/now.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-devtools-experimental", 3 | "alias": ["react-devtools-experimental"], 4 | "files": ["index.html", "dist"] 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/src/app/InspectableElements/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import InspectableElements from './InspectableElements'; 11 | 12 | export default InspectableElements; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/src/app/ToDoList/List.css: -------------------------------------------------------------------------------- 1 | .Input { 2 | font-size: 1rem; 3 | padding: 0.25rem; 4 | } 5 | 6 | .IconButton { 7 | padding: 0.25rem; 8 | border: none; 9 | background: none; 10 | cursor: pointer; 11 | } 12 | 13 | .List { 14 | margin: 0.5rem 0 0; 15 | padding: 0; 16 | } 17 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/src/app/ToDoList/ListItem.css: -------------------------------------------------------------------------------- 1 | .ListItem { 2 | list-style-type: none; 3 | } 4 | 5 | .Input { 6 | cursor: pointer; 7 | } 8 | 9 | .Label { 10 | cursor: pointer; 11 | padding: 0.25rem; 12 | color: #555; 13 | } 14 | .Label:hover { 15 | color: #000; 16 | } 17 | 18 | .IconButton { 19 | padding: 0.25rem; 20 | border: none; 21 | background: none; 22 | cursor: pointer; 23 | } 24 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/src/app/ToDoList/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import List from './List'; 11 | 12 | export default List; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools-shell/src/app/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | /* GitHub.com frontend fonts */ 3 | font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, 4 | sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; 5 | font-size: 14px; 6 | line-height: 1.5; 7 | } 8 | 9 | h1 { 10 | font-size: 1.5rem; 11 | font-weight: bold; 12 | margin-bottom: 0.5rem; 13 | } 14 | -------------------------------------------------------------------------------- /project-2/packages/react-devtools/icons/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/packages/react-devtools/icons/icon128.png -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/server.browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-dom-server.browser.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-dom-server.browser.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./server.node'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/server.node.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-dom-server.node.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-dom-server.node.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/test-utils.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-dom-test-utils.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-dom-test-utils.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/unstable-fizz.browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-dom-unstable-fizz.browser.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-dom-unstable-fizz.browser.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/unstable-fizz.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./unstable-fizz.node'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/npm/unstable-fizz.node.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-dom-unstable-fizz.node.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-dom-unstable-fizz.node.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/server.browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export { 11 | renderToString, 12 | renderToStaticMarkup, 13 | renderToNodeStream, 14 | renderToStaticNodeStream, 15 | version, 16 | } from './src/server/ReactDOMServerBrowser'; 17 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './server.node'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/src/events/PluginModuleType.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export type AnyNativeEvent = Event | KeyboardEvent | MouseEvent | TouchEvent; 11 | 12 | export type PluginName = string; 13 | 14 | export type EventSystemFlags = number; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/test-utils.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/test-utils/ReactTestUtils'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/testing.experimental.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './index.experimental.js'; 11 | export {act} from 'react-reconciler/src/ReactFiberReconciler'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/testing.stable.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './index.stable.js'; 11 | export {act} from 'react-reconciler/src/ReactFiberReconciler'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/unstable-fizz.browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/server/ReactDOMFizzServerBrowser'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/unstable-fizz.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './unstable-fizz.node'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-dom/unstable-fizz.node.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/server/ReactDOMFizzServerNode'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/README.md: -------------------------------------------------------------------------------- 1 | # react-fetch 2 | 3 | This package is meant to be used alongside yet-to-be-released, experimental React features. It's unlikely to be useful in any other context. 4 | 5 | **Do not use in a real application.** We're publishing this early for 6 | demonstration purposes. 7 | 8 | **Use it at your own risk.** 9 | 10 | # No, Really, It Is Unstable 11 | 12 | The API ~~may~~ will change wildly between versions. 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/index.browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactFetchBrowser'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './index.node'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/index.node.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactFetchNode'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/npm/index.browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-fetch.browser.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-fetch.browser.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./index.node'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-fetch/npm/index.node.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-fetch.node.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-fetch.node.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/README.md: -------------------------------------------------------------------------------- 1 | # react-fs 2 | 3 | This package is meant to be used alongside yet-to-be-released, experimental React features. It's unlikely to be useful in any other context. 4 | 5 | **Do not use in a real application.** We're publishing this early for 6 | demonstration purposes. 7 | 8 | **Use it at your own risk.** 9 | 10 | # No, Really, It Is Unstable 11 | 12 | The API ~~may~~ will change wildly between versions. 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/index.browser.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'This entry point is not yet supported in the browser environment', 12 | ); 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'React FS cannot be used outside a react-server environment. ' + 12 | 'You must configure Node.js using the `--conditions react-server` flag.', 13 | ); 14 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/index.node.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactFilesystem'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/npm/index.browser.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-fs.browser.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-fs.browser.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | throw new Error( 4 | 'React FS cannot be used outside a react-server environment. ' + 5 | 'You must configure Node.js using the `--conditions react-server` flag.' 6 | ); 7 | -------------------------------------------------------------------------------- /project-2/packages/react-fs/npm/index.node.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-fs.node.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-fs.node.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/README.md: -------------------------------------------------------------------------------- 1 | # `react-interactions` 2 | 3 | This package is experimental. It is intended for use with the experimental React 4 | flags for internal testing. -------------------------------------------------------------------------------- /project-2/packages/react-interactions/events/focus.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/dom/create-event-handle/Focus'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/drag.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/drag.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/drag.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/focus.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/focus.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/focus.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/hover.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/hover.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/hover.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/input.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/input.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/input.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/press-legacy.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/press-legacy.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/press-legacy.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/press.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/press.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/press.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/scroll.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/scroll.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/scroll.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/swipe.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/swipe.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/swipe.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-interactions/npm/tap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-interactions-events/tap.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-interactions-events/tap.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-is/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactIs'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-is/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-is.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-is.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-renderer", 3 | "version": "16.0.0", 4 | "private": true, 5 | "repository": { 6 | "type" : "git", 7 | "url" : "https://github.com/facebook/react.git", 8 | "directory": "packages/react-native-renderer" 9 | }, 10 | "dependencies": { 11 | "object-assign": "^4.1.1", 12 | "scheduler": "^0.11.0" 13 | }, 14 | "peerDependencies": { 15 | "react": "^17.0.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/ReactNativeEventPluginOrder.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | const ReactNativeEventPluginOrder = [ 11 | 'ResponderEventPlugin', 12 | 'ReactNativeBridgeEventPlugin', 13 | ]; 14 | 15 | export default ReactNativeEventPluginOrder; 16 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/BatchedBridge.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const BatchedBridge = { 11 | registerCallableModule: jest.fn(), 12 | }; 13 | 14 | module.exports = BatchedBridge; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/ExceptionsManager.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = { 11 | handleException: jest.fn(), 12 | }; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/Platform.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 'use strict'; 8 | 9 | module.exports = { 10 | OS: 'ios', 11 | }; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/RCTEventEmitter.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const RCTEventEmitter = { 11 | register: jest.fn(), 12 | }; 13 | 14 | module.exports = RCTEventEmitter; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/ReactFiberErrorDialog.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow strict 8 | */ 9 | 10 | module.exports = { 11 | showErrorDialog: jest.fn(), 12 | }; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/flattenStyle.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | // TODO: Move flattenStyle into react 11 | 12 | const flattenStyle = function() {}; 13 | 14 | module.exports = flattenStyle; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/legacySendAccessibilityEvent.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = jest.fn(); 11 | -------------------------------------------------------------------------------- /project-2/packages/react-native-renderer/src/__tests__/__snapshots__/ReactNativeEvents-test.internal.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`fails if unknown/unsupported event types are dispatched 1`] = ` 4 | " {} 5 | View null" 6 | `; 7 | 8 | exports[`handles events 1`] = ` 9 | " {} 10 | View {\\"foo\\":\\"outer\\"} 11 | View {\\"foo\\":\\"inner\\"}" 12 | `; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/README.md: -------------------------------------------------------------------------------- 1 | # `react-noop-renderer` 2 | 3 | This package is the renderer we use for debugging [Fiber](https://github.com/facebook/react/issues/6170). 4 | It is not intended to be used directly. 5 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/flight-client.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactNoopFlightClient'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/flight-server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactNoopFlightServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactNoop'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/npm/flight-client.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-noop-renderer-flight-client.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-noop-renderer-flight-client.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/npm/flight-server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-noop-renderer-flight-server.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-noop-renderer-flight-server.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-noop-renderer.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-noop-renderer.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/npm/persistent.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-noop-renderer-persistent.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-noop-renderer-persistent.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/npm/server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-noop-renderer-server.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-noop-renderer-server.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/persistent.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactNoopPersistent'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-noop-renderer/server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactNoopServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/README.md: -------------------------------------------------------------------------------- 1 | # react-pg 2 | 3 | This package is meant to be used alongside yet-to-be-released, experimental React features. It's unlikely to be useful in any other context. 4 | 5 | **Do not use in a real application.** We're publishing this early for 6 | demonstration purposes. 7 | 8 | **Use it at your own risk.** 9 | 10 | # No, Really, It Is Unstable 11 | 12 | The API ~~may~~ will change wildly between versions. 13 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/index.browser.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'This entry point is not yet supported in the browser environment', 12 | ); 13 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'React PG cannot be used outside a react-server environment. ' + 12 | 'You must configure Node.js using the `--conditions react-server` flag.', 13 | ); 14 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/index.node.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactPostgres'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/npm/index.browser.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-pg.browser.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-pg.browser.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | throw new Error( 4 | 'React PG cannot be used outside a react-server environment. ' + 5 | 'You must configure Node.js using the `--conditions react-server` flag.' 6 | ); 7 | -------------------------------------------------------------------------------- /project-2/packages/react-pg/npm/index.node.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-pg.node.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-pg.node.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFiberReconciler'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-reconciler.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-reconciler.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/npm/reflection.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-reconciler-reflection.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-reconciler-reflection.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/reflection.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/ReactFiberTreeReflection'; 13 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/MaxInts.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | // Max 31 bit integer. The max integer size in V8 for 32-bit systems. 11 | // Math.pow(2, 30) - 1 12 | // 0b111111111111111111111111111111 13 | export const MAX_SIGNED_31_BIT_INT = 1073741823; 14 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/ReactRootTags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export type RootTag = 0 | 1 | 2; 11 | 12 | export const LegacyRoot = 0; 13 | export const BlockingRoot = 1; 14 | export const ConcurrentRoot = 2; 15 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/__tests__/__snapshots__/ReactHooks-test.internal.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`ReactHooks works with ReactDOMServer calls inside a component 1`] = `"

hello

0

bye

"`; 4 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.art.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-art/src/ReactARTHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.dom-browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-dom/src/client/ReactDOMHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.dom-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-dom/src/client/ReactDOMHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-dom/src/client/ReactDOMHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.fabric.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-native-renderer/src/ReactFabricHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.native-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-native-renderer/src/ReactFabricHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-native-renderer/src/ReactNativeHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-reconciler/src/forks/ReactFiberHostConfig.test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-test-renderer/src/ReactTestHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-refresh/babel.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export {default} from './src/ReactFreshBabelPlugin'; 9 | -------------------------------------------------------------------------------- /project-2/packages/react-refresh/npm/babel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-refresh-babel.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-refresh-babel.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-refresh/npm/runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-refresh-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-refresh-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-refresh/runtime.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export * from './src/ReactFreshRuntime'; 9 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-relay/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightDOMRelayClient'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-relay/server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightDOMRelayServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/README.md: -------------------------------------------------------------------------------- 1 | # react-server-dom-webpack 2 | 3 | Experimental React Flight bindings for DOM using Webpack. 4 | 5 | **Use it at your own risk.** 6 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/esm/react-server-dom-webpack-node-loader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../src/ReactFlightWebpackNodeLoader.js'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightDOMClient'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/node-register.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightWebpackNodeRegister'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/esm/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "module" 3 | } 4 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-server-dom-webpack.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-server-dom-webpack.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/node-register.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./cjs/react-server-dom-webpack-node-register.js'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/plugin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./cjs/react-server-dom-webpack-plugin.js'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/writer.browser.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-server-dom-webpack-writer.browser.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-server-dom-webpack-writer.browser.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/writer.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | throw new Error( 4 | 'The React Server Writer cannot be used outside a react-server environment. ' + 5 | 'You must configure Node.js using the `--conditions react-server` flag.' 6 | ); 7 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/npm/writer.node.server.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-server-dom-webpack-writer.node.production.min.server.js'); 5 | } else { 6 | module.exports = require('./cjs/react-server-dom-webpack-writer.node.development.server.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/plugin.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {default} from './src/ReactFlightWebpackPlugin'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/writer.browser.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightDOMServerBrowser'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/writer.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'The React Server Writer cannot be used outside a react-server environment. ' + 12 | 'You must configure Node.js using the `--conditions react-server` flag.', 13 | ); 14 | -------------------------------------------------------------------------------- /project-2/packages/react-server-dom-webpack/writer.node.server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightDOMServerNode'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-native-relay/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightNativeRelayClient'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server-native-relay/server.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightNativeRelayServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/README.md: -------------------------------------------------------------------------------- 1 | # react-server 2 | 3 | This is an experimental package for creating custom React streaming server renderers. 4 | 5 | **Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.** 6 | 7 | **Use it at your own risk.** 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server/flight.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFlightServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactFizzServer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/npm/flight.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-server-flight.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-server-flight.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-server.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-server.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactFlightServerConfig.custom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactFlightServerConfigStream'; 11 | export * from '../ReactFlightServerBundlerConfigCustom'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactFlightServerConfig.dom-browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactFlightServerConfigStream'; 11 | export * from 'react-server-dom-webpack/src/ReactFlightServerWebpackBundlerConfig'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactFlightServerConfig.dom-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-server-dom-relay/src/ReactFlightDOMRelayServerHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactFlightServerConfig.dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactFlightServerConfigStream'; 11 | export * from 'react-server-dom-webpack/src/ReactFlightServerWebpackBundlerConfig'; 12 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactFlightServerConfig.native-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from 'react-server-native-relay/src/ReactFlightNativeRelayServerHostConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerFormatConfig.dom-browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactDOMServerFormatConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerFormatConfig.dom-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactDOMServerFormatConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerFormatConfig.dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactDOMServerFormatConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerFormatConfig.native-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactNativeServerFormatConfig'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerStreamConfig.dom-browser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactServerStreamConfigBrowser'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerStreamConfig.dom-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactServerStreamConfigNode'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerStreamConfig.dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactServerStreamConfigNode'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-server/src/forks/ReactServerStreamConfig.native-relay.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from '../ReactServerStreamConfigNode'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-suspense-test-utils/README.md: -------------------------------------------------------------------------------- 1 | # react-suspense-test-utils 2 | 3 | This package is meant to be used alongside yet-to-be-released, experimental React features. It's unlikely to be useful in any other context. 4 | 5 | **Do not use in a real application.** We're publishing this early for 6 | demonstration purposes. 7 | 8 | **Use it at your own risk.** 9 | 10 | # No, Really, It Is Unstable 11 | 12 | The API ~~may~~ will change wildly between versions. 13 | -------------------------------------------------------------------------------- /project-2/packages/react-suspense-test-utils/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactSuspenseTestUtils'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-suspense-test-utils/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./cjs/react-suspense-test-utils.js'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-test-renderer/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export * from './src/ReactTestRenderer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react-test-renderer/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-test-renderer.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-test-renderer.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react-test-renderer/npm/shallow.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('react-shallow-renderer'); 4 | -------------------------------------------------------------------------------- /project-2/packages/react-test-renderer/shallow.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {default} from 'react-shallow-renderer'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export {Fragment, jsxDEV} from './src/jsx/ReactJSX'; 11 | -------------------------------------------------------------------------------- /project-2/packages/react/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | export {Fragment, jsx, jsxs} from './src/jsx/ReactJSX'; 10 | -------------------------------------------------------------------------------- /project-2/packages/react/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react/npm/jsx-dev-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-dev-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-dev-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react/npm/jsx-runtime.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-jsx-runtime.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-jsx-runtime.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react/npm/unstable-cache.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-unstable-cache.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-unstable-cache.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react/npm/unstable-shared-subset.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/react-unstable-shared-subset.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/react-unstable-shared-subset.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/react/src/forks/ReactCurrentDispatcher.www.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default require('ReactCurrentDispatcher'); 9 | -------------------------------------------------------------------------------- /project-2/packages/react/src/forks/ReactCurrentOwner.www.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | export default require('ReactCurrentOwner'); 9 | -------------------------------------------------------------------------------- /project-2/packages/react/unstable-shared-subset.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | throw new Error( 11 | 'This entry point is not yet supported outside of experimental channels', 12 | ); 13 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/README.md: -------------------------------------------------------------------------------- 1 | # `scheduler` 2 | 3 | This is a package for cooperative scheduling in a browser environment. It is currently used internally by React, but we plan to make it more generic. 4 | 5 | The public API for this package is not yet finalized. 6 | 7 | ### Thanks 8 | 9 | The React team thanks [Anton Podviaznikov](https://podviaznikov.com/) for donating the `scheduler` package name. 10 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/forks/SchedulerDOM'; 11 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (typeof window === 'undefined' || typeof MessageChannel !== 'function') { 4 | module.exports = require('./unstable_no_dom'); 5 | } else if (process.env.NODE_ENV === 'production') { 6 | module.exports = require('./cjs/scheduler.production.min.js'); 7 | } else { 8 | module.exports = require('./cjs/scheduler.development.js'); 9 | } 10 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/tracing-profiling.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/scheduler-tracing.profiling.min.js'); 5 | } else { 6 | module.exports = require('./cjs/scheduler-tracing.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/tracing.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/scheduler-tracing.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/scheduler-tracing.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/unstable_mock.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/scheduler-unstable_mock.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/scheduler-unstable_mock.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/unstable_no_dom.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/scheduler-unstable_no_dom.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/scheduler-unstable_no_dom.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/npm/unstable_post_task.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/scheduler-unstable_post_task.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/scheduler-unstable_post_task.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/src/SchedulerFeatureFlags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | */ 8 | 9 | export const enableSchedulerDebugging = false; 10 | export const enableIsInputPending = false; 11 | export const enableProfiling = __PROFILE__; 12 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/tracing.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/Tracing'; 13 | export * from './src/TracingSubscriptions'; 14 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/unstable_mock.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/forks/SchedulerMock'; 11 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/unstable_no_dom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/forks/SchedulerNoDOM'; 11 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/unstable_post_task.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/forks/SchedulerPostTask'; 11 | -------------------------------------------------------------------------------- /project-2/packages/scheduler/unstable_post_task_only.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | export * from './src/forks/SchedulerPostTaskOnly'; 11 | -------------------------------------------------------------------------------- /project-2/packages/shared/ExecutionEnvironment.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | export const canUseDOM: boolean = !!( 11 | typeof window !== 'undefined' && 12 | typeof window.document !== 'undefined' && 13 | typeof window.document.createElement !== 'undefined' 14 | ); 15 | -------------------------------------------------------------------------------- /project-2/packages/shared/ReactSharedInternals.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import * as React from 'react'; 11 | 12 | const ReactSharedInternals = 13 | React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; 14 | 15 | export default ReactSharedInternals; 16 | -------------------------------------------------------------------------------- /project-2/packages/shared/forks/object-assign.umd.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | import * as React from 'react'; 11 | 12 | const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; 13 | 14 | export default ReactInternals.assign; 15 | -------------------------------------------------------------------------------- /project-2/packages/shared/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "shared", 4 | "version": "0.0.0" 5 | } 6 | -------------------------------------------------------------------------------- /project-2/packages/use-subscription/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | 'use strict'; 11 | 12 | export * from './src/useSubscription'; 13 | -------------------------------------------------------------------------------- /project-2/packages/use-subscription/npm/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | if (process.env.NODE_ENV === 'production') { 4 | module.exports = require('./cjs/use-subscription.production.min.js'); 5 | } else { 6 | module.exports = require('./cjs/use-subscription.development.js'); 7 | } 8 | -------------------------------------------------------------------------------- /project-2/scripts/authors: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # Generate an AUTHORS file based on the output of git shortlog. It uses ABC 4 | # order, strips out leading spaces and numbers, then filters out specific 5 | # authors. 6 | 7 | git shortlog -se \ 8 | | perl -spe 's/^\s+\d+\s+//' \ 9 | | sed -e '/^CommitSyncScript.*$/d' \ 10 | > AUTHORS 11 | -------------------------------------------------------------------------------- /project-2/scripts/bench/.gitignore: -------------------------------------------------------------------------------- 1 | react-dom.production.min.js 2 | react.production.min.js 3 | -------------------------------------------------------------------------------- /project-2/scripts/bench/benchmarks/hacker-news/grayarrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/scripts/bench/benchmarks/hacker-news/grayarrow.gif -------------------------------------------------------------------------------- /project-2/scripts/bench/benchmarks/hacker-news/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-2/scripts/bench/benchmarks/hacker-news/logo.png -------------------------------------------------------------------------------- /project-2/scripts/circleci/add_build_info_json.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | node ./scripts/release/ci-add-build-info-json.js 6 | -------------------------------------------------------------------------------- /project-2/scripts/circleci/bench.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | npm run bench -------------------------------------------------------------------------------- /project-2/scripts/circleci/check_license.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # Make sure we don't introduce accidental references to PATENTS. 6 | EXPECTED='scripts/circleci/check_license.sh' 7 | ACTUAL=$(git grep -l PATENTS) 8 | 9 | if [ "$EXPECTED" != "$ACTUAL" ]; then 10 | echo "PATENTS crept into some new files?" 11 | diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true 12 | exit 1 13 | fi 14 | -------------------------------------------------------------------------------- /project-2/scripts/circleci/set_up_github_keys.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [ -n "$GITHUB_TOKEN" ]; then 6 | 7 | GH_PAGES_DIR=$(pwd)/../react-gh-pages 8 | echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc 9 | git config --global user.name "Circle CI" 10 | git config --global user.email "circle@reactjs.org" 11 | 12 | fi 13 | -------------------------------------------------------------------------------- /project-2/scripts/circleci/test_coverage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | yarn test --coverage --maxWorkers=2 6 | if [ -z "$CI_PULL_REQUEST" ]; then 7 | ./node_modules/.bin/coveralls < ./coverage/lcov.info 8 | fi 9 | 10 | # TODO: should we also track prod code coverage somehow? 11 | # yarn test-prod --coverage 12 | -------------------------------------------------------------------------------- /project-2/scripts/circleci/test_print_warnings.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | WARNINGS=$(node scripts/print-warnings/print-warnings.js) 6 | echo "$WARNINGS" 7 | test ! -z "$WARNINGS" 8 | -------------------------------------------------------------------------------- /project-2/scripts/circleci/update_package_versions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | node ./scripts/release/ci-update-package-versions.js 6 | -------------------------------------------------------------------------------- /project-2/scripts/error-codes/Types.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 'use strict'; 10 | 11 | /*:: export type ErrorMap = { [id: string]: string, ... }; */ 12 | 13 | -------------------------------------------------------------------------------- /project-2/scripts/eslint-rules/README.md: -------------------------------------------------------------------------------- 1 | # Custom ESLint Rules 2 | 3 | This is a dummy npm package that allows us to treat it as an `eslint-plugin`. It's not actually published, nor are the rules here useful for users of React. If you want to lint your React code, try . 4 | 5 | **If you modify this rule, you must re-run `npm install ./eslint-rules` for it to take effect.** 6 | -------------------------------------------------------------------------------- /project-2/scripts/eslint-rules/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "eslint-plugin-react-internal", 3 | "version": "0.0.0" 4 | } 5 | -------------------------------------------------------------------------------- /project-2/scripts/flow/react-devtools.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | */ 9 | 10 | declare var __EXTENSION__: boolean; 11 | declare var __TEST__: boolean; 12 | -------------------------------------------------------------------------------- /project-2/scripts/git/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # To enable this hook, symlink or copy this file to .git/hooks/pre-commit. 4 | 5 | # Redirect output to stderr. 6 | exec 1>&2 7 | 8 | git diff --cached --name-only --diff-filter=ACMRTUB | \ 9 | grep '\.js$' | \ 10 | xargs ./node_modules/.bin/eslint -- 11 | -------------------------------------------------------------------------------- /project-2/scripts/jest/dont-run-jest-directly.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | throw new Error("Don't run `jest` directly. Run `yarn test` instead."); 4 | -------------------------------------------------------------------------------- /project-2/scripts/jest/noHaste.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = { 4 | getHasteName() { 5 | // We never want Haste. 6 | return null; 7 | }, 8 | }; 9 | -------------------------------------------------------------------------------- /project-2/scripts/jest/setupTests.build.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | jest.mock('scheduler', () => require.requireActual('scheduler/unstable_mock')); 4 | -------------------------------------------------------------------------------- /project-2/scripts/jest/setupTests.persistent.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | jest.mock('react-noop-renderer', () => 4 | require.requireActual('react-noop-renderer/persistent') 5 | ); 6 | 7 | global.__PERSISTENT__ = true; 8 | -------------------------------------------------------------------------------- /project-2/scripts/perf-counters/Makefile: -------------------------------------------------------------------------------- 1 | build/jsc-perf: src/* 2 | mkdir -p build 3 | g++ -std=c++11 -I/usr/include/webkitgtk-1.0/ -ljavascriptcoregtk-1.0 src/jsc-perf.cpp src/hardware-counter.cpp src/thread-local.cpp -o build/jsc-perf 4 | -------------------------------------------------------------------------------- /project-2/scripts/perf-counters/README.md: -------------------------------------------------------------------------------- 1 | # perf-counters 2 | 3 | Lightweight bindings to Linux perf event counters. 4 | 5 | ``` 6 | $ node 7 | > var PerfCounters = require('perf-counters'); 8 | > PerfCounters.init(); 9 | > var start = PerfCounters.getCounters(); console.log('test'); var end = PerfCounters.getCounters(); 10 | test 11 | > start 12 | { instructions: 1382, loads: 421, stores: 309 } 13 | > end 14 | { instructions: 647633, loads: 195771, stores: 133246 } 15 | > 16 | ``` 17 | -------------------------------------------------------------------------------- /project-2/scripts/perf-counters/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | "targets": [ 3 | { 4 | "target_name": "perfcounters", 5 | "sources": [ 6 | "src/hardware-counter.cpp", 7 | "src/perf-counters.cpp", 8 | "src/thread-local.cpp", 9 | ], 10 | "cflags": [ 11 | "-Wno-sign-compare", 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /project-2/scripts/perf-counters/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('bindings')('perfcounters'); 4 | -------------------------------------------------------------------------------- /project-2/scripts/perf-counters/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "perf-counters", 3 | "version": "0.1.2", 4 | "description": "Lightweight bindings to Linux perf event counters.", 5 | "main": "index.js", 6 | "license": "MIT", 7 | "dependencies": { 8 | "bindings": "^1.2.1" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /project-2/scripts/print-warnings/README.md: -------------------------------------------------------------------------------- 1 | We use this script to extract all messages from `warning()` calls. They don't get substituted with anything in the source or the build. We only do this so we can have a copy of these messages in our internal repository and can spot accidental changes to them. 2 | -------------------------------------------------------------------------------- /project-2/scripts/release/.gitignore: -------------------------------------------------------------------------------- 1 | .progress-estimator -------------------------------------------------------------------------------- /project-2/scripts/release/ci-npmrc: -------------------------------------------------------------------------------- 1 | //registry.npmjs.org/:_authToken=${NPM_TOKEN} 2 | -------------------------------------------------------------------------------- /project-2/scripts/release/prepare-release-from-npm-commands/get-latest-next-version.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | const {execRead, logPromise} = require('../utils'); 6 | 7 | const run = async () => { 8 | const version = await execRead('npm info react@next version'); 9 | 10 | return version; 11 | }; 12 | 13 | module.exports = async params => { 14 | return logPromise(run(params), 'Determining latest "next" release version'); 15 | }; 16 | -------------------------------------------------------------------------------- /project-2/scripts/rollup/shims/facebook-www/findDOMNode.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @flow 8 | * @format 9 | */ 10 | 11 | 'use strict'; 12 | 13 | const {findDOMNode} = require('ReactDOM'); 14 | 15 | module.exports = findDOMNode; 16 | -------------------------------------------------------------------------------- /project-2/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer_DO_NOT_USE.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | const ReactDOM = require('ReactDOM'); 11 | 12 | module.exports = ReactDOM.unstable_renderSubtreeIntoContainer; 13 | -------------------------------------------------------------------------------- /project-2/scripts/rollup/shims/react-native/ReactFeatureFlags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | * 7 | * @format 8 | * @flow strict-local 9 | */ 10 | 11 | 'use strict'; 12 | 13 | const ReactFeatureFlags = { 14 | debugRenderPhaseSideEffects: false, 15 | }; 16 | 17 | module.exports = ReactFeatureFlags; 18 | -------------------------------------------------------------------------------- /project-3/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.yml] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /project-3/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /project-3/.github/funding.yml: -------------------------------------------------------------------------------- 1 | github: [sindresorhus,Qix-] 2 | open_collective: sindresorhus 3 | tidelift: npm/chalk 4 | custom: https://sindresorhus.com/donate 5 | -------------------------------------------------------------------------------- /project-3/.github/security.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. 4 | -------------------------------------------------------------------------------- /project-3/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | yarn.lock 3 | coverage 4 | .nyc_output 5 | -------------------------------------------------------------------------------- /project-3/.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /project-3/.replit: -------------------------------------------------------------------------------- 1 | language = "nodejs" 2 | run = "cd examples && node rainbow" 3 | -------------------------------------------------------------------------------- /project-3/contributing.md: -------------------------------------------------------------------------------- 1 | # Contributing to Chalk 2 | 3 | Please note that this project is released with a [Contributor Code of Conduct](code-of-conduct.md). By participating in this project you agree to abide by its terms. 4 | -------------------------------------------------------------------------------- /project-3/media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dassencio/parallel-code-scanning/3194f253a93f8d02737682bf0e5de7cec3be1098/project-3/media/logo.png -------------------------------------------------------------------------------- /project-3/test/_fixture.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const chalk = require('../source'); 3 | 4 | console.log(`${chalk.hex('#ff6159')('testout')} ${chalk.stderr.hex('#ff6159')('testerr')}`); 5 | -------------------------------------------------------------------------------- /project-3/test/_supports-color.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const resolveFrom = require('resolve-from'); 3 | 4 | const DEFAULT = { 5 | stdout: { 6 | level: 3, 7 | hasBasic: true, 8 | has256: true, 9 | has16m: true 10 | }, 11 | stderr: { 12 | level: 3, 13 | hasBasic: true, 14 | has256: true, 15 | has16m: true 16 | } 17 | }; 18 | 19 | module.exports = (dir, override) => { 20 | require.cache[resolveFrom(dir, 'supports-color')] = {exports: override || DEFAULT}; 21 | }; 22 | -------------------------------------------------------------------------------- /project-3/test/constructor.js: -------------------------------------------------------------------------------- 1 | import test from 'ava'; 2 | 3 | const chalk = require('../source'); 4 | 5 | test('Chalk.constructor should throw an expected error', t => { 6 | const expectedError = t.throws(() => { 7 | chalk.constructor(); 8 | }); 9 | 10 | t.is(expectedError.message, '`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.'); 11 | 12 | t.throws(() => { 13 | new chalk.constructor(); // eslint-disable-line no-new 14 | }); 15 | }); 16 | --------------------------------------------------------------------------------