@teambit/react 0.0.737 → 0.0.740

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.
Files changed (156) hide show
  1. package/apps/web/compute-results.ts +18 -0
  2. package/apps/web/react.application.ts +14 -4
  3. package/artifacts/env-template/public/173.js +34 -0
  4. package/artifacts/env-template/public/295.js +27 -27
  5. package/artifacts/env-template/public/assets-manifest.json +8 -8
  6. package/artifacts/env-template/public/{compositions.c63b532b6adfa78d8ab1.js → compositions.6dc32b8ec6eb8a275774.js} +1 -1
  7. package/artifacts/env-template/public/compositions.html +1 -1
  8. package/artifacts/env-template/public/{overview.3081780ed07d151b9672.js → overview.9895c218a5e5751260e3.js} +1 -1
  9. package/artifacts/env-template/public/overview.html +1 -1
  10. package/artifacts/env-template/public/{preview-root.4cfda169a82ce1e29875.js → preview-root.57b184c01e64e725977f.js} +1 -1
  11. package/artifacts/env-template/public/service-worker.js +1 -1
  12. package/artifacts/preview/teambit_react_react-preview.js +2 -2
  13. package/{compositions-1652930732694.js → compositions-1653449228788.js} +0 -0
  14. package/dist/apps/web/compute-results.d.ts +7 -0
  15. package/dist/apps/web/compute-results.js +21 -0
  16. package/dist/apps/web/compute-results.js.map +1 -0
  17. package/dist/apps/web/default-bundler.js.map +1 -1
  18. package/dist/apps/web/deploy-context.js.map +1 -1
  19. package/dist/apps/web/index.js.map +1 -1
  20. package/dist/apps/web/plugins/index.js.map +1 -1
  21. package/dist/apps/web/plugins/prerender.js.map +1 -1
  22. package/dist/apps/web/react-app-options.js.map +1 -1
  23. package/dist/apps/web/react-build-result.js.map +1 -1
  24. package/dist/apps/web/react.app-type.js.map +1 -1
  25. package/dist/apps/web/react.application.d.ts +1 -0
  26. package/dist/apps/web/react.application.js +25 -7
  27. package/dist/apps/web/react.application.js.map +1 -1
  28. package/dist/compositions-app.js.map +1 -1
  29. package/dist/eslint/eslintrc.js.map +1 -1
  30. package/dist/highlighter-widget.js.map +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/jest/index.js.map +1 -1
  33. package/dist/jest/jest.base.config.js.map +1 -1
  34. package/dist/jest/jest.cjs.config.js.map +1 -1
  35. package/dist/jest/jest.config.js.map +1 -1
  36. package/dist/jest/jest.esm.config.js.map +1 -1
  37. package/dist/jest/setupTests.js.map +1 -1
  38. package/dist/jest/transformers/base-transformer-plugins.js.map +1 -1
  39. package/dist/jest/transformers/base-transformer-presets.js.map +1 -1
  40. package/dist/jest/transformers/base-transformer-process.js.map +1 -1
  41. package/dist/jest/transformers/cjs-transformer.js.map +1 -1
  42. package/dist/jest/transformers/css-transform.js.map +1 -1
  43. package/dist/jest/transformers/esm-transformer.js.map +1 -1
  44. package/dist/jest/transformers/file-transform.js.map +1 -1
  45. package/dist/mount.js.map +1 -1
  46. package/dist/prettier/prettier.config.js.map +1 -1
  47. package/dist/react.aspect.js.map +1 -1
  48. package/dist/react.composition.js.map +1 -1
  49. package/dist/react.env.d.ts +4 -2
  50. package/dist/react.env.js +10 -29
  51. package/dist/react.env.js.map +1 -1
  52. package/dist/react.graphql.js.map +1 -1
  53. package/dist/react.main.runtime.d.ts +3 -2
  54. package/dist/react.main.runtime.js +13 -3
  55. package/dist/react.main.runtime.js.map +1 -1
  56. package/dist/react.preview.runtime.js.map +1 -1
  57. package/dist/react.templates.js.map +1 -1
  58. package/dist/react.ui.runtime.js.map +1 -1
  59. package/dist/templates/react-app/files/app-plugin.js.map +1 -1
  60. package/dist/templates/react-app/files/app-root.js.map +1 -1
  61. package/dist/templates/react-app/files/app.js.map +1 -1
  62. package/dist/templates/react-app/files/compositions.js.map +1 -1
  63. package/dist/templates/react-app/files/doc.js.map +1 -1
  64. package/dist/templates/react-app/files/index.js.map +1 -1
  65. package/dist/templates/react-app/index.js.map +1 -1
  66. package/dist/templates/react-component/files/component.js.map +1 -1
  67. package/dist/templates/react-component/files/composition.js.map +1 -1
  68. package/dist/templates/react-component/files/docs.js.map +1 -1
  69. package/dist/templates/react-component/files/index-file.js.map +1 -1
  70. package/dist/templates/react-component/files/test.js.map +1 -1
  71. package/dist/templates/react-component/index.js.map +1 -1
  72. package/dist/templates/react-component-js/files/component.js.map +1 -1
  73. package/dist/templates/react-component-js/files/composition.js.map +1 -1
  74. package/dist/templates/react-component-js/files/docs.js.map +1 -1
  75. package/dist/templates/react-component-js/files/test.js.map +1 -1
  76. package/dist/templates/react-component-js/index.js.map +1 -1
  77. package/dist/templates/react-context/files/composition.js.map +1 -1
  78. package/dist/templates/react-context/files/context-provider.js.map +1 -1
  79. package/dist/templates/react-context/files/context.js.map +1 -1
  80. package/dist/templates/react-context/files/docs.js.map +1 -1
  81. package/dist/templates/react-context/files/index-file.js.map +1 -1
  82. package/dist/templates/react-context/files/test.js.map +1 -1
  83. package/dist/templates/react-context/index.js.map +1 -1
  84. package/dist/templates/react-env/files/aspect.js.map +1 -1
  85. package/dist/templates/react-env/files/doc.js.map +1 -1
  86. package/dist/templates/react-env/files/index.js.map +1 -1
  87. package/dist/templates/react-env/files/jest.config.js.map +1 -1
  88. package/dist/templates/react-env/files/main.runtime.js.map +1 -1
  89. package/dist/templates/react-env/files/preview.runtime.js.map +1 -1
  90. package/dist/templates/react-env/files/typescript/styles.js.map +1 -1
  91. package/dist/templates/react-env/files/typescript/ts-transformer.js.map +1 -1
  92. package/dist/templates/react-env/files/typescript/typescript.config.js.map +1 -1
  93. package/dist/templates/react-env/files/webpack.config.js.map +1 -1
  94. package/dist/templates/react-env/index.js.map +1 -1
  95. package/dist/templates/react-hook/files/component.js.map +1 -1
  96. package/dist/templates/react-hook/files/composition.js.map +1 -1
  97. package/dist/templates/react-hook/files/docs.js.map +1 -1
  98. package/dist/templates/react-hook/files/index-file.js.map +1 -1
  99. package/dist/templates/react-hook/files/test.js.map +1 -1
  100. package/dist/templates/react-hook/index.js.map +1 -1
  101. package/dist/templates/react-workspace/index.js.map +1 -1
  102. package/dist/templates/react-workspace-analytics/index.js.map +1 -1
  103. package/dist/templates/react-workspace-app/index.js.map +1 -1
  104. package/dist/templates/react-workspace-data-fetching/index.js.map +1 -1
  105. package/dist/templates/react-workspace-deprecated/index.js.map +1 -1
  106. package/dist/templates/react-workspace-design-system/index.js.map +1 -1
  107. package/dist/templates/react-workspace-lib/index.js.map +1 -1
  108. package/dist/templates/react-workspace-wiki/index.js.map +1 -1
  109. package/dist/templates/workspace-common/files/eslint-config.js.map +1 -1
  110. package/dist/templates/workspace-common/files/git-ignore.js.map +1 -1
  111. package/dist/templates/workspace-common/files/launch-json.js.map +1 -1
  112. package/dist/templates/workspace-common/files/prettier-config.js.map +1 -1
  113. package/dist/templates/workspace-common/files/readme-file.js.map +1 -1
  114. package/dist/templates/workspace-common/files/ts-config.js.map +1 -1
  115. package/dist/templates/workspace-common/files/types/asset.js.map +1 -1
  116. package/dist/templates/workspace-common/files/types/style.js.map +1 -1
  117. package/dist/templates/workspace-common/files/workspace-config.js.map +1 -1
  118. package/dist/templates/workspace-common/generate-files.js.map +1 -1
  119. package/dist/templates/workspace-common/index.js.map +1 -1
  120. package/dist/webpack/html.js.map +1 -1
  121. package/dist/webpack/index.js.map +1 -1
  122. package/dist/webpack/overlay/formatWebpackMessages.js.map +1 -1
  123. package/dist/webpack/overlay/launchEditorEndpoint.js.map +1 -1
  124. package/dist/webpack/overlay/refreshOverlayInterop.js.map +1 -1
  125. package/dist/webpack/overlay/webpackHotDevClient.js.map +1 -1
  126. package/dist/webpack/postcss.config.js.map +1 -1
  127. package/dist/webpack/webpack.config.base.js.map +1 -1
  128. package/dist/webpack/webpack.config.base.prod.d.ts +1 -1
  129. package/dist/webpack/webpack.config.base.prod.js +1 -13
  130. package/dist/webpack/webpack.config.base.prod.js.map +1 -1
  131. package/dist/webpack/webpack.config.component.dev.js.map +1 -1
  132. package/dist/webpack/webpack.config.component.prod.js.map +1 -1
  133. package/dist/webpack/webpack.config.env.dev.js.map +1 -1
  134. package/{overview-1652930732694.js → overview-1653449228788.js} +0 -0
  135. package/package-tar/teambit-react-0.0.740.tgz +0 -0
  136. package/package.json +32 -39
  137. package/{preview-1652930732694.js → preview-1653449228788.js} +2 -2
  138. package/webpack/webpack.config.base.prod.ts +1 -5
  139. package/artifacts/env-template/public/65.js +0 -34
  140. package/dist/webpack/get-exposed-rules.d.ts +0 -3
  141. package/dist/webpack/get-exposed-rules.js +0 -60
  142. package/dist/webpack/get-exposed-rules.js.map +0 -1
  143. package/dist/webpack/get-externals.d.ts +0 -1
  144. package/dist/webpack/get-externals.js +0 -42
  145. package/dist/webpack/get-externals.js.map +0 -1
  146. package/dist/webpack/resolve-peer.d.ts +0 -14
  147. package/dist/webpack/resolve-peer.js +0 -108
  148. package/dist/webpack/resolve-peer.js.map +0 -1
  149. package/dist/webpack/transformers.d.ts +0 -10
  150. package/dist/webpack/transformers.js +0 -66
  151. package/dist/webpack/transformers.js.map +0 -1
  152. package/package-tar/teambit-react-0.0.737.tgz +0 -0
  153. package/webpack/get-exposed-rules.ts +0 -14
  154. package/webpack/get-externals.ts +0 -8
  155. package/webpack/resolve-peer.ts +0 -60
  156. package/webpack/transformers.ts +0 -37
