@teambit/harmony-ui-app 1.0.106 → 1.0.108
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.
- package/dist/harmony-app-options.d.ts +1 -1
- package/dist/harmony-ui-app.compositions.d.ts +2 -2
- package/dist/harmony-ui-app.main.runtime.d.ts +1 -1
- package/dist/{preview-1703505948637.js → preview-1703647408454.js} +2 -2
- package/harmony-app-options.ts +10 -0
- package/harmony-ui-app.aspect.ts +5 -0
- package/harmony-ui-app.main.runtime.ts +44 -0
- package/index.ts +5 -0
- package/package.json +16 -23
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
- package/ui.application.ts +19 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
export declare const Logo: () =>
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const Logo: () => JSX.Element;
|
@@ -11,7 +11,7 @@ export declare class HarmonyUiAppMain {
|
|
11
11
|
* register a new harmony UI application.
|
12
12
|
*/
|
13
13
|
registerHarmonyApp(options: HarmonyAppOptions): this;
|
14
|
-
static slots:
|
14
|
+
static slots: any[];
|
15
15
|
static dependencies: import("@teambit/harmony").Aspect[];
|
16
16
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
17
17
|
static provider([application, ui, componentAspect]: [ApplicationMain, UiMain, ComponentMain]): Promise<HarmonyUiAppMain>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_harmony-ui-app@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_harmony-ui-app@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_harmony-ui-app@1.0.108/dist/harmony-ui-app.compositions.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_harmony-ui-app@1.0.108/dist/harmony-ui-app.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApplicationAspect, ApplicationMain } from '@teambit/application';
|
2
|
+
import { MainRuntime } from '@teambit/cli';
|
3
|
+
import UIAspect, { UiMain } from '@teambit/ui';
|
4
|
+
import { ComponentAspect, ComponentMain } from '@teambit/component';
|
5
|
+
import { HarmonyAppOptions } from './harmony-app-options';
|
6
|
+
import { HarmonyUiAppAspect } from './harmony-ui-app.aspect';
|
7
|
+
// import { HarmonyUIApp } from './ui.application';
|
8
|
+
|
9
|
+
export class HarmonyUiAppMain {
|
10
|
+
constructor(private application: ApplicationMain, private ui: UiMain, private componentAspect: ComponentMain) {}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* register a new harmony UI application.
|
14
|
+
*/
|
15
|
+
registerHarmonyApp(options: HarmonyAppOptions) {
|
16
|
+
this.ui.registerUiRoot({
|
17
|
+
name: options.name,
|
18
|
+
path: this.componentAspect.getHost().path,
|
19
|
+
configFile: '',
|
20
|
+
async resolvePattern() {
|
21
|
+
return [];
|
22
|
+
},
|
23
|
+
async resolveAspects() {
|
24
|
+
return options.aspectDefs;
|
25
|
+
},
|
26
|
+
});
|
27
|
+
|
28
|
+
// this.application.registerApp(new HarmonyUIApp(options.name, this.ui));
|
29
|
+
|
30
|
+
return this;
|
31
|
+
}
|
32
|
+
|
33
|
+
static slots = [];
|
34
|
+
|
35
|
+
static dependencies = [ApplicationAspect, UIAspect, ComponentAspect];
|
36
|
+
|
37
|
+
static runtime = MainRuntime;
|
38
|
+
|
39
|
+
static async provider([application, ui, componentAspect]: [ApplicationMain, UiMain, ComponentMain]) {
|
40
|
+
return new HarmonyUiAppMain(application, ui, componentAspect);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
HarmonyUiAppAspect.addRuntime(HarmonyUiAppMain);
|
package/index.ts
ADDED
package/package.json
CHANGED
@@ -1,35 +1,31 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/harmony-ui-app",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.108",
|
4
4
|
"homepage": "https://bit.cloud/teambit/ui-foundation/harmony-ui-app",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.ui-foundation",
|
8
8
|
"name": "harmony-ui-app",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.108"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
|
-
"core-js": "^3.0.0",
|
13
|
-
"@babel/runtime": "7.20.0",
|
14
12
|
"@teambit/harmony": "0.4.6",
|
15
|
-
"@teambit/aspect-loader": "1.0.
|
16
|
-
"@teambit/application": "1.0.
|
17
|
-
"@teambit/cli": "0.0.
|
18
|
-
"@teambit/component": "1.0.
|
19
|
-
"@teambit/ui": "1.0.
|
13
|
+
"@teambit/aspect-loader": "1.0.108",
|
14
|
+
"@teambit/application": "1.0.108",
|
15
|
+
"@teambit/cli": "0.0.840",
|
16
|
+
"@teambit/component": "1.0.108",
|
17
|
+
"@teambit/ui": "1.0.108"
|
20
18
|
},
|
21
19
|
"devDependencies": {
|
22
|
-
"@types/react": "^17.0.8",
|
23
20
|
"@types/mocha": "9.1.0",
|
24
|
-
"@types/
|
25
|
-
"@types/
|
26
|
-
"@
|
27
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
21
|
+
"@types/jest": "^29.2.2",
|
22
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.13"
|
28
24
|
},
|
29
25
|
"peerDependencies": {
|
30
|
-
"
|
31
|
-
"react": "^
|
32
|
-
"
|
26
|
+
"react": "^17.0.0 || ^18.0.0",
|
27
|
+
"@types/react": "^18.2.12",
|
28
|
+
"@teambit/legacy": "1.0.624"
|
33
29
|
},
|
34
30
|
"license": "Apache-2.0",
|
35
31
|
"optionalDependencies": {},
|
@@ -43,7 +39,7 @@
|
|
43
39
|
},
|
44
40
|
"private": false,
|
45
41
|
"engines": {
|
46
|
-
"node": ">=
|
42
|
+
"node": ">=16.0.0"
|
47
43
|
},
|
48
44
|
"repository": {
|
49
45
|
"type": "git",
|
@@ -52,12 +48,9 @@
|
|
52
48
|
"keywords": [
|
53
49
|
"bit",
|
54
50
|
"bit-aspect",
|
51
|
+
"bit-core-aspect",
|
55
52
|
"components",
|
56
53
|
"collaboration",
|
57
|
-
"web"
|
58
|
-
"react",
|
59
|
-
"react-components",
|
60
|
-
"angular",
|
61
|
-
"angular-components"
|
54
|
+
"web"
|
62
55
|
]
|
63
56
|
}
|
package/tsconfig.json
CHANGED
@@ -1,38 +1,33 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
3
|
"lib": [
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"DOM.Iterable",
|
8
|
-
"ScriptHost"
|
4
|
+
"esnext",
|
5
|
+
"dom",
|
6
|
+
"dom.Iterable"
|
9
7
|
],
|
10
|
-
"target": "
|
11
|
-
"module": "
|
12
|
-
"jsx": "react",
|
13
|
-
"allowJs": true,
|
14
|
-
"composite": true,
|
8
|
+
"target": "es2020",
|
9
|
+
"module": "es2020",
|
10
|
+
"jsx": "react-jsx",
|
15
11
|
"declaration": true,
|
16
12
|
"sourceMap": true,
|
17
|
-
"skipLibCheck": true,
|
18
13
|
"experimentalDecorators": true,
|
19
|
-
"
|
14
|
+
"skipLibCheck": true,
|
20
15
|
"moduleResolution": "node",
|
21
16
|
"esModuleInterop": true,
|
22
|
-
"rootDir": ".",
|
23
17
|
"resolveJsonModule": true,
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"strictPropertyInitialization": false,
|
28
|
-
"strict": true,
|
29
|
-
"noImplicitAny": false,
|
30
|
-
"preserveConstEnums": true
|
18
|
+
"allowJs": true,
|
19
|
+
"outDir": "dist",
|
20
|
+
"emitDeclarationOnly": true
|
31
21
|
},
|
32
22
|
"exclude": [
|
23
|
+
"artifacts",
|
24
|
+
"public",
|
33
25
|
"dist",
|
26
|
+
"node_modules",
|
27
|
+
"package.json",
|
34
28
|
"esm.mjs",
|
35
|
-
"
|
29
|
+
"**/*.cjs",
|
30
|
+
"./dist"
|
36
31
|
],
|
37
32
|
"include": [
|
38
33
|
"**/*",
|
package/types/asset.d.ts
CHANGED
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
5
5
|
declare module '*.svg' {
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
7
7
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
8
|
+
export const ReactComponent: FunctionComponent<
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
10
|
+
>;
|
9
11
|
const src: string;
|
10
12
|
export default src;
|
11
13
|
}
|
12
|
-
|
13
|
-
// @TODO Gilad
|
14
14
|
declare module '*.jpg' {
|
15
15
|
const value: any;
|
16
16
|
export = value;
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
27
27
|
const value: any;
|
28
28
|
export = value;
|
29
29
|
}
|
30
|
+
declare module '*.otf' {
|
31
|
+
const value: any;
|
32
|
+
export = value;
|
33
|
+
}
|
34
|
+
declare module '*.woff' {
|
35
|
+
const value: any;
|
36
|
+
export = value;
|
37
|
+
}
|
38
|
+
declare module '*.woff2' {
|
39
|
+
const value: any;
|
40
|
+
export = value;
|
41
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// import { Application } from '@teambit/application';
|
2
|
+
// import { UiMain } from '@teambit/ui';
|
3
|
+
|
4
|
+
// export class HarmonyUIApp implements Application {
|
5
|
+
// constructor(readonly name: string, private uiAspect: UiMain) {}
|
6
|
+
|
7
|
+
// async run() {
|
8
|
+
// const uiServer = await this.uiAspect.createRuntime({
|
9
|
+
// uiRootName: this.name,
|
10
|
+
// dev: true,
|
11
|
+
// });
|
12
|
+
|
13
|
+
// await uiServer.dev();
|
14
|
+
// }
|
15
|
+
|
16
|
+
// // async deploy() {
|
17
|
+
// // return '';
|
18
|
+
// // }
|
19
|
+
// }
|