@teambit/community 0.0.139 → 0.0.141

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,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CommunityAspect = 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 CommunityAspect = _harmony().Aspect.create({
19
15
  id: 'teambit.community/community'
20
16
  });
21
-
22
17
  exports.CommunityAspect = CommunityAspect;
23
18
 
24
19
  //# sourceMappingURL=community.aspect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CommunityAspect","Aspect","create","id"],"sources":["community.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CommunityAspect = Aspect.create({\n id: 'teambit.community/community',\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,eAAe,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EAC3CC,EAAE,EAAE;AADuC,CAAd,CAAxB"}
1
+ {"version":3,"names":["CommunityAspect","Aspect","create","id"],"sources":["community.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CommunityAspect = Aspect.create({\n id: 'teambit.community/community',\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,eAAe,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC3CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC"}
@@ -1,73 +1,53 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.promise.js");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.CommunityMain = void 0;
11
-
12
9
  function _defineProperty2() {
13
10
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
11
  _defineProperty2 = function () {
16
12
  return data;
17
13
  };
18
-
19
14
  return data;
20
15
  }
21
-
22
16
  function _cli() {
23
17
  const data = require("@teambit/cli");
24
-
25
18
  _cli = function () {
26
19
  return data;
27
20
  };
28
-
29
21
  return data;
30
22
  }
31
-
32
23
  function _constants() {
33
24
  const data = require("@teambit/legacy/dist/constants");
34
-
35
25
  _constants = function () {
36
26
  return data;
37
27
  };
38
-
39
28
  return data;
40
29
  }
41
-
42
30
  function _community() {
43
31
  const data = require("./community.aspect");
44
-
45
32
  _community = function () {
46
33
  return data;
47
34
  };
48
-
49
35
  return data;
50
36
  }
51
-
52
37
  class CommunityMain {
53
38
  constructor(config) {
54
39
  this.config = config;
55
40
  }
56
-
57
41
  getBaseDomain() {
58
42
  return this.config.communityDomain;
59
43
  }
60
-
61
44
  getDocsDomain() {
62
45
  return this.config.docsDomain;
63
46
  }
64
-
65
47
  static async provider(_deps, config) {
66
48
  return new CommunityMain(config);
67
49
  }
68
-
69
50
  }
70
-
71
51
  exports.CommunityMain = CommunityMain;
72
52
  (0, _defineProperty2().default)(CommunityMain, "slots", []);
73
53
  (0, _defineProperty2().default)(CommunityMain, "dependencies", []);
@@ -76,7 +56,6 @@ exports.CommunityMain = CommunityMain;
76
56
  communityDomain: _constants().BASE_COMMUNITY_DOMAIN,
77
57
  docsDomain: _constants().BASE_DOCS_DOMAIN
78
58
  });
79
-
80
59
  _community().CommunityAspect.addRuntime(CommunityMain);
81
60
 
82
61
  //# sourceMappingURL=community.main.runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CommunityMain","constructor","config","getBaseDomain","communityDomain","getDocsDomain","docsDomain","provider","_deps","MainRuntime","BASE_COMMUNITY_DOMAIN","BASE_DOCS_DOMAIN","CommunityAspect","addRuntime"],"sources":["community.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { BASE_COMMUNITY_DOMAIN, BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';\n\nimport { CommunityAspect } from './community.aspect';\n\nexport interface CommunityWorkspaceConfig {\n communityDomain: string;\n docsDomain: string;\n}\n\nexport class CommunityMain {\n constructor(private config: CommunityWorkspaceConfig) {}\n\n getBaseDomain(): string {\n return this.config.communityDomain;\n }\n\n getDocsDomain(): string {\n return this.config.docsDomain;\n }\n\n static slots = [];\n static dependencies = [];\n static runtime = MainRuntime;\n static defaultConfig: CommunityWorkspaceConfig = {\n communityDomain: BASE_COMMUNITY_DOMAIN,\n docsDomain: BASE_DOCS_DOMAIN,\n };\n static async provider(_deps, config: CommunityWorkspaceConfig) {\n return new CommunityMain(config);\n }\n}\n\nCommunityAspect.addRuntime(CommunityMain);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAOO,MAAMA,aAAN,CAAoB;EACzBC,WAAW,CAASC,MAAT,EAA2C;IAAA,KAAlCA,MAAkC,GAAlCA,MAAkC;EAAE;;EAExDC,aAAa,GAAW;IACtB,OAAO,KAAKD,MAAL,CAAYE,eAAnB;EACD;;EAEDC,aAAa,GAAW;IACtB,OAAO,KAAKH,MAAL,CAAYI,UAAnB;EACD;;EASoB,aAARC,QAAQ,CAACC,KAAD,EAAQN,MAAR,EAA0C;IAC7D,OAAO,IAAIF,aAAJ,CAAkBE,MAAlB,CAAP;EACD;;AApBwB;;;gCAAdF,a,WAWI,E;gCAXJA,a,kBAYW,E;gCAZXA,a,aAaMS,kB;gCAbNT,a,mBAcsC;EAC/CI,eAAe,EAAEM,kCAD8B;EAE/CJ,UAAU,EAAEK;AAFmC,C;;AASnDC,4BAAA,CAAgBC,UAAhB,CAA2Bb,aAA3B"}
