@teambit/scope 1.0.225 → 1.0.227
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/teambit_scope_scope-preview.js +1 -1
- package/artifacts/schema.json +435 -1844
- package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
- package/package.json +26 -26
- package/tsconfig.json +55 -1
- package/dist/clear-cache-action.d.ts +0 -7
- package/dist/exceptions/component-not-found.d.ts +0 -9
- package/dist/exceptions/index.d.ts +0 -2
- package/dist/exceptions/no-id-match-pattern.d.ts +0 -4
- package/dist/get-scope-options.d.ts +0 -19
- package/dist/index.d.ts +0 -10
- package/dist/routes/action.route.d.ts +0 -10
- package/dist/routes/delete.route.d.ts +0 -10
- package/dist/routes/fetch.route.d.ts +0 -12
- package/dist/routes/index.d.ts +0 -4
- package/dist/routes/put.route.d.ts +0 -11
- package/dist/scope-aspects-loader.d.ts +0 -91
- package/dist/scope-cmd.d.ts +0 -10
- package/dist/scope-component-loader.d.ts +0 -36
- package/dist/scope.aspect.d.ts +0 -3
- package/dist/scope.composition.d.ts +0 -1
- package/dist/scope.graphql.d.ts +0 -37
- package/dist/scope.main.runtime.d.ts +0 -404
- package/dist/scope.ui-root.d.ts +0 -25
- package/dist/scope.ui.drawer.d.ts +0 -18
- package/dist/scope.ui.runtime.d.ts +0 -210
- package/dist/staged-config.d.ts +0 -29
- package/dist/types.d.ts +0 -10
- package/dist/ui/menu/index.d.ts +0 -1
- package/dist/ui/menu/menu.d.ts +0 -10
- package/dist/ui/scope-overview/index.d.ts +0 -1
- package/dist/ui/scope-overview/scope-overview.d.ts +0 -31
- package/dist/ui/scope.d.ts +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.227/dist/scope.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.227/dist/scope.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/scope",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.227",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/scope",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.scope",
|
|
8
8
|
"name": "scope",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.227"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -50,39 +50,39 @@
|
|
|
50
50
|
"@teambit/scope.ui.scope-details": "0.0.526",
|
|
51
51
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
52
52
|
"@teambit/component.modules.component-url": "0.0.167",
|
|
53
|
-
"@teambit/scope.models.scope-model": "0.0.
|
|
54
|
-
"@teambit/scope.ui.hooks.scope-context": "0.0.
|
|
55
|
-
"@teambit/aspect-loader": "1.0.
|
|
56
|
-
"@teambit/cli": "0.0.
|
|
57
|
-
"@teambit/compiler": "1.0.
|
|
58
|
-
"@teambit/component": "1.0.
|
|
59
|
-
"@teambit/dependency-resolver": "1.0.
|
|
60
|
-
"@teambit/envs": "1.0.
|
|
61
|
-
"@teambit/global-config": "0.0.
|
|
53
|
+
"@teambit/scope.models.scope-model": "0.0.507",
|
|
54
|
+
"@teambit/scope.ui.hooks.scope-context": "0.0.501",
|
|
55
|
+
"@teambit/aspect-loader": "1.0.227",
|
|
56
|
+
"@teambit/cli": "0.0.860",
|
|
57
|
+
"@teambit/compiler": "1.0.227",
|
|
58
|
+
"@teambit/component": "1.0.227",
|
|
59
|
+
"@teambit/dependency-resolver": "1.0.227",
|
|
60
|
+
"@teambit/envs": "1.0.227",
|
|
61
|
+
"@teambit/global-config": "0.0.863",
|
|
62
62
|
"@teambit/harmony.modules.requireable-component": "0.0.497",
|
|
63
|
-
"@teambit/isolator": "1.0.
|
|
64
|
-
"@teambit/logger": "0.0.
|
|
65
|
-
"@teambit/builder": "1.0.
|
|
66
|
-
"@teambit/express": "0.0.
|
|
67
|
-
"@teambit/graph": "1.0.
|
|
68
|
-
"@teambit/graphql": "1.0.
|
|
69
|
-
"@teambit/ui": "1.0.
|
|
63
|
+
"@teambit/isolator": "1.0.227",
|
|
64
|
+
"@teambit/logger": "0.0.953",
|
|
65
|
+
"@teambit/builder": "1.0.227",
|
|
66
|
+
"@teambit/express": "0.0.959",
|
|
67
|
+
"@teambit/graph": "1.0.227",
|
|
68
|
+
"@teambit/graphql": "1.0.227",
|
|
69
|
+
"@teambit/ui": "1.0.227",
|
|
70
70
|
"@teambit/workspace.modules.match-pattern": "0.0.505",
|
|
71
|
-
"@teambit/component.ui.component-drawer": "0.0.
|
|
72
|
-
"@teambit/lanes.hooks.use-lane-components": "0.0.
|
|
71
|
+
"@teambit/component.ui.component-drawer": "0.0.398",
|
|
72
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.261",
|
|
73
73
|
"@teambit/lanes.hooks.use-lanes": "0.0.264",
|
|
74
74
|
"@teambit/lanes.ui.models.lanes-model": "0.0.216",
|
|
75
|
-
"@teambit/command-bar": "1.0.
|
|
76
|
-
"@teambit/component-tree": "1.0.
|
|
75
|
+
"@teambit/command-bar": "1.0.227",
|
|
76
|
+
"@teambit/component-tree": "1.0.227",
|
|
77
77
|
"@teambit/component.ui.component-filters.component-filter-context": "0.0.222",
|
|
78
78
|
"@teambit/component.ui.component-filters.deprecate-filter": "0.0.220",
|
|
79
79
|
"@teambit/component.ui.component-filters.env-filter": "0.0.228",
|
|
80
80
|
"@teambit/component.ui.component-filters.show-main-filter": "0.0.213",
|
|
81
|
-
"@teambit/sidebar": "1.0.
|
|
81
|
+
"@teambit/sidebar": "1.0.227",
|
|
82
82
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.508",
|
|
83
83
|
"@teambit/ui-foundation.ui.buttons.collapser": "0.0.219",
|
|
84
|
-
"@teambit/component-descriptor": "0.0.
|
|
85
|
-
"@teambit/preview.ui.preview-placeholder": "0.0.
|
|
84
|
+
"@teambit/component-descriptor": "0.0.418",
|
|
85
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.517"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@types/fs-extra": "9.0.7",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@types/mocha": "9.1.0",
|
|
93
93
|
"chai": "4.3.0",
|
|
94
94
|
"@teambit/scope.content.scope-overview": "1.95.0",
|
|
95
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
95
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,58 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.227"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@1.0.227"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.227"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.863"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.227"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.227"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.959"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.227"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_command-bar@1.0.227"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-tree@1.0.227"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_sidebar@1.0.227"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-descriptor@0.0.418"
|
|
91
|
+
}
|
|
38
92
|
]
|
|
39
93
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DrawerType } from '@teambit/ui-foundation.ui.tree.drawer';
|
|
2
|
-
import { ComponentType, ReactNode } from 'react';
|
|
3
|
-
import { ComponentUrlResolver } from '@teambit/component.modules.component-url';
|
|
4
|
-
import type { ScopeModel } from '@teambit/scope.models.scope-model';
|
|
5
|
-
export type GetScopeOptions = {
|
|
6
|
-
useScope?: () => {
|
|
7
|
-
scope: ScopeModel | undefined;
|
|
8
|
-
};
|
|
9
|
-
Corner?: ComponentType;
|
|
10
|
-
paneClassName?: string;
|
|
11
|
-
scopeClassName?: string;
|
|
12
|
-
TargetScopeOverview?: ComponentType;
|
|
13
|
-
PaneWrapper?: ComponentType<{
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
overrideDrawers?: DrawerType[];
|
|
17
|
-
onSidebarToggle?: (callback: () => void) => void;
|
|
18
|
-
getComponentUrl?: ComponentUrlResolver;
|
|
19
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ScopeAspect } from './scope.aspect';
|
|
2
|
-
export { ComponentNotFound, NoIdMatchPattern } from './exceptions';
|
|
3
|
-
export { ScopeComponentCard } from './ui/scope-overview/scope-overview';
|
|
4
|
-
export type { ScopeMain } from './scope.main.runtime';
|
|
5
|
-
export type { ScopeModel } from '@teambit/scope.models.scope-model';
|
|
6
|
-
export { ScopeContext } from '@teambit/scope.ui.hooks.scope-context';
|
|
7
|
-
export type { StagedConfig } from './staged-config';
|
|
8
|
-
export type { ScopeUI, ScopeBadgeSlot, ScopeOverview, ScopeOverviewSlot, OverviewLineSlot } from './scope.ui.runtime';
|
|
9
|
-
export { ScopeAspect };
|
|
10
|
-
export default ScopeAspect;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
|
2
|
-
import { ScopeMain } from '../scope.main.runtime';
|
|
3
|
-
export declare class ActionRoute implements Route {
|
|
4
|
-
private scope;
|
|
5
|
-
constructor(scope: ScopeMain);
|
|
6
|
-
method: string;
|
|
7
|
-
route: string;
|
|
8
|
-
verb: Verb;
|
|
9
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
|
2
|
-
import { ScopeMain } from '../scope.main.runtime';
|
|
3
|
-
export declare class DeleteRoute implements Route {
|
|
4
|
-
private scope;
|
|
5
|
-
constructor(scope: ScopeMain);
|
|
6
|
-
method: string;
|
|
7
|
-
route: string;
|
|
8
|
-
verb: Verb;
|
|
9
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
|
2
|
-
import { Logger } from '@teambit/logger';
|
|
3
|
-
import { ScopeMain } from '../scope.main.runtime';
|
|
4
|
-
export declare class FetchRoute implements Route {
|
|
5
|
-
private scope;
|
|
6
|
-
private logger;
|
|
7
|
-
constructor(scope: ScopeMain, logger: Logger);
|
|
8
|
-
route: string;
|
|
9
|
-
method: string;
|
|
10
|
-
verb: Verb;
|
|
11
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
12
|
-
}
|
package/dist/routes/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
|
2
|
-
import { OnPostPutSlot, ScopeMain } from '../scope.main.runtime';
|
|
3
|
-
export declare class PutRoute implements Route {
|
|
4
|
-
private scope;
|
|
5
|
-
private postPutSlot;
|
|
6
|
-
constructor(scope: ScopeMain, postPutSlot: OnPostPutSlot);
|
|
7
|
-
method: string;
|
|
8
|
-
route: string;
|
|
9
|
-
verb: Verb;
|
|
10
|
-
middlewares: ((req: Request, res: Response) => Promise<void>)[];
|
|
11
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { GlobalConfigMain } from '@teambit/global-config';
|
|
2
|
-
import { Lane } from '@teambit/legacy/dist/scope/models';
|
|
3
|
-
import { IsolateComponentsOptions, IsolatorMain } from '@teambit/isolator';
|
|
4
|
-
import { AspectLoaderMain, AspectDefinition } from '@teambit/aspect-loader';
|
|
5
|
-
import { RequireableComponent } from '@teambit/harmony.modules.requireable-component';
|
|
6
|
-
import { ExtensionManifest, Aspect } from '@teambit/harmony';
|
|
7
|
-
import { Component, ComponentID, LoadAspectsOptions, ResolveAspectsOptions } from '@teambit/component';
|
|
8
|
-
import { Logger } from '@teambit/logger';
|
|
9
|
-
import { EnvsMain } from '@teambit/envs';
|
|
10
|
-
import { NodeLinker } from '@teambit/dependency-resolver';
|
|
11
|
-
import { ScopeMain } from './scope.main.runtime';
|
|
12
|
-
type ManifestOrAspect = ExtensionManifest | Aspect;
|
|
13
|
-
export type ScopeLoadAspectsOptions = LoadAspectsOptions & {
|
|
14
|
-
useScopeAspectsCapsule?: boolean;
|
|
15
|
-
packageManagerConfigRootDir?: string;
|
|
16
|
-
workspaceName?: string;
|
|
17
|
-
};
|
|
18
|
-
export declare class ScopeAspectsLoader {
|
|
19
|
-
private scope;
|
|
20
|
-
private aspectLoader;
|
|
21
|
-
private envs;
|
|
22
|
-
private isolator;
|
|
23
|
-
private logger;
|
|
24
|
-
private globalConfig;
|
|
25
|
-
constructor(scope: ScopeMain, aspectLoader: AspectLoaderMain, envs: EnvsMain, isolator: IsolatorMain, logger: Logger, globalConfig: GlobalConfigMain);
|
|
26
|
-
loadAspects(ids: string[], throwOnError?: boolean, neededFor?: string, lane?: Lane, opts?: ScopeLoadAspectsOptions): Promise<string[]>;
|
|
27
|
-
/**
|
|
28
|
-
* This function get's a list of aspect ids and return them grouped by whether any of them is the env of other from the list
|
|
29
|
-
* @param ids
|
|
30
|
-
*/
|
|
31
|
-
groupAspectIdsByEnvOfTheList(ids: string[], lane?: Lane): Promise<{
|
|
32
|
-
envs?: string[];
|
|
33
|
-
other?: string[];
|
|
34
|
-
}>;
|
|
35
|
-
private getManifestsAndLoadAspects;
|
|
36
|
-
getManifestsGraphRecursively(ids: string[], visited?: string[], throwOnError?: boolean, lane?: Lane, opts?: {
|
|
37
|
-
packageManagerConfigRootDir?: string;
|
|
38
|
-
workspaceName?: string;
|
|
39
|
-
}): Promise<{
|
|
40
|
-
manifests: ManifestOrAspect[];
|
|
41
|
-
potentialPluginsIds: string[];
|
|
42
|
-
}>;
|
|
43
|
-
private getNonLoadedAspects;
|
|
44
|
-
getResolvedAspects(components: Component[], opts?: {
|
|
45
|
-
skipIfExists?: boolean;
|
|
46
|
-
packageManagerConfigRootDir?: string;
|
|
47
|
-
workspaceName?: string;
|
|
48
|
-
}): Promise<RequireableComponent[]>;
|
|
49
|
-
private compileIfNoDist;
|
|
50
|
-
private tryCompile;
|
|
51
|
-
requireAspects(components: Component[], throwOnError?: boolean, opts?: {
|
|
52
|
-
packageManagerConfigRootDir?: string;
|
|
53
|
-
workspaceName?: string;
|
|
54
|
-
}): Promise<Array<ExtensionManifest | Aspect>>;
|
|
55
|
-
shouldUseDatedCapsules(): boolean;
|
|
56
|
-
shouldCacheLockFileOnly(): boolean;
|
|
57
|
-
getAspectCapsulePath(): string;
|
|
58
|
-
shouldUseHashForCapsules(): boolean;
|
|
59
|
-
getAspectsPackageManager(): string | undefined;
|
|
60
|
-
getAspectsNodeLinker(): NodeLinker | undefined;
|
|
61
|
-
private resolveUserAspects;
|
|
62
|
-
resolveAspects(runtimeName?: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions): Promise<AspectDefinition[]>;
|
|
63
|
-
getIsolateOpts(opts?: {
|
|
64
|
-
skipIfExists?: boolean;
|
|
65
|
-
packageManagerConfigRootDir?: string;
|
|
66
|
-
workspaceName?: string;
|
|
67
|
-
}): IsolateComponentsOptions;
|
|
68
|
-
getDefaultIsolateOpts(): {
|
|
69
|
-
datedDirId: string;
|
|
70
|
-
baseDir: string;
|
|
71
|
-
useHash: boolean;
|
|
72
|
-
packageManager: string | undefined;
|
|
73
|
-
nodeLinker: NodeLinker | undefined;
|
|
74
|
-
useDatedDirs: boolean;
|
|
75
|
-
cacheLockFileOnly: boolean;
|
|
76
|
-
skipIfExists: boolean;
|
|
77
|
-
seedersOnly: boolean;
|
|
78
|
-
includeFromNestedHosts: boolean;
|
|
79
|
-
host: ScopeMain;
|
|
80
|
-
installOptions: {
|
|
81
|
-
copyPeerToRuntimeOnRoot: boolean;
|
|
82
|
-
useNesting: boolean;
|
|
83
|
-
copyPeerToRuntimeOnComponents: boolean;
|
|
84
|
-
installPeersFromEnvs: boolean;
|
|
85
|
-
};
|
|
86
|
-
context: {
|
|
87
|
-
aspects: boolean;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export {};
|
package/dist/scope-cmd.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from '@teambit/cli';
|
|
2
|
-
export declare class ScopeCmd implements Command {
|
|
3
|
-
name: string;
|
|
4
|
-
alias: string;
|
|
5
|
-
description: string;
|
|
6
|
-
options: never[];
|
|
7
|
-
group: string;
|
|
8
|
-
commands: Command[];
|
|
9
|
-
report([unrecognizedSubcommand]: [string]): Promise<string>;
|
|
10
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentID, Snap, State } from '@teambit/component';
|
|
2
|
-
import { Logger } from '@teambit/logger';
|
|
3
|
-
import ConsumerComponent from '@teambit/legacy/dist/consumer/component';
|
|
4
|
-
import type { ScopeMain } from './scope.main.runtime';
|
|
5
|
-
export declare class ScopeComponentLoader {
|
|
6
|
-
private scope;
|
|
7
|
-
private logger;
|
|
8
|
-
private componentsCache;
|
|
9
|
-
private importedComponentsCache;
|
|
10
|
-
constructor(scope: ScopeMain, logger: Logger);
|
|
11
|
-
get(id: ComponentID, importIfMissing?: boolean, useCache?: boolean): Promise<Component | undefined>;
|
|
12
|
-
getFromConsumerComponent(consumerComponent: ConsumerComponent): Promise<Component>;
|
|
13
|
-
/**
|
|
14
|
-
* get a component from a remote without importing it
|
|
15
|
-
*/
|
|
16
|
-
getRemoteComponent(id: ComponentID): Promise<Component>;
|
|
17
|
-
/**
|
|
18
|
-
* get components from a remote without importing it
|
|
19
|
-
*/
|
|
20
|
-
getManyRemoteComponents(ids: ComponentID[]): Promise<Component[]>;
|
|
21
|
-
getState(id: ComponentID, hash: string): Promise<State>;
|
|
22
|
-
getSnap(id: ComponentID, hash: string): Promise<Snap>;
|
|
23
|
-
clearCache(): void;
|
|
24
|
-
/**
|
|
25
|
-
* make sure that not only the id-str match, but also the legacy-id.
|
|
26
|
-
* this is needed because the ComponentID.toString() is the same whether or not the legacy-id has
|
|
27
|
-
* scope-name, as it includes the defaultScope if the scope is empty.
|
|
28
|
-
* as a result, when out-of-sync is happening and the id is changed to include scope-name in the
|
|
29
|
-
* legacy-id, the component is the cache has the old id.
|
|
30
|
-
*/
|
|
31
|
-
private getFromCache;
|
|
32
|
-
private getTagMap;
|
|
33
|
-
private getHeadSnap;
|
|
34
|
-
private createSnapFromVersion;
|
|
35
|
-
private createStateFromVersion;
|
|
36
|
-
}
|
package/dist/scope.aspect.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/scope.graphql.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { LegacyComponentLog as ComponentLog } from '@teambit/legacy-component-log';
|
|
2
|
-
import { ScopeMain } from './scope.main.runtime';
|
|
3
|
-
export declare function scopeSchema(scopeMain: ScopeMain): {
|
|
4
|
-
typeDefs: import("apollo-link").DocumentNode;
|
|
5
|
-
resolvers: {
|
|
6
|
-
Scope: {
|
|
7
|
-
name: (scope: ScopeMain) => string;
|
|
8
|
-
description: (scope: ScopeMain) => string | undefined;
|
|
9
|
-
icon: (scope: ScopeMain) => string | undefined;
|
|
10
|
-
backgroundIconColor: (scope: ScopeMain) => string | undefined;
|
|
11
|
-
components: (scope: ScopeMain, props?: {
|
|
12
|
-
offset: number;
|
|
13
|
-
limit: number;
|
|
14
|
-
includeCache?: boolean;
|
|
15
|
-
namespaces?: string[];
|
|
16
|
-
}) => Promise<import("@teambit/component").Component[]>;
|
|
17
|
-
get: (scope: ScopeMain, { id }: {
|
|
18
|
-
id: string;
|
|
19
|
-
}) => Promise<import("@teambit/component").Component | undefined>;
|
|
20
|
-
_getLegacy: (scope: ScopeMain, { id }: {
|
|
21
|
-
id: string;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
_legacyLatestVersions: (scope: ScopeMain, { ids }: {
|
|
24
|
-
ids: string[];
|
|
25
|
-
}) => Promise<string[]>;
|
|
26
|
-
getLogs: (scope: ScopeMain, { id }: {
|
|
27
|
-
id: string;
|
|
28
|
-
}) => Promise<ComponentLog[]>;
|
|
29
|
-
getMany: (scope: ScopeMain, { ids }: {
|
|
30
|
-
ids: string[];
|
|
31
|
-
}) => Promise<import("@teambit/component").Component[]>;
|
|
32
|
-
};
|
|
33
|
-
Query: {
|
|
34
|
-
scope: () => ScopeMain;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|