@teambit/react 0.0.1040 → 0.0.1041
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +2 -2
- package/artifacts/env-template/public/{679.6e146e3a6e57f198bdd4.js → 679.035fdb8dba8972719f2c.js} +14 -10
- package/artifacts/env-template/public/assets-manifest.json +10 -10
- package/artifacts/env-template/public/{compositions.1ee95e343996d6f0f18d.js → compositions.bba024a3a591a1e13ecc.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.a56d7ab15cd3f4ac0029.js → overview.03bf770d9be539e587a7.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.82e3d8d27d71986fe423.js +1 -0
- package/artifacts/env-template/public/static/css/679.f47be65c.css +1 -0
- package/artifacts/preview/teambit_react_react-preview.js +1 -1
- package/artifacts/schema.json +36 -36
- package/dist/{preview-1682245644358.js → preview-1682393306973.js} +2 -2
- package/package-tar/teambit-react-0.0.1041.tgz +0 -0
- package/package.json +26 -26
- package/artifacts/env-template/public/peers.3a23c335ad71ef8bfa32.js +0 -1
- package/artifacts/env-template/public/static/css/679.5e79e9d3.css +0 -1
- package/package-tar/teambit-react-0.0.1040.tgz +0 -0
- /package/{compositions-1682245644358.js → compositions-1682393306973.js} +0 -0
- /package/{overview-1682245644358.js → overview-1682393306973.js} +0 -0
|
@@ -8,4 +8,4 @@ It enables you to quickly set up a dev environment that follows best practices f
|
|
|
8
8
|
}
|
|
9
9
|
`)),(0,_react2.mdx)("h2",null,"Creating Components"),(0,_react2.mdx)("p",null,"React env provides a set of component templates that can be used to speed-up and standardize your component development:"),(0,_react2.mdx)("p",null,"To list all available templates:"),(0,_react2.mdx)("pre",null,(0,_react2.mdx)("code",{parentName:"pre",className:"language-bash"},`bit templates
|
|
10
10
|
`)),(0,_react2.mdx)("ul",null,(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"react")," a basic React UI component."),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"react-context")," a react context component."),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"react-hook")," a react hook component."),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"mdx-component")," an MDX component."),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"react-component-js")," a basic React component in JS."),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("inlineCode",{parentName:"li"},"react-env")," boilerplate for a customized environment configuration.")),(0,_react2.mdx)("p",null,"Use any of these templates with the ",(0,_react2.mdx)("inlineCode",{parentName:"p"},"bit create")," command:"),(0,_react2.mdx)("pre",null,(0,_react2.mdx)("code",{parentName:"pre",className:"language-bash"},`bit create react ui/my-welcome
|
|
11
|
-
`)),(0,_react2.mdx)("h2",null,"Development services and configurations"),(0,_react2.mdx)("p",null,"The table below lists ",(0,_react2.mdx)("a",{parentName:"p",href:"/dev-services/dev-services-overview"},"dev services")," that are provided by the React env. Each service handles a specific component development operation. Each is implemented by the React env, using a specific set of configurations."),(0,_react2.mdx)("p",null,"To customize and extend the React env, ",(0,_react2.mdx)("a",{parentName:"p",href:"/envs/pre-configured-envs/react/extending-react#using-your-own-react-env-extension"},"create you own React env extension"),". You can replace the Aspects used by the env, or override their configurations (use the links provided in the 'customization' column)."),(0,_react2.mdx)("table",null,(0,_react2.mdx)("thead",{parentName:"table"},(0,_react2.mdx)("tr",{parentName:"thead"},(0,_react2.mdx)("th",{parentName:"tr",align:null},"Service"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Aspect"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Default config"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Customization"))),(0,_react2.mdx)("tbody",{parentName:"table"},(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/compiler/compiler-overview"},"Compiler")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/typescript/typescript"},"TypeScript")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/typescript/tsconfig.json"},"tsconfig.json")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#typescript"},"TS compilation config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/compiler/configure-env-with-compiler"},"Replace compiler"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/tester/overview"},"Tester")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/jest"},"Jest")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/jest/jest.config.js"},"jest.config.js")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#jest"},"Jest config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/tester/configure-env-with-tester"},"Replace Tester"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/linter/overview"},"Linting")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/eslint"},"ESLint")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/eslint/eslintrc.ts"},"eslintrc.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#eslint"},"ESLint Config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/linter/configure-env-with-linter"},"Replace Linter"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/formatter/overview"},"Formatter")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/prettier"},"Prettier")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/prettier/prettier.config.js"},"prettier.config.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#prettier"},"Prettier config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/formatter/configure-env-with-formatter"},"Replace Formatter"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},"DevServer"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/webpack/webpack"},"Webpack")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/webpack/webpack.config.preview.dev.ts"},"webpack.config.preview.dev.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 Webpack config (for bundling in the workspace)")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/preview/overview"},"Preview")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null}),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/preview/register-custom-preview"},"Add preview"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/packages/packages-overview"},"Package")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},"See the ",(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/typescript/typescript/~code/typescript.main.runtime.ts"},"TypeScript Aspect")," config"),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/packages/managing-package-json#set-configuration-from-an-env"},"Add Env package config")," ",(0,_react2.mdx)("br",null)," \u2022 TypeScript's package config")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},"Bundler"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/webpack/webpack"},"Webpack")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/webpack/webpack.config.preview.ts"},"webpack.config.preview.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 Webpack config (for bundling during build)")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/docs/docs-overview"},"Documentation")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/docs/index.tsx"},"Docs template")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/docs/docs-templates"},"Replace docs template"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"http://localhost:3000/docs/dev-services/builder/builder-overview"},"Builder")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"http://localhost:3000/docs/dev-services/builder/builder-overview"},"Build pipeline")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/builder/build-pipelines"},"Build pipelines"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dependencies/dependencies-overview"},"Dependencies")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/react.env.ts"},"Env-dependencies")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dependencies/configuring-dependencies#configuring-dependencies-from-an-env"},"Env dependencies"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/generator/generator-overview"},"Generator")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/templates/react-component.ts"},"React templates")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:""},"Add a component template"))))),(0,_react2.mdx)("h3",null,"Default React versions"),(0,_react2.mdx)("p",null,"By default, the React env sets the following dependency versions for components using it:"),(0,_react2.mdx)("ul",null,(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"react")," (peer dependency): ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^16.8.0 || ^17.0.0")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"react-dom")," (peer dependency): ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^16.8.0 || ^17.0.0")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"@types/react"),": ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^17.0.8")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"@types/react-dom"),": ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^17.0.5")))))}MDXContent.__bit_component=__bit_component,MDXContent.isMDXComponent=!0},640:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var __bit_component={id:"teambit.react/react@0.0.1040",homepage:"https://bit.cloud/teambit/react/react",exported:!0},_interopRequireDefault=__webpack_require__2(370);Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Logo=void 0;function _react(){const data=_interopRequireDefault(__webpack_require__2(804));return _react=function(){return data},data}_react.__bit_component=__bit_component;const Logo=()=>_react().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},_react().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/react.svg"}));Logo.__bit_component=__bit_component,exports2.Logo=Logo},57:module2=>{"use strict";module2.exports=MdxJsReact},804:module2=>{"use strict";module2.exports=React},459:module2=>{"use strict";module2.exports=TeambitMdxUiMdxScopeContext},370:module2=>{function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}module2.exports=_interopRequireDefault,module2.exports.__esModule=!0,module2.exports.default=module2.exports}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module2=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module2,module2.exports,__webpack_require__),module2.exports}__webpack_require__.d=(exports2,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports2,key)&&Object.defineProperty(exports2,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports2=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports2,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{compositions:()=>compositions,compositions_metadata:()=>compositions_metadata,overview:()=>overview});var react_docs_namespaceObject={};__webpack_require__.r(react_docs_namespaceObject),__webpack_require__.d(react_docs_namespaceObject,{default:()=>MDXContent});var react_composition=__webpack_require__(640),external_React_=__webpack_require__(804),external_MdxJsReact_=__webpack_require__(57),external_TeambitMdxUiMdxScopeContext_=__webpack_require__(459),dist=__webpack_require__(906),_excluded=["components"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&(!Object.prototype.propertyIsEnumerable.call(source,key)||(target[key]=source[key]))}return target}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}var layoutProps={},MDXLayout="wrapper";function MDXContent(_ref){var components=_ref.components,props=_objectWithoutProperties(_ref,_excluded);return(0,external_MdxJsReact_.mdx)(MDXLayout,_extends({},layoutProps,props,{components,mdxType:"MDXLayout"}),(0,external_MdxJsReact_.mdx)(external_TeambitMdxUiMdxScopeContext_.MDXScopeProvider,{components:{ReactOverview:dist.ZP},mdxType:"MDXScopeProvider"},(0,external_MdxJsReact_.mdx)(dist.ZP,{mdxType:"ReactOverview"})))}MDXContent.isMDXComponent=!0;var __bit_component={id:"teambit.react/react@0.0.1040",homepage:"https://bit.cloud/teambit/react/react",exported:!0};const compositions=[react_composition],overview=[react_docs_namespaceObject],compositions_metadata={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),__webpack_exports__})()});
|
|
11
|
+
`)),(0,_react2.mdx)("h2",null,"Development services and configurations"),(0,_react2.mdx)("p",null,"The table below lists ",(0,_react2.mdx)("a",{parentName:"p",href:"/dev-services/dev-services-overview"},"dev services")," that are provided by the React env. Each service handles a specific component development operation. Each is implemented by the React env, using a specific set of configurations."),(0,_react2.mdx)("p",null,"To customize and extend the React env, ",(0,_react2.mdx)("a",{parentName:"p",href:"/envs/pre-configured-envs/react/extending-react#using-your-own-react-env-extension"},"create you own React env extension"),". You can replace the Aspects used by the env, or override their configurations (use the links provided in the 'customization' column)."),(0,_react2.mdx)("table",null,(0,_react2.mdx)("thead",{parentName:"table"},(0,_react2.mdx)("tr",{parentName:"thead"},(0,_react2.mdx)("th",{parentName:"tr",align:null},"Service"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Aspect"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Default config"),(0,_react2.mdx)("th",{parentName:"tr",align:null},"Customization"))),(0,_react2.mdx)("tbody",{parentName:"table"},(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/compiler/compiler-overview"},"Compiler")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/typescript/typescript"},"TypeScript")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/typescript/tsconfig.json"},"tsconfig.json")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#typescript"},"TS compilation config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/compiler/configure-env-with-compiler"},"Replace compiler"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/tester/overview"},"Tester")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/jest"},"Jest")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/jest/jest.config.js"},"jest.config.js")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#jest"},"Jest config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/tester/configure-env-with-tester"},"Replace Tester"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/linter/overview"},"Linting")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/eslint"},"ESLint")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/eslint/eslintrc.ts"},"eslintrc.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#eslint"},"ESLint Config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/linter/configure-env-with-linter"},"Replace Linter"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/formatter/overview"},"Formatter")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/defender/prettier"},"Prettier")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/prettier/prettier.config.js"},"prettier.config.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/frameworks/react/config-react-tools#prettier"},"Prettier config")," ",(0,_react2.mdx)("br",null)," \u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/formatter/configure-env-with-formatter"},"Replace Formatter"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},"DevServer"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/webpack/webpack"},"Webpack")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/webpack/webpack.config.preview.dev.ts"},"webpack.config.preview.dev.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 Webpack config (for bundling in the workspace)")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/preview/overview"},"Preview")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null}),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/preview/register-custom-preview"},"Add preview"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/packages/packages-overview"},"Package")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},"See the ",(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/typescript/typescript/~code/typescript.main.runtime.ts"},"TypeScript Aspect")," config"),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 ",(0,_react2.mdx)("a",{parentName:"td",href:"/packages/managing-package-json#set-configuration-from-an-env"},"Add Env package config")," ",(0,_react2.mdx)("br",null)," \u2022 TypeScript's package config")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},"Bundler"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/webpack/webpack"},"Webpack")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/webpack/webpack.config.preview.ts"},"webpack.config.preview.ts")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"\u2022 Webpack config (for bundling during build)")),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/docs/docs-overview"},"Documentation")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/docs/index.tsx"},"Docs template")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/docs/docs-templates"},"Replace docs template"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"http://localhost:3000/docs/dev-services/builder/builder-overview"},"Builder")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"http://localhost:3000/docs/dev-services/builder/builder-overview"},"Build pipeline")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dev-services/builder/build-pipelines"},"Build pipelines"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dependencies/dependencies-overview"},"Dependencies")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/react.env.ts"},"Env-dependencies")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/dependencies/configuring-dependencies#configuring-dependencies-from-an-env"},"Env dependencies"))),(0,_react2.mdx)("tr",{parentName:"tbody"},(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"/docs/dev-services/generator/generator-overview"},"Generator")),(0,_react2.mdx)("td",{parentName:"tr",align:null},"-"),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:"https://bit.dev/teambit/react/react/~code/templates/react-component.ts"},"React templates")),(0,_react2.mdx)("td",{parentName:"tr",align:null},(0,_react2.mdx)("a",{parentName:"td",href:""},"Add a component template"))))),(0,_react2.mdx)("h3",null,"Default React versions"),(0,_react2.mdx)("p",null,"By default, the React env sets the following dependency versions for components using it:"),(0,_react2.mdx)("ul",null,(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"react")," (peer dependency): ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^16.8.0 || ^17.0.0")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"react-dom")," (peer dependency): ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^16.8.0 || ^17.0.0")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"@types/react"),": ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^17.0.8")),(0,_react2.mdx)("li",{parentName:"ul"},(0,_react2.mdx)("strong",{parentName:"li"},"@types/react-dom"),": ",(0,_react2.mdx)("inlineCode",{parentName:"li"},"^17.0.5")))))}MDXContent.__bit_component=__bit_component,MDXContent.isMDXComponent=!0},475:(__unused_webpack_module,exports2,__webpack_require__2)=>{"use strict";var __bit_component={id:"teambit.react/react@0.0.1041",homepage:"https://bit.cloud/teambit/react/react",exported:!0},_interopRequireDefault=__webpack_require__2(370);Object.defineProperty(exports2,"__esModule",{value:!0}),exports2.Logo=void 0;function _react(){const data=_interopRequireDefault(__webpack_require__2(804));return _react=function(){return data},data}_react.__bit_component=__bit_component;const Logo=()=>_react().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},_react().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/react.svg"}));Logo.__bit_component=__bit_component,exports2.Logo=Logo},57:module2=>{"use strict";module2.exports=MdxJsReact},804:module2=>{"use strict";module2.exports=React},459:module2=>{"use strict";module2.exports=TeambitMdxUiMdxScopeContext},370:module2=>{function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}module2.exports=_interopRequireDefault,module2.exports.__esModule=!0,module2.exports.default=module2.exports}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module2=__webpack_module_cache__[moduleId]={exports:{}};return __webpack_modules__[moduleId](module2,module2.exports,__webpack_require__),module2.exports}__webpack_require__.d=(exports2,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports2,key)&&Object.defineProperty(exports2,key,{enumerable:!0,get:definition[key]})},__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports2=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports2,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{compositions:()=>compositions,compositions_metadata:()=>compositions_metadata,overview:()=>overview});var react_docs_namespaceObject={};__webpack_require__.r(react_docs_namespaceObject),__webpack_require__.d(react_docs_namespaceObject,{default:()=>MDXContent});var react_composition=__webpack_require__(475),external_React_=__webpack_require__(804),external_MdxJsReact_=__webpack_require__(57),external_TeambitMdxUiMdxScopeContext_=__webpack_require__(459),dist=__webpack_require__(906),_excluded=["components"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&(!Object.prototype.propertyIsEnumerable.call(source,key)||(target[key]=source[key]))}return target}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}var layoutProps={},MDXLayout="wrapper";function MDXContent(_ref){var components=_ref.components,props=_objectWithoutProperties(_ref,_excluded);return(0,external_MdxJsReact_.mdx)(MDXLayout,_extends({},layoutProps,props,{components,mdxType:"MDXLayout"}),(0,external_MdxJsReact_.mdx)(external_TeambitMdxUiMdxScopeContext_.MDXScopeProvider,{components:{ReactOverview:dist.ZP},mdxType:"MDXScopeProvider"},(0,external_MdxJsReact_.mdx)(dist.ZP,{mdxType:"ReactOverview"})))}MDXContent.isMDXComponent=!0;var __bit_component={id:"teambit.react/react@0.0.1041",homepage:"https://bit.cloud/teambit/react/react",exported:!0};const compositions=[react_composition],overview=[react_docs_namespaceObject],compositions_metadata={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),__webpack_exports__})()});
|
package/artifacts/schema.json
CHANGED
|
@@ -2353,7 +2353,7 @@
|
|
|
2353
2353
|
"componentId": {
|
|
2354
2354
|
"scope": "teambit.react",
|
|
2355
2355
|
"name": "react",
|
|
2356
|
-
"version": "0.0.
|
|
2356
|
+
"version": "0.0.1041"
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
@@ -2539,7 +2539,7 @@
|
|
|
2539
2539
|
"componentId": {
|
|
2540
2540
|
"scope": "teambit.react",
|
|
2541
2541
|
"name": "react",
|
|
2542
|
-
"version": "0.0.
|
|
2542
|
+
"version": "0.0.1041"
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
2545
|
},
|
|
@@ -2563,7 +2563,7 @@
|
|
|
2563
2563
|
"componentId": {
|
|
2564
2564
|
"scope": "teambit.react",
|
|
2565
2565
|
"name": "react",
|
|
2566
|
-
"version": "0.0.
|
|
2566
|
+
"version": "0.0.1041"
|
|
2567
2567
|
}
|
|
2568
2568
|
}
|
|
2569
2569
|
},
|
|
@@ -2587,7 +2587,7 @@
|
|
|
2587
2587
|
"componentId": {
|
|
2588
2588
|
"scope": "teambit.react",
|
|
2589
2589
|
"name": "react",
|
|
2590
|
-
"version": "0.0.
|
|
2590
|
+
"version": "0.0.1041"
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
@@ -2611,7 +2611,7 @@
|
|
|
2611
2611
|
"componentId": {
|
|
2612
2612
|
"scope": "teambit.react",
|
|
2613
2613
|
"name": "react",
|
|
2614
|
-
"version": "0.0.
|
|
2614
|
+
"version": "0.0.1041"
|
|
2615
2615
|
}
|
|
2616
2616
|
}
|
|
2617
2617
|
},
|
|
@@ -2635,7 +2635,7 @@
|
|
|
2635
2635
|
"componentId": {
|
|
2636
2636
|
"scope": "teambit.react",
|
|
2637
2637
|
"name": "react",
|
|
2638
|
-
"version": "0.0.
|
|
2638
|
+
"version": "0.0.1041"
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
},
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
"componentId": {
|
|
2660
2660
|
"scope": "teambit.react",
|
|
2661
2661
|
"name": "react",
|
|
2662
|
-
"version": "0.0.
|
|
2662
|
+
"version": "0.0.1041"
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
},
|
|
@@ -2683,7 +2683,7 @@
|
|
|
2683
2683
|
"componentId": {
|
|
2684
2684
|
"scope": "teambit.react",
|
|
2685
2685
|
"name": "react",
|
|
2686
|
-
"version": "0.0.
|
|
2686
|
+
"version": "0.0.1041"
|
|
2687
2687
|
}
|
|
2688
2688
|
}
|
|
2689
2689
|
},
|
|
@@ -2707,7 +2707,7 @@
|
|
|
2707
2707
|
"componentId": {
|
|
2708
2708
|
"scope": "teambit.react",
|
|
2709
2709
|
"name": "react",
|
|
2710
|
-
"version": "0.0.
|
|
2710
|
+
"version": "0.0.1041"
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
2713
|
}
|
|
@@ -3662,7 +3662,7 @@
|
|
|
3662
3662
|
"componentId": {
|
|
3663
3663
|
"scope": "teambit.compilation",
|
|
3664
3664
|
"name": "compiler",
|
|
3665
|
-
"version": "0.0.
|
|
3665
|
+
"version": "0.0.1041"
|
|
3666
3666
|
}
|
|
3667
3667
|
},
|
|
3668
3668
|
"doc": {
|
|
@@ -3783,7 +3783,7 @@
|
|
|
3783
3783
|
"componentId": {
|
|
3784
3784
|
"scope": "teambit.compilation",
|
|
3785
3785
|
"name": "compiler",
|
|
3786
|
-
"version": "0.0.
|
|
3786
|
+
"version": "0.0.1041"
|
|
3787
3787
|
}
|
|
3788
3788
|
},
|
|
3789
3789
|
"doc": {
|
|
@@ -4050,7 +4050,7 @@
|
|
|
4050
4050
|
"componentId": {
|
|
4051
4051
|
"scope": "teambit.compilation",
|
|
4052
4052
|
"name": "compiler",
|
|
4053
|
-
"version": "0.0.
|
|
4053
|
+
"version": "0.0.1041"
|
|
4054
4054
|
}
|
|
4055
4055
|
},
|
|
4056
4056
|
"doc": {
|
|
@@ -4180,7 +4180,7 @@
|
|
|
4180
4180
|
"componentId": {
|
|
4181
4181
|
"scope": "teambit.compilation",
|
|
4182
4182
|
"name": "compiler",
|
|
4183
|
-
"version": "0.0.
|
|
4183
|
+
"version": "0.0.1041"
|
|
4184
4184
|
}
|
|
4185
4185
|
}
|
|
4186
4186
|
},
|
|
@@ -5501,7 +5501,7 @@
|
|
|
5501
5501
|
"componentId": {
|
|
5502
5502
|
"scope": "teambit.compilation",
|
|
5503
5503
|
"name": "compiler",
|
|
5504
|
-
"version": "0.0.
|
|
5504
|
+
"version": "0.0.1041"
|
|
5505
5505
|
}
|
|
5506
5506
|
},
|
|
5507
5507
|
"doc": {
|
|
@@ -5598,7 +5598,7 @@
|
|
|
5598
5598
|
"componentId": {
|
|
5599
5599
|
"scope": "teambit.compilation",
|
|
5600
5600
|
"name": "compiler",
|
|
5601
|
-
"version": "0.0.
|
|
5601
|
+
"version": "0.0.1041"
|
|
5602
5602
|
}
|
|
5603
5603
|
},
|
|
5604
5604
|
"doc": {
|
|
@@ -5718,7 +5718,7 @@
|
|
|
5718
5718
|
"componentId": {
|
|
5719
5719
|
"scope": "teambit.compilation",
|
|
5720
5720
|
"name": "compiler",
|
|
5721
|
-
"version": "0.0.
|
|
5721
|
+
"version": "0.0.1041"
|
|
5722
5722
|
}
|
|
5723
5723
|
},
|
|
5724
5724
|
"doc": {
|
|
@@ -5815,7 +5815,7 @@
|
|
|
5815
5815
|
"componentId": {
|
|
5816
5816
|
"scope": "teambit.compilation",
|
|
5817
5817
|
"name": "compiler",
|
|
5818
|
-
"version": "0.0.
|
|
5818
|
+
"version": "0.0.1041"
|
|
5819
5819
|
}
|
|
5820
5820
|
},
|
|
5821
5821
|
"doc": {
|
|
@@ -9530,7 +9530,7 @@
|
|
|
9530
9530
|
"componentId": {
|
|
9531
9531
|
"scope": "teambit.react",
|
|
9532
9532
|
"name": "react",
|
|
9533
|
-
"version": "0.0.
|
|
9533
|
+
"version": "0.0.1041"
|
|
9534
9534
|
}
|
|
9535
9535
|
}
|
|
9536
9536
|
}
|
|
@@ -9747,7 +9747,7 @@
|
|
|
9747
9747
|
"componentId": {
|
|
9748
9748
|
"scope": "teambit.react",
|
|
9749
9749
|
"name": "react",
|
|
9750
|
-
"version": "0.0.
|
|
9750
|
+
"version": "0.0.1041"
|
|
9751
9751
|
}
|
|
9752
9752
|
}
|
|
9753
9753
|
},
|
|
@@ -9771,7 +9771,7 @@
|
|
|
9771
9771
|
"componentId": {
|
|
9772
9772
|
"scope": "teambit.react",
|
|
9773
9773
|
"name": "react",
|
|
9774
|
-
"version": "0.0.
|
|
9774
|
+
"version": "0.0.1041"
|
|
9775
9775
|
}
|
|
9776
9776
|
}
|
|
9777
9777
|
},
|
|
@@ -9795,7 +9795,7 @@
|
|
|
9795
9795
|
"componentId": {
|
|
9796
9796
|
"scope": "teambit.react",
|
|
9797
9797
|
"name": "react",
|
|
9798
|
-
"version": "0.0.
|
|
9798
|
+
"version": "0.0.1041"
|
|
9799
9799
|
}
|
|
9800
9800
|
}
|
|
9801
9801
|
},
|
|
@@ -9819,7 +9819,7 @@
|
|
|
9819
9819
|
"componentId": {
|
|
9820
9820
|
"scope": "teambit.react",
|
|
9821
9821
|
"name": "react",
|
|
9822
|
-
"version": "0.0.
|
|
9822
|
+
"version": "0.0.1041"
|
|
9823
9823
|
}
|
|
9824
9824
|
}
|
|
9825
9825
|
},
|
|
@@ -9843,7 +9843,7 @@
|
|
|
9843
9843
|
"componentId": {
|
|
9844
9844
|
"scope": "teambit.react",
|
|
9845
9845
|
"name": "react",
|
|
9846
|
-
"version": "0.0.
|
|
9846
|
+
"version": "0.0.1041"
|
|
9847
9847
|
}
|
|
9848
9848
|
}
|
|
9849
9849
|
},
|
|
@@ -9867,7 +9867,7 @@
|
|
|
9867
9867
|
"componentId": {
|
|
9868
9868
|
"scope": "teambit.react",
|
|
9869
9869
|
"name": "react",
|
|
9870
|
-
"version": "0.0.
|
|
9870
|
+
"version": "0.0.1041"
|
|
9871
9871
|
}
|
|
9872
9872
|
}
|
|
9873
9873
|
},
|
|
@@ -9891,7 +9891,7 @@
|
|
|
9891
9891
|
"componentId": {
|
|
9892
9892
|
"scope": "teambit.react",
|
|
9893
9893
|
"name": "react",
|
|
9894
|
-
"version": "0.0.
|
|
9894
|
+
"version": "0.0.1041"
|
|
9895
9895
|
}
|
|
9896
9896
|
}
|
|
9897
9897
|
},
|
|
@@ -9915,7 +9915,7 @@
|
|
|
9915
9915
|
"componentId": {
|
|
9916
9916
|
"scope": "teambit.react",
|
|
9917
9917
|
"name": "react",
|
|
9918
|
-
"version": "0.0.
|
|
9918
|
+
"version": "0.0.1041"
|
|
9919
9919
|
}
|
|
9920
9920
|
}
|
|
9921
9921
|
}
|
|
@@ -10870,7 +10870,7 @@
|
|
|
10870
10870
|
"componentId": {
|
|
10871
10871
|
"scope": "teambit.compilation",
|
|
10872
10872
|
"name": "compiler",
|
|
10873
|
-
"version": "0.0.
|
|
10873
|
+
"version": "0.0.1041"
|
|
10874
10874
|
}
|
|
10875
10875
|
},
|
|
10876
10876
|
"doc": {
|
|
@@ -10991,7 +10991,7 @@
|
|
|
10991
10991
|
"componentId": {
|
|
10992
10992
|
"scope": "teambit.compilation",
|
|
10993
10993
|
"name": "compiler",
|
|
10994
|
-
"version": "0.0.
|
|
10994
|
+
"version": "0.0.1041"
|
|
10995
10995
|
}
|
|
10996
10996
|
},
|
|
10997
10997
|
"doc": {
|
|
@@ -11258,7 +11258,7 @@
|
|
|
11258
11258
|
"componentId": {
|
|
11259
11259
|
"scope": "teambit.compilation",
|
|
11260
11260
|
"name": "compiler",
|
|
11261
|
-
"version": "0.0.
|
|
11261
|
+
"version": "0.0.1041"
|
|
11262
11262
|
}
|
|
11263
11263
|
},
|
|
11264
11264
|
"doc": {
|
|
@@ -11388,7 +11388,7 @@
|
|
|
11388
11388
|
"componentId": {
|
|
11389
11389
|
"scope": "teambit.compilation",
|
|
11390
11390
|
"name": "compiler",
|
|
11391
|
-
"version": "0.0.
|
|
11391
|
+
"version": "0.0.1041"
|
|
11392
11392
|
}
|
|
11393
11393
|
}
|
|
11394
11394
|
},
|
|
@@ -12709,7 +12709,7 @@
|
|
|
12709
12709
|
"componentId": {
|
|
12710
12710
|
"scope": "teambit.compilation",
|
|
12711
12711
|
"name": "compiler",
|
|
12712
|
-
"version": "0.0.
|
|
12712
|
+
"version": "0.0.1041"
|
|
12713
12713
|
}
|
|
12714
12714
|
},
|
|
12715
12715
|
"doc": {
|
|
@@ -12806,7 +12806,7 @@
|
|
|
12806
12806
|
"componentId": {
|
|
12807
12807
|
"scope": "teambit.compilation",
|
|
12808
12808
|
"name": "compiler",
|
|
12809
|
-
"version": "0.0.
|
|
12809
|
+
"version": "0.0.1041"
|
|
12810
12810
|
}
|
|
12811
12811
|
},
|
|
12812
12812
|
"doc": {
|
|
@@ -12926,7 +12926,7 @@
|
|
|
12926
12926
|
"componentId": {
|
|
12927
12927
|
"scope": "teambit.compilation",
|
|
12928
12928
|
"name": "compiler",
|
|
12929
|
-
"version": "0.0.
|
|
12929
|
+
"version": "0.0.1041"
|
|
12930
12930
|
}
|
|
12931
12931
|
},
|
|
12932
12932
|
"doc": {
|
|
@@ -13023,7 +13023,7 @@
|
|
|
13023
13023
|
"componentId": {
|
|
13024
13024
|
"scope": "teambit.compilation",
|
|
13025
13025
|
"name": "compiler",
|
|
13026
|
-
"version": "0.0.
|
|
13026
|
+
"version": "0.0.1041"
|
|
13027
13027
|
}
|
|
13028
13028
|
},
|
|
13029
13029
|
"doc": {
|
|
@@ -13237,7 +13237,7 @@
|
|
|
13237
13237
|
"character": 1
|
|
13238
13238
|
},
|
|
13239
13239
|
"name": "CompilerMode",
|
|
13240
|
-
"signature": "type CompilerMode = \"
|
|
13240
|
+
"signature": "type CompilerMode = \"dev\" | \"build\"",
|
|
13241
13241
|
"type": {
|
|
13242
13242
|
"__schema": "TypeUnionSchema",
|
|
13243
13243
|
"location": {
|
|
@@ -14075,7 +14075,7 @@
|
|
|
14075
14075
|
"componentId": {
|
|
14076
14076
|
"scope": "teambit.react",
|
|
14077
14077
|
"name": "react",
|
|
14078
|
-
"version": "0.0.
|
|
14078
|
+
"version": "0.0.1041"
|
|
14079
14079
|
},
|
|
14080
14080
|
"taggedModuleExports": []
|
|
14081
14081
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1041/dist/react.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.react_react@0.0.1041/dist/react.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1041",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/react/react",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.react",
|
|
8
8
|
"name": "react",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1041"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@babel/preset-env": "7.12.17",
|
|
38
38
|
"@babel/plugin-transform-modules-commonjs": "7.19.6",
|
|
39
39
|
"camelcase": "6.2.0",
|
|
40
|
-
"comment-json": "3.0.3",
|
|
41
40
|
"react-error-overlay": "6.0.9",
|
|
42
41
|
"strip-ansi": "6.0.0",
|
|
42
|
+
"comment-json": "3.0.3",
|
|
43
43
|
"@prerenderer/prerenderer": "^1.2.0",
|
|
44
44
|
"@prerenderer/renderer-jsdom": "^1.1.2",
|
|
45
45
|
"@prerenderer/webpack-plugin": "^5.2.0",
|
|
@@ -87,36 +87,36 @@
|
|
|
87
87
|
"@teambit/component-id": "0.0.427",
|
|
88
88
|
"@teambit/react.rendering.ssr": "0.0.3",
|
|
89
89
|
"@teambit/compositions.ui.hooks.use-composition": "0.0.172",
|
|
90
|
-
"@teambit/builder": "0.0.
|
|
91
|
-
"@teambit/bundler": "0.0.
|
|
92
|
-
"@teambit/compiler": "0.0.
|
|
90
|
+
"@teambit/builder": "0.0.1041",
|
|
91
|
+
"@teambit/bundler": "0.0.1041",
|
|
92
|
+
"@teambit/compiler": "0.0.1041",
|
|
93
93
|
"@teambit/component.modules.component-url": "0.0.151",
|
|
94
|
-
"@teambit/component": "0.0.
|
|
95
|
-
"@teambit/dependency-resolver": "0.0.
|
|
96
|
-
"@teambit/envs": "0.0.
|
|
97
|
-
"@teambit/eslint": "0.0.
|
|
98
|
-
"@teambit/formatter": "0.0.
|
|
99
|
-
"@teambit/jest": "0.0.
|
|
100
|
-
"@teambit/linter": "0.0.
|
|
94
|
+
"@teambit/component": "0.0.1041",
|
|
95
|
+
"@teambit/dependency-resolver": "0.0.1041",
|
|
96
|
+
"@teambit/envs": "0.0.1041",
|
|
97
|
+
"@teambit/eslint": "0.0.1041",
|
|
98
|
+
"@teambit/formatter": "0.0.592",
|
|
99
|
+
"@teambit/jest": "0.0.1041",
|
|
100
|
+
"@teambit/linter": "0.0.1041",
|
|
101
101
|
"@teambit/logger": "0.0.794",
|
|
102
|
-
"@teambit/pkg": "0.0.
|
|
103
|
-
"@teambit/prettier": "0.0.
|
|
104
|
-
"@teambit/preview": "0.0.
|
|
102
|
+
"@teambit/pkg": "0.0.1041",
|
|
103
|
+
"@teambit/prettier": "0.0.592",
|
|
104
|
+
"@teambit/preview": "0.0.1041",
|
|
105
105
|
"@teambit/react.ui.compositions-app": "0.0.12",
|
|
106
106
|
"@teambit/react.ui.docs-app": "0.0.205",
|
|
107
107
|
"@teambit/react.ui.highlighter.component-metadata.bit-component-meta": "0.0.31",
|
|
108
|
-
"@teambit/schema": "0.0.
|
|
109
|
-
"@teambit/tester": "0.0.
|
|
110
|
-
"@teambit/typescript": "0.0.
|
|
111
|
-
"@teambit/webpack": "0.0.
|
|
112
|
-
"@teambit/workspace": "0.0.
|
|
113
|
-
"@teambit/application": "0.0.
|
|
108
|
+
"@teambit/schema": "0.0.1041",
|
|
109
|
+
"@teambit/tester": "0.0.1041",
|
|
110
|
+
"@teambit/typescript": "0.0.1041",
|
|
111
|
+
"@teambit/webpack": "0.0.1041",
|
|
112
|
+
"@teambit/workspace": "0.0.1041",
|
|
113
|
+
"@teambit/application": "0.0.683",
|
|
114
114
|
"@teambit/cli": "0.0.701",
|
|
115
|
-
"@teambit/generator": "0.0.
|
|
116
|
-
"@teambit/graphql": "0.0.
|
|
115
|
+
"@teambit/generator": "0.0.1041",
|
|
116
|
+
"@teambit/graphql": "0.0.1041",
|
|
117
117
|
"@teambit/react.ui.highlighter-provider": "0.0.200",
|
|
118
|
-
"@teambit/compositions": "0.0.
|
|
119
|
-
"@teambit/ui": "0.0.
|
|
118
|
+
"@teambit/compositions": "0.0.1041",
|
|
119
|
+
"@teambit/ui": "0.0.1041",
|
|
120
120
|
"@teambit/react.eslint-config-bit-react": "0.0.773",
|
|
121
121
|
"@teambit/mdx.modules.mdx-loader": "0.0.509",
|
|
122
122
|
"@teambit/react.babel.bit-react-transformer": "0.0.529",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={91095:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__2)=>{var react__WEBPACK_IMPORTED_MODULE_2___namespace_cache,react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache,_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2(12359),_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2(3905),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__2(67294),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__2(73935);const globalObj=window;guard("TeambitMdxUiMdxScopeContext",_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__),guard("MdxJsReact",_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__),guard("React",react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2))),guard("ReactDom",react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2))),globalObj.TeambitMdxUiMdxScopeContext=_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__,globalObj.MdxJsReact=_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__,globalObj.React=react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2)),globalObj.ReactDom=react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2));function guard(property,expected){var existing=globalObj[property];if(existing===expected&&expected!==void 0)console.warn('[expose-peers] "'+property+'" already exists in global scope, but with correct value');else if(existing!==void 0)throw new Error('[expose-peers] "'+property+'" already exists in the global scope, cannot overwrite')}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,leafPrototypes;__webpack_require__.t=function(value,mode){if(mode&1&&(value=this(value)),mode&8||typeof value=="object"&&value&&(mode&4&&value.__esModule||mode&16&&typeof value.then=="function"))return value;var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=mode&2&&value;typeof current=="object"&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),(()=>{var installedChunks={703:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkIds[i]]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.O(void 0,[832],()=>__webpack_require__(91095));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|