@teambit/aspect 0.0.676 → 0.0.679

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 (40) hide show
  1. package/artifacts/env-template/public/298.js +1 -0
  2. package/artifacts/env-template/public/420.js +1 -0
  3. package/artifacts/env-template/public/677.js +1 -0
  4. package/artifacts/env-template/public/750.js +12 -0
  5. package/artifacts/env-template/public/793.js +218 -0
  6. package/artifacts/env-template/public/assets-manifest.json +22 -22
  7. package/artifacts/env-template/public/compositions.067647498ad1e65fc968.js +1 -0
  8. package/artifacts/env-template/public/compositions.html +1 -1
  9. package/artifacts/env-template/public/{overview.4de899258eb7ed2dbe5f.js → overview.337ae7a2072408844e0c.js} +1 -1
  10. package/artifacts/env-template/public/overview.html +1 -1
  11. package/artifacts/env-template/public/peers.c004d6a34765e7797913.js +1 -0
  12. package/artifacts/env-template/public/preview-root.2815be755d07e2f980c9.js +1 -0
  13. package/artifacts/env-template/public/service-worker.js +1 -1
  14. package/artifacts/env-template/public/static/css/{719.34ae751d.css → 793.2c0416f7.css} +1 -1
  15. package/artifacts/preview/teambit_harmony_aspect-preview.js +1 -1
  16. package/aspect.composition.tsx +1 -1
  17. package/aspect.docs.mdx +5 -0
  18. package/aspect.ui.runtime.tsx +4 -4
  19. package/{compositions-1647314610121.js → compositions-1647509820722.js} +0 -0
  20. package/dist/aspect.composition.js +1 -1
  21. package/dist/aspect.composition.js.map +1 -1
  22. package/dist/aspect.docs.mdx +5 -0
  23. package/dist/aspect.env.d.ts +3 -0
  24. package/dist/aspect.env.js +4 -0
  25. package/dist/aspect.env.js.map +1 -1
  26. package/dist/aspect.ui.runtime.js +6 -4
  27. package/dist/aspect.ui.runtime.js.map +1 -1
  28. package/{overview-1647314610121.js → overview-1647509820722.js} +0 -0
  29. package/package-tar/teambit-aspect-0.0.679.tgz +0 -0
  30. package/package.json +20 -18
  31. package/{preview-1647314610121.js → preview-1647509820722.js} +2 -2
  32. package/artifacts/env-template/public/141.js +0 -12
  33. package/artifacts/env-template/public/181.js +0 -1
  34. package/artifacts/env-template/public/447.js +0 -1
  35. package/artifacts/env-template/public/719.js +0 -218
  36. package/artifacts/env-template/public/848.js +0 -1
  37. package/artifacts/env-template/public/compositions.356cbe94036ce88f12fd.js +0 -1
  38. package/artifacts/env-template/public/peers.e9c6c15491f6fc7c952b.js +0 -1
  39. package/artifacts/env-template/public/preview-root.3fd23a1233512fbb1909.js +0 -1
  40. package/package-tar/teambit-aspect-0.0.676.tgz +0 -0
@@ -70,6 +70,10 @@ class AspectEnv {
70
70
  return this.reactEnv.getCompiler(this.getTsConfig(tsConfig));
71
71
  }
72
72
 
