@teambit/compositions 0.0.927 → 0.0.929
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/compositions.ui.runtime.tsx +8 -5
- package/dist/compositions.ui.runtime.d.ts +1 -0
- package/dist/compositions.ui.runtime.js +27 -9
- package/dist/compositions.ui.runtime.js.map +1 -1
- package/dist/{preview-1670414621516.js → preview-1670894303358.js} +2 -2
- package/package-tar/teambit-compositions-0.0.929.tgz +0 -0
- package/package.json +16 -15
- package/composition.compare.section.tsx +0 -19
- package/dist/composition.compare.section.d.ts +0 -16
- package/dist/composition.compare.section.js +0 -47
- package/dist/composition.compare.section.js.map +0 -1
- package/package-tar/teambit-compositions-0.0.927.tgz +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
2
|
+
import React, { ComponentType } from 'react';
|
|
3
3
|
import { Slot, SlotRegistry } from '@teambit/harmony';
|
|
4
4
|
import { ComponentAspect, ComponentUI } from '@teambit/component';
|
|
5
5
|
import { UIRuntime } from '@teambit/ui';
|
|
6
|
+
import { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';
|
|
7
|
+
import { CompositionCompare } from '@teambit/compositions.ui.composition-compare';
|
|
6
8
|
import { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';
|
|
7
9
|
import { CompositionsSection } from './composition.section';
|
|
8
10
|
import { CompositionsAspect } from './compositions.aspect';
|
|
9
11
|
import { MenuBarWidget } from './compositions';
|
|
10
|
-
import { CompositionCompareSection } from './composition.compare.section';
|
|
11
12
|
|
|
12
13
|
export type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;
|
|
13
14
|
export type EmptyStateSlot = SlotRegistry<ComponentType>;
|
|
14
15
|
|
|
15
16
|
export class CompositionsUI {
|
|
16
17
|
constructor(private menuBarWidgetSlot: CompositionsMenuSlot, private emptyStateSlot: EmptyStateSlot) {}
|
|
17
|
-
|
|
18
18
|
/**
|
|
19
19
|
* register a new tester empty state. this allows to register a different empty state from each environment for example.
|
|
20
20
|
*/
|
|
@@ -27,6 +27,10 @@ export class CompositionsUI {
|
|
|
27
27
|
this.menuBarWidgetSlot.register(widget);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
getCompositionsCompare = () => {
|
|
31
|
+
return <CompositionCompare emptyState={this.emptyStateSlot} />;
|
|
32
|
+
};
|
|
33
|
+
|
|
30
34
|
static dependencies = [ComponentAspect, ComponentCompareAspect];
|
|
31
35
|
static runtime = UIRuntime;
|
|
32
36
|
static slots = [Slot.withType<ReactNode>(), Slot.withType<ComponentType>()];
|
|
@@ -42,8 +46,7 @@ export class CompositionsUI {
|
|
|
42
46
|
{ menuBarWidgetSlot: compositions.menuBarWidgetSlot },
|
|
43
47
|
emptyStateSlot
|
|
44
48
|
);
|
|
45
|
-
const compositionCompare = new CompositionCompareSection(
|
|
46
|
-
|
|
49
|
+
const compositionCompare = new CompositionCompareSection(compositions);
|
|
47
50
|
component.registerRoute(section.route);
|
|
48
51
|
component.registerNavigation(section.navigationLink, section.order);
|
|
49
52
|
componentCompare.registerNavigation({
|
|
@@ -15,6 +15,7 @@ export declare class CompositionsUI {
|
|
|
15
15
|
*/
|
|
16
16
|
registerEmptyState(emptyStateComponent: ComponentType): this;
|
|
17
17
|
registerMenuWidget(...widget: MenuBarWidget[]): void;
|
|
18
|
+
getCompositionsCompare: () => JSX.Element;
|
|
18
19
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
19
20
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
20
21
|
static slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[];
|
|
@@ -14,6 +14,13 @@ function _defineProperty2() {
|
|
|
14
14
|
};
|
|
15
15
|
return data;
|
|
16
16
|
}
|
|
17
|
+
function _react() {
|
|
18
|
+
const data = _interopRequireDefault(require("react"));
|
|
19
|
+
_react = function () {
|
|
20
|
+
return data;
|
|
21
|
+
};
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
17
24
|
function _harmony() {
|
|
18
25
|
const data = require("@teambit/harmony");
|
|
19
26
|
_harmony = function () {
|
|
@@ -35,6 +42,20 @@ function _ui() {
|
|
|
35
42
|
};
|
|
36
43
|
return data;
|
|
37
44
|
}
|
|
45
|
+
function _compositionsUi() {
|
|
46
|
+
const data = require("@teambit/compositions.ui.composition-compare-section");
|
|
47
|
+
_compositionsUi = function () {
|
|
48
|
+
return data;
|
|
49
|
+
};
|
|
50
|
+
return data;
|
|
51
|
+
}
|
|
52
|
+
function _compositionsUi2() {
|
|
53
|
+
const data = require("@teambit/compositions.ui.composition-compare");
|
|
54
|
+
_compositionsUi2 = function () {
|
|
55
|
+
return data;
|
|
56
|
+
};
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
38
59
|
function _componentCompare() {
|
|
39
60
|
const data = require("@teambit/component-compare");
|
|
40
61
|
_componentCompare = function () {
|
|
@@ -56,19 +77,16 @@ function _compositions() {
|
|
|
56
77
|
};
|
|
57
78
|
return data;
|
|
58
79
|
}
|
|
59
|
-
function _compositionCompare() {
|
|
60
|
-
const data = require("./composition.compare.section");
|
|
61
|
-
_compositionCompare = function () {
|
|
62
|
-
return data;
|
|
63
|
-
};
|
|
64
|
-
return data;
|
|
65
|
-
}
|
|
66
80
|
class CompositionsUI {
|
|
67
81
|
constructor(menuBarWidgetSlot, emptyStateSlot) {
|
|
68
82
|
this.menuBarWidgetSlot = menuBarWidgetSlot;
|
|
69
83
|
this.emptyStateSlot = emptyStateSlot;
|
|
84
|
+
(0, _defineProperty2().default)(this, "getCompositionsCompare", () => {
|
|
85
|
+
return /*#__PURE__*/_react().default.createElement(_compositionsUi2().CompositionCompare, {
|
|
86
|
+
emptyState: this.emptyStateSlot
|
|
87
|
+
});
|
|
88
|
+
});
|
|
70
89
|
}
|
|
71
|
-
|
|
72
90
|
/**
|
|
73
91
|
* register a new tester empty state. this allows to register a different empty state from each environment for example.
|
|
74
92
|
*/
|
|
@@ -84,7 +102,7 @@ class CompositionsUI {
|
|
|
84
102
|
const section = new (_composition().CompositionsSection)(compositions, {
|
|
85
103
|
menuBarWidgetSlot: compositions.menuBarWidgetSlot
|
|
86
104
|
}, emptyStateSlot);
|
|
87
|
-
const compositionCompare = new (
|
|
105
|
+
const compositionCompare = new (_compositionsUi().CompositionCompareSection)(compositions);
|
|
88
106
|
component.registerRoute(section.route);
|
|
89
107
|
component.registerNavigation(section.navigationLink, section.order);
|
|
90
108
|
componentCompare.registerNavigation({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { ComponentType } from 'react';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport { MenuBarWidget } from './compositions';\
|
|
1
|
+
{"version":3,"names":["CompositionsUI","constructor","menuBarWidgetSlot","emptyStateSlot","registerEmptyState","emptyStateComponent","register","registerMenuWidget","widget","provider","component","componentCompare","config","compositionMenuSlot","compositions","section","CompositionsSection","compositionCompare","CompositionCompareSection","registerRoute","route","registerNavigation","navigationLink","order","props","registerRoutes","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","CompositionsAspect","addRuntime"],"sources":["compositions.ui.runtime.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport React, { ComponentType } from 'react';\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { ComponentAspect, ComponentUI } from '@teambit/component';\nimport { UIRuntime } from '@teambit/ui';\nimport { CompositionCompareSection } from '@teambit/compositions.ui.composition-compare-section';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\nimport { ComponentCompareUI, ComponentCompareAspect } from '@teambit/component-compare';\nimport { CompositionsSection } from './composition.section';\nimport { CompositionsAspect } from './compositions.aspect';\nimport { MenuBarWidget } from './compositions';\n\nexport type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>;\nexport type EmptyStateSlot = SlotRegistry<ComponentType>;\n\nexport class CompositionsUI {\n constructor(private menuBarWidgetSlot: CompositionsMenuSlot, private emptyStateSlot: EmptyStateSlot) {}\n /**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */\n registerEmptyState(emptyStateComponent: ComponentType) {\n this.emptyStateSlot.register(emptyStateComponent);\n return this;\n }\n\n registerMenuWidget(...widget: MenuBarWidget[]) {\n this.menuBarWidgetSlot.register(widget);\n }\n\n getCompositionsCompare = () => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n };\n\n static dependencies = [ComponentAspect, ComponentCompareAspect];\n static runtime = UIRuntime;\n static slots = [Slot.withType<ReactNode>(), Slot.withType<ComponentType>()];\n\n static async provider(\n [component, componentCompare]: [ComponentUI, ComponentCompareUI],\n config: {},\n [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]\n ) {\n const compositions = new CompositionsUI(compositionMenuSlot, emptyStateSlot);\n const section = new CompositionsSection(\n compositions,\n { menuBarWidgetSlot: compositions.menuBarWidgetSlot },\n emptyStateSlot\n );\n const compositionCompare = new CompositionCompareSection(compositions);\n component.registerRoute(section.route);\n component.registerNavigation(section.navigationLink, section.order);\n componentCompare.registerNavigation({\n props: compositionCompare.navigationLink,\n order: compositionCompare.navigationLink.order,\n });\n componentCompare.registerRoutes([compositionCompare.route]);\n return compositions;\n }\n}\n\nexport default CompositionsUI;\n\nCompositionsAspect.addRuntime(CompositionsUI);\n"],"mappings":";;;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAMO,MAAMA,cAAc,CAAC;EAC1BC,WAAW,CAASC,iBAAuC,EAAUC,cAA8B,EAAE;IAAA,KAAjFD,iBAAuC,GAAvCA,iBAAuC;IAAA,KAAUC,cAA8B,GAA9BA,cAA8B;IAAA,gEAa1E,MAAM;MAC7B,oBAAO,+BAAC,qCAAkB;QAAC,UAAU,EAAE,IAAI,CAACA;MAAe,EAAG;IAChE,CAAC;EAfqG;EACtG;AACF;AACA;EACEC,kBAAkB,CAACC,mBAAkC,EAAE;IACrD,IAAI,CAACF,cAAc,CAACG,QAAQ,CAACD,mBAAmB,CAAC;IACjD,OAAO,IAAI;EACb;EAEAE,kBAAkB,CAAC,GAAGC,MAAuB,EAAE;IAC7C,IAAI,CAACN,iBAAiB,CAACI,QAAQ,CAACE,MAAM,CAAC;EACzC;EAUA,aAAaC,QAAQ,CACnB,CAACC,SAAS,EAAEC,gBAAgB,CAAoC,EAChEC,MAAU,EACV,CAACC,mBAAmB,EAAEV,cAAc,CAAyC,EAC7E;IACA,MAAMW,YAAY,GAAG,IAAId,cAAc,CAACa,mBAAmB,EAAEV,cAAc,CAAC;IAC5E,MAAMY,OAAO,GAAG,KAAIC,kCAAmB,EACrCF,YAAY,EACZ;MAAEZ,iBAAiB,EAAEY,YAAY,CAACZ;IAAkB,CAAC,EACrDC,cAAc,CACf;IACD,MAAMc,kBAAkB,GAAG,KAAIC,2CAAyB,EAACJ,YAAY,CAAC;IACtEJ,SAAS,CAACS,aAAa,CAACJ,OAAO,CAACK,KAAK,CAAC;IACtCV,SAAS,CAACW,kBAAkB,CAACN,OAAO,CAACO,cAAc,EAAEP,OAAO,CAACQ,KAAK,CAAC;IACnEZ,gBAAgB,CAACU,kBAAkB,CAAC;MAClCG,KAAK,EAAEP,kBAAkB,CAACK,cAAc;MACxCC,KAAK,EAAEN,kBAAkB,CAACK,cAAc,CAACC;IAC3C,CAAC,CAAC;IACFZ,gBAAgB,CAACc,cAAc,CAAC,CAACR,kBAAkB,CAACG,KAAK,CAAC,CAAC;IAC3D,OAAON,YAAY;EACrB;AACF;AAAC;AAAA,gCA3CYd,cAAc,kBAkBH,CAAC0B,4BAAe,EAAEC,0CAAsB,CAAC;AAAA,gCAlBpD3B,cAAc,aAmBR4B,eAAS;AAAA,gCAnBf5B,cAAc,WAoBV,CAAC6B,eAAI,CAACC,QAAQ,EAAa,EAAED,eAAI,CAACC,QAAQ,EAAiB,CAAC;AAAA,eAyB9D9B,cAAc;AAAA;AAE7B+B,kCAAkB,CAACC,UAAU,CAAChC,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.929/dist/compositions.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@0.0.929/dist/compositions.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compositions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.929",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/compositions/compositions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compositions",
|
|
8
8
|
"name": "compositions",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.929"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -25,17 +25,16 @@
|
|
|
25
25
|
"@teambit/documenter.ui.heading": "4.1.1",
|
|
26
26
|
"@teambit/documenter.ui.property-table": "4.1.3",
|
|
27
27
|
"@teambit/evangelist.elements.icon": "1.0.2",
|
|
28
|
-
"@teambit/component": "0.0.
|
|
29
|
-
"@teambit/compositions.ui.composition-compare": "0.0.138",
|
|
28
|
+
"@teambit/component": "0.0.929",
|
|
30
29
|
"@teambit/compositions.model.composition-id": "0.0.496",
|
|
31
|
-
"@teambit/graphql": "0.0.
|
|
32
|
-
"@teambit/cli": "0.0.
|
|
33
|
-
"@teambit/dev-files": "0.0.
|
|
34
|
-
"@teambit/envs": "0.0.
|
|
35
|
-
"@teambit/preview": "0.0.
|
|
36
|
-
"@teambit/schema": "0.0.
|
|
30
|
+
"@teambit/graphql": "0.0.929",
|
|
31
|
+
"@teambit/cli": "0.0.622",
|
|
32
|
+
"@teambit/dev-files": "0.0.929",
|
|
33
|
+
"@teambit/envs": "0.0.929",
|
|
34
|
+
"@teambit/preview": "0.0.929",
|
|
35
|
+
"@teambit/schema": "0.0.929",
|
|
37
36
|
"@teambit/toolbox.path.match-patterns": "0.0.9",
|
|
38
|
-
"@teambit/workspace": "0.0.
|
|
37
|
+
"@teambit/workspace": "0.0.929",
|
|
39
38
|
"@teambit/ui-foundation.ui.constants.z-indexes": "0.0.498",
|
|
40
39
|
"@teambit/component-id": "0.0.425",
|
|
41
40
|
"@teambit/compositions.ui.compositions-menu-bar": "0.0.172",
|
|
@@ -45,12 +44,14 @@
|
|
|
45
44
|
"@teambit/design.ui.surfaces.status-message-card": "0.0.17",
|
|
46
45
|
"@teambit/docs.ui.queries.get-docs": "0.0.498",
|
|
47
46
|
"@teambit/mdx.ui.mdx-layout": "0.0.512",
|
|
48
|
-
"@teambit/panels": "0.0.
|
|
47
|
+
"@teambit/panels": "0.0.623",
|
|
49
48
|
"@teambit/preview.ui.component-preview": "0.0.508",
|
|
50
49
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.206",
|
|
51
50
|
"@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.188",
|
|
52
|
-
"@teambit/component-compare": "0.0.
|
|
53
|
-
"@teambit/ui": "0.0.
|
|
51
|
+
"@teambit/component-compare": "0.0.177",
|
|
52
|
+
"@teambit/compositions.ui.composition-compare-section": "0.0.1",
|
|
53
|
+
"@teambit/compositions.ui.composition-compare": "0.0.140",
|
|
54
|
+
"@teambit/ui": "0.0.929"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@types/react": "^17.0.8",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"@teambit/compositions.aspect-docs.compositions": "0.0.150"
|
|
65
66
|
},
|
|
66
67
|
"peerDependencies": {
|
|
67
|
-
"@teambit/legacy": "1.0.
|
|
68
|
+
"@teambit/legacy": "1.0.403",
|
|
68
69
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
69
70
|
"react": "^16.8.0 || ^17.0.0"
|
|
70
71
|
},
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyStateSlot } from '@teambit/compositions';
|
|
3
|
-
import { Section } from '@teambit/component';
|
|
4
|
-
import { CompositionCompare } from '@teambit/compositions.ui.composition-compare';
|
|
5
|
-
|
|
6
|
-
export class CompositionCompareSection implements Section {
|
|
7
|
-
constructor(private emptyStateSlot: EmptyStateSlot) {}
|
|
8
|
-
|
|
9
|
-
navigationLink = {
|
|
10
|
-
href: 'compositions',
|
|
11
|
-
children: 'Compositions',
|
|
12
|
-
order: 1,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
route = {
|
|
16
|
-
path: 'compositions/*',
|
|
17
|
-
element: <CompositionCompare emptyState={this.emptyStateSlot} />,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EmptyStateSlot } from '@teambit/compositions';
|
|
3
|
-
import { Section } from '@teambit/component';
|
|
4
|
-
export declare class CompositionCompareSection implements Section {
|
|
5
|
-
private emptyStateSlot;
|
|
6
|
-
constructor(emptyStateSlot: EmptyStateSlot);
|
|
7
|
-
navigationLink: {
|
|
8
|
-
href: string;
|
|
9
|
-
children: string;
|
|
10
|
-
order: number;
|
|
11
|
-
};
|
|
12
|
-
route: {
|
|
13
|
-
path: string;
|
|
14
|
-
element: JSX.Element;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.CompositionCompareSection = void 0;
|
|
8
|
-
function _defineProperty2() {
|
|
9
|
-
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
_defineProperty2 = function () {
|
|
11
|
-
return data;
|
|
12
|
-
};
|
|
13
|
-
return data;
|
|
14
|
-
}
|
|
15
|
-
function _react() {
|
|
16
|
-
const data = _interopRequireDefault(require("react"));
|
|
17
|
-
_react = function () {
|
|
18
|
-
return data;
|
|
19
|
-
};
|
|
20
|
-
return data;
|
|
21
|
-
}
|
|
22
|
-
function _compositionsUi() {
|
|
23
|
-
const data = require("@teambit/compositions.ui.composition-compare");
|
|
24
|
-
_compositionsUi = function () {
|
|
25
|
-
return data;
|
|
26
|
-
};
|
|
27
|
-
return data;
|
|
28
|
-
}
|
|
29
|
-
class CompositionCompareSection {
|
|
30
|
-
constructor(emptyStateSlot) {
|
|
31
|
-
this.emptyStateSlot = emptyStateSlot;
|
|
32
|
-
(0, _defineProperty2().default)(this, "navigationLink", {
|
|
33
|
-
href: 'compositions',
|
|
34
|
-
children: 'Compositions',
|
|
35
|
-
order: 1
|
|
36
|
-
});
|
|
37
|
-
(0, _defineProperty2().default)(this, "route", {
|
|
38
|
-
path: 'compositions/*',
|
|
39
|
-
element: /*#__PURE__*/_react().default.createElement(_compositionsUi().CompositionCompare, {
|
|
40
|
-
emptyState: this.emptyStateSlot
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.CompositionCompareSection = CompositionCompareSection;
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=composition.compare.section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CompositionCompareSection","constructor","emptyStateSlot","href","children","order","path","element"],"sources":["composition.compare.section.tsx"],"sourcesContent":["import React from 'react';\nimport { EmptyStateSlot } from '@teambit/compositions';\nimport { Section } from '@teambit/component';\nimport { CompositionCompare } from '@teambit/compositions.ui.composition-compare';\n\nexport class CompositionCompareSection implements Section {\n constructor(private emptyStateSlot: EmptyStateSlot) {}\n\n navigationLink = {\n href: 'compositions',\n children: 'Compositions',\n order: 1,\n };\n\n route = {\n path: 'compositions/*',\n element: <CompositionCompare emptyState={this.emptyStateSlot} />,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,yBAAyB,CAAoB;EACxDC,WAAW,CAASC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,wDAEjC;MACfC,IAAI,EAAE,cAAc;MACpBC,QAAQ,EAAE,cAAc;MACxBC,KAAK,EAAE;IACT,CAAC;IAAA,+CAEO;MACNC,IAAI,EAAE,gBAAgB;MACtBC,OAAO,eAAE,+BAAC,oCAAkB;QAAC,UAAU,EAAE,IAAI,CAACL;MAAe;IAC/D,CAAC;EAXoD;AAYvD;AAAC"}
|
|
Binary file
|