@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.
Files changed (36) hide show
  1. package/artifacts/__bit_junit.xml +1 -1
  2. package/artifacts/preview/teambit_scope_scope-preview.js +1 -1
  3. package/artifacts/schema.json +1651 -2976
  4. package/dist/{preview-1712632644937.js → preview-1712805335812.js} +2 -2
  5. package/dist/scope.main.runtime.js +3 -0
  6. package/dist/scope.main.runtime.js.map +1 -1
  7. package/package.json +26 -26
  8. package/tsconfig.json +55 -1
  9. package/dist/clear-cache-action.d.ts +0 -7
  10. package/dist/exceptions/component-not-found.d.ts +0 -9
  11. package/dist/exceptions/index.d.ts +0 -2
  12. package/dist/exceptions/no-id-match-pattern.d.ts +0 -4
  13. package/dist/get-scope-options.d.ts +0 -19
  14. package/dist/index.d.ts +0 -10
  15. package/dist/routes/action.route.d.ts +0 -10
  16. package/dist/routes/delete.route.d.ts +0 -10
  17. package/dist/routes/fetch.route.d.ts +0 -12
  18. package/dist/routes/index.d.ts +0 -4
  19. package/dist/routes/put.route.d.ts +0 -11
  20. package/dist/scope-aspects-loader.d.ts +0 -91
  21. package/dist/scope-cmd.d.ts +0 -10
  22. package/dist/scope-component-loader.d.ts +0 -36
  23. package/dist/scope.aspect.d.ts +0 -3
  24. package/dist/scope.composition.d.ts +0 -1
  25. package/dist/scope.graphql.d.ts +0 -37
  26. package/dist/scope.main.runtime.d.ts +0 -404
  27. package/dist/scope.ui-root.d.ts +0 -25
  28. package/dist/scope.ui.drawer.d.ts +0 -18
  29. package/dist/scope.ui.runtime.d.ts +0 -210
  30. package/dist/staged-config.d.ts +0 -29
  31. package/dist/types.d.ts +0 -10
  32. package/dist/ui/menu/index.d.ts +0 -1
  33. package/dist/ui/menu/menu.d.ts +0 -10
  34. package/dist/ui/scope-overview/index.d.ts +0 -1
  35. package/dist/ui/scope-overview/scope-overview.d.ts +0 -31
  36. package/dist/ui/scope.d.ts +0 -30
package/dist/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export type Serializable = {
2
- toString(): string;
3
- };
4
- export type Metadata = {
5
- [key: string]: Serializable;
6
- };
7
- export type DataToPersist = {
8
- metadata: Metadata;
9
- files: string[];
10
- };
@@ -1 +0,0 @@
1
- export { ScopeMenu, ScopeUseBox } from './menu';
@@ -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 {};
@@ -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;