@teambit/component 1.0.193 → 1.0.195

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.
@@ -2439,7 +2439,7 @@
2439
2439
  "_legacy": {
2440
2440
  "scope": "teambit.component",
2441
2441
  "name": "component",
2442
- "version": "1.0.193"
2442
+ "version": "1.0.195"
2443
2443
  },
2444
2444
  "_scope": "teambit.component"
2445
2445
  }
@@ -8152,7 +8152,7 @@
8152
8152
  "_legacy": {
8153
8153
  "scope": "teambit.component",
8154
8154
  "name": "component",
8155
- "version": "1.0.193"
8155
+ "version": "1.0.195"
8156
8156
  },
8157
8157
  "_scope": "teambit.component"
8158
8158
  }
@@ -14365,7 +14365,7 @@
14365
14365
  "__schema": "ReactSchema",
14366
14366
  "location": {
14367
14367
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14368
- "line": 9,
14368
+ "line": 12,
14369
14369
  "character": 1
14370
14370
  },
14371
14371
  "signature": "function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): React.JSX.Element",
@@ -14374,7 +14374,7 @@
14374
14374
  "__schema": "ParameterSchema",
14375
14375
  "location": {
14376
14376
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14377
- "line": 9,
14377
+ "line": 12,
14378
14378
  "character": 27
14379
14379
  },
14380
14380
  "name": "{ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }",
@@ -14382,7 +14382,7 @@
14382
14382
  "__schema": "TypeRefSchema",
14383
14383
  "location": {
14384
14384
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14385
- "line": 17,
14385
+ "line": 20,
14386
14386
  "character": 4
14387
14387
  },
14388
14388
  "name": "NavPluginProps",
@@ -14394,7 +14394,7 @@
14394
14394
  "__schema": "InferenceTypeSchema",
14395
14395
  "location": {
14396
14396
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14397
- "line": 10,
14397
+ "line": 13,
14398
14398
  "character": 3
14399
14399
  },
14400
14400
  "name": "href",
@@ -14405,7 +14405,7 @@
14405
14405
  "__schema": "InferenceTypeSchema",
14406
14406
  "location": {
14407
14407
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14408
- "line": 11,
14408
+ "line": 14,
14409
14409
  "character": 3
14410
14410
  },
14411
14411
  "name": "className",
@@ -14416,7 +14416,7 @@
14416
14416
  "__schema": "InferenceTypeSchema",
14417
14417
  "location": {
14418
14418
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14419
- "line": 12,
14419
+ "line": 15,
14420
14420
  "character": 3
14421
14421
  },
14422
14422
  "name": "activeClassName",
@@ -14427,7 +14427,7 @@
14427
14427
  "__schema": "InferenceTypeSchema",
14428
14428
  "location": {
14429
14429
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14430
- "line": 13,
14430
+ "line": 16,
14431
14431
  "character": 3
14432
14432
  },
14433
14433
  "name": "children",
@@ -14438,7 +14438,7 @@
14438
14438
  "__schema": "InferenceTypeSchema",
14439
14439
  "location": {
14440
14440
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14441
- "line": 14,
14441
+ "line": 17,
14442
14442
  "character": 3
14443
14443
  },
14444
14444
  "name": "displayName",
@@ -14449,7 +14449,7 @@
14449
14449
  "__schema": "InferenceTypeSchema",
14450
14450
  "location": {
14451
14451
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14452
- "line": 15,
14452
+ "line": 18,
14453
14453
  "character": 3
14454
14454
  },
14455
14455
  "name": "ignoreQueryParams",
@@ -14460,7 +14460,7 @@
14460
14460
  "__schema": "InferenceTypeSchema",
14461
14461
  "location": {
14462
14462
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14463
- "line": 16,
14463
+ "line": 19,
14464
14464
  "character": 6
14465
14465
  },
14466
14466
  "name": "rest",
@@ -14474,7 +14474,7 @@
14474
14474
  "__schema": "TypeRefSchema",
14475
14475
  "location": {
14476
14476
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
14477
- "line": 9,
14477
+ "line": 12,
14478
14478
  "character": 1
14479
14479
  },
14480
14480
  "name": "React.JSX.Element",
