@teambit/harmony-ui-app 1.0.108 → 1.0.110

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 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.ui-foundation/harmony-ui-app-preview"]=t():e["teambit.ui-foundation/harmony-ui-app-preview"]=t()}(self,(()=>(()=>{"use strict";var e={98860:(e,t,o)=>{var n={id:"teambit.ui-foundation/harmony-ui-app@1.0.110",homepage:"https://bit.cloud/teambit/ui-foundation/harmony-ui-app",exported:!0};function r(){const e=i(o(87363));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/harmony-ui-app.svg"}));a.__bit_component=n,t.Logo=a},87363:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(98860);o(87363);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}var u={},c="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(c,p({},u,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}s.isMDXComponent=!0;const d=[t],f=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -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.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';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_harmony-ui-app@1.0.110/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.110/dist/harmony-ui-app.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@teambit/harmony-ui-app",
3
- "version": "1.0.108",
3
+ "version": "1.0.110",
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.108"
9
+ "version": "1.0.110"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
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"
13
+ "@teambit/aspect-loader": "1.0.110",
14
+ "@teambit/application": "1.0.110",
15
+ "@teambit/cli": "0.0.842",
16
+ "@teambit/component": "1.0.110",
17
+ "@teambit/ui": "1.0.110"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/mocha": "9.1.0",
21
21
  "@types/jest": "^29.2.2",
22
22
  "@types/testing-library__jest-dom": "^5.9.5",
23
- "@teambit/harmony.envs.core-aspect-env": "0.0.13"
23
+ "@teambit/harmony.envs.core-aspect-env": "0.0.15"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^17.0.0 || ^18.0.0",
@@ -31,11 +31,15 @@
31
31
  "optionalDependencies": {},
32
32
  "peerDependenciesMeta": {},
33
33
  "exports": {
34
- "node": {
35
- "require": "./dist/index.js",
36
- "import": "./dist/esm.mjs"
34
+ ".": {
35
+ "node": {
36
+ "require": "./dist/index.js",
37
+ "import": "./dist/esm.mjs"
38
+ },
39
+ "default": "./dist/index.js"
37
40
  },
38
- "default": "./dist/index.js"
41
+ "./dist/*": "./dist/*",
42
+ "./artifacts/*": "./artifacts/*"
39
43
  },
40
44
  "private": false,
41
45
  "engines": {
@@ -1,10 +0,0 @@
1
- import { AspectDefinition } from '@teambit/aspect-loader';
2
-
3
- export type HarmonyAppOptions = {
4
- /**
5
- * name of the app. e.g. 'ripple-ci'
6
- */
7
- name: string;
8
-
9
- aspectDefs: AspectDefinition[];
10
- };
@@ -1,5 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
-
3
- export const HarmonyUiAppAspect = Aspect.create({
4
- id: 'teambit.ui-foundation/harmony-ui-app',
5
- });
@@ -1,44 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
1
- import { HarmonyUiAppAspect } from './harmony-ui-app.aspect';
2
-
3
- export type { HarmonyUiAppMain } from './harmony-ui-app.main.runtime';
4
- export default HarmonyUiAppAspect;
5
- export { HarmonyUiAppAspect };
package/ui.application.ts DELETED
@@ -1,19 +0,0 @@
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
- // }