1
+ {"version":3,"names":["CommunityMain","constructor","config","getBaseDomain","communityDomain","getDocsDomain","docsDomain","provider","_deps","MainRuntime","BASE_COMMUNITY_DOMAIN","BASE_DOCS_DOMAIN","CommunityAspect","addRuntime"],"sources":["community.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { BASE_COMMUNITY_DOMAIN, BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';\n\nimport { CommunityAspect } from './community.aspect';\n\nexport interface CommunityWorkspaceConfig {\n communityDomain: string;\n docsDomain: string;\n}\n\nexport class CommunityMain {\n constructor(private config: CommunityWorkspaceConfig) {}\n\n getBaseDomain(): string {\n return this.config.communityDomain;\n }\n\n getDocsDomain(): string {\n return this.config.docsDomain;\n }\n\n static slots = [];\n static dependencies = [];\n static runtime = MainRuntime;\n static defaultConfig: CommunityWorkspaceConfig = {\n communityDomain: BASE_COMMUNITY_DOMAIN,\n docsDomain: BASE_DOCS_DOMAIN,\n };\n static async provider(_deps, config: CommunityWorkspaceConfig) {\n return new CommunityMain(config);\n }\n}\n\nCommunityAspect.addRuntime(CommunityMain);\n"],"mappings":";;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOO,MAAMA,aAAa,CAAC;EACzBC,WAAW,CAASC,MAAgC,EAAE;IAAA,KAAlCA,MAAgC,GAAhCA,MAAgC;EAAG;EAEvDC,aAAa,GAAW;IACtB,OAAO,IAAI,CAACD,MAAM,CAACE,eAAe;EACpC;EAEAC,aAAa,GAAW;IACtB,OAAO,IAAI,CAACH,MAAM,CAACI,UAAU;EAC/B;EASA,aAAaC,QAAQ,CAACC,KAAK,EAAEN,MAAgC,EAAE;IAC7D,OAAO,IAAIF,aAAa,CAACE,MAAM,CAAC;EAClC;AACF;AAAC;AAAA,gCArBYF,aAAa,WAWT,EAAE;AAAA,gCAXNA,aAAa,kBAYF,EAAE;AAAA,gCAZbA,aAAa,aAaPS,kBAAW;AAAA,gCAbjBT,aAAa,mBAcyB;EAC/CI,eAAe,EAAEM,kCAAqB;EACtCJ,UAAU,EAAEK;AACd,CAAC;AAMHC,4BAAe,CAACC,UAAU,CAACb,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -10,19 +10,14 @@ Object.defineProperty(exports, "CommunityAspect", {
10
10
  }
11
11
  });
12
12
  exports.default = void 0;
13
-
14
13
  function _community() {
15
14
  const data = require("./community.aspect");
16
-
17
15
  _community = function () {
18
16
  return data;
19
17
  };
20
-
21
18
  return data;
22
19
  }
23
-
24
20
  var _default = _community().CommunityAspect;
25
-
26
21
  exports.default = _default;
27
22
 
28
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["CommunityAspect"],"sources":["index.ts"],"sourcesContent":["import { CommunityAspect } from './community.aspect';\n\nexport type { CommunityMain } from './community.main.runtime';\nexport default CommunityAspect;\nexport { CommunityAspect };\n"],"mappings":";;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;eAGeA,4B"}
1
+ {"version":3,"names":["CommunityAspect"],"sources":["index.ts"],"sourcesContent":["import { CommunityAspect } from './community.aspect';\n\nexport type { CommunityMain } from './community.main.runtime';\nexport default CommunityAspect;\nexport { CommunityAspect };\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAqD,eAGtCA,4BAAe;AAAA"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@teambit/community",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "homepage": "https://bit.dev/teambit/community/community",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.community",
8
8
  "name": "community",
9
- "version": "0.0.139"
9
+ "version": "0.0.141"
10
10
  },
11
11
  "dependencies": {
12
12
  "@babel/runtime": "7.12.18",
13
13
  "core-js": "^3.0.0",
14
14
  "@teambit/harmony": "0.3.3",
15
- "@teambit/cli": "0.0.591"
15
+ "@teambit/cli": "0.0.593"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/mocha": "9.1.0",
@@ -23,7 +23,7 @@
23
23
  "@types/node": "12.20.4"
24
24
  },
25
25
  "peerDependencies": {
26
- "@teambit/legacy": "1.0.374",
26
+ "@teambit/legacy": "1.0.376",
27
27
  "react-dom": "^16.8.0 || ^17.0.0",
28
28
  "react": "^16.8.0 || ^17.0.0"
29
29
  },