@teambit/component-compare 0.0.224 → 0.0.226

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.
@@ -63,6 +63,28 @@ export class ComponentCompareUI {
63
63
  return this.navSlot.map;
64
64
  }
65
65
 
66
+ get tabs() {
67
+ const getElement = (routeProps: RouteProps[], href?: string) => {
68
+ if (routeProps.length === 1) return routeProps[0].element;
69
+ if (!href) return undefined;
70
+ return routeProps.find((route) => route.path?.startsWith(href))?.element;
71
+ };
72
+
73
+ return flatten(
74
+ this.navSlot.toArray().map(([id, navProps]) => {
75
+ const maybeRoutesForId = this.routes.get(id);
76
+ const routesForId =
77
+ (maybeRoutesForId && (Array.isArray(maybeRoutesForId) ? [...maybeRoutesForId] : [maybeRoutesForId])) || [];
78
+
79
+ return navProps.map((navProp) => ({
80
+ ...navProp,
81
+ id: `${id}-${navProp?.id}`,
82
+ element: getElement(routesForId, navProp?.props?.href),
83
+ }));
84
+ })
85
+ );
86
+ }
87
+
66
88
  static async provider(
67
89
  [componentUi]: [ComponentUI],
68
90
  _,
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { RouteProps } from 'react-router-dom';
3
3
  import { Harmony, SlotRegistry } from '@teambit/harmony';
4
4
  import { ComponentUI } from '@teambit/component';
@@ -21,5 +21,25 @@ export declare class ComponentCompareUI {
21
21
  registerRoutes(routes: RouteProps[]): this;
22
22
  get routes(): Map<string, RouteProps | RouteProps[]>;
23
23
  get navLinks(): Map<string, ComponentCompareNav>;
24
+ get tabs(): {
25
+ id: string;
26
+ element: React.ReactNode;
27
+ order?: number | undefined;
28
+ displayName?: string | undefined;
29
+ props?: ({
30
+ replace?: boolean | undefined;
31
+ external?: boolean | undefined;
32
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
33
+ activeClassName?: string | undefined;
34
+ activeStyle?: React.CSSProperties | undefined;
35
+ exact?: boolean | undefined;
36
+ strict?: boolean | undefined;
37
+ isActive?: (() => boolean) | undefined;
38
+ } & {
39
+ displayName?: string | undefined;
40
+ }) | undefined;
41
+ widget?: boolean | undefined;
42
+ changeType?: import("@teambit/component.ui.component-compare.models.component-compare-change-type").ChangeType | undefined;
43
+ }[];
24
44
  static provider([componentUi]: [ComponentUI], _: any, [navSlot, routeSlot]: [ComponentCompareNavSlot, RouteSlot], harmony: Harmony): Promise<ComponentCompareUI>;
25
45
  }
@@ -105,6 +105,8 @@ function _componentCompareChangelog() {
105
105
  };
106
106
  return data;
107
107
  }
