@teambit/component-compare 0.0.285 → 0.0.287

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.
@@ -17,7 +17,12 @@ import { CompareChangelogSection } from './component-compare-changelog.section';
17
17
  export type ComponentCompareNav = Array<TabItem>;
18
18
  export type ComponentCompareNavSlot = SlotRegistry<ComponentCompareNav>;
19
19
  export class ComponentCompareUI {
20
- constructor(private host: string, private navSlot: ComponentCompareNavSlot, private routeSlot: RouteSlot) {}
20
+ constructor(
21
+ private host: string,
22
+ private navSlot: ComponentCompareNavSlot,
23
+ private routeSlot: RouteSlot,
24
+ private compUI: ComponentUI
25
+ ) {}
21
26
 
22
27
  static runtime = UIRuntime;
23
28
 
@@ -78,7 +83,7 @@ export class ComponentCompareUI {
78
83
 
79
84
  return navProps.map((navProp) => ({
80
85
  ...navProp,
81
- id: `${id}-${navProp?.id}`,
86
+ id: navProp?.id || id,
82
87
  element: getElement(routesForId, navProp?.props?.href),
83
88
  }));
84
89
  })
@@ -93,7 +98,7 @@ export class ComponentCompareUI {
93
98
  ) {
94
99
  const { config } = harmony;
95
100
  const host = String(config.get('teambit.harmony/bit'));
96
- const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot);
101
+ const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot, componentUi);
97
102
  const componentCompareSection = new ComponentCompareSection(componentCompareUI);
98
103
  componentUi.registerRoute([componentCompareSection.route]);
99
104
  componentUi.registerWidget(componentCompareSection.navigationLink, componentCompareSection.order);
