@teambit/component-compare 1.0.107 → 1.0.109
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/artifacts/preview/teambit_component_component_compare-preview.js +1 -0
- package/dist/component-compare-aspects.section.d.ts +4 -4
- package/dist/component-compare-changelog.section.d.ts +4 -4
- package/dist/component-compare.compositions.d.ts +2 -2
- package/dist/component-compare.graphql.d.ts +3 -3
- package/dist/component-compare.main.runtime.d.ts +4 -4
- package/dist/component-compare.section.d.ts +3 -3
- package/dist/component-compare.ui.runtime.d.ts +19 -19
- package/dist/component-compare.ui.runtime.js +9 -16
- package/dist/component-compare.ui.runtime.js.map +1 -1
- package/dist/{preview-1703590665075.js → preview-1703698405864.js} +2 -2
- package/package.json +22 -29
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
|
@@ -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.component/component-compare-preview"]=t():e["teambit.component/component-compare-preview"]=t()}(self,(()=>(()=>{"use strict";var e={69198:(e,t,o)=>{var n={id:"teambit.component/component-compare@1.0.109",homepage:"https://bit.cloud/teambit/component/component-compare",exported:!0};function r(){const e=a(o(87363));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,a.__bit_component=n;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/bit-icons/compare.svg"}));i.__bit_component=n,t.Logo=i},87363:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.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:()=>u,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(69198);o(87363);const r=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var i=["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 c={},m="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={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,i);return(0,r.mdx)(m,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,(0,r.mdx)("a",{parentName:"p",href:"https://bit.cloud/blog/introducing-a-new-feature-component-compare-l4qyxtoo?baseVersion=0.0.5"},"Introducing Component Compare")),(0,r.mdx)("p",null,"Component Compare allows users to compare two component versions. It provides a unified view of all the following differences,"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Code: Modifications made to the source code of the component."),(0,r.mdx)("li",{parentName:"ul"},"Composition: Changes made to how the component looks visually."),(0,r.mdx)("li",{parentName:"ul"},"Tests: Changes made to how the component is tested."),(0,r.mdx)("li",{parentName:"ul"},"Dependencies: Changes made to the component's dependency graph."),(0,r.mdx)("li",{parentName:"ul"},"Overview: Changes to the auto-generated documentation for the component."),(0,r.mdx)("li",{parentName:"ul"},"Aspects: Changes made to the extensions for the component."),(0,r.mdx)("li",{parentName:"ul"},"Changelog: Changes exported between the two selected versions"))))}s.isMDXComponent=!0;const d=[t],l=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
|
|
3
3
|
import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
|
|
4
4
|
import { Section } from '@teambit/component';
|
|
@@ -9,16 +9,16 @@ export declare class AspectsCompareSection implements TabItem, Section {
|
|
|
9
9
|
navigationLink: {
|
|
10
10
|
href: string;
|
|
11
11
|
displayName: string;
|
|
12
|
-
children:
|
|
12
|
+
children: JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
props: {
|
|
15
15
|
href: string;
|
|
16
16
|
displayName: string;
|
|
17
|
-
children:
|
|
17
|
+
children: JSX.Element;
|
|
18
18
|
};
|
|
19
19
|
route: {
|
|
20
20
|
path: string;
|
|
21
|
-
element:
|
|
21
|
+
element: JSX.Element;
|
|
22
22
|
};
|
|
23
23
|
order: number;
|
|
24
24
|
widget: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Section } from '@teambit/component';
|
|
3
3
|
import { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
|
|
4
4
|
import { ComponentCompareUI } from './component-compare.ui.runtime';
|
|
@@ -7,17 +7,17 @@ export declare class CompareChangelogSection implements Section, TabItem {
|
|
|
7
7
|
constructor(compareUI: ComponentCompareUI);
|
|
8
8
|
navigationLink: {
|
|
9
9
|
href: string;
|
|
10
|
-
children:
|
|
10
|
+
children: JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
props: {
|
|
14
14
|
href: string;
|
|
15
|
-
children:
|
|
15
|
+
children: JSX.Element;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
route: {
|
|
19
19
|
path: string;
|
|
20
|
-
element:
|
|
20
|
+
element: JSX.Element;
|
|
21
21
|
};
|
|
22
22
|
order: number;
|
|
23
23
|
widget: boolean;
|
|
@@ -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 function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
11
11
|
ComponentCompareResult: {
|
|
12
12
|
id: (result: ComponentCompareResult) => string;
|
|
13
13
|
code: (result: ComponentCompareResult, { fileName }: {
|
|
14
|
-
fileName?: string
|
|
14
|
+
fileName?: string;
|
|
15
15
|
}) => {
|
|
16
16
|
fileName: string;
|
|
17
17
|
baseContent: string;
|
|
@@ -23,7 +23,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
23
23
|
toContent: string;
|
|
24
24
|
}[];
|
|
25
25
|
tests: (result: ComponentCompareResult, { fileName }: {
|
|
26
|
-
fileName?: string
|
|
26
|
+
fileName?: string;
|
|
27
27
|
}) => {
|
|
28
28
|
fileName: string;
|
|
29
29
|
baseContent: string;
|
|
@@ -35,7 +35,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
35
35
|
toContent: string;
|
|
36
36
|
}[];
|
|
37
37
|
aspects: (result: ComponentCompareResult, { fieldName }: {
|
|
38
|
-
fieldName?: string
|
|
38
|
+
fieldName?: string;
|
|
39
39
|
}) => import("@teambit/legacy/dist/consumer/component-ops/components-diff").FieldsDiff[];
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -7,13 +7,13 @@ import { LoggerMain, Logger } from '@teambit/logger';
|
|
|
7
7
|
import { FieldsDiff, FileDiff } from '@teambit/legacy/dist/consumer/component-ops/components-diff';
|
|
8
8
|
import { TesterMain } from '@teambit/tester';
|
|
9
9
|
import { Component, ComponentMain } from '@teambit/component';
|
|
10
|
-
export
|
|
10
|
+
export type ComponentCompareResult = {
|
|
11
11
|
id: string;
|
|
12
12
|
code: FileDiff[];
|
|
13
13
|
fields: FieldsDiff[];
|
|
14
14
|
tests: FileDiff[];
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type ConfigDiff = {
|
|
17
17
|
version?: string;
|
|
18
18
|
dependencies?: string[];
|
|
19
19
|
aspects?: Record<string, any>;
|
|
@@ -25,7 +25,7 @@ export declare class ComponentCompareMain {
|
|
|
25
25
|
private tester;
|
|
26
26
|
private depResolver;
|
|
27
27
|
private workspace?;
|
|
28
|
-
constructor(componentAspect: ComponentMain, scope: ScopeMain, logger: Logger, tester: TesterMain, depResolver: DependencyResolverMain, workspace?: Workspace
|
|
28
|
+
constructor(componentAspect: ComponentMain, scope: ScopeMain, logger: Logger, tester: TesterMain, depResolver: DependencyResolverMain, workspace?: Workspace);
|
|
29
29
|
compare(baseIdStr: string, compareIdStr: string): Promise<ComponentCompareResult>;
|
|
30
30
|
diffByCLIValues(values: string[], verbose: boolean, table: boolean): Promise<any>;
|
|
31
31
|
getConfigForDiffById(id: string): Promise<ConfigDiff>;
|
|
@@ -36,7 +36,7 @@ export declare class ComponentCompareMain {
|
|
|
36
36
|
}>;
|
|
37
37
|
private parseValues;
|
|
38
38
|
private getBitIdsForDiff;
|
|
39
|
-
static slots:
|
|
39
|
+
static slots: any[];
|
|
40
40
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
41
41
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
42
42
|
static provider([graphql, component, scope, loggerMain, cli, workspace, tester, depResolver]: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Section } from '@teambit/component';
|
|
3
3
|
import { ComponentCompareUI } from './component-compare.ui.runtime';
|
|
4
4
|
export declare class ComponentCompareSection implements Section {
|
|
@@ -7,11 +7,11 @@ export declare class ComponentCompareSection implements Section {
|
|
|
7
7
|
navigationLink: {
|
|
8
8
|
href: string;
|
|
9
9
|
displayName: string;
|
|
10
|
-
children:
|
|
10
|
+
children: JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
route: {
|
|
13
13
|
path: string;
|
|
14
|
-
element:
|
|
14
|
+
element: JSX.Element;
|
|
15
15
|
};
|
|
16
16
|
order: number;
|
|
17
17
|
}
|
|
@@ -4,8 +4,8 @@ import { Harmony, SlotRegistry } from '@teambit/harmony';
|
|
|
4
4
|
import { ComponentUI } from '@teambit/component';
|
|
5
5
|
import { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
6
6
|
import { ComponentCompareProps, TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ComponentCompareNav = Array<TabItem>;
|
|
8
|
+
export type ComponentCompareNavSlot = SlotRegistry<ComponentCompareNav>;
|
|
9
9
|
export declare class ComponentCompareUI {
|
|
10
10
|
private host;
|
|
11
11
|
private navSlot;
|
|
@@ -15,9 +15,9 @@ export declare class ComponentCompareUI {
|
|
|
15
15
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
16
16
|
static slots: (((registerFn: () => string) => SlotRegistry<ComponentCompareNavSlot>) | ((registerFn: () => string) => SlotRegistry<RouteSlot>))[];
|
|
17
17
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
18
|
-
getComponentComparePage: (props?: ComponentCompareProps) =>
|
|
19
|
-
getAspectsComparePage: () =>
|
|
20
|
-
getChangelogComparePage: () =>
|
|
18
|
+
getComponentComparePage: (props?: ComponentCompareProps) => JSX.Element;
|
|
19
|
+
getAspectsComparePage: () => JSX.Element;
|
|
20
|
+
getChangelogComparePage: () => JSX.Element;
|
|
21
21
|
registerNavigation(nav: TabItem | Array<TabItem>): this;
|
|
22
22
|
registerRoutes(routes: RouteProps[]): this;
|
|
23
23
|
get routes(): Map<string, RouteProps | RouteProps[]>;
|
|
@@ -25,22 +25,22 @@ export declare class ComponentCompareUI {
|
|
|
25
25
|
get tabs(): {
|
|
26
26
|
id: string;
|
|
27
27
|
element: React.ReactNode;
|
|
28
|
-
order?: number
|
|
29
|
-
displayName?: string
|
|
30
|
-
props?:
|
|
31
|
-
replace?: boolean
|
|
32
|
-
external?: boolean
|
|
28
|
+
order?: number;
|
|
29
|
+
displayName?: string;
|
|
30
|
+
props?: {
|
|
31
|
+
replace?: boolean;
|
|
32
|
+
external?: boolean;
|
|
33
33
|
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
34
|
-
activeClassName?: string
|
|
35
|
-
activeStyle?: React.CSSProperties
|
|
36
|
-
exact?: boolean
|
|
37
|
-
strict?: boolean
|
|
38
|
-
isActive?: (
|
|
34
|
+
activeClassName?: string;
|
|
35
|
+
activeStyle?: React.CSSProperties;
|
|
36
|
+
exact?: boolean;
|
|
37
|
+
strict?: boolean;
|
|
38
|
+
isActive?: () => boolean;
|
|
39
39
|
} & {
|
|
40
|
-
displayName?: string
|
|
41
|
-
}
|
|
42
|
-
widget?: boolean
|
|
43
|
-
changeType?: import("@teambit/component.ui.component-compare.models.component-compare-change-type").ChangeType
|
|
40
|
+
displayName?: string;
|
|
41
|
+
};
|
|
42
|
+
widget?: boolean;
|
|
43
|
+
changeType?: import("@teambit/component.ui.component-compare.models.component-compare-change-type").ChangeType;
|
|
44
44
|
}[];
|
|
45
45
|
static provider([componentUi]: [ComponentUI], _: any, [navSlot, routeSlot]: [ComponentCompareNavSlot, RouteSlot], harmony: Harmony): Promise<ComponentCompareUI>;
|
|
46
46
|
}
|
|
@@ -102,14 +102,14 @@ class ComponentCompareUI {
|
|
|
102
102
|
this.routeSlot = routeSlot;
|
|
103
103
|
this.compUI = compUI;
|
|
104
104
|
_defineProperty(this, "getComponentComparePage", props => {
|
|
105
|
-
const tabs =
|
|
106
|
-
const routes =
|
|
107
|
-
const host =
|
|
105
|
+
const tabs = props?.tabs || (() => (0, _lodash().default)(this.navSlot.values()));
|
|
106
|
+
const routes = props?.routes || (() => (0, _lodash().default)(this.routeSlot.values()));
|
|
107
|
+
const host = props?.host || this.host;
|
|
108
108
|
return /*#__PURE__*/_react().default.createElement(_componentUiComponentCompare().ComponentCompare, _extends({}, props || {}, {
|
|
109
109
|
tabs: tabs,
|
|
110
110
|
routes: routes,
|
|
111
111
|
host: host,
|
|
112
|
-
isFullScreen:
|
|
112
|
+
isFullScreen: props?.isFullScreen ?? true
|
|
113
113
|
}));
|
|
114
114
|
});
|
|
115
115
|
_defineProperty(this, "getAspectsComparePage", () => {
|
|
@@ -141,24 +141,17 @@ class ComponentCompareUI {
|
|
|
141
141
|
}
|
|
142
142
|
get tabs() {
|
|
143
143
|
const getElement = (routeProps, href) => {
|
|
144
|
-
var _routeProps$find;
|
|
145
144
|
if (routeProps.length === 1) return routeProps[0].element;
|
|
146
145
|
if (!href) return undefined;
|
|
147
|
-
return
|
|
148
|
-
var _route$path;
|
|
149
|
-
return (_route$path = route.path) === null || _route$path === void 0 ? void 0 : _route$path.startsWith(href);
|
|
150
|
-
})) === null || _routeProps$find === void 0 ? void 0 : _routeProps$find.element;
|
|
146
|
+
return routeProps.find(route => route.path?.startsWith(href))?.element;
|
|
151
147
|
};
|
|
152
148
|
return (0, _lodash().default)(this.navSlot.toArray().map(([id, navProps]) => {
|
|
153
149
|
const maybeRoutesForId = this.routes.get(id);
|
|
154
150
|
const routesForId = maybeRoutesForId && (Array.isArray(maybeRoutesForId) ? [...maybeRoutesForId] : [maybeRoutesForId]) || [];
|
|
155
|
-
return navProps.map(navProp => {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
element: getElement(routesForId, navProp === null || navProp === void 0 || (_navProp$props = navProp.props) === null || _navProp$props === void 0 ? void 0 : _navProp$props.href)
|
|
160
|
-
});
|
|
161
|
-
});
|
|
151
|
+
return navProps.map(navProp => _objectSpread(_objectSpread({}, navProp), {}, {
|
|
152
|
+
id: navProp?.id || id,
|
|
153
|
+
element: getElement(routesForId, navProp?.props?.href)
|
|
154
|
+
}));
|
|
162
155
|
}));
|
|
163
156
|
}
|
|
164
157
|
static async provider([componentUi], _, [navSlot, routeSlot], harmony) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireDefault","require","_lodash","_harmony","_component","_componentUiComponentCompare","_ui","_componentUiComponentCompare2","_componentUiComponentCompareCompareAspects","_componentCompareAspects","_componentCompare","_componentCompare2","_componentCompareChangelog","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_extends","assign","bind","target","i","source","key","prototype","hasOwnProperty","call","value","_toPropertyKey","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","ComponentCompareUI","constructor","host","navSlot","routeSlot","compUI","props","tabs","flatten","values","routes","createElement","ComponentCompare","isFullScreen","ComponentCompareAspects","ComponentCompareChangelog","registerNavigation","nav","Array","isArray","register","registerRoutes","map","navLinks","getElement","routeProps","href","_routeProps$find","element","undefined","find","route","_route$path","path","startsWith","toArray","id","navProps","maybeRoutesForId","get","routesForId","navProp","_navProp$props","provider","componentUi","_","harmony","config","componentCompareUI","componentCompareSection","ComponentCompareSection","registerRoute","registerWidget","navigationLink","order","aspectCompareSection","AspectsCompareSection","compareChangelog","CompareChangelogSection","exports","UIRuntime","Slot","withType","ComponentAspect","ComponentCompareAspect","addRuntime"],"sources":["component-compare.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { RouteProps } from 'react-router-dom';\nimport flatten from 'lodash.flatten';\nimport { Harmony, Slot, SlotRegistry } from '@teambit/harmony';\nimport ComponentAspect, { ComponentUI } from '@teambit/component';\nimport { ComponentCompare } from '@teambit/component.ui.component-compare.component-compare';\nimport { UIRuntime } from '@teambit/ui';\nimport { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';\nimport { ComponentCompareProps, TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';\nimport { ComponentCompareChangelog } from '@teambit/component.ui.component-compare.changelog';\nimport { ComponentCompareAspects } from '@teambit/component.ui.component-compare.compare-aspects.compare-aspects';\nimport { AspectsCompareSection } from './component-compare-aspects.section';\nimport { ComponentCompareAspect } from './component-compare.aspect';\nimport { ComponentCompareSection } from './component-compare.section';\nimport { CompareChangelogSection } from './component-compare-changelog.section';\n\nexport type ComponentCompareNav = Array<TabItem>;\nexport type ComponentCompareNavSlot = SlotRegistry<ComponentCompareNav>;\nexport class ComponentCompareUI {\n constructor(\n private host: string,\n private navSlot: ComponentCompareNavSlot,\n private routeSlot: RouteSlot,\n private compUI: ComponentUI\n ) {}\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<ComponentCompareNavSlot>(), Slot.withType<RouteSlot>()];\n\n static dependencies = [ComponentAspect];\n\n getComponentComparePage = (props?: ComponentCompareProps) => {\n const tabs = props?.tabs || (() => flatten(this.navSlot.values()));\n const routes = props?.routes || (() => flatten(this.routeSlot.values()));\n const host = props?.host || this.host;\n\n return (\n <ComponentCompare\n {...(props || {})}\n tabs={tabs}\n routes={routes}\n host={host}\n isFullScreen={props?.isFullScreen ?? true}\n />\n );\n };\n\n getAspectsComparePage = () => {\n return <ComponentCompareAspects host={this.host} />;\n };\n\n getChangelogComparePage = () => {\n return <ComponentCompareChangelog />;\n };\n\n registerNavigation(nav: TabItem | Array<TabItem>) {\n if (Array.isArray(nav)) {\n this.navSlot.register(nav);\n } else {\n this.navSlot.register([nav]);\n }\n return this;\n }\n\n registerRoutes(routes: RouteProps[]) {\n this.routeSlot.register(routes);\n return this;\n }\n\n get routes() {\n return this.routeSlot.map;\n }\n\n get navLinks() {\n return this.navSlot.map;\n }\n\n get tabs() {\n const getElement = (routeProps: RouteProps[], href?: string) => {\n if (routeProps.length === 1) return routeProps[0].element;\n if (!href) return undefined;\n return routeProps.find((route) => route.path?.startsWith(href))?.element;\n };\n\n return flatten(\n this.navSlot.toArray().map(([id, navProps]) => {\n const maybeRoutesForId = this.routes.get(id);\n const routesForId =\n (maybeRoutesForId && (Array.isArray(maybeRoutesForId) ? [...maybeRoutesForId] : [maybeRoutesForId])) || [];\n\n return navProps.map((navProp) => ({\n ...navProp,\n id: navProp?.id || id,\n element: getElement(routesForId, navProp?.props?.href),\n }));\n })\n );\n }\n\n static async provider(\n [componentUi]: [ComponentUI],\n _,\n [navSlot, routeSlot]: [ComponentCompareNavSlot, RouteSlot],\n harmony: Harmony\n ) {\n const { config } = harmony;\n const host = String(config.get('teambit.harmony/bit'));\n const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot, componentUi);\n const componentCompareSection = new ComponentCompareSection(componentCompareUI);\n componentUi.registerRoute([componentCompareSection.route]);\n componentUi.registerWidget(componentCompareSection.navigationLink, componentCompareSection.order);\n const aspectCompareSection = new AspectsCompareSection(componentCompareUI);\n const compareChangelog = new CompareChangelogSection(componentCompareUI);\n\n componentCompareUI.registerNavigation([aspectCompareSection, compareChangelog]);\n\n componentCompareUI.registerRoutes([aspectCompareSection.route, compareChangelog.route]);\n return componentCompareUI;\n }\n}\n\nComponentCompareAspect.addRuntime(ComponentCompareUI);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,O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oDAAuB,EAACV,kBAAkB,CAAC;IAExEA,kBAAkB,CAAChC,kBAAkB,CAAC,CAACuC,oBAAoB,EAAEE,gBAAgB,CAAC,CAAC;IAE/ET,kBAAkB,CAAC3B,cAAc,CAAC,CAACkC,oBAAoB,CAACxB,KAAK,EAAE0B,gBAAgB,CAAC1B,KAAK,CAAC,CAAC;IACvF,OAAOiB,kBAAkB;EAC3B;AACF;AAACW,OAAA,CAAA3D,kBAAA,GAAAA,kBAAA;AAAAxB,eAAA,CAtGYwB,kBAAkB,aAQZ4D,eAAS;AAAApF,eAAA,CARfwB,kBAAkB,WAUd,CAAC6D,eAAI,CAACC,QAAQ,CAA0B,CAAC,EAAED,eAAI,CAACC,QAAQ,CAAY,CAAC,CAAC;AAAAtF,eAAA,CAV1EwB,kBAAkB,kBAYP,CAAC+D,oBAAe,CAAC;AA4FzCC,0CAAsB,CAACC,UAAU,CAACjE,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","_lodash","_harmony","_component","_componentUiComponentCompare","_ui","_componentUiComponentCompare2","_componentUiComponentCompareCompareAspects","_componentCompareAspects","_componentCompare","_componentCompare2","_componentCompareChangelog","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_extends","assign","bind","target","i","source","key","prototype","hasOwnProperty","call","value","_toPropertyKey","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","ComponentCompareUI","constructor","host","navSlot","routeSlot","compUI","props","tabs","flatten","values","routes","createElement","ComponentCompare","isFullScreen","ComponentCompareAspects","ComponentCompareChangelog","registerNavigation","nav","Array","isArray","register","registerRoutes","map","navLinks","getElement","routeProps","href","element","undefined","find","route","path","startsWith","toArray","id","navProps","maybeRoutesForId","get","routesForId","navProp","provider","componentUi","_","harmony","config","componentCompareUI","componentCompareSection","ComponentCompareSection","registerRoute","registerWidget","navigationLink","order","aspectCompareSection","AspectsCompareSection","compareChangelog","CompareChangelogSection","exports","UIRuntime","Slot","withType","ComponentAspect","ComponentCompareAspect","addRuntime"],"sources":["component-compare.ui.runtime.tsx"],"sourcesContent":["import React from 'react';\nimport { RouteProps } from 'react-router-dom';\nimport flatten from 'lodash.flatten';\nimport { Harmony, Slot, SlotRegistry } from '@teambit/harmony';\nimport ComponentAspect, { ComponentUI } from '@teambit/component';\nimport { ComponentCompare } from '@teambit/component.ui.component-compare.component-compare';\nimport { UIRuntime } from '@teambit/ui';\nimport { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';\nimport { ComponentCompareProps, TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';\nimport { ComponentCompareChangelog } from '@teambit/component.ui.component-compare.changelog';\nimport { ComponentCompareAspects } from '@teambit/component.ui.component-compare.compare-aspects.compare-aspects';\nimport { AspectsCompareSection } from './component-compare-aspects.section';\nimport { ComponentCompareAspect } from './component-compare.aspect';\nimport { ComponentCompareSection } from './component-compare.section';\nimport { CompareChangelogSection } from './component-compare-changelog.section';\n\nexport type ComponentCompareNav = Array<TabItem>;\nexport type ComponentCompareNavSlot = SlotRegistry<ComponentCompareNav>;\nexport class ComponentCompareUI {\n constructor(\n private host: string,\n private navSlot: ComponentCompareNavSlot,\n private routeSlot: RouteSlot,\n private compUI: ComponentUI\n ) {}\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<ComponentCompareNavSlot>(), Slot.withType<RouteSlot>()];\n\n static dependencies = [ComponentAspect];\n\n getComponentComparePage = (props?: ComponentCompareProps) => {\n const tabs = props?.tabs || (() => flatten(this.navSlot.values()));\n const routes = props?.routes || (() => flatten(this.routeSlot.values()));\n const host = props?.host || this.host;\n\n return (\n <ComponentCompare\n {...(props || {})}\n tabs={tabs}\n routes={routes}\n host={host}\n isFullScreen={props?.isFullScreen ?? true}\n />\n );\n };\n\n getAspectsComparePage = () => {\n return <ComponentCompareAspects host={this.host} />;\n };\n\n getChangelogComparePage = () => {\n return <ComponentCompareChangelog />;\n };\n\n registerNavigation(nav: TabItem | Array<TabItem>) {\n if (Array.isArray(nav)) {\n this.navSlot.register(nav);\n } else {\n this.navSlot.register([nav]);\n }\n return this;\n }\n\n registerRoutes(routes: RouteProps[]) {\n this.routeSlot.register(routes);\n return this;\n }\n\n get routes() {\n return this.routeSlot.map;\n }\n\n get navLinks() {\n return this.navSlot.map;\n }\n\n get tabs() {\n const getElement = (routeProps: RouteProps[], href?: string) => {\n if (routeProps.length === 1) return routeProps[0].element;\n if (!href) return undefined;\n return routeProps.find((route) => route.path?.startsWith(href))?.element;\n };\n\n return flatten(\n this.navSlot.toArray().map(([id, navProps]) => {\n const maybeRoutesForId = this.routes.get(id);\n const routesForId =\n (maybeRoutesForId && (Array.isArray(maybeRoutesForId) ? [...maybeRoutesForId] : [maybeRoutesForId])) || [];\n\n return navProps.map((navProp) => ({\n ...navProp,\n id: navProp?.id || id,\n element: getElement(routesForId, navProp?.props?.href),\n }));\n })\n );\n }\n\n static async provider(\n [componentUi]: [ComponentUI],\n _,\n [navSlot, routeSlot]: [ComponentCompareNavSlot, RouteSlot],\n harmony: Harmony\n ) {\n const { config } = harmony;\n const host = String(config.get('teambit.harmony/bit'));\n const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot, componentUi);\n const componentCompareSection = new ComponentCompareSection(componentCompareUI);\n componentUi.registerRoute([componentCompareSection.route]);\n componentUi.registerWidget(componentCompareSection.navigationLink, componentCompareSection.order);\n const aspectCompareSection = new AspectsCompareSection(componentCompareUI);\n const compareChangelog = new CompareChangelogSection(componentCompareUI);\n\n componentCompareUI.registerNavigation([aspectCompareSection, compareChangelog]);\n\n componentCompareUI.registerRoutes([aspectCompareSection.route, compareChangelog.route]);\n return componentCompareUI;\n }\n}\n\nComponentCompareAspect.addRuntime(ComponentCompareUI);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAA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oBAAoB,EAAEE,gBAAgB,CAAC,CAAC;IAE/ET,kBAAkB,CAACxB,cAAc,CAAC,CAAC+B,oBAAoB,CAACtB,KAAK,EAAEwB,gBAAgB,CAACxB,KAAK,CAAC,CAAC;IACvF,OAAOe,kBAAkB;EAC3B;AACF;AAACW,OAAA,CAAAxD,kBAAA,GAAAA,kBAAA;AAAAxB,eAAA,CAtGYwB,kBAAkB,aAQZyD,eAAS;AAAAjF,eAAA,CARfwB,kBAAkB,WAUd,CAAC0D,eAAI,CAACC,QAAQ,CAA0B,CAAC,EAAED,eAAI,CAACC,QAAQ,CAAY,CAAC,CAAC;AAAAnF,eAAA,CAV1EwB,kBAAkB,kBAYP,CAAC4D,oBAAe,CAAC;AA4FzCC,0CAAsB,CAACC,UAAU,CAAC9D,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.109/dist/component-compare.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.109/dist/component-compare.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-compare",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.109",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/component-compare",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "component-compare",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.109"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
13
13
|
"lodash.flatten": "4.4.0",
|
|
14
|
-
"core-js": "^3.0.0",
|
|
15
|
-
"@babel/runtime": "7.20.0",
|
|
16
14
|
"@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.7",
|
|
17
15
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.101",
|
|
18
16
|
"@teambit/ui-foundation.ui.menu-widget-icon": "0.0.502",
|
|
@@ -23,31 +21,29 @@
|
|
|
23
21
|
"@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.145",
|
|
24
22
|
"@teambit/component.ui.component-compare.component-compare": "0.0.171",
|
|
25
23
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.506",
|
|
26
|
-
"@teambit/component": "1.0.
|
|
27
|
-
"@teambit/builder": "1.0.
|
|
28
|
-
"@teambit/cli": "0.0.
|
|
29
|
-
"@teambit/dependency-resolver": "1.0.
|
|
30
|
-
"@teambit/graphql": "1.0.
|
|
31
|
-
"@teambit/logger": "0.0.
|
|
32
|
-
"@teambit/scope": "1.0.
|
|
33
|
-
"@teambit/tester": "1.0.
|
|
34
|
-
"@teambit/workspace": "1.0.
|
|
35
|
-
"@teambit/ui": "1.0.
|
|
24
|
+
"@teambit/component": "1.0.109",
|
|
25
|
+
"@teambit/builder": "1.0.109",
|
|
26
|
+
"@teambit/cli": "0.0.841",
|
|
27
|
+
"@teambit/dependency-resolver": "1.0.109",
|
|
28
|
+
"@teambit/graphql": "1.0.109",
|
|
29
|
+
"@teambit/logger": "0.0.934",
|
|
30
|
+
"@teambit/scope": "1.0.109",
|
|
31
|
+
"@teambit/tester": "1.0.109",
|
|
32
|
+
"@teambit/workspace": "1.0.109",
|
|
33
|
+
"@teambit/ui": "1.0.109"
|
|
36
34
|
},
|
|
37
35
|
"devDependencies": {
|
|
38
|
-
"@types/react": "^17.0.8",
|
|
39
36
|
"@types/lodash.flatten": "4.4.6",
|
|
40
37
|
"@types/mocha": "9.1.0",
|
|
41
|
-
"@types/
|
|
42
|
-
"@types/
|
|
43
|
-
"@
|
|
44
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
|
38
|
+
"@types/jest": "^29.2.2",
|
|
39
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
|
40
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.14"
|
|
45
41
|
},
|
|
46
42
|
"peerDependencies": {
|
|
47
|
-
"react
|
|
48
|
-
"
|
|
49
|
-
"react": "^
|
|
50
|
-
"
|
|
43
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
44
|
+
"react-router-dom": "^6.8.1",
|
|
45
|
+
"@types/react": "^18.2.12",
|
|
46
|
+
"@teambit/legacy": "1.0.624"
|
|
51
47
|
},
|
|
52
48
|
"license": "Apache-2.0",
|
|
53
49
|
"optionalDependencies": {},
|
|
@@ -61,7 +57,7 @@
|
|
|
61
57
|
},
|
|
62
58
|
"private": false,
|
|
63
59
|
"engines": {
|
|
64
|
-
"node": ">=
|
|
60
|
+
"node": ">=16.0.0"
|
|
65
61
|
},
|
|
66
62
|
"repository": {
|
|
67
63
|
"type": "git",
|
|
@@ -70,12 +66,9 @@
|
|
|
70
66
|
"keywords": [
|
|
71
67
|
"bit",
|
|
72
68
|
"bit-aspect",
|
|
69
|
+
"bit-core-aspect",
|
|
73
70
|
"components",
|
|
74
71
|
"collaboration",
|
|
75
|
-
"web"
|
|
76
|
-
"react",
|
|
77
|
-
"react-components",
|
|
78
|
-
"angular",
|
|
79
|
-
"angular-components"
|
|
72
|
+
"web"
|
|
80
73
|
]
|
|
81
74
|
}
|
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
|
+
}
|