@@ -18993,7 +18993,7 @@
18993
18993
  "_legacy": {
18994
18994
  "scope": "teambit.component",
18995
18995
  "name": "component",
18996
- "version": "1.0.193"
18996
+ "version": "1.0.195"
18997
18997
  },
18998
18998
  "_scope": "teambit.component"
18999
18999
  }
@@ -24273,7 +24273,7 @@
24273
24273
  "_legacy": {
24274
24274
  "scope": "teambit.component",
24275
24275
  "name": "component",
24276
- "version": "1.0.193"
24276
+ "version": "1.0.195"
24277
24277
  },
24278
24278
  "_scope": "teambit.component"
24279
24279
  }
@@ -30749,7 +30749,7 @@
30749
30749
  "_legacy": {
30750
30750
  "scope": "teambit.component",
30751
30751
  "name": "component",
30752
- "version": "1.0.193"
30752
+ "version": "1.0.195"
30753
30753
  },
30754
30754
  "_scope": "teambit.component"
30755
30755
  }
@@ -32312,7 +32312,7 @@
32312
32312
  "__schema": "ReactSchema",
32313
32313
  "location": {
32314
32314
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32315
- "line": 9,
32315
+ "line": 12,
32316
32316
  "character": 1
32317
32317
  },
32318
32318
  "signature": "function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): React.JSX.Element",
@@ -32321,7 +32321,7 @@
32321
32321
  "__schema": "ParameterSchema",
32322
32322
  "location": {
32323
32323
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32324
- "line": 9,
32324
+ "line": 12,
32325
32325
  "character": 27
32326
32326
  },
32327
32327
  "name": "{ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }",
@@ -32329,7 +32329,7 @@
32329
32329
  "__schema": "TypeRefSchema",
32330
32330
  "location": {
32331
32331
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32332
- "line": 17,
32332
+ "line": 20,
32333
32333
  "character": 4
32334
32334
  },
32335
32335
  "name": "NavPluginProps",
@@ -32341,7 +32341,7 @@
32341
32341
  "__schema": "InferenceTypeSchema",
32342
32342
  "location": {
32343
32343
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32344
- "line": 10,
32344
+ "line": 13,
32345
32345
  "character": 3
32346
32346
  },
32347
32347
  "name": "href",
@@ -32352,7 +32352,7 @@
32352
32352
  "__schema": "InferenceTypeSchema",
32353
32353
  "location": {
32354
32354
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32355
- "line": 11,
32355
+ "line": 14,
32356
32356
  "character": 3
32357
32357
  },
32358
32358
  "name": "className",
@@ -32363,7 +32363,7 @@
32363
32363
  "__schema": "InferenceTypeSchema",
32364
32364
  "location": {
32365
32365
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32366
- "line": 12,
32366
+ "line": 15,
32367
32367
  "character": 3
32368
32368
  },
32369
32369
  "name": "activeClassName",
@@ -32374,7 +32374,7 @@
32374
32374
  "__schema": "InferenceTypeSchema",
32375
32375
  "location": {
32376
32376
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32377
- "line": 13,
32377
+ "line": 16,
32378
32378
  "character": 3
32379
32379
  },
32380
32380
  "name": "children",
@@ -32385,7 +32385,7 @@
32385
32385
  "__schema": "InferenceTypeSchema",
32386
32386
  "location": {
32387
32387
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32388
- "line": 14,
32388
+ "line": 17,
32389
32389
  "character": 3
32390
32390
  },
32391
32391
  "name": "displayName",
@@ -32396,7 +32396,7 @@
32396
32396
  "__schema": "InferenceTypeSchema",
32397
32397
  "location": {
32398
32398
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32399
- "line": 15,
32399
+ "line": 18,
32400
32400
  "character": 3
32401
32401
  },
32402
32402
  "name": "ignoreQueryParams",
@@ -32407,7 +32407,7 @@
32407
32407
  "__schema": "InferenceTypeSchema",
32408
32408
  "location": {
32409
32409
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32410
- "line": 16,
32410
+ "line": 19,
32411
32411
  "character": 6
32412
32412
  },
32413
32413
  "name": "rest",
@@ -32421,7 +32421,7 @@
32421
32421
  "__schema": "TypeRefSchema",
