@teambit/workspace 1.0.171 → 1.0.174
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 +1 -1
- package/artifacts/preview/static/css/teambit.workspace/{workspace-preview.f9f484f7.css → workspace-preview.ce7d0a74.css} +2 -2
- package/artifacts/preview/teambit_workspace_workspace-preview.js +1 -1
- package/artifacts/schema.json +1353 -1353
- package/dist/build-graph-ids-from-fs.js +2 -0
- package/dist/build-graph-ids-from-fs.js.map +1 -1
- package/dist/preview-1708958940676.js +7 -0
- package/dist/workspace-component/comp-files.d.ts +2 -2
- package/dist/workspace-component/comp-files.js +8 -8
- package/dist/workspace-component/comp-files.js.map +1 -1
- package/dist/workspace.js +4 -5
- package/dist/workspace.js.map +1 -1
- package/package.json +25 -25
- package/workspace-component/comp-files.ts +7 -7
- package/dist/preview-1708455795514.js +0 -7
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/workspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.174",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/workspace",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "workspace",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.174"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -55,46 +55,46 @@
|
|
|
55
55
|
"@teambit/explorer.ui.gallery.component-grid": "0.0.496",
|
|
56
56
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
57
57
|
"@teambit/workspace.ui.empty-workspace": "0.0.508",
|
|
58
|
-
"@teambit/component": "1.0.
|
|
59
|
-
"@teambit/dependency-resolver": "1.0.
|
|
60
|
-
"@teambit/envs": "1.0.
|
|
58
|
+
"@teambit/component": "1.0.174",
|
|
59
|
+
"@teambit/dependency-resolver": "1.0.174",
|
|
60
|
+
"@teambit/envs": "1.0.174",
|
|
61
61
|
"@teambit/logger": "0.0.944",
|
|
62
|
-
"@teambit/scope": "1.0.
|
|
63
|
-
"@teambit/graph": "1.0.
|
|
62
|
+
"@teambit/scope": "1.0.174",
|
|
63
|
+
"@teambit/graph": "1.0.174",
|
|
64
64
|
"@teambit/cli": "0.0.851",
|
|
65
|
-
"@teambit/isolator": "1.0.
|
|
66
|
-
"@teambit/component-tree": "1.0.
|
|
65
|
+
"@teambit/isolator": "1.0.174",
|
|
66
|
+
"@teambit/component-tree": "1.0.174",
|
|
67
67
|
"@teambit/harmony.modules.resolved-component": "0.0.497",
|
|
68
|
-
"@teambit/watcher": "1.0.
|
|
69
|
-
"@teambit/aspect-loader": "1.0.
|
|
70
|
-
"@teambit/config": "0.0.
|
|
68
|
+
"@teambit/watcher": "1.0.174",
|
|
69
|
+
"@teambit/aspect-loader": "1.0.174",
|
|
70
|
+
"@teambit/config": "0.0.925",
|
|
71
71
|
"@teambit/global-config": "0.0.854",
|
|
72
72
|
"@teambit/harmony.modules.requireable-component": "0.0.497",
|
|
73
73
|
"@teambit/toolbox.modules.module-resolver": "0.0.7",
|
|
74
74
|
"@teambit/workspace.modules.node-modules-linker": "0.0.164",
|
|
75
|
-
"@teambit/graphql": "1.0.
|
|
76
|
-
"@teambit/bundler": "1.0.
|
|
77
|
-
"@teambit/pubsub": "1.0.
|
|
78
|
-
"@teambit/ui": "1.0.
|
|
79
|
-
"@teambit/variants": "0.0.
|
|
75
|
+
"@teambit/graphql": "1.0.174",
|
|
76
|
+
"@teambit/bundler": "1.0.174",
|
|
77
|
+
"@teambit/pubsub": "1.0.174",
|
|
78
|
+
"@teambit/ui": "1.0.174",
|
|
79
|
+
"@teambit/variants": "0.0.1018",
|
|
80
80
|
"@teambit/component-issues": "0.0.141",
|
|
81
81
|
"@teambit/workspace.modules.match-pattern": "0.0.505",
|
|
82
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
82
|
+
"@teambit/component.ui.component-drawer": "0.0.393",
|
|
83
83
|
"@teambit/lanes.hooks.use-lane-components": "0.0.258",
|
|
84
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
|
84
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.260",
|
|
85
85
|
"@teambit/lanes.ui.models.lanes-model": "0.0.212",
|
|
86
|
-
"@teambit/command-bar": "1.0.
|
|
86
|
+
"@teambit/command-bar": "1.0.174",
|
|
87
87
|
"@teambit/component.ui.component-filters.component-filter-context": "0.0.218",
|
|
88
88
|
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.216",
|
|
89
|
-
"@teambit/component.ui.component-filters.env-filter": "0.0.
|
|
89
|
+
"@teambit/component.ui.component-filters.env-filter": "0.0.223",
|
|
90
90
|
"@teambit/component.ui.component-filters.show-main-filter": "0.0.209",
|
|
91
|
-
"@teambit/sidebar": "1.0.
|
|
91
|
+
"@teambit/sidebar": "1.0.174",
|
|
92
|
+
"@teambit/deprecation": "1.0.174",
|
|
92
93
|
"@teambit/component-descriptor": "0.0.415",
|
|
93
|
-
"@teambit/deprecation": "1.0.171",
|
|
94
94
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.217",
|
|
95
95
|
"@teambit/cloud.hooks.use-cloud-scopes": "0.0.3",
|
|
96
|
-
"@teambit/
|
|
97
|
-
"@teambit/
|
|
96
|
+
"@teambit/workspace.ui.workspace-component-card": "0.0.521",
|
|
97
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.514"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@types/lodash": "4.14.165",
|
|
@@ -13,14 +13,14 @@ export class CompFiles {
|
|
|
13
13
|
private repository: Repository,
|
|
14
14
|
private currentFiles: SourceFile[],
|
|
15
15
|
readonly compDir: PathLinux,
|
|
16
|
-
private
|
|
16
|
+
private modelFiles: SourceFileModel[] = []
|
|
17
17
|
) {}
|
|
18
18
|
|
|
19
19
|
isModified(): boolean {
|
|
20
|
-
if (!this.
|
|
21
|
-
if (this.currentFiles.length !== this.
|
|
20
|
+
if (!this.modelFiles.length) return false;
|
|
21
|
+
if (this.currentFiles.length !== this.modelFiles.length) return true;
|
|
22
22
|
return this.currentFiles.some((file) => {
|
|
23
|
-
const headFile = this.
|
|
23
|
+
const headFile = this.modelFiles.find((h) => h.relativePath === file.relative);
|
|
24
24
|
if (!headFile) return true;
|
|
25
25
|
return !headFile.file.isEqual(file.toSourceAsLinuxEOL().hash());
|
|
26
26
|
});
|
|
@@ -31,12 +31,12 @@ export class CompFiles {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
async getHeadFiles(): Promise<SourceFile[]> {
|
|
34
|
-
return Promise.all(this.
|
|
34
|
+
return Promise.all(this.modelFiles.map((file) => SourceFile.loadFromSourceFileModel(file, this.repository)));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
getFilesStatus(): FilesStatus {
|
|
38
38
|
const result = this.currentFiles.reduce((acc, file) => {
|
|
39
|
-
const headFile = this.
|
|
39
|
+
const headFile = this.modelFiles.find((h) => h.relativePath === file.relative);
|
|
40
40
|
const getType = (): FILE_STATUS => {
|
|
41
41
|
if (!headFile) return 'new';
|
|
42
42
|
if (headFile.file.isEqual(file.toSourceAsLinuxEOL().hash())) return 'unchanged';
|
|
@@ -45,7 +45,7 @@ export class CompFiles {
|
|
|
45
45
|
acc[file.relative] = getType();
|
|
46
46
|
return acc;
|
|
47
47
|
}, {});
|
|
48
|
-
this.
|
|
48
|
+
this.modelFiles.forEach((headFile) => {
|
|
49
49
|
const currentFile = this.currentFiles.find((c) => c.relative === headFile.relativePath);
|
|
50
50
|
if (!currentFile) {
|
|
51
51
|
result[headFile.relativePath] = 'deleted';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.171/dist/workspace.composition.js';
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.171/dist/workspace.docs.mdx';
|
|
3
|
-
|
|
4
|
-
export const compositions = [compositions_0];
|
|
5
|
-
export const overview = [overview_0];
|
|
6
|
-
|
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|