@teambit/component 1.0.1002 → 1.0.1004
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/dist/aspect.section.d.ts +3 -2
- package/dist/component.composition.d.ts +2 -1
- package/dist/component.ui.runtime.d.ts +3 -2
- package/dist/{preview-1780084871933.js → preview-1780524843617.js} +2 -2
- package/dist/ui/aspect-page/aspect-page.d.ts +2 -1
- package/dist/ui/component-error/component-error.d.ts +2 -1
- package/dist/ui/component-searcher/component-result.d.ts +1 -1
- package/dist/ui/component.d.ts +2 -1
- package/dist/ui/context/component-provider.d.ts +3 -2
- package/dist/ui/menu/menu-nav.d.ts +1 -1
- package/dist/ui/menu/menu.d.ts +2 -2
- package/dist/ui/top-bar-nav/top-bar-nav.d.ts +2 -1
- package/package.json +35 -35
package/dist/aspect.section.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { Section } from './section';
|
|
2
3
|
export declare class AspectSection implements Section {
|
|
3
4
|
route: {
|
|
4
5
|
path: string;
|
|
5
|
-
element:
|
|
6
|
+
element: React.JSX.Element;
|
|
6
7
|
};
|
|
7
8
|
navigationLink: {
|
|
8
9
|
href: string;
|
|
9
|
-
children:
|
|
10
|
+
children: React.JSX.Element;
|
|
10
11
|
displayName: string;
|
|
11
12
|
hideInMinimalMode: boolean;
|
|
12
13
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Logo: () => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { RouteProps } from 'react-router-dom';
|
|
2
3
|
import type { LinkProps } from '@teambit/base-react.navigation.link';
|
|
3
4
|
import type { CommandBarUI } from '@teambit/command-bar';
|
|
@@ -80,8 +81,8 @@ export declare class ComponentUI {
|
|
|
80
81
|
private bitMethod;
|
|
81
82
|
registerPubSub(): void;
|
|
82
83
|
handleComponentChange: (activeComponent?: ComponentModel) => void;
|
|
83
|
-
getComponentUI(host: string, options?: GetComponentsOptions):
|
|
84
|
-
getMenu(host: string, options?: GetComponentsOptions):
|
|
84
|
+
getComponentUI(host: string, options?: GetComponentsOptions): React.JSX.Element;
|
|
85
|
+
getMenu(host: string, options?: GetComponentsOptions): React.JSX.Element;
|
|
85
86
|
listMenuItems(): import("lodash").Dictionary<MenuItem[]>;
|
|
86
87
|
registerRoute(routes: RouteProps[] | RouteProps): this;
|
|
87
88
|
registerNavigation(nav: LinkProps, order?: number): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component@1.0.1004/dist/component.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component@1.0.1004/dist/component.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function AspectPage(): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare class ComponentError {
|
|
2
3
|
/**
|
|
3
4
|
* http status code of error
|
|
@@ -16,5 +17,5 @@ export declare class ComponentError {
|
|
|
16
17
|
* error message of the error
|
|
17
18
|
*/
|
|
18
19
|
message?: string | undefined);
|
|
19
|
-
renderError():
|
|
20
|
+
renderError(): React.JSX.Element;
|
|
20
21
|
}
|
|
@@ -13,5 +13,5 @@ type ComponentResultProps = {
|
|
|
13
13
|
component: ComponentModel;
|
|
14
14
|
plugins?: ComponentResultPlugin[];
|
|
15
15
|
};
|
|
16
|
-
export declare function ComponentResult({ component, plugins }: ComponentResultProps):
|
|
16
|
+
export declare function ComponentResult({ component, plugins }: ComponentResultProps): React.JSX.Element;
|
|
17
17
|
export {};
|
package/dist/ui/component.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { RouteProps } from 'react-router-dom';
|
|
3
4
|
import type { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
4
5
|
import type { SlotRegistry } from '@teambit/harmony';
|
|
@@ -23,4 +24,4 @@ export type ComponentProps = {
|
|
|
23
24
|
/**
|
|
24
25
|
* main UI component of the Component extension.
|
|
25
26
|
*/
|
|
26
|
-
export declare function Component({ routeSlot, overriddenRoutes, containerSlot, host: hostFromProps, onComponentChange, componentIdStr, useComponent, path, useComponentFilters, }: ComponentProps):
|
|
27
|
+
export declare function Component({ routeSlot, overriddenRoutes, containerSlot, host: hostFromProps, onComponentChange, componentIdStr, useComponent, path, useComponentFilters, }: ComponentProps): React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
3
4
|
import type { ComponentModel } from '../component-model';
|
|
4
5
|
export type ComponentProviderProps = {
|
|
@@ -11,7 +12,7 @@ export type ComponentProviderProps = {
|
|
|
11
12
|
*/
|
|
12
13
|
children: ReactNode;
|
|
13
14
|
};
|
|
14
|
-
export declare function ComponentProvider({ component, children }: ComponentProviderProps):
|
|
15
|
+
export declare function ComponentProvider({ component, children }: ComponentProviderProps): React.JSX.Element;
|
|
15
16
|
export type ComponentDescriptorProviderProps = {
|
|
16
17
|
/**
|
|
17
18
|
* component model.
|
|
@@ -22,4 +23,4 @@ export type ComponentDescriptorProviderProps = {
|
|
|
22
23
|
*/
|
|
23
24
|
children: ReactNode;
|
|
24
25
|
};
|
|
25
|
-
export declare function ComponentDescriptorProvider({ componentDescriptor, children }: ComponentDescriptorProviderProps):
|
|
26
|
+
export declare function ComponentDescriptorProvider({ componentDescriptor, children }: ComponentDescriptorProviderProps): React.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):
|
|
23
|
+
export declare function CollapsibleMenuNav({ navigationSlot, widgetSlot, navPlugins, widgetPlugins, className, secondaryNavClassName, activeTabIndex, alwaysShowActiveTab, children, }: MenuNavProps): React.JSX.Element;
|
package/dist/ui/menu/menu.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type MenuProps = {
|
|
|
60
60
|
/**
|
|
61
61
|
* top bar menu.
|
|
62
62
|
*/
|
|
63
|
-
export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host: hostFromProps, menuItemSlot, consumeMethodSlot, rightSideMenuSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, authToken, pinnedWidgetSlot, }: MenuProps):
|
|
63
|
+
export declare function ComponentMenu({ navigationSlot, widgetSlot, className, host: hostFromProps, menuItemSlot, consumeMethodSlot, rightSideMenuSlot, componentIdStr, skipRightSide, RightNode, useComponent, path, useComponentFilters, authToken, pinnedWidgetSlot, }: MenuProps): React.JSX.Element;
|
|
64
64
|
export type VersionRelatedDropdownsProps = {
|
|
65
65
|
componentId?: string;
|
|
66
66
|
consumeMethods?: ConsumeMethodSlot;
|
|
@@ -101,4 +101,4 @@ export type UseComponentVersionsResult = {
|
|
|
101
101
|
};
|
|
102
102
|
export declare function defaultLoadVersions(host: string, componentId?: string, componentFilters?: Filters, useComponent?: UseComponentType, loadingFromProps?: boolean): UseComponentVersions;
|
|
103
103
|
export declare const defaultLoadCurrentVersion: (props: VersionRelatedDropdownsProps) => UseComponentVersion;
|
|
104
|
-
export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps):
|
|
104
|
+
export declare function VersionRelatedDropdowns(props: VersionRelatedDropdownsProps): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { NavPluginProps } from '../menu/nav-plugin';
|
|
2
|
-
export declare function TopBarNav({ href, className, activeClassName, children, displayName, ignoreQueryParams, ...rest }: NavPluginProps):
|
|
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.
|
|
3
|
+
"version": "1.0.1004",
|
|
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.
|
|
9
|
+
"version": "1.0.1004"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/any-fs": "0.0.5",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@teambit/harmony": "0.4.7",
|
|
35
35
|
"@teambit/toolbox.path.path": "0.0.17",
|
|
36
36
|
"@teambit/bit-error": "0.0.404",
|
|
37
|
+
"@teambit/legacy.constants": "0.0.29",
|
|
37
38
|
"@teambit/component-package-version": "0.0.450",
|
|
38
39
|
"@teambit/component.ui.deprecation-icon": "0.0.509",
|
|
39
40
|
"@teambit/ui-foundation.ui.is-browser": "0.0.500",
|
|
@@ -43,18 +44,21 @@
|
|
|
43
44
|
"@teambit/legacy.utils": "0.0.38",
|
|
44
45
|
"@teambit/component-issues": "0.0.172",
|
|
45
46
|
"@teambit/pkg.modules.semver-helper": "0.0.23",
|
|
46
|
-
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.506",
|
|
47
47
|
"@teambit/cli-table": "0.0.50",
|
|
48
|
+
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.506",
|
|
48
49
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.505",
|
|
49
50
|
"@teambit/legacy-component-log": "0.0.418",
|
|
50
51
|
"@teambit/component-descriptor": "0.0.451",
|
|
51
52
|
"@teambit/legacy.loader": "0.0.19",
|
|
52
|
-
"@teambit/design.ui.pages.not-found": "0.0.371",
|
|
53
|
-
"@teambit/design.ui.pages.server-error": "0.0.368",
|
|
54
53
|
"@teambit/design.ui.empty-box": "0.0.364",
|
|
55
54
|
"@teambit/documenter.ui.heading": "4.1.8",
|
|
56
55
|
"@teambit/documenter.ui.separator": "4.1.7",
|
|
57
56
|
"@teambit/harmony.ui.aspect-box": "0.0.511",
|
|
57
|
+
"@teambit/design.ui.pages.not-found": "0.0.371",
|
|
58
|
+
"@teambit/design.ui.pages.server-error": "0.0.368",
|
|
59
|
+
"@teambit/design.ui.styles.ellipsis": "0.0.357",
|
|
60
|
+
"@teambit/envs.ui.env-icon": "0.0.508",
|
|
61
|
+
"@teambit/explorer.ui.command-bar": "2.0.19",
|
|
58
62
|
"@teambit/design.navigation.responsive-navbar": "0.0.8",
|
|
59
63
|
"@teambit/workspace.ui.use-workspace-mode": "0.0.3",
|
|
60
64
|
"@teambit/base-ui.layout.breakpoints": "1.0.0",
|
|
@@ -62,36 +66,32 @@
|
|
|
62
66
|
"@teambit/lanes.hooks.use-lanes": "0.0.293",
|
|
63
67
|
"@teambit/lanes.ui.models.lanes-model": "0.0.233",
|
|
64
68
|
"@teambit/ui-foundation.ui.use-box.dropdown": "0.0.151",
|
|
65
|
-
"@teambit/
|
|
66
|
-
"@teambit/
|
|
67
|
-
"@teambit/
|
|
68
|
-
"@teambit/legacy.
|
|
69
|
-
"@teambit/
|
|
70
|
-
"@teambit/
|
|
71
|
-
"@teambit/
|
|
72
|
-
"@teambit/
|
|
73
|
-
"@teambit/
|
|
74
|
-
"@teambit/
|
|
75
|
-
"@teambit/
|
|
76
|
-
"@teambit/
|
|
77
|
-
"@teambit/
|
|
78
|
-
"@teambit/
|
|
79
|
-
"@teambit/
|
|
80
|
-
"@teambit/
|
|
81
|
-
"@teambit/
|
|
82
|
-
"@teambit/
|
|
83
|
-
"@teambit/
|
|
84
|
-
"@teambit/legacy.
|
|
85
|
-
"@teambit/
|
|
86
|
-
"@teambit/
|
|
87
|
-
"@teambit/legacy.
|
|
88
|
-
"@teambit/
|
|
89
|
-
"@teambit/
|
|
90
|
-
"@teambit/
|
|
91
|
-
"@teambit/legacy.component-diff": "0.0.174",
|
|
92
|
-
"@teambit/compositions": "1.0.1002",
|
|
93
|
-
"@teambit/deprecation": "1.0.1002",
|
|
94
|
-
"@teambit/envs": "1.0.1002"
|
|
69
|
+
"@teambit/legacy.extension-data": "0.0.123",
|
|
70
|
+
"@teambit/aspect-loader": "1.0.1004",
|
|
71
|
+
"@teambit/dependency-resolver": "1.0.1004",
|
|
72
|
+
"@teambit/legacy.consumer-component": "0.0.122",
|
|
73
|
+
"@teambit/objects": "0.0.511",
|
|
74
|
+
"@teambit/component.sources": "0.0.173",
|
|
75
|
+
"@teambit/graphql": "1.0.1004",
|
|
76
|
+
"@teambit/cli": "0.0.1331",
|
|
77
|
+
"@teambit/express": "0.0.1430",
|
|
78
|
+
"@teambit/logger": "0.0.1424",
|
|
79
|
+
"@teambit/command-bar": "1.0.1004",
|
|
80
|
+
"@teambit/preview": "1.0.1004",
|
|
81
|
+
"@teambit/pubsub": "1.0.1004",
|
|
82
|
+
"@teambit/react-router": "1.0.1004",
|
|
83
|
+
"@teambit/ui": "1.0.1004",
|
|
84
|
+
"@teambit/legacy.bit-map": "0.0.178",
|
|
85
|
+
"@teambit/pkg.modules.component-package-name": "0.0.128",
|
|
86
|
+
"@teambit/semantics.doc-parser": "0.0.129",
|
|
87
|
+
"@teambit/legacy.consumer": "0.0.121",
|
|
88
|
+
"@teambit/legacy.dependency-graph": "0.0.124",
|
|
89
|
+
"@teambit/legacy.scope": "0.0.121",
|
|
90
|
+
"@teambit/scope.remotes": "0.0.121",
|
|
91
|
+
"@teambit/legacy.component-diff": "0.0.176",
|
|
92
|
+
"@teambit/compositions": "1.0.1004",
|
|
93
|
+
"@teambit/deprecation": "1.0.1004",
|
|
94
|
+
"@teambit/envs": "1.0.1004"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/lodash": "4.14.165",
|