32422
32422
  "location": {
32423
32423
  "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32424
- "line": 9,
32424
+ "line": 12,
32425
32425
  "character": 1
32426
32426
  },
32427
32427
  "name": "React.JSX.Element",
@@ -32432,7 +32432,40 @@
32432
32432
  ]
32433
32433
  }
32434
32434
  ],
32435
- "internals": []
32435
+ "internals": [
32436
+ {
32437
+ "__schema": "ModuleSchema",
32438
+ "location": {
32439
+ "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32440
+ "line": 10,
32441
+ "character": 1
32442
+ },
32443
+ "exports": [
32444
+ {
32445
+ "__schema": "VariableLikeSchema",
32446
+ "location": {
32447
+ "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32448
+ "line": 10,
32449
+ "character": 7
32450
+ },
32451
+ "signature": "const Link: any",
32452
+ "name": "Link",
32453
+ "type": {
32454
+ "__schema": "InferenceTypeSchema",
32455
+ "location": {
32456
+ "filePath": "ui/top-bar-nav/top-bar-nav.tsx",
32457
+ "line": 10,
32458
+ "character": 7
32459
+ },
32460
+ "type": "any"
32461
+ },
32462
+ "isOptional": false,
32463
+ "defaultValue": "BaseLink as any"
32464
+ }
32465
+ ],
32466
+ "internals": []
32467
+ }
32468
+ ]
32436
32469
  },
32437
32470
  {
32438
32471
  "__schema": "ModuleSchema",
@@ -33187,7 +33220,7 @@
33187
33220
  "componentId": {
33188
33221
  "scope": "teambit.component",
33189
33222
  "name": "component",
33190
- "version": "1.0.193"
33223
+ "version": "1.0.195"
33191
33224
  },
33192
33225
  "taggedModuleExports": []
33193
33226
  }