108
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
109
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
108
110
  class ComponentCompareUI {
109
111
  constructor(host, navSlot, routeSlot) {
110
112
  this.host = host;
@@ -147,6 +149,28 @@ class ComponentCompareUI {
147
149
  get navLinks() {
148
150
  return this.navSlot.map;
149
151
  }
152
+ get tabs() {
153
+ const getElement = (routeProps, href) => {
154
+ var _routeProps$find;
155
+ if (routeProps.length === 1) return routeProps[0].element;
156
+ if (!href) return undefined;
157
+ return (_routeProps$find = routeProps.find(route => {
158
+ var _route$path;
159
+ return (_route$path = route.path) === null || _route$path === void 0 ? void 0 : _route$path.startsWith(href);
160
+ })) === null || _routeProps$find === void 0 ? void 0 : _routeProps$find.element;
161
+ };
162
+ return (0, _lodash().default)(this.navSlot.toArray().map(([id, navProps]) => {
163
+ const maybeRoutesForId = this.routes.get(id);
164
+ const routesForId = maybeRoutesForId && (Array.isArray(maybeRoutesForId) ? [...maybeRoutesForId] : [maybeRoutesForId]) || [];
165
+ return navProps.map(navProp => {
166
+ var _navProp$props;
167
+ return _objectSpread(_objectSpread({}, navProp), {}, {
168
+ id: `${id}-${navProp === null || navProp === void 0 ? void 0 : navProp.id}`,
169
+ element: getElement(routesForId, navProp === null || navProp === void 0 ? void 0 : (_navProp$props = navProp.props) === null || _navProp$props === void 0 ? void 0 : _navProp$props.href)
170
+ });
171
+ });
172
+ }));
173
+ }
150
174
  static async provider([componentUi], _, [navSlot, routeSlot], harmony) {
151
175
  const {
152
176
  config
@@ -1 +1 @@
1
- {"version":3,"names":["ComponentCompareUI","constructor","host","navSlot","routeSlot","props","tabs","flatten","values","routes","registerNavigation","nav","Array","isArray","register","registerRoutes","map","navLinks","provider","componentUi","_","harmony","config","String","get","componentCompareUI","componentCompareSection","ComponentCompareSection","registerRoute","route","registerWidget","navigationLink","order","aspectCompareSection","AspectsCompareSection","compareChangelog","CompareChangelogSection","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(private host: string, private navSlot: ComponentCompareNavSlot, private routeSlot: RouteSlot) {}\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 <ComponentCompare {...(props || {})} tabs={tabs} routes={routes} host={host} />;\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 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);\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;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;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;AAGA;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;AAIO,MAAMA,kBAAkB,CAAC;EAC9BC,WAAW,CAASC,IAAY,EAAUC,OAAgC,EAAUC,SAAoB,EAAE;IAAA,KAAtFF,IAAY,GAAZA,IAAY;IAAA,KAAUC,OAAgC,GAAhCA,OAAgC;IAAA,KAAUC,SAAoB,GAApBA,SAAoB;IAAA,iEAQ7EC,KAA6B,IAAK;MAC3D,MAAMC,IAAI,GAAG,CAAAD,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEC,IAAI,MAAK,MAAM,IAAAC,iBAAO,EAAC,IAAI,CAACJ,OAAO,CAACK,MAAM,EAAE,CAAC,CAAC;MAClE,MAAMC,MAAM,GAAG,CAAAJ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEI,MAAM,MAAK,MAAM,IAAAF,iBAAO,EAAC,IAAI,CAACH,SAAS,CAACI,MAAM,EAAE,CAAC,CAAC;MACxE,MAAMN,IAAI,GAAG,CAAAG,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEH,I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3E,MAAMsB,uBAAuB,GAAG,KAAIC,4CAAuB,EAACF,kBAAkB,CAAC;IAC/EN,WAAW,CAACS,aAAa,CAAC,CAACF,uBAAuB,CAACG,KAAK,CAAC,CAAC;IAC1DV,WAAW,CAACW,cAAc,CAACJ,uBAAuB,CAACK,cAAc,EAAEL,uBAAuB,CAACM,KAAK,CAAC;IACjG,MAAMC,oBAAoB,GAAG,KAAIC,gDAAqB,EAACT,kBAAkB,CAAC;IAC1E,MAAMU,gBAAgB,GAAG,KAAIC,oDAAuB,EAACX,kBAAkB,CAAC;IAExEA,kBAAkB,CAACf,kBAAkB,CAAC,CAACuB,oBAAoB,EAAEE,gBAAgB,CAAC,CAAC;IAE/EV,kBAAkB,CAACV,cAAc,CAAC,CAACkB,oBAAoB,CAACJ,KAAK,EAAEM,gBAAgB,CAACN,KAAK,CAAC,CAAC;IACvF,OAAOJ,kBAAkB;EAC3B;AACF;AAAC;AAAA,gCAnEYzB,kBAAkB,aAGZqC,eAAS;AAAA,gCAHfrC,kBAAkB,WAKd,CAACsC,eAAI,CAACC,QAAQ,EAA2B,EAAED,eAAI,CAACC,QAAQ,EAAa,CAAC;AAAA,gCAL1EvC,kBAAkB,kBAOP,CAACwC,oBAAe,CAAC;AA8DzCC,0CAAsB,CAACC,UAAU,CAAC1C,kBAAkB,CAAC"}
1
+ {"version":3,"names":["ComponentCompareUI","constructor","host","navSlot","routeSlot","props","tabs","flatten","values","routes","registerNavigation","nav","Array","isArray","register","registerRoutes","map","navLinks","getElement","routeProps","href","length","element","undefined","find","route","path","startsWith","toArray","id","navProps","maybeRoutesForId","get","routesForId","navProp","provider","componentUi","_","harmony","config","String","componentCompareUI","componentCompareSection","ComponentCompareSection","registerRoute","registerWidget","navigationLink","order","aspectCompareSection","AspectsCompareSection","compareChangelog","CompareChangelogSection","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(private host: string, private navSlot: ComponentCompareNavSlot, private routeSlot: RouteSlot) {}\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 <ComponentCompare {...(props || {})} tabs={tabs} routes={routes} host={host} />;\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: `${id}-${navProp?.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);\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;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;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;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAA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B,KAAK,CAAC,CAAC;IACvF,OAAOgB,kBAAkB;EAC3B;AACF;AAAC;AAAA,gCAzFYzC,kBAAkB,aAGZoD,eAAS;AAAA,gCAHfpD,kBAAkB,WAKd,CAACqD,eAAI,CAACC,QAAQ,EAA2B,EAAED,eAAI,CAACC,QAAQ,EAAa,CAAC;AAAA,gCAL1EtD,kBAAkB,kBAOP,CAACuD,oBAAe,CAAC;AAoFzCC,0CAAsB,CAACC,UAAU,CAACzD,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.224/dist/component-compare.compositions.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.224/dist/component-compare.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.226/dist/component-compare.compositions.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.226/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,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component-compare",
3
- "version": "0.0.224",
3
+ "version": "0.0.226",
4
4
  "homepage": "https://bit.dev/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": "0.0.224"
9
+ "version": "0.0.226"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
@@ -16,17 +16,17 @@
16
16
  "@teambit/harmony": "0.4.6",
17
17
  "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.1",
18
18
  "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.3",
19
- "@teambit/component": "0.0.976",
19
+ "@teambit/component": "0.0.978",
20
20
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.497",
21
- "@teambit/cli": "0.0.656",
22
- "@teambit/graphql": "0.0.976",
23
- "@teambit/logger": "0.0.749",
24
- "@teambit/scope": "0.0.976",
25
- "@teambit/component.ui.component-compare.changelog": "0.0.40",
26
- "@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.28",
27
- "@teambit/component.ui.component-compare.component-compare": "0.0.40",
21
+ "@teambit/cli": "0.0.657",
22
+ "@teambit/graphql": "0.0.978",
23
+ "@teambit/logger": "0.0.750",
24
+ "@teambit/scope": "0.0.978",
25
+ "@teambit/component.ui.component-compare.changelog": "0.0.41",
26
+ "@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.29",
27
+ "@teambit/component.ui.component-compare.component-compare": "0.0.41",
28
28
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
29
- "@teambit/ui": "0.0.976"
29
+ "@teambit/ui": "0.0.978"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/react": "^17.0.8",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react-router-dom": "^6.0.0",
42
- "@teambit/legacy": "1.0.438",
42
+ "@teambit/legacy": "1.0.439",
43
43
  "react": "^16.8.0 || ^17.0.0",
44
44
  "react-dom": "^16.8.0 || ^17.0.0"
45
45
  },