73
+ async getTemplateBundler(context, transformers = []) {
74
+ return this.reactEnv.createTemplateWebpackBundler(context, transformers);
75
+ }
76
+
73
77
  getNpmIgnore(context) {
74
78
  // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.
75
79
  // without this change, the package has "index.ts" file in the root, causing typescript to parse it instead of the
@@ -1 +1 @@
1
- {"version":3,"sources":["aspect.env.ts"],"names":["tsconfig","require","AspectEnvType","AspectEnv","constructor","reactEnv","aspectLoader","__getDescriptor","type","getTsConfig","tsConfig","targetConf","createTsCompiler","getCompiler","getNpmIgnore","context","patterns","CAPSULE_ARTIFACTS_DIR","isCoreEnv","component","id","toStringWithoutVersion","push","getPreviewConfig","strategyName","splitComponentBundle","getDependencies","dependencies","react","devDependencies","peerDependencies"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA,MAAMA,QAAQ,GAAGC,OAAO,CAAC,4BAAD,CAAxB;;AAEO,MAAMC,aAAa,GAAG,QAAtB;AAEP;AACA;AACA;;;;AACO,MAAMC,SAAN,CAA2C;AAChDC,EAAAA,WAAW,CAASC,QAAT,EAAqCC,YAArC,EAAqE;AAAA,SAA5DD,QAA4D,GAA5DA,QAA4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AAOf,uBAAe,SAPA;AAQf,4CAAoC;AARrB,OATZ;AAmBLE,MAAAA,gBAAgB,EAAE;AAChB;AACAF,QAAAA,KAAK,EAAE,oBAFS;AAGhB,qBAAa;AAHG;AAnBb,KAAP;AAyBD;;AArE+C","sourcesContent":["import { Compiler } from '@teambit/compiler';\nimport type { DependenciesEnv, GetNpmIgnoreContext } from '@teambit/envs';\nimport { merge } from 'lodash';\nimport { TsConfigSourceFile } from 'typescript';\nimport { ReactEnv } from '@teambit/react';\nimport { CAPSULE_ARTIFACTS_DIR } from '@teambit/builder';\nimport type { AspectLoaderMain } from '@teambit/aspect-loader';\n\nconst tsconfig = require('./typescript/tsconfig.json');\n\nexport const AspectEnvType = 'aspect';\n\n/**\n * a component environment built for Aspects .\n */\nexport class AspectEnv implements DependenciesEnv {\n constructor(private reactEnv: ReactEnv, private aspectLoader: AspectLoaderMain) {}\n\n icon = 'https://static.bit.dev/extensions-icons/default.svg';\n\n async __getDescriptor() {\n return {\n type: AspectEnvType,\n };\n }\n\n getTsConfig(tsConfig: TsConfigSourceFile) {\n const targetConf = merge(tsconfig, tsConfig);\n return targetConf;\n }\n\n createTsCompiler(tsConfig: TsConfigSourceFile): Compiler {\n return this.reactEnv.getCompiler(this.getTsConfig(tsConfig));\n }\n\n getNpmIgnore(context: GetNpmIgnoreContext) {\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\n // without this change, the package has \"index.ts\" file in the root, causing typescript to parse it instead of the\n // d.ts files. (changing the \"types\" prop in the package.json file doesn't help).\n const patterns = ['/*.ts', `${CAPSULE_ARTIFACTS_DIR}/`];\n\n // In order to load the env preview template from core aspects we need it to be in the package of the core envs\n // This is because we don't have the core envs in the local scope so we load it from the package itself in the bvm installation\n // as this will be excluded from the package tar by default (as it's under the CAPSULE_ARTIFACTS_DIR)\n // we want to make sure to add it for the core envs\n if (this.aspectLoader.isCoreEnv(context.component.id.toStringWithoutVersion())) {\n patterns.push(`!${CAPSULE_ARTIFACTS_DIR}/env-template`);\n }\n return patterns;\n }\n\n getPreviewConfig() {\n return {\n strategyName: 'component',\n splitComponentBundle: false,\n };\n }\n\n async getDependencies() {\n return {\n dependencies: {\n react: '-',\n 'react-dom': '-',\n 'core-js': '^3.0.0',\n // For aspects the babel runtime should be a runtime dep not only dev as they are compiled by babel\n '@babel/runtime': '7.12.18',\n },\n // TODO: add this only if using ts\n devDependencies: {\n react: '-',\n 'react-dom': '-',\n '@types/mocha': '-',\n '@types/node': '12.20.4',\n '@types/react': '^17.0.8',\n '@types/react-dom': '^17.0.5',\n '@types/jest': '^26.0.0',\n '@types/testing-library__jest-dom': '5.9.5',\n },\n peerDependencies: {\n // TODO: check if we really need react for aspects (maybe for ink support)\n react: '^16.8.0 || ^17.0.0',\n 'react-dom': '^16.8.0 || ^17.0.0',\n },\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["aspect.env.ts"],"names":["tsconfig","require","AspectEnvType","AspectEnv","constructor","reactEnv","aspectLoader","__getDescriptor","type","getTsConfig","tsConfig","targetConf","createTsCompiler","getCompiler","getTemplateBundler","context","transformers","createTemplateWebpackBundler","getNpmIgnore","patterns","CAPSULE_ARTIFACTS_DIR","isCoreEnv","component","id","toStringWithoutVersion","push","getPreviewConfig","strategyName","splitComponentBundle","getDependencies","dependencies","react","devDependencies","peerDependencies"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAKA,MAAMA,QAAQ,GAAGC,OAAO,CAAC,4BAAD,CAAxB;;AAEO,MAAMC,aAAa,GAAG,QAAtB;AAEP;AACA;AACA;;;;AACO,MAAMC,SAAN,CAA2C;AAChDC,EAAAA,WAAW,CAASC,QAAT,EAAqCC,YAArC,EAAqE;AAAA,SAA5DD,QAA4D,GAA5DA,QAA4D;AAAA,SAAhCC,YAAgC,GAAhCA,YAAgC;AAAA,kDAEzE,qDAFyE;AAAE;;AA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E;AAGf,wBAAgB,GAHD;AAIf,uBAAe,SAJA;AAKf,wBAAgB,SALD;AAMf,4BAAoB,SANL;AAOf,uBAAe,SAPA;AAQf,4CAAoC;AARrB,OATZ;AAmBLE,MAAAA,gBAAgB,EAAE;AAChB;AACAF,QAAAA,KAAK,EAAE,oBAFS;AAGhB,qBAAa;AAHG;AAnBb,KAAP;AAyBD;;AAzE+C","sourcesContent":["import { Compiler } from '@teambit/compiler';\nimport type { DependenciesEnv, GetNpmIgnoreContext } from '@teambit/envs';\nimport { merge } from 'lodash';\nimport { TsConfigSourceFile } from 'typescript';\nimport { ReactEnv } from '@teambit/react';\nimport { CAPSULE_ARTIFACTS_DIR } from '@teambit/builder';\nimport type { AspectLoaderMain } from '@teambit/aspect-loader';\nimport { Bundler, BundlerContext } from '@teambit/bundler';\nimport { WebpackConfigTransformer } from '@teambit/webpack';\n\nconst tsconfig = require('./typescript/tsconfig.json');\n\nexport const AspectEnvType = 'aspect';\n\n/**\n * a component environment built for Aspects .\n */\nexport class AspectEnv implements DependenciesEnv {\n constructor(private reactEnv: ReactEnv, private aspectLoader: AspectLoaderMain) {}\n\n icon = 'https://static.bit.dev/extensions-icons/default.svg';\n\n async __getDescriptor() {\n return {\n type: AspectEnvType,\n };\n }\n\n getTsConfig(tsConfig: TsConfigSourceFile) {\n const targetConf = merge(tsconfig, tsConfig);\n return targetConf;\n }\n\n createTsCompiler(tsConfig: TsConfigSourceFile): Compiler {\n return this.reactEnv.getCompiler(this.getTsConfig(tsConfig));\n }\n\n async getTemplateBundler(context: BundlerContext, transformers: WebpackConfigTransformer[] = []): Promise<Bundler> {\n return this.reactEnv.createTemplateWebpackBundler(context, transformers);\n }\n\n getNpmIgnore(context: GetNpmIgnoreContext) {\n // ignores only .ts files in the root directory, so d.ts files inside dists are unaffected.\n // without this change, the package has \"index.ts\" file in the root, causing typescript to parse it instead of the\n // d.ts files. (changing the \"types\" prop in the package.json file doesn't help).\n const patterns = ['/*.ts', `${CAPSULE_ARTIFACTS_DIR}/`];\n\n // In order to load the env preview template from core aspects we need it to be in the package of the core envs\n // This is because we don't have the core envs in the local scope so we load it from the package itself in the bvm installation\n // as this will be excluded from the package tar by default (as it's under the CAPSULE_ARTIFACTS_DIR)\n // we want to make sure to add it for the core envs\n if (this.aspectLoader.isCoreEnv(context.component.id.toStringWithoutVersion())) {\n patterns.push(`!${CAPSULE_ARTIFACTS_DIR}/env-template`);\n }\n return patterns;\n }\n\n getPreviewConfig() {\n return {\n strategyName: 'component',\n splitComponentBundle: false,\n };\n }\n\n async getDependencies() {\n return {\n dependencies: {\n react: '-',\n 'react-dom': '-',\n 'core-js': '^3.0.0',\n // For aspects the babel runtime should be a runtime dep not only dev as they are compiled by babel\n '@babel/runtime': '7.12.18',\n },\n // TODO: add this only if using ts\n devDependencies: {\n react: '-',\n 'react-dom': '-',\n '@types/mocha': '-',\n '@types/node': '12.20.4',\n '@types/react': '^17.0.8',\n '@types/react-dom': '^17.0.5',\n '@types/jest': '^26.0.0',\n '@types/testing-library__jest-dom': '5.9.5',\n },\n peerDependencies: {\n // TODO: check if we really need react for aspects (maybe for ink support)\n react: '^16.8.0 || ^17.0.0',\n 'react-dom': '^16.8.0 || ^17.0.0',\n },\n };\n }\n}\n"]}
@@ -83,19 +83,21 @@ function _aspect() {
83
83
 
84
84
  class AspectEnvUI {
85
85
  static async provider([compositionsUI, testerUi]) {
86
- const aspectEnvUI = new AspectEnvUI();
86
+ const aspectEnvUI = new AspectEnvUI(); // TODO: get the docs domain from the community aspect and pass it here as a prop
87
+
87
88
  testerUi.registerEmptyState(() => {
88
89
  return /*#__PURE__*/_react().default.createElement(_designUi().EmptyBox, {
89
90
  title: "This component doesn\u2019t have any tests.",
90
91
  linkText: "Learn how to add tests to your aspect components",
91
- link: "https://harmony-docs.bit.dev/testing/overview/"
92
+ link: `https://bit.dev/docs/dev-services-overview/tester/tester-overview`
92
93
  });
93
- });
94
+ }); // TODO: get the docs domain from the community aspect and pass it here as a prop
95
+
94
96
  compositionsUI.registerEmptyState(() => {
95
97
  return /*#__PURE__*/_react().default.createElement(_designUi().EmptyBox, {
96
98
  title: "This component doesn\u2019t have any compositions.",
97
99
  linkText: "Learn how to add compositions to your aspect components",
98
- link: "https://harmony-docs.bit.dev/compositions/overview/"
100
+ link: `https://bit.dev/docs/dev-services-overview/compositions/compositions-overview`
99
101
  });
100
102
  });
101
103
  return aspectEnvUI;
@@ -1 +1 @@
1
- {"version":3,"sources":["aspect.ui.runtime.tsx"],"names":["AspectEnvUI","provider","compositionsUI","testerUi","aspectEnvUI","registerEmptyState","UIRuntime","CompositionsAspect","TesterAspect","AspectAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;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;;AAEO,MAAMA,WAAN,CAAkB;AAKF,eAARC,QAAQ,CAAC,CAACC,cAAD,EAAiBC,QAAjB,CAAD,EAAyD;AAC5E,UAAMC,WAAW,GAAG,IAAIJ,WAAJ,EAApB;AAEAG,IAAAA,QAAQ,CAACE,kBAAT,CAA4B,MAAM;AAChC,0BACE,+BAAC,oBAAD;AACE,QAAA,KAAK,EAAC,6CADR;AAEE,QAAA,QAAQ,EAAC,kDAFX;AAGE,QAAA,IAAI,EAAC;AAHP,QADF;AAOD,KARD;AAUAH,IAAAA,cAAc,CAACG,kBAAf,CAAkC,MAAM;AACtC,0BACE,+BAAC,oBAAD;AACE,QAAA,KAAK,EAAC,oDADR;AAEE,QAAA,QAAQ,EAAC,yDAFX;AAGE,QAAA,IAAI,EAAC;AAHP,QADF;AAOD,KARD;AAUA,WAAOD,WAAP;AACD;;AA7BsB;;;gCAAZJ,W,aACMM,e;gCADNN,W,WAEI,E;gCAFJA,W,kBAGW,CAACO,kCAAD,EAAqBC,sBAArB,C;;AA6BxBC,uBAAaC,UAAb,CAAwBV,WAAxB;;eAEeA,W","sourcesContent":["import React from 'react';\nimport { CompositionsAspect, CompositionsUI } from '@teambit/compositions';\nimport { UIRuntime } from '@teambit/ui';\nimport { TesterAspect, TesterUI } from '@teambit/tester';\nimport { EmptyBox } from '@teambit/design.ui.empty-box';\nimport { AspectAspect } from './aspect.aspect';\n\nexport class AspectEnvUI {\n static runtime = UIRuntime;\n static slots = [];\n static dependencies = [CompositionsAspect, TesterAspect];\n\n static async provider([compositionsUI, testerUi]: [CompositionsUI, TesterUI]) {\n const aspectEnvUI = new AspectEnvUI();\n\n testerUi.registerEmptyState(() => {\n return (\n <EmptyBox\n title=\"This component doesn’t have any tests.\"\n linkText=\"Learn how to add tests to your aspect components\"\n link=\"https://harmony-docs.bit.dev/testing/overview/\"\n />\n );\n });\n\n compositionsUI.registerEmptyState(() => {\n return (\n <EmptyBox\n title=\"This component doesn’t have any compositions.\"\n linkText=\"Learn how to add compositions to your aspect components\"\n link=\"https://harmony-docs.bit.dev/compositions/overview/\"\n />\n );\n });\n\n return aspectEnvUI;\n }\n}\n\nAspectAspect.addRuntime(AspectEnvUI);\n\nexport default AspectEnvUI;\n"]}
1
+ {"version":3,"sources":["aspect.ui.runtime.tsx"],"names":["AspectEnvUI","provider","compositionsUI","testerUi","aspectEnvUI","registerEmptyState","UIRuntime","CompositionsAspect","TesterAspect","AspectAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;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;;AAEO,MAAMA,WAAN,CAAkB;AAKF,eAARC,QAAQ,CAAC,CAACC,cAAD,EAAiBC,QAAjB,CAAD,EAAyD;AAC5E,UAAMC,WAAW,GAAG,IAAIJ,WAAJ,EAApB,CAD4E,CAE5E;;AACAG,IAAAA,QAAQ,CAACE,kBAAT,CAA4B,MAAM;AAChC,0BACE,+BAAC,oBAAD;AACE,QAAA,KAAK,EAAC,6CADR;AAEE,QAAA,QAAQ,EAAC,kDAFX;AAGE,QAAA,IAAI,EAAG;AAHT,QADF;AAOD,KARD,EAH4E,CAY5E;;AACAH,IAAAA,cAAc,CAACG,kBAAf,CAAkC,MAAM;AACtC,0BACE,+BAAC,oBAAD;AACE,QAAA,KAAK,EAAC,oDADR;AAEE,QAAA,QAAQ,EAAC,yDAFX;AAGE,QAAA,IAAI,EAAG;AAHT,QADF;AAOD,KARD;AAUA,WAAOD,WAAP;AACD;;AA7BsB;;;gCAAZJ,W,aACMM,e;gCADNN,W,WAEI,E;gCAFJA,W,kBAGW,CAACO,kCAAD,EAAqBC,sBAArB,C;;AA6BxBC,uBAAaC,UAAb,CAAwBV,WAAxB;;eAEeA,W","sourcesContent":["import React from 'react';\nimport { CompositionsAspect, CompositionsUI } from '@teambit/compositions';\nimport { UIRuntime } from '@teambit/ui';\nimport { TesterAspect, TesterUI } from '@teambit/tester';\nimport { EmptyBox } from '@teambit/design.ui.empty-box';\nimport { AspectAspect } from './aspect.aspect';\n\nexport class AspectEnvUI {\n static runtime = UIRuntime;\n static slots = [];\n static dependencies = [CompositionsAspect, TesterAspect];\n\n static async provider([compositionsUI, testerUi]: [CompositionsUI, TesterUI]) {\n const aspectEnvUI = new AspectEnvUI();\n // TODO: get the docs domain from the community aspect and pass it here as a prop\n testerUi.registerEmptyState(() => {\n return (\n <EmptyBox\n title=\"This component doesn’t have any tests.\"\n linkText=\"Learn how to add tests to your aspect components\"\n link={`https://bit.dev/docs/dev-services-overview/tester/tester-overview`}\n />\n );\n });\n // TODO: get the docs domain from the community aspect and pass it here as a prop\n compositionsUI.registerEmptyState(() => {\n return (\n <EmptyBox\n title=\"This component doesn’t have any compositions.\"\n linkText=\"Learn how to add compositions to your aspect components\"\n link={`https://bit.dev/docs/dev-services-overview/compositions/compositions-overview`}\n />\n );\n });\n\n return aspectEnvUI;\n }\n}\n\nAspectAspect.addRuntime(AspectEnvUI);\n\nexport default AspectEnvUI;\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/aspect",
3
- "version": "0.0.676",
3
+ "version": "0.0.679",
4
4
  "homepage": "https://bit.dev/teambit/harmony/aspect",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "aspect",
9
- "version": "0.0.676"
9
+ "version": "0.0.679"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -27,23 +27,25 @@
27
27
  "@babel/runtime": "7.12.18",
28
28
  "core-js": "^3.0.0",
29
29
  "@teambit/cli-table": "0.0.33",
30
- "@teambit/cli": "0.0.453",
31
- "@teambit/aspect-loader": "0.0.676",
32
- "@teambit/builder": "0.0.676",
33
- "@teambit/compiler": "0.0.676",
34
- "@teambit/envs": "0.0.676",
35
- "@teambit/react": "0.0.676",
36
- "@teambit/babel": "0.0.676",
30
+ "@teambit/cli": "0.0.454",
31
+ "@teambit/aspect-loader": "0.0.679",
32
+ "@teambit/builder": "0.0.679",
33
+ "@teambit/bundler": "0.0.679",
34
+ "@teambit/compiler": "0.0.679",
35
+ "@teambit/envs": "0.0.679",
36
+ "@teambit/react": "0.0.679",
37
+ "@teambit/webpack": "0.0.679",
38
+ "@teambit/babel": "0.0.679",
37
39
  "@teambit/bit-error": "0.0.394",
38
- "@teambit/component-id": "0.0.401",
39
- "@teambit/dependency-resolver": "0.0.676",
40
- "@teambit/generator": "0.0.676",
41
- "@teambit/workspace": "0.0.676",
42
- "@teambit/compositions": "0.0.676",
40
+ "@teambit/component-id": "0.0.402",
41
+ "@teambit/dependency-resolver": "0.0.679",
42
+ "@teambit/generator": "0.0.679",
43
+ "@teambit/workspace": "0.0.679",
44
+ "@teambit/compositions": "0.0.679",
43
45
  "@teambit/design.ui.empty-box": "0.0.353",
44
- "@teambit/tester": "0.0.676",
45
- "@teambit/ui": "0.0.676",
46
- "@teambit/isolator": "0.0.676"
46
+ "@teambit/tester": "0.0.679",
47
+ "@teambit/ui": "0.0.679",
48
+ "@teambit/isolator": "0.0.679"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@types/react": "^17.0.8",
@@ -55,7 +57,7 @@
55
57
  "@types/node": "12.20.4"
56
58
  },
57
59
  "peerDependencies": {
58
- "@teambit/legacy": "1.0.232",
60
+ "@teambit/legacy": "1.0.233",
59
61
  "react-dom": "^16.8.0 || ^17.0.0",
60
62
  "react": "^16.8.0 || ^17.0.0"
61
63
  },
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@0.0.676/dist/aspect.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@0.0.676/dist/aspect.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@0.0.679/dist/aspect.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@0.0.679/dist/aspect.docs.mdx')]