@teambit/community 0.0.1

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.
@@ -0,0 +1,2 @@
1
+ import { Aspect } from '@teambit/harmony';
2
+ export declare const CommunityAspect: Aspect;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CommunityAspect = void 0;
7
+
8
+ function _harmony() {
9
+ const data = require("@teambit/harmony");
10
+
11
+ _harmony = function () {
12
+ return data;
13
+ };
14
+
15
+ return data;
16
+ }
17
+
18
+ const CommunityAspect = _harmony().Aspect.create({
19
+ id: 'teambit.community/community'
20
+ });
21
+
22
+ exports.CommunityAspect = CommunityAspect;
23
+
24
+ //# sourceMappingURL=community.aspect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["community.aspect.ts"],"names":["CommunityAspect","Aspect","create","id"],"mappings":";;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,eAAe,GAAGC,kBAAOC,MAAP,CAAc;AAC3CC,EAAAA,EAAE,EAAE;AADuC,CAAd,CAAxB","sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CommunityAspect = Aspect.create({\n id: 'teambit.community/community',\n});\n"]}
@@ -0,0 +1,15 @@
1
+ export interface CommunityWorkspaceConfig {
2
+ communityDomain: string;
3
+ docsDomain: string;
4
+ }
5
+ export declare class CommunityMain {
6
+ private config;
7
+ constructor(config: CommunityWorkspaceConfig);
8
+ getBaseDomain(): string;
9
+ getDocsDomain(): string;
10
+ static slots: never[];
11
+ static dependencies: never[];
12
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
13
+ static defaultConfig: CommunityWorkspaceConfig;
14
+ static provider(_deps: any, config: CommunityWorkspaceConfig): Promise<CommunityMain>;
15
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ require("core-js/modules/es.promise.js");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.CommunityMain = void 0;
11
+
12
+ function _defineProperty2() {
13
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
+
15
+ _defineProperty2 = function () {
16
+ return data;
17
+ };
18
+
19
+ return data;
20
+ }
21
+
22
+ function _cli() {
23
+ const data = require("@teambit/cli");
24
+
25
+ _cli = function () {
26
+ return data;
27
+ };
28
+
29
+ return data;
30
+ }
31
+
32
+ function _constants() {
33
+ const data = require("@teambit/legacy/dist/constants");
34
+
35
+ _constants = function () {
36
+ return data;
37
+ };
38
+
39
+ return data;
40
+ }
41
+
42
+ function _community() {
43
+ const data = require("./community.aspect");
44
+
45
+ _community = function () {
46
+ return data;
47
+ };
48
+
49
+ return data;
50
+ }
51
+
52
+ class CommunityMain {
53
+ constructor(config) {
54
+ this.config = config;
55
+ }
56
+
57
+ getBaseDomain() {
58
+ return this.config.communityDomain;
59
+ }
60
+
61
+ getDocsDomain() {
62
+ return this.config.docsDomain;
63
+ }
64
+
65
+ static async provider(_deps, config) {
66
+ return new CommunityMain(config);
67
+ }
68
+
69
+ }
70
+
71
+ exports.CommunityMain = CommunityMain;
72
+ (0, _defineProperty2().default)(CommunityMain, "slots", []);
73
+ (0, _defineProperty2().default)(CommunityMain, "dependencies", []);
74
+ (0, _defineProperty2().default)(CommunityMain, "runtime", _cli().MainRuntime);
75
+ (0, _defineProperty2().default)(CommunityMain, "defaultConfig", {
76
+ communityDomain: _constants().BASE_COMMUNITY_DOMAIN,
77
+ docsDomain: _constants().BASE_DOCS_DOMAIN
78
+ });
79
+
80
+ _community().CommunityAspect.addRuntime(CommunityMain);
81
+
82
+ //# sourceMappingURL=community.main.runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["community.main.runtime.ts"],"names":["CommunityMain","constructor","config","getBaseDomain","communityDomain","getDocsDomain","docsDomain","provider","_deps","MainRuntime","BASE_COMMUNITY_DOMAIN","BASE_DOCS_DOMAIN","CommunityAspect","addRuntime"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAOO,MAAMA,aAAN,CAAoB;AACzBC,EAAAA,WAAW,CAASC,MAAT,EAA2C;AAAA,SAAlCA,MAAkC,GAAlCA,MAAkC;AAAE;;AAExDC,EAAAA,aAAa,GAAW;AACtB,WAAO,KAAKD,MAAL,CAAYE,eAAnB;AACD;;AAEDC,EAAAA,aAAa,GAAW;AACtB,WAAO,KAAKH,MAAL,CAAYI,UAAnB;AACD;;AASoB,eAARC,QAAQ,CAACC,KAAD,EAAQN,MAAR,EAA0C;AAC7D,WAAO,IAAIF,aAAJ,CAAkBE,MAAlB,CAAP;AACD;;AApBwB;;;gCAAdF,a,WAWI,E;gCAXJA,a,kBAYW,E;gCAZXA,a,aAaMS,kB;gCAbNT,a,mBAcsC;AAC/CI,EAAAA,eAAe,EAAEM,kCAD8B;AAE/CJ,EAAAA,UAAU,EAAEK;AAFmC,C;;AASnDC,6BAAgBC,UAAhB,CAA2Bb,aAA3B","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"]}
@@ -0,0 +1,4 @@
1
+ import { CommunityAspect } from './community.aspect';
2
+ export type { CommunityMain } from './community.main.runtime';
3
+ export default CommunityAspect;
4
+ export { CommunityAspect };
package/dist/index.js ADDED
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "CommunityAspect", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _community().CommunityAspect;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+
14
+ function _community() {
15
+ const data = require("./community.aspect");
16
+
17
+ _community = function () {
18
+ return data;
19
+ };
20
+
21
+ return data;
22
+ }
23
+
24
+ var _default = _community().CommunityAspect;
25
+
26
+ exports.default = _default;
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["CommunityAspect"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;eAGeA,4B","sourcesContent":["import { CommunityAspect } from './community.aspect';\n\nexport type { CommunityMain } from './community.main.runtime';\nexport default CommunityAspect;\nexport { CommunityAspect };\n"]}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@teambit/community",
3
+ "version": "0.0.1",
4
+ "main": "dist/index.js",
5
+ "componentId": {
6
+ "scope": "teambit.community",
7
+ "name": "community",
8
+ "version": "0.0.1"
9
+ },
10
+ "dependencies": {
11
+ "@teambit/harmony": "0.2.11",
12
+ "@babel/runtime": "7.12.18",
13
+ "core-js": "^3.0.0"
14
+ },
15
+ "devDependencies": {
16
+ "@types/mocha": "9.1.0",
17
+ "@types/testing-library__jest-dom": "5.9.5",
18
+ "@types/jest": "^26.0.0",
19
+ "@types/react-dom": "^17.0.5",
20
+ "@types/react": "^17.0.8",
21
+ "@types/node": "12.20.4"
22
+ },
23
+ "peerDependencies": {
24
+ "@teambit/legacy": "1.0.232",
25
+ "react-dom": "^16.8.0 || ^17.0.0",
26
+ "react": "^16.8.0 || ^17.0.0"
27
+ },
28
+ "license": "Apache-2.0",
29
+ "bit": {
30
+ "bindingPrefix": "@teambit",
31
+ "env": {},
32
+ "overrides": {
33
+ "dependencies": {
34
+ "@teambit/legacy": "-",
35
+ "@babel/runtime": "7.12.18",
36
+ "core-js": "^3.0.0",
37
+ "react-dom": "-",
38
+ "react": "-"
39
+ },
40
+ "devDependencies": {
41
+ "@teambit/legacy": "-",
42
+ "@types/mocha": "9.1.0",
43
+ "@types/testing-library__jest-dom": "5.9.5",
44
+ "@types/jest": "^26.0.0",
45
+ "@types/react-dom": "^17.0.5",
46
+ "@types/react": "^17.0.8",
47
+ "@types/node": "12.20.4",
48
+ "react-dom": "-",
49
+ "react": "-"
50
+ },
51
+ "peerDependencies": {
52
+ "@teambit/legacy": "1.0.232",
53
+ "react-dom": "^16.8.0 || ^17.0.0",
54
+ "react": "^16.8.0 || ^17.0.0"
55
+ }
56
+ }
57
+ },
58
+ "private": false,
59
+ "engines": {
60
+ "node": ">=12.22.0"
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "https://github.com/teambit/bit"
65
+ },
66
+ "keywords": [
67
+ "bit",
68
+ "bit-aspect",
69
+ "components",
70
+ "collaboration",
71
+ "web",
72
+ "react",
73
+ "react-components",
74
+ "angular",
75
+ "angular-components",
76
+ "vue",
77
+ "vue-components"
78
+ ]
79
+ }
@@ -0,0 +1 @@
1
+
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "lib": [
4
+ "es2019",
5
+ "DOM",
6
+ "ES6",
7
+ "DOM.Iterable",
8
+ "ScriptHost"
9
+ ],
10
+ "target": "es2015",
11
+ "module": "commonjs",
12
+ "jsx": "react",
13
+ "declaration": true,
14
+ "sourceMap": true,
15
+ "skipLibCheck": true,
16
+ "moduleResolution": "node",
17
+ "esModuleInterop": true,
18
+ "resolveJsonModule": true,
19
+ "composite": true,
20
+ "emitDeclarationOnly": true,
21
+ "outDir": "dist",
22
+ "experimentalDecorators": true,
23
+ "emitDecoratorMetadata": true,
24
+ "allowSyntheticDefaultImports": true,
25
+ "strictPropertyInitialization": false,
26
+ "strict": true,
27
+ "noImplicitAny": false,
28
+ "rootDir": ".",
29
+ "preserveConstEnums": true
30
+ },
31
+ "exclude": [
32
+ "dist"
33
+ ]
34
+ }
@@ -0,0 +1,29 @@
1
+ declare module '*.png' {
2
+ const value: any;
3
+ export = value;
4
+ }
5
+ declare module '*.svg' {
6
+ import type { FunctionComponent, SVGProps } from 'react';
7
+
8
+ export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>;
9
+ const src: string;
10
+ export default src;
11
+ }
12
+
13
+ // @TODO Gilad
14
+ declare module '*.jpg' {
15
+ const value: any;
16
+ export = value;
17
+ }
18
+ declare module '*.jpeg' {
19
+ const value: any;
20
+ export = value;
21
+ }
22
+ declare module '*.gif' {
23
+ const value: any;
24
+ export = value;
25
+ }
26
+ declare module '*.bmp' {
27
+ const value: any;
28
+ export = value;
29
+ }
@@ -0,0 +1,42 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+ declare module '*.module.scss' {
6
+ const classes: { readonly [key: string]: string };
7
+ export default classes;
8
+ }
9
+ declare module '*.module.sass' {
10
+ const classes: { readonly [key: string]: string };
11
+ export default classes;
12
+ }
13
+
14
+ declare module '*.module.less' {
15
+ const classes: { readonly [key: string]: string };
16
+ export default classes;
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const classes: { readonly [key: string]: string };
21
+ export default classes;
22
+ }
23
+
24
+ declare module '*.css' {
25
+ const classes: { readonly [key: string]: string };
26
+ export default classes;
27
+ }
28
+
29
+ declare module '*.sass' {
30
+ const classes: { readonly [key: string]: string };
31
+ export default classes;
32
+ }
33
+
34
+ declare module '*.scss' {
35
+ const classes: { readonly [key: string]: string };
36
+ export default classes;
37
+ }
38
+
39
+ declare module '*.mdx' {
40
+ const component: any;
41
+ export default component;
42
+ }