@@ -1 +1 @@
1
- {"version":3,"sources":["main.runtime.ts"],"names":["mainRuntimeFile","namePascalCase","Name","name"],"mappings":";;;;;;;AAEO,SAASA,eAAT,CAAyB;AAAEC,EAAAA,cAAc,EAAEC,IAAlB;AAAwBC,EAAAA;AAAxB,CAAzB,EAA2E;AAChF,SAAQ;AACV;AACA;AACA,WAAWD,IAAK,oBAAmBC,IAAK;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeD,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAYA,IAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBA,IAAK;AAC5B,iBAAiBA,IAAK;AACtB;AACA;AACA;AACA,EAAEA,IAAK,qBAAoBA,IAAK;AAChC,CAxFE;AAyFD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ReactAspect, ReactMain } from '@teambit/react';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { ${Name}Aspect } from './${name}.aspect';\n//import {\n// previewConfigTransformer,\n// devServerConfigTransformer\n//} from './webpack/webpack-transformers';\n//import {\n// devConfigTransformer,\n// buildConfigTransformer,\n//} from \"./typescript/ts-transformer\";\n\nexport class ${Name}Main {\n static slots = [];\n\n static dependencies = [ReactAspect, EnvsAspect];\n\n static runtime = MainRuntime;\n\n //const webpackModifiers: UseWebpackModifiers = {\n // previewConfig: [previewConfigTransformer],\n // devServerConfig: [devServerConfigTransformer],\n //};\n\n //const tsModifiers: UseTypescriptModifiers = {\n // devConfig: [devConfigTransformer],\n // buildConfig: [buildConfigTransformer],\n //};\n\n static async provider([react, envs]: [ReactMain, EnvsMain]) {\n const ${Name}Env = react.compose([\n /**\n * Uncomment to override the config files for TypeScript, Webpack or Jest\n * Your config gets merged with the defaults\n */\n\n // react.useTypescript(tsModifiers), // note: this cannot be used in conjunction with react.overrideCompiler\n // react.useWebpack(webpackModifiers),\n // react.overrideJestConfig(require.resolve('./jest/jest.config')),\n\n /**\n * override the ESLint default config here then check your files for lint errors\n * @example\n * bit lint\n * bit lint --fix\n */\n //react.useEslint({\n // transformers: [\n // (config) => {\n // config.setRule('no-console', ['error']);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override the Prettier default config here the check your formatting\n * @example\n * bit format --check\n * bit format\n */\n //react.usePrettier({\n // transformers: [\n // (config) => {\n // config.setKey('tabWidth', 2);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override dependencies here\n * @example\n * Uncomment types to include version 17.0.3 of the types package\n */\n react.overrideDependencies({\n devDependencies: {\n // '@types/react': '17.0.3'\n }\n })\n ]);\n envs.registerEnv(${Name}Env);\n return new ${Name}Main();\n }\n}\n\n${Name}Aspect.addRuntime(${Name}Main);\n`;\n}\n"]}
1
+ {"version":3,"names":["mainRuntimeFile","namePascalCase","Name","name"],"sources":["main.runtime.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntimeFile({ namePascalCase: Name, name }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ReactAspect, ReactMain } from '@teambit/react';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { ${Name}Aspect } from './${name}.aspect';\n//import {\n// previewConfigTransformer,\n// devServerConfigTransformer\n//} from './webpack/webpack-transformers';\n//import {\n// devConfigTransformer,\n// buildConfigTransformer,\n//} from \"./typescript/ts-transformer\";\n\nexport class ${Name}Main {\n static slots = [];\n\n static dependencies = [ReactAspect, EnvsAspect];\n\n static runtime = MainRuntime;\n\n //const webpackModifiers: UseWebpackModifiers = {\n // previewConfig: [previewConfigTransformer],\n // devServerConfig: [devServerConfigTransformer],\n //};\n\n //const tsModifiers: UseTypescriptModifiers = {\n // devConfig: [devConfigTransformer],\n // buildConfig: [buildConfigTransformer],\n //};\n\n static async provider([react, envs]: [ReactMain, EnvsMain]) {\n const ${Name}Env = react.compose([\n /**\n * Uncomment to override the config files for TypeScript, Webpack or Jest\n * Your config gets merged with the defaults\n */\n\n // react.useTypescript(tsModifiers), // note: this cannot be used in conjunction with react.overrideCompiler\n // react.useWebpack(webpackModifiers),\n // react.overrideJestConfig(require.resolve('./jest/jest.config')),\n\n /**\n * override the ESLint default config here then check your files for lint errors\n * @example\n * bit lint\n * bit lint --fix\n */\n //react.useEslint({\n // transformers: [\n // (config) => {\n // config.setRule('no-console', ['error']);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override the Prettier default config here the check your formatting\n * @example\n * bit format --check\n * bit format\n */\n //react.usePrettier({\n // transformers: [\n // (config) => {\n // config.setKey('tabWidth', 2);\n // return config;\n // }\n // ]\n //}),\n\n /**\n * override dependencies here\n * @example\n * Uncomment types to include version 17.0.3 of the types package\n */\n react.overrideDependencies({\n devDependencies: {\n // '@types/react': '17.0.3'\n }\n })\n ]);\n envs.registerEnv(${Name}Env);\n return new ${Name}Main();\n }\n}\n\n${Name}Aspect.addRuntime(${Name}Main);\n`;\n}\n"],"mappings":";;;;;;;AAEO,SAASA,eAAT,CAAyB;EAAEC,cAAc,EAAEC,IAAlB;EAAwBC;AAAxB,CAAzB,EAA2E;EAChF,OAAQ;AACV;AACA;AACA,WAAWD,IAAK,oBAAmBC,IAAK;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAeD,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAYA,IAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBA,IAAK;AAC5B,iBAAiBA,IAAK;AACtB;AACA;AACA;AACA,EAAEA,IAAK,qBAAoBA,IAAK;AAChC,CAxFE;AAyFD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["preview.runtime.ts"],"names":["previewRuntimeFile","namePascalCase","Name","nameCamelCase","nameCamel","name"],"mappings":";;;;;;;AAEO,SAASA,kBAAT,CAA4B;AAAEC,EAAAA,cAAc,EAAEC,IAAlB;AAAwBC,EAAAA,aAAa,EAAEC,SAAvC;AAAkDC,EAAAA;AAAlD,CAA5B,EAAwG;AAC7G,SAAQ;AACV;AACA;AACA;AACA;AACA,WAAWH,IAAK,oBAAmBG,IAAK;AACxC;AACA,eAAeH,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA,YAAYE,SAAU,qBAAoBF,IAAK;AAC/C;AACA;AACA;AACA,aAAaE,SAAU;AACvB;AACA;AACA;AACA,EAAEF,IAAK,qBAAoBA,IAAK;AAChC,CAtBE;AAuBD","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function previewRuntimeFile({ namePascalCase: Name, nameCamelCase: nameCamel, name }: ComponentContext) {\n return `import { PreviewRuntime } from '@teambit/preview';\nimport { ReactAspect, ReactPreview } from '@teambit/react';\n// uncomment the line below and install the theme if you want to use our theme or create your own and import it here\n// import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';\n\nimport { ${Name}Aspect } from './${name}.aspect';\n\nexport class ${Name}PreviewMain {\n static runtime = PreviewRuntime;\n\n static dependencies = [ReactAspect];\n\n static async provider([react]: [ReactPreview]) {\n const ${nameCamel}PreviewMain = new ${Name}PreviewMain();\n // uncomment the line below to register a new provider to wrap all compositions using this environment with a custom theme.\n // react.registerProvider([ThemeCompositions]);\n\n return ${nameCamel}PreviewMain;\n }\n}\n\n${Name}Aspect.addRuntime(${Name}PreviewMain);\n`;\n}\n"]}
1
+ {"version":3,"names":["previewRuntimeFile","namePascalCase","Name","nameCamelCase","nameCamel","name"],"sources":["preview.runtime.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function previewRuntimeFile({ namePascalCase: Name, nameCamelCase: nameCamel, name }: ComponentContext) {\n return `import { PreviewRuntime } from '@teambit/preview';\nimport { ReactAspect, ReactPreview } from '@teambit/react';\n// uncomment the line below and install the theme if you want to use our theme or create your own and import it here\n// import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';\n\nimport { ${Name}Aspect } from './${name}.aspect';\n\nexport class ${Name}PreviewMain {\n static runtime = PreviewRuntime;\n\n static dependencies = [ReactAspect];\n\n static async provider([react]: [ReactPreview]) {\n const ${nameCamel}PreviewMain = new ${Name}PreviewMain();\n // uncomment the line below to register a new provider to wrap all compositions using this environment with a custom theme.\n // react.registerProvider([ThemeCompositions]);\n\n return ${nameCamel}PreviewMain;\n }\n}\n\n${Name}Aspect.addRuntime(${Name}PreviewMain);\n`;\n}\n"],"mappings":";;;;;;;AAEO,SAASA,kBAAT,CAA4B;EAAEC,cAAc,EAAEC,IAAlB;EAAwBC,aAAa,EAAEC,SAAvC;EAAkDC;AAAlD,CAA5B,EAAwG;EAC7G,OAAQ;AACV;AACA;AACA;AACA;AACA,WAAWH,IAAK,oBAAmBG,IAAK;AACxC;AACA,eAAeH,IAAK;AACpB;AACA;AACA;AACA;AACA;AACA,YAAYE,SAAU,qBAAoBF,IAAK;AAC/C;AACA;AACA;AACA,aAAaE,SAAU;AACvB;AACA;AACA;AACA,EAAEF,IAAK,qBAAoBA,IAAK;AAChC,CAtBE;AAuBD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["styles.ts"],"names":["globalStylesFile"],"mappings":";;;;;;;AAAO,SAASA,gBAAT,GAA4B;AACjC,SAAQ;AACV;AACA;AACA;AACA,GAJE;AAKD","sourcesContent":["export function globalStylesFile() {\n return `\n /*\n Add your global styles here to be added for any component using this env\n */\n `\n}\n"]}
1
+ {"version":3,"names":["globalStylesFile"],"sources":["styles.ts"],"sourcesContent":["export function globalStylesFile() {\n return `\n /*\n Add your global styles here to be added for any component using this env\n */\n `\n}\n"],"mappings":";;;;;;;AAAO,SAASA,gBAAT,GAA4B;EACjC,OAAQ;AACV;AACA;AACA;AACA,GAJE;AAKD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ts-transformer.ts"],"names":["tsTransformerFile"],"mappings":";;;;;;;AAAO,SAASA,iBAAT,GAA6B;AAClC,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA/CE;AAgDD","sourcesContent":["export function tsTransformerFile() {\n return `\n import * as path from 'path';\nimport {\n TsConfigTransformer,\n TypescriptConfigMutator,\n} from \"@teambit/typescript\";\n\nconst tsConfig = require('./tsconfig.json');\n\nexport const commonTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator\n) => {\n const newConfig = config.addTypes([path.join(__dirname, 'styles.d.ts')])\n newConfig.mergeTsConfig(tsConfig);\n // Some examples of other built in mutator functions:\n //newConfig.addExclude(['someExclude']);\n //newConfig.setCompileJs(true)\n return newConfig;\n};\n\n/**\n * Transformation for the dev config only\n * @param config\n * @param context\n * @returns\n */\nexport const devConfigTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator,\n) => {\n const newConfig = commonTransformer(config, {});\n return newConfig;\n};\n\n/**\n * Transformation for the build only\n * @param config\n * @param context\n * @returns\n */\nexport const buildConfigTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator\n) => {\n const newConfig = commonTransformer(config, {});\n newConfig.mergeTsConfig(tsConfig);\n return newConfig;\n};\n\n`\n}\n"]}
1
+ {"version":3,"names":["tsTransformerFile"],"sources":["ts-transformer.ts"],"sourcesContent":["export function tsTransformerFile() {\n return `\n import * as path from 'path';\nimport {\n TsConfigTransformer,\n TypescriptConfigMutator,\n} from \"@teambit/typescript\";\n\nconst tsConfig = require('./tsconfig.json');\n\nexport const commonTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator\n) => {\n const newConfig = config.addTypes([path.join(__dirname, 'styles.d.ts')])\n newConfig.mergeTsConfig(tsConfig);\n // Some examples of other built in mutator functions:\n //newConfig.addExclude(['someExclude']);\n //newConfig.setCompileJs(true)\n return newConfig;\n};\n\n/**\n * Transformation for the dev config only\n * @param config\n * @param context\n * @returns\n */\nexport const devConfigTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator,\n) => {\n const newConfig = commonTransformer(config, {});\n return newConfig;\n};\n\n/**\n * Transformation for the build only\n * @param config\n * @param context\n * @returns\n */\nexport const buildConfigTransformer: TsConfigTransformer = (\n config: TypescriptConfigMutator\n) => {\n const newConfig = commonTransformer(config, {});\n newConfig.mergeTsConfig(tsConfig);\n return newConfig;\n};\n\n`\n}\n"],"mappings":";;;;;;;AAAO,SAASA,iBAAT,GAA6B;EAClC,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA/CE;AAgDD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["typescript.config.ts"],"names":["typescriptConfigFile"],"mappings":";;;;;;;AAAO,SAASA,oBAAT,GAAgC;AACrC,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAlBE;AAmBD","sourcesContent":["export function typescriptConfigFile() {\n return `{\n // add your compiler options here\n\n \"compilerOptions\": {\n // \"target\": \"es2017\",\n // \"module\": \"es2015\",\n // \"moduleResolution\": \"node\",\n // \"lib\": [\"es2017\", \"dom\"],\n // \"experimentalDecorators\": true,\n // \"esModuleInterop\": true,\n // \"outDir\": \"dist\",\n // \"sourceMap\": true,\n // \"emitDecoratorMetadata\": true,\n // \"allowJs\": true,\n // \"baseUrl\": \".\",\n // \"jsx\": \"react\"\n }\n}\n`;\n}\n"]}
1
+ {"version":3,"names":["typescriptConfigFile"],"sources":["typescript.config.ts"],"sourcesContent":["export function typescriptConfigFile() {\n return `{\n // add your compiler options here\n\n \"compilerOptions\": {\n // \"target\": \"es2017\",\n // \"module\": \"es2015\",\n // \"moduleResolution\": \"node\",\n // \"lib\": [\"es2017\", \"dom\"],\n // \"experimentalDecorators\": true,\n // \"esModuleInterop\": true,\n // \"outDir\": \"dist\",\n // \"sourceMap\": true,\n // \"emitDecoratorMetadata\": true,\n // \"allowJs\": true,\n // \"baseUrl\": \".\",\n // \"jsx\": \"react\"\n }\n}\n`;\n}\n"],"mappings":";;;;;;;AAAO,SAASA,oBAAT,GAAgC;EACrC,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAlBE;AAmBD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack.config.ts"],"names":["webpackConfigFile"],"mappings":";;;;;;;AAAO,SAASA,iBAAT,GAA6B;AAClC,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA7CE;AA8CD","sourcesContent":["export function webpackConfigFile() {\n return `\n import { WebpackConfigTransformer, WebpackConfigMutator, WebpackConfigTransformContext } from '@teambit/webpack';\n\n /**\n * Transformation to apply for both preview and dev server\n * @param config\n * @param _context\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n function commonTransformation(config: WebpackConfigMutator, _context: WebpackConfigTransformContext) {\n // Merge config with the webpack.config.js file if you choose to import a module export format config.\n // config.merge([webpackConfig]);\n // config.addAliases({});\n // config.addModuleRule(youRuleHere);\n return config;\n }\n\n /**\n * Transformation for the preview only\n * @param config\n * @param context\n * @returns\n */\n export const previewConfigTransformer: WebpackConfigTransformer = (\n config: WebpackConfigMutator,\n context: WebpackConfigTransformContext\n ) => {\n const newConfig = commonTransformation(config, context);\n return newConfig;\n };\n\n /**\n * Transformation for the dev server only\n * @param config\n * @param context\n * @returns\n */\n export const devServerConfigTransformer: WebpackConfigTransformer = (\n config: WebpackConfigMutator,\n context: WebpackConfigTransformContext\n ) => {\n const newConfig = commonTransformation(config, context);\n return newConfig;\n };\n\n`;\n}\n"]}
1
+ {"version":3,"names":["webpackConfigFile"],"sources":["webpack.config.ts"],"sourcesContent":["export function webpackConfigFile() {\n return `\n import { WebpackConfigTransformer, WebpackConfigMutator, WebpackConfigTransformContext } from '@teambit/webpack';\n\n /**\n * Transformation to apply for both preview and dev server\n * @param config\n * @param _context\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n function commonTransformation(config: WebpackConfigMutator, _context: WebpackConfigTransformContext) {\n // Merge config with the webpack.config.js file if you choose to import a module export format config.\n // config.merge([webpackConfig]);\n // config.addAliases({});\n // config.addModuleRule(youRuleHere);\n return config;\n }\n\n /**\n * Transformation for the preview only\n * @param config\n * @param context\n * @returns\n */\n export const previewConfigTransformer: WebpackConfigTransformer = (\n config: WebpackConfigMutator,\n context: WebpackConfigTransformContext\n ) => {\n const newConfig = commonTransformation(config, context);\n return newConfig;\n };\n\n /**\n * Transformation for the dev server only\n * @param config\n * @param context\n * @returns\n */\n export const devServerConfigTransformer: WebpackConfigTransformer = (\n config: WebpackConfigMutator,\n context: WebpackConfigTransformContext\n ) => {\n const newConfig = commonTransformation(config, context);\n return newConfig;\n };\n\n`;\n}\n"],"mappings":";;;;;;;AAAO,SAASA,iBAAT,GAA6B;EAClC,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA7CE;AA8CD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactEnvTemplate","name","description","generateFiles","context","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AAA,YAAY,EAAG,iCADjB;AAEEC,MAAAA,OAAO,EAAE;AAFX,KAtBK,EA0BL;AACED,MAAAA,YAAY,EAAG,0BADjB;AAEEC,MAAAA,OAAO,EAAE;AAFX,KA1BK,EA8BL;AACED,MAAAA,YAAY,EAAG,wBADjB;AAEEC,MAAAA,OAAO,EAAE;AAFX,KA9BK,EAkCL;AACED,MAAAA,YAAY,EAAG,8BADjB;AAEEC,MAAAA,OAAO,EAAE;AAFX,KAlCK,EAsCL;AACED,MAAAA,YAAY,EAAG,qBADjB;AAEEC,MAAAA,OAAO,EAAE;AAFX,KAtCK,CAAP;AA2CD,GA/CgD;AAgDjDE,EAAAA,MAAM,EAAE;AACN,wBAAoB,EADd;AAEN,yBAAqB;AACnBC,MAAAA,GAAG,EAAE;AADc;AAFf;AAhDyC,CAA5C","sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { docFile } from './files/doc';\nimport { mainRuntimeFile } from './files/main.runtime';\nimport { previewRuntimeFile } from './files/preview.runtime';\nimport { aspectFile } from './files/aspect';\nimport { webpackConfigFile } from './files/webpack.config';\nimport { typescriptConfigFile } from './files/typescript/typescript.config';\nimport { globalStylesFile } from './files/typescript/styles';\nimport { tsTransformerFile } from './files/typescript/ts-transformer';\nimport { jestConfigFile } from './files/jest.config';\n\nexport const reactEnvTemplate: ComponentTemplate = {\n name: 'react-env',\n description: 'customize the base React env with your configs and tools',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(context),\n isMain: true,\n },\n {\n relativePath: `${context.name}.docs.mdx`,\n content: docFile(context),\n },\n {\n relativePath: `${context.name}.main.runtime.ts`,\n content: mainRuntimeFile(context),\n },\n {\n relativePath: `${context.name}.preview.runtime.ts`,\n content: previewRuntimeFile(context),\n },\n {\n relativePath: `${context.name}.aspect.ts`,\n content: aspectFile(context),\n },\n {\n relativePath: `webpack/webpack-transformers.ts`,\n content: webpackConfigFile(),\n },\n {\n relativePath: `typescript/tsconfig.json`,\n content: typescriptConfigFile(),\n },\n {\n relativePath: `typescript/styles.d.ts`,\n content: globalStylesFile(),\n },\n {\n relativePath: `typescript/ts-transformer.ts`,\n content: tsTransformerFile(),\n },\n {\n relativePath: `jest/jest.config.js`,\n content: jestConfigFile(),\n },\n ];\n },\n config: {\n 'teambit.envs/env': {},\n 'teambit.envs/envs': {\n env: 'teambit.envs/env',\n },\n },\n};\n"]}
1
+ {"version":3,"names":["reactEnvTemplate","name","description","generateFiles","context","relativePath","content","indexFile","isMain","docFile","mainRuntimeFile","previewRuntimeFile","aspectFile","webpackConfigFile","typescriptConfigFile","globalStylesFile","tsTransformerFile","jestConfigFile","config","env"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { docFile } from './files/doc';\nimport { mainRuntimeFile } from './files/main.runtime';\nimport { previewRuntimeFile } from './files/preview.runtime';\nimport { aspectFile } from './files/aspect';\nimport { webpackConfigFile } from './files/webpack.config';\nimport { typescriptConfigFile } from './files/typescript/typescript.config';\nimport { globalStylesFile } from './files/typescript/styles';\nimport { tsTransformerFile } from './files/typescript/ts-transformer';\nimport { jestConfigFile } from './files/jest.config';\n\nexport const reactEnvTemplate: ComponentTemplate = {\n name: 'react-env',\n description: 'customize the base React env with your configs and tools',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(context),\n isMain: true,\n },\n {\n relativePath: `${context.name}.docs.mdx`,\n content: docFile(context),\n },\n {\n relativePath: `${context.name}.main.runtime.ts`,\n content: mainRuntimeFile(context),\n },\n {\n relativePath: `${context.name}.preview.runtime.ts`,\n content: previewRuntimeFile(context),\n },\n {\n relativePath: `${context.name}.aspect.ts`,\n content: aspectFile(context),\n },\n {\n relativePath: `webpack/webpack-transformers.ts`,\n content: webpackConfigFile(),\n },\n {\n relativePath: `typescript/tsconfig.json`,\n content: typescriptConfigFile(),\n },\n {\n relativePath: `typescript/styles.d.ts`,\n content: globalStylesFile(),\n },\n {\n relativePath: `typescript/ts-transformer.ts`,\n content: tsTransformerFile(),\n },\n {\n relativePath: `jest/jest.config.js`,\n content: jestConfigFile(),\n },\n ];\n },\n config: {\n 'teambit.envs/env': {},\n 'teambit.envs/envs': {\n env: 'teambit.envs/env',\n },\n },\n};\n"],"mappings":";;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,gBAAmC,GAAG;EACjDC,IAAI,EAAE,WAD2C;EAEjDC,WAAW,EAAE,0DAFoC;EAGjDC,aAAa,EAAGC,OAAD,IAA+B;IAC5C,OAAO,CACL;MACEC,YAAY,EAAE,UADhB;MAEEC,OAAO,EAAE,IAAAC,kBAAA,EAAUH,OAAV,CAFX;MAGEI,MAAM,EAAE;IAHV,CADK,EAML;MACEH,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,WADhC;MAEEK,OAAO,EAAE,IAAAG,cAAA,EAAQL,OAAR;IAFX,CANK,EAUL;MACEC,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,kBADhC;MAEEK,OAAO,EAAE,IAAAI,uBAAA,EAAgBN,OAAhB;IAFX,CAVK,EAcL;MACEC,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,qBADhC;MAEEK,OAAO,EAAE,IAAAK,6BAAA,EAAmBP,OAAnB;IAFX,CAdK,EAkBL;MACEC,YAAY,EAAG,GAAED,OAAO,CAACH,IAAK,YADhC;MAEEK,OAAO,EAAE,IAAAM,oBAAA,EAAWR,OAAX;IAFX,CAlBK,EAsBL;MACEC,YAAY,EAAG,iCADjB;MAEEC,OAAO,EAAE,IAAAO,4BAAA;IAFX,CAtBK,EA0BL;MACER,YAAY,EAAG,0BADjB;MAEEC,OAAO,EAAE,IAAAQ,kCAAA;IAFX,CA1BK,EA8BL;MACET,YAAY,EAAG,wBADjB;MAEEC,OAAO,EAAE,IAAAS,0BAAA;IAFX,CA9BK,EAkCL;MACEV,YAAY,EAAG,8BADjB;MAEEC,OAAO,EAAE,IAAAU,kCAAA;IAFX,CAlCK,EAsCL;MACEX,YAAY,EAAG,qBADjB;MAEEC,OAAO,EAAE,IAAAW,sBAAA;IAFX,CAtCK,CAAP;EA2CD,CA/CgD;EAgDjDC,MAAM,EAAE;IACN,oBAAoB,EADd;IAEN,qBAAqB;MACnBC,GAAG,EAAE;IADc;EAFf;AAhDyC,CAA5C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["component.ts"],"names":["componentFile","context","name","nameCamelCase","Name","relativePath","content"],"mappings":";;;;;;;AAEO,MAAMA,aAAa,GAAIC,OAAD,IAA+B;AAC1D,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,aAAa,EAAEC;AAAvB,MAAgCH,OAAtC;AACA,SAAO;AACLI,IAAAA,YAAY,EAAG,GAAEH,IAAK,MADjB;AAELI,IAAAA,OAAO,EAAG;AACd;AACA,kBAAkBF,IAAK;AACvB;AACA;AACA;AACA;AACA;AATS,GAAP;AAWD,CAbM","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const componentFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n return {\n relativePath: `${name}.tsx`,\n content: `import { useState } from 'react';\n\nexport function ${Name}() {\n const [count, setCount] = useState(0)\n const increment = () => setCount((c) => c + 1)\n return { count, increment }\n}\n`,\n };\n};\n"]}
1
+ {"version":3,"names":["componentFile","context","name","nameCamelCase","Name","relativePath","content"],"sources":["component.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const componentFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n return {\n relativePath: `${name}.tsx`,\n content: `import { useState } from 'react';\n\nexport function ${Name}() {\n const [count, setCount] = useState(0)\n const increment = () => setCount((c) => c + 1)\n return { count, increment }\n}\n`,\n };\n};\n"],"mappings":";;;;;;;AAEO,MAAMA,aAAa,GAAIC,OAAD,IAA+B;EAC1D,MAAM;IAAEC,IAAF;IAAQC,aAAa,EAAEC;EAAvB,IAAgCH,OAAtC;EACA,OAAO;IACLI,YAAY,EAAG,GAAEH,IAAK,MADjB;IAELI,OAAO,EAAG;AACd;AACA,kBAAkBF,IAAK;AACvB;AACA;AACA;AACA;AACA;EATS,CAAP;AAWD,CAbM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["composition.ts"],"names":["compositionFile","context","name","nameCamelCase","Name","relativePath","content"],"mappings":";;;;;;;AAEO,MAAMA,eAAe,GAAIC,OAAD,IAA+B;AAC5D,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,aAAa,EAAEC;AAAvB,MAAgCH,OAAtC;AAEA,SAAO;AACLI,IAAAA,YAAY,EAAG,GAAEH,IAAK,kBADjB;AAELI,IAAAA,OAAO,EAAG;AACd,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA,oBAAoBE,IAAK;AACzB,iCAAiCA,IAAK;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfS,GAAP;AAiBD,CApBM","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const compositionFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.composition.tsx`,\n content: `import React from 'react';\nimport { ${Name} } from './${name}';\n\nexport const Basic${Name} = () => {\n const { count, increment } = ${Name}();\n\n return (\n <>\n <h1>The count is {count}</h1>\n <button onClick={increment}>increment</button>\n </>\n );\n};\n`,\n };\n};\n"]}
1
+ {"version":3,"names":["compositionFile","context","name","nameCamelCase","Name","relativePath","content"],"sources":["composition.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const compositionFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.composition.tsx`,\n content: `import React from 'react';\nimport { ${Name} } from './${name}';\n\nexport const Basic${Name} = () => {\n const { count, increment } = ${Name}();\n\n return (\n <>\n <h1>The count is {count}</h1>\n <button onClick={increment}>increment</button>\n </>\n );\n};\n`,\n };\n};\n"],"mappings":";;;;;;;AAEO,MAAMA,eAAe,GAAIC,OAAD,IAA+B;EAC5D,MAAM;IAAEC,IAAF;IAAQC,aAAa,EAAEC;EAAvB,IAAgCH,OAAtC;EAEA,OAAO;IACLI,YAAY,EAAG,GAAEH,IAAK,kBADjB;IAELI,OAAO,EAAG;AACd,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA,oBAAoBE,IAAK;AACzB,iCAAiCA,IAAK;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAfS,CAAP;AAiBD,CApBM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["docs.ts"],"names":["docsFile","context","name","nameCamelCase","Name","relativePath","content"],"mappings":";;;;;;;AAEO,MAAMA,QAAQ,GAAIC,OAAD,IAA+B;AACrD,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,aAAa,EAAEC;AAAvB,MAAgCH,OAAtC;AAEA,SAAO;AACLI,IAAAA,YAAY,EAAG,GAAEH,IAAK,WADjB;AAELI,IAAAA,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAWE,IAAK,cAAaF,IAAK;AAClC;AACA,+BAA+BE,IAAK;AACpC;AACA;AACA;AACA;AACA;AAzBS,GAAP;AA2BD,CA9BM","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const docsFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.docs.mdx`,\n content: `---\ndescription: 'A React Hook that increments a count by 1 each time it is called.'\nlabels: ['hook', 'counter']\n---\n\nimport { ${Name} } from './${name}';\n\n## A React Hook to increment a count\n\nIncrements the state of \\`count\\` by 1 each time \\`increment\\` is called\n\n### Component usage\n\nIn this example clicking the button calls \\`increment\\` which increments the \\`count\\` by 1\n\n\\`\\`\\`js\nimport { ${Name} } from './${name}';\n\nconst { count, increment } = ${Name}();\n\n<h1>The count is {count}</h1>\n<button onClick={increment}>increment</button>\n\\`\\`\\`\n`,\n };\n};\n"]}
1
+ {"version":3,"names":["docsFile","context","name","nameCamelCase","Name","relativePath","content"],"sources":["docs.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const docsFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.docs.mdx`,\n content: `---\ndescription: 'A React Hook that increments a count by 1 each time it is called.'\nlabels: ['hook', 'counter']\n---\n\nimport { ${Name} } from './${name}';\n\n## A React Hook to increment a count\n\nIncrements the state of \\`count\\` by 1 each time \\`increment\\` is called\n\n### Component usage\n\nIn this example clicking the button calls \\`increment\\` which increments the \\`count\\` by 1\n\n\\`\\`\\`js\nimport { ${Name} } from './${name}';\n\nconst { count, increment } = ${Name}();\n\n<h1>The count is {count}</h1>\n<button onClick={increment}>increment</button>\n\\`\\`\\`\n`,\n };\n};\n"],"mappings":";;;;;;;AAEO,MAAMA,QAAQ,GAAIC,OAAD,IAA+B;EACrD,MAAM;IAAEC,IAAF;IAAQC,aAAa,EAAEC;EAAvB,IAAgCH,OAAtC;EAEA,OAAO;IACLI,YAAY,EAAG,GAAEH,IAAK,WADjB;IAELI,OAAO,EAAG;AACd;AACA;AACA;AACA;AACA,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAWE,IAAK,cAAaF,IAAK;AAClC;AACA,+BAA+BE,IAAK;AACpC;AACA;AACA;AACA;AACA;EAzBS,CAAP;AA2BD,CA9BM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index-file.ts"],"names":["indexFile","context","name","namePascalCase","Name","relativePath","content"],"mappings":";;;;;;;AAEO,MAAMA,SAAS,GAAIC,OAAD,IAA+B;AACtD,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,cAAc,EAAEC;AAAxB,MAAiCH,OAAvC;AAEA,SAAO;AACLI,IAAAA,YAAY,EAAE,UADT;AAELC,IAAAA,OAAO,EAAG,YAAWF,IAAK,cAAaF,IAAK;AAChD;AAHS,GAAP;AAKD,CARM","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const indexFile = (context: ComponentContext) => {\n const { name, namePascalCase: Name } = context;\n\n return {\n relativePath: 'index.ts',\n content: `export { ${Name} } from './${name}';\n`,\n };\n};\n"]}
1
+ {"version":3,"names":["indexFile","context","name","namePascalCase","Name","relativePath","content"],"sources":["index-file.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const indexFile = (context: ComponentContext) => {\n const { name, namePascalCase: Name } = context;\n\n return {\n relativePath: 'index.ts',\n content: `export { ${Name} } from './${name}';\n`,\n };\n};\n"],"mappings":";;;;;;;AAEO,MAAMA,SAAS,GAAIC,OAAD,IAA+B;EACtD,MAAM;IAAEC,IAAF;IAAQC,cAAc,EAAEC;EAAxB,IAAiCH,OAAvC;EAEA,OAAO;IACLI,YAAY,EAAE,UADT;IAELC,OAAO,EAAG,YAAWF,IAAK,cAAaF,IAAK;AAChD;EAHS,CAAP;AAKD,CARM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["test.ts"],"names":["testFile","context","name","nameCamelCase","Name","relativePath","content"],"mappings":";;;;;;;AAEO,MAAMA,QAAQ,GAAIC,OAAD,IAA+B;AACrD,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,aAAa,EAAEC;AAAvB,MAAgCH,OAAtC;AAEA,SAAO;AACLI,IAAAA,YAAY,EAAG,GAAEH,IAAK,WADjB;AAELI,IAAAA,OAAO,EAAG;AACd,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA;AACA,wCAAwCE,IAAK;AAC7C;AACA;AACA;AACA;AACA;AACA;AAZS,GAAP;AAcD,CAjBM","sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const testFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.spec.tsx`,\n content: `import { renderHook, act } from '@testing-library/react-hooks';\nimport { ${Name} } from './${name}';\n\nit('should increment counter', () => {\n const { result } = renderHook(() => ${Name}())\n act(() => {\n result.current.increment()\n })\n expect(result.current.count).toBe(1)\n})\n`,\n };\n};\n"]}
1
+ {"version":3,"names":["testFile","context","name","nameCamelCase","Name","relativePath","content"],"sources":["test.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport const testFile = (context: ComponentContext) => {\n const { name, nameCamelCase: Name } = context;\n\n return {\n relativePath: `${name}.spec.tsx`,\n content: `import { renderHook, act } from '@testing-library/react-hooks';\nimport { ${Name} } from './${name}';\n\nit('should increment counter', () => {\n const { result } = renderHook(() => ${Name}())\n act(() => {\n result.current.increment()\n })\n expect(result.current.count).toBe(1)\n})\n`,\n };\n};\n"],"mappings":";;;;;;;AAEO,MAAMA,QAAQ,GAAIC,OAAD,IAA+B;EACrD,MAAM;IAAEC,IAAF;IAAQC,aAAa,EAAEC;EAAvB,IAAgCH,OAAtC;EAEA,OAAO;IACLI,YAAY,EAAG,GAAEH,IAAK,WADjB;IAELI,OAAO,EAAG;AACd,WAAWF,IAAK,cAAaF,IAAK;AAClC;AACA;AACA,wCAAwCE,IAAK;AAC7C;AACA;AACA;AACA;AACA;AACA;EAZS,CAAP;AAcD,CAjBM"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactHook","name","description","generateFiles","context","config","env"],"mappings":";;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,SAA4B,GAAG;AAC1CC,EAAAA,IAAI,EAAE,YADoC;AAE1CC,EAAAA,WAAW,EAAE,wBAF6B;AAI1CC,EAAAA,aAAa,EAAGC,OAAD,IAA+B;AAC5C,WAAO,CAAC,4BAAUA,OAAV,CAAD,EAAqB,gCAAcA,OAAd,CAArB,EAA6C,oCAAgBA,OAAhB,CAA7C,EAAuE,sBAASA,OAAT,CAAvE,EAA0F,sBAASA,OAAT,CAA1F,CAAP;AACD,GANyC;AAO1CC,EAAAA,MAAM,EAAE;AACN,2BAAuB,EADjB;AAEN,yBAAqB;AACnBC,MAAAA,GAAG,EAAE;AADc;AAFf;AAPkC,CAArC","sourcesContent":["import { ComponentTemplate, ComponentContext } from '@teambit/generator';\nimport { componentFile } from './files/component';\nimport { compositionFile } from './files/composition';\nimport { docsFile } from './files/docs';\nimport { testFile } from './files/test';\nimport { indexFile } from './files/index-file';\n\nexport const reactHook: ComponentTemplate = {\n name: 'react-hook',\n description: 'a react hook component',\n\n generateFiles: (context: ComponentContext) => {\n return [indexFile(context), componentFile(context), compositionFile(context), docsFile(context), testFile(context)];\n },\n config: {\n 'teambit.react/react': {},\n 'teambit.envs/envs': {\n env: 'teambit.react/react',\n },\n },\n};\n"]}
1
+ {"version":3,"names":["reactHook","name","description","generateFiles","context","indexFile","componentFile","compositionFile","docsFile","testFile","config","env"],"sources":["index.ts"],"sourcesContent":["import { ComponentTemplate, ComponentContext } from '@teambit/generator';\nimport { componentFile } from './files/component';\nimport { compositionFile } from './files/composition';\nimport { docsFile } from './files/docs';\nimport { testFile } from './files/test';\nimport { indexFile } from './files/index-file';\n\nexport const reactHook: ComponentTemplate = {\n name: 'react-hook',\n description: 'a react hook component',\n\n generateFiles: (context: ComponentContext) => {\n return [indexFile(context), componentFile(context), compositionFile(context), docsFile(context), testFile(context)];\n },\n config: {\n 'teambit.react/react': {},\n 'teambit.envs/envs': {\n env: 'teambit.react/react',\n },\n },\n};\n"],"mappings":";;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,SAA4B,GAAG;EAC1CC,IAAI,EAAE,YADoC;EAE1CC,WAAW,EAAE,wBAF6B;EAI1CC,aAAa,EAAGC,OAAD,IAA+B;IAC5C,OAAO,CAAC,IAAAC,sBAAA,EAAUD,OAAV,CAAD,EAAqB,IAAAE,0BAAA,EAAcF,OAAd,CAArB,EAA6C,IAAAG,8BAAA,EAAgBH,OAAhB,CAA7C,EAAuE,IAAAI,gBAAA,EAASJ,OAAT,CAAvE,EAA0F,IAAAK,gBAAA,EAASL,OAAT,CAA1F,CAAP;EACD,CANyC;EAO1CM,MAAM,EAAE;IACN,uBAAuB,EADjB;IAEN,qBAAqB;MACnBC,GAAG,EAAE;IADc;EAFf;AAPkC,CAArC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceTemplate","name","description","generateFiles","context","fork"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,sBAAyC,GAAG;AACvDC,EAAAA,IAAI,EAAE,OADiD;AAEvDC,EAAAA,WAAW,EAAE,sCAF0C;AAGvDC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GALsD;AAMvDC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbK,KAAP;AAeD;AAtBsD,CAAlD","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceTemplate: WorkspaceTemplate = {\n name: 'react',\n description: 'React workspace with demo components',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n // {\n // id: 'teambit.react/templates/envs/my-react',\n // targetName: 'envs/my-react',\n // path: 'demo/envs/my-react',\n // },\n // { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n // { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n // { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n // {\n // id: 'teambit.react/templates/pages/welcome',\n // targetName: 'pages/welcome',\n // path: 'demo/pages/welcome',\n // },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceTemplate","name","description","generateFiles","context","generateCommonFiles","fork"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceTemplate: WorkspaceTemplate = {\n name: 'react',\n description: 'React workspace with demo components',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n // {\n // id: 'teambit.react/templates/envs/my-react',\n // targetName: 'envs/my-react',\n // path: 'demo/envs/my-react',\n // },\n // { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n // { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n // { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n // {\n // id: 'teambit.react/templates/pages/welcome',\n // targetName: 'pages/welcome',\n // path: 'demo/pages/welcome',\n // },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,sBAAyC,GAAG;EACvDC,IAAI,EAAE,OADiD;EAEvDC,WAAW,EAAE,sCAF0C;EAGvDC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CALsD;EAMvDE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IAbK,CAAP;EAeD;AAtBsD,CAAlD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceAnalyticsTemplate","name","description","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,+BAAkD,GAAG;AAChEC,EAAAA,IAAI,EAAE,iBAD0D;AAEhEC,EAAAA,WAAW,EAAE,8DAFmD;AAGhEC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GAL+D;AAMhEC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,sCADN;AAEEC,MAAAA,UAAU,EAAE,oBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AAAEF,MAAAA,EAAE,EAAE,sCAAN;AAA8CC,MAAAA,UAAU,EAAE,oBAA1D;AAAgFC,MAAAA,IAAI,EAAE;AAAtF,KANK,EAOL;AAAEF,MAAAA,EAAE,EAAE,qCAAN;AAA6CC,MAAAA,UAAU,EAAE,mBAAzD;AAA8EC,MAAAA,IAAI,EAAE;AAApF,KAPK,EAQL;AACEF,MAAAA,EAAE,EAAE,2CADN;AAEEC,MAAAA,UAAU,EAAE,yBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KARK,EAaL;AACEF,MAAAA,EAAE,EAAE,wCADN;AAEEC,MAAAA,UAAU,EAAE,sBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KAbK,CAAP;AAmBD;AA1B+D,CAA3D","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceAnalyticsTemplate: WorkspaceTemplate = {\n name: 'react-analytics',\n description: 'React workspace with components for an Analytics Application',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.analytics/examples/dashboard',\n targetName: 'examples/dashboard',\n path: 'examples/dashboard',\n },\n { id: 'teambit.analytics/examples/new-users', targetName: 'examples/new-users', path: 'examples/new-users' },\n { id: 'teambit.analytics/examples/revenues', targetName: 'examples/revenues', path: 'examples/revenues' },\n {\n id: 'teambit.analytics/examples/top-frameworks',\n targetName: 'examples/top-frameworks',\n path: 'examples/top-frameworks',\n },\n {\n id: 'teambit.analytics/examples/top-members',\n targetName: 'examples/top-members',\n path: 'examples/top-members',\n },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceAnalyticsTemplate","name","description","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceAnalyticsTemplate: WorkspaceTemplate = {\n name: 'react-analytics',\n description: 'React workspace with components for an Analytics Application',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.analytics/examples/dashboard',\n targetName: 'examples/dashboard',\n path: 'examples/dashboard',\n },\n { id: 'teambit.analytics/examples/new-users', targetName: 'examples/new-users', path: 'examples/new-users' },\n { id: 'teambit.analytics/examples/revenues', targetName: 'examples/revenues', path: 'examples/revenues' },\n {\n id: 'teambit.analytics/examples/top-frameworks',\n targetName: 'examples/top-frameworks',\n path: 'examples/top-frameworks',\n },\n {\n id: 'teambit.analytics/examples/top-members',\n targetName: 'examples/top-members',\n path: 'examples/top-members',\n },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,+BAAkD,GAAG;EAChEC,IAAI,EAAE,iBAD0D;EAEhEC,WAAW,EAAE,8DAFmD;EAGhEC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CAL+D;EAMhEE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACEC,EAAE,EAAE,sCADN;MAEEC,UAAU,EAAE,oBAFd;MAGEC,IAAI,EAAE;IAHR,CADK,EAML;MAAEF,EAAE,EAAE,sCAAN;MAA8CC,UAAU,EAAE,oBAA1D;MAAgFC,IAAI,EAAE;IAAtF,CANK,EAOL;MAAEF,EAAE,EAAE,qCAAN;MAA6CC,UAAU,EAAE,mBAAzD;MAA8EC,IAAI,EAAE;IAApF,CAPK,EAQL;MACEF,EAAE,EAAE,2CADN;MAEEC,UAAU,EAAE,yBAFd;MAGEC,IAAI,EAAE;IAHR,CARK,EAaL;MACEF,EAAE,EAAE,wCADN;MAEEC,UAAU,EAAE,sBAFd;MAGEC,IAAI,EAAE;IAHR,CAbK,CAAP;EAmBD;AA1B+D,CAA3D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceAppTemplate","name","description","hidden","generateFiles","context","fork","id","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,yBAA4C,GAAG;AAC1DC,EAAAA,IAAI,EAAE,WADoD;AAE1DC,EAAAA,WAAW,EAAE,0CAF6C;AAG1DC,EAAAA,MAAM,EAAE,IAHkD;AAI1DC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GANyD;AAO1DC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AAAEC,MAAAA,EAAE,EAAE,qCAAN;AAA6CC,MAAAA,IAAI,EAAE;AAAnD,KADK,EAEL;AAAED,MAAAA,EAAE,EAAE,uCAAN;AAA+CC,MAAAA,IAAI,EAAE;AAArD,KAFK,EAGL;AAAED,MAAAA,EAAE,EAAE,sCAAN;AAA8CC,MAAAA,IAAI,EAAE;AAApD,KAHK,EAIL;AAAED,MAAAA,EAAE,EAAE,uCAAN;AAA+CC,MAAAA,IAAI,EAAE;AAArD,KAJK,EAKL;AAAED,MAAAA,EAAE,EAAE,oCAAN;AAA4CC,MAAAA,IAAI,EAAE;AAAlD,KALK,CAAP;AAOD;AAfyD,CAArD","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceAppTemplate: WorkspaceTemplate = {\n name: 'react-app',\n description: 'EXPERIMENTAL. react workspace for an app',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n { id: 'teambit.react/templates/apps/my-app', path: 'apps/my-app' },\n { id: 'teambit.react/templates/envs/my-react', path: 'envs/my-react' },\n { id: 'teambit.react/templates/themes/theme', path: 'themes/theme' },\n { id: 'teambit.react/templates/styles/colors', path: 'styles/colors' },\n { id: 'teambit.react/templates/ui/heading', path: 'ui/heading' },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceAppTemplate","name","description","hidden","generateFiles","context","generateCommonFiles","fork","id","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceAppTemplate: WorkspaceTemplate = {\n name: 'react-app',\n description: 'EXPERIMENTAL. react workspace for an app',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n { id: 'teambit.react/templates/apps/my-app', path: 'apps/my-app' },\n { id: 'teambit.react/templates/envs/my-react', path: 'envs/my-react' },\n { id: 'teambit.react/templates/themes/theme', path: 'themes/theme' },\n { id: 'teambit.react/templates/styles/colors', path: 'styles/colors' },\n { id: 'teambit.react/templates/ui/heading', path: 'ui/heading' },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,yBAA4C,GAAG;EAC1DC,IAAI,EAAE,WADoD;EAE1DC,WAAW,EAAE,0CAF6C;EAG1DC,MAAM,EAAE,IAHkD;EAI1DC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CANyD;EAO1DE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MAAEC,EAAE,EAAE,qCAAN;MAA6CC,IAAI,EAAE;IAAnD,CADK,EAEL;MAAED,EAAE,EAAE,uCAAN;MAA+CC,IAAI,EAAE;IAArD,CAFK,EAGL;MAAED,EAAE,EAAE,sCAAN;MAA8CC,IAAI,EAAE;IAApD,CAHK,EAIL;MAAED,EAAE,EAAE,uCAAN;MAA+CC,IAAI,EAAE;IAArD,CAJK,EAKL;MAAED,EAAE,EAAE,oCAAN;MAA4CC,IAAI,EAAE;IAAlD,CALK,CAAP;EAOD;AAfyD,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceDataFetchingTemplate","name","description","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,kCAAqD,GAAG;AACnEC,EAAAA,IAAI,EAAE,qBAD6D;AAEnEC,EAAAA,WAAW,EAAE,uDAFsD;AAGnEC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GALkE;AAMnEC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,gDADN;AAEEC,MAAAA,UAAU,EAAE,kBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AACEF,MAAAA,EAAE,EAAE,kDADN;AAEEC,MAAAA,UAAU,EAAE,oBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KANK,EAWL;AAAEF,MAAAA,EAAE,EAAE,uCAAN;AAA+CC,MAAAA,UAAU,EAAE,SAA3D;AAAsEC,MAAAA,IAAI,EAAE;AAA5E,KAXK,EAYL;AACEF,MAAAA,EAAE,EAAE,4CADN;AAEEC,MAAAA,UAAU,EAAE,cAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KAZK,EAiBL;AACEF,MAAAA,EAAE,EAAE,2CADN;AAEEC,MAAAA,UAAU,EAAE,aAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KAjBK,CAAP;AAuBD;AA9BkE,CAA9D","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceDataFetchingTemplate: WorkspaceTemplate = {\n name: 'react-data-fetching',\n description: 'React workspace with components to show data fetching',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'learn-bit-react.data-fetching/pages/books-page',\n targetName: 'pages/books-page',\n path: 'pages/books-page',\n },\n {\n id: 'learn-bit-react.data-fetching/ui/hooks/use-books',\n targetName: 'ui/hooks/use-books',\n path: 'ui/hooks/use-books',\n },\n { id: 'learn-bit-react.data-fetching/ui/book', targetName: 'ui/book', path: 'ui/book' },\n {\n id: 'learn-bit-react.data-fetching/ui/book-list',\n targetName: 'ui/book-list',\n path: 'ui/book-list',\n },\n {\n id: 'learn-bit-react.data-fetching/models/book',\n targetName: 'models/book',\n path: 'models/book',\n },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceDataFetchingTemplate","name","description","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceDataFetchingTemplate: WorkspaceTemplate = {\n name: 'react-data-fetching',\n description: 'React workspace with components to show data fetching',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'learn-bit-react.data-fetching/pages/books-page',\n targetName: 'pages/books-page',\n path: 'pages/books-page',\n },\n {\n id: 'learn-bit-react.data-fetching/ui/hooks/use-books',\n targetName: 'ui/hooks/use-books',\n path: 'ui/hooks/use-books',\n },\n { id: 'learn-bit-react.data-fetching/ui/book', targetName: 'ui/book', path: 'ui/book' },\n {\n id: 'learn-bit-react.data-fetching/ui/book-list',\n targetName: 'ui/book-list',\n path: 'ui/book-list',\n },\n {\n id: 'learn-bit-react.data-fetching/models/book',\n targetName: 'models/book',\n path: 'models/book',\n },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,kCAAqD,GAAG;EACnEC,IAAI,EAAE,qBAD6D;EAEnEC,WAAW,EAAE,uDAFsD;EAGnEC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CALkE;EAMnEE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACEC,EAAE,EAAE,gDADN;MAEEC,UAAU,EAAE,kBAFd;MAGEC,IAAI,EAAE;IAHR,CADK,EAML;MACEF,EAAE,EAAE,kDADN;MAEEC,UAAU,EAAE,oBAFd;MAGEC,IAAI,EAAE;IAHR,CANK,EAWL;MAAEF,EAAE,EAAE,uCAAN;MAA+CC,UAAU,EAAE,SAA3D;MAAsEC,IAAI,EAAE;IAA5E,CAXK,EAYL;MACEF,EAAE,EAAE,4CADN;MAEEC,UAAU,EAAE,cAFd;MAGEC,IAAI,EAAE;IAHR,CAZK,EAiBL;MACEF,EAAE,EAAE,2CADN;MAEEC,UAAU,EAAE,aAFd;MAGEC,IAAI,EAAE;IAHR,CAjBK,CAAP;EAuBD;AA9BkE,CAA9D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["deprecatedReactWorkspaceTemplate","name","description","hidden","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,gCAAmD,GAAG;AACjEC,EAAAA,IAAI,EAAE,iBAD2D;AAEjEC,EAAAA,WAAW,EAAE,sCAFoD;AAGjEC,EAAAA,MAAM,EAAE,IAHyD;AAIjEC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GANgE;AAOjEC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,uCADN;AAEEC,MAAAA,UAAU,EAAE,eAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AAAEF,MAAAA,EAAE,EAAE,iCAAN;AAAyCC,MAAAA,UAAU,EAAE,SAArD;AAAgEC,MAAAA,IAAI,EAAE;AAAtE,KANK,EAOL;AAAEF,MAAAA,EAAE,EAAE,oCAAN;AAA4CC,MAAAA,UAAU,EAAE,YAAxD;AAAsEC,MAAAA,IAAI,EAAE;AAA5E,KAPK,EAQL;AAAEF,MAAAA,EAAE,EAAE,iCAAN;AAAyCC,MAAAA,UAAU,EAAE,SAArD;AAAgEC,MAAAA,IAAI,EAAE;AAAtE,KARK,EASL;AACEF,MAAAA,EAAE,EAAE,uCADN;AAEEC,MAAAA,UAAU,EAAE,eAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KATK,CAAP;AAeD;AAvBgE,CAA5D","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const deprecatedReactWorkspaceTemplate: WorkspaceTemplate = {\n name: 'react-workspace',\n description: 'React workspace with demo components',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.react/templates/envs/my-react',\n targetName: 'envs/my-react',\n path: 'demo/envs/my-react',\n },\n { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n {\n id: 'teambit.react/templates/pages/welcome',\n targetName: 'pages/welcome',\n path: 'demo/pages/welcome',\n },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["deprecatedReactWorkspaceTemplate","name","description","hidden","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const deprecatedReactWorkspaceTemplate: WorkspaceTemplate = {\n name: 'react-workspace',\n description: 'React workspace with demo components',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.react/templates/envs/my-react',\n targetName: 'envs/my-react',\n path: 'demo/envs/my-react',\n },\n { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n {\n id: 'teambit.react/templates/pages/welcome',\n targetName: 'pages/welcome',\n path: 'demo/pages/welcome',\n },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,gCAAmD,GAAG;EACjEC,IAAI,EAAE,iBAD2D;EAEjEC,WAAW,EAAE,sCAFoD;EAGjEC,MAAM,EAAE,IAHyD;EAIjEC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CANgE;EAOjEE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACEC,EAAE,EAAE,uCADN;MAEEC,UAAU,EAAE,eAFd;MAGEC,IAAI,EAAE;IAHR,CADK,EAML;MAAEF,EAAE,EAAE,iCAAN;MAAyCC,UAAU,EAAE,SAArD;MAAgEC,IAAI,EAAE;IAAtE,CANK,EAOL;MAAEF,EAAE,EAAE,oCAAN;MAA4CC,UAAU,EAAE,YAAxD;MAAsEC,IAAI,EAAE;IAA5E,CAPK,EAQL;MAAEF,EAAE,EAAE,iCAAN;MAAyCC,UAAU,EAAE,SAArD;MAAgEC,IAAI,EAAE;IAAtE,CARK,EASL;MACEF,EAAE,EAAE,uCADN;MAEEC,UAAU,EAAE,eAFd;MAGEC,IAAI,EAAE;IAHR,CATK,CAAP;EAeD;AAvBgE,CAA5D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceDesignSystemTemplate","name","description","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,kCAAqD,GAAG;AACnEC,EAAAA,IAAI,EAAE,qBAD6D;AAEnEC,EAAAA,WAAW,EAAE,qDAFsD;AAGnEC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GALkE;AAMnEC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,oCADN;AAEEC,MAAAA,UAAU,EAAE,gBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AAAEF,MAAAA,EAAE,EAAE,8BAAN;AAAsCC,MAAAA,UAAU,EAAE,eAAlD;AAAmEC,MAAAA,IAAI,EAAE;AAAzE,KANK,EAOL;AAAEF,MAAAA,EAAE,EAAE,2BAAN;AAAmCC,MAAAA,UAAU,EAAE,YAA/C;AAA6DC,MAAAA,IAAI,EAAE;AAAnE,KAPK,EAQL;AAAEF,MAAAA,EAAE,EAAE,qCAAN;AAA6CC,MAAAA,UAAU,EAAE,sBAAzD;AAAiFC,MAAAA,IAAI,EAAE;AAAvF,KARK,EASL;AACEF,MAAAA,EAAE,EAAE,kCADN;AAEEC,MAAAA,UAAU,EAAE,mBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KATK,EAcL;AACEF,MAAAA,EAAE,EAAE,mCADN;AAEEC,MAAAA,UAAU,EAAE,oBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KAdK,EAmBL;AACEF,MAAAA,EAAE,EAAE,kCADN;AAEEC,MAAAA,UAAU,EAAE,mBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KAnBK,CAAP;AAyBD;AAhCkE,CAA9D","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceDesignSystemTemplate: WorkspaceTemplate = {\n name: 'react-design-system',\n description: 'React workspace with components for a Design System',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.design/examples/sample-app',\n targetName: 'app/sample-app',\n path: 'app/sample-app',\n },\n { id: 'teambit.design/ui/cards/card', targetName: 'ui/cards/card', path: 'ui/cards/card' },\n { id: 'teambit.design/ui/heading', targetName: 'ui/heading', path: 'ui/heading' },\n { id: 'teambit.design/themes/theme-toggler', targetName: 'themes/theme-toggler', path: 'themes/theme-toggler' },\n {\n id: 'teambit.design/themes/base-theme',\n targetName: 'themes/base-theme',\n path: 'themes/base-theme',\n },\n {\n id: 'teambit.design/themes/light-theme',\n targetName: 'themes/light-theme',\n path: 'themes/light-theme',\n },\n {\n id: 'teambit.design/themes/dark-theme',\n targetName: 'themes/dark-theme',\n path: 'themes/dark-theme',\n },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceDesignSystemTemplate","name","description","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceDesignSystemTemplate: WorkspaceTemplate = {\n name: 'react-design-system',\n description: 'React workspace with components for a Design System',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.design/examples/sample-app',\n targetName: 'app/sample-app',\n path: 'app/sample-app',\n },\n { id: 'teambit.design/ui/cards/card', targetName: 'ui/cards/card', path: 'ui/cards/card' },\n { id: 'teambit.design/ui/heading', targetName: 'ui/heading', path: 'ui/heading' },\n { id: 'teambit.design/themes/theme-toggler', targetName: 'themes/theme-toggler', path: 'themes/theme-toggler' },\n {\n id: 'teambit.design/themes/base-theme',\n targetName: 'themes/base-theme',\n path: 'themes/base-theme',\n },\n {\n id: 'teambit.design/themes/light-theme',\n targetName: 'themes/light-theme',\n path: 'themes/light-theme',\n },\n {\n id: 'teambit.design/themes/dark-theme',\n targetName: 'themes/dark-theme',\n path: 'themes/dark-theme',\n },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,kCAAqD,GAAG;EACnEC,IAAI,EAAE,qBAD6D;EAEnEC,WAAW,EAAE,qDAFsD;EAGnEC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CALkE;EAMnEE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACEC,EAAE,EAAE,oCADN;MAEEC,UAAU,EAAE,gBAFd;MAGEC,IAAI,EAAE;IAHR,CADK,EAML;MAAEF,EAAE,EAAE,8BAAN;MAAsCC,UAAU,EAAE,eAAlD;MAAmEC,IAAI,EAAE;IAAzE,CANK,EAOL;MAAEF,EAAE,EAAE,2BAAN;MAAmCC,UAAU,EAAE,YAA/C;MAA6DC,IAAI,EAAE;IAAnE,CAPK,EAQL;MAAEF,EAAE,EAAE,qCAAN;MAA6CC,UAAU,EAAE,sBAAzD;MAAiFC,IAAI,EAAE;IAAvF,CARK,EASL;MACEF,EAAE,EAAE,kCADN;MAEEC,UAAU,EAAE,mBAFd;MAGEC,IAAI,EAAE;IAHR,CATK,EAcL;MACEF,EAAE,EAAE,mCADN;MAEEC,UAAU,EAAE,oBAFd;MAGEC,IAAI,EAAE;IAHR,CAdK,EAmBL;MACEF,EAAE,EAAE,kCADN;MAEEC,UAAU,EAAE,mBAFd;MAGEC,IAAI,EAAE;IAHR,CAnBK,CAAP;EAyBD;AAhCkE,CAA9D"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceLibTemplate","name","description","hidden","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,yBAA4C,GAAG;AAC1DC,EAAAA,IAAI,EAAE,WADoD;AAE1DC,EAAAA,WAAW,EAAE,uDAF6C;AAG1DC,EAAAA,MAAM,EAAE,IAHkD;AAI1DC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GANyD;AAO1DC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AAAEC,MAAAA,EAAE,EAAE,uCAAN;AAA+CC,MAAAA,UAAU,EAAE,eAA3D;AAA4EC,MAAAA,IAAI,EAAE;AAAlF,KADK,EAEL;AAAEF,MAAAA,EAAE,EAAE,iCAAN;AAAyCC,MAAAA,UAAU,EAAE,SAArD;AAAgEC,MAAAA,IAAI,EAAE;AAAtE,KAFK,EAGL;AAAEF,MAAAA,EAAE,EAAE,oCAAN;AAA4CC,MAAAA,UAAU,EAAE,YAAxD;AAAsEC,MAAAA,IAAI,EAAE;AAA5E,KAHK,EAIL;AAAEF,MAAAA,EAAE,EAAE,iCAAN;AAAyCC,MAAAA,UAAU,EAAE,SAArD;AAAgEC,MAAAA,IAAI,EAAE;AAAtE,KAJK,EAKL;AAAEF,MAAAA,EAAE,EAAE,uCAAN;AAA+CC,MAAAA,UAAU,EAAE,eAA3D;AAA4EC,MAAAA,IAAI,EAAE;AAAlF,KALK,EAML;AAAEF,MAAAA,EAAE,EAAE,sCAAN;AAA8CC,MAAAA,UAAU,EAAE,cAA1D;AAA0EC,MAAAA,IAAI,EAAE;AAAhF,KANK,CAAP;AAQD;AAhByD,CAArD","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceLibTemplate: WorkspaceTemplate = {\n name: 'react-lib',\n description: 'EXPERIMENTAL. react workspace for a component library',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n { id: 'teambit.react/templates/envs/my-react', targetName: 'envs/my-react', path: 'demo/envs/my-react' },\n { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n { id: 'teambit.react/templates/styles/colors', targetName: 'styles/colors', path: 'demo/styles/colors' },\n { id: 'teambit.react/templates/themes/theme', targetName: 'themes/theme', path: 'demo/themes/theme' },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceLibTemplate","name","description","hidden","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceLibTemplate: WorkspaceTemplate = {\n name: 'react-lib',\n description: 'EXPERIMENTAL. react workspace for a component library',\n hidden: true,\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n { id: 'teambit.react/templates/envs/my-react', targetName: 'envs/my-react', path: 'demo/envs/my-react' },\n { id: 'teambit.react/templates/ui/text', targetName: 'ui/text', path: 'demo/ui/text' },\n { id: 'teambit.react/templates/ui/heading', targetName: 'ui/heading', path: 'demo/ui/heading' },\n { id: 'teambit.react/templates/ui/card', targetName: 'ui/card', path: 'demo/ui/card' },\n { id: 'teambit.react/templates/styles/colors', targetName: 'styles/colors', path: 'demo/styles/colors' },\n { id: 'teambit.react/templates/themes/theme', targetName: 'themes/theme', path: 'demo/themes/theme' },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,yBAA4C,GAAG;EAC1DC,IAAI,EAAE,WADoD;EAE1DC,WAAW,EAAE,uDAF6C;EAG1DC,MAAM,EAAE,IAHkD;EAI1DC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CANyD;EAO1DE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MAAEC,EAAE,EAAE,uCAAN;MAA+CC,UAAU,EAAE,eAA3D;MAA4EC,IAAI,EAAE;IAAlF,CADK,EAEL;MAAEF,EAAE,EAAE,iCAAN;MAAyCC,UAAU,EAAE,SAArD;MAAgEC,IAAI,EAAE;IAAtE,CAFK,EAGL;MAAEF,EAAE,EAAE,oCAAN;MAA4CC,UAAU,EAAE,YAAxD;MAAsEC,IAAI,EAAE;IAA5E,CAHK,EAIL;MAAEF,EAAE,EAAE,iCAAN;MAAyCC,UAAU,EAAE,SAArD;MAAgEC,IAAI,EAAE;IAAtE,CAJK,EAKL;MAAEF,EAAE,EAAE,uCAAN;MAA+CC,UAAU,EAAE,eAA3D;MAA4EC,IAAI,EAAE;IAAlF,CALK,EAML;MAAEF,EAAE,EAAE,sCAAN;MAA8CC,UAAU,EAAE,cAA1D;MAA0EC,IAAI,EAAE;IAAhF,CANK,CAAP;EAQD;AAhByD,CAArD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["reactWorkspaceWikiTemplate","name","description","generateFiles","context","fork","id","targetName","path"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,0BAA6C,GAAG;AAC3DC,EAAAA,IAAI,EAAE,YADqD;AAE3DC,EAAAA,WAAW,EAAE,4CAF8C;AAG3DC,EAAAA,aAAa,EAAE,MAAOC,OAAP,IAAqC;AAClD,WAAO,sCAAoBA,OAApB,CAAP;AACD,GAL0D;AAM3DC,EAAAA,IAAI,EAAE,MAAM;AACV,WAAO,CACL;AACEC,MAAAA,EAAE,EAAE,wBADN;AAEEC,MAAAA,UAAU,EAAE,WAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KADK,EAML;AAAEF,MAAAA,EAAE,EAAE,4BAAN;AAAoCC,MAAAA,UAAU,EAAE,eAAhD;AAAiEC,MAAAA,IAAI,EAAE;AAAvE,KANK,EAOL;AAAEF,MAAAA,EAAE,EAAE,4BAAN;AAAoCC,MAAAA,UAAU,EAAE,eAAhD;AAAiEC,MAAAA,IAAI,EAAE;AAAvE,KAPK,EAQL;AAAEF,MAAAA,EAAE,EAAE,4BAAN;AAAoCC,MAAAA,UAAU,EAAE,eAAhD;AAAiEC,MAAAA,IAAI,EAAE;AAAvE,KARK,EASL;AACEF,MAAAA,EAAE,EAAE,8BADN;AAEEC,MAAAA,UAAU,EAAE,iBAFd;AAGEC,MAAAA,IAAI,EAAE;AAHR,KATK,CAAP;AAeD;AAtB0D,CAAtD","sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceWikiTemplate: WorkspaceTemplate = {\n name: 'react-wiki',\n description: 'React workspace with components for a Wiki',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.wiki/apps/wiki',\n targetName: 'apps/wiki',\n path: 'apps/wiki',\n },\n { id: 'teambit.wiki/sections/wiki', targetName: 'sections/wiki', path: 'sections/wiki' },\n { id: 'teambit.wiki/blocks/header', targetName: 'blocks/header', path: 'blocks/header' },\n { id: 'teambit.wiki/blocks/footer', targetName: 'blocks/footer', path: 'blocks/footer' },\n {\n id: 'teambit.wiki/content/welcome',\n targetName: 'content/welcome',\n path: 'content/welcome',\n },\n ];\n },\n};\n"]}
1
+ {"version":3,"names":["reactWorkspaceWikiTemplate","name","description","generateFiles","context","generateCommonFiles","fork","id","targetName","path"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceContext, WorkspaceTemplate } from '@teambit/generator';\nimport { generateFiles as generateCommonFiles } from '../workspace-common';\n\nexport const reactWorkspaceWikiTemplate: WorkspaceTemplate = {\n name: 'react-wiki',\n description: 'React workspace with components for a Wiki',\n generateFiles: async (context: WorkspaceContext) => {\n return generateCommonFiles(context);\n },\n fork: () => {\n return [\n {\n id: 'teambit.wiki/apps/wiki',\n targetName: 'apps/wiki',\n path: 'apps/wiki',\n },\n { id: 'teambit.wiki/sections/wiki', targetName: 'sections/wiki', path: 'sections/wiki' },\n { id: 'teambit.wiki/blocks/header', targetName: 'blocks/header', path: 'blocks/header' },\n { id: 'teambit.wiki/blocks/footer', targetName: 'blocks/footer', path: 'blocks/footer' },\n {\n id: 'teambit.wiki/content/welcome',\n targetName: 'content/welcome',\n path: 'content/welcome',\n },\n ];\n },\n};\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,0BAA6C,GAAG;EAC3DC,IAAI,EAAE,YADqD;EAE3DC,WAAW,EAAE,4CAF8C;EAG3DC,aAAa,EAAE,MAAOC,OAAP,IAAqC;IAClD,OAAO,IAAAC,gCAAA,EAAoBD,OAApB,CAAP;EACD,CAL0D;EAM3DE,IAAI,EAAE,MAAM;IACV,OAAO,CACL;MACEC,EAAE,EAAE,wBADN;MAEEC,UAAU,EAAE,WAFd;MAGEC,IAAI,EAAE;IAHR,CADK,EAML;MAAEF,EAAE,EAAE,4BAAN;MAAoCC,UAAU,EAAE,eAAhD;MAAiEC,IAAI,EAAE;IAAvE,CANK,EAOL;MAAEF,EAAE,EAAE,4BAAN;MAAoCC,UAAU,EAAE,eAAhD;MAAiEC,IAAI,EAAE;IAAvE,CAPK,EAQL;MAAEF,EAAE,EAAE,4BAAN;MAAoCC,UAAU,EAAE,eAAhD;MAAiEC,IAAI,EAAE;IAAvE,CARK,EASL;MACEF,EAAE,EAAE,8BADN;MAEEC,UAAU,EAAE,iBAFd;MAGEC,IAAI,EAAE;IAHR,CATK,CAAP;EAeD;AAtB0D,CAAtD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["eslint-config.ts"],"names":["eslintConfig"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAI;AAC7B;AACA;AACA;AACA;AACA,EALO","sourcesContent":["export const eslintConfig = `module.exports = {\n extends: ['@teambit/eslint-config-bit-react'],\n parserOptions: {\n project: './tsconfig.json'\n },\n}`;\n"]}
1
+ {"version":3,"names":["eslintConfig"],"sources":["eslint-config.ts"],"sourcesContent":["export const eslintConfig = `module.exports = {\n extends: ['@teambit/eslint-config-bit-react'],\n parserOptions: {\n project: './tsconfig.json'\n },\n}`;\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAI;AAC7B;AACA;AACA;AACA;AACA,EALO"}
@@ -1 +1 @@
1
- {"version":3,"sources":["git-ignore.ts"],"names":["gitIgnore"],"mappings":";;;;;;;AAAO,SAASA,SAAT,GAAqB;AAC1B,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA9GE;AA+GD","sourcesContent":["export function gitIgnore() {\n return `# Bit\n.bit\npublic\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n\n# Diagnostic reports (https://nodejs.org/api/report.html)\nreport.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n*.lcov\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# TypeScript v1 declaration files\ntypings/\n\n# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Microbundle cache\n.rpt2_cache/\n.rts2_cache_cjs/\n.rts2_cache_es/\n.rts2_cache_umd/\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n.env.test\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n\n# Next.js build output\n.next\n\n# Nuxt.js build / generate output\n.nuxt\ndist\n\n# Gatsby files\n.cache/\n\n# vuepress build output\n.vuepress/dist\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# TernJS port file\n.tern-port\n\n.history\n\n.DS_Store\n\n`;\n}\n"]}
1
+ {"version":3,"names":["gitIgnore"],"sources":["git-ignore.ts"],"sourcesContent":["export function gitIgnore() {\n return `# Bit\n.bit\npublic\n\n# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n\n# Diagnostic reports (https://nodejs.org/api/report.html)\nreport.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n*.lcov\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# TypeScript v1 declaration files\ntypings/\n\n# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Microbundle cache\n.rpt2_cache/\n.rts2_cache_cjs/\n.rts2_cache_es/\n.rts2_cache_umd/\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variables file\n.env\n.env.test\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n\n# Next.js build output\n.next\n\n# Nuxt.js build / generate output\n.nuxt\ndist\n\n# Gatsby files\n.cache/\n\n# vuepress build output\n.vuepress/dist\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# TernJS port file\n.tern-port\n\n.history\n\n.DS_Store\n\n`;\n}\n"],"mappings":";;;;;;;AAAO,SAASA,SAAT,GAAqB;EAC1B,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA9GE;AA+GD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["launch-json.ts"],"names":["launchJson","defaultScope","scopedRegistry","split"],"mappings":";;;;;;;;;AAEO,SAASA,UAAT,CAAoB;AAAEC,EAAAA;AAAF,CAApB,EAAwD;AAC7D,QAAMC,cAAc,GAAGD,YAAY,GAAI,IAAGA,YAAY,CAACE,KAAb,CAAmB,GAAnB,EAAwB,CAAxB,CAA2B,EAAlC,GAAsC,SAAzE;AACA,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4CD,cAAe;AAC3D;AACA;AACA,4CAA4CA,cAAe;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAxBE;AAyBD","sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\n\nexport function launchJson({ defaultScope }: WorkspaceContext) {\n const scopedRegistry = defaultScope ? `@${defaultScope.split('.')[0]}` : '@my-org';\n return `{\n // Use IntelliSense to learn about possible attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n \"version\": \"0.2.0\",\n \"configurations\": [\n {\n \"type\": \"node\",\n \"request\": \"launch\",\n \"name\": \"test\",\n \"program\": \"\\${workspaceFolder}/node_modules/@teambit/bit/dist/app.js\",\n \"args\": [\"test\"],\n \"resolveSourceMapLocations\": [\n \"\\${workspaceFolder}/node_modules/${scopedRegistry}/**/*.js\"\n ],\n \"outFiles\": [\n \"\\${workspaceFolder}/node_modules/${scopedRegistry}/**/*.js\"\n ],\n \"console\": \"integratedTerminal\",\n \"sourceMaps\": true,\n \"internalConsoleOptions\": \"neverOpen\",\n \"cwd\": \"\\${workspaceFolder}\"\n }\n ]\n}`;\n}\n"]}
1
+ {"version":3,"names":["launchJson","defaultScope","scopedRegistry","split"],"sources":["launch-json.ts"],"sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\n\nexport function launchJson({ defaultScope }: WorkspaceContext) {\n const scopedRegistry = defaultScope ? `@${defaultScope.split('.')[0]}` : '@my-org';\n return `{\n // Use IntelliSense to learn about possible attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n \"version\": \"0.2.0\",\n \"configurations\": [\n {\n \"type\": \"node\",\n \"request\": \"launch\",\n \"name\": \"test\",\n \"program\": \"\\${workspaceFolder}/node_modules/@teambit/bit/dist/app.js\",\n \"args\": [\"test\"],\n \"resolveSourceMapLocations\": [\n \"\\${workspaceFolder}/node_modules/${scopedRegistry}/**/*.js\"\n ],\n \"outFiles\": [\n \"\\${workspaceFolder}/node_modules/${scopedRegistry}/**/*.js\"\n ],\n \"console\": \"integratedTerminal\",\n \"sourceMaps\": true,\n \"internalConsoleOptions\": \"neverOpen\",\n \"cwd\": \"\\${workspaceFolder}\"\n }\n ]\n}`;\n}\n"],"mappings":";;;;;;;;;AAEO,SAASA,UAAT,CAAoB;EAAEC;AAAF,CAApB,EAAwD;EAC7D,MAAMC,cAAc,GAAGD,YAAY,GAAI,IAAGA,YAAY,CAACE,KAAb,CAAmB,GAAnB,EAAwB,CAAxB,CAA2B,EAAlC,GAAsC,SAAzE;EACA,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4CD,cAAe;AAC3D;AACA;AACA,4CAA4CA,cAAe;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAxBE;AAyBD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["prettier-config.ts"],"names":["prettierConfig"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAI;AAC/B;AACA;AACA;AACA,CAJO","sourcesContent":["export const prettierConfig = `const baseConfig = require(\"@teambit/react/prettier/prettier.config\");\nmodule.exports = {\n ...baseConfig,\n};\n`;\n"]}
1
+ {"version":3,"names":["prettierConfig"],"sources":["prettier-config.ts"],"sourcesContent":["export const prettierConfig = `const baseConfig = require(\"@teambit/react/prettier/prettier.config\");\nmodule.exports = {\n ...baseConfig,\n};\n`;\n"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAI;AAC/B;AACA;AACA;AACA,CAJO"}
@@ -1 +1 @@
1
- {"version":3,"sources":["readme-file.ts"],"names":["readme"],"mappings":";;;;;;;AAAO,SAASA,MAAT,GAAkB;AACvB,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAjCE;AAkCD","sourcesContent":["export function readme() {\n return `# Welcome to your Bit Workspace\n\nTo get started straight away run \\`bit start\\` and open [localhost:3000](http://localhost:3000). It may take a while to build the first time you run this command as it is building the whole User Interface for your development environment.\n\n\\`\\`\\`bash\nbit start\n\\`\\`\\`\n\n## What's included\n\n- **workspace.jsonc**\n\nThis is the main configuration file of your bit workspace. Here you can modify the workspace name and icon as well as default directory and scope. It is where dependencies are found when you install anything. It is also where you register aspects, bit extensions as well as apply the environments for your components. This workspace has been setup so that all components use the React env. However you can create other components and apply other envs to them such as node, html, angular and aspect envs.\n\n- **.bitmap**\n\nThis is an auto-generated file and includes the mapping of your components. There is one component included here. In order to remove this component you can run the following command.\n\n\n- **Demo Components**\n\nA folder (unless the --empty flag was used) containing demo components are included in this workspace. These components are used to demonstrate the different features of Bit. If you would like to remove these components you can run the following command.\n\n\\`\\`\\`jsx\nbit remove \"ui/*\" --delete files\n\\`\\`\\`\n\nThis removes the components from the bitmap as well as removes the files.\n\n\n- **.gitignore**\n\nIgnoring any files from version control\n`;\n}\n"]}
1
+ {"version":3,"names":["readme"],"sources":["readme-file.ts"],"sourcesContent":["export function readme() {\n return `# Welcome to your Bit Workspace\n\nTo get started straight away run \\`bit start\\` and open [localhost:3000](http://localhost:3000). It may take a while to build the first time you run this command as it is building the whole User Interface for your development environment.\n\n\\`\\`\\`bash\nbit start\n\\`\\`\\`\n\n## What's included\n\n- **workspace.jsonc**\n\nThis is the main configuration file of your bit workspace. Here you can modify the workspace name and icon as well as default directory and scope. It is where dependencies are found when you install anything. It is also where you register aspects, bit extensions as well as apply the environments for your components. This workspace has been setup so that all components use the React env. However you can create other components and apply other envs to them such as node, html, angular and aspect envs.\n\n- **.bitmap**\n\nThis is an auto-generated file and includes the mapping of your components. There is one component included here. In order to remove this component you can run the following command.\n\n\n- **Demo Components**\n\nA folder (unless the --empty flag was used) containing demo components are included in this workspace. These components are used to demonstrate the different features of Bit. If you would like to remove these components you can run the following command.\n\n\\`\\`\\`jsx\nbit remove \"ui/*\" --delete files\n\\`\\`\\`\n\nThis removes the components from the bitmap as well as removes the files.\n\n\n- **.gitignore**\n\nIgnoring any files from version control\n`;\n}\n"],"mappings":";;;;;;;AAAO,SAASA,MAAT,GAAkB;EACvB,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAjCE;AAkCD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ts-config.ts"],"names":["tsConfig"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAI;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EATO","sourcesContent":["export const tsConfig = `{\n \"extends\": \"./node_modules/@teambit/react/typescript/tsconfig.json\",\n // \"include\": [],\n \"compilerOptions\": {\n \"noEmit\": true\n },\n \"exclude\": [\n \"dist\"\n ]\n}`;\n"]}
1
+ {"version":3,"names":["tsConfig"],"sources":["ts-config.ts"],"sourcesContent":["export const tsConfig = `{\n \"extends\": \"./node_modules/@teambit/react/typescript/tsconfig.json\",\n // \"include\": [],\n \"compilerOptions\": {\n \"noEmit\": true\n },\n \"exclude\": [\n \"dist\"\n ]\n}`;\n"],"mappings":";;;;;;AAAO,MAAMA,QAAQ,GAAI;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EATO"}
@@ -1 +1 @@
1
- {"version":3,"sources":["asset.ts"],"names":["assetTypes"],"mappings":";;;;;;AAAO,MAAMA,UAAU,GAAI;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA3BO","sourcesContent":["export const assetTypes = `declare module '*.png' {\n const value: any;\n export = value;\n}\ndeclare module '*.svg' {\n import type { FunctionComponent, SVGProps } from 'react';\n\n export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;\n const src: string;\n export default src;\n}\ndeclare module '*.jpg' {\n const value: any;\n export = value;\n}\ndeclare module '*.jpeg' {\n const value: any;\n export = value;\n}\ndeclare module '*.gif' {\n const value: any;\n export = value;\n}\ndeclare module '*.bmp' {\n const value: any;\n export = value;\n}\n`;\n"]}
1
+ {"version":3,"names":["assetTypes"],"sources":["asset.ts"],"sourcesContent":["export const assetTypes = `declare module '*.png' {\n const value: any;\n export = value;\n}\ndeclare module '*.svg' {\n import type { FunctionComponent, SVGProps } from 'react';\n\n export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;\n const src: string;\n export default src;\n}\ndeclare module '*.jpg' {\n const value: any;\n export = value;\n}\ndeclare module '*.jpeg' {\n const value: any;\n export = value;\n}\ndeclare module '*.gif' {\n const value: any;\n export = value;\n}\ndeclare module '*.bmp' {\n const value: any;\n export = value;\n}\n`;\n"],"mappings":";;;;;;AAAO,MAAMA,UAAU,GAAI;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA3BO"}
@@ -1 +1 @@
1
- {"version":3,"sources":["style.ts"],"names":["styleTypes"],"mappings":";;;;;;AAAO,MAAMA,UAAU,GAAI;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA1CO","sourcesContent":["export const styleTypes = `declare module '*.module.css' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\ndeclare module '*.module.scss' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\ndeclare module '*.module.sass' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.module.less' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.less' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.css' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.sass' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.scss' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.mdx' {\n const component: any;\n export default component;\n}\n`;\n"]}
1
+ {"version":3,"names":["styleTypes"],"sources":["style.ts"],"sourcesContent":["export const styleTypes = `declare module '*.module.css' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\ndeclare module '*.module.scss' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\ndeclare module '*.module.sass' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.module.less' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.less' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.css' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.sass' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.scss' {\n const classes: { readonly [key: string]: string };\n export default classes;\n}\n\ndeclare module '*.mdx' {\n const component: any;\n export default component;\n}\n`;\n"],"mappings":";;;;;;AAAO,MAAMA,UAAU,GAAI;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CA1CO"}
@@ -1 +1 @@
1
- {"version":3,"sources":["workspace-config.ts"],"names":["workspaceConfig","name","defaultScope","scope","configParsed","packageManager","policy","dependencies","peerDependencies","react","variants","configMerged"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,eAAeA,eAAf,CAA+B;AAAEC,EAAAA,IAAF;AAAQC,EAAAA;AAAR,CAA/B,EAAyE;AAC9E,QAAMC,KAAK,GAAGD,YAAY,IAAI,iBAA9B;AACA,QAAME,YAAY,GAAG,MAAM,iDAA3B;AACAA,EAAAA,YAAY,CAAC,6BAAD,CAAZ,CAA4CH,IAA5C,GAAmDA,IAAnD;AACAG,EAAAA,YAAY,CAAC,6BAAD,CAAZ,CAA4CF,YAA5C,GAA2DC,KAA3D;AACAC,EAAAA,YAAY,CAAC,0CAAD,CAAZ,CAAyDC,cAAzD,GAA0E,2BAA1E;AACAD,EAAAA,YAAY,CAAC,0CAAD,CAAZ,CAAyDE,MAAzD,GAAkE;AAChEC,IAAAA,YAAY,EAAE;AACZ,0CAAoC,UADxB;AAEZ,0CAAoC,QAFxB;AAGZ,qCAA+B,OAHnB;AAIZ,8BAAwB,QAJZ;AAKZ,4BAAsB,QALV;AAMZ,gCAA0B,OANd;AAOZ,2BAAqB,QAPT;AAQZ,6BAAuB;AARX,KADkD;AAWhEC,IAAAA,gBAAgB,EAAE;AAChB,gCAA0B,QADV;AAEhBC,MAAAA,KAAK,EAAE,QAFS;AAGhB,mBAAa;AAHG;AAX8C,GAAlE;AAkBA,QAAMC,QAAQ,GAAG;AACf,kCAA8B,0BAAO,IAAP;AADf,GAAjB;AAIA,QAAMC,YAAY,GAAG,2BAAOP,YAAP,EAAqBM,QAArB,CAArB;AAEA,SAAO,wCAAyBC,YAAzB,CAAP;AACD","sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\nimport { getWorkspaceConfigTemplateParsed, stringifyWorkspaceConfig } from '@teambit/config';\nimport { parse, assign } from 'comment-json';\n\nexport async function workspaceConfig({ name, defaultScope }: WorkspaceContext) {\n const scope = defaultScope || 'my-org.my-scope';\n const configParsed = await getWorkspaceConfigTemplateParsed();\n configParsed['teambit.workspace/workspace'].name = name;\n configParsed['teambit.workspace/workspace'].defaultScope = scope;\n configParsed['teambit.dependencies/dependency-resolver'].packageManager = 'teambit.dependencies/pnpm';\n configParsed['teambit.dependencies/dependency-resolver'].policy = {\n dependencies: {\n '@teambit/eslint-config-bit-react': '~0.0.367',\n '@typescript-eslint/eslint-plugin': '4.29.3',\n 'eslint-import-resolver-node': '0.3.6',\n 'eslint-plugin-import': '2.22.1',\n 'eslint-plugin-jest': '24.4.0',\n 'eslint-plugin-jsx-a11y': '6.4.1',\n 'eslint-plugin-mdx': '1.15.0',\n 'eslint-plugin-react': '7.25.1',\n },\n peerDependencies: {\n '@testing-library/react': '12.0.0',\n react: '17.0.2',\n 'react-dom': '17.0.2',\n },\n };\n\n const variants = {\n 'teambit.workspace/variants': parse(`{}`),\n };\n\n const configMerged = assign(configParsed, variants);\n\n return stringifyWorkspaceConfig(configMerged);\n}\n"]}
1
+ {"version":3,"names":["workspaceConfig","name","defaultScope","scope","configParsed","getWorkspaceConfigTemplateParsed","packageManager","policy","dependencies","peerDependencies","react","variants","parse","configMerged","assign","stringifyWorkspaceConfig"],"sources":["workspace-config.ts"],"sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\nimport { getWorkspaceConfigTemplateParsed, stringifyWorkspaceConfig } from '@teambit/config';\nimport { parse, assign } from 'comment-json';\n\nexport async function workspaceConfig({ name, defaultScope }: WorkspaceContext) {\n const scope = defaultScope || 'my-org.my-scope';\n const configParsed = await getWorkspaceConfigTemplateParsed();\n configParsed['teambit.workspace/workspace'].name = name;\n configParsed['teambit.workspace/workspace'].defaultScope = scope;\n configParsed['teambit.dependencies/dependency-resolver'].packageManager = 'teambit.dependencies/pnpm';\n configParsed['teambit.dependencies/dependency-resolver'].policy = {\n dependencies: {\n '@teambit/eslint-config-bit-react': '~0.0.367',\n '@typescript-eslint/eslint-plugin': '4.29.3',\n 'eslint-import-resolver-node': '0.3.6',\n 'eslint-plugin-import': '2.22.1',\n 'eslint-plugin-jest': '24.4.0',\n 'eslint-plugin-jsx-a11y': '6.4.1',\n 'eslint-plugin-mdx': '1.15.0',\n 'eslint-plugin-react': '7.25.1',\n },\n peerDependencies: {\n '@testing-library/react': '12.0.0',\n react: '17.0.2',\n 'react-dom': '17.0.2',\n },\n };\n\n const variants = {\n 'teambit.workspace/variants': parse(`{}`),\n };\n\n const configMerged = assign(configParsed, variants);\n\n return stringifyWorkspaceConfig(configMerged);\n}\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,eAAeA,eAAf,CAA+B;EAAEC,IAAF;EAAQC;AAAR,CAA/B,EAAyE;EAC9E,MAAMC,KAAK,GAAGD,YAAY,IAAI,iBAA9B;EACA,MAAME,YAAY,GAAG,MAAM,IAAAC,0CAAA,GAA3B;EACAD,YAAY,CAAC,6BAAD,CAAZ,CAA4CH,IAA5C,GAAmDA,IAAnD;EACAG,YAAY,CAAC,6BAAD,CAAZ,CAA4CF,YAA5C,GAA2DC,KAA3D;EACAC,YAAY,CAAC,0CAAD,CAAZ,CAAyDE,cAAzD,GAA0E,2BAA1E;EACAF,YAAY,CAAC,0CAAD,CAAZ,CAAyDG,MAAzD,GAAkE;IAChEC,YAAY,EAAE;MACZ,oCAAoC,UADxB;MAEZ,oCAAoC,QAFxB;MAGZ,+BAA+B,OAHnB;MAIZ,wBAAwB,QAJZ;MAKZ,sBAAsB,QALV;MAMZ,0BAA0B,OANd;MAOZ,qBAAqB,QAPT;MAQZ,uBAAuB;IARX,CADkD;IAWhEC,gBAAgB,EAAE;MAChB,0BAA0B,QADV;MAEhBC,KAAK,EAAE,QAFS;MAGhB,aAAa;IAHG;EAX8C,CAAlE;EAkBA,MAAMC,QAAQ,GAAG;IACf,8BAA8B,IAAAC,oBAAA,EAAO,IAAP;EADf,CAAjB;EAIA,MAAMC,YAAY,GAAG,IAAAC,qBAAA,EAAOV,YAAP,EAAqBO,QAArB,CAArB;EAEA,OAAO,IAAAI,kCAAA,EAAyBF,YAAzB,CAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["generate-files.ts"],"names":["generateFiles","context","relativePath","content","eslintConfig","tsConfig","prettierConfig","assetTypes","styleTypes"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAOO,eAAeA,aAAf,CAA6BC,OAA7B,EAAkF;AACvF,SAAO,CACL;AACEC,IAAAA,YAAY,EAAE,iBADhB;AAEEC,IAAAA,OAAO,EAAE,MAAM,wCAAgBF,OAAhB;AAFjB,GADK,EAKL;AACEC,IAAAA,YAAY,EAAG,YADjB;AAEEC,IAAAA,OAAO,EAAE;AAFX,GALK,EASL;AACED,IAAAA,YAAY,EAAE,qBADhB;AAEEC,IAAAA,OAAO,EAAE,8BAAWF,OAAX;AAFX,GATK,EAaL;AACEC,IAAAA,YAAY,EAAG,WADjB;AAEEC,IAAAA,OAAO,EAAE;AAFX,GAbK,EAiBL;AACED,IAAAA,YAAY,EAAG,cADjB;AAEEC,IAAAA,OAAO,EAAEC;AAFX,GAjBK,EAqBL;AACEF,IAAAA,YAAY,EAAG,eADjB;AAEEC,IAAAA,OAAO,EAAEE;AAFX,GArBK,EAyBL;AACEH,IAAAA,YAAY,EAAG,gBADjB;AAEEC,IAAAA,OAAO,EAAEG;AAFX,GAzBK,EA6BL;AACEJ,IAAAA,YAAY,EAAG,kBADjB;AAEEC,IAAAA,OAAO,EAAEI;AAFX,GA7BK,EAiCL;AACEL,IAAAA,YAAY,EAAG,kBADjB;AAEEC,IAAAA,OAAO,EAAEK;AAFX,GAjCK,CAAP;AAsCD","sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\nimport { workspaceConfig } from './files/workspace-config';\nimport { readme } from './files/readme-file';\nimport { gitIgnore } from './files/git-ignore';\nimport { assetTypes } from './files/types/asset';\nimport { styleTypes } from './files/types/style';\nimport { eslintConfig } from './files/eslint-config';\nimport { tsConfig } from './files/ts-config';\nimport { prettierConfig } from './files/prettier-config';\nimport { launchJson } from './files/launch-json';\n\ntype GeneratedFile = {\n relativePath: string;\n content: string;\n};\n\nexport async function generateFiles(context: WorkspaceContext): Promise<GeneratedFile[]> {\n return [\n {\n relativePath: 'workspace.jsonc',\n content: await workspaceConfig(context),\n },\n {\n relativePath: `.gitignore`,\n content: gitIgnore(),\n },\n {\n relativePath: '.vscode/launch.json',\n content: launchJson(context),\n },\n {\n relativePath: `README.md`,\n content: readme(),\n },\n {\n relativePath: `.eslintrc.js`,\n content: eslintConfig,\n },\n {\n relativePath: `tsconfig.json`,\n content: tsConfig,\n },\n {\n relativePath: `.prettierrc.js`,\n content: prettierConfig,\n },\n {\n relativePath: `types/asset.d.ts`,\n content: assetTypes,\n },\n {\n relativePath: `types/style.d.ts`,\n content: styleTypes,\n },\n ];\n}\n"]}
1
+ {"version":3,"names":["generateFiles","context","relativePath","content","workspaceConfig","gitIgnore","launchJson","readme","eslintConfig","tsConfig","prettierConfig","assetTypes","styleTypes"],"sources":["generate-files.ts"],"sourcesContent":["import { WorkspaceContext } from '@teambit/generator';\nimport { workspaceConfig } from './files/workspace-config';\nimport { readme } from './files/readme-file';\nimport { gitIgnore } from './files/git-ignore';\nimport { assetTypes } from './files/types/asset';\nimport { styleTypes } from './files/types/style';\nimport { eslintConfig } from './files/eslint-config';\nimport { tsConfig } from './files/ts-config';\nimport { prettierConfig } from './files/prettier-config';\nimport { launchJson } from './files/launch-json';\n\ntype GeneratedFile = {\n relativePath: string;\n content: string;\n};\n\nexport async function generateFiles(context: WorkspaceContext): Promise<GeneratedFile[]> {\n return [\n {\n relativePath: 'workspace.jsonc',\n content: await workspaceConfig(context),\n },\n {\n relativePath: `.gitignore`,\n content: gitIgnore(),\n },\n {\n relativePath: '.vscode/launch.json',\n content: launchJson(context),\n },\n {\n relativePath: `README.md`,\n content: readme(),\n },\n {\n relativePath: `.eslintrc.js`,\n content: eslintConfig,\n },\n {\n relativePath: `tsconfig.json`,\n content: tsConfig,\n },\n {\n relativePath: `.prettierrc.js`,\n content: prettierConfig,\n },\n {\n relativePath: `types/asset.d.ts`,\n content: assetTypes,\n },\n {\n relativePath: `types/style.d.ts`,\n content: styleTypes,\n },\n ];\n}\n"],"mappings":";;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAOO,eAAeA,aAAf,CAA6BC,OAA7B,EAAkF;EACvF,OAAO,CACL;IACEC,YAAY,EAAE,iBADhB;IAEEC,OAAO,EAAE,MAAM,IAAAC,kCAAA,EAAgBH,OAAhB;EAFjB,CADK,EAKL;IACEC,YAAY,EAAG,YADjB;IAEEC,OAAO,EAAE,IAAAE,sBAAA;EAFX,CALK,EASL;IACEH,YAAY,EAAE,qBADhB;IAEEC,OAAO,EAAE,IAAAG,wBAAA,EAAWL,OAAX;EAFX,CATK,EAaL;IACEC,YAAY,EAAG,WADjB;IAEEC,OAAO,EAAE,IAAAI,oBAAA;EAFX,CAbK,EAiBL;IACEL,YAAY,EAAG,cADjB;IAEEC,OAAO,EAAEK;EAFX,CAjBK,EAqBL;IACEN,YAAY,EAAG,eADjB;IAEEC,OAAO,EAAEM;EAFX,CArBK,EAyBL;IACEP,YAAY,EAAG,gBADjB;IAEEC,OAAO,EAAEO;EAFX,CAzBK,EA6BL;IACER,YAAY,EAAG,kBADjB;IAEEC,OAAO,EAAEQ;EAFX,CA7BK,EAiCL;IACET,YAAY,EAAG,kBADjB;IAEEC,OAAO,EAAES;EAFX,CAjCK,CAAP;AAsCD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA","sourcesContent":["export { generateFiles } from './generate-files';\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { generateFiles } from './generate-files';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["html.ts"],"names":["html","title"],"mappings":";;;;;;;AAAA;AACO,SAASA,IAAT,CAAcC,KAAd,EAA6B;AAClC,SAAQ;AACV;AACA;AACA;AACA;AACA;AACA,eAAeA,KAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAlBE;AAmBD","sourcesContent":["/** html template for Previews (docs, compositions, etc) */\nexport function html(title: string) {\n return `\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>${title}</title>\n <script>\n // Allow to use react dev-tools inside the examples\n try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}\n </script>\n <!-- minimal css resets -->\n <style> html { height: 100%; } body { margin: 0; height: 100%; } #root { height: 100%; } </style>\n </head>\n <body>\n <div id=\"root\"></div>\n </body>\n </html>\n `;\n}\n"]}
1
+ {"version":3,"names":["html","title"],"sources":["html.ts"],"sourcesContent":["/** html template for Previews (docs, compositions, etc) */\nexport function html(title: string) {\n return `\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>${title}</title>\n <script>\n // Allow to use react dev-tools inside the examples\n try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}\n </script>\n <!-- minimal css resets -->\n <style> html { height: 100%; } body { margin: 0; height: 100%; } #root { height: 100%; } </style>\n </head>\n <body>\n <div id=\"root\"></div>\n </body>\n </html>\n `;\n}\n"],"mappings":";;;;;;;AAAA;AACO,SAASA,IAAT,CAAcC,KAAd,EAA6B;EAClC,OAAQ;AACV;AACA;AACA;AACA;AACA;AACA,eAAeA,KAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAlBE;AAmBD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA","sourcesContent":["export { html } from './html';\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { html } from './html';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["formatWebpackMessages.js"],"names":["friendlySyntaxErrorLabel","isLikelyASyntaxError","message","indexOf","formatMessage","lines","split","Array","isArray","forEach","filter","line","test","map","parsingError","exec","errorLine","errorColumn","errorMessage","join","replace","length","trim","splice","match","index","arr","formatWebpackMessages","json","formattedErrors","errors","formattedWarnings","warnings","result","some","module","exports"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;AAEA,MAAMA,wBAAwB,GAAG,eAAjC;;AAEA,SAASC,oBAAT,CAA8BC,OAA9B,EAAuC;AACrC,SAAOA,OAAO,CAACC,OAAR,CAAgBH,wBAAhB,MAA8C,CAAC,CAAtD;AACD,C,CAED;;;AACA,SAASI,aAAT,CAAuBF,OAAvB,EAAgC;AAC9B,MAAIG,KAAK,GAAG,EAAZ;;AAEA,MAAI,OAAOH,OAAP,KAAmB,QAAvB,EAAiC;AAC/BG,IAAAA,KAAK,GAAGH,OAAO,CAACI,KAAR,CAAc,IAAd,CAAR;AACD,GAFD,MAEO,IAAI,aAAaJ,OAAjB,EAA0B;AAC/BG,IAAAA,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAP,CAAmBI,KAAnB,CAAyB,IAAzB,CAAR;AACD,GAFM,MAEA,IAAIC,KAAK,CAACC,OAAN,CAAcN,OAAd,CAAJ,EAA4B;AACjCA,IAAAA,OAAO,CAACO,OAAR,CAAiBP,OAAD,IAAa;AAC3B,UAAI,aAAaA,OAAjB,EAA0B;AACxBG,QAAAA,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAP,CAAmBI,KAAnB,CAAyB,IAAzB,CAAR;AACD;AACF,KAJD;AAKD,GAb6B,CAe9B;AACA;;;AACAD,EAAAA,KAAK,GAAGA,KAAK,CAACK,MAAN,C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AR,CA/E8B,CAmF9B;;AACApB,EAAAA,OAAO,GAAGG,KAAK,CAACc,IAAN,CAAW,IAAX,CAAV;AACA,SAAOjB,OAAO,CAACoB,IAAR,EAAP;AACD;;AAED,SAASK,qBAAT,CAA+BC,IAA/B,EAAqC;AACnC,QAAMC,eAAe,GAAGD,IAAI,CAACE,MAAL,CAAYjB,GAAZ,CAAgBT,aAAhB,CAAxB;AACA,QAAM2B,iBAAiB,GAAGH,IAAI,CAACI,QAAL,CAAcnB,GAAd,CAAkBT,aAAlB,CAA1B;AACA,QAAM6B,MAAM,GAAG;AAAEH,IAAAA,MAAM,EAAED,eAAV;AAA2BG,IAAAA,QAAQ,EAAED;AAArC,GAAf;;AACA,MAAIE,MAAM,CAACH,MAAP,CAAcI,IAAd,CAAmBjC,oBAAnB,CAAJ,EAA8C;AAC5C;AACAgC,IAAAA,MAAM,CAACH,MAAP,GAAgBG,MAAM,CAACH,MAAP,CAAcpB,MAAd,CAAqBT,oBAArB,CAAhB;AACD;;AACD,SAAOgC,MAAP;AACD;;AAEDE,MAAM,CAACC,OAAP,GAAiBT,qBAAjB","sourcesContent":["/* eslint-disable */\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nconst friendlySyntaxErrorLabel = 'Syntax error:';\n\nfunction isLikelyASyntaxError(message) {\n return message.indexOf(friendlySyntaxErrorLabel) !== -1;\n}\n\n// Cleans up webpack error messages.\nfunction formatMessage(message) {\n let lines = [];\n\n if (typeof message === 'string') {\n lines = message.split('\\n');\n } else if ('message' in message) {\n lines = message['message'].split('\\n');\n } else if (Array.isArray(message)) {\n message.forEach((message) => {\n if ('message' in message) {\n lines = message['message'].split('\\n');\n }\n });\n }\n\n // Strip webpack-added headers off errors/warnings\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n lines = lines.filter((line) => !/Module [A-z ]+\\(from/.test(line));\n\n // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n lines = lines.map((line) => {\n const parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(line);\n if (!parsingError) {\n return line;\n }\n const [, errorLine, errorColumn, errorMessage] = parsingError;\n return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`;\n });\n\n message = lines.join('\\n');\n // Smoosh syntax errors (commonly found in CSS)\n message = message.replace(/SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g, `${friendlySyntaxErrorLabel} $3 ($1:$2)\\n`);\n // Clean up export errors\n message = message.replace(\n /^.*export '(.+?)' was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$1' is not exported from '$2'.`\n );\n message = message.replace(\n /^.*export 'default' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$2' does not contain a default export (imported as '$1').`\n );\n message = message.replace(\n /^.*export '(.+?)' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$1' is not exported from '$3' (imported as '$2').`\n );\n lines = message.split('\\n');\n\n // Remove leading newline\n if (lines.length > 2 && lines[1].trim() === '') {\n lines.splice(1, 1);\n }\n // Clean up file name\n lines[0] = lines[0].replace(/^(.*) \\d+:\\d+-\\d+$/, '$1');\n\n // Cleans up verbose \"module not found\" messages for files and packages.\n if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {\n lines = [\n lines[0],\n lines[1].replace('Error: ', '').replace('Module not found: Cannot find file:', 'Cannot find file:'),\n ];\n }\n\n // Add helpful message for users trying to use Sass for the first time\n if (lines[1] && lines[1].match(/Cannot find module.+sass/)) {\n lines[1] = 'To import Sass files, you first need to install sass.\\n';\n lines[1] += 'Run `bit install sass` inside your workspace.';\n }\n\n message = lines.join('\\n');\n // Internal stacks are generally useless so we strip them... with the\n // exception of stacks containing `webpack:` because they're normally\n // from user code generated by webpack. For more information see\n // https://github.com/facebook/create-react-app/pull/1050\n message = message.replace(/^\\s*at\\s((?!webpack:).)*:\\d+:\\d+[\\s)]*(\\n|$)/gm, ''); // at ... ...:x:y\n message = message.replace(/^\\s*at\\s<anonymous>(\\n|$)/gm, ''); // at <anonymous>\n lines = message.split('\\n');\n\n // Remove duplicated newlines\n lines = lines.filter(\n (line, index, arr) => index === 0 || line.trim() !== '' || line.trim() !== arr[index - 1].trim()\n );\n\n // Reassemble the message\n message = lines.join('\\n');\n return message.trim();\n}\n\nfunction formatWebpackMessages(json) {\n const formattedErrors = json.errors.map(formatMessage);\n const formattedWarnings = json.warnings.map(formatMessage);\n const result = { errors: formattedErrors, warnings: formattedWarnings };\n if (result.errors.some(isLikelyASyntaxError)) {\n // If there are any syntax errors, show just them.\n result.errors = result.errors.filter(isLikelyASyntaxError);\n }\n return result;\n}\n\nmodule.exports = formatWebpackMessages;\n"]}
1
+ {"version":3,"names":["friendlySyntaxErrorLabel","isLikelyASyntaxError","message","indexOf","formatMessage","lines","split","Array","isArray","forEach","filter","line","test","map","parsingError","exec","errorLine","errorColumn","errorMessage","join","replace","length","trim","splice","match","index","arr","formatWebpackMessages","json","formattedErrors","errors","formattedWarnings","warnings","result","some","module","exports"],"sources":["formatWebpackMessages.js"],"sourcesContent":["/* eslint-disable */\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nconst friendlySyntaxErrorLabel = 'Syntax error:';\n\nfunction isLikelyASyntaxError(message) {\n return message.indexOf(friendlySyntaxErrorLabel) !== -1;\n}\n\n// Cleans up webpack error messages.\nfunction formatMessage(message) {\n let lines = [];\n\n if (typeof message === 'string') {\n lines = message.split('\\n');\n } else if ('message' in message) {\n lines = message['message'].split('\\n');\n } else if (Array.isArray(message)) {\n message.forEach((message) => {\n if ('message' in message) {\n lines = message['message'].split('\\n');\n }\n });\n }\n\n // Strip webpack-added headers off errors/warnings\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n lines = lines.filter((line) => !/Module [A-z ]+\\(from/.test(line));\n\n // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n lines = lines.map((line) => {\n const parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(line);\n if (!parsingError) {\n return line;\n }\n const [, errorLine, errorColumn, errorMessage] = parsingError;\n return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`;\n });\n\n message = lines.join('\\n');\n // Smoosh syntax errors (commonly found in CSS)\n message = message.replace(/SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g, `${friendlySyntaxErrorLabel} $3 ($1:$2)\\n`);\n // Clean up export errors\n message = message.replace(\n /^.*export '(.+?)' was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$1' is not exported from '$2'.`\n );\n message = message.replace(\n /^.*export 'default' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$2' does not contain a default export (imported as '$1').`\n );\n message = message.replace(\n /^.*export '(.+?)' \\(imported as '(.+?)'\\) was not found in '(.+?)'.*$/gm,\n `Attempted import error: '$1' is not exported from '$3' (imported as '$2').`\n );\n lines = message.split('\\n');\n\n // Remove leading newline\n if (lines.length > 2 && lines[1].trim() === '') {\n lines.splice(1, 1);\n }\n // Clean up file name\n lines[0] = lines[0].replace(/^(.*) \\d+:\\d+-\\d+$/, '$1');\n\n // Cleans up verbose \"module not found\" messages for files and packages.\n if (lines[1] && lines[1].indexOf('Module not found: ') === 0) {\n lines = [\n lines[0],\n lines[1].replace('Error: ', '').replace('Module not found: Cannot find file:', 'Cannot find file:'),\n ];\n }\n\n // Add helpful message for users trying to use Sass for the first time\n if (lines[1] && lines[1].match(/Cannot find module.+sass/)) {\n lines[1] = 'To import Sass files, you first need to install sass.\\n';\n lines[1] += 'Run `bit install sass` inside your workspace.';\n }\n\n message = lines.join('\\n');\n // Internal stacks are generally useless so we strip them... with the\n // exception of stacks containing `webpack:` because they're normally\n // from user code generated by webpack. For more information see\n // https://github.com/facebook/create-react-app/pull/1050\n message = message.replace(/^\\s*at\\s((?!webpack:).)*:\\d+:\\d+[\\s)]*(\\n|$)/gm, ''); // at ... ...:x:y\n message = message.replace(/^\\s*at\\s<anonymous>(\\n|$)/gm, ''); // at <anonymous>\n lines = message.split('\\n');\n\n // Remove duplicated newlines\n lines = lines.filter(\n (line, index, arr) => index === 0 || line.trim() !== '' || line.trim() !== arr[index - 1].trim()\n );\n\n // Reassemble the message\n message = lines.join('\\n');\n return message.trim();\n}\n\nfunction formatWebpackMessages(json) {\n const formattedErrors = json.errors.map(formatMessage);\n const formattedWarnings = json.warnings.map(formatMessage);\n const result = { errors: formattedErrors, warnings: formattedWarnings };\n if (result.errors.some(isLikelyASyntaxError)) {\n // If there are any syntax errors, show just them.\n result.errors = result.errors.filter(isLikelyASyntaxError);\n }\n return result;\n}\n\nmodule.exports = formatWebpackMessages;\n"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;;;;;AAEA,MAAMA,wBAAwB,GAAG,eAAjC;;AAEA,SAASC,oBAAT,CAA8BC,OAA9B,EAAuC;EACrC,OAAOA,OAAO,CAACC,OAAR,CAAgBH,wBAAhB,MAA8C,CAAC,CAAtD;AACD,C,CAED;;;AACA,SAASI,aAAT,CAAuBF,OAAvB,EAAgC;EAC9B,IAAIG,KAAK,GAAG,EAAZ;;EAEA,IAAI,OAAOH,OAAP,KAAmB,QAAvB,EAAiC;IAC/BG,KAAK,GAAGH,OAAO,CAACI,KAAR,CAAc,IAAd,CAAR;EACD,CAFD,MAEO,IAAI,aAAaJ,OAAjB,EAA0B;IAC/BG,KAAK,GAAGH,OAAO,CAAC,SAAD,CAAP,CAAmBI,KAAnB,CAAyB,IAAzB,CAAR;EACD,CAFM,MAEA,IAAIC,KAAK,CAACC,OAAN,CAAcN,OAAd,CAAJ,EAA4B;IACjCA,OAAO,CAACO,OAAR,CAAiBP,OAAD,IAAa;MAC3B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L,OAAgBI,GAAG,CAACD,KAAK,GAAG,CAAT,CAAH,CAAeH,IAAf,EADrE,CAAR,CA/E8B,CAmF9B;;EACApB,OAAO,GAAGG,KAAK,CAACc,IAAN,CAAW,IAAX,CAAV;EACA,OAAOjB,OAAO,CAACoB,IAAR,EAAP;AACD;;AAED,SAASK,qBAAT,CAA+BC,IAA/B,EAAqC;EACnC,MAAMC,eAAe,GAAGD,IAAI,CAACE,MAAL,CAAYjB,GAAZ,CAAgBT,aAAhB,CAAxB;EACA,MAAM2B,iBAAiB,GAAGH,IAAI,CAACI,QAAL,CAAcnB,GAAd,CAAkBT,aAAlB,CAA1B;EACA,MAAM6B,MAAM,GAAG;IAAEH,MAAM,EAAED,eAAV;IAA2BG,QAAQ,EAAED;EAArC,CAAf;;EACA,IAAIE,MAAM,CAACH,MAAP,CAAcI,IAAd,CAAmBjC,oBAAnB,CAAJ,EAA8C;IAC5C;IACAgC,MAAM,CAACH,MAAP,GAAgBG,MAAM,CAACH,MAAP,CAAcpB,MAAd,CAAqBT,oBAArB,CAAhB;EACD;;EACD,OAAOgC,MAAP;AACD;;AAEDE,MAAM,CAACC,OAAP,GAAiBT,qBAAjB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["launchEditorEndpoint.js"],"names":["module","exports"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA,a,CAEA;;AACAA,MAAM,CAACC,OAAP,GAAiB,+BAAjB","sourcesContent":["/* eslint-disable */\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\n// TODO: we might want to make this injectable to support DEV-time non-root URLs.\nmodule.exports = '/__open-stack-frame-in-editor';\n"]}
1
+ {"version":3,"names":["module","exports"],"sources":["launchEditorEndpoint.js"],"sourcesContent":["/* eslint-disable */\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\n// TODO: we might want to make this injectable to support DEV-time non-root URLs.\nmodule.exports = '/__open-stack-frame-in-editor';\n"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA,a,CAEA;;AACAA,MAAM,CAACC,OAAP,GAAiB,+BAAjB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["refreshOverlayInterop.js"],"names":["dismissRuntimeErrors","reportRuntimeError","require","module","exports","clearRuntimeErrors","handleRuntimeError"],"mappings":"AAAA;;AACA;AAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM;AAAEA,EAAAA,oBAAF;AAAwBC,EAAAA;AAAxB,IAA+CC,OAAO,CAAC,qBAAD,CAA5D;;AAEAC,MAAM,CAACC,OAAP,GAAiB;AACfC,EAAAA,kBAAkB,EAAEL,oBADL;AAEfM,EAAAA,kBAAkB,EAAEL;AAFL,CAAjB","sourcesContent":["/* eslint-disable */\n/** this file was copied as is from react-dev-utils/refreshOverlayInterop */\n\n// @remove-on-eject-begin\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// @remove-on-eject-end\n'use strict';\n\nconst { dismissRuntimeErrors, reportRuntimeError } = require('react-error-overlay');\n\nmodule.exports = {\n clearRuntimeErrors: dismissRuntimeErrors,\n handleRuntimeError: reportRuntimeError,\n};\n"]}
1
+ {"version":3,"names":["dismissRuntimeErrors","reportRuntimeError","require","module","exports","clearRuntimeErrors","handleRuntimeError"],"sources":["refreshOverlayInterop.js"],"sourcesContent":["/* eslint-disable */\n/** this file was copied as is from react-dev-utils/refreshOverlayInterop */\n\n// @remove-on-eject-begin\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n// @remove-on-eject-end\n'use strict';\n\nconst { dismissRuntimeErrors, reportRuntimeError } = require('react-error-overlay');\n\nmodule.exports = {\n clearRuntimeErrors: dismissRuntimeErrors,\n handleRuntimeError: reportRuntimeError,\n};\n"],"mappings":"AAAA;;AACA;AAEA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAM;EAAEA,oBAAF;EAAwBC;AAAxB,IAA+CC,OAAO,CAAC,qBAAD,CAA5D;;AAEAC,MAAM,CAACC,OAAP,GAAiB;EACfC,kBAAkB,EAAEL,oBADL;EAEfM,kBAAkB,EAAEL;AAFL,CAAjB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["webpackHotDevClient.js"],"names":["stripAnsi","require","url","launchEditorEndpoint","formatWebpackMessages","ErrorOverlay","setEditorHandler","editorHandler","errorLocation","fetch","window","encodeURIComponent","fileName","lineNumber","colNumber","hadRuntimeError","startReportingRuntimeErrors","onError","filename","module","hot","dispose","stopReportingRuntimeErrors","querystring","id","substring","indexOf","urlParams","URLSearchParams","connection","WebSocket","format","protocol","location","hostname","port","pathname","get","slashes","onclose","console","info","isFirstCompilation","mostRecentCompilationHash","hasCompileErrors","clearOutdatedErrors","clear","handleSuccess","isHotUpdate","tryApplyUpdates","onHotUpdateSuccess","tryDismissErrorOverlay","handleWarnings","warnings","printWarnings","formatted","errors","warn","i","length","onSuccessfulHotUpdate","handleErrors","reportBuildError","error","dismissBuildError","handleAvailableHash","hash","onmessage","e","message","JSON","parse","data","type","reload","isUpdateAvailable","__webpack_hash__","canApplyUpdates","status","canAcceptErrors","hasReactRefresh","process","env","FAST_REFRESH","handleApplyUpdates","err","updatedModules","haveErrors","needsForcedReload","result","check","then"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA,a,CAEA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;AAEA,IAAIA,SAAS,GAAGC,OAAO,CAAC,YAAD,CAAvB;;AACA,IAAIC,GAAG,GAAGD,OAAO,CAAC,KAAD,CAAjB;;AACA,IAAIE,oBAAoB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AM,CAACC,GAAP,CAAWsE,KAAX;AAAiB;AAAgB,MAAjC,EAAuCN,kBAAvC,CAAb,CAnC2C,CAqC3C;;AACA,MAAIK,MAAM,IAAIA,MAAM,CAACE,IAArB,EAA2B;AACzBF,IAAAA,MAAM,CAACE,IAAP,CACE,UAAUL,cAAV,EAA0B;AACxBF,MAAAA,kBAAkB,CAAC,IAAD,EAAOE,cAAP,CAAlB;AACD,KAHH,EAIE,UAAUD,GAAV,EAAe;AACbD,MAAAA,kBAAkB,CAACC,GAAD,EAAM,IAAN,CAAlB;AACD,KANH;AAQD;AACF","sourcesContent":["/* eslint-disable */\n/*\n * this file was copied as is from `react-dev-utils/webpackHotDevClient`\n * and adjusted for our socket url.\n *\n * we use just set process.env.WDS_* with the EnvironmentPlugin or DefinePlugin\n * once we get react-error-overlay up and running again\n */\n\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n// This alternative WebpackDevServer combines the functionality of:\n// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js\n// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js\n\n// It only supports their simplest configuration (hot updates on same server).\n// It makes some opinionated choices on top, like adding a syntax error overlay\n// that looks similar to our console output. The error overlay is inspired by:\n// https://github.com/glenjamin/webpack-hot-middleware\n\nvar stripAnsi = require('strip-ansi');\nvar url = require('url');\nvar launchEditorEndpoint = require('./launchEditorEndpoint');\nvar formatWebpackMessages = require('./formatWebpackMessages');\nvar ErrorOverlay = require('react-error-overlay');\n\nErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {\n // Keep this sync with errorOverlayMiddleware.js\n fetch(\n launchEditorEndpoint +\n '?fileName=' +\n window.encodeURIComponent(errorLocation.fileName) +\n '&lineNumber=' +\n window.encodeURIComponent(errorLocation.lineNumber || 1) +\n '&colNumber=' +\n window.encodeURIComponent(errorLocation.colNumber || 1)\n );\n});\n\n// We need to keep track of if there has been a runtime error.\n// Essentially, we cannot guarantee application state was not corrupted by the\n// runtime error. To prevent confusing behavior, we forcibly reload the entire\n// application. This is handled below when we are notified of a compile (code\n// change).\n// See https://github.com/facebook/create-react-app/issues/3096\nvar hadRuntimeError = false;\nErrorOverlay.startReportingRuntimeErrors({\n onError: function () {\n hadRuntimeError = true;\n },\n filename: '/static/js/bundle.js',\n});\n\nif (module.hot && typeof module.hot.dispose === 'function') {\n module.hot.dispose(function () {\n // TODO: why do we need this?\n ErrorOverlay.stopReportingRuntimeErrors();\n });\n}\n\nconst querystring = module.id.substring(module.id.indexOf('?'));\nconst urlParams = new URLSearchParams(querystring);\n\n// Connect to WebpackDevServer via a socket.\nvar connection = new WebSocket(\n url.format({\n protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',\n hostname: window.location.hostname,\n port: window.location.port,\n pathname: urlParams.get('sockPath') || '/ws',\n slashes: true,\n })\n);\n\n// Unlike WebpackDevServer client, we won't try to reconnect\n// to avoid spamming the console. Disconnect usually happens\n// when developer stops the server.\nconnection.onclose = function () {\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\n console.info('The development server has disconnected.\\nRefresh the page if necessary.');\n }\n};\n\n// Remember some state related to hot module replacement.\nvar isFirstCompilation = true;\nvar mostRecentCompilationHash = null;\nvar hasCompileErrors = false;\n\nfunction clearOutdatedErrors() {\n // Clean up outdated compile errors, if any.\n if (typeof console !== 'undefined' && typeof console.clear === 'function') {\n if (hasCompileErrors) {\n console.clear();\n }\n }\n}\n\n// Successful compilation.\nfunction handleSuccess() {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onHotUpdateSuccess() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with warnings (e.g. ESLint).\nfunction handleWarnings(warnings) {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n function printWarnings() {\n // Print warnings to the console.\n var formatted = formatWebpackMessages({\n warnings: warnings,\n errors: [],\n });\n\n if (typeof console !== 'undefined' && typeof console.warn === 'function') {\n for (var i = 0; i < formatted.warnings.length; i++) {\n if (i === 5) {\n console.warn('There were more warnings in other files.\\n' + 'You can find a complete log in the terminal.');\n break;\n }\n console.warn(stripAnsi(formatted.warnings[i]));\n }\n }\n }\n\n printWarnings();\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onSuccessfulHotUpdate() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with errors (e.g. syntax error or missing modules).\nfunction handleErrors(errors) {\n clearOutdatedErrors();\n\n isFirstCompilation = false;\n hasCompileErrors = true;\n\n // \"Massage\" webpack messages.\n var formatted = formatWebpackMessages({\n errors: errors,\n warnings: [],\n });\n\n // Only show the first error.\n ErrorOverlay.reportBuildError(formatted.errors[0]);\n\n // Also log them to the console.\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n for (var i = 0; i < formatted.errors.length; i++) {\n console.error(stripAnsi(formatted.errors[i]));\n }\n }\n\n // Do not attempt to reload now.\n // We will reload on next success instead.\n}\n\nfunction tryDismissErrorOverlay() {\n if (!hasCompileErrors) {\n ErrorOverlay.dismissBuildError();\n }\n}\n\n// There is a newer version of the code available.\nfunction handleAvailableHash(hash) {\n // Update last known compilation hash.\n mostRecentCompilationHash = hash;\n}\n\n// Handle messages from the server.\nconnection.onmessage = function (e) {\n var message = JSON.parse(e.data);\n switch (message.type) {\n case 'hash':\n handleAvailableHash(message.data);\n break;\n case 'still-ok':\n case 'ok':\n handleSuccess();\n break;\n case 'content-changed':\n // Triggered when a file from `contentBase` changed.\n window.location.reload();\n break;\n case 'warnings':\n handleWarnings(message.data);\n break;\n case 'errors':\n handleErrors(message.data);\n break;\n default:\n // Do nothing.\n }\n};\n\n// Is there a newer version of this code available?\nfunction isUpdateAvailable() {\n /* globals __webpack_hash__ */\n // __webpack_hash__ is the hash of the current compilation.\n // It's a global variable injected by webpack.\n return mostRecentCompilationHash !== __webpack_hash__;\n}\n\n// webpack disallows updates in other states.\nfunction canApplyUpdates() {\n return module.hot.status() === 'idle';\n}\n\nfunction canAcceptErrors() {\n // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.\n const hasReactRefresh = process.env.FAST_REFRESH;\n\n const status = module.hot.status();\n // React refresh can handle hot-reloading over errors.\n // However, when hot-reload status is abort or fail,\n // it indicates the current update cannot be applied safely,\n // and thus we should bail out to a forced reload for consistency.\n return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;\n}\n\n// Attempt to update code on the fly, fall back to a hard reload.\nfunction tryApplyUpdates(onHotUpdateSuccess) {\n if (!module.hot) {\n // HotModuleReplacementPlugin is not in webpack configuration.\n window.location.reload();\n return;\n }\n\n if (!isUpdateAvailable() || !canApplyUpdates()) {\n return;\n }\n\n function handleApplyUpdates(err, updatedModules) {\n const haveErrors = err || hadRuntimeError;\n // When there is no error but updatedModules is unavailable,\n // it indicates a critical failure in hot-reloading,\n // e.g. server is not ready to serve new bundle,\n // and hence we need to do a forced reload.\n const needsForcedReload = !err && !updatedModules;\n if ((haveErrors && !canAcceptErrors()) || needsForcedReload) {\n window.location.reload();\n return;\n }\n\n if (typeof onHotUpdateSuccess === 'function') {\n // Maybe we want to do something.\n onHotUpdateSuccess();\n }\n\n if (isUpdateAvailable()) {\n // While we were updating, there was a new update! Do it again.\n tryApplyUpdates();\n }\n }\n\n // https://webpack.github.io/docs/hot-module-replacement.html#check\n var result = module.hot.check(/* autoApply */ true, handleApplyUpdates);\n\n // // webpack 2 returns a Promise instead of invoking a callback\n if (result && result.then) {\n result.then(\n function (updatedModules) {\n handleApplyUpdates(null, updatedModules);\n },\n function (err) {\n handleApplyUpdates(err, null);\n }\n );\n }\n}\n"]}
1
+ {"version":3,"names":["stripAnsi","require","url","launchEditorEndpoint","formatWebpackMessages","ErrorOverlay","setEditorHandler","editorHandler","errorLocation","fetch","window","encodeURIComponent","fileName","lineNumber","colNumber","hadRuntimeError","startReportingRuntimeErrors","onError","filename","module","hot","dispose","stopReportingRuntimeErrors","querystring","id","substring","indexOf","urlParams","URLSearchParams","connection","WebSocket","format","protocol","location","hostname","port","pathname","get","slashes","onclose","console","info","isFirstCompilation","mostRecentCompilationHash","hasCompileErrors","clearOutdatedErrors","clear","handleSuccess","isHotUpdate","tryApplyUpdates","onHotUpdateSuccess","tryDismissErrorOverlay","handleWarnings","warnings","printWarnings","formatted","errors","warn","i","length","onSuccessfulHotUpdate","handleErrors","reportBuildError","error","dismissBuildError","handleAvailableHash","hash","onmessage","e","message","JSON","parse","data","type","reload","isUpdateAvailable","__webpack_hash__","canApplyUpdates","status","canAcceptErrors","hasReactRefresh","process","env","FAST_REFRESH","handleApplyUpdates","err","updatedModules","haveErrors","needsForcedReload","result","check","then"],"sources":["webpackHotDevClient.js"],"sourcesContent":["/* eslint-disable */\n/*\n * this file was copied as is from `react-dev-utils/webpackHotDevClient`\n * and adjusted for our socket url.\n *\n * we use just set process.env.WDS_* with the EnvironmentPlugin or DefinePlugin\n * once we get react-error-overlay up and running again\n */\n\n/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n// This alternative WebpackDevServer combines the functionality of:\n// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js\n// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js\n\n// It only supports their simplest configuration (hot updates on same server).\n// It makes some opinionated choices on top, like adding a syntax error overlay\n// that looks similar to our console output. The error overlay is inspired by:\n// https://github.com/glenjamin/webpack-hot-middleware\n\nvar stripAnsi = require('strip-ansi');\nvar url = require('url');\nvar launchEditorEndpoint = require('./launchEditorEndpoint');\nvar formatWebpackMessages = require('./formatWebpackMessages');\nvar ErrorOverlay = require('react-error-overlay');\n\nErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {\n // Keep this sync with errorOverlayMiddleware.js\n fetch(\n launchEditorEndpoint +\n '?fileName=' +\n window.encodeURIComponent(errorLocation.fileName) +\n '&lineNumber=' +\n window.encodeURIComponent(errorLocation.lineNumber || 1) +\n '&colNumber=' +\n window.encodeURIComponent(errorLocation.colNumber || 1)\n );\n});\n\n// We need to keep track of if there has been a runtime error.\n// Essentially, we cannot guarantee application state was not corrupted by the\n// runtime error. To prevent confusing behavior, we forcibly reload the entire\n// application. This is handled below when we are notified of a compile (code\n// change).\n// See https://github.com/facebook/create-react-app/issues/3096\nvar hadRuntimeError = false;\nErrorOverlay.startReportingRuntimeErrors({\n onError: function () {\n hadRuntimeError = true;\n },\n filename: '/static/js/bundle.js',\n});\n\nif (module.hot && typeof module.hot.dispose === 'function') {\n module.hot.dispose(function () {\n // TODO: why do we need this?\n ErrorOverlay.stopReportingRuntimeErrors();\n });\n}\n\nconst querystring = module.id.substring(module.id.indexOf('?'));\nconst urlParams = new URLSearchParams(querystring);\n\n// Connect to WebpackDevServer via a socket.\nvar connection = new WebSocket(\n url.format({\n protocol: window.location.protocol === 'https:' ? 'wss' : 'ws',\n hostname: window.location.hostname,\n port: window.location.port,\n pathname: urlParams.get('sockPath') || '/ws',\n slashes: true,\n })\n);\n\n// Unlike WebpackDevServer client, we won't try to reconnect\n// to avoid spamming the console. Disconnect usually happens\n// when developer stops the server.\nconnection.onclose = function () {\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\n console.info('The development server has disconnected.\\nRefresh the page if necessary.');\n }\n};\n\n// Remember some state related to hot module replacement.\nvar isFirstCompilation = true;\nvar mostRecentCompilationHash = null;\nvar hasCompileErrors = false;\n\nfunction clearOutdatedErrors() {\n // Clean up outdated compile errors, if any.\n if (typeof console !== 'undefined' && typeof console.clear === 'function') {\n if (hasCompileErrors) {\n console.clear();\n }\n }\n}\n\n// Successful compilation.\nfunction handleSuccess() {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onHotUpdateSuccess() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with warnings (e.g. ESLint).\nfunction handleWarnings(warnings) {\n clearOutdatedErrors();\n\n var isHotUpdate = !isFirstCompilation;\n isFirstCompilation = false;\n hasCompileErrors = false;\n\n function printWarnings() {\n // Print warnings to the console.\n var formatted = formatWebpackMessages({\n warnings: warnings,\n errors: [],\n });\n\n if (typeof console !== 'undefined' && typeof console.warn === 'function') {\n for (var i = 0; i < formatted.warnings.length; i++) {\n if (i === 5) {\n console.warn('There were more warnings in other files.\\n' + 'You can find a complete log in the terminal.');\n break;\n }\n console.warn(stripAnsi(formatted.warnings[i]));\n }\n }\n }\n\n printWarnings();\n\n // Attempt to apply hot updates or reload.\n if (isHotUpdate) {\n tryApplyUpdates(function onSuccessfulHotUpdate() {\n // Only dismiss it when we're sure it's a hot update.\n // Otherwise it would flicker right before the reload.\n tryDismissErrorOverlay();\n });\n }\n}\n\n// Compilation with errors (e.g. syntax error or missing modules).\nfunction handleErrors(errors) {\n clearOutdatedErrors();\n\n isFirstCompilation = false;\n hasCompileErrors = true;\n\n // \"Massage\" webpack messages.\n var formatted = formatWebpackMessages({\n errors: errors,\n warnings: [],\n });\n\n // Only show the first error.\n ErrorOverlay.reportBuildError(formatted.errors[0]);\n\n // Also log them to the console.\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n for (var i = 0; i < formatted.errors.length; i++) {\n console.error(stripAnsi(formatted.errors[i]));\n }\n }\n\n // Do not attempt to reload now.\n // We will reload on next success instead.\n}\n\nfunction tryDismissErrorOverlay() {\n if (!hasCompileErrors) {\n ErrorOverlay.dismissBuildError();\n }\n}\n\n// There is a newer version of the code available.\nfunction handleAvailableHash(hash) {\n // Update last known compilation hash.\n mostRecentCompilationHash = hash;\n}\n\n// Handle messages from the server.\nconnection.onmessage = function (e) {\n var message = JSON.parse(e.data);\n switch (message.type) {\n case 'hash':\n handleAvailableHash(message.data);\n break;\n case 'still-ok':\n case 'ok':\n handleSuccess();\n break;\n case 'content-changed':\n // Triggered when a file from `contentBase` changed.\n window.location.reload();\n break;\n case 'warnings':\n handleWarnings(message.data);\n break;\n case 'errors':\n handleErrors(message.data);\n break;\n default:\n // Do nothing.\n }\n};\n\n// Is there a newer version of this code available?\nfunction isUpdateAvailable() {\n /* globals __webpack_hash__ */\n // __webpack_hash__ is the hash of the current compilation.\n // It's a global variable injected by webpack.\n return mostRecentCompilationHash !== __webpack_hash__;\n}\n\n// webpack disallows updates in other states.\nfunction canApplyUpdates() {\n return module.hot.status() === 'idle';\n}\n\nfunction canAcceptErrors() {\n // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.\n const hasReactRefresh = process.env.FAST_REFRESH;\n\n const status = module.hot.status();\n // React refresh can handle hot-reloading over errors.\n // However, when hot-reload status is abort or fail,\n // it indicates the current update cannot be applied safely,\n // and thus we should bail out to a forced reload for consistency.\n return hasReactRefresh && ['abort', 'fail'].indexOf(status) === -1;\n}\n\n// Attempt to update code on the fly, fall back to a hard reload.\nfunction tryApplyUpdates(onHotUpdateSuccess) {\n if (!module.hot) {\n // HotModuleReplacementPlugin is not in webpack configuration.\n window.location.reload();\n return;\n }\n\n if (!isUpdateAvailable() || !canApplyUpdates()) {\n return;\n }\n\n function handleApplyUpdates(err, updatedModules) {\n const haveErrors = err || hadRuntimeError;\n // When there is no error but updatedModules is unavailable,\n // it indicates a critical failure in hot-reloading,\n // e.g. server is not ready to serve new bundle,\n // and hence we need to do a forced reload.\n const needsForcedReload = !err && !updatedModules;\n if ((haveErrors && !canAcceptErrors()) || needsForcedReload) {\n window.location.reload();\n return;\n }\n\n if (typeof onHotUpdateSuccess === 'function') {\n // Maybe we want to do something.\n onHotUpdateSuccess();\n }\n\n if (isUpdateAvailable()) {\n // While we were updating, there was a new update! Do it again.\n tryApplyUpdates();\n }\n }\n\n // https://webpack.github.io/docs/hot-module-replacement.html#check\n var result = module.hot.check(/* autoApply */ true, handleApplyUpdates);\n\n // // webpack 2 returns a Promise instead of invoking a callback\n if (result && result.then) {\n result.then(\n function (updatedModules) {\n handleApplyUpdates(null, updatedModules);\n },\n function (err) {\n handleApplyUpdates(err, null);\n }\n );\n }\n}\n"],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA,a,CAEA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;;;;;AAEA,IAAIA,SAAS,GAAGC,OAAO,CAAC,YAAD,CAAvB;;AACA,IAAIC,GAAG,GAAGD,OAAO,CAAC,KAAD,CAAjB;;AACA,IAAIE,oBAAoB,GAAGF,OAAO,CAAC,wBAAD,CAAlC;;AACA,IAAIG,qBAAqB,GAAGH,OAAO,CAAC,yBAAD,CAAnC;;AACA,IAAII,YAAY,GAAGJ,OAAO,CAAC,qBAAD,CAA1B;;AAEAI,YAAY,CAACC,gBAAb,CAA8B,SAASC,aAAT,CAAuBC,aAAvB,EAAsC;EAClE;EACAC,KAAK,CACHN,oBAAoB,GAClB,YADF,GAEEO,MAAM,CAACC,kBAAP,CAA0BH,aAAa,CAACI,QAAxC,CAFF,GAGE,cAHF,GAIEF,MAAM,CAACC,kBAAP,CAA0BH,aAAa,CAACK,UAAd,IAA4B,CAAtD,CAJF,GAKE,aALF,GAMEH,MAAM,CAACC,kBAAP,CAA0BH,aAAa,CAACM,SAAd,IAA2B,CAArD,CAPC,CAAL;AASD,CAXD,E,CAaA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAIC,eAAe,GAAG,KAAtB;AACAV,YAAY,CAACW,2BAAb,CAAyC;EACvCC,OAAO,EAAE,YAAY;I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