@teambit/component-compare 0.0.52 → 0.0.55
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/component-compare.graphql.d.ts +27 -0
- package/dist/component-compare.graphql.js +90 -0
- package/dist/component-compare.graphql.js.map +1 -0
- package/dist/component-compare.main.runtime.d.ts +19 -0
- package/dist/component-compare.main.runtime.js +150 -0
- package/dist/component-compare.main.runtime.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/package-tar/teambit-component-compare-0.0.55.tgz +0 -0
- package/package.json +10 -6
- package/{preview-1659347901202.js → preview-1659583874630.js} +2 -2
- package/package-tar/teambit-component-compare-0.0.52.tgz +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentCompareMain, ComponentCompareResult } from './component-compare.main.runtime';
|
|
2
|
+
export declare function componentCompareSchema(componentCompareMain: ComponentCompareMain): {
|
|
3
|
+
typeDefs: import("graphql").DocumentNode;
|
|
4
|
+
resolvers: {
|
|
5
|
+
ComponentHost: {
|
|
6
|
+
compareComponent: (_: any, { baseId, compareId }: {
|
|
7
|
+
baseId: string;
|
|
8
|
+
compareId: string;
|
|
9
|
+
}) => Promise<ComponentCompareResult>;
|
|
10
|
+
};
|
|
11
|
+
ComponentCompareResult: {
|
|
12
|
+
id: (result: ComponentCompareResult) => string;
|
|
13
|
+
code: (result: ComponentCompareResult, { fileName }: {
|
|
14
|
+
fileName?: string | undefined;
|
|
15
|
+
}) => {
|
|
16
|
+
fileName: string;
|
|
17
|
+
baseContent: string;
|
|
18
|
+
compareContent: string;
|
|
19
|
+
filePath: string;
|
|
20
|
+
diffOutput: string;
|
|
21
|
+
status: import("@teambit/legacy/dist/consumer/component-ops/components-diff").DiffStatus;
|
|
22
|
+
fromContent: string;
|
|
23
|
+
toContent: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.promise.js");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.componentCompareSchema = componentCompareSchema;
|
|
11
|
+
|
|
12
|
+
function _defineProperty2() {
|
|
13
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
|
|
15
|
+
_defineProperty2 = function () {
|
|
16
|
+
return data;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function _graphqlTag() {
|
|
23
|
+
const data = _interopRequireDefault(require("graphql-tag"));
|
|
24
|
+
|
|
25
|
+
_graphqlTag = function () {
|
|
26
|
+
return data;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return data;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
+
|
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
+
|
|
36
|
+
function componentCompareSchema(componentCompareMain) {
|
|
37
|
+
return {
|
|
38
|
+
typeDefs: (0, _graphqlTag().default)`
|
|
39
|
+
type FileCompareResult {
|
|
40
|
+
fileName: String!
|
|
41
|
+
baseContent: String!
|
|
42
|
+
compareContent: String!
|
|
43
|
+
status: String
|
|
44
|
+
diffOutput: String
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type ComponentCompareResult {
|
|
48
|
+
# unique id for graphql - baseId + compareId
|
|
49
|
+
id: String!
|
|
50
|
+
code(fileName: String): [FileCompareResult!]!
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
extend type ComponentHost {
|
|
54
|
+
compareComponent(baseId: String!, compareId: String!): ComponentCompareResult
|
|
55
|
+
}
|
|
56
|
+
`,
|
|
57
|
+
resolvers: {
|
|
58
|
+
ComponentHost: {
|
|
59
|
+
compareComponent: async (_, {
|
|
60
|
+
baseId,
|
|
61
|
+
compareId
|
|
62
|
+
}) => {
|
|
63
|
+
return componentCompareMain.compare(baseId, compareId);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
ComponentCompareResult: {
|
|
67
|
+
id: result => result.id,
|
|
68
|
+
code: (result, {
|
|
69
|
+
fileName
|
|
70
|
+
}) => {
|
|
71
|
+
if (fileName) {
|
|
72
|
+
return result.code.filter(codeFile => codeFile.filePath === fileName).map(c => _objectSpread(_objectSpread({}, c), {}, {
|
|
73
|
+
fileName: c.filePath,
|
|
74
|
+
baseContent: c.fromContent,
|
|
75
|
+
compareContent: c.toContent
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return result.code.map(c => _objectSpread(_objectSpread({}, c), {}, {
|
|
80
|
+
fileName: c.filePath,
|
|
81
|
+
baseContent: c.fromContent,
|
|
82
|
+
compareContent: c.toContent
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=component-compare.graphql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["componentCompareSchema","componentCompareMain","typeDefs","gql","resolvers","ComponentHost","compareComponent","_","baseId","compareId","compare","ComponentCompareResult","id","result","code","fileName","filter","codeFile","filePath","map","c","baseContent","fromContent","compareContent","toContent"],"sources":["component-compare.graphql.ts"],"sourcesContent":["import gql from 'graphql-tag';\nimport { ComponentCompareMain, ComponentCompareResult } from './component-compare.main.runtime';\n\nexport function componentCompareSchema(componentCompareMain: ComponentCompareMain) {\n return {\n typeDefs: gql`\n type FileCompareResult {\n fileName: String!\n baseContent: String!\n compareContent: String!\n status: String\n diffOutput: String\n }\n\n type ComponentCompareResult {\n # unique id for graphql - baseId + compareId\n id: String!\n code(fileName: String): [FileCompareResult!]!\n }\n\n extend type ComponentHost {\n compareComponent(baseId: String!, compareId: String!): ComponentCompareResult\n }\n `,\n resolvers: {\n ComponentHost: {\n compareComponent: async (_, { baseId, compareId }: { baseId: string; compareId: string }) => {\n return componentCompareMain.compare(baseId, compareId);\n },\n },\n ComponentCompareResult: {\n id: (result: ComponentCompareResult) => result.id,\n code: (result: ComponentCompareResult, { fileName }: { fileName?: string }) => {\n if (fileName) {\n return result.code\n .filter((codeFile) => codeFile.filePath === fileName)\n .map((c) => ({ ...c, fileName: c.filePath, baseContent: c.fromContent, compareContent: c.toContent }));\n }\n\n return result.code.map((c) => ({\n ...c,\n fileName: c.filePath,\n baseContent: c.fromContent,\n compareContent: c.toContent,\n }));\n },\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;;;;;AAGO,SAASA,sBAAT,CAAgCC,oBAAhC,EAA4E;EACjF,OAAO;IACLC,QAAQ,EAAE,IAAAC,qBAAA,CAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAnBS;IAoBLC,SAAS,EAAE;MACTC,aAAa,EAAE;QACbC,gBAAgB,EAAE,OAAOC,CAAP,EAAU;UAAEC,MAAF;UAAUC;QAAV,CAAV,KAA2E;UAC3F,OAAOR,oBAAoB,CAACS,OAArB,CAA6BF,MAA7B,EAAqCC,SAArC,CAAP;QACD;MAHY,CADN;MAMTE,sBAAsB,EAAE;QACtBC,EAAE,EAAGC,MAAD,IAAoCA,MAAM,CAACD,EADzB;QAEtBE,IAAI,EAAE,CAACD,MAAD,EAAiC;UAAEE;QAAF,CAAjC,KAAyE;UAC7E,IAAIA,QAAJ,EAAc;YACZ,OAAOF,MAAM,CAACC,IAAP,CACJE,MADI,CACIC,QAAD,IAAcA,QAAQ,CAACC,QAAT,KAAsBH,QADvC,EAEJI,GAFI,CAECC,CAAD,oCAAaA,CAAb;cAAgBL,QAAQ,EAAEK,CAAC,CAACF,QAA5B;cAAsCG,WAAW,EAAED,CAAC,CAACE,WAArD;cAAkEC,cAAc,EAAEH,CAAC,CAACI;YAApF,EAFA,CAAP;UAGD;;UAED,OAAOX,MAAM,CAACC,IAAP,CAAYK,GAAZ,CAAiBC,CAAD,oCAClBA,CADkB;YAErBL,QAAQ,EAAEK,CAAC,CAACF,QAFS;YAGrBG,WAAW,EAAED,CAAC,CAACE,WAHM;YAIrBC,cAAc,EAAEH,CAAC,CAACI;UAJG,EAAhB,CAAP;QAMD;MAfqB;IANf;EApBN,CAAP;AA6CD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ScopeMain } from '@teambit/scope';
|
|
2
|
+
import { GraphqlMain } from '@teambit/graphql';
|
|
3
|
+
import { FileDiff } from '@teambit/legacy/dist/consumer/component-ops/components-diff';
|
|
4
|
+
import { ComponentMain } from '@teambit/component';
|
|
5
|
+
export declare type ComponentCompareResult = {
|
|
6
|
+
id: string;
|
|
7
|
+
code: FileDiff[];
|
|
8
|
+
};
|
|
9
|
+
export declare class ComponentCompareMain {
|
|
10
|
+
private componentAspect;
|
|
11
|
+
private scope;
|
|
12
|
+
constructor(componentAspect: ComponentMain, scope: ScopeMain);
|
|
13
|
+
compare(baseIdStr: string, compareIdStr: string): Promise<ComponentCompareResult>;
|
|
14
|
+
static slots: never[];
|
|
15
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
16
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
17
|
+
static provider([graphql, component, scope]: [GraphqlMain, ComponentMain, ScopeMain]): Promise<ComponentCompareMain>;
|
|
18
|
+
}
|
|
19
|
+
export default ComponentCompareMain;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.promise.js");
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
exports.default = exports.ComponentCompareMain = void 0;
|
|
13
|
+
|
|
14
|
+
function _defineProperty2() {
|
|
15
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
+
|
|
17
|
+
_defineProperty2 = function () {
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return data;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _cli() {
|
|
25
|
+
const data = require("@teambit/cli");
|
|
26
|
+
|
|
27
|
+
_cli = function () {
|
|
28
|
+
return data;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function _scope() {
|
|
35
|
+
const data = require("@teambit/scope");
|
|
36
|
+
|
|
37
|
+
_scope = function () {
|
|
38
|
+
return data;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _graphql() {
|
|
45
|
+
const data = require("@teambit/graphql");
|
|
46
|
+
|
|
47
|
+
_graphql = function () {
|
|
48
|
+
return data;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _generalError() {
|
|
55
|
+
const data = _interopRequireDefault(require("@teambit/legacy/dist/error/general-error"));
|
|
56
|
+
|
|
57
|
+
_generalError = function () {
|
|
58
|
+
return data;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return data;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _componentsDiff() {
|
|
65
|
+
const data = require("@teambit/legacy/dist/consumer/component-ops/components-diff");
|
|
66
|
+
|
|
67
|
+
_componentsDiff = function () {
|
|
68
|
+
return data;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return data;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _component() {
|
|
75
|
+
const data = _interopRequireDefault(require("@teambit/component"));
|
|
76
|
+
|
|
77
|
+
_component = function () {
|
|
78
|
+
return data;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return data;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function _componentCompare() {
|
|
85
|
+
const data = require("./component-compare.graphql");
|
|
86
|
+
|
|
87
|
+
_componentCompare = function () {
|
|
88
|
+
return data;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return data;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function _componentCompare2() {
|
|
95
|
+
const data = require("./component-compare.aspect");
|
|
96
|
+
|
|
97
|
+
_componentCompare2 = function () {
|
|
98
|
+
return data;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
return data;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
class ComponentCompareMain {
|
|
105
|
+
constructor(componentAspect, scope) {
|
|
106
|
+
this.componentAspect = componentAspect;
|
|
107
|
+
this.scope = scope;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async compare(baseIdStr, compareIdStr) {
|
|
111
|
+
const host = this.componentAspect.getHost();
|
|
112
|
+
const [baseCompId, compareCompId] = await host.resolveMultipleComponentIds([baseIdStr, compareIdStr]);
|
|
113
|
+
const modelComponent = await this.scope.legacyScope.getModelComponentIfExist(compareCompId._legacy);
|
|
114
|
+
|
|
115
|
+
if (!modelComponent) {
|
|
116
|
+
throw new (_generalError().default)(`component ${compareCompId.toString()} doesn't have any version yet`);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const baseVersion = baseCompId.version;
|
|
120
|
+
const compareVersion = compareCompId.version;
|
|
121
|
+
const repository = this.scope.legacyScope.objects;
|
|
122
|
+
const baseVersionObject = await modelComponent.loadVersion(baseVersion, repository);
|
|
123
|
+
const compareVersionObject = await modelComponent.loadVersion(compareVersion, repository);
|
|
124
|
+
const diff = await (0, _componentsDiff().diffBetweenVersionsObjects)(modelComponent, baseVersionObject, compareVersionObject, baseVersion, compareVersion, this.scope.legacyScope, {});
|
|
125
|
+
const compareResult = {
|
|
126
|
+
id: `${baseCompId}-${compareCompId}`,
|
|
127
|
+
code: diff.filesDiff || []
|
|
128
|
+
};
|
|
129
|
+
return compareResult;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static async provider([graphql, component, scope]) {
|
|
133
|
+
const componentCompareMain = new ComponentCompareMain(component, scope);
|
|
134
|
+
graphql.register((0, _componentCompare().componentCompareSchema)(componentCompareMain));
|
|
135
|
+
return componentCompareMain;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.ComponentCompareMain = ComponentCompareMain;
|
|
141
|
+
(0, _defineProperty2().default)(ComponentCompareMain, "slots", []);
|
|
142
|
+
(0, _defineProperty2().default)(ComponentCompareMain, "dependencies", [_graphql().GraphqlAspect, _component().default, _scope().ScopeAspect]);
|
|
143
|
+
(0, _defineProperty2().default)(ComponentCompareMain, "runtime", _cli().MainRuntime);
|
|
144
|
+
|
|
145
|
+
_componentCompare2().ComponentCompareAspect.addRuntime(ComponentCompareMain);
|
|
146
|
+
|
|
147
|
+
var _default = ComponentCompareMain;
|
|
148
|
+
exports.default = _default;
|
|
149
|
+
|
|
150
|
+
//# sourceMappingURL=component-compare.main.runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ComponentCompareMain","constructor","componentAspect","scope","compare","baseIdStr","compareIdStr","host","getHost","baseCompId","compareCompId","resolveMultipleComponentIds","modelComponent","legacyScope","getModelComponentIfExist","_legacy","GeneralError","toString","baseVersion","version","compareVersion","repository","objects","baseVersionObject","loadVersion","compareVersionObject","diff","diffBetweenVersionsObjects","compareResult","id","code","filesDiff","provider","graphql","component","componentCompareMain","register","componentCompareSchema","GraphqlAspect","ComponentAspect","ScopeAspect","MainRuntime","ComponentCompareAspect","addRuntime"],"sources":["component-compare.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { ScopeMain, ScopeAspect } from '@teambit/scope';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport GeneralError from '@teambit/legacy/dist/error/general-error';\nimport {\n diffBetweenVersionsObjects,\n DiffResults,\n FileDiff,\n} from '@teambit/legacy/dist/consumer/component-ops/components-diff';\nimport ComponentAspect, { ComponentMain } from '@teambit/component';\nimport { componentCompareSchema } from './component-compare.graphql';\nimport { ComponentCompareAspect } from './component-compare.aspect';\n\nexport type ComponentCompareResult = {\n id: string;\n code: FileDiff[];\n};\n\nexport class ComponentCompareMain {\n constructor(private componentAspect: ComponentMain, private scope: ScopeMain) {}\n\n async compare(baseIdStr: string, compareIdStr: string): Promise<ComponentCompareResult> {\n const host = this.componentAspect.getHost();\n const [baseCompId, compareCompId] = await host.resolveMultipleComponentIds([baseIdStr, compareIdStr]);\n const modelComponent = await this.scope.legacyScope.getModelComponentIfExist(compareCompId._legacy);\n if (!modelComponent) {\n throw new GeneralError(`component ${compareCompId.toString()} doesn't have any version yet`);\n }\n\n const baseVersion = baseCompId.version as string;\n const compareVersion = compareCompId.version as string;\n\n const repository = this.scope.legacyScope.objects;\n const baseVersionObject = await modelComponent.loadVersion(baseVersion, repository);\n const compareVersionObject = await modelComponent.loadVersion(compareVersion, repository);\n const diff: DiffResults = await diffBetweenVersionsObjects(\n modelComponent,\n baseVersionObject,\n compareVersionObject,\n baseVersion,\n compareVersion,\n this.scope.legacyScope,\n {}\n );\n\n const compareResult = {\n id: `${baseCompId}-${compareCompId}`,\n code: diff.filesDiff || [],\n };\n\n return compareResult;\n }\n\n static slots = [];\n static dependencies = [GraphqlAspect, ComponentAspect, ScopeAspect];\n static runtime = MainRuntime;\n static async provider([graphql, component, scope]: [GraphqlMain, ComponentMain, ScopeMain]) {\n const componentCompareMain = new ComponentCompareMain(component, scope);\n graphql.register(componentCompareSchema(componentCompareMain));\n return componentCompareMain;\n }\n}\n\nComponentCompareAspect.addRuntime(ComponentCompareMain);\n\nexport default ComponentCompareMain;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAKA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAOO,MAAMA,oBAAN,CAA2B;EAChCC,WAAW,CAASC,eAAT,EAAiDC,KAAjD,EAAmE;IAAA,KAA1DD,eAA0D,GAA1DA,eAA0D;IAAA,KAAlBC,KAAkB,GAAlBA,KAAkB;EAAE;;EAEnE,MAAPC,OAAO,CAACC,SAAD,EAAoBC,YAApB,EAA2E;IACtF,MAAMC,IAAI,GAAG,KAAKL,eAAL,CAAqBM,OAArB,EAAb;IACA,MAAM,CAACC,UAAD,EAAaC,aAAb,IAA8B,MAAMH,IAAI,CAACI,2BAAL,CAAiC,CAACN,SAAD,EAAYC,YAAZ,CAAjC,CAA1C;IACA,MAAMM,cAAc,GAAG,MAAM,KAAKT,KAAL,CAAWU,WAAX,CAAuBC,wBAAvB,CAAgDJ,aAAa,CAACK,OAA9D,CAA7B;;IACA,IAAI,CAACH,cAAL,EAAqB;MACnB,MAAM,KAAII,uBAAJ,EAAkB,aAAYN,aAAa,CAACO,QAAd,EAAyB,+BAAvD,CAAN;IACD;;IAED,MAAMC,WAAW,GAAGT,UAAU,CAACU,OAA/B;IACA,MAAMC,cAAc,GAAGV,aAAa,CAACS,OAArC;IAEA,MAAME,UAAU,GAAG,KAAKlB,KAAL,CAAWU,WAAX,CAAuBS,OAA1C;IACA,MAAMC,iBAAiB,GAAG,MAAMX,cAAc,CAACY,WAAf,CAA2BN,WAA3B,EAAwCG,UAAxC,CAAhC;IACA,MAAMI,oBAAoB,GAAG,MAAMb,cAAc,CAACY,WAAf,CAA2BJ,cAA3B,EAA2CC,UAA3C,CAAnC;IACA,MAAMK,IAAiB,GAAG,MAAM,IAAAC,4CAAA,EAC9Bf,cAD8B,EAE9BW,iBAF8B,EAG9BE,oBAH8B,EAI9BP,WAJ8B,EAK9BE,cAL8B,EAM9B,KAAKjB,KAAL,CAAWU,WANmB,EAO9B,EAP8B,CAAhC;IAUA,MAAMe,aAAa,GAAG;MACpBC,EAAE,EAAG,GAAEpB,UAAW,IAAGC,aAAc,EADf;MAEpBoB,IAAI,EAAEJ,IAAI,CAACK,SAAL,IAAkB;IAFJ,CAAtB;IAKA,OAAOH,aAAP;EACD;;EAKoB,aAARI,QAAQ,CAAC,CAACC,OAAD,EAAUC,SAAV,EAAqB/B,KAArB,CAAD,EAAuE;IAC1F,MAAMgC,oBAAoB,GAAG,IAAInC,oBAAJ,CAAyBkC,SAAzB,EAAoC/B,KAApC,CAA7B;IACA8B,OAAO,CAACG,QAAR,CAAiB,IAAAC,0CAAA,EAAuBF,oBAAvB,CAAjB;IACA,OAAOA,oBAAP;EACD;;AA1C+B;;;gCAArBnC,oB,WAmCI,E;gCAnCJA,oB,kBAoCW,CAACsC,wBAAD,EAAgBC,oBAAhB,EAAiCC,oBAAjC,C;gCApCXxC,oB,aAqCMyC,kB;;AAQnBC,2CAAA,CAAuBC,UAAvB,CAAkC3C,oBAAlC;;eAEeA,oB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentCompareAspect } from './component-compare.aspect';
|
|
2
|
+
export type { ComponentCompareMain } from './component-compare.main.runtime';
|
|
2
3
|
export { ComponentCompareSection } from './component-compare.section';
|
|
3
4
|
export type { ComponentCompareUI, ComponentCompareNavSlot, ComponentCompareNav } from './component-compare.ui.runtime';
|
|
4
5
|
export { ComponentCompareAspect };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentCompareAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentCompareAspect } from './component-compare.aspect';\n\nexport { ComponentCompareSection } from './component-compare.section';\nexport type { ComponentCompareUI, ComponentCompareNavSlot, ComponentCompareNav } from './component-compare.ui.runtime';\nexport { ComponentCompareAspect };\nexport default ComponentCompareAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;
|
|
1
|
+
{"version":3,"names":["ComponentCompareAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentCompareAspect } from './component-compare.aspect';\n\nexport type { ComponentCompareMain } from './component-compare.main.runtime';\n\nexport { ComponentCompareSection } from './component-compare.section';\nexport type { ComponentCompareUI, ComponentCompareNavSlot, ComponentCompareNav } from './component-compare.ui.runtime';\nexport { ComponentCompareAspect };\nexport default ComponentCompareAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAIA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;eAGeA,0C"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-compare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"homepage": "https://bit.dev/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": "0.0.
|
|
9
|
+
"version": "0.0.55"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"classnames": "2.2.6",
|
|
13
|
+
"graphql-tag": "2.12.1",
|
|
13
14
|
"@babel/runtime": "7.12.18",
|
|
14
15
|
"core-js": "^3.0.0",
|
|
15
16
|
"@teambit/harmony": "0.3.3",
|
|
16
17
|
"@teambit/base-ui.routing.nav-link": "1.0.0",
|
|
17
|
-
"@teambit/component.ui.compare": "0.0.
|
|
18
|
-
"@teambit/component": "0.0.
|
|
18
|
+
"@teambit/component.ui.compare": "0.0.46",
|
|
19
|
+
"@teambit/component": "0.0.807",
|
|
19
20
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
21
|
+
"@teambit/cli": "0.0.538",
|
|
22
|
+
"@teambit/graphql": "0.0.807",
|
|
23
|
+
"@teambit/scope": "0.0.807",
|
|
20
24
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.490",
|
|
21
|
-
"@teambit/ui": "0.0.
|
|
25
|
+
"@teambit/ui": "0.0.807"
|
|
22
26
|
},
|
|
23
27
|
"devDependencies": {
|
|
24
28
|
"@types/react": "^17.0.8",
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
},
|
|
32
36
|
"peerDependencies": {
|
|
33
37
|
"react-router-dom": "^6.0.0",
|
|
34
|
-
"@teambit/legacy": "1.0.
|
|
38
|
+
"@teambit/legacy": "1.0.321",
|
|
35
39
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
36
40
|
"react": "^16.8.0 || ^17.0.0"
|
|
37
41
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.55/dist/component-compare.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@0.0.55/dist/component-compare.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|