@teambit/component 1.0.12 → 1.0.14

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.
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Section } from './section';
3
3
  export declare class AspectSection implements Section {
4
4
  route: {
5
5
  path: string;
6
- element: JSX.Element;
6
+ element: React.JSX.Element;
7
7
  };
8
8
  navigationLink: {
9
9
  href: string;
10
- children: JSX.Element;
10
+ children: React.JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  order: number;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const Logo: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Logo: () => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  /// <reference types="lodash" />
2
+ import React from 'react';
3
3
  import type { RouteProps } from 'react-router-dom';
4
4
  import type { LinkProps } from '@teambit/base-react.navigation.link';
5
5
  import { CommandBarUI } from '@teambit/command-bar';
@@ -66,8 +66,8 @@ export declare class ComponentUI {
66
66
  private bitMethod;
67
67
  registerPubSub(): void;
68
68
  handleComponentChange: (activeComponent?: ComponentModel) => void;
69
- getComponentUI(host: string, options?: GetComponentsOptions): JSX.Element;
70
- getMenu(host: string, options?: GetComponentsOptions): JSX.Element;
69
+ getComponentUI(host: string, options?: GetComponentsOptions): React.JSX.Element;
70
+ getMenu(host: string, options?: GetComponentsOptions): React.JSX.Element;
71
71
  listMenuItems(): import("lodash").Dictionary<MenuItem[]>;
72
72
  registerRoute(routes: RouteProps[] | RouteProps): this;
73
73
  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.12/dist/component.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.12/dist/component.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.14/dist/component.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.14/dist/component.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function AspectPage(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function AspectPage(): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare class ComponentError {
3
3
  /**
4
4
  * http status code of error
@@ -17,5 +17,5 @@ export declare class ComponentError {
17
17
  * error message of the error
18
18
  */
19
19
  message?: string | undefined);
20
- renderError(): JSX.Element;
20
+ renderError(): React.JSX.Element;
21
21
  }
@@ -12,5 +12,5 @@ declare 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): React.JSX.Element;
16
16
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { RouteProps } from 'react-router-dom';
3
3
  import { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
4
4
  import { SlotRegistry } from '@teambit/harmony';
@@ -23,4 +23,4 @@ export declare 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): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import type { ComponentDescriptor } from '@teambit/component-descriptor';
3
3
  import { ComponentModel } from '../component-model';
4
4
  export declare type ComponentProviderProps = {
@@ -11,7 +11,7 @@ export declare 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): React.JSX.Element;
15
15
  export declare type ComponentDescriptorProviderProps = {
16
16
  /**
17
17
  * component model.
@@ -22,4 +22,4 @@ export declare 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): React.JSX.Element;
@@ -18,4 +18,4 @@ export declare type MenuNavProps = {
18
18
  */
19
19
  secondaryNavClassName?: string;
20
20
  } & React.HTMLAttributes<HTMLElement>;
21
- export declare function CollapsibleMenuNav({ navigationSlot, widgetSlot, navPlugins, widgetPlugins, className, secondaryNavClassName, children, }: MenuNavProps): JSX.Element;
21
+ export declare function CollapsibleMenuNav({ navigationSlot, widgetSlot, navPlugins, widgetPlugins, className, secondaryNavClassName, children, }: MenuNavProps): React.JSX.Element;
@@ -44,7 +44,7 @@ export declare type MenuProps = {
44
44
  /**
45
45
  * top bar menu.
46
46
  */
47
- export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host, menuItemSlot, consumeMethodSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, }: MenuProps): JSX.Element;
47
+ export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host, menuItemSlot, consumeMethodSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, }: MenuProps): React.JSX.Element;
48
48
  export declare type VersionRelatedDropdownsProps = {
49
49
  componentId?: string;
50
50
  consumeMethods?: ConsumeMethodSlot;
@@ -84,4 +84,4 @@ export declare type UseComponentVersionsResult = {
84
84
  };
85
85
  export declare function defaultLoadVersions(host: string, componentId?: string, componentFilters?: Filters, useComponent?: UseComponentType, loadingFromProps?: boolean): UseComponentVersions;
86
86
  export declare const defaultLoadCurrentVersion: (props: VersionRelatedDropdownsProps) => UseComponentVersion;
87
- export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps): JSX.Element;
87
+ export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { NavPluginProps } from '../menu/nav-plugin';
3
- export declare function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): JSX.Element;
3
+ export declare function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps): React.JSX.Element;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
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.12"
9
+ "version": "1.0.14"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/any-fs": "0.0.5",
@@ -47,28 +47,28 @@
47
47
  "@teambit/lanes.hooks.use-lanes": "0.0.254",
48
48
  "@teambit/lanes.ui.models.lanes-model": "0.0.207",
49
49
  "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.141",
50
- "@teambit/aspect-loader": "1.0.12",
51
- "@teambit/graph": "1.0.12",
50
+ "@teambit/aspect-loader": "1.0.14",
51
+ "@teambit/graph": "1.0.14",
52
52
  "@teambit/toolbox.path.match-patterns": "0.0.11",
53
53
  "@teambit/toolbox.string.capitalize": "0.0.492",
54
54
  "@teambit/cli": "0.0.793",
55
55
  "@teambit/express": "0.0.892",
56
- "@teambit/graphql": "1.0.12",
56
+ "@teambit/graphql": "1.0.14",
57
57
  "@teambit/bit-error": "0.0.404",
58
- "@teambit/command-bar": "1.0.12",
58
+ "@teambit/command-bar": "1.0.14",
59
59
  "@teambit/component-package-version": "0.0.427",
60
- "@teambit/preview": "1.0.12",
61
- "@teambit/pubsub": "1.0.12",
62
- "@teambit/react-router": "1.0.12",
63
- "@teambit/ui": "1.0.12",
60
+ "@teambit/preview": "1.0.14",
61
+ "@teambit/pubsub": "1.0.14",
62
+ "@teambit/react-router": "1.0.14",
63
+ "@teambit/ui": "1.0.14",
64
64
  "@teambit/component-issues": "0.0.97",
65
65
  "@teambit/cli-table": "0.0.43",
66
66
  "@teambit/legacy-component-log": "0.0.402",
67
67
  "@teambit/component-descriptor": "0.0.359",
68
68
  "@teambit/harmony.ui.aspect-box": "0.0.502",
69
- "@teambit/compositions": "1.0.12",
70
- "@teambit/deprecation": "1.0.12",
71
- "@teambit/envs": "1.0.12",
69
+ "@teambit/compositions": "1.0.14",
70
+ "@teambit/deprecation": "1.0.14",
71
+ "@teambit/envs": "1.0.14",
72
72
  "@teambit/envs.ui.env-icon": "0.0.500"
73
73
  },
74
74
  "devDependencies": {