@teambit/cloud 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 CloudAspect: Aspect;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CloudAspect = 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 CloudAspect = _harmony().Aspect.create({
19
+ id: 'teambit.cloud/cloud'
20
+ });
21
+
22
+ exports.CloudAspect = CloudAspect;
23
+
24
+ //# sourceMappingURL=cloud.aspect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["cloud.aspect.ts"],"names":["CloudAspect","Aspect","create","id"],"mappings":";;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,WAAW,GAAGC,kBAAOC,MAAP,CAAc;AACvCC,EAAAA,EAAE,EAAE;AADmC,CAAd,CAApB","sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const CloudAspect = Aspect.create({\n id: 'teambit.cloud/cloud',\n});\n"]}
@@ -0,0 +1,29 @@
1
+ export interface CloudWorkspaceConfig {
2
+ cloudDomain: string;
3
+ cloudHubDomain: string;
4
+ cloudApi: string;
5
+ cloudGraphQL: string;
6
+ loginDomain: string;
7
+ analyticsDomain: string;
8
+ registryUrl: string;
9
+ cloudExporterUrl: string;
10
+ cloudHubName: string;
11
+ }
12
+ export declare class CloudMain {
13
+ private config;
14
+ constructor(config: CloudWorkspaceConfig);
15
+ getCloudDomain(): string;
16
+ getCloudHubDomain(): string;
17
+ getCloudApi(): string;
18
+ getCloudGraphQL(): string;
19
+ getLoginDomain(): string;
20
+ getAnalyticsDomain(): string;
21
+ getRegistryUrl(): string;
22
+ getCloudExporterUrl(): string;
23
+ getHubName(): string;
24
+ static slots: never[];
25
+ static dependencies: never[];
26
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
27
+ static defaultConfig: CloudWorkspaceConfig;
28
+ static provider(_deps: any, config: CloudWorkspaceConfig): Promise<CloudMain>;
29
+ }
@@ -0,0 +1,117 @@
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.CloudMain = 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 _cloud() {
43
+ const data = require("./cloud.aspect");
44
+
45
+ _cloud = function () {
46
+ return data;
47
+ };
48
+
49
+ return data;
50
+ }
51
+
52
+ class CloudMain {
53
+ constructor(config) {
54
+ this.config = config;
55
+ }
56
+
57
+ getCloudDomain() {
58
+ return this.config.cloudDomain;
59
+ }
60
+
61
+ getCloudHubDomain() {
62
+ return this.config.cloudHubDomain;
63
+ }
64
+
65
+ getCloudApi() {
66
+ return this.config.cloudApi;
67
+ }
68
+
69
+ getCloudGraphQL() {
70
+ return this.config.cloudGraphQL;
71
+ }
72
+
73
+ getLoginDomain() {
74
+ return this.config.loginDomain;
75
+ }
76
+
77
+ getAnalyticsDomain() {
78
+ return this.config.analyticsDomain;
79
+ }
80
+
81
+ getRegistryUrl() {
82
+ return this.config.registryUrl;
83
+ }
84
+
85
+ getCloudExporterUrl() {
86
+ return this.config.cloudExporterUrl;
87
+ }
88
+
89
+ getHubName() {
90
+ return this.config.cloudHubName;
91
+ }
92
+
93
+ static async provider(_deps, config) {
94
+ return new CloudMain(config);
95
+ }
96
+
97
+ }
98
+
99
+ exports.CloudMain = CloudMain;
100
+ (0, _defineProperty2().default)(CloudMain, "slots", []);
101
+ (0, _defineProperty2().default)(CloudMain, "dependencies", []);
102
+ (0, _defineProperty2().default)(CloudMain, "runtime", _cli().MainRuntime);
103
+ (0, _defineProperty2().default)(CloudMain, "defaultConfig", {
104
+ cloudDomain: _constants().BASE_CLOUD_DOMAIN,
105
+ cloudHubDomain: _constants().DEFAULT_HUB_DOMAIN,
106
+ cloudApi: _constants().SYMPHONY_URL,
107
+ cloudGraphQL: _constants().SYMPHONY_GRAPHQL,
108
+ loginDomain: _constants().DEFAULT_HUB_LOGIN,
109
+ analyticsDomain: _constants().DEFAULT_ANALYTICS_DOMAIN,
110
+ registryUrl: _constants().DEFAULT_REGISTRY_URL,
111
+ cloudExporterUrl: _constants().CENTRAL_BIT_HUB_URL,
112
+ cloudHubName: _constants().CENTRAL_BIT_HUB_NAME
113
+ });
114
+
115
+ _cloud().CloudAspect.addRuntime(CloudMain);
116
+
117
+ //# sourceMappingURL=cloud.main.runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["cloud.main.runtime.ts"],"names":["CloudMain","constructor","config","getCloudDomain","cloudDomain","getCloudHubDomain","cloudHubDomain","getCloudApi","cloudApi","getCloudGraphQL","cloudGraphQL","getLoginDomain","loginDomain","getAnalyticsDomain","analyticsDomain","getRegistryUrl","registryUrl","getCloudExporterUrl","cloudExporterUrl","getHubName","cloudHubName","provider","_deps","MainRuntime","BASE_CLOUD_DOMAIN","DEFAULT_HUB_DOMAIN","SYMPHONY_URL","SYMPHONY_GRAPHQL","DEFAULT_HUB_LOGIN","DEFAULT_ANALYTICS_DOMAIN","DEFAULT_REGISTRY_URL","CENTRAL_B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oB,8BAD8B;AAE3ClB,EAAAA,cAAc,EAAEmB,+BAF2B;AAG3CjB,EAAAA,QAAQ,EAAEkB,yBAHiC;AAI3ChB,EAAAA,YAAY,EAAEiB,6BAJ6B;AAK3Cf,EAAAA,WAAW,EAAEgB,8BAL8B;AAM3Cd,EAAAA,eAAe,EAAEe,qCAN0B;AAO3Cb,EAAAA,WAAW,EAAEc,iCAP8B;AAQ3CZ,EAAAA,gBAAgB,EAAEa,gCARyB;AAS3CX,EAAAA,YAAY,EAAEY;AAT6B,C;;AAgB/CC,qBAAYC,UAAZ,CAAuBlC,SAAvB","sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport {\n BASE_CLOUD_DOMAIN,\n DEFAULT_HUB_DOMAIN,\n SYMPHONY_URL,\n SYMPHONY_GRAPHQL,\n DEFAULT_HUB_LOGIN,\n DEFAULT_ANALYTICS_DOMAIN,\n DEFAULT_REGISTRY_URL,\n CENTRAL_BIT_HUB_URL,\n CENTRAL_BIT_HUB_NAME,\n} from '@teambit/legacy/dist/constants';\n\nimport { CloudAspect } from './cloud.aspect';\n\nexport interface CloudWorkspaceConfig {\n cloudDomain: string;\n cloudHubDomain: string;\n cloudApi: string;\n cloudGraphQL: string;\n loginDomain: string;\n analyticsDomain: string;\n registryUrl: string;\n cloudExporterUrl: string;\n cloudHubName: string;\n}\n\nexport class CloudMain {\n constructor(private config: CloudWorkspaceConfig) {}\n\n getCloudDomain(): string {\n return this.config.cloudDomain;\n }\n\n getCloudHubDomain(): string {\n return this.config.cloudHubDomain;\n }\n\n getCloudApi(): string {\n return this.config.cloudApi;\n }\n\n getCloudGraphQL(): string {\n return this.config.cloudGraphQL;\n }\n getLoginDomain(): string {\n return this.config.loginDomain;\n }\n\n getAnalyticsDomain(): string {\n return this.config.analyticsDomain;\n }\n\n getRegistryUrl(): string {\n return this.config.registryUrl;\n }\n\n getCloudExporterUrl(): string {\n return this.config.cloudExporterUrl;\n }\n\n getHubName(): string {\n return this.config.cloudHubName;\n }\n\n static slots = [];\n static dependencies = [];\n static runtime = MainRuntime;\n static defaultConfig: CloudWorkspaceConfig = {\n cloudDomain: BASE_CLOUD_DOMAIN,\n cloudHubDomain: DEFAULT_HUB_DOMAIN,\n cloudApi: SYMPHONY_URL,\n cloudGraphQL: SYMPHONY_GRAPHQL,\n loginDomain: DEFAULT_HUB_LOGIN,\n analyticsDomain: DEFAULT_ANALYTICS_DOMAIN,\n registryUrl: DEFAULT_REGISTRY_URL,\n cloudExporterUrl: CENTRAL_BIT_HUB_URL,\n cloudHubName: CENTRAL_BIT_HUB_NAME,\n };\n static async provider(_deps, config: CloudWorkspaceConfig) {\n return new CloudMain(config);\n }\n}\n\nCloudAspect.addRuntime(CloudMain);\n"]}
@@ -0,0 +1,4 @@
1
+ import { CloudAspect } from './cloud.aspect';
2
+ export type { CloudMain } from './cloud.main.runtime';
3
+ export default CloudAspect;
4
+ export { CloudAspect };
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, "CloudAspect", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _cloud().CloudAspect;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+
14
+ function _cloud() {
15
+ const data = require("./cloud.aspect");
16
+
17
+ _cloud = function () {
18
+ return data;
19
+ };
20
+
21
+ return data;
22
+ }
23
+
24
+ var _default = _cloud().CloudAspect;
25
+
26
+ exports.default = _default;
27
+
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"names":["CloudAspect"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;eAGeA,oB","sourcesContent":["import { CloudAspect } from './cloud.aspect';\n\nexport type { CloudMain } from './cloud.main.runtime';\nexport default CloudAspect;\nexport { CloudAspect };\n"]}
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@teambit/cloud",
3
+ "version": "0.0.1",
4
+ "main": "dist/index.js",
5
+ "componentId": {
6
+ "scope": "teambit.cloud",
7
+ "name": "cloud",
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
+ }