@teambit/aspect-loader 0.0.880 → 0.0.882

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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.AspectDefinition = void 0;
7
-
8
7
  class AspectDefinition {
9
8
  constructor(
10
9
  /**
@@ -33,13 +32,11 @@ class AspectDefinition {
33
32
  this.id = id;
34
33
  this.local = local;
35
34
  }
36
-
37
35
  get getId() {
38
36
  if (this.component) return this.component.id.toString();
39
37
  if (this.id) return this.id;
40
38
  return null;
41
39
  }
42
-
43
40
  static from({
44
41
  component,
45
42
  aspectPath,
@@ -48,9 +45,7 @@ class AspectDefinition {
48
45
  }) {
49
46
  return new AspectDefinition(aspectPath, runtimePath, component, id);
50
47
  }
51
-
52
48
  }
53
-
54
49
  exports.AspectDefinition = AspectDefinition;
55
50
 
56
51
  //# sourceMappingURL=aspect-definition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["AspectDefinition","constructor","aspectPath","runtimePath","component","id","local","getId","toString","from"],"sources":["aspect-definition.ts"],"sourcesContent":["import { Component } from '@teambit/component';\n\nexport type AspectDefinitionProps = {\n id?: string;\n component?: Component;\n aspectPath: string;\n runtimePath: string | null;\n};\n\nexport class AspectDefinition {\n constructor(\n /**\n * path the the root directory of the aspect module.\n */\n readonly aspectPath: string,\n\n /**\n * path to the runtime entry\n */\n readonly runtimePath: string | null,\n /**\n * aspect component\n */\n readonly component?: Component,\n /**\n * id of the component (used instead of component in the case of core aspect)\n */\n readonly id?: string,\n /**\n * aspect defined using 'file://' protocol\n */\n readonly local?: boolean\n ) {}\n\n get getId() {\n if (this.component) return this.component.id.toString();\n if (this.id) return this.id;\n return null;\n }\n\n static from({ component, aspectPath, runtimePath, id }: AspectDefinitionProps) {\n return new AspectDefinition(aspectPath, runtimePath, component, id);\n }\n}\n"],"mappings":";;;;;;;AASO,MAAMA,gBAAN,CAAuB;EAC5BC,WAAW;EACT;AACJ;AACA;EACaC,UAJA;EAMT;AACJ;AACA;EACaC,WATA;EAUT;AACJ;AACA;EACaC,SAbA;EAcT;AACJ;AACA;EACaC,EAjBA;EAkBT;AACJ;AACA;EACaC,KArBA,EAsBT;IAAA,KAlBSJ,UAkBT,GAlBSA,UAkBT;IAAA,KAbSC,WAaT,GAbSA,WAaT;IAAA,KATSC,SAST,GATSA,SAST;IAAA,KALSC,EAKT,GALSA,EAKT;IAAA,KADSC,KACT,GADSA,KACT;EAAE;;EAEK,IAALC,KAAK,GAAG;IACV,IAAI,KAAKH,SAAT,EAAoB,OAAO,KAAKA,SAAL,CAAeC,EAAf,CAAkBG,QAAlB,EAAP;IACpB,IAAI,KAAKH,EAAT,EAAa,OAAO,KAAKA,EAAZ;IACb,OAAO,IAAP;EACD;;EAEU,OAAJI,IAAI,CAAC;IAAEL,SAAF;IAAaF,UAAb;IAAyBC,WAAzB;IAAsCE;EAAtC,CAAD,EAAoE;IAC7E,OAAO,IAAIL,gBAAJ,CAAqBE,UAArB,EAAiCC,WAAjC,EAA8CC,SAA9C,EAAyDC,EAAzD,CAAP;EACD;;AAjC2B"}
