@teambit/scope 1.0.226 → 1.0.228
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 +1651 -2976
- package/dist/{preview-1712632644937.js → preview-1712805335812.js} +2 -2
- package/dist/scope.main.runtime.js +3 -0
- package/dist/scope.main.runtime.js.map +1 -1
- 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
package/dist/types.d.ts
DELETED
package/dist/ui/menu/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ScopeMenu, ScopeUseBox } from './menu';
|
package/dist/ui/menu/menu.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './scope-overview';
|
|
@@ -1,31 +0,0 @@
|
|
|
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 {};
|
package/dist/ui/scope.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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;
|