@@ -2,11 +2,11 @@ import { Section } from './section';
2
2
  export declare class AspectSection implements Section {
3
3
  route: {
4
4
  path: string;
5
- element: JSX.Element;
5
+ element: import("react/jsx-runtime").JSX.Element;
6
6
  };
7
7
  navigationLink: {
8
8
  href: string;
9
- children: JSX.Element;
9
+ children: import("react/jsx-runtime").JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  order: number;
@@ -1 +1 @@
1
- export declare const Logo: () => JSX.Element;
1
+ export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
@@ -73,8 +73,8 @@ export declare class ComponentUI {
73
73
  private bitMethod;
74
74
  registerPubSub(): void;
75
75
  handleComponentChange: (activeComponent?: ComponentModel) => void;
76
- getComponentUI(host: string, options?: GetComponentsOptions): JSX.Element;
77
- getMenu(host: string, options?: GetComponentsOptions): JSX.Element;
76
+ getComponentUI(host: string, options?: GetComponentsOptions): import("react/jsx-runtime").JSX.Element;
77
+ getMenu(host: string, options?: GetComponentsOptions): import("react/jsx-runtime").JSX.Element;
78
78
  listMenuItems(): import("lodash").Dictionary<MenuItem[]>;
79
79
  registerRoute(routes: RouteProps[] | RouteProps): this;
80
80
  registerNavigation(nav: LinkProps, order?: number): void;
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.193/dist/component.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.193/dist/component.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.195/dist/component.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.195/dist/component.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1 +1 @@
1
- export declare function AspectPage(): JSX.Element;
1
+ export declare function AspectPage(): import("react/jsx-runtime").JSX.Element;
@@ -16,5 +16,5 @@ export declare class ComponentError {
16
16
  * error message of the error
17
17
  */
18
18
  message?: string | undefined);
19
- renderError(): JSX.Element;
19
+ renderError(): import("react/jsx-runtime").JSX.Element;
20
20
  }
@@ -12,5 +12,5 @@ type ComponentResultProps = {
12
12
  component: ComponentModel;
13
13
  plugins?: ComponentResultPlugin[];
14
14
  };
15
- export declare function ComponentResult({ component, plugins }: ComponentResultProps): JSX.Element;
15
+ export declare function ComponentResult({ component, plugins }: ComponentResultProps): import("react/jsx-runtime").JSX.Element;
16
16
  export {};
@@ -23,4 +23,4 @@ export type ComponentProps = {
23
23
  /**
24
24
  * main UI component of the Component extension.
25
25
  */
26
- export declare function Component({ routeSlot, overriddenRoutes, containerSlot, host, onComponentChange, componentIdStr, useComponent, path, useComponentFilters, }: ComponentProps): JSX.Element;
26
+ export declare function Component({ routeSlot, overriddenRoutes, containerSlot, host, onComponentChange, componentIdStr, useComponent, path, useComponentFilters, }: ComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -11,7 +11,7 @@ export type ComponentProviderProps = {
11
11
  */
12
12
  children: ReactNode;
13
13
  };
14
- export declare function ComponentProvider({ component, children }: ComponentProviderProps): JSX.Element;
14
+ export declare function ComponentProvider({ component, children }: ComponentProviderProps): import("react/jsx-runtime").JSX.Element;
15
15
  export type ComponentDescriptorProviderProps = {
16
16
  /**
17
17
  * component model.
@@ -22,4 +22,4 @@ export type ComponentDescriptorProviderProps = {
22
22
  */
23
23
  children: ReactNode;
24
24
  };
25
- export declare function ComponentDescriptorProvider({ componentDescriptor, children }: ComponentDescriptorProviderProps): JSX.Element;
25
+ export declare function ComponentDescriptorProvider({ componentDescriptor, children }: ComponentDescriptorProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -20,4 +20,4 @@ export type MenuNavProps = {
20
20
  activeTabIndex?: number;
21
21
  alwaysShowActiveTab?: boolean;
22
22
  } & React.HTMLAttributes<HTMLElement>;
23
- export declare function CollapsibleMenuNav({ navigationSlot, widgetSlot, navPlugins, widgetPlugins, className, secondaryNavClassName, activeTabIndex, alwaysShowActiveTab, children, }: MenuNavProps): JSX.Element;
23
+ export declare function CollapsibleMenuNav({ navigationSlot, widgetSlot, navPlugins, widgetPlugins, className, secondaryNavClassName, activeTabIndex, alwaysShowActiveTab, children, }: MenuNavProps): import("react/jsx-runtime").JSX.Element;
@@ -54,7 +54,7 @@ export type MenuProps = {
54
54
  /**
55
55
  * top bar menu.
56
56
  */
57
- export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host, menuItemSlot, consumeMethodSlot, rightSideMenuSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, }: MenuProps): JSX.Element;
57
+ export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host, menuItemSlot, consumeMethodSlot, rightSideMenuSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, }: MenuProps): import("react/jsx-runtime").JSX.Element;
58
58
  export type VersionRelatedDropdownsProps = {
59
59
  componentId?: string;
60
60
  consumeMethods?: ConsumeMethodSlot;
@@ -94,4 +94,4 @@ export type UseComponentVersionsResult = {
94
94
  };
95
95
  export declare function defaultLoadVersions(host: string, componentId?: string, componentFilters?: Filters, useComponent?: UseComponentType, loadingFromProps?: boolean): UseComponentVersions;
96
96
  export declare const defaultLoadCurrentVersion: (props: VersionRelatedDropdownsProps) => UseComponentVersion;
97
- export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps): JSX.Element;
97
+ export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { NavPluginProps } from '../menu/nav-plugin';
2
- export declare function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): JSX.Element;
2
+ export declare function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): import("react/jsx-runtime").JSX.Element;
@@ -44,6 +44,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
44
44
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
45
45
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
46
46
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
47
+ // @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest
48
+ const Link = _baseReactNavigation().Link;
47
49
  function TopBarNav(_ref) {
48
50
  let {
49
51
  href,
@@ -64,7 +66,7 @@ function TopBarNav(_ref) {
64
66
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
67
  const preventPassingDisplayNameToLink = displayName;
66
68
  const target = href && !ignoreQueryParams && `${href}${search}` || href;
67
- return /*#__PURE__*/_react().default.createElement(_baseReactNavigation().Link, _extends({}, rest, {
69
+ return /*#__PURE__*/_react().default.createElement(Link, _extends({}, rest, {
68
70
  className: (0, _classnames().default)(className, _topBarNavModule().default.topBarLink),
69
71
  activeClassName: (0, _classnames().default)(activeClassName, _topBarNavModule().default.active),
70
72
  href: target
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","_classnames","_reactRouterDom","_baseReactNavigation","_topBarNavModule","_excluded","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","TopBarNav","_ref","href","className","activeClassName","children","displayName","ignoreQueryParams","rest","search","useLocation","preventPassingDisplayNameToLink","createElement","Link","classnames","styles","topBarLink","active"],"sources":["top-bar-nav.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport { useLocation } from 'react-router-dom';\nimport { Link } from '@teambit/base-react.navigation.link';\nimport { NavPluginProps } from '../menu/nav-plugin';\n\nimport styles from './top-bar-nav.module.scss';\n\nexport function TopBarNav({\n href,\n className,\n activeClassName,\n children,\n displayName,\n ignoreQueryParams,\n ...rest\n}: NavPluginProps) {\n const { search } = useLocation(); // sticky query params\n\n // @hack - this is so that the displayName will not pass to the link and cause a warning in the console.\n // it is used for component page nav link widgets (code, aspects etc),\n // but not for regular menu links (overview, compositions, etc).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const preventPassingDisplayNameToLink = displayName;\n\n const target = (href && !ignoreQueryParams && `${href}${search}`) || href;\n\n return (\n <Link\n {...rest}\n className={classnames(className, styles.topBarLink)}\n activeClassName={classnames(activeClassName, styles.active)}\n href={target}\n >\n <div>{children}</div>\n </Link>\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,gBAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,qBAAA;EAAA,MAAAL,IAAA,GAA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QAAc,CAChB,CAAC;AAEX","ignoreList":[]}
1
+ {"version":3,"names":["_react","data","_interopRequireDefault","require","_classnames","_reactRouterDom","_baseReactNavigation","_topBarNavModule","_excluded","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","indexOf","propertyIsEnumerable","sourceKeys","keys","Link","BaseLink","TopBarNav","_ref","href","className","activeClassName","children","displayName","ignoreQueryParams","rest","search","useLocation","preventPassingDisplayNameToLink","createElement","classnames","styles","topBarLink","active"],"sources":["top-bar-nav.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport { useLocation } from 'react-router-dom';\nimport { Link as BaseLink } from '@teambit/base-react.navigation.link';\nimport { NavPluginProps } from '../menu/nav-plugin';\n\nimport styles from './top-bar-nav.module.scss';\n\n// @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest\nconst Link = BaseLink as any;\n\nexport function TopBarNav({\n href,\n className,\n activeClassName,\n children,\n displayName,\n ignoreQueryParams,\n ...rest\n}: NavPluginProps) {\n const { search } = useLocation(); // sticky query params\n\n // @hack - this is so that the displayName will not pass to the link and cause a warning in the console.\n // it is used for component page nav link widgets (code, aspects etc),\n // but not for regular menu links (overview, compositions, etc).\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const preventPassingDisplayNameToLink = displayName;\n\n const target = (href && !ignoreQueryParams && `${href}${search}`) || href;\n\n return (\n <Link\n {...rest}\n className={classnames(className, styles.topBarLink)}\n activeClassName={classnames(activeClassName, styles.active)}\n href={target}\n >\n <div>{children}</div>\n </Link>\n );\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA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EAEzE,oBACEvC,MAAA,GAAAW,OAAA,CAAAsC,aAAA,CAACd,IAAI,EAAAvB,QAAA,KACCiC,IAAI;IACRL,SAAS,EAAE,IAAAU,qBAAU,EAACV,SAAS,EAAEW,0BAAM,CAACC,UAAU,CAAE;IACpDX,eAAe,EAAE,IAAAS,qBAAU,EAACT,eAAe,EAAEU,0BAAM,CAACE,MAAM,CAAE;IAC5Dd,IAAI,EAAEvB;EAAO,iBAEbhB,MAAA,GAAAW,OAAA,CAAAsC,aAAA,cAAMP,QAAc,CAChB,CAAC;AAEX","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "1.0.193",
3
+ "version": "1.0.195",
4
4
  "homepage": "https://bit.cloud/teambit/component/component",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component",
9
- "version": "1.0.193"
9
+ "version": "1.0.195"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/any-fs": "0.0.5",
@@ -32,41 +32,41 @@
32
32
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.505",
33
33
  "@teambit/legacy-component-log": "0.0.402",
34
34
  "@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
35
+ "@teambit/design.ui.pages.not-found": "0.0.366",
36
+ "@teambit/design.ui.pages.server-error": "0.0.366",
35
37
  "@teambit/design.ui.empty-box": "0.0.363",
36
38
  "@teambit/documenter.ui.heading": "4.1.1",
37
39
  "@teambit/documenter.ui.separator": "4.1.1",
38
- "@teambit/design.ui.pages.not-found": "0.0.366",
39
- "@teambit/design.ui.pages.server-error": "0.0.366",
40
+ "@teambit/design.ui.styles.ellipsis": "0.0.357",
41
+ "@teambit/explorer.ui.command-bar": "2.0.14",
40
42
  "@teambit/design.navigation.responsive-navbar": "0.0.7",
41
43
  "@teambit/base-ui.layout.breakpoints": "1.0.0",
42
44
  "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.142",
43
- "@teambit/design.ui.styles.ellipsis": "0.0.357",
44
- "@teambit/explorer.ui.command-bar": "2.0.14",
45
- "@teambit/aspect-loader": "1.0.193",
46
- "@teambit/graph": "1.0.193",
45
+ "@teambit/aspect-loader": "1.0.195",
46
+ "@teambit/graph": "1.0.195",
47
47
  "@teambit/toolbox.path.match-patterns": "0.0.15",
48
48
  "@teambit/toolbox.string.capitalize": "0.0.496",
49
49
  "@teambit/cli": "0.0.857",
50
50
  "@teambit/express": "0.0.956",
51
- "@teambit/graphql": "1.0.193",
52
- "@teambit/command-bar": "1.0.193",
51
+ "@teambit/graphql": "1.0.195",
52
+ "@teambit/command-bar": "1.0.195",
53
53
  "@teambit/component-package-version": "0.0.433",
54
- "@teambit/preview": "1.0.193",
55
- "@teambit/pubsub": "1.0.193",
56
- "@teambit/react-router": "1.0.193",
54
+ "@teambit/preview": "1.0.195",
55
+ "@teambit/pubsub": "1.0.195",
56
+ "@teambit/react-router": "1.0.195",
57
57
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.508",
58
- "@teambit/ui": "1.0.193",
58
+ "@teambit/ui": "1.0.195",
59
59
  "@teambit/component-issues": "0.0.141",
60
60
  "@teambit/cli-table": "0.0.48",
61
61
  "@teambit/component-descriptor": "0.0.417",
62
62
  "@teambit/harmony.ui.aspect-box": "0.0.507",
63
- "@teambit/compositions": "1.0.193",
64
- "@teambit/deprecation": "1.0.193",
65
- "@teambit/envs": "1.0.193",
63
+ "@teambit/envs.ui.env-icon": "0.0.505",
64
+ "@teambit/compositions": "1.0.195",
65
+ "@teambit/deprecation": "1.0.195",
66
+ "@teambit/envs": "1.0.195",
66
67
  "@teambit/component.ui.version-dropdown": "0.0.859",
67
68
  "@teambit/lanes.hooks.use-lanes": "0.0.264",
68
- "@teambit/lanes.ui.models.lanes-model": "0.0.216",
69
- "@teambit/envs.ui.env-icon": "0.0.505"
69
+ "@teambit/lanes.ui.models.lanes-model": "0.0.216"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/lodash": "4.14.165",
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { useLocation } from 'react-router-dom';
4
- import { Link } from '@teambit/base-react.navigation.link';
4
+ import { Link as BaseLink } from '@teambit/base-react.navigation.link';
5
5
  import { NavPluginProps } from '../menu/nav-plugin';
6
6
 
7
7
  import styles from './top-bar-nav.module.scss';
8
8
 
9
+ // @todo - this will be fixed as part of the @teambit/base-react.navigation.link upgrade to latest
10
+ const Link = BaseLink as any;
11
+
9
12
  export function TopBarNav({
10
13
  href,
11
14
  className,