@teambit/component.ui.component-compare.models.component-compare-props 0.0.2 → 0.0.4
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/component-compare-props.ts +11 -6
- package/dist/component-compare-props.d.ts +13 -6
- package/dist/{preview-1670894303358.js → preview-1675925853102.js} +0 -0
- package/package-tar/teambit-component.ui.component-compare.models.component-compare-props-0.0.4.tgz +0 -0
- package/package.json +12 -11
- package/package-tar/teambit-component.ui.component-compare.models.component-compare-props-0.0.2.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ComponentType } from 'react';
|
|
2
2
|
import { RouteProps } from 'react-router-dom';
|
|
3
3
|
import { ComponentID } from '@teambit/component-id';
|
|
4
4
|
import { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
|
|
@@ -6,14 +6,17 @@ import { ComponentCompareState } from '@teambit/component.ui.component-compare.m
|
|
|
6
6
|
import { NavLinkProps } from '@teambit/base-ui.routing.nav-link';
|
|
7
7
|
import { MaybeLazyLoaded } from '@teambit/component.ui.component-compare.utils.lazy-loading';
|
|
8
8
|
import { UseComponentType } from '@teambit/component';
|
|
9
|
+
import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
|
|
9
10
|
|
|
10
|
-
export
|
|
11
|
-
id
|
|
11
|
+
export interface TabItem {
|
|
12
|
+
id: string;
|
|
12
13
|
order?: number;
|
|
13
|
-
|
|
14
|
-
props?: NavLinkProps;
|
|
14
|
+
displayName?: string;
|
|
15
|
+
props?: NavLinkProps & { displayName?: string };
|
|
15
16
|
element?: React.ReactNode | null;
|
|
16
|
-
|
|
17
|
+
widget?: boolean;
|
|
18
|
+
changeType?: ChangeType;
|
|
19
|
+
}
|
|
17
20
|
|
|
18
21
|
export type ComponentCompareProps = {
|
|
19
22
|
state?: ComponentCompareState;
|
|
@@ -24,4 +27,6 @@ export type ComponentCompareProps = {
|
|
|
24
27
|
baseId?: ComponentID;
|
|
25
28
|
compareId?: ComponentID;
|
|
26
29
|
customUseComponent?: UseComponentType;
|
|
30
|
+
changes?: ChangeType[] | null;
|
|
31
|
+
Loader?: ComponentType;
|
|
27
32
|
} & HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ComponentType } from 'react';
|
|
2
2
|
import { RouteProps } from 'react-router-dom';
|
|
3
3
|
import { ComponentID } from '@teambit/component-id';
|
|
4
4
|
import { ComponentCompareHooks } from '@teambit/component.ui.component-compare.models.component-compare-hooks';
|
|
@@ -6,13 +6,18 @@ import { ComponentCompareState } from '@teambit/component.ui.component-compare.m
|
|
|
6
6
|
import { NavLinkProps } from '@teambit/base-ui.routing.nav-link';
|
|
7
7
|
import { MaybeLazyLoaded } from '@teambit/component.ui.component-compare.utils.lazy-loading';
|
|
8
8
|
import { UseComponentType } from '@teambit/component';
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
|
|
10
|
+
export interface TabItem {
|
|
11
|
+
id: string;
|
|
11
12
|
order?: number;
|
|
12
|
-
|
|
13
|
-
props?: NavLinkProps
|
|
13
|
+
displayName?: string;
|
|
14
|
+
props?: NavLinkProps & {
|
|
15
|
+
displayName?: string;
|
|
16
|
+
};
|
|
14
17
|
element?: React.ReactNode | null;
|
|
15
|
-
|
|
18
|
+
widget?: boolean;
|
|
19
|
+
changeType?: ChangeType;
|
|
20
|
+
}
|
|
16
21
|
export declare type ComponentCompareProps = {
|
|
17
22
|
state?: ComponentCompareState;
|
|
18
23
|
hooks?: ComponentCompareHooks;
|
|
@@ -22,4 +27,6 @@ export declare type ComponentCompareProps = {
|
|
|
22
27
|
baseId?: ComponentID;
|
|
23
28
|
compareId?: ComponentID;
|
|
24
29
|
customUseComponent?: UseComponentType;
|
|
30
|
+
changes?: ChangeType[] | null;
|
|
31
|
+
Loader?: ComponentType;
|
|
25
32
|
} & HTMLAttributes<HTMLDivElement>;
|
|
File without changes
|
package/package-tar/teambit-component.ui.component-compare.models.component-compare-props-0.0.4.tgz
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component.ui.component-compare.models.component-compare-props",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/component/ui/component-compare/models/component-compare-props",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "ui/component-compare/models/component-compare-props",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.4"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
13
13
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
14
|
-
"@teambit/component-id": "0.0.
|
|
15
|
-
"@teambit/component.ui.component-compare.models.component-compare-
|
|
16
|
-
"@teambit/component.ui.component-compare.models.component-compare-
|
|
14
|
+
"@teambit/component-id": "0.0.426",
|
|
15
|
+
"@teambit/component.ui.component-compare.models.component-compare-change-type": "0.0.1",
|
|
16
|
+
"@teambit/component.ui.component-compare.models.component-compare-hooks": "0.0.3",
|
|
17
|
+
"@teambit/component.ui.component-compare.models.component-compare-state": "0.0.2",
|
|
17
18
|
"@teambit/component.ui.component-compare.utils.lazy-loading": "0.0.1"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@types/react": "^17.0.8",
|
|
21
22
|
"@types/mocha": "9.1.0",
|
|
22
|
-
"@types/
|
|
23
|
-
"@babel/runtime": "7.20.0",
|
|
24
|
-
"@types/jest": "^26.0.0",
|
|
23
|
+
"@types/node": "12.20.4",
|
|
25
24
|
"@types/react-dom": "^17.0.5",
|
|
26
|
-
"@types/
|
|
25
|
+
"@types/jest": "^26.0.0",
|
|
26
|
+
"@babel/runtime": "7.20.0",
|
|
27
|
+
"@types/testing-library__jest-dom": "5.9.5"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
30
|
"react-router-dom": "^6.0.0",
|
|
30
|
-
"react
|
|
31
|
-
"react": "^16.8.0 || ^17.0.0"
|
|
31
|
+
"react": "^16.8.0 || ^17.0.0",
|
|
32
|
+
"react-dom": "^16.8.0 || ^17.0.0"
|
|
32
33
|
},
|
|
33
34
|
"license": "Apache-2.0",
|
|
34
35
|
"private": false,
|