@teambit/scope 1.0.228 → 1.0.230
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 +1851 -434
- package/dist/clear-cache-action.d.ts +7 -0
- package/dist/exceptions/component-not-found.d.ts +9 -0
- package/dist/exceptions/index.d.ts +2 -0
- package/dist/exceptions/no-id-match-pattern.d.ts +4 -0
- package/dist/get-scope-options.d.ts +19 -0
- package/dist/index.d.ts +10 -0
- package/dist/{preview-1712805335812.js → preview-1712891953391.js} +2 -2
- package/dist/routes/action.route.d.ts +10 -0
- package/dist/routes/delete.route.d.ts +10 -0
- package/dist/routes/fetch.route.d.ts +12 -0
- package/dist/routes/index.d.ts +4 -0
- package/dist/routes/put.route.d.ts +11 -0
- package/dist/scope-aspects-loader.d.ts +91 -0
- package/dist/scope-cmd.d.ts +10 -0
- package/dist/scope-component-loader.d.ts +36 -0
- package/dist/scope.aspect.d.ts +3 -0
- package/dist/scope.composition.d.ts +1 -0
- package/dist/scope.graphql.d.ts +37 -0
- package/dist/scope.main.runtime.d.ts +405 -0
- package/dist/scope.ui-root.d.ts +25 -0
- package/dist/scope.ui.drawer.d.ts +18 -0
- package/dist/scope.ui.runtime.d.ts +210 -0
- package/dist/staged-config.d.ts +29 -0
- package/dist/types.d.ts +10 -0
- package/dist/ui/menu/index.d.ts +1 -0
- package/dist/ui/menu/menu.d.ts +10 -0
- package/dist/ui/scope-overview/index.d.ts +1 -0
- package/dist/ui/scope-overview/scope-overview.d.ts +31 -0
- package/dist/ui/scope.d.ts +30 -0
- package/package.json +26 -26
- package/tsconfig.json +1 -55
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentID, ComponentIdObj } from '@teambit/component-id';
|
|
2
|
+
import { LaneId } from '@teambit/lane-id';
|
|
3
|
+
import { Logger } from '@teambit/logger';
|
|
4
|
+
type Config = Record<string, any> | undefined;
|
|
5
|
+
type ComponentConfig = {
|
|
6
|
+
id: ComponentID;
|
|
7
|
+
config: Config;
|
|
8
|
+
};
|
|
9
|
+
type ComponentConfigObj = {
|
|
10
|
+
id: ComponentIdObj;
|
|
11
|
+
config: Config;
|
|
12
|
+
};
|
|
13
|
+
export declare class StagedConfig {
|
|
14
|
+
readonly filePath: string;
|
|
15
|
+
private componentsConfig;
|
|
16
|
+
private logger;
|
|
17
|
+
hasChanged: boolean;
|
|
18
|
+
constructor(filePath: string, componentsConfig: ComponentConfig[], logger: Logger);
|
|
19
|
+
static load(scopePath: string, logger: Logger, laneId?: LaneId): Promise<StagedConfig>;
|
|
20
|
+
toObject(): ComponentConfigObj[];
|
|
21
|
+
write(): Promise<void>;
|
|
22
|
+
getConfigPerId(id: ComponentID): Config;
|
|
23
|
+
getAll(): ComponentConfig[];
|
|
24
|
+
isEmpty(): boolean;
|
|
25
|
+
deleteFile(): Promise<void>;
|
|
26
|
+
addComponentConfig(id: ComponentID, config: Config): void;
|
|
27
|
+
removeComponentConfig(id: ComponentID): void;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScopeMenu, ScopeUseBox } from './menu';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MenuProps } from '@teambit/ui-foundation.ui.menu';
|
|
2
|
+
/**
|
|
3
|
+
* scope menu.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ScopeMenu({ className, ...rest }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type ScopeUseBoxProps = {
|
|
7
|
+
actionName?: string;
|
|
8
|
+
actionIcon?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function ScopeUseBox({ actionName, actionIcon }: ScopeUseBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scope-overview';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ScopeID } from '@teambit/scopes.scope-id';
|
|
3
|
+
import { type ComponentCardPluginType, type PluginProps } from '@teambit/explorer.ui.component-card';
|
|
4
|
+
import { ComponentModel } from '@teambit/component';
|
|
5
|
+
import { ComponentDescriptor } from '@teambit/component-descriptor';
|
|
6
|
+
import type { ScopeBadgeSlot, OverviewLineSlot } from '../../scope.ui.runtime';
|
|
7
|
+
export type ScopeOverviewProps = {
|
|
8
|
+
badgeSlot: ScopeBadgeSlot;
|
|
9
|
+
overviewSlot: OverviewLineSlot;
|
|
10
|
+
TargetOverview?: ComponentType;
|
|
11
|
+
};
|
|
12
|
+
export declare class LinkPlugin {
|
|
13
|
+
link(id: any): any;
|
|
14
|
+
}
|
|
15
|
+
export declare function ScopeOverview({ badgeSlot, overviewSlot, TargetOverview }: ScopeOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
type ScopeComponentCardProps = {
|
|
17
|
+
component?: ComponentModel;
|
|
18
|
+
componentDescriptor?: ComponentDescriptor;
|
|
19
|
+
plugins?: ComponentCardPluginType<PluginProps>[];
|
|
20
|
+
scope?: {
|
|
21
|
+
icon?: string;
|
|
22
|
+
backgroundIconColor?: string;
|
|
23
|
+
id: ScopeID;
|
|
24
|
+
};
|
|
25
|
+
componentUrl?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function ScopeComponentCard({ componentDescriptor, plugins }: ScopeComponentCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
export declare function useCardPlugins({ compModelsById, }: {
|
|
29
|
+
compModelsById: Map<string, ComponentModel>;
|
|
30
|
+
}): ComponentCardPluginType<PluginProps>[];
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import 'reset-css';
|
|
3
|
+
import type { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
4
|
+
import type { ScopeModel } from '@teambit/scope.models.scope-model';
|
|
5
|
+
import { ScopeUI, ScopeBadgeSlot, ScopeContextType, CornerSlot, OverviewLineSlot } from '../scope.ui.runtime';
|
|
6
|
+
export type ScopeProps = {
|
|
7
|
+
routeSlot: RouteSlot;
|
|
8
|
+
menuSlot: RouteSlot;
|
|
9
|
+
sidebar: JSX.Element;
|
|
10
|
+
scopeUi: ScopeUI;
|
|
11
|
+
badgeSlot: ScopeBadgeSlot;
|
|
12
|
+
overviewLineSlot: OverviewLineSlot;
|
|
13
|
+
cornerSlot: CornerSlot;
|
|
14
|
+
context: ScopeContextType[];
|
|
15
|
+
TargetScopeOverview?: ComponentType;
|
|
16
|
+
userUseScopeQuery?: () => {
|
|
17
|
+
scope: ScopeModel | undefined;
|
|
18
|
+
};
|
|
19
|
+
onSidebarTogglerChange: (callback: () => void) => void;
|
|
20
|
+
TargetCorner?: ComponentType;
|
|
21
|
+
paneClassName?: string;
|
|
22
|
+
scopeClassName?: string;
|
|
23
|
+
PaneWrapper?: ComponentType<{
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* root component of the scope
|
|
29
|
+
*/
|
|
30
|
+
export declare function Scope({ routeSlot, menuSlot, sidebar, scopeUi, badgeSlot, overviewLineSlot, cornerSlot, PaneWrapper, context, paneClassName, TargetScopeOverview, TargetCorner, onSidebarTogglerChange, userUseScopeQuery, scopeClassName, }: ScopeProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/scope",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.230",
|
|
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.230"
|
|
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.508",
|
|
54
|
+
"@teambit/scope.ui.hooks.scope-context": "0.0.502",
|
|
55
|
+
"@teambit/aspect-loader": "1.0.230",
|
|
56
|
+
"@teambit/cli": "0.0.862",
|
|
57
|
+
"@teambit/compiler": "1.0.230",
|
|
58
|
+
"@teambit/component": "1.0.230",
|
|
59
|
+
"@teambit/dependency-resolver": "1.0.230",
|
|
60
|
+
"@teambit/envs": "1.0.230",
|
|
61
|
+
"@teambit/global-config": "0.0.865",
|
|
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.230",
|
|
64
|
+
"@teambit/logger": "0.0.955",
|
|
65
|
+
"@teambit/builder": "1.0.230",
|
|
66
|
+
"@teambit/express": "0.0.961",
|
|
67
|
+
"@teambit/graph": "1.0.230",
|
|
68
|
+
"@teambit/graphql": "1.0.230",
|
|
69
|
+
"@teambit/ui": "1.0.230",
|
|
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.399",
|
|
72
|
+
"@teambit/lanes.hooks.use-lane-components": "0.0.262",
|
|
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.230",
|
|
76
|
+
"@teambit/component-tree": "1.0.230",
|
|
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.230",
|
|
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.419",
|
|
85
|
+
"@teambit/preview.ui.preview-placeholder": "0.0.518"
|
|
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.33"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,58 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
],
|
|
40
|
-
"references": [
|
|
41
|
-
{
|
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.228"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@1.0.228"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.228"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.864"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.228"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.228"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.960"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.228"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.228"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.228"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_command-bar@1.0.228"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-tree@1.0.228"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_sidebar@1.0.228"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-descriptor@0.0.418"
|
|
91
|
-
}
|
|
92
38
|
]
|
|
93
39
|
}
|