@teambit/component-compare 1.0.142 → 1.0.144
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/artifacts/__bit_junit.xml +4 -0
- package/artifacts/preview/teambit_component_component_compare-preview.js +1 -1
- package/dist/component-compare-aspects.section.d.ts +1 -0
- package/dist/component-compare-changelog.section.d.ts +1 -0
- package/dist/component-compare.compositions.d.ts +1 -0
- package/dist/component-compare.graphql.d.ts +3 -3
- package/dist/component-compare.main.runtime.d.ts +2 -2
- package/dist/component-compare.section.d.ts +1 -0
- package/dist/component-compare.ui.runtime.d.ts +14 -14
- package/dist/{preview-1705806923881.js → preview-1706239131657.js} +2 -2
- package/package.json +20 -20
- package/tsconfig.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-compare-preview"]=t():e["teambit.component/component-compare-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-compare-preview"]=t():e["teambit.component/component-compare-preview"]=t()}(self,(()=>(()=>{"use strict";var e={70291:(e,t,o)=>{var n={id:"teambit.component/component-compare@1.0.144",homepage:"https://bit.cloud/teambit/component/component-compare",exported:!0};function r(){const e=a(o(87363));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,a.__bit_component=n;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/bit-icons/compare.svg"}));i.__bit_component=n,t.Logo=i},87363:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>u,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(70291);o(87363);const r=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var i=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}var c={},m="wrapper";function s(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)o=a[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,i);return(0,r.mdx)(m,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,(0,r.mdx)("a",{parentName:"p",href:"https://bit.cloud/blog/introducing-a-new-feature-component-compare-l4qyxtoo?baseVersion=0.0.5"},"Introducing Component Compare")),(0,r.mdx)("p",null,"Component Compare allows users to compare two component versions. It provides a unified view of all the following differences,"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Code: Modifications made to the source code of the component."),(0,r.mdx)("li",{parentName:"ul"},"Composition: Changes made to how the component looks visually."),(0,r.mdx)("li",{parentName:"ul"},"Tests: Changes made to how the component is tested."),(0,r.mdx)("li",{parentName:"ul"},"Dependencies: Changes made to the component's dependency graph."),(0,r.mdx)("li",{parentName:"ul"},"Overview: Changes to the auto-generated documentation for the component."),(0,r.mdx)("li",{parentName:"ul"},"Aspects: Changes made to the extensions for the component."),(0,r.mdx)("li",{parentName:"ul"},"Changelog: Changes exported between the two selected versions"))))}s.isMDXComponent=!0;const d=[t],l=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TabItem } from '@teambit/component.ui.component-compare.models.component-compare-props';
|
|
2
3
|
import { ChangeType } from '@teambit/component.ui.component-compare.models.component-compare-change-type';
|
|
3
4
|
import { Section } from '@teambit/component';
|
|
@@ -11,7 +11,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
11
11
|
ComponentCompareResult: {
|
|
12
12
|
id: (result: ComponentCompareResult) => string;
|
|
13
13
|
code: (result: ComponentCompareResult, { fileName }: {
|
|
14
|
-
fileName?: string;
|
|
14
|
+
fileName?: string | undefined;
|
|
15
15
|
}) => {
|
|
16
16
|
fileName: string;
|
|
17
17
|
baseContent: string;
|
|
@@ -23,7 +23,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
23
23
|
toContent: string;
|
|
24
24
|
}[];
|
|
25
25
|
tests: (result: ComponentCompareResult, { fileName }: {
|
|
26
|
-
fileName?: string;
|
|
26
|
+
fileName?: string | undefined;
|
|
27
27
|
}) => {
|
|
28
28
|
fileName: string;
|
|
29
29
|
baseContent: string;
|
|
@@ -35,7 +35,7 @@ export declare function componentCompareSchema(componentCompareMain: ComponentCo
|
|
|
35
35
|
toContent: string;
|
|
36
36
|
}[];
|
|
37
37
|
aspects: (result: ComponentCompareResult, { fieldName }: {
|
|
38
|
-
fieldName?: string;
|
|
38
|
+
fieldName?: string | undefined;
|
|
39
39
|
}) => import("@teambit/legacy/dist/consumer/component-ops/components-diff").FieldsDiff[];
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -26,7 +26,7 @@ export declare class ComponentCompareMain {
|
|
|
26
26
|
private tester;
|
|
27
27
|
private depResolver;
|
|
28
28
|
private workspace?;
|
|
29
|
-
constructor(componentAspect: ComponentMain, scope: ScopeMain, logger: Logger, tester: TesterMain, depResolver: DependencyResolverMain, workspace?: Workspace);
|
|
29
|
+
constructor(componentAspect: ComponentMain, scope: ScopeMain, logger: Logger, tester: TesterMain, depResolver: DependencyResolverMain, workspace?: Workspace | undefined);
|
|
30
30
|
compare(baseIdStr: string, compareIdStr: string): Promise<ComponentCompareResult>;
|
|
31
31
|
diffByCLIValues(pattern?: string, version?: string, toVersion?: string, { verbose, table }?: {
|
|
32
32
|
verbose?: boolean;
|
|
@@ -40,7 +40,7 @@ export declare class ComponentCompareMain {
|
|
|
40
40
|
}>;
|
|
41
41
|
private componentsDiff;
|
|
42
42
|
diffBetweenVersionsObjects(modelComponent: ModelComponent, fromVersionObject: Version, toVersionObject: Version, fromVersion: string, toVersion: string, diffOpts: DiffOptions): Promise<DiffResults>;
|
|
43
|
-
static slots:
|
|
43
|
+
static slots: never[];
|
|
44
44
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
45
45
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
46
46
|
static provider([graphql, component, scope, loggerMain, cli, workspace, tester, depResolver]: [
|
|
@@ -25,22 +25,22 @@ export declare class ComponentCompareUI {
|
|
|
25
25
|
get tabs(): {
|
|
26
26
|
id: string;
|
|
27
27
|
element: React.ReactNode;
|
|
28
|
-
order?: number;
|
|
29
|
-
displayName?: string;
|
|
30
|
-
props?: {
|
|
31
|
-
replace?: boolean;
|
|
32
|
-
external?: boolean;
|
|
28
|
+
order?: number | undefined;
|
|
29
|
+
displayName?: string | undefined;
|
|
30
|
+
props?: ({
|
|
31
|
+
replace?: boolean | undefined;
|
|
32
|
+
external?: boolean | undefined;
|
|
33
33
|
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
34
|
-
activeClassName?: string;
|
|
35
|
-
activeStyle?: React.CSSProperties;
|
|
36
|
-
exact?: boolean;
|
|
37
|
-
strict?: boolean;
|
|
38
|
-
isActive?: () => boolean;
|
|
34
|
+
activeClassName?: string | undefined;
|
|
35
|
+
activeStyle?: React.CSSProperties | undefined;
|
|
36
|
+
exact?: boolean | undefined;
|
|
37
|
+
strict?: boolean | undefined;
|
|
38
|
+
isActive?: (() => boolean) | undefined;
|
|
39
39
|
} & {
|
|
40
|
-
displayName?: string;
|
|
41
|
-
};
|
|
42
|
-
widget?: boolean;
|
|
43
|
-
changeType?: import("@teambit/component.ui.component-compare.models.component-compare-change-type").ChangeType;
|
|
40
|
+
displayName?: string | undefined;
|
|
41
|
+
}) | undefined;
|
|
42
|
+
widget?: boolean | undefined;
|
|
43
|
+
changeType?: import("@teambit/component.ui.component-compare.models.component-compare-change-type").ChangeType | undefined;
|
|
44
44
|
}[];
|
|
45
45
|
static provider([componentUi]: [ComponentUI], _: any, [navSlot, routeSlot]: [ComponentCompareNavSlot, RouteSlot], harmony: Harmony): Promise<ComponentCompareUI>;
|
|
46
46
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.144/dist/component-compare.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.144/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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-compare",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.144",
|
|
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": "1.0.
|
|
9
|
+
"version": "1.0.144"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -19,31 +19,30 @@
|
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
|
20
20
|
"@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.146",
|
|
21
21
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.506",
|
|
22
|
-
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.
|
|
23
|
-
"@teambit/component": "1.0.
|
|
24
|
-
"@teambit/builder": "1.0.
|
|
25
|
-
"@teambit/cli": "0.0.
|
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
|
27
|
-
"@teambit/graphql": "1.0.
|
|
28
|
-
"@teambit/logger": "0.0.
|
|
29
|
-
"@teambit/scope": "1.0.
|
|
30
|
-
"@teambit/tester": "1.0.
|
|
31
|
-
"@teambit/workspace": "1.0.
|
|
32
|
-
"@teambit/component.ui.component-compare.changelog": "0.0.
|
|
33
|
-
"@teambit/component.ui.component-compare.component-compare": "0.0.
|
|
34
|
-
"@teambit/ui": "1.0.
|
|
22
|
+
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.103",
|
|
23
|
+
"@teambit/component": "1.0.144",
|
|
24
|
+
"@teambit/builder": "1.0.144",
|
|
25
|
+
"@teambit/cli": "0.0.849",
|
|
26
|
+
"@teambit/dependency-resolver": "1.0.144",
|
|
27
|
+
"@teambit/graphql": "1.0.144",
|
|
28
|
+
"@teambit/logger": "0.0.942",
|
|
29
|
+
"@teambit/scope": "1.0.144",
|
|
30
|
+
"@teambit/tester": "1.0.144",
|
|
31
|
+
"@teambit/workspace": "1.0.144",
|
|
32
|
+
"@teambit/component.ui.component-compare.changelog": "0.0.174",
|
|
33
|
+
"@teambit/component.ui.component-compare.component-compare": "0.0.176",
|
|
34
|
+
"@teambit/ui": "1.0.144"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/lodash.flatten": "4.4.6",
|
|
38
38
|
"@types/mocha": "9.1.0",
|
|
39
|
-
"
|
|
40
|
-
"@
|
|
41
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.19"
|
|
39
|
+
"chai": "4.3.0",
|
|
40
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.24"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
43
|
"react": "^17.0.0 || ^18.0.0",
|
|
45
44
|
"react-router-dom": "^6.8.1",
|
|
46
|
-
"@types/react": "17.0.
|
|
45
|
+
"@types/react": "^17.0.73",
|
|
47
46
|
"@teambit/legacy": "1.0.624"
|
|
48
47
|
},
|
|
49
48
|
"license": "Apache-2.0",
|
|
@@ -58,7 +57,8 @@
|
|
|
58
57
|
"default": "./dist/index.js"
|
|
59
58
|
},
|
|
60
59
|
"./dist/*": "./dist/*",
|
|
61
|
-
"./artifacts/*": "./artifacts/*"
|
|
60
|
+
"./artifacts/*": "./artifacts/*",
|
|
61
|
+
"./*": "./*.ts"
|
|
62
62
|
},
|
|
63
63
|
"private": false,
|
|
64
64
|
"engines": {
|
package/tsconfig.json
CHANGED
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
"resolveJsonModule": true,
|
|
18
18
|
"allowJs": true,
|
|
19
19
|
"outDir": "dist",
|
|
20
|
-
"emitDeclarationOnly": true
|
|
20
|
+
"emitDeclarationOnly": true,
|
|
21
|
+
"strict": true,
|
|
22
|
+
"strictPropertyInitialization": false,
|
|
23
|
+
"noImplicitAny": false
|
|
21
24
|
},
|
|
22
25
|
"exclude": [
|
|
23
26
|
"artifacts",
|