1
+ {"version":3,"names":["AspectDefinition","constructor","aspectPath","runtimePath","component","id","local","getId","toString","from"],"sources":["aspect-definition.ts"],"sourcesContent":["import { Component } from '@teambit/component';\n\nexport type AspectDefinitionProps = {\n id?: string;\n component?: Component;\n aspectPath: string;\n runtimePath: string | null;\n};\n\nexport class AspectDefinition {\n constructor(\n /**\n * path the the root directory of the aspect module.\n */\n readonly aspectPath: string,\n\n /**\n * path to the runtime entry\n */\n readonly runtimePath: string | null,\n /**\n * aspect component\n */\n readonly component?: Component,\n /**\n * id of the component (used instead of component in the case of core aspect)\n */\n readonly id?: string,\n /**\n * aspect defined using 'file://' protocol\n */\n readonly local?: boolean\n ) {}\n\n get getId() {\n if (this.component) return this.component.id.toString();\n if (this.id) return this.id;\n return null;\n }\n\n static from({ component, aspectPath, runtimePath, id }: AspectDefinitionProps) {\n return new AspectDefinition(aspectPath, runtimePath, component, id);\n }\n}\n"],"mappings":";;;;;;AASO,MAAMA,gBAAgB,CAAC;EAC5BC,WAAW;EACT;AACJ;AACA;EACaC,UAAkB;EAE3B;AACJ;AACA;EACaC,WAA0B;EACnC;AACJ;AACA;EACaC,SAAqB;EAC9B;AACJ;AACA;EACaC,EAAW;EACpB;AACJ;AACA;EACaC,KAAe,EACxB;IAAA,KAlBSJ,UAAkB,GAAlBA,UAAkB;IAAA,KAKlBC,WAA0B,GAA1BA,WAA0B;IAAA,KAI1BC,SAAqB,GAArBA,SAAqB;IAAA,KAIrBC,EAAW,GAAXA,EAAW;IAAA,KAIXC,KAAe,GAAfA,KAAe;EACvB;EAEH,IAAIC,KAAK,GAAG;IACV,IAAI,IAAI,CAACH,SAAS,EAAE,OAAO,IAAI,CAACA,SAAS,CAACC,EAAE,CAACG,QAAQ,EAAE;IACvD,IAAI,IAAI,CAACH,EAAE,EAAE,OAAO,IAAI,CAACA,EAAE;IAC3B,OAAO,IAAI;EACb;EAEA,OAAOI,IAAI,CAAC;IAAEL,SAAS;IAAEF,UAAU;IAAEC,WAAW;IAAEE;EAA0B,CAAC,EAAE;IAC7E,OAAO,IAAIL,gBAAgB,CAACE,UAAU,EAAEC,WAAW,EAAEC,SAAS,EAAEC,EAAE,CAAC;EACrE;AACF;AAAC"}
@@ -4,22 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.AspectLoaderAspect = void 0;
7
-
8
7
  function _harmony() {
9
8
  const data = require("@teambit/harmony");
10
-
11
9
  _harmony = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  const AspectLoaderAspect = _harmony().Aspect.create({
19
15
  id: 'teambit.harmony/aspect-loader',
20
16
  dependencies: []
21
17
  });
22
-
23
18
  exports.AspectLoaderAspect = AspectLoaderAspect;
24
19
  var _default = AspectLoaderAspect;
25
20
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"names":["AspectLoaderAspect","Aspect","create","id","dependencies"],"sources":["aspect-loader.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const AspectLoaderAspect = Aspect.create({\n id: 'teambit.harmony/aspect-loader',\n dependencies: [],\n});\n\nexport default AspectLoaderAspect;\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,kBAAkB,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EAC9CC,EAAE,EAAE,+BAD0C;EAE9CC,YAAY,EAAE;AAFgC,CAAd,CAA3B;;;eAKQJ,kB"}
1
+ {"version":3,"names":["AspectLoaderAspect","Aspect","create","id","dependencies"],"sources":["aspect-loader.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const AspectLoaderAspect = Aspect.create({\n id: 'teambit.harmony/aspect-loader',\n dependencies: [],\n});\n\nexport default AspectLoaderAspect;\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,kBAAkB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC9CC,EAAE,EAAE,+BAA+B;EACnCC,YAAY,EAAE;AAChB,CAAC,CAAC;AAAC;AAAA,eAEYJ,kBAAkB;AAAA"}
@@ -1,22 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.Logo = void 0;
9
-
10
8
  function _react() {
11
9
  const data = _interopRequireDefault(require("react"));
12
-
13
10
  _react = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
21
16
  style: {
22
17
  height: '100%',
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
29
24
  },
30
25
  src: "https://static.bit.dev/extensions-icons/aspect-loader.svg"
31
26
  }));
32
-
33
27
  exports.Logo = Logo;
34
28
 
35
29
  //# sourceMappingURL=aspect-loader.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["aspect-loader.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/aspect-loader.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
1
+ {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["aspect-loader.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/aspect-loader.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAA2D,EAAG,CAEhG;AAAC"}