From 41ae9635890809879d5daed007218718b05dcbfd Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 16 Apr 2022 15:35:56 +0800 Subject: [PATCH] React renderer --- app/react/package.json | 16 +--- app/react/src/client/index.ts | 19 +--- .../src/server/framework-preset-react-docs.ts | 3 +- app/react/src/server/preset.ts | 3 +- renderers/react/README.md | 1 + renderers/react/package.json | 88 +++++++++++++++++++ .../10017-ts-union/argTypes.snapshot | 0 .../10017-ts-union/docgen.snapshot | 0 .../__testfixtures__/10017-ts-union/input.tsx | 0 .../10017-ts-union/properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../10278-ts-multiple-components/input.tsx | 0 .../properties.snapshot | 0 .../argTypes.snapshot | 0 .../8140-js-prop-types-oneof/docgen.snapshot | 0 .../8140-js-prop-types-oneof/input.js | 0 .../properties.snapshot | 0 .../8143-ts-imported-types/argTypes.snapshot | 0 .../8143-ts-imported-types/docgen.snapshot | 0 .../8143-ts-imported-types/input.tsx | 0 .../properties.snapshot | 0 .../8143-ts-imported-types/types.ts | 0 .../argTypes.snapshot | 0 .../8143-ts-react-fc-generics/docgen.snapshot | 0 .../8143-ts-react-fc-generics/input.tsx | 0 .../properties.snapshot | 0 .../8279-js-styled-docgen/argTypes.snapshot | 0 .../8279-js-styled-docgen/docgen.snapshot | 0 .../8279-js-styled-docgen/input.js | 0 .../8279-js-styled-docgen/properties.snapshot | 0 .../argTypes.snapshot | 0 .../8428-js-static-prop-types/docgen.snapshot | 0 .../8428-js-static-prop-types/input.js | 0 .../properties.snapshot | 0 .../argTypes.snapshot | 0 .../8663-js-styled-components/docgen.snapshot | 0 .../8663-js-styled-components/input.js | 0 .../properties.snapshot | 0 .../8740-ts-multi-props/argTypes.snapshot | 0 .../8740-ts-multi-props/docgen.snapshot | 0 .../8740-ts-multi-props/input.tsx | 0 .../8740-ts-multi-props/properties.snapshot | 0 .../argTypes.snapshot | 0 .../8894-9511-ts-forward-ref/docgen.snapshot | 0 .../8894-9511-ts-forward-ref/input.tsx | 0 .../properties.snapshot | 0 .../9023-js-hoc/argTypes.snapshot | 0 .../9023-js-hoc/docgen.snapshot | 0 .../__testfixtures__/9023-js-hoc/input.js | 0 .../9023-js-hoc/properties.snapshot | 0 .../9399-js-proptypes-shape/argTypes.snapshot | 0 .../9399-js-proptypes-shape/docgen.snapshot | 0 .../9399-js-proptypes-shape/input.js | 0 .../properties.snapshot | 0 .../9465-ts-type-props/argTypes.snapshot | 0 .../9465-ts-type-props/docgen.snapshot | 0 .../9465-ts-type-props/input.tsx | 0 .../9465-ts-type-props/properties.snapshot | 0 .../9493-ts-display-name/argTypes.snapshot | 0 .../9493-ts-display-name/docgen.snapshot | 0 .../9493-ts-display-name/input.tsx | 0 .../9493-ts-display-name/properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../9556-ts-react-default-exports/input.tsx | 0 .../properties.snapshot | 0 .../9575-ts-camel-case/argTypes.snapshot | 0 .../9575-ts-camel-case/docgen.snapshot | 0 .../9575-ts-camel-case/input.tsx | 0 .../9575-ts-camel-case/properties.snapshot | 0 .../9586-js-react-memo/argTypes.snapshot | 0 .../9586-js-react-memo/docgen.snapshot | 0 .../9586-js-react-memo/input.js | 0 .../9586-js-react-memo/properties.snapshot | 0 .../9591-ts-import-types/Bar.tsx | 0 .../9591-ts-import-types/argTypes.snapshot | 0 .../9591-ts-import-types/docgen.snapshot | 0 .../9591-ts-import-types/input.tsx | 0 .../9591-ts-import-types/properties.snapshot | 0 .../9592-ts-styled-props/argTypes.snapshot | 0 .../9592-ts-styled-props/docgen.snapshot | 0 .../9592-ts-styled-props/input.tsx | 0 .../9592-ts-styled-props/properties.snapshot | 0 .../9626-js-default-values/argTypes.snapshot | 0 .../9626-js-default-values/docgen.snapshot | 0 .../9626-js-default-values/input.js | 0 .../properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../9668-js-proptypes-no-jsdoc/input.js | 0 .../properties.snapshot | 0 .../argTypes.snapshot | 0 .../9721-ts-deprecated-jsdoc/docgen.snapshot | 0 .../9721-ts-deprecated-jsdoc/input.tsx | 0 .../properties.snapshot | 0 .../9764-ts-extend-props/argTypes.snapshot | 0 .../9764-ts-extend-props/docgen.snapshot | 0 .../9764-ts-extend-props/input.tsx | 0 .../9764-ts-extend-props/properties.snapshot | 0 .../9827-ts-default-values/argTypes.snapshot | 0 .../9827-ts-default-values/docgen.snapshot | 0 .../9827-ts-default-values/input.tsx | 0 .../properties.snapshot | 0 .../9832-ts-enum-export/argTypes.snapshot | 0 .../9832-ts-enum-export/docgen.snapshot | 0 .../9832-ts-enum-export/input.tsx | 0 .../9832-ts-enum-export/properties.snapshot | 0 .../9922-ts-component-props/argTypes.snapshot | 0 .../9922-ts-component-props/docgen.snapshot | 0 .../9922-ts-component-props/input.tsx | 0 .../properties.snapshot | 0 .../src}/docs/__testfixtures__/imported.js | 0 .../js-class-component/argTypes.snapshot | 0 .../js-class-component/docgen.snapshot | 0 .../js-class-component/input.js | 0 .../js-class-component/properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../input.js | 0 .../properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../input.js | 0 .../properties.snapshot | 0 .../js-function-component/argTypes.snapshot | 0 .../js-function-component/docgen.snapshot | 0 .../js-function-component/input.js | 0 .../js-function-component/properties.snapshot | 0 .../argTypes.snapshot | 0 .../docgen.snapshot | 0 .../input.tsx | 0 .../properties.snapshot | 0 .../ts-function-component/argTypes.snapshot | 0 .../ts-function-component/docgen.snapshot | 0 .../ts-function-component/input.tsx | 0 .../ts-function-component/properties.snapshot | 0 .../react/src}/docs/config.ts | 0 .../react/src}/docs/extractArgTypes.ts | 0 .../react/src}/docs/extractProps.ts | 0 .../react/src}/docs/jsxDecorator.test.tsx | 0 .../react/src}/docs/jsxDecorator.tsx | 0 .../react/src}/docs/lib/captions.ts | 0 .../react/src}/docs/lib/componentTypes.ts | 0 .../lib/defaultValues/createDefaultValue.ts | 0 .../defaultValues/createFromRawDefaultProp.ts | 0 .../docs/lib/defaultValues/generateArray.ts | 0 .../docs/lib/defaultValues/generateObject.ts | 0 .../src}/docs/lib/defaultValues/index.ts | 0 .../lib/defaultValues/prettyIdentifier.ts | 0 .../react/src}/docs/lib/generateCode.ts | 0 .../react/src}/docs/lib/index.ts | 0 .../docs/lib/inspection/acornParser.test.ts | 0 .../src}/docs/lib/inspection/acornParser.ts | 0 .../react/src}/docs/lib/inspection/index.ts | 0 .../src}/docs/lib/inspection/inspectValue.ts | 0 .../react/src}/docs/lib/inspection/types.ts | 0 .../react/src}/docs/lib/isHtmlTag.ts | 0 .../react/src}/docs/propTypes/createType.ts | 0 .../propTypes/generateFuncSignature.test.ts | 0 .../docs/propTypes/generateFuncSignature.ts | 0 .../src}/docs/propTypes/handleProp.test.tsx | 0 .../react/src}/docs/propTypes/handleProp.ts | 0 .../docs/propTypes/rawDefaultPropResolvers.ts | 0 .../react/src}/docs/propTypes/sortProps.ts | 0 .../src}/docs/react-argtypes.stories.tsx | 0 .../react/src}/docs/react-properties.test.ts | 0 .../src}/docs/typeScript/handleProp.test.tsx | 0 .../react/src}/docs/typeScript/handleProp.ts | 0 renderers/react/src/index.ts | 18 ++++ .../react/src}/preview/config.ts | 0 .../react/src}/preview/globals.ts | 0 .../react/src}/preview/index.test.ts | 0 .../react/src}/preview/index.tsx | 0 .../react/src}/preview/render.tsx | 0 .../react/src}/preview/types-6-0.ts | 0 .../react/src}/preview/types-6-3.ts | 0 .../react/src}/preview/types-7-0.ts | 0 .../react/src}/preview/types.ts | 0 .../react/src}/testing/index.ts | 0 renderers/react/src/typings.d.ts | 44 ++++++++++ renderers/react/tsconfig.json | 9 ++ 182 files changed, 164 insertions(+), 37 deletions(-) create mode 100644 renderers/react/README.md create mode 100644 renderers/react/package.json rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10017-ts-union/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10017-ts-union/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10017-ts-union/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10017-ts-union/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10278-ts-multiple-components/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10278-ts-multiple-components/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10278-ts-multiple-components/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/10278-ts-multiple-components/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8140-js-prop-types-oneof/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8140-js-prop-types-oneof/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8140-js-prop-types-oneof/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8140-js-prop-types-oneof/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-imported-types/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-imported-types/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-imported-types/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-imported-types/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-imported-types/types.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-react-fc-generics/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-react-fc-generics/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-react-fc-generics/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8143-ts-react-fc-generics/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8279-js-styled-docgen/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8279-js-styled-docgen/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8279-js-styled-docgen/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8279-js-styled-docgen/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8428-js-static-prop-types/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8428-js-static-prop-types/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8428-js-static-prop-types/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8428-js-static-prop-types/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8663-js-styled-components/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8663-js-styled-components/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8663-js-styled-components/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8663-js-styled-components/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8740-ts-multi-props/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8740-ts-multi-props/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8740-ts-multi-props/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8740-ts-multi-props/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8894-9511-ts-forward-ref/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8894-9511-ts-forward-ref/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8894-9511-ts-forward-ref/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/8894-9511-ts-forward-ref/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9023-js-hoc/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9023-js-hoc/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9023-js-hoc/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9023-js-hoc/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9399-js-proptypes-shape/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9399-js-proptypes-shape/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9399-js-proptypes-shape/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9399-js-proptypes-shape/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9465-ts-type-props/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9465-ts-type-props/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9465-ts-type-props/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9465-ts-type-props/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9493-ts-display-name/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9493-ts-display-name/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9493-ts-display-name/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9493-ts-display-name/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9556-ts-react-default-exports/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9556-ts-react-default-exports/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9556-ts-react-default-exports/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9575-ts-camel-case/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9575-ts-camel-case/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9575-ts-camel-case/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9575-ts-camel-case/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9586-js-react-memo/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9586-js-react-memo/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9586-js-react-memo/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9586-js-react-memo/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9591-ts-import-types/Bar.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9591-ts-import-types/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9591-ts-import-types/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9591-ts-import-types/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9591-ts-import-types/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9592-ts-styled-props/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9592-ts-styled-props/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9592-ts-styled-props/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9592-ts-styled-props/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9626-js-default-values/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9626-js-default-values/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9626-js-default-values/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9626-js-default-values/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9721-ts-deprecated-jsdoc/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9721-ts-deprecated-jsdoc/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9721-ts-deprecated-jsdoc/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9764-ts-extend-props/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9764-ts-extend-props/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9764-ts-extend-props/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9764-ts-extend-props/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9827-ts-default-values/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9827-ts-default-values/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9827-ts-default-values/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9827-ts-default-values/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9832-ts-enum-export/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9832-ts-enum-export/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9832-ts-enum-export/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9832-ts-enum-export/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9922-ts-component-props/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9922-ts-component-props/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9922-ts-component-props/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/9922-ts-component-props/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/imported.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-class-component/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-class-component/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-class-component/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-class-component/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component-inline-defaults/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component/input.js (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/js-function-component/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component-inline-defaults/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component-inline-defaults/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component-inline-defaults/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component-inline-defaults/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component/argTypes.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component/docgen.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component/input.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/__testfixtures__/ts-function-component/properties.snapshot (100%) rename {app/react/src/client => renderers/react/src}/docs/config.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/extractArgTypes.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/extractProps.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/jsxDecorator.test.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/jsxDecorator.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/captions.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/componentTypes.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/createDefaultValue.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/createFromRawDefaultProp.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/generateArray.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/generateObject.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/index.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/defaultValues/prettyIdentifier.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/generateCode.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/index.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/inspection/acornParser.test.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/inspection/acornParser.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/inspection/index.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/inspection/inspectValue.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/inspection/types.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/lib/isHtmlTag.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/createType.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/generateFuncSignature.test.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/generateFuncSignature.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/handleProp.test.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/handleProp.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/rawDefaultPropResolvers.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/propTypes/sortProps.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/react-argtypes.stories.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/react-properties.test.ts (100%) rename {app/react/src/client => renderers/react/src}/docs/typeScript/handleProp.test.tsx (100%) rename {app/react/src/client => renderers/react/src}/docs/typeScript/handleProp.ts (100%) create mode 100644 renderers/react/src/index.ts rename {app/react/src/client => renderers/react/src}/preview/config.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/globals.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/index.test.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/index.tsx (100%) rename {app/react/src/client => renderers/react/src}/preview/render.tsx (100%) rename {app/react/src/client => renderers/react/src}/preview/types-6-0.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/types-6-3.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/types-7-0.ts (100%) rename {app/react/src/client => renderers/react/src}/preview/types.ts (100%) rename {app/react/src/client => renderers/react/src}/testing/index.ts (100%) create mode 100644 renderers/react/src/typings.d.ts create mode 100644 renderers/react/tsconfig.json diff --git a/app/react/package.json b/app/react/package.json index 0bcd3f529ae..941cf7f3c1b 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -43,35 +43,21 @@ "@babel/preset-flow": "^7.12.1", "@babel/preset-react": "^7.12.10", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", - "@storybook/addons": "6.5.0-alpha.63", - "@storybook/client-logger": "6.5.0-alpha.63", - "@storybook/core-client": "6.5.0-alpha.63", "@storybook/core-common": "6.5.0-alpha.63", "@storybook/core-server": "6.5.0-alpha.63", - "@storybook/csf": "0.0.2--canary.7c6c115.0", "@storybook/docs-tools": "6.5.0-alpha.63", "@storybook/node-logger": "6.5.0-alpha.63", "@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", + "@storybook/renderer-react": "6.5.0-alpha.63", "@storybook/semver": "^7.3.2", - "@storybook/store": "6.5.0-alpha.63", - "@types/estree": "^0.0.51", "@types/node": "^14.14.20 || ^16.0.0", "@types/webpack-env": "^1.16.0", - "acorn": "^7.4.1", - "acorn-jsx": "^5.3.1", - "acorn-walk": "^7.2.0", "babel-plugin-add-react-displayname": "^0.0.5", "babel-plugin-react-docgen": "^4.2.1", "core-js": "^3.8.2", - "escodegen": "^2.0.0", "fs-extra": "^9.0.1", "global": "^4.4.0", - "html-tags": "^3.1.0", - "lodash": "^4.17.21", - "prop-types": "^15.7.2", - "react-element-to-jsx-string": "^14.3.4", "react-refresh": "^0.11.0", - "read-pkg-up": "^7.0.1", "regenerator-runtime": "^0.13.7", "ts-dedent": "^2.0.0", "util-deprecate": "^1.0.2", diff --git a/app/react/src/client/index.ts b/app/react/src/client/index.ts index 141f7e7f43f..7d6e4ae9d6d 100644 --- a/app/react/src/client/index.ts +++ b/app/react/src/client/index.ts @@ -1,18 +1 @@ -export type { DecoratorFn } from './preview'; -export { - storiesOf, - setAddon, - addDecorator, - addParameters, - configure, - getStorybook, - raw, - forceReRender, -} from './preview'; -export * from './testing'; - -export * from './preview/types-6-3'; - -if (module && module.hot && module.hot.decline) { - module.hot.decline(); -} +export * from '@storybook/renderer-react'; diff --git a/app/react/src/server/framework-preset-react-docs.ts b/app/react/src/server/framework-preset-react-docs.ts index 98f9c12145b..9e60d52efd4 100644 --- a/app/react/src/server/framework-preset-react-docs.ts +++ b/app/react/src/server/framework-preset-react-docs.ts @@ -1,5 +1,4 @@ import type { StorybookConfig, Options, TypescriptConfig } from '@storybook/core-common'; -import { findDistEsm } from '@storybook/core-common'; import type { TransformOptions } from '@babel/core'; import type { Configuration } from 'webpack'; import ReactDocgenTypescriptPlugin from '@storybook/react-docgen-typescript-plugin'; @@ -60,5 +59,5 @@ export async function webpackFinal(config: Configuration, options: Options) { export const previewAnnotations: StorybookConfig['previewAnnotations'] = (entry = [], options) => { if (!hasDocsOrControls(options)) return entry; - return [...entry, findDistEsm(__dirname, 'client/docs/config')]; + return [...entry, require.resolve('@storybook/renderer-react/dist/esm/docs/config')]; }; diff --git a/app/react/src/server/preset.ts b/app/react/src/server/preset.ts index 081c6073e26..f90b49c3a61 100644 --- a/app/react/src/server/preset.ts +++ b/app/react/src/server/preset.ts @@ -1,9 +1,8 @@ -import { findDistEsm } from '@storybook/core-common'; import type { StorybookConfig } from '@storybook/core-common'; export const previewAnnotations: StorybookConfig['previewAnnotations'] = (entries = []) => [ ...entries, - findDistEsm(__dirname, 'client/preview/config'), + require.resolve('@storybook/renderer-react/dist/esm/preview/config'), ]; export const addons: StorybookConfig['addons'] = [ diff --git a/renderers/react/README.md b/renderers/react/README.md new file mode 100644 index 00000000000..72971fe2cbc --- /dev/null +++ b/renderers/react/README.md @@ -0,0 +1 @@ +# Storybook React renderer diff --git a/renderers/react/package.json b/renderers/react/package.json new file mode 100644 index 00000000000..3dd332e6e77 --- /dev/null +++ b/renderers/react/package.json @@ -0,0 +1,88 @@ +{ + "name": "@storybook/renderer-react", + "version": "6.5.0-alpha.63", + "description": "Storybook React renderer", + "keywords": [ + "storybook" + ], + "homepage": "https://github.com/storybookjs/storybook/tree/main/renderers/react", + "bugs": { + "url": "https://github.com/storybookjs/storybook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/storybookjs/storybook.git", + "directory": "renderers/react" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/storybook" + }, + "license": "MIT", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "types": "dist/ts3.9/index.d.ts", + "typesVersions": { + "<3.8": { + "dist/ts3.9/*": [ + "dist/ts3.4/*" + ] + } + }, + "files": [ + "dist/**/*", + "types/**/*", + "README.md", + "*.js", + "*.d.ts" + ], + "scripts": { + "prepare": "node ../../scripts/prepare.js" + }, + "dependencies": { + "@storybook/addons": "6.5.0-alpha.63", + "@storybook/client-logger": "6.5.0-alpha.63", + "@storybook/core-client": "6.5.0-alpha.63", + "@storybook/csf": "0.0.2--canary.7c6c115.0", + "@storybook/docs-tools": "6.5.0-alpha.63", + "@storybook/store": "6.5.0-alpha.63", + "@types/estree": "^0.0.51", + "@types/node": "^14.14.20 || ^16.0.0", + "acorn": "^7.4.1", + "acorn-jsx": "^5.3.1", + "acorn-walk": "^7.2.0", + "core-js": "^3.8.2", + "escodegen": "^2.0.0", + "global": "^4.4.0", + "html-tags": "^3.1.0", + "lodash": "^4.17.21", + "prop-types": "^15.7.2", + "react-element-to-jsx-string": "^14.3.4", + "regenerator-runtime": "^0.13.7", + "ts-dedent": "^2.0.0", + "util-deprecate": "^1.0.2" + }, + "devDependencies": { + "@babel/core": "^7.11.5", + "@types/util-deprecate": "^1.0.0" + }, + "peerDependencies": { + "jest-specific-snapshot": "^4.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "require-from-string": "^2.0.2" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + }, + "engines": { + "node": ">=10.13.0" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "416f87dc715cae299c7b4f37f1c9db7f686d4d21", + "sbmodern": "dist/modern/index.js" +} diff --git a/app/react/src/client/docs/__testfixtures__/10017-ts-union/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/10017-ts-union/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10017-ts-union/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/10017-ts-union/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/10017-ts-union/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/10017-ts-union/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10017-ts-union/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/10017-ts-union/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/10017-ts-union/input.tsx b/renderers/react/src/docs/__testfixtures__/10017-ts-union/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10017-ts-union/input.tsx rename to renderers/react/src/docs/__testfixtures__/10017-ts-union/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/10017-ts-union/properties.snapshot b/renderers/react/src/docs/__testfixtures__/10017-ts-union/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10017-ts-union/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/10017-ts-union/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/input.tsx b/renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/input.tsx rename to renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/properties.snapshot b/renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/10278-ts-multiple-components/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/10278-ts-multiple-components/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/input.js b/renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/input.js rename to renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/input.js diff --git a/app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8140-js-prop-types-oneof/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8140-js-prop-types-oneof/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/input.tsx b/renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/input.tsx rename to renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/types.ts b/renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/types.ts similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-imported-types/types.ts rename to renderers/react/src/docs/__testfixtures__/8143-ts-imported-types/types.ts diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/input.tsx b/renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/input.tsx rename to renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8143-ts-react-fc-generics/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8143-ts-react-fc-generics/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/input.js b/renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/input.js rename to renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/input.js diff --git a/app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8279-js-styled-docgen/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8279-js-styled-docgen/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/input.js b/renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/input.js rename to renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/input.js diff --git a/app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8428-js-static-prop-types/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8428-js-static-prop-types/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8663-js-styled-components/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8663-js-styled-components/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8663-js-styled-components/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8663-js-styled-components/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8663-js-styled-components/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8663-js-styled-components/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8663-js-styled-components/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8663-js-styled-components/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8663-js-styled-components/input.js b/renderers/react/src/docs/__testfixtures__/8663-js-styled-components/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8663-js-styled-components/input.js rename to renderers/react/src/docs/__testfixtures__/8663-js-styled-components/input.js diff --git a/app/react/src/client/docs/__testfixtures__/8663-js-styled-components/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8663-js-styled-components/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8663-js-styled-components/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8663-js-styled-components/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/input.tsx b/renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/input.tsx rename to renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8740-ts-multi-props/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8740-ts-multi-props/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/input.tsx b/renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/input.tsx rename to renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/properties.snapshot b/renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/8894-9511-ts-forward-ref/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/8894-9511-ts-forward-ref/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9023-js-hoc/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9023-js-hoc/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9023-js-hoc/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9023-js-hoc/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9023-js-hoc/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9023-js-hoc/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9023-js-hoc/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9023-js-hoc/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9023-js-hoc/input.js b/renderers/react/src/docs/__testfixtures__/9023-js-hoc/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9023-js-hoc/input.js rename to renderers/react/src/docs/__testfixtures__/9023-js-hoc/input.js diff --git a/app/react/src/client/docs/__testfixtures__/9023-js-hoc/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9023-js-hoc/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9023-js-hoc/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9023-js-hoc/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/input.js b/renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/input.js rename to renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/input.js diff --git a/app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9399-js-proptypes-shape/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9399-js-proptypes-shape/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9465-ts-type-props/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9465-ts-type-props/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9465-ts-type-props/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9465-ts-type-props/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9465-ts-type-props/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9465-ts-type-props/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9465-ts-type-props/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9465-ts-type-props/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9465-ts-type-props/input.tsx b/renderers/react/src/docs/__testfixtures__/9465-ts-type-props/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9465-ts-type-props/input.tsx rename to renderers/react/src/docs/__testfixtures__/9465-ts-type-props/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9465-ts-type-props/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9465-ts-type-props/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9465-ts-type-props/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9465-ts-type-props/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9493-ts-display-name/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9493-ts-display-name/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9493-ts-display-name/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9493-ts-display-name/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9493-ts-display-name/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9493-ts-display-name/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9493-ts-display-name/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9493-ts-display-name/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9493-ts-display-name/input.tsx b/renderers/react/src/docs/__testfixtures__/9493-ts-display-name/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9493-ts-display-name/input.tsx rename to renderers/react/src/docs/__testfixtures__/9493-ts-display-name/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9493-ts-display-name/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9493-ts-display-name/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9493-ts-display-name/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9493-ts-display-name/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/input.tsx b/renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/input.tsx rename to renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9556-ts-react-default-exports/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9556-ts-react-default-exports/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/input.tsx b/renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/input.tsx rename to renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9575-ts-camel-case/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9575-ts-camel-case/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9586-js-react-memo/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9586-js-react-memo/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9586-js-react-memo/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9586-js-react-memo/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9586-js-react-memo/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9586-js-react-memo/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9586-js-react-memo/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9586-js-react-memo/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9586-js-react-memo/input.js b/renderers/react/src/docs/__testfixtures__/9586-js-react-memo/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9586-js-react-memo/input.js rename to renderers/react/src/docs/__testfixtures__/9586-js-react-memo/input.js diff --git a/app/react/src/client/docs/__testfixtures__/9586-js-react-memo/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9586-js-react-memo/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9586-js-react-memo/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9586-js-react-memo/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9591-ts-import-types/Bar.tsx b/renderers/react/src/docs/__testfixtures__/9591-ts-import-types/Bar.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9591-ts-import-types/Bar.tsx rename to renderers/react/src/docs/__testfixtures__/9591-ts-import-types/Bar.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9591-ts-import-types/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9591-ts-import-types/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9591-ts-import-types/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9591-ts-import-types/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9591-ts-import-types/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9591-ts-import-types/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9591-ts-import-types/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9591-ts-import-types/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9591-ts-import-types/input.tsx b/renderers/react/src/docs/__testfixtures__/9591-ts-import-types/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9591-ts-import-types/input.tsx rename to renderers/react/src/docs/__testfixtures__/9591-ts-import-types/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9591-ts-import-types/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9591-ts-import-types/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9591-ts-import-types/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9591-ts-import-types/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/input.tsx b/renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/input.tsx rename to renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9592-ts-styled-props/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9592-ts-styled-props/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9626-js-default-values/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9626-js-default-values/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9626-js-default-values/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9626-js-default-values/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9626-js-default-values/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9626-js-default-values/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9626-js-default-values/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9626-js-default-values/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9626-js-default-values/input.js b/renderers/react/src/docs/__testfixtures__/9626-js-default-values/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9626-js-default-values/input.js rename to renderers/react/src/docs/__testfixtures__/9626-js-default-values/input.js diff --git a/app/react/src/client/docs/__testfixtures__/9626-js-default-values/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9626-js-default-values/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9626-js-default-values/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9626-js-default-values/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js b/renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js rename to renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js diff --git a/app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9668-js-proptypes-no-jsdoc/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx b/renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx rename to renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9721-ts-deprecated-jsdoc/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9721-ts-deprecated-jsdoc/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/input.tsx b/renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/input.tsx rename to renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9764-ts-extend-props/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9764-ts-extend-props/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9827-ts-default-values/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9827-ts-default-values/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9827-ts-default-values/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9827-ts-default-values/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9827-ts-default-values/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9827-ts-default-values/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9827-ts-default-values/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9827-ts-default-values/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9827-ts-default-values/input.tsx b/renderers/react/src/docs/__testfixtures__/9827-ts-default-values/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9827-ts-default-values/input.tsx rename to renderers/react/src/docs/__testfixtures__/9827-ts-default-values/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9827-ts-default-values/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9827-ts-default-values/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9827-ts-default-values/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9827-ts-default-values/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/input.tsx b/renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/input.tsx rename to renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9832-ts-enum-export/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9832-ts-enum-export/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9922-ts-component-props/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/9922-ts-component-props/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9922-ts-component-props/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/9922-ts-component-props/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9922-ts-component-props/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/9922-ts-component-props/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9922-ts-component-props/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/9922-ts-component-props/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/9922-ts-component-props/input.tsx b/renderers/react/src/docs/__testfixtures__/9922-ts-component-props/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9922-ts-component-props/input.tsx rename to renderers/react/src/docs/__testfixtures__/9922-ts-component-props/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/9922-ts-component-props/properties.snapshot b/renderers/react/src/docs/__testfixtures__/9922-ts-component-props/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/9922-ts-component-props/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/9922-ts-component-props/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/imported.js b/renderers/react/src/docs/__testfixtures__/imported.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/imported.js rename to renderers/react/src/docs/__testfixtures__/imported.js diff --git a/app/react/src/client/docs/__testfixtures__/js-class-component/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/js-class-component/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-class-component/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/js-class-component/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-class-component/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/js-class-component/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-class-component/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/js-class-component/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-class-component/input.js b/renderers/react/src/docs/__testfixtures__/js-class-component/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-class-component/input.js rename to renderers/react/src/docs/__testfixtures__/js-class-component/input.js diff --git a/app/react/src/client/docs/__testfixtures__/js-class-component/properties.snapshot b/renderers/react/src/docs/__testfixtures__/js-class-component/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-class-component/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/js-class-component/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/input.js b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/input.js rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/input.js diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/properties.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults-no-propTypes/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/input.js b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/input.js rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/input.js diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/properties.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component-inline-defaults/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component-inline-defaults/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component/input.js b/renderers/react/src/docs/__testfixtures__/js-function-component/input.js similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component/input.js rename to renderers/react/src/docs/__testfixtures__/js-function-component/input.js diff --git a/app/react/src/client/docs/__testfixtures__/js-function-component/properties.snapshot b/renderers/react/src/docs/__testfixtures__/js-function-component/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/js-function-component/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/js-function-component/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/input.tsx b/renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/input.tsx rename to renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/properties.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component-inline-defaults/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component-inline-defaults/properties.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component/argTypes.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component/argTypes.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component/argTypes.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component/argTypes.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component/docgen.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component/docgen.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component/docgen.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component/docgen.snapshot diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component/input.tsx b/renderers/react/src/docs/__testfixtures__/ts-function-component/input.tsx similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component/input.tsx rename to renderers/react/src/docs/__testfixtures__/ts-function-component/input.tsx diff --git a/app/react/src/client/docs/__testfixtures__/ts-function-component/properties.snapshot b/renderers/react/src/docs/__testfixtures__/ts-function-component/properties.snapshot similarity index 100% rename from app/react/src/client/docs/__testfixtures__/ts-function-component/properties.snapshot rename to renderers/react/src/docs/__testfixtures__/ts-function-component/properties.snapshot diff --git a/app/react/src/client/docs/config.ts b/renderers/react/src/docs/config.ts similarity index 100% rename from app/react/src/client/docs/config.ts rename to renderers/react/src/docs/config.ts diff --git a/app/react/src/client/docs/extractArgTypes.ts b/renderers/react/src/docs/extractArgTypes.ts similarity index 100% rename from app/react/src/client/docs/extractArgTypes.ts rename to renderers/react/src/docs/extractArgTypes.ts diff --git a/app/react/src/client/docs/extractProps.ts b/renderers/react/src/docs/extractProps.ts similarity index 100% rename from app/react/src/client/docs/extractProps.ts rename to renderers/react/src/docs/extractProps.ts diff --git a/app/react/src/client/docs/jsxDecorator.test.tsx b/renderers/react/src/docs/jsxDecorator.test.tsx similarity index 100% rename from app/react/src/client/docs/jsxDecorator.test.tsx rename to renderers/react/src/docs/jsxDecorator.test.tsx diff --git a/app/react/src/client/docs/jsxDecorator.tsx b/renderers/react/src/docs/jsxDecorator.tsx similarity index 100% rename from app/react/src/client/docs/jsxDecorator.tsx rename to renderers/react/src/docs/jsxDecorator.tsx diff --git a/app/react/src/client/docs/lib/captions.ts b/renderers/react/src/docs/lib/captions.ts similarity index 100% rename from app/react/src/client/docs/lib/captions.ts rename to renderers/react/src/docs/lib/captions.ts diff --git a/app/react/src/client/docs/lib/componentTypes.ts b/renderers/react/src/docs/lib/componentTypes.ts similarity index 100% rename from app/react/src/client/docs/lib/componentTypes.ts rename to renderers/react/src/docs/lib/componentTypes.ts diff --git a/app/react/src/client/docs/lib/defaultValues/createDefaultValue.ts b/renderers/react/src/docs/lib/defaultValues/createDefaultValue.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/createDefaultValue.ts rename to renderers/react/src/docs/lib/defaultValues/createDefaultValue.ts diff --git a/app/react/src/client/docs/lib/defaultValues/createFromRawDefaultProp.ts b/renderers/react/src/docs/lib/defaultValues/createFromRawDefaultProp.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/createFromRawDefaultProp.ts rename to renderers/react/src/docs/lib/defaultValues/createFromRawDefaultProp.ts diff --git a/app/react/src/client/docs/lib/defaultValues/generateArray.ts b/renderers/react/src/docs/lib/defaultValues/generateArray.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/generateArray.ts rename to renderers/react/src/docs/lib/defaultValues/generateArray.ts diff --git a/app/react/src/client/docs/lib/defaultValues/generateObject.ts b/renderers/react/src/docs/lib/defaultValues/generateObject.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/generateObject.ts rename to renderers/react/src/docs/lib/defaultValues/generateObject.ts diff --git a/app/react/src/client/docs/lib/defaultValues/index.ts b/renderers/react/src/docs/lib/defaultValues/index.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/index.ts rename to renderers/react/src/docs/lib/defaultValues/index.ts diff --git a/app/react/src/client/docs/lib/defaultValues/prettyIdentifier.ts b/renderers/react/src/docs/lib/defaultValues/prettyIdentifier.ts similarity index 100% rename from app/react/src/client/docs/lib/defaultValues/prettyIdentifier.ts rename to renderers/react/src/docs/lib/defaultValues/prettyIdentifier.ts diff --git a/app/react/src/client/docs/lib/generateCode.ts b/renderers/react/src/docs/lib/generateCode.ts similarity index 100% rename from app/react/src/client/docs/lib/generateCode.ts rename to renderers/react/src/docs/lib/generateCode.ts diff --git a/app/react/src/client/docs/lib/index.ts b/renderers/react/src/docs/lib/index.ts similarity index 100% rename from app/react/src/client/docs/lib/index.ts rename to renderers/react/src/docs/lib/index.ts diff --git a/app/react/src/client/docs/lib/inspection/acornParser.test.ts b/renderers/react/src/docs/lib/inspection/acornParser.test.ts similarity index 100% rename from app/react/src/client/docs/lib/inspection/acornParser.test.ts rename to renderers/react/src/docs/lib/inspection/acornParser.test.ts diff --git a/app/react/src/client/docs/lib/inspection/acornParser.ts b/renderers/react/src/docs/lib/inspection/acornParser.ts similarity index 100% rename from app/react/src/client/docs/lib/inspection/acornParser.ts rename to renderers/react/src/docs/lib/inspection/acornParser.ts diff --git a/app/react/src/client/docs/lib/inspection/index.ts b/renderers/react/src/docs/lib/inspection/index.ts similarity index 100% rename from app/react/src/client/docs/lib/inspection/index.ts rename to renderers/react/src/docs/lib/inspection/index.ts diff --git a/app/react/src/client/docs/lib/inspection/inspectValue.ts b/renderers/react/src/docs/lib/inspection/inspectValue.ts similarity index 100% rename from app/react/src/client/docs/lib/inspection/inspectValue.ts rename to renderers/react/src/docs/lib/inspection/inspectValue.ts diff --git a/app/react/src/client/docs/lib/inspection/types.ts b/renderers/react/src/docs/lib/inspection/types.ts similarity index 100% rename from app/react/src/client/docs/lib/inspection/types.ts rename to renderers/react/src/docs/lib/inspection/types.ts diff --git a/app/react/src/client/docs/lib/isHtmlTag.ts b/renderers/react/src/docs/lib/isHtmlTag.ts similarity index 100% rename from app/react/src/client/docs/lib/isHtmlTag.ts rename to renderers/react/src/docs/lib/isHtmlTag.ts diff --git a/app/react/src/client/docs/propTypes/createType.ts b/renderers/react/src/docs/propTypes/createType.ts similarity index 100% rename from app/react/src/client/docs/propTypes/createType.ts rename to renderers/react/src/docs/propTypes/createType.ts diff --git a/app/react/src/client/docs/propTypes/generateFuncSignature.test.ts b/renderers/react/src/docs/propTypes/generateFuncSignature.test.ts similarity index 100% rename from app/react/src/client/docs/propTypes/generateFuncSignature.test.ts rename to renderers/react/src/docs/propTypes/generateFuncSignature.test.ts diff --git a/app/react/src/client/docs/propTypes/generateFuncSignature.ts b/renderers/react/src/docs/propTypes/generateFuncSignature.ts similarity index 100% rename from app/react/src/client/docs/propTypes/generateFuncSignature.ts rename to renderers/react/src/docs/propTypes/generateFuncSignature.ts diff --git a/app/react/src/client/docs/propTypes/handleProp.test.tsx b/renderers/react/src/docs/propTypes/handleProp.test.tsx similarity index 100% rename from app/react/src/client/docs/propTypes/handleProp.test.tsx rename to renderers/react/src/docs/propTypes/handleProp.test.tsx diff --git a/app/react/src/client/docs/propTypes/handleProp.ts b/renderers/react/src/docs/propTypes/handleProp.ts similarity index 100% rename from app/react/src/client/docs/propTypes/handleProp.ts rename to renderers/react/src/docs/propTypes/handleProp.ts diff --git a/app/react/src/client/docs/propTypes/rawDefaultPropResolvers.ts b/renderers/react/src/docs/propTypes/rawDefaultPropResolvers.ts similarity index 100% rename from app/react/src/client/docs/propTypes/rawDefaultPropResolvers.ts rename to renderers/react/src/docs/propTypes/rawDefaultPropResolvers.ts diff --git a/app/react/src/client/docs/propTypes/sortProps.ts b/renderers/react/src/docs/propTypes/sortProps.ts similarity index 100% rename from app/react/src/client/docs/propTypes/sortProps.ts rename to renderers/react/src/docs/propTypes/sortProps.ts diff --git a/app/react/src/client/docs/react-argtypes.stories.tsx b/renderers/react/src/docs/react-argtypes.stories.tsx similarity index 100% rename from app/react/src/client/docs/react-argtypes.stories.tsx rename to renderers/react/src/docs/react-argtypes.stories.tsx diff --git a/app/react/src/client/docs/react-properties.test.ts b/renderers/react/src/docs/react-properties.test.ts similarity index 100% rename from app/react/src/client/docs/react-properties.test.ts rename to renderers/react/src/docs/react-properties.test.ts diff --git a/app/react/src/client/docs/typeScript/handleProp.test.tsx b/renderers/react/src/docs/typeScript/handleProp.test.tsx similarity index 100% rename from app/react/src/client/docs/typeScript/handleProp.test.tsx rename to renderers/react/src/docs/typeScript/handleProp.test.tsx diff --git a/app/react/src/client/docs/typeScript/handleProp.ts b/renderers/react/src/docs/typeScript/handleProp.ts similarity index 100% rename from app/react/src/client/docs/typeScript/handleProp.ts rename to renderers/react/src/docs/typeScript/handleProp.ts diff --git a/renderers/react/src/index.ts b/renderers/react/src/index.ts new file mode 100644 index 00000000000..141f7e7f43f --- /dev/null +++ b/renderers/react/src/index.ts @@ -0,0 +1,18 @@ +export type { DecoratorFn } from './preview'; +export { + storiesOf, + setAddon, + addDecorator, + addParameters, + configure, + getStorybook, + raw, + forceReRender, +} from './preview'; +export * from './testing'; + +export * from './preview/types-6-3'; + +if (module && module.hot && module.hot.decline) { + module.hot.decline(); +} diff --git a/app/react/src/client/preview/config.ts b/renderers/react/src/preview/config.ts similarity index 100% rename from app/react/src/client/preview/config.ts rename to renderers/react/src/preview/config.ts diff --git a/app/react/src/client/preview/globals.ts b/renderers/react/src/preview/globals.ts similarity index 100% rename from app/react/src/client/preview/globals.ts rename to renderers/react/src/preview/globals.ts diff --git a/app/react/src/client/preview/index.test.ts b/renderers/react/src/preview/index.test.ts similarity index 100% rename from app/react/src/client/preview/index.test.ts rename to renderers/react/src/preview/index.test.ts diff --git a/app/react/src/client/preview/index.tsx b/renderers/react/src/preview/index.tsx similarity index 100% rename from app/react/src/client/preview/index.tsx rename to renderers/react/src/preview/index.tsx diff --git a/app/react/src/client/preview/render.tsx b/renderers/react/src/preview/render.tsx similarity index 100% rename from app/react/src/client/preview/render.tsx rename to renderers/react/src/preview/render.tsx diff --git a/app/react/src/client/preview/types-6-0.ts b/renderers/react/src/preview/types-6-0.ts similarity index 100% rename from app/react/src/client/preview/types-6-0.ts rename to renderers/react/src/preview/types-6-0.ts diff --git a/app/react/src/client/preview/types-6-3.ts b/renderers/react/src/preview/types-6-3.ts similarity index 100% rename from app/react/src/client/preview/types-6-3.ts rename to renderers/react/src/preview/types-6-3.ts diff --git a/app/react/src/client/preview/types-7-0.ts b/renderers/react/src/preview/types-7-0.ts similarity index 100% rename from app/react/src/client/preview/types-7-0.ts rename to renderers/react/src/preview/types-7-0.ts diff --git a/app/react/src/client/preview/types.ts b/renderers/react/src/preview/types.ts similarity index 100% rename from app/react/src/client/preview/types.ts rename to renderers/react/src/preview/types.ts diff --git a/app/react/src/client/testing/index.ts b/renderers/react/src/testing/index.ts similarity index 100% rename from app/react/src/client/testing/index.ts rename to renderers/react/src/testing/index.ts diff --git a/renderers/react/src/typings.d.ts b/renderers/react/src/typings.d.ts new file mode 100644 index 00000000000..cd1929c868b --- /dev/null +++ b/renderers/react/src/typings.d.ts @@ -0,0 +1,44 @@ +declare module '@storybook/semver'; +declare module 'global'; + +// TODO: Replace, as soon as @types/react-dom 17.0.14 is used +// Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/fb0f14b7a35cde26ffaa82e7536c062e593e9ae6/types/react-dom/client.d.ts +declare module 'react-dom/client' { + +import React = require('react'); + export interface HydrationOptions { + onHydrated?(suspenseInstance: Comment): void; + onDeleted?(suspenseInstance: Comment): void; + /** + * Prefix for `useId`. + */ + identifierPrefix?: string; + onRecoverableError?: (error: unknown) => void; + } + + export interface RootOptions { + /** + * Prefix for `useId`. + */ + identifierPrefix?: string; + onRecoverableError?: (error: unknown) => void; + } + + export interface Root { + render(children: React.ReactChild | Iterable): void; + unmount(): void; + } + + /** + * Replaces `ReactDOM.render` when the `.render` method is called and enables Concurrent Mode. + * + * @see https://reactjs.org/docs/concurrent-mode-reference.html#createroot + */ + export function createRoot(container: Element | Document | DocumentFragment | Comment, options?: RootOptions): Root; + + export function hydrateRoot( + container: Element | Document | DocumentFragment | Comment, + initialChildren: React.ReactChild | Iterable, + options?: HydrationOptions, + ): Root; +} diff --git a/renderers/react/tsconfig.json b/renderers/react/tsconfig.json new file mode 100644 index 00000000000..eb2b50f62b0 --- /dev/null +++ b/renderers/react/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "resolveJsonModule": true + }, + "include": ["src/**/*"], + "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] +}