@teambit/aspect 1.0.667 → 1.0.669

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 (42) hide show
  1. package/artifacts/env-template/public/{492.6681dad96cb7f28909b0.js → 492.a06b8100304ff9195900.js} +2 -2
  2. package/artifacts/env-template/public/{977.2dc9f009f95933831eec.js → 883.ecce899a53efa1970783.js} +1 -1
  3. package/artifacts/env-template/public/assets-manifest.json +14 -14
  4. package/artifacts/env-template/public/{compositions.918c06e1b1d0d701c3e4.js → compositions.517257488f5f0635f0eb.js} +1 -1
  5. package/artifacts/env-template/public/compositions.html +1 -1
  6. package/artifacts/env-template/public/{overview.4111e6dd09733f0ad396.js → overview.8e4da9db213209c7e7ff.js} +1 -1
  7. package/artifacts/env-template/public/overview.html +1 -1
  8. package/artifacts/env-template/public/{peers.17a2bf25388a76999444.js → peers.365f27583ba35c39e675.js} +1 -1
  9. package/artifacts/env-template/public/{preview-root.05f90bb5fbdee8df22bf.js → preview-root.253a56e967670ccca698.js} +1 -1
  10. package/artifacts/env-template/public/static/css/{492.cb193a47.css → 492.608595b5.css} +1 -1
  11. package/aspect.ui.runtime.tsx +4 -2
  12. package/dist/aspect.cmd.d.ts +2 -2
  13. package/dist/aspect.cmd.js.map +1 -1
  14. package/dist/aspect.env.d.ts +13 -13
  15. package/dist/aspect.env.js.map +1 -1
  16. package/dist/aspect.main.runtime.d.ts +17 -16
  17. package/dist/aspect.main.runtime.js.map +1 -1
  18. package/dist/aspect.templates.d.ts +2 -2
  19. package/dist/aspect.templates.js.map +1 -1
  20. package/dist/aspect.ui.runtime.d.ts +2 -2
  21. package/dist/aspect.ui.runtime.js.map +1 -1
  22. package/dist/core-exporter.task.d.ts +3 -3
  23. package/dist/core-exporter.task.js.map +1 -1
  24. package/dist/{preview-1753809186996.js → preview-1753848836384.js} +2 -2
  25. package/dist/templates/aspect/files/aspect-file.d.ts +1 -1
  26. package/dist/templates/aspect/files/aspect-file.js.map +1 -1
  27. package/dist/templates/aspect/files/config-file.d.ts +1 -1
  28. package/dist/templates/aspect/files/config-file.js.map +1 -1
  29. package/dist/templates/aspect/files/index.d.ts +1 -1
  30. package/dist/templates/aspect/files/index.js.map +1 -1
  31. package/dist/templates/aspect/files/main-runtime.d.ts +1 -1
  32. package/dist/templates/aspect/files/main-runtime.js.map +1 -1
  33. package/dist/templates/aspect/index.d.ts +1 -1
  34. package/dist/templates/aspect/index.js.map +1 -1
  35. package/package.json +27 -27
  36. package/templates/aspect/files/aspect-file.ts +1 -1
  37. package/templates/aspect/files/config-file.ts +1 -1
  38. package/templates/aspect/files/index.ts +1 -1
  39. package/templates/aspect/files/main-runtime.ts +1 -1
  40. package/templates/aspect/index.ts +1 -1
  41. /package/{compositions-1753809186996.js → compositions-1753848836384.js} +0 -0
  42. /package/{overview-1753809186996.js → overview-1753848836384.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { ComponentContext } from '@teambit/generator';
1
+ import type { ComponentContext } from '@teambit/generator';
2
2
  export declare function mainRuntime({ name, namePascalCase }: ComponentContext): string;
@@ -1 +1 @@
1
- {"version":3,"names":["mainRuntime","name","namePascalCase"],"sources":["main-runtime.ts"],"sourcesContent":["import { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntime({ name, namePascalCase }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ${namePascalCase}Aspect } from './${name}.aspect';\n\nexport class ${namePascalCase}Main {\n // your aspect API goes here.\n getSomething() {}\n\n static slots = [];\n // define your aspect dependencies here.\n // in case you need to use another aspect API.\n static dependencies = [];\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new ${namePascalCase}Main();\n }\n}\n\n${namePascalCase}Aspect.addRuntime(${namePascalCase}Main);\n\nexport default ${namePascalCase}Main;\n`;\n}\n"],"mappings":";;;;;;AAEO,SAASA,WAAWA,CAAC;EAAEC,IAAI;EAAEC;AAAiC,CAAC,EAAE;EACtE,OAAO;AACT,WAAWA,cAAc,oBAAoBD,IAAI;AACjD;AACA,eAAeC,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiBA,cAAc;AAC/B;AACA;AACA;AACA,EAAEA,cAAc,qBAAqBA,cAAc;AACnD;AACA,iBAAiBA,cAAc;AAC/B,CAAC;AACD","ignoreList":[]}
1
+ {"version":3,"names":["mainRuntime","name","namePascalCase"],"sources":["main-runtime.ts"],"sourcesContent":["import type { ComponentContext } from '@teambit/generator';\n\nexport function mainRuntime({ name, namePascalCase }: ComponentContext) {\n return `import { MainRuntime } from '@teambit/cli';\nimport { ${namePascalCase}Aspect } from './${name}.aspect';\n\nexport class ${namePascalCase}Main {\n // your aspect API goes here.\n getSomething() {}\n\n static slots = [];\n // define your aspect dependencies here.\n // in case you need to use another aspect API.\n static dependencies = [];\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new ${namePascalCase}Main();\n }\n}\n\n${namePascalCase}Aspect.addRuntime(${namePascalCase}Main);\n\nexport default ${namePascalCase}Main;\n`;\n}\n"],"mappings":";;;;;;AAEO,SAASA,WAAWA,CAAC;EAAEC,IAAI;EAAEC;AAAiC,CAAC,EAAE;EACtE,OAAO;AACT,WAAWA,cAAc,oBAAoBD,IAAI;AACjD;AACA,eAAeC,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiBA,cAAc;AAC/B;AACA;AACA;AACA,EAAEA,cAAc,qBAAqBA,cAAc;AACnD;AACA,iBAAiBA,cAAc;AAC/B,CAAC;AACD","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import { ComponentTemplate } from '@teambit/generator';
1
+ import type { ComponentTemplate } from '@teambit/generator';
2
2
  export declare const aspectTemplate: ComponentTemplate;
@@ -1 +1 @@
1
- {"version":3,"names":["_index","data","require","_aspectFile","_mainRuntime","aspectTemplate","exports","name","description","generateFiles","context","relativePath","content","indexFile","isMain","aspectFile","mainRuntime","config","env"],"sources":["index.ts"],"sourcesContent":["import { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { aspectFile } from './files/aspect-file';\nimport { mainRuntime } from './files/main-runtime';\n\nexport const aspectTemplate: ComponentTemplate = {\n name: 'bit-aspect',\n description: 'extend Bit capabilities',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(context),\n isMain: true,\n },\n {\n relativePath: `${context.name}.aspect.ts`,\n content: aspectFile(context),\n },\n {\n relativePath: `${context.name}.main.runtime.ts`,\n content: mainRuntime(context),\n },\n ];\n },\n config: {\n 'teambit.harmony/aspect': {},\n 'teambit.envs/envs': {\n env: 'teambit.harmony/aspect',\n },\n },\n};\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,aAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,YAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMI,cAAiC,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC/CE,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,yBAAyB;EACtCC,aAAa,EAAGC,OAAyB,IAAK;IAC5C,OAAO,CACL;MACEC,YAAY,EAAE,UAAU;MACxBC,OAAO,EAAE,IAAAC,kBAAS,EAACH,OAAO,CAAC;MAC3BI,MAAM,EAAE;IACV,CAAC,EACD;MACEH,YAAY,EAAE,GAAGD,OAAO,CAACH,IAAI,YAAY;MACzCK,OAAO,EAAE,IAAAG,wBAAU,EAACL,OAAO;IAC7B,CAAC,EACD;MACEC,YAAY,EAAE,GAAGD,OAAO,CAACH,IAAI,kBAAkB;MAC/CK,OAAO,EAAE,IAAAI,0BAAW,EAACN,OAAO;IAC9B,CAAC,CACF;EACH,CAAC;EACDO,MAAM,EAAE;IACN,wBAAwB,EAAE,CAAC,CAAC;IAC5B,mBAAmB,EAAE;MACnBC,GAAG,EAAE;IACP;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_index","data","require","_aspectFile","_mainRuntime","aspectTemplate","exports","name","description","generateFiles","context","relativePath","content","indexFile","isMain","aspectFile","mainRuntime","config","env"],"sources":["index.ts"],"sourcesContent":["import type { ComponentContext, ComponentTemplate } from '@teambit/generator';\nimport { indexFile } from './files/index';\nimport { aspectFile } from './files/aspect-file';\nimport { mainRuntime } from './files/main-runtime';\n\nexport const aspectTemplate: ComponentTemplate = {\n name: 'bit-aspect',\n description: 'extend Bit capabilities',\n generateFiles: (context: ComponentContext) => {\n return [\n {\n relativePath: 'index.ts',\n content: indexFile(context),\n isMain: true,\n },\n {\n relativePath: `${context.name}.aspect.ts`,\n content: aspectFile(context),\n },\n {\n relativePath: `${context.name}.main.runtime.ts`,\n content: mainRuntime(context),\n },\n ];\n },\n config: {\n 'teambit.harmony/aspect': {},\n 'teambit.envs/envs': {\n env: 'teambit.harmony/aspect',\n },\n },\n};\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,aAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,YAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAMI,cAAiC,GAAAC,OAAA,CAAAD,cAAA,GAAG;EAC/CE,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,yBAAyB;EACtCC,aAAa,EAAGC,OAAyB,IAAK;IAC5C,OAAO,CACL;MACEC,YAAY,EAAE,UAAU;MACxBC,OAAO,EAAE,IAAAC,kBAAS,EAACH,OAAO,CAAC;MAC3BI,MAAM,EAAE;IACV,CAAC,EACD;MACEH,YAAY,EAAE,GAAGD,OAAO,CAACH,IAAI,YAAY;MACzCK,OAAO,EAAE,IAAAG,wBAAU,EAACL,OAAO;IAC7B,CAAC,EACD;MACEC,YAAY,EAAE,GAAGD,OAAO,CAACH,IAAI,kBAAkB;MAC/CK,OAAO,EAAE,IAAAI,0BAAW,EAACN,OAAO;IAC9B,CAAC,CACF;EACH,CAAC;EACDO,MAAM,EAAE;IACN,wBAAwB,EAAE,CAAC,CAAC;IAC5B,mBAAmB,EAAE;MACnBC,GAAG,EAAE;IACP;EACF;AACF,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/aspect",
3
- "version": "1.0.667",
3
+ "version": "1.0.669",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/aspect",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "aspect",
9
- "version": "1.0.667"
9
+ "version": "1.0.669"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -27,7 +27,7 @@
27
27
  "@teambit/harmony": "0.4.7",
28
28
  "@teambit/cli-table": "0.0.50",
29
29
  "@teambit/legacy.constants": "0.0.13",
30
- "@teambit/legacy.extension-data": "0.0.59",
30
+ "@teambit/legacy.extension-data": "0.0.60",
31
31
  "@teambit/compilation.babel-compiler": "1.1.13",
32
32
  "@teambit/defender.eslint-linter": "1.0.54",
33
33
  "@teambit/defender.jest-tester": "2.0.17",
@@ -40,30 +40,30 @@
40
40
  "@bitdev/symphony.generators.symphony-templates": "3.0.4",
41
41
  "@teambit/design.ui.empty-box": "0.0.363",
42
42
  "@teambit/react.eslint-config-bit-react": "1.0.243",
43
- "@teambit/cli": "0.0.1244",
44
- "@teambit/aspect-loader": "1.0.667",
45
- "@teambit/builder": "1.0.667",
46
- "@teambit/bundler": "1.0.667",
47
- "@teambit/compiler": "1.0.667",
48
- "@teambit/dev-files": "1.0.667",
49
- "@teambit/envs": "1.0.667",
50
- "@teambit/logger": "0.0.1337",
51
- "@teambit/pkg": "1.0.667",
52
- "@teambit/preview": "1.0.667",
53
- "@teambit/react": "1.0.667",
54
- "@teambit/tester": "1.0.667",
55
- "@teambit/typescript": "1.0.667",
56
- "@teambit/webpack": "1.0.667",
57
- "@teambit/worker": "0.0.1548",
58
- "@teambit/workspace-config-files": "1.0.667",
59
- "@teambit/component": "1.0.667",
60
- "@teambit/dependency-resolver": "1.0.667",
61
- "@teambit/generator": "1.0.668",
62
- "@teambit/workspace": "1.0.667",
63
- "@teambit/compositions": "1.0.667",
64
- "@teambit/ui": "1.0.667",
65
- "@teambit/isolator": "1.0.667",
66
- "@teambit/node": "1.0.667"
43
+ "@teambit/cli": "0.0.1246",
44
+ "@teambit/aspect-loader": "1.0.669",
45
+ "@teambit/builder": "1.0.669",
46
+ "@teambit/bundler": "1.0.669",
47
+ "@teambit/compiler": "1.0.669",
48
+ "@teambit/dev-files": "1.0.669",
49
+ "@teambit/envs": "1.0.669",
50
+ "@teambit/logger": "0.0.1339",
51
+ "@teambit/pkg": "1.0.669",
52
+ "@teambit/preview": "1.0.669",
53
+ "@teambit/react": "1.0.669",
54
+ "@teambit/tester": "1.0.669",
55
+ "@teambit/typescript": "1.0.669",
56
+ "@teambit/webpack": "1.0.669",
57
+ "@teambit/worker": "0.0.1550",
58
+ "@teambit/workspace-config-files": "1.0.669",
59
+ "@teambit/component": "1.0.669",
60
+ "@teambit/dependency-resolver": "1.0.669",
61
+ "@teambit/generator": "1.0.670",
62
+ "@teambit/workspace": "1.0.669",
63
+ "@teambit/compositions": "1.0.669",
64
+ "@teambit/ui": "1.0.669",
65
+ "@teambit/isolator": "1.0.669",
66
+ "@teambit/node": "1.0.669"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/lodash": "4.14.165",
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '@teambit/generator';
1
+ import type { ComponentContext } from '@teambit/generator';
2
2
 
3
3
  export function aspectFile({ namePascalCase, componentId }: ComponentContext) {
4
4
  return `import { Aspect } from '@teambit/harmony';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '@teambit/generator';
1
+ import type { ComponentContext } from '@teambit/generator';
2
2
 
3
3
  export function configFile({ namePascalCase }: ComponentContext) {
4
4
  return `
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '@teambit/generator';
1
+ import type { ComponentContext } from '@teambit/generator';
2
2
 
3
3
  export function indexFile({ namePascalCase, name }: ComponentContext) {
4
4
  return `import { ${namePascalCase}Aspect } from './${name}.aspect';
@@ -1,4 +1,4 @@
1
- import { ComponentContext } from '@teambit/generator';
1
+ import type { ComponentContext } from '@teambit/generator';
2
2
 
3
3
  export function mainRuntime({ name, namePascalCase }: ComponentContext) {
4
4
  return `import { MainRuntime } from '@teambit/cli';
@@ -1,4 +1,4 @@
1
- import { ComponentContext, ComponentTemplate } from '@teambit/generator';
1
+ import type { ComponentContext, ComponentTemplate } from '@teambit/generator';
2
2
  import { indexFile } from './files/index';
3
3
  import { aspectFile } from './files/aspect-file';
4
4
  import { mainRuntime } from './files/main-runtime';