@@ -10,7 +10,8 @@ export declare class ComponentCompareUI {
10
10
  private host;
11
11
  private navSlot;
12
12
  private routeSlot;
13
- constructor(host: string, navSlot: ComponentCompareNavSlot, routeSlot: RouteSlot);
13
+ private compUI;
14
+ constructor(host: string, navSlot: ComponentCompareNavSlot, routeSlot: RouteSlot, compUI: ComponentUI);
14
15
  static runtime: import("@teambit/harmony").RuntimeDefinition;
15
16
  static slots: (((registerFn: () => string) => SlotRegistry<ComponentCompareNavSlot>) | ((registerFn: () => string) => SlotRegistry<RouteSlot>))[];
16
17
  static dependencies: import("@teambit/harmony").Aspect[];
@@ -108,10 +108,11 @@ function _componentCompareChangelog() {
108
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
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; }
110
110
  class ComponentCompareUI {
111
- constructor(host, navSlot, routeSlot) {
111
+ constructor(host, navSlot, routeSlot, compUI) {
112
112
  this.host = host;
113
113
  this.navSlot = navSlot;
114
114
  this.routeSlot = routeSlot;
115
+ this.compUI = compUI;
115
116
  (0, _defineProperty2().default)(this, "getComponentComparePage", props => {
116
117
  const tabs = (props === null || props === void 0 ? void 0 : props.tabs) || (() => (0, _lodash().default)(this.navSlot.values()));
117
118
  const routes = (props === null || props === void 0 ? void 0 : props.routes) || (() => (0, _lodash().default)(this.routeSlot.values()));
@@ -165,7 +166,7 @@ class ComponentCompareUI {
165
166
  return navProps.map(navProp => {
166
167
  var _navProp$props;
167
168
  return _objectSpread(_objectSpread({}, navProp), {}, {
168
- id: `${id}-${navProp === null || navProp === void 0 ? void 0 : navProp.id}`,
169
+ id: (navProp === null || navProp === void 0 ? void 0 : navProp.id) || id,
169
170
  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
  });
171
172
  });
@@ -176,7 +177,7 @@ class ComponentCompareUI {
176
177
  config
177
178
  } = harmony;
178
179
  const host = String(config.get('teambit.harmony/bit'));
179
- const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot);
180
+ const componentCompareUI = new ComponentCompareUI(host, navSlot, routeSlot, componentUi);
180
181
  const componentCompareSection = new (_componentCompare2().ComponentCompareSection)(componentCompareUI);
181
182
  componentUi.registerRoute([componentCompareSection.route]);
182
183
  componentUi.registerWidget(componentCompareSection.navigationLink, componentCompareSection.order);
@@ -1 +1 @@
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;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;AAAgF;AAAA;AAIzE,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,G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C1DkC,OAAgB,EAChB;IACA,MAAM;MAAEC;IAAO,CAAC,GAAGD,OAAO;IAC1B,MAAMpC,IAAI,GAAGsC,MAAM,CAACD,MAAM,CAACP,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACtD,MAAMS,kBAAkB,GAAG,IAAIzC,kBAAkB,CAACE,IAAI,EAAEC,OAAO,EAAEC,SAAS,CAAC;IAC3E,MAAMsC,uBAAuB,GAAG,KAAIC,4CAAuB,EAACF,kBAAkB,CAAC;IAC/EL,WAAW,CAACQ,aAAa,CAAC,CAACF,uBAAuB,CAACjB,KAAK,CAAC,CAAC;IAC1DW,WAAW,CAACS,cAAc,CAACH,uBAAuB,CAACI,cAAc,EAAEJ,uBAAuB,CAACK,KAAK,CAAC;IACjG,MAAMC,oBAAoB,GAAG,KAAIC,gDAAqB,EAACR,kBAAkB,CAAC;IAC1E,MAAMS,gBAAgB,GAAG,KAAIC,oDAAuB,EAACV,kBAAkB,CAAC;IAExEA,kBAAkB,CAAC/B,kBAAkB,CAAC,CAACsC,oBAAoB,EAAEE,gBAAgB,CAAC,CAAC;IAE/ET,kBAAkB,CAAC1B,cAAc,CAAC,CAACiC,oBAAoB,CAACvB,KAAK,EAAEyB,gBAAgB,CAACzB,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
+ {"version":3,"names":["ComponentCompareUI","constructor","host","navSlot","routeSlot","compUI","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(\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 <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: 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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J,uBAAuB,CAACK,KAAK,CAAC;IACjG,MAAMC,oBAAoB,GAAG,KAAIC,gDAAqB,EAACR,kBAAkB,CAAC;IAC1E,MAAMS,gBAAgB,GAAG,KAAIC,oDAAuB,EAACV,kBAAkB,CAAC;IAExEA,kBAAkB,CAAC/B,kBAAkB,CAAC,CAACsC,oBAAoB,EAAEE,gBAAgB,CAAC,CAAC;IAE/ET,kBAAkB,CAAC1B,cAAc,CAAC,CAACiC,oBAAoB,CAACvB,KAAK,EAAEyB,gBAAgB,CAACzB,KAAK,CAAC,CAAC;IACvF,OAAOgB,kBAAkB;EAC3B;AACF;AAAC;AAAA,gCA9FY1C,kBAAkB,aAQZqD,eAAS;AAAA,gCARfrD,kBAAkB,WAUd,CAACsD,eAAI,CAACC,QAAQ,EAA2B,EAAED,eAAI,CAACC,QAAQ,EAAa,CAAC;AAAA,gCAV1EvD,kBAAkB,kBAYP,CAACwD,oBAAe,CAAC;AAoFzCC,0CAAsB,CAACC,UAAU,CAAC1D,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.285/dist/component-compare.compositions.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.285/dist/component-compare.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.287/dist/component-compare.compositions.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.287/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,32 +1,32 @@
1
1
  {
2
2
  "name": "@teambit/component-compare",
3
- "version": "0.0.285",
3
+ "version": "0.0.287",
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": "0.0.285"
9
+ "version": "0.0.287"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
13
13
  "lodash.flatten": "4.4.0",
14
14
  "core-js": "^3.0.0",
15
15
  "@babel/runtime": "7.20.0",
16
- "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.1",
17
- "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.7",
18
16
  "@teambit/harmony": "0.4.6",
19
- "@teambit/component.ui.component-compare.changelog": "0.0.72",
20
- "@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.49",
21
- "@teambit/component.ui.component-compare.component-compare": "0.0.72",
22
- "@teambit/component": "0.0.1037",
17
+ "@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.1",
18
+ "@teambit/component.ui.component-compare.models.component-compare-props": "0.0.8",
19
+ "@teambit/component": "0.0.1039",
23
20
  "@teambit/ui-foundation.ui.menu-widget-icon": "0.0.497",
24
- "@teambit/cli": "0.0.698",
25
- "@teambit/graphql": "0.0.1037",
26
- "@teambit/logger": "0.0.791",
27
- "@teambit/scope": "0.0.1037",
21
+ "@teambit/cli": "0.0.699",
22
+ "@teambit/graphql": "0.0.1039",
23
+ "@teambit/logger": "0.0.792",
24
+ "@teambit/scope": "0.0.1039",
25
+ "@teambit/component.ui.component-compare.changelog": "0.0.73",
26
+ "@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.50",
27
+ "@teambit/component.ui.component-compare.component-compare": "0.0.73",
28
28
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.501",
29
- "@teambit/ui": "0.0.1037"
29
+ "@teambit/ui": "0.0.1039"
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.478",
42
+ "@teambit/legacy": "1.0.479",
43
43
  "react": "^16.8.0 || ^17.0.0",
44
44
  "react-dom": "^16.8.0 || ^17.0.0"
45
45
  },