isomorfeus-preact 10.5.0 → 10.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +29 -0
- data/lib/isomorfeus/preact/config.rb +19 -35
- data/lib/isomorfeus/preact/imports.rb +30 -0
- data/lib/isomorfeus/preact_view_helper.rb +34 -42
- data/lib/isomorfeus-preact.rb +6 -4
- data/lib/lucid_app/context.rb +9 -9
- data/lib/preact/version.rb +1 -1
- data/node_modules/.bin/loose-envify +12 -0
- data/node_modules/.bin/loose-envify.cmd +17 -0
- data/node_modules/.bin/loose-envify.ps1 +28 -0
- data/node_modules/.package-lock.json +278 -0
- data/node_modules/@babel/runtime/LICENSE +22 -0
- data/node_modules/@babel/runtime/README.md +19 -0
- data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +99 -0
- data/node_modules/@babel/runtime/helpers/AwaitValue.js +6 -0
- data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +31 -0
- data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +12 -0
- data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +6 -0
- data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +8 -0
- data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +10 -0
- data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +57 -0
- data/node_modules/@babel/runtime/helpers/asyncIterator.js +16 -0
- data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +38 -0
- data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +8 -0
- data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +8 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +23 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classCallCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +8 -0
- data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +10 -0
- data/node_modules/@babel/runtime/helpers/classNameTDZError.js +6 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +8 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +12 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +15 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +9 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/construct.js +26 -0
- data/node_modules/@babel/runtime/helpers/createClass.js +18 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +61 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +25 -0
- data/node_modules/@babel/runtime/helpers/createSuper.js +25 -0
- data/node_modules/@babel/runtime/helpers/decorate.js +401 -0
- data/node_modules/@babel/runtime/helpers/defaults.js +17 -0
- data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +25 -0
- data/node_modules/@babel/runtime/helpers/defineProperty.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +95 -0
- data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +28 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +54 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +35 -0
- data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/construct.js +18 -0
- data/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +57 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +21 -0
- data/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/decorate.js +396 -0
- data/node_modules/@babel/runtime/helpers/esm/defaults.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +22 -0
- data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/get.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/inherits.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/instanceof.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/jsx.js +46 -0
- data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +39 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/set.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/tdz.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +1 -0
- data/node_modules/@babel/runtime/helpers/esm/toArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +37 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +65 -0
- data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/extends.js +21 -0
- data/node_modules/@babel/runtime/helpers/get.js +27 -0
- data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +10 -0
- data/node_modules/@babel/runtime/helpers/inherits.js +19 -0
- data/node_modules/@babel/runtime/helpers/inheritsLoose.js +10 -0
- data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +12 -0
- data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +6 -0
- data/node_modules/@babel/runtime/helpers/instanceof.js +10 -0
- data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +8 -0
- data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +54 -0
- data/node_modules/@babel/runtime/helpers/isNativeFunction.js +6 -0
- data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +15 -0
- data/node_modules/@babel/runtime/helpers/iterableToArray.js +6 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +32 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/jsx.js +50 -0
- data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +13 -0
- data/node_modules/@babel/runtime/helpers/newArrowCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/nonIterableRest.js +6 -0
- data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectSpread.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectSpread2.js +42 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +16 -0
- data/node_modules/@babel/runtime/helpers/readOnlyError.js +6 -0
- data/node_modules/@babel/runtime/helpers/set.js +55 -0
- data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +12 -0
- data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +10 -0
- data/node_modules/@babel/runtime/helpers/slicedToArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/superPropBase.js +13 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +14 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +11 -0
- data/node_modules/@babel/runtime/helpers/tdz.js +6 -0
- data/node_modules/@babel/runtime/helpers/temporalRef.js +10 -0
- data/node_modules/@babel/runtime/helpers/temporalUndefined.js +4 -0
- data/node_modules/@babel/runtime/helpers/toArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toConsumableArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toPrimitive.js +17 -0
- data/node_modules/@babel/runtime/helpers/toPropertyKey.js +11 -0
- data/node_modules/@babel/runtime/helpers/typeof.js +22 -0
- data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +13 -0
- data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +10 -0
- data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +45 -0
- data/node_modules/@babel/runtime/helpers/wrapRegExp.js +72 -0
- data/node_modules/@babel/runtime/helpers/writeOnlyError.js +6 -0
- data/node_modules/@babel/runtime/package.json +848 -0
- data/node_modules/@babel/runtime/regenerator/index.js +1 -0
- data/node_modules/css-in-js-utils/Changelog.md +16 -0
- data/node_modules/css-in-js-utils/LICENSE +21 -0
- data/node_modules/css-in-js-utils/README.md +241 -0
- data/node_modules/css-in-js-utils/lib/__tests__/assignStyle-test.js +117 -0
- data/node_modules/css-in-js-utils/lib/__tests__/camelCaseProperty-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyDeclaration-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyObject-test.js +31 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedValue-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isUnitlessProperty-test.js +43 -0
- data/node_modules/css-in-js-utils/lib/__tests__/normalizeProperty-test.js +21 -0
- data/node_modules/css-in-js-utils/lib/__tests__/resolveArrayValue-test.js +17 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixValue-test.js +20 -0
- data/node_modules/css-in-js-utils/lib/assignStyle.js +37 -0
- data/node_modules/css-in-js-utils/lib/camelCaseProperty.js +15 -0
- data/node_modules/css-in-js-utils/lib/cssifyDeclaration.js +17 -0
- data/node_modules/css-in-js-utils/lib/cssifyObject.js +34 -0
- data/node_modules/css-in-js-utils/lib/hyphenateProperty.js +17 -0
- data/node_modules/css-in-js-utils/lib/index.js +71 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedProperty.js +12 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedValue.js +12 -0
- data/node_modules/css-in-js-utils/lib/isUnitlessProperty.js +64 -0
- data/node_modules/css-in-js-utils/lib/normalizeProperty.js +21 -0
- data/node_modules/css-in-js-utils/lib/resolveArrayValue.js +19 -0
- data/node_modules/css-in-js-utils/lib/unprefixProperty.js +13 -0
- data/node_modules/css-in-js-utils/lib/unprefixValue.js +16 -0
- data/node_modules/css-in-js-utils/package.json +56 -0
- data/node_modules/css-tree/CHANGELOG.md +590 -0
- data/node_modules/css-tree/LICENSE +19 -0
- data/node_modules/css-tree/README.md +130 -0
- data/node_modules/css-tree/data/index.js +103 -0
- data/node_modules/css-tree/data/patch.json +721 -0
- data/node_modules/css-tree/dist/csstree.js +12606 -0
- data/node_modules/css-tree/dist/csstree.min.js +1 -0
- data/node_modules/css-tree/lib/common/List.js +576 -0
- data/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
- data/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
- data/node_modules/css-tree/lib/common/TokenStream.js +219 -0
- data/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
- data/node_modules/css-tree/lib/convertor/create.js +28 -0
- data/node_modules/css-tree/lib/convertor/index.js +3 -0
- data/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
- data/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
- data/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
- data/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
- data/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
- data/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
- data/node_modules/css-tree/lib/generator/create.js +66 -0
- data/node_modules/css-tree/lib/generator/index.js +4 -0
- data/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
- data/node_modules/css-tree/lib/index.js +1 -0
- data/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
- data/node_modules/css-tree/lib/lexer/error.js +127 -0
- data/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
- data/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
- data/node_modules/css-tree/lib/lexer/generic.js +585 -0
- data/node_modules/css-tree/lib/lexer/index.js +3 -0
- data/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
- data/node_modules/css-tree/lib/lexer/match.js +639 -0
- data/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
- data/node_modules/css-tree/lib/lexer/search.js +65 -0
- data/node_modules/css-tree/lib/lexer/structure.js +163 -0
- data/node_modules/css-tree/lib/lexer/trace.js +79 -0
- data/node_modules/css-tree/lib/parser/create.js +304 -0
- data/node_modules/css-tree/lib/parser/index.js +4 -0
- data/node_modules/css-tree/lib/parser/sequence.js +54 -0
- data/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
- data/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
- data/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
- data/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
- data/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
- data/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
- data/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
- data/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
- data/node_modules/css-tree/lib/syntax/create.js +77 -0
- data/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
- data/node_modules/css-tree/lib/syntax/function/var.js +43 -0
- data/node_modules/css-tree/lib/syntax/index.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
- data/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
- data/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
- data/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
- data/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
- data/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
- data/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
- data/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
- data/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
- data/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
- data/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
- data/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
- data/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
- data/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
- data/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
- data/node_modules/css-tree/lib/syntax/node/String.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
- data/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
- data/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
- data/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
- data/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/index.js +42 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
- data/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
- data/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
- data/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
- data/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
- data/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
- data/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
- data/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
- data/node_modules/css-tree/lib/tokenizer/const.js +40 -0
- data/node_modules/css-tree/lib/tokenizer/index.js +591 -0
- data/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
- data/node_modules/css-tree/lib/utils/clone.js +21 -0
- data/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
- data/node_modules/css-tree/lib/utils/names.js +104 -0
- data/node_modules/css-tree/lib/walker/create.js +284 -0
- data/node_modules/css-tree/lib/walker/index.js +4 -0
- data/node_modules/css-tree/package.json +60 -0
- data/node_modules/csstype/LICENSE +19 -0
- data/node_modules/csstype/README.md +273 -0
- data/node_modules/csstype/index.d.ts +20553 -0
- data/node_modules/csstype/index.js.flow +6278 -0
- data/node_modules/csstype/package.json +62 -0
- data/node_modules/error-stack-parser/CHANGELOG.md +53 -0
- data/node_modules/error-stack-parser/LICENSE +19 -0
- data/node_modules/error-stack-parser/README.md +44 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js +2 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map +1 -0
- data/node_modules/error-stack-parser/error-stack-parser.d.ts +66 -0
- data/node_modules/error-stack-parser/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/package.json +63 -0
- data/node_modules/fastest-stable-stringify/.eslintrc.yml +26 -0
- data/node_modules/fastest-stable-stringify/.travis.yml +7 -0
- data/node_modules/fastest-stable-stringify/LICENSE +18 -0
- data/node_modules/fastest-stable-stringify/README.md +44 -0
- data/node_modules/fastest-stable-stringify/benchmark/index.js +32 -0
- data/node_modules/fastest-stable-stringify/benchmark/test.json +215 -0
- data/node_modules/fastest-stable-stringify/example/key_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/example/nested.js +3 -0
- data/node_modules/fastest-stable-stringify/example/str.js +3 -0
- data/node_modules/fastest-stable-stringify/example/value_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/index.js +60 -0
- data/node_modules/fastest-stable-stringify/package.json +54 -0
- data/node_modules/fastest-stable-stringify/test/bench.js +20 -0
- data/node_modules/fastest-stable-stringify/test/nested.js +24 -0
- data/node_modules/fastest-stable-stringify/test/str.js +52 -0
- data/node_modules/fastest-stable-stringify/test/to-json.js +22 -0
- data/node_modules/hyphenate-style-name/LICENSE +28 -0
- data/node_modules/hyphenate-style-name/README.md +28 -0
- data/node_modules/hyphenate-style-name/index.cjs.js +21 -0
- data/node_modules/hyphenate-style-name/index.js +19 -0
- data/node_modules/hyphenate-style-name/package.json +42 -0
- data/node_modules/inline-style-prefixer/CHANGELOG.md +195 -0
- data/node_modules/inline-style-prefixer/LICENSE +22 -0
- data/node_modules/inline-style-prefixer/README.md +100 -0
- data/node_modules/inline-style-prefixer/es/createPrefixer.js +47 -0
- data/node_modules/inline-style-prefixer/es/data.js +12 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePluginList.js +21 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePrefixMap.js +75 -0
- data/node_modules/inline-style-prefixer/es/generator/index.js +69 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/pluginMap.js +108 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/propertyMap.js +38 -0
- data/node_modules/inline-style-prefixer/es/index.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/backgroundClip.js +7 -0
- data/node_modules/inline-style-prefixer/es/plugins/calc.js +11 -0
- data/node_modules/inline-style-prefixer/es/plugins/crossFade.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/cursor.js +16 -0
- data/node_modules/inline-style-prefixer/es/plugins/filter.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/flex.js +10 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxIE.js +67 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxOld.js +33 -0
- data/node_modules/inline-style-prefixer/es/plugins/gradient.js +14 -0
- data/node_modules/inline-style-prefixer/es/plugins/grid.js +129 -0
- data/node_modules/inline-style-prefixer/es/plugins/imageSet.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/index.js +17 -0
- data/node_modules/inline-style-prefixer/es/plugins/logical.js +35 -0
- data/node_modules/inline-style-prefixer/es/plugins/position.js +5 -0
- data/node_modules/inline-style-prefixer/es/plugins/sizing.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/transition.js +75 -0
- data/node_modules/inline-style-prefixer/es/utils/addNewValuesOnly.js +15 -0
- data/node_modules/inline-style-prefixer/es/utils/capitalizeString.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/isObject.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixProperty.js +22 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixValue.js +11 -0
- data/node_modules/inline-style-prefixer/lib/createPrefixer.js +66 -0
- data/node_modules/inline-style-prefixer/lib/data.js +17 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePluginList.js +32 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePrefixMap.js +86 -0
- data/node_modules/inline-style-prefixer/lib/generator/index.js +85 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/pluginMap.js +113 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/propertyMap.js +43 -0
- data/node_modules/inline-style-prefixer/lib/index.js +78 -0
- data/node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js +13 -0
- data/node_modules/inline-style-prefixer/lib/plugins/calc.js +21 -0
- data/node_modules/inline-style-prefixer/lib/plugins/crossFade.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/cursor.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/filter.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flex.js +16 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js +73 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js +39 -0
- data/node_modules/inline-style-prefixer/lib/plugins/gradient.js +26 -0
- data/node_modules/inline-style-prefixer/lib/plugins/grid.js +136 -0
- data/node_modules/inline-style-prefixer/lib/plugins/imageSet.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/index.js +69 -0
- data/node_modules/inline-style-prefixer/lib/plugins/logical.js +41 -0
- data/node_modules/inline-style-prefixer/lib/plugins/position.js +11 -0
- data/node_modules/inline-style-prefixer/lib/plugins/sizing.js +32 -0
- data/node_modules/inline-style-prefixer/lib/plugins/transition.js +92 -0
- data/node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js +21 -0
- data/node_modules/inline-style-prefixer/lib/utils/capitalizeString.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/isObject.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixProperty.js +32 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixValue.js +17 -0
- data/node_modules/inline-style-prefixer/package.json +79 -0
- data/node_modules/isobject/LICENSE +21 -0
- data/node_modules/isobject/README.md +122 -0
- data/node_modules/isobject/index.d.ts +5 -0
- data/node_modules/isobject/index.js +12 -0
- data/node_modules/isobject/package.json +74 -0
- data/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/js-tokens/README.md +240 -0
- data/node_modules/js-tokens/index.js +23 -0
- data/node_modules/js-tokens/package.json +30 -0
- data/node_modules/loose-envify/LICENSE +21 -0
- data/node_modules/loose-envify/README.md +45 -0
- data/node_modules/loose-envify/cli.js +16 -0
- data/node_modules/loose-envify/custom.js +4 -0
- data/node_modules/loose-envify/index.js +3 -0
- data/node_modules/loose-envify/loose-envify.js +36 -0
- data/node_modules/loose-envify/package.json +36 -0
- data/node_modules/loose-envify/replace.js +65 -0
- data/node_modules/mdn-data/LICENSE +116 -0
- data/node_modules/mdn-data/README.md +56 -0
- data/node_modules/mdn-data/api/index.js +3 -0
- data/node_modules/mdn-data/api/inheritance.json +2681 -0
- data/node_modules/mdn-data/api/inheritance.schema.json +31 -0
- data/node_modules/mdn-data/css/at-rules.json +560 -0
- data/node_modules/mdn-data/css/at-rules.schema.json +132 -0
- data/node_modules/mdn-data/css/definitions.json +77 -0
- data/node_modules/mdn-data/css/index.js +8 -0
- data/node_modules/mdn-data/css/properties.json +9163 -0
- data/node_modules/mdn-data/css/properties.schema.json +402 -0
- data/node_modules/mdn-data/css/selectors.json +927 -0
- data/node_modules/mdn-data/css/selectors.schema.json +36 -0
- data/node_modules/mdn-data/css/syntaxes.json +761 -0
- data/node_modules/mdn-data/css/syntaxes.schema.json +15 -0
- data/node_modules/mdn-data/css/types.json +265 -0
- data/node_modules/mdn-data/css/types.schema.json +32 -0
- data/node_modules/mdn-data/css/units.json +199 -0
- data/node_modules/mdn-data/css/units.schema.json +28 -0
- data/node_modules/mdn-data/index.js +5 -0
- data/node_modules/mdn-data/l10n/css.json +1567 -0
- data/node_modules/mdn-data/l10n/index.js +3 -0
- data/node_modules/mdn-data/package.json +39 -0
- data/node_modules/nano-css/.circleci/config.yml +85 -0
- data/node_modules/nano-css/.eslintrc.yml +27 -0
- data/node_modules/nano-css/.github/FUNDING.yml +3 -0
- data/node_modules/nano-css/.github/workflows/nodejs.yml +23 -0
- data/node_modules/nano-css/CHANGELOG.md +362 -0
- data/node_modules/nano-css/LICENSE +24 -0
- data/node_modules/nano-css/README.md +70 -0
- data/node_modules/nano-css/addon/__dev__/warnOnMissingDependencies.js +25 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/reset.test.js.snap +407 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/tachyons.test.js.snap +43 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.test.js +223 -0
- data/node_modules/nano-css/addon/__tests__/atoms.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/atoms.test.js +49 -0
- data/node_modules/nano-css/addon/__tests__/cssom.server.test.js +12 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.test.js +219 -0
- data/node_modules/nano-css/addon/__tests__/env.js +6 -0
- data/node_modules/nano-css/addon/__tests__/extract.server.test.js +159 -0
- data/node_modules/nano-css/addon/__tests__/index.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/index.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/index.test.js +257 -0
- data/node_modules/nano-css/addon/__tests__/jsx.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/jsx.test.js +33 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.test.js +131 -0
- data/node_modules/nano-css/addon/__tests__/limit.server.test.js +54 -0
- data/node_modules/nano-css/addon/__tests__/nesting.test.js +85 -0
- data/node_modules/nano-css/addon/__tests__/prefixer.test.js +121 -0
- data/node_modules/nano-css/addon/__tests__/put.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/put.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/put.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/put.test.js +75 -0
- data/node_modules/nano-css/addon/__tests__/reset.test.js +38 -0
- data/node_modules/nano-css/addon/__tests__/rule.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.dev.test.js +7 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.test.js +57 -0
- data/node_modules/nano-css/addon/__tests__/setup.js +7 -0
- data/node_modules/nano-css/addon/__tests__/sheet.test.js +74 -0
- data/node_modules/nano-css/addon/__tests__/snake.test.js +124 -0
- data/node_modules/nano-css/addon/__tests__/tachyons.test.js +45 -0
- data/node_modules/nano-css/addon/__tests__/units.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/units.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/units.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/units.test.js +41 -0
- data/node_modules/nano-css/addon/__tests__/validate.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/validate.test.js +69 -0
- data/node_modules/nano-css/addon/__tests__/vcssom.server.test.js +14 -0
- data/node_modules/nano-css/addon/__tests__/virtual.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/virtual.test.js +225 -0
- data/node_modules/nano-css/addon/amp.d.ts +5 -0
- data/node_modules/nano-css/addon/amp.js +156 -0
- data/node_modules/nano-css/addon/animate/fadeIn.js +22 -0
- data/node_modules/nano-css/addon/animate/fadeInDown.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeInScale.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeOut.js +23 -0
- data/node_modules/nano-css/addon/animate/fadeOutScale.js +21 -0
- data/node_modules/nano-css/addon/array.d.ts +5 -0
- data/node_modules/nano-css/addon/array.js +33 -0
- data/node_modules/nano-css/addon/atoms.d.ts +243 -0
- data/node_modules/nano-css/addon/atoms.js +63 -0
- data/node_modules/nano-css/addon/cache.d.ts +8 -0
- data/node_modules/nano-css/addon/cache.js +17 -0
- data/node_modules/nano-css/addon/component.d.ts +7 -0
- data/node_modules/nano-css/addon/component.js +26 -0
- data/node_modules/nano-css/addon/cssom.d.ts +17 -0
- data/node_modules/nano-css/addon/cssom.js +36 -0
- data/node_modules/nano-css/addon/decorator.d.ts +7 -0
- data/node_modules/nano-css/addon/decorator.js +43 -0
- data/node_modules/nano-css/addon/drule.d.ts +8 -0
- data/node_modules/nano-css/addon/drule.js +27 -0
- data/node_modules/nano-css/addon/dsheet.d.ts +8 -0
- data/node_modules/nano-css/addon/dsheet.js +36 -0
- data/node_modules/nano-css/addon/emmet.d.ts +614 -0
- data/node_modules/nano-css/addon/emmet.js +177 -0
- data/node_modules/nano-css/addon/extract.d.ts +5 -0
- data/node_modules/nano-css/addon/extract.js +59 -0
- data/node_modules/nano-css/addon/global.d.ts +8 -0
- data/node_modules/nano-css/addon/global.js +19 -0
- data/node_modules/nano-css/addon/googleFont.d.ts +8 -0
- data/node_modules/nano-css/addon/googleFont.js +43 -0
- data/node_modules/nano-css/addon/hydrate.d.ts +7 -0
- data/node_modules/nano-css/addon/hydrate.js +28 -0
- data/node_modules/nano-css/addon/hyperstyle.js +27 -0
- data/node_modules/nano-css/addon/important.js +38 -0
- data/node_modules/nano-css/addon/jsx.js +60 -0
- data/node_modules/nano-css/addon/keyframes.d.ts +34 -0
- data/node_modules/nano-css/addon/keyframes.js +61 -0
- data/node_modules/nano-css/addon/limit.js +26 -0
- data/node_modules/nano-css/addon/nesting.js +37 -0
- data/node_modules/nano-css/addon/pipe.js +57 -0
- data/node_modules/nano-css/addon/prefixer.js +79 -0
- data/node_modules/nano-css/addon/ref.js +87 -0
- data/node_modules/nano-css/addon/reset/EricMeyer.js +48 -0
- data/node_modules/nano-css/addon/reset/EricMeyerCondensed.js +44 -0
- data/node_modules/nano-css/addon/reset/Minimalistic.js +16 -0
- data/node_modules/nano-css/addon/reset/Minimalistic2.js +17 -0
- data/node_modules/nano-css/addon/reset/Minimalistic3.js +18 -0
- data/node_modules/nano-css/addon/reset/Normalize.js +83 -0
- data/node_modules/nano-css/addon/reset/PoorMan.js +25 -0
- data/node_modules/nano-css/addon/reset/ShaunInman.js +42 -0
- data/node_modules/nano-css/addon/reset/Siolon.js +34 -0
- data/node_modules/nano-css/addon/reset/Tantek.js +31 -0
- data/node_modules/nano-css/addon/reset/Tripoli.js +75 -0
- data/node_modules/nano-css/addon/reset/Universal.js +23 -0
- data/node_modules/nano-css/addon/reset/Yahoo.js +43 -0
- data/node_modules/nano-css/addon/reset-font.js +24 -0
- data/node_modules/nano-css/addon/rtl.js +15 -0
- data/node_modules/nano-css/addon/rule.d.ts +26 -0
- data/node_modules/nano-css/addon/rule.js +39 -0
- data/node_modules/nano-css/addon/sheet.d.ts +22 -0
- data/node_modules/nano-css/addon/sheet.js +45 -0
- data/node_modules/nano-css/addon/snake.js +141 -0
- data/node_modules/nano-css/addon/sourcemaps.js +96 -0
- data/node_modules/nano-css/addon/spread.js +23 -0
- data/node_modules/nano-css/addon/stable.js +7 -0
- data/node_modules/nano-css/addon/style.js +33 -0
- data/node_modules/nano-css/addon/styled.js +161 -0
- data/node_modules/nano-css/addon/stylis/plugin-onRule.js +43 -0
- data/node_modules/nano-css/addon/stylis.js +28 -0
- data/node_modules/nano-css/addon/tachyons.js +215 -0
- data/node_modules/nano-css/addon/unitless.js +78 -0
- data/node_modules/nano-css/addon/units.d.ts +89 -0
- data/node_modules/nano-css/addon/units.js +27 -0
- data/node_modules/nano-css/addon/useStyles.js +24 -0
- data/node_modules/nano-css/addon/util/cloneElement.js +11 -0
- data/node_modules/nano-css/addon/util/transformComponentDynamic.js +50 -0
- data/node_modules/nano-css/addon/util/transformComponentStatic.js +26 -0
- data/node_modules/nano-css/addon/validate.js +82 -0
- data/node_modules/nano-css/addon/vcssom/__tests__/cssToTree.test.js +159 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.d.ts +15 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.js +42 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.d.ts +3 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.js +15 -0
- data/node_modules/nano-css/addon/vcssom.d.ts +72 -0
- data/node_modules/nano-css/addon/vcssom.js +97 -0
- data/node_modules/nano-css/addon/virtual.js +107 -0
- data/node_modules/nano-css/addon/withStyles.js +32 -0
- data/node_modules/nano-css/index.d.ts +4 -0
- data/node_modules/nano-css/index.js +138 -0
- data/node_modules/nano-css/package.json +145 -0
- data/node_modules/nano-css/preset/react.js +43 -0
- data/node_modules/nano-css/preset/sheet.d.ts +5 -0
- data/node_modules/nano-css/preset/sheet.js +27 -0
- data/node_modules/nano-css/preset/vdom.js +40 -0
- data/node_modules/nano-css/prettier.config.js +13 -0
- data/node_modules/nano-css/renovate.json +3 -0
- data/node_modules/nano-css/types/common.d.ts +14 -0
- data/node_modules/nano-css/types/demo.ts +7 -0
- data/node_modules/nano-css/types/nano.d.ts +171 -0
- data/node_modules/object-assign/index.js +90 -0
- data/node_modules/object-assign/license +21 -0
- data/node_modules/object-assign/package.json +42 -0
- data/node_modules/object-assign/readme.md +61 -0
- data/node_modules/preact/LICENSE +21 -0
- data/node_modules/preact/README.md +187 -0
- data/node_modules/preact/compat/LICENSE +21 -0
- data/node_modules/preact/compat/dist/compat.js +2 -0
- data/node_modules/preact/compat/dist/compat.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.mjs +2 -0
- data/node_modules/preact/compat/dist/compat.mjs.map +1 -0
- data/node_modules/preact/compat/dist/compat.modern.js +2 -0
- data/node_modules/preact/compat/dist/compat.modern.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.module.js +2 -0
- data/node_modules/preact/compat/dist/compat.module.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.umd.js +2 -0
- data/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -0
- data/node_modules/preact/compat/jsx-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-runtime.mjs +1 -0
- data/node_modules/preact/compat/package.json +19 -0
- data/node_modules/preact/compat/scheduler.js +15 -0
- data/node_modules/preact/compat/scheduler.mjs +23 -0
- data/node_modules/preact/compat/server.js +15 -0
- data/node_modules/preact/compat/server.mjs +4 -0
- data/node_modules/preact/compat/src/Children.js +21 -0
- data/node_modules/preact/compat/src/PureComponent.js +15 -0
- data/node_modules/preact/compat/src/forwardRef.js +51 -0
- data/node_modules/preact/compat/src/index.d.ts +140 -0
- data/node_modules/preact/compat/src/index.js +187 -0
- data/node_modules/preact/compat/src/internal.d.ts +47 -0
- data/node_modules/preact/compat/src/memo.js +34 -0
- data/node_modules/preact/compat/src/portals.js +80 -0
- data/node_modules/preact/compat/src/render.js +219 -0
- data/node_modules/preact/compat/src/suspense-list.d.ts +14 -0
- data/node_modules/preact/compat/src/suspense-list.js +126 -0
- data/node_modules/preact/compat/src/suspense.d.ts +15 -0
- data/node_modules/preact/compat/src/suspense.js +270 -0
- data/node_modules/preact/compat/src/util.js +28 -0
- data/node_modules/preact/compat/test-utils.js +1 -0
- data/node_modules/preact/debug/LICENSE +21 -0
- data/node_modules/preact/debug/dist/debug.js +2 -0
- data/node_modules/preact/debug/dist/debug.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.mjs +2 -0
- data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
- data/node_modules/preact/debug/dist/debug.modern.js +2 -0
- data/node_modules/preact/debug/dist/debug.modern.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.module.js +2 -0
- data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.umd.js +2 -0
- data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
- data/node_modules/preact/debug/package.json +18 -0
- data/node_modules/preact/debug/src/check-props.js +54 -0
- data/node_modules/preact/debug/src/component-stack.js +146 -0
- data/node_modules/preact/debug/src/constants.js +3 -0
- data/node_modules/preact/debug/src/debug.js +442 -0
- data/node_modules/preact/debug/src/index.js +6 -0
- data/node_modules/preact/debug/src/internal.d.ts +82 -0
- data/node_modules/preact/debug/src/util.js +11 -0
- data/node_modules/preact/devtools/LICENSE +21 -0
- data/node_modules/preact/devtools/dist/devtools.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.mjs +2 -0
- data/node_modules/preact/devtools/dist/devtools.mjs.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.module.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
- data/node_modules/preact/devtools/package.json +16 -0
- data/node_modules/preact/devtools/src/devtools.js +10 -0
- data/node_modules/preact/devtools/src/index.d.ts +8 -0
- data/node_modules/preact/devtools/src/index.js +15 -0
- data/node_modules/preact/dist/preact.js +2 -0
- data/node_modules/preact/dist/preact.js.map +1 -0
- data/node_modules/preact/dist/preact.min.js +2 -0
- data/node_modules/preact/dist/preact.min.js.map +1 -0
- data/node_modules/preact/dist/preact.mjs +2 -0
- data/node_modules/preact/dist/preact.mjs.map +1 -0
- data/node_modules/preact/dist/preact.module.js +2 -0
- data/node_modules/preact/dist/preact.module.js.map +1 -0
- data/node_modules/preact/dist/preact.umd.js +2 -0
- data/node_modules/preact/dist/preact.umd.js.map +1 -0
- data/node_modules/preact/hooks/LICENSE +21 -0
- data/node_modules/preact/hooks/dist/hooks.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- data/node_modules/preact/hooks/dist/hooks.mjs.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
- data/node_modules/preact/hooks/package.json +26 -0
- data/node_modules/preact/hooks/src/index.d.ts +133 -0
- data/node_modules/preact/hooks/src/index.js +386 -0
- data/node_modules/preact/hooks/src/internal.d.ts +75 -0
- data/node_modules/preact/jsx-runtime/LICENSE +21 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
- data/node_modules/preact/jsx-runtime/package.json +19 -0
- data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -0
- data/node_modules/preact/jsx-runtime/src/index.js +77 -0
- data/node_modules/preact/package.json +270 -0
- data/node_modules/preact/src/cjs.js +3 -0
- data/node_modules/preact/src/clone-element.js +34 -0
- data/node_modules/preact/src/component.js +225 -0
- data/node_modules/preact/src/constants.js +3 -0
- data/node_modules/preact/src/create-context.js +68 -0
- data/node_modules/preact/src/create-element.js +97 -0
- data/node_modules/preact/src/diff/catch-error.js +38 -0
- data/node_modules/preact/src/diff/children.js +347 -0
- data/node_modules/preact/src/diff/index.js +514 -0
- data/node_modules/preact/src/diff/props.js +158 -0
- data/node_modules/preact/src/index.d.ts +310 -0
- data/node_modules/preact/src/index.js +13 -0
- data/node_modules/preact/src/internal.d.ts +146 -0
- data/node_modules/preact/src/jsx.d.ts +962 -0
- data/node_modules/preact/src/options.js +16 -0
- data/node_modules/preact/src/render.js +75 -0
- data/node_modules/preact/src/util.js +27 -0
- data/node_modules/preact/test-utils/dist/testUtils.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
- data/node_modules/preact/test-utils/package.json +19 -0
- data/node_modules/preact/test-utils/src/index.d.ts +3 -0
- data/node_modules/preact/test-utils/src/index.js +117 -0
- data/node_modules/preact-deep-force-update/.babelrc +8 -0
- data/node_modules/preact-deep-force-update/.eslintrc +66 -0
- data/node_modules/preact-deep-force-update/.npmignore +2 -0
- data/node_modules/preact-deep-force-update/.travis.yml +3 -0
- data/node_modules/preact-deep-force-update/LICENSE +21 -0
- data/node_modules/preact-deep-force-update/README.md +53 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js +36 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js.map +1 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js +2 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js.map +1 -0
- data/node_modules/preact-deep-force-update/karma.conf.js +32 -0
- data/node_modules/preact-deep-force-update/package.json +80 -0
- data/node_modules/preact-deep-force-update/rollup.config.js +17 -0
- data/node_modules/preact-deep-force-update/src/index.js +27 -0
- data/node_modules/preact-deep-force-update/test/index.js +50 -0
- data/node_modules/preact-render-to-string/LICENSE +21 -0
- data/node_modules/preact-render-to-string/README.md +102 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/dist/index.js +1 -0
- data/node_modules/preact-render-to-string/dist/index.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/dist/jsx.js +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/jsx.js +1 -0
- data/node_modules/preact-render-to-string/package.json +139 -0
- data/node_modules/preact-render-to-string/src/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/src/index.js +438 -0
- data/node_modules/preact-render-to-string/src/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/src/jsx.js +76 -0
- data/node_modules/preact-render-to-string/src/polyfills.js +8 -0
- data/node_modules/preact-render-to-string/src/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/src/util.js +78 -0
- data/node_modules/preact-render-to-string/typings.json +5 -0
- data/node_modules/pretty-format/.npmignore +3 -0
- data/node_modules/pretty-format/LICENSE.md +15 -0
- data/node_modules/pretty-format/README.md +94 -0
- data/node_modules/pretty-format/index.js +343 -0
- data/node_modules/pretty-format/package.json +26 -0
- data/node_modules/pretty-format/plugins/ReactElement.js +74 -0
- data/node_modules/pretty-format/plugins/ReactTestComponent.js +58 -0
- data/node_modules/pretty-format/printString.js +7 -0
- data/node_modules/react/LICENSE +21 -0
- data/node_modules/react/README.md +13 -0
- data/node_modules/react/build-info.json +8 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1203 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-runtime.development.js +1221 -0
- data/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
- data/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +10 -0
- data/node_modules/react/cjs/react.development.js +2333 -0
- data/node_modules/react/cjs/react.production.min.js +23 -0
- data/node_modules/react/index.js +7 -0
- data/node_modules/react/jsx-dev-runtime.js +7 -0
- data/node_modules/react/jsx-runtime.js +7 -0
- data/node_modules/react/package.json +39 -0
- data/node_modules/react/umd/react.development.js +3357 -0
- data/node_modules/react/umd/react.production.min.js +31 -0
- data/node_modules/react/umd/react.profiling.min.js +36 -0
- data/node_modules/react-dom/LICENSE +21 -0
- data/node_modules/react-dom/README.md +54 -0
- data/node_modules/react-dom/build-info.json +8 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4342 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +51 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.development.js +4383 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +52 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.development.js +2118 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +43 -0
- data/node_modules/react-dom/cjs/react-dom.development.js +26262 -0
- data/node_modules/react-dom/cjs/react-dom.production.min.js +297 -0
- data/node_modules/react-dom/cjs/react-dom.profiling.min.js +310 -0
- data/node_modules/react-dom/index.js +38 -0
- data/node_modules/react-dom/package.json +49 -0
- data/node_modules/react-dom/profiling.js +38 -0
- data/node_modules/react-dom/server.browser.js +7 -0
- data/node_modules/react-dom/server.js +3 -0
- data/node_modules/react-dom/server.node.js +7 -0
- data/node_modules/react-dom/test-utils.js +7 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.development.js +4341 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +46 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.development.js +2136 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +35 -0
- data/node_modules/react-dom/umd/react-dom.development.js +26292 -0
- data/node_modules/react-dom/umd/react-dom.production.min.js +245 -0
- data/node_modules/react-dom/umd/react-dom.profiling.min.js +252 -0
- data/node_modules/regenerator-runtime/LICENSE +21 -0
- data/node_modules/regenerator-runtime/README.md +31 -0
- data/node_modules/regenerator-runtime/package.json +19 -0
- data/node_modules/regenerator-runtime/path.js +11 -0
- data/node_modules/regenerator-runtime/runtime.js +754 -0
- data/node_modules/rtl-css-js/CHANGELOG.md +5 -0
- data/node_modules/rtl-css-js/LICENSE +20 -0
- data/node_modules/rtl-css-js/README.md +205 -0
- data/node_modules/rtl-css-js/core/package.json +6 -0
- data/node_modules/rtl-css-js/core.d.ts +163 -0
- data/node_modules/rtl-css-js/core.esm.d.ts +1 -0
- data/node_modules/rtl-css-js/core.esm.js +9 -0
- data/node_modules/rtl-css-js/dist/cjs/convert-a10c80e3.js +509 -0
- data/node_modules/rtl-css-js/dist/cjs/core.js +30 -0
- data/node_modules/rtl-css-js/dist/cjs/index.js +7 -0
- data/node_modules/rtl-css-js/dist/esm/convert-09159978.js +487 -0
- data/node_modules/rtl-css-js/dist/esm/core.js +1 -0
- data/node_modules/rtl-css-js/dist/esm/index.js +5 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js +519 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js +496 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/package.json +66 -0
- data/node_modules/rtl-css-js/types.d.ts +8 -0
- data/node_modules/scheduler/LICENSE +21 -0
- data/node_modules/scheduler/README.md +9 -0
- data/node_modules/scheduler/build-info.json +8 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
- data/node_modules/scheduler/cjs/scheduler.development.js +646 -0
- data/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
- data/node_modules/scheduler/index.js +7 -0
- data/node_modules/scheduler/package.json +40 -0
- data/node_modules/scheduler/tracing-profiling.js +7 -0
- data/node_modules/scheduler/tracing.js +7 -0
- data/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
- data/node_modules/scheduler/umd/scheduler.development.js +152 -0
- data/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
- data/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
- data/node_modules/scheduler/unstable_mock.js +7 -0
- data/node_modules/scheduler/unstable_post_task.js +7 -0
- data/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/README.md +742 -0
- data/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/node_modules/source-map/dist/source-map.js +3233 -0
- data/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/source-map/lib/util.js +488 -0
- data/node_modules/source-map/package.json +73 -0
- data/node_modules/source-map/source-map.d.ts +98 -0
- data/node_modules/source-map/source-map.js +8 -0
- data/node_modules/sourcemap-codec/CHANGELOG.md +64 -0
- data/node_modules/sourcemap-codec/LICENSE +21 -0
- data/node_modules/sourcemap-codec/README.md +63 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +124 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +135 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- data/node_modules/sourcemap-codec/package.json +53 -0
- data/node_modules/stack-generator/.eslintrc.yml +32 -0
- data/node_modules/stack-generator/CHANGELOG.md +18 -0
- data/node_modules/stack-generator/CONTRIBUTING.md +27 -0
- data/node_modules/stack-generator/LICENSE +19 -0
- data/node_modules/stack-generator/README.md +28 -0
- data/node_modules/stack-generator/bower.json +33 -0
- data/node_modules/stack-generator/component.json +17 -0
- data/node_modules/stack-generator/dist/stack-generator.js +45 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js +2 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js.map +1 -0
- data/node_modules/stack-generator/karma.conf.ci.js +108 -0
- data/node_modules/stack-generator/karma.conf.js +26 -0
- data/node_modules/stack-generator/package.json +53 -0
- data/node_modules/stack-generator/stack-generator.js +45 -0
- data/node_modules/stackframe/.eslintrc.yml +29 -0
- data/node_modules/stackframe/CHANGELOG.md +39 -0
- data/node_modules/stackframe/CONTRIBUTING.md +28 -0
- data/node_modules/stackframe/LICENSE +19 -0
- data/node_modules/stackframe/README.md +78 -0
- data/node_modules/stackframe/bower.json +31 -0
- data/node_modules/stackframe/component.json +16 -0
- data/node_modules/stackframe/dist/stackframe.js +143 -0
- data/node_modules/stackframe/dist/stackframe.min.js +2 -0
- data/node_modules/stackframe/dist/stackframe.min.js.map +1 -0
- data/node_modules/stackframe/karma.conf.ci.js +105 -0
- data/node_modules/stackframe/karma.conf.js +23 -0
- data/node_modules/stackframe/package.json +51 -0
- data/node_modules/stackframe/stackframe-tests.ts +47 -0
- data/node_modules/stackframe/stackframe.d.ts +74 -0
- data/node_modules/stackframe/stackframe.js +143 -0
- data/node_modules/stacktrace-gps/CHANGELOG.md +60 -0
- data/node_modules/stacktrace-gps/LICENSE +19 -0
- data/node_modules/stacktrace-gps/README.md +89 -0
- data/node_modules/stacktrace-gps/dist/polyfills.js +5 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/LICENSE +28 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/README.md +729 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.debug.js +3056 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.js +3055 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/array-set.js +104 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-generator.js +404 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-node.js +407 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/package.json +71 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/source-map.js +8 -0
- data/node_modules/stacktrace-gps/package.json +66 -0
- data/node_modules/stacktrace-gps/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-js/CHANGELOG.md +97 -0
- data/node_modules/stacktrace-js/LICENSE +19 -0
- data/node_modules/stacktrace-js/README.md +186 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js +5405 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js +3 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-js/dist/stacktrace.js +3025 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js +2 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js.map +1 -0
- data/node_modules/stacktrace-js/package.json +82 -0
- data/node_modules/stacktrace-js/stacktrace-js.d.ts +134 -0
- data/node_modules/stacktrace-js/stacktrace.js +227 -0
- data/node_modules/stylis/LICENSE +21 -0
- data/node_modules/stylis/README.md +152 -0
- data/node_modules/stylis/dist/stylis.mjs +2 -0
- data/node_modules/stylis/dist/stylis.mjs.map +1 -0
- data/node_modules/stylis/dist/umd/package.json +1 -0
- data/node_modules/stylis/dist/umd/stylis.js +2 -0
- data/node_modules/stylis/dist/umd/stylis.js.map +1 -0
- data/node_modules/stylis/index.js +7 -0
- data/node_modules/stylis/package.json +164 -0
- data/node_modules/stylis/src/Enum.js +20 -0
- data/node_modules/stylis/src/Middleware.js +107 -0
- data/node_modules/stylis/src/Parser.js +184 -0
- data/node_modules/stylis/src/Prefixer.js +119 -0
- data/node_modules/stylis/src/Serializer.js +34 -0
- data/node_modules/stylis/src/Tokenizer.js +244 -0
- data/node_modules/stylis/src/Utility.js +109 -0
- data/node_modules/wouter-preact/cjs/index.js +180 -0
- data/node_modules/wouter-preact/cjs/matcher.js +72 -0
- data/node_modules/wouter-preact/cjs/package.json +1 -0
- data/node_modules/wouter-preact/cjs/react-deps.js +75 -0
- data/node_modules/wouter-preact/cjs/static-location.js +21 -0
- data/node_modules/wouter-preact/cjs/use-location.js +94 -0
- data/node_modules/wouter-preact/index.d.ts +110 -0
- data/node_modules/wouter-preact/index.js +178 -0
- data/node_modules/wouter-preact/matcher.d.ts +30 -0
- data/node_modules/wouter-preact/matcher.js +66 -0
- data/node_modules/wouter-preact/package.json +33 -0
- data/node_modules/wouter-preact/react-deps.js +15 -0
- data/node_modules/wouter-preact/static-location.d.ts +16 -0
- data/node_modules/wouter-preact/static-location.js +17 -0
- data/node_modules/wouter-preact/use-location.d.ts +43 -0
- data/node_modules/wouter-preact/use-location.js +86 -0
- data/package.json +10 -0
- metadata +1097 -24
@@ -0,0 +1,347 @@
|
|
1
|
+
import { diff, unmount, applyRef } from './index';
|
2
|
+
import { createVNode, Fragment } from '../create-element';
|
3
|
+
import { EMPTY_OBJ, EMPTY_ARR } from '../constants';
|
4
|
+
import { getDomSibling } from '../component';
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Diff the children of a virtual node
|
8
|
+
* @param {import('../internal').PreactElement} parentDom The DOM element whose
|
9
|
+
* children are being diffed
|
10
|
+
* @param {import('../internal').ComponentChildren[]} renderResult
|
11
|
+
* @param {import('../internal').VNode} newParentVNode The new virtual
|
12
|
+
* node whose children should be diff'ed against oldParentVNode
|
13
|
+
* @param {import('../internal').VNode} oldParentVNode The old virtual
|
14
|
+
* node whose children should be diff'ed against newParentVNode
|
15
|
+
* @param {object} globalContext The current context object - modified by getChildContext
|
16
|
+
* @param {boolean} isSvg Whether or not this DOM node is an SVG node
|
17
|
+
* @param {Array<import('../internal').PreactElement>} excessDomChildren
|
18
|
+
* @param {Array<import('../internal').Component>} commitQueue List of components
|
19
|
+
* which have callbacks to invoke in commitRoot
|
20
|
+
* @param {import('../internal').PreactElement} oldDom The current attached DOM
|
21
|
+
* element any new dom elements should be placed around. Likely `null` on first
|
22
|
+
* render (except when hydrating). Can be a sibling DOM element when diffing
|
23
|
+
* Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.
|
24
|
+
* @param {boolean} isHydrating Whether or not we are in hydration
|
25
|
+
*/
|
26
|
+
export function diffChildren(
|
27
|
+
parentDom,
|
28
|
+
renderResult,
|
29
|
+
newParentVNode,
|
30
|
+
oldParentVNode,
|
31
|
+
globalContext,
|
32
|
+
isSvg,
|
33
|
+
excessDomChildren,
|
34
|
+
commitQueue,
|
35
|
+
oldDom,
|
36
|
+
isHydrating
|
37
|
+
) {
|
38
|
+
let i, j, oldVNode, childVNode, newDom, firstChildDom, refs;
|
39
|
+
|
40
|
+
// This is a compression of oldParentVNode!=null && oldParentVNode != EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR
|
41
|
+
// as EMPTY_OBJ._children should be `undefined`.
|
42
|
+
let oldChildren = (oldParentVNode && oldParentVNode._children) || EMPTY_ARR;
|
43
|
+
|
44
|
+
let oldChildrenLength = oldChildren.length;
|
45
|
+
|
46
|
+
newParentVNode._children = [];
|
47
|
+
for (i = 0; i < renderResult.length; i++) {
|
48
|
+
childVNode = renderResult[i];
|
49
|
+
|
50
|
+
if (childVNode == null || typeof childVNode == 'boolean') {
|
51
|
+
childVNode = newParentVNode._children[i] = null;
|
52
|
+
}
|
53
|
+
// If this newVNode is being reused (e.g. <div>{reuse}{reuse}</div>) in the same diff,
|
54
|
+
// or we are rendering a component (e.g. setState) copy the oldVNodes so it can have
|
55
|
+
// it's own DOM & etc. pointers
|
56
|
+
else if (
|
57
|
+
typeof childVNode == 'string' ||
|
58
|
+
typeof childVNode == 'number' ||
|
59
|
+
// eslint-disable-next-line valid-typeof
|
60
|
+
typeof childVNode == 'bigint'
|
61
|
+
) {
|
62
|
+
childVNode = newParentVNode._children[i] = createVNode(
|
63
|
+
null,
|
64
|
+
childVNode,
|
65
|
+
null,
|
66
|
+
null,
|
67
|
+
childVNode
|
68
|
+
);
|
69
|
+
} else if (Array.isArray(childVNode)) {
|
70
|
+
childVNode = newParentVNode._children[i] = createVNode(
|
71
|
+
Fragment,
|
72
|
+
{ children: childVNode },
|
73
|
+
null,
|
74
|
+
null,
|
75
|
+
null
|
76
|
+
);
|
77
|
+
} else if (childVNode._depth > 0) {
|
78
|
+
// VNode is already in use, clone it. This can happen in the following
|
79
|
+
// scenario:
|
80
|
+
// const reuse = <div />
|
81
|
+
// <div>{reuse}<span />{reuse}</div>
|
82
|
+
childVNode = newParentVNode._children[i] = createVNode(
|
83
|
+
childVNode.type,
|
84
|
+
childVNode.props,
|
85
|
+
childVNode.key,
|
86
|
+
null,
|
87
|
+
childVNode._original
|
88
|
+
);
|
89
|
+
} else {
|
90
|
+
childVNode = newParentVNode._children[i] = childVNode;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Terser removes the `continue` here and wraps the loop body
|
94
|
+
// in a `if (childVNode) { ... } condition
|
95
|
+
if (childVNode == null) {
|
96
|
+
continue;
|
97
|
+
}
|
98
|
+
|
99
|
+
childVNode._parent = newParentVNode;
|
100
|
+
childVNode._depth = newParentVNode._depth + 1;
|
101
|
+
|
102
|
+
// Check if we find a corresponding element in oldChildren.
|
103
|
+
// If found, delete the array item by setting to `undefined`.
|
104
|
+
// We use `undefined`, as `null` is reserved for empty placeholders
|
105
|
+
// (holes).
|
106
|
+
oldVNode = oldChildren[i];
|
107
|
+
|
108
|
+
if (
|
109
|
+
oldVNode === null ||
|
110
|
+
(oldVNode &&
|
111
|
+
childVNode.key == oldVNode.key &&
|
112
|
+
childVNode.type === oldVNode.type)
|
113
|
+
) {
|
114
|
+
oldChildren[i] = undefined;
|
115
|
+
} else {
|
116
|
+
// Either oldVNode === undefined or oldChildrenLength > 0,
|
117
|
+
// so after this loop oldVNode == null or oldVNode is a valid value.
|
118
|
+
for (j = 0; j < oldChildrenLength; j++) {
|
119
|
+
oldVNode = oldChildren[j];
|
120
|
+
// If childVNode is unkeyed, we only match similarly unkeyed nodes, otherwise we match by key.
|
121
|
+
// We always match by type (in either case).
|
122
|
+
if (
|
123
|
+
oldVNode &&
|
124
|
+
childVNode.key == oldVNode.key &&
|
125
|
+
childVNode.type === oldVNode.type
|
126
|
+
) {
|
127
|
+
oldChildren[j] = undefined;
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
oldVNode = null;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
oldVNode = oldVNode || EMPTY_OBJ;
|
135
|
+
|
136
|
+
// Morph the old element into the new one, but don't append it to the dom yet
|
137
|
+
diff(
|
138
|
+
parentDom,
|
139
|
+
childVNode,
|
140
|
+
oldVNode,
|
141
|
+
globalContext,
|
142
|
+
isSvg,
|
143
|
+
excessDomChildren,
|
144
|
+
commitQueue,
|
145
|
+
oldDom,
|
146
|
+
isHydrating
|
147
|
+
);
|
148
|
+
|
149
|
+
newDom = childVNode._dom;
|
150
|
+
|
151
|
+
if ((j = childVNode.ref) && oldVNode.ref != j) {
|
152
|
+
if (!refs) refs = [];
|
153
|
+
if (oldVNode.ref) refs.push(oldVNode.ref, null, childVNode);
|
154
|
+
refs.push(j, childVNode._component || newDom, childVNode);
|
155
|
+
}
|
156
|
+
|
157
|
+
if (newDom != null) {
|
158
|
+
if (firstChildDom == null) {
|
159
|
+
firstChildDom = newDom;
|
160
|
+
}
|
161
|
+
|
162
|
+
if (
|
163
|
+
typeof childVNode.type == 'function' &&
|
164
|
+
childVNode._children != null && // Can be null if childVNode suspended
|
165
|
+
childVNode._children === oldVNode._children
|
166
|
+
) {
|
167
|
+
childVNode._nextDom = oldDom = reorderChildren(
|
168
|
+
childVNode,
|
169
|
+
oldDom,
|
170
|
+
parentDom
|
171
|
+
);
|
172
|
+
} else {
|
173
|
+
oldDom = placeChild(
|
174
|
+
parentDom,
|
175
|
+
childVNode,
|
176
|
+
oldVNode,
|
177
|
+
oldChildren,
|
178
|
+
newDom,
|
179
|
+
oldDom
|
180
|
+
);
|
181
|
+
}
|
182
|
+
|
183
|
+
// Browsers will infer an option's `value` from `textContent` when
|
184
|
+
// no value is present. This essentially bypasses our code to set it
|
185
|
+
// later in `diff()`. It works fine in all browsers except for IE11
|
186
|
+
// where it breaks setting `select.value`. There it will be always set
|
187
|
+
// to an empty string. Re-applying an options value will fix that, so
|
188
|
+
// there are probably some internal data structures that aren't
|
189
|
+
// updated properly.
|
190
|
+
//
|
191
|
+
// To fix it we make sure to reset the inferred value, so that our own
|
192
|
+
// value check in `diff()` won't be skipped.
|
193
|
+
if (!isHydrating && newParentVNode.type === 'option') {
|
194
|
+
// @ts-ignore We have validated that the type of parentDOM is 'option'
|
195
|
+
// in the above check
|
196
|
+
parentDom.value = '';
|
197
|
+
} else if (typeof newParentVNode.type == 'function') {
|
198
|
+
// Because the newParentVNode is Fragment-like, we need to set it's
|
199
|
+
// _nextDom property to the nextSibling of its last child DOM node.
|
200
|
+
//
|
201
|
+
// `oldDom` contains the correct value here because if the last child
|
202
|
+
// is a Fragment-like, then oldDom has already been set to that child's _nextDom.
|
203
|
+
// If the last child is a DOM VNode, then oldDom will be set to that DOM
|
204
|
+
// node's nextSibling.
|
205
|
+
newParentVNode._nextDom = oldDom;
|
206
|
+
}
|
207
|
+
} else if (
|
208
|
+
oldDom &&
|
209
|
+
oldVNode._dom == oldDom &&
|
210
|
+
oldDom.parentNode != parentDom
|
211
|
+
) {
|
212
|
+
// The above condition is to handle null placeholders. See test in placeholder.test.js:
|
213
|
+
// `efficiently replace null placeholders in parent rerenders`
|
214
|
+
oldDom = getDomSibling(oldVNode);
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
newParentVNode._dom = firstChildDom;
|
219
|
+
|
220
|
+
// Remove remaining oldChildren if there are any.
|
221
|
+
for (i = oldChildrenLength; i--; ) {
|
222
|
+
if (oldChildren[i] != null) {
|
223
|
+
if (
|
224
|
+
typeof newParentVNode.type == 'function' &&
|
225
|
+
oldChildren[i]._dom != null &&
|
226
|
+
oldChildren[i]._dom == newParentVNode._nextDom
|
227
|
+
) {
|
228
|
+
// If the newParentVNode.__nextDom points to a dom node that is about to
|
229
|
+
// be unmounted, then get the next sibling of that vnode and set
|
230
|
+
// _nextDom to it
|
231
|
+
newParentVNode._nextDom = getDomSibling(oldParentVNode, i + 1);
|
232
|
+
}
|
233
|
+
|
234
|
+
unmount(oldChildren[i], oldChildren[i]);
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
// Set refs only after unmount
|
239
|
+
if (refs) {
|
240
|
+
for (i = 0; i < refs.length; i++) {
|
241
|
+
applyRef(refs[i], refs[++i], refs[++i]);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
246
|
+
function reorderChildren(childVNode, oldDom, parentDom) {
|
247
|
+
for (let tmp = 0; tmp < childVNode._children.length; tmp++) {
|
248
|
+
let vnode = childVNode._children[tmp];
|
249
|
+
if (vnode) {
|
250
|
+
// We typically enter this code path on sCU bailout, where we copy
|
251
|
+
// oldVNode._children to newVNode._children. If that is the case, we need
|
252
|
+
// to update the old children's _parent pointer to point to the newVNode
|
253
|
+
// (childVNode here).
|
254
|
+
vnode._parent = childVNode;
|
255
|
+
|
256
|
+
if (typeof vnode.type == 'function') {
|
257
|
+
oldDom = reorderChildren(vnode, oldDom, parentDom);
|
258
|
+
} else {
|
259
|
+
oldDom = placeChild(
|
260
|
+
parentDom,
|
261
|
+
vnode,
|
262
|
+
vnode,
|
263
|
+
childVNode._children,
|
264
|
+
vnode._dom,
|
265
|
+
oldDom
|
266
|
+
);
|
267
|
+
}
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
return oldDom;
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Flatten and loop through the children of a virtual node
|
276
|
+
* @param {import('../index').ComponentChildren} children The unflattened
|
277
|
+
* children of a virtual node
|
278
|
+
* @returns {import('../internal').VNode[]}
|
279
|
+
*/
|
280
|
+
export function toChildArray(children, out) {
|
281
|
+
out = out || [];
|
282
|
+
if (children == null || typeof children == 'boolean') {
|
283
|
+
} else if (Array.isArray(children)) {
|
284
|
+
children.some(child => {
|
285
|
+
toChildArray(child, out);
|
286
|
+
});
|
287
|
+
} else {
|
288
|
+
out.push(children);
|
289
|
+
}
|
290
|
+
return out;
|
291
|
+
}
|
292
|
+
|
293
|
+
function placeChild(
|
294
|
+
parentDom,
|
295
|
+
childVNode,
|
296
|
+
oldVNode,
|
297
|
+
oldChildren,
|
298
|
+
newDom,
|
299
|
+
oldDom
|
300
|
+
) {
|
301
|
+
let nextDom;
|
302
|
+
if (childVNode._nextDom !== undefined) {
|
303
|
+
// Only Fragments or components that return Fragment like VNodes will
|
304
|
+
// have a non-undefined _nextDom. Continue the diff from the sibling
|
305
|
+
// of last DOM child of this child VNode
|
306
|
+
nextDom = childVNode._nextDom;
|
307
|
+
|
308
|
+
// Eagerly cleanup _nextDom. We don't need to persist the value because
|
309
|
+
// it is only used by `diffChildren` to determine where to resume the diff after
|
310
|
+
// diffing Components and Fragments. Once we store it the nextDOM local var, we
|
311
|
+
// can clean up the property
|
312
|
+
childVNode._nextDom = undefined;
|
313
|
+
} else if (
|
314
|
+
oldVNode == null ||
|
315
|
+
newDom != oldDom ||
|
316
|
+
newDom.parentNode == null
|
317
|
+
) {
|
318
|
+
outer: if (oldDom == null || oldDom.parentNode !== parentDom) {
|
319
|
+
parentDom.appendChild(newDom);
|
320
|
+
nextDom = null;
|
321
|
+
} else {
|
322
|
+
// `j<oldChildrenLength; j+=2` is an alternative to `j++<oldChildrenLength/2`
|
323
|
+
for (
|
324
|
+
let sibDom = oldDom, j = 0;
|
325
|
+
(sibDom = sibDom.nextSibling) && j < oldChildren.length;
|
326
|
+
j += 2
|
327
|
+
) {
|
328
|
+
if (sibDom == newDom) {
|
329
|
+
break outer;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
parentDom.insertBefore(newDom, oldDom);
|
333
|
+
nextDom = oldDom;
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
// If we have pre-calculated the nextDOM node, use it. Else calculate it now
|
338
|
+
// Strictly check for `undefined` here cuz `null` is a valid value of `nextDom`.
|
339
|
+
// See more detail in create-element.js:createVNode
|
340
|
+
if (nextDom !== undefined) {
|
341
|
+
oldDom = nextDom;
|
342
|
+
} else {
|
343
|
+
oldDom = newDom.nextSibling;
|
344
|
+
}
|
345
|
+
|
346
|
+
return oldDom;
|
347
|
+
}
|
@@ -0,0 +1,514 @@
|
|
1
|
+
import { EMPTY_OBJ } from '../constants';
|
2
|
+
import { Component, getDomSibling } from '../component';
|
3
|
+
import { Fragment } from '../create-element';
|
4
|
+
import { diffChildren } from './children';
|
5
|
+
import { diffProps, setProperty } from './props';
|
6
|
+
import { assign, removeNode, slice } from '../util';
|
7
|
+
import options from '../options';
|
8
|
+
|
9
|
+
/**
|
10
|
+
* Diff two virtual nodes and apply proper changes to the DOM
|
11
|
+
* @param {import('../internal').PreactElement} parentDom The parent of the DOM element
|
12
|
+
* @param {import('../internal').VNode} newVNode The new virtual node
|
13
|
+
* @param {import('../internal').VNode} oldVNode The old virtual node
|
14
|
+
* @param {object} globalContext The current context object. Modified by getChildContext
|
15
|
+
* @param {boolean} isSvg Whether or not this element is an SVG node
|
16
|
+
* @param {Array<import('../internal').PreactElement>} excessDomChildren
|
17
|
+
* @param {Array<import('../internal').Component>} commitQueue List of components
|
18
|
+
* which have callbacks to invoke in commitRoot
|
19
|
+
* @param {import('../internal').PreactElement} oldDom The current attached DOM
|
20
|
+
* element any new dom elements should be placed around. Likely `null` on first
|
21
|
+
* render (except when hydrating). Can be a sibling DOM element when diffing
|
22
|
+
* Fragments that have siblings. In most cases, it starts out as `oldChildren[0]._dom`.
|
23
|
+
* @param {boolean} [isHydrating] Whether or not we are in hydration
|
24
|
+
*/
|
25
|
+
export function diff(
|
26
|
+
parentDom,
|
27
|
+
newVNode,
|
28
|
+
oldVNode,
|
29
|
+
globalContext,
|
30
|
+
isSvg,
|
31
|
+
excessDomChildren,
|
32
|
+
commitQueue,
|
33
|
+
oldDom,
|
34
|
+
isHydrating
|
35
|
+
) {
|
36
|
+
let tmp,
|
37
|
+
newType = newVNode.type;
|
38
|
+
|
39
|
+
// When passing through createElement it assigns the object
|
40
|
+
// constructor as undefined. This to prevent JSON-injection.
|
41
|
+
if (newVNode.constructor !== undefined) return null;
|
42
|
+
|
43
|
+
// If the previous diff bailed out, resume creating/hydrating.
|
44
|
+
if (oldVNode._hydrating != null) {
|
45
|
+
isHydrating = oldVNode._hydrating;
|
46
|
+
oldDom = newVNode._dom = oldVNode._dom;
|
47
|
+
// if we resume, we want the tree to be "unlocked"
|
48
|
+
newVNode._hydrating = null;
|
49
|
+
excessDomChildren = [oldDom];
|
50
|
+
}
|
51
|
+
|
52
|
+
if ((tmp = options._diff)) tmp(newVNode);
|
53
|
+
|
54
|
+
try {
|
55
|
+
outer: if (typeof newType == 'function') {
|
56
|
+
let c, isNew, oldProps, oldState, snapshot, clearProcessingException;
|
57
|
+
let newProps = newVNode.props;
|
58
|
+
|
59
|
+
// Necessary for createContext api. Setting this property will pass
|
60
|
+
// the context value as `this.context` just for this component.
|
61
|
+
tmp = newType.contextType;
|
62
|
+
let provider = tmp && globalContext[tmp._id];
|
63
|
+
let componentContext = tmp
|
64
|
+
? provider
|
65
|
+
? provider.props.value
|
66
|
+
: tmp._defaultValue
|
67
|
+
: globalContext;
|
68
|
+
|
69
|
+
// Get component and set it to `c`
|
70
|
+
if (oldVNode._component) {
|
71
|
+
c = newVNode._component = oldVNode._component;
|
72
|
+
clearProcessingException = c._processingException = c._pendingError;
|
73
|
+
} else {
|
74
|
+
// Instantiate the new component
|
75
|
+
if ('prototype' in newType && newType.prototype.render) {
|
76
|
+
// @ts-ignore The check above verifies that newType is suppose to be constructed
|
77
|
+
newVNode._component = c = new newType(newProps, componentContext); // eslint-disable-line new-cap
|
78
|
+
} else {
|
79
|
+
// @ts-ignore Trust me, Component implements the interface we want
|
80
|
+
newVNode._component = c = new Component(newProps, componentContext);
|
81
|
+
c.constructor = newType;
|
82
|
+
c.render = doRender;
|
83
|
+
}
|
84
|
+
if (provider) provider.sub(c);
|
85
|
+
|
86
|
+
c.props = newProps;
|
87
|
+
if (!c.state) c.state = {};
|
88
|
+
c.context = componentContext;
|
89
|
+
c._globalContext = globalContext;
|
90
|
+
isNew = c._dirty = true;
|
91
|
+
c._renderCallbacks = [];
|
92
|
+
}
|
93
|
+
|
94
|
+
// Invoke getDerivedStateFromProps
|
95
|
+
if (c._nextState == null) {
|
96
|
+
c._nextState = c.state;
|
97
|
+
}
|
98
|
+
if (newType.getDerivedStateFromProps != null) {
|
99
|
+
if (c._nextState == c.state) {
|
100
|
+
c._nextState = assign({}, c._nextState);
|
101
|
+
}
|
102
|
+
|
103
|
+
assign(
|
104
|
+
c._nextState,
|
105
|
+
newType.getDerivedStateFromProps(newProps, c._nextState)
|
106
|
+
);
|
107
|
+
}
|
108
|
+
|
109
|
+
oldProps = c.props;
|
110
|
+
oldState = c.state;
|
111
|
+
|
112
|
+
// Invoke pre-render lifecycle methods
|
113
|
+
if (isNew) {
|
114
|
+
if (
|
115
|
+
newType.getDerivedStateFromProps == null &&
|
116
|
+
c.componentWillMount != null
|
117
|
+
) {
|
118
|
+
c.componentWillMount();
|
119
|
+
}
|
120
|
+
|
121
|
+
if (c.componentDidMount != null) {
|
122
|
+
c._renderCallbacks.push(c.componentDidMount);
|
123
|
+
}
|
124
|
+
} else {
|
125
|
+
if (
|
126
|
+
newType.getDerivedStateFromProps == null &&
|
127
|
+
newProps !== oldProps &&
|
128
|
+
c.componentWillReceiveProps != null
|
129
|
+
) {
|
130
|
+
c.componentWillReceiveProps(newProps, componentContext);
|
131
|
+
}
|
132
|
+
|
133
|
+
if (
|
134
|
+
(!c._force &&
|
135
|
+
c.shouldComponentUpdate != null &&
|
136
|
+
c.shouldComponentUpdate(
|
137
|
+
newProps,
|
138
|
+
c._nextState,
|
139
|
+
componentContext
|
140
|
+
) === false) ||
|
141
|
+
newVNode._original === oldVNode._original
|
142
|
+
) {
|
143
|
+
c.props = newProps;
|
144
|
+
c.state = c._nextState;
|
145
|
+
// More info about this here: https://gist.github.com/JoviDeCroock/bec5f2ce93544d2e6070ef8e0036e4e8
|
146
|
+
if (newVNode._original !== oldVNode._original) c._dirty = false;
|
147
|
+
c._vnode = newVNode;
|
148
|
+
newVNode._dom = oldVNode._dom;
|
149
|
+
newVNode._children = oldVNode._children;
|
150
|
+
newVNode._children.forEach(vnode => {
|
151
|
+
if (vnode) vnode._parent = newVNode;
|
152
|
+
});
|
153
|
+
if (c._renderCallbacks.length) {
|
154
|
+
commitQueue.push(c);
|
155
|
+
}
|
156
|
+
|
157
|
+
break outer;
|
158
|
+
}
|
159
|
+
|
160
|
+
if (c.componentWillUpdate != null) {
|
161
|
+
c.componentWillUpdate(newProps, c._nextState, componentContext);
|
162
|
+
}
|
163
|
+
|
164
|
+
if (c.componentDidUpdate != null) {
|
165
|
+
c._renderCallbacks.push(() => {
|
166
|
+
c.componentDidUpdate(oldProps, oldState, snapshot);
|
167
|
+
});
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
c.context = componentContext;
|
172
|
+
c.props = newProps;
|
173
|
+
c.state = c._nextState;
|
174
|
+
|
175
|
+
if ((tmp = options._render)) tmp(newVNode);
|
176
|
+
|
177
|
+
c._dirty = false;
|
178
|
+
c._vnode = newVNode;
|
179
|
+
c._parentDom = parentDom;
|
180
|
+
|
181
|
+
tmp = c.render(c.props, c.state, c.context);
|
182
|
+
|
183
|
+
// Handle setState called in render, see #2553
|
184
|
+
c.state = c._nextState;
|
185
|
+
|
186
|
+
if (c.getChildContext != null) {
|
187
|
+
globalContext = assign(assign({}, globalContext), c.getChildContext());
|
188
|
+
}
|
189
|
+
|
190
|
+
if (!isNew && c.getSnapshotBeforeUpdate != null) {
|
191
|
+
snapshot = c.getSnapshotBeforeUpdate(oldProps, oldState);
|
192
|
+
}
|
193
|
+
|
194
|
+
let isTopLevelFragment =
|
195
|
+
tmp != null && tmp.type === Fragment && tmp.key == null;
|
196
|
+
let renderResult = isTopLevelFragment ? tmp.props.children : tmp;
|
197
|
+
|
198
|
+
diffChildren(
|
199
|
+
parentDom,
|
200
|
+
Array.isArray(renderResult) ? renderResult : [renderResult],
|
201
|
+
newVNode,
|
202
|
+
oldVNode,
|
203
|
+
globalContext,
|
204
|
+
isSvg,
|
205
|
+
excessDomChildren,
|
206
|
+
commitQueue,
|
207
|
+
oldDom,
|
208
|
+
isHydrating
|
209
|
+
);
|
210
|
+
|
211
|
+
c.base = newVNode._dom;
|
212
|
+
|
213
|
+
// We successfully rendered this VNode, unset any stored hydration/bailout state:
|
214
|
+
newVNode._hydrating = null;
|
215
|
+
|
216
|
+
if (c._renderCallbacks.length) {
|
217
|
+
commitQueue.push(c);
|
218
|
+
}
|
219
|
+
|
220
|
+
if (clearProcessingException) {
|
221
|
+
c._pendingError = c._processingException = null;
|
222
|
+
}
|
223
|
+
|
224
|
+
c._force = false;
|
225
|
+
} else if (
|
226
|
+
excessDomChildren == null &&
|
227
|
+
newVNode._original === oldVNode._original
|
228
|
+
) {
|
229
|
+
newVNode._children = oldVNode._children;
|
230
|
+
newVNode._dom = oldVNode._dom;
|
231
|
+
} else {
|
232
|
+
newVNode._dom = diffElementNodes(
|
233
|
+
oldVNode._dom,
|
234
|
+
newVNode,
|
235
|
+
oldVNode,
|
236
|
+
globalContext,
|
237
|
+
isSvg,
|
238
|
+
excessDomChildren,
|
239
|
+
commitQueue,
|
240
|
+
isHydrating
|
241
|
+
);
|
242
|
+
}
|
243
|
+
|
244
|
+
if ((tmp = options.diffed)) tmp(newVNode);
|
245
|
+
} catch (e) {
|
246
|
+
newVNode._original = null;
|
247
|
+
// if hydrating or creating initial tree, bailout preserves DOM:
|
248
|
+
if (isHydrating || excessDomChildren != null) {
|
249
|
+
newVNode._dom = oldDom;
|
250
|
+
newVNode._hydrating = !!isHydrating;
|
251
|
+
excessDomChildren[excessDomChildren.indexOf(oldDom)] = null;
|
252
|
+
// ^ could possibly be simplified to:
|
253
|
+
// excessDomChildren.length = 0;
|
254
|
+
}
|
255
|
+
options._catchError(e, newVNode, oldVNode);
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
/**
|
260
|
+
* @param {Array<import('../internal').Component>} commitQueue List of components
|
261
|
+
* which have callbacks to invoke in commitRoot
|
262
|
+
* @param {import('../internal').VNode} root
|
263
|
+
*/
|
264
|
+
export function commitRoot(commitQueue, root) {
|
265
|
+
if (options._commit) options._commit(root, commitQueue);
|
266
|
+
|
267
|
+
commitQueue.some(c => {
|
268
|
+
try {
|
269
|
+
// @ts-ignore Reuse the commitQueue variable here so the type changes
|
270
|
+
commitQueue = c._renderCallbacks;
|
271
|
+
c._renderCallbacks = [];
|
272
|
+
commitQueue.some(cb => {
|
273
|
+
// @ts-ignore See above ts-ignore on commitQueue
|
274
|
+
cb.call(c);
|
275
|
+
});
|
276
|
+
} catch (e) {
|
277
|
+
options._catchError(e, c._vnode);
|
278
|
+
}
|
279
|
+
});
|
280
|
+
}
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Diff two virtual nodes representing DOM element
|
284
|
+
* @param {import('../internal').PreactElement} dom The DOM element representing
|
285
|
+
* the virtual nodes being diffed
|
286
|
+
* @param {import('../internal').VNode} newVNode The new virtual node
|
287
|
+
* @param {import('../internal').VNode} oldVNode The old virtual node
|
288
|
+
* @param {object} globalContext The current context object
|
289
|
+
* @param {boolean} isSvg Whether or not this DOM node is an SVG node
|
290
|
+
* @param {*} excessDomChildren
|
291
|
+
* @param {Array<import('../internal').Component>} commitQueue List of components
|
292
|
+
* which have callbacks to invoke in commitRoot
|
293
|
+
* @param {boolean} isHydrating Whether or not we are in hydration
|
294
|
+
* @returns {import('../internal').PreactElement}
|
295
|
+
*/
|
296
|
+
function diffElementNodes(
|
297
|
+
dom,
|
298
|
+
newVNode,
|
299
|
+
oldVNode,
|
300
|
+
globalContext,
|
301
|
+
isSvg,
|
302
|
+
excessDomChildren,
|
303
|
+
commitQueue,
|
304
|
+
isHydrating
|
305
|
+
) {
|
306
|
+
let oldProps = oldVNode.props;
|
307
|
+
let newProps = newVNode.props;
|
308
|
+
let nodeType = newVNode.type;
|
309
|
+
let i = 0;
|
310
|
+
|
311
|
+
// Tracks entering and exiting SVG namespace when descending through the tree.
|
312
|
+
if (nodeType === 'svg') isSvg = true;
|
313
|
+
|
314
|
+
if (excessDomChildren != null) {
|
315
|
+
for (; i < excessDomChildren.length; i++) {
|
316
|
+
const child = excessDomChildren[i];
|
317
|
+
|
318
|
+
// if newVNode matches an element in excessDomChildren or the `dom`
|
319
|
+
// argument matches an element in excessDomChildren, remove it from
|
320
|
+
// excessDomChildren so it isn't later removed in diffChildren
|
321
|
+
if (
|
322
|
+
child &&
|
323
|
+
(child === dom ||
|
324
|
+
(nodeType ? child.localName == nodeType : child.nodeType == 3))
|
325
|
+
) {
|
326
|
+
dom = child;
|
327
|
+
excessDomChildren[i] = null;
|
328
|
+
break;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
if (dom == null) {
|
334
|
+
if (nodeType === null) {
|
335
|
+
// @ts-ignore createTextNode returns Text, we expect PreactElement
|
336
|
+
return document.createTextNode(newProps);
|
337
|
+
}
|
338
|
+
|
339
|
+
if (isSvg) {
|
340
|
+
dom = document.createElementNS(
|
341
|
+
'http://www.w3.org/2000/svg',
|
342
|
+
// @ts-ignore We know `newVNode.type` is a string
|
343
|
+
nodeType
|
344
|
+
);
|
345
|
+
} else {
|
346
|
+
dom = document.createElement(
|
347
|
+
// @ts-ignore We know `newVNode.type` is a string
|
348
|
+
nodeType,
|
349
|
+
newProps.is && newProps
|
350
|
+
);
|
351
|
+
}
|
352
|
+
|
353
|
+
// we created a new parent, so none of the previously attached children can be reused:
|
354
|
+
excessDomChildren = null;
|
355
|
+
// we are creating a new node, so we can assume this is a new subtree (in case we are hydrating), this deopts the hydrate
|
356
|
+
isHydrating = false;
|
357
|
+
}
|
358
|
+
|
359
|
+
if (nodeType === null) {
|
360
|
+
// During hydration, we still have to split merged text from SSR'd HTML.
|
361
|
+
if (oldProps !== newProps && (!isHydrating || dom.data !== newProps)) {
|
362
|
+
dom.data = newProps;
|
363
|
+
}
|
364
|
+
} else {
|
365
|
+
// If excessDomChildren was not null, repopulate it with the current element's children:
|
366
|
+
excessDomChildren = excessDomChildren && slice.call(dom.childNodes);
|
367
|
+
|
368
|
+
oldProps = oldVNode.props || EMPTY_OBJ;
|
369
|
+
|
370
|
+
let oldHtml = oldProps.dangerouslySetInnerHTML;
|
371
|
+
let newHtml = newProps.dangerouslySetInnerHTML;
|
372
|
+
|
373
|
+
// During hydration, props are not diffed at all (including dangerouslySetInnerHTML)
|
374
|
+
// @TODO we should warn in debug mode when props don't match here.
|
375
|
+
if (!isHydrating) {
|
376
|
+
// But, if we are in a situation where we are using existing DOM (e.g. replaceNode)
|
377
|
+
// we should read the existing DOM attributes to diff them
|
378
|
+
if (excessDomChildren != null) {
|
379
|
+
oldProps = {};
|
380
|
+
for (i = 0; i < dom.attributes.length; i++) {
|
381
|
+
oldProps[dom.attributes[i].name] = dom.attributes[i].value;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
if (newHtml || oldHtml) {
|
386
|
+
// Avoid re-applying the same '__html' if it did not changed between re-render
|
387
|
+
if (
|
388
|
+
!newHtml ||
|
389
|
+
((!oldHtml || newHtml.__html != oldHtml.__html) &&
|
390
|
+
newHtml.__html !== dom.innerHTML)
|
391
|
+
) {
|
392
|
+
dom.innerHTML = (newHtml && newHtml.__html) || '';
|
393
|
+
}
|
394
|
+
}
|
395
|
+
}
|
396
|
+
|
397
|
+
diffProps(dom, newProps, oldProps, isSvg, isHydrating);
|
398
|
+
|
399
|
+
// If the new vnode didn't have dangerouslySetInnerHTML, diff its children
|
400
|
+
if (newHtml) {
|
401
|
+
newVNode._children = [];
|
402
|
+
} else {
|
403
|
+
i = newVNode.props.children;
|
404
|
+
diffChildren(
|
405
|
+
dom,
|
406
|
+
Array.isArray(i) ? i : [i],
|
407
|
+
newVNode,
|
408
|
+
oldVNode,
|
409
|
+
globalContext,
|
410
|
+
isSvg && nodeType !== 'foreignObject',
|
411
|
+
excessDomChildren,
|
412
|
+
commitQueue,
|
413
|
+
excessDomChildren
|
414
|
+
? excessDomChildren[0]
|
415
|
+
: oldVNode._children && getDomSibling(oldVNode, 0),
|
416
|
+
isHydrating
|
417
|
+
);
|
418
|
+
|
419
|
+
// Remove children that are not part of any vnode.
|
420
|
+
if (excessDomChildren != null) {
|
421
|
+
for (i = excessDomChildren.length; i--; ) {
|
422
|
+
if (excessDomChildren[i] != null) removeNode(excessDomChildren[i]);
|
423
|
+
}
|
424
|
+
}
|
425
|
+
}
|
426
|
+
|
427
|
+
// (as above, don't diff props during hydration)
|
428
|
+
if (!isHydrating) {
|
429
|
+
if (
|
430
|
+
'value' in newProps &&
|
431
|
+
(i = newProps.value) !== undefined &&
|
432
|
+
// #2756 For the <progress>-element the initial value is 0,
|
433
|
+
// despite the attribute not being present. When the attribute
|
434
|
+
// is missing the progress bar is treated as indeterminate.
|
435
|
+
// To fix that we'll always update it when it is 0 for progress elements
|
436
|
+
(i !== dom.value || (nodeType === 'progress' && !i))
|
437
|
+
) {
|
438
|
+
setProperty(dom, 'value', i, oldProps.value, false);
|
439
|
+
}
|
440
|
+
if (
|
441
|
+
'checked' in newProps &&
|
442
|
+
(i = newProps.checked) !== undefined &&
|
443
|
+
i !== dom.checked
|
444
|
+
) {
|
445
|
+
setProperty(dom, 'checked', i, oldProps.checked, false);
|
446
|
+
}
|
447
|
+
}
|
448
|
+
}
|
449
|
+
|
450
|
+
return dom;
|
451
|
+
}
|
452
|
+
|
453
|
+
/**
|
454
|
+
* Invoke or update a ref, depending on whether it is a function or object ref.
|
455
|
+
* @param {object|function} ref
|
456
|
+
* @param {any} value
|
457
|
+
* @param {import('../internal').VNode} vnode
|
458
|
+
*/
|
459
|
+
export function applyRef(ref, value, vnode) {
|
460
|
+
try {
|
461
|
+
if (typeof ref == 'function') ref(value);
|
462
|
+
else ref.current = value;
|
463
|
+
} catch (e) {
|
464
|
+
options._catchError(e, vnode);
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
/**
|
469
|
+
* Unmount a virtual node from the tree and apply DOM changes
|
470
|
+
* @param {import('../internal').VNode} vnode The virtual node to unmount
|
471
|
+
* @param {import('../internal').VNode} parentVNode The parent of the VNode that
|
472
|
+
* initiated the unmount
|
473
|
+
* @param {boolean} [skipRemove] Flag that indicates that a parent node of the
|
474
|
+
* current element is already detached from the DOM.
|
475
|
+
*/
|
476
|
+
export function unmount(vnode, parentVNode, skipRemove) {
|
477
|
+
let r;
|
478
|
+
if (options.unmount) options.unmount(vnode);
|
479
|
+
|
480
|
+
if ((r = vnode.ref)) {
|
481
|
+
if (!r.current || r.current === vnode._dom) applyRef(r, null, parentVNode);
|
482
|
+
}
|
483
|
+
|
484
|
+
if ((r = vnode._component) != null) {
|
485
|
+
if (r.componentWillUnmount) {
|
486
|
+
try {
|
487
|
+
r.componentWillUnmount();
|
488
|
+
} catch (e) {
|
489
|
+
options._catchError(e, parentVNode);
|
490
|
+
}
|
491
|
+
}
|
492
|
+
|
493
|
+
r.base = r._parentDom = null;
|
494
|
+
}
|
495
|
+
|
496
|
+
if ((r = vnode._children)) {
|
497
|
+
for (let i = 0; i < r.length; i++) {
|
498
|
+
if (r[i]) {
|
499
|
+
unmount(r[i], parentVNode, typeof vnode.type != 'function');
|
500
|
+
}
|
501
|
+
}
|
502
|
+
}
|
503
|
+
|
504
|
+
if (!skipRemove && vnode._dom != null) removeNode(vnode._dom);
|
505
|
+
|
506
|
+
// Must be set to `undefined` to properly clean up `_nextDom`
|
507
|
+
// for which `null` is a valid value. See comment in `create-element.js`
|
508
|
+
vnode._dom = vnode._nextDom = undefined;
|
509
|
+
}
|
510
|
+
|
511
|
+
/** The `.render()` method for a PFC backing instance. */
|
512
|
+
function doRender(props, state, context) {
|
513
|
+
return this.constructor(props, context);
|
514
|
+
}
|