@industry-theme/alexandria-panels 0.1.8 → 0.1.11
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/dist/index.d.ts +9 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/mocks/panelContext.d.ts +41 -0
- package/dist/mocks/panelContext.d.ts.map +1 -1
- package/dist/panels/GitHubProjectsPanel/GitHubProjectsPanel.stories.d.ts +34 -0
- package/dist/panels/GitHubProjectsPanel/GitHubProjectsPanel.stories.d.ts.map +1 -0
- package/dist/panels/GitHubProjectsPanel/index.d.ts +11 -0
- package/dist/panels/GitHubProjectsPanel/index.d.ts.map +1 -0
- package/dist/panels/GitHubProjectsPanel/tools.d.ts +32 -0
- package/dist/panels/GitHubProjectsPanel/tools.d.ts.map +1 -0
- package/dist/panels/GitHubProjectsPanel/types.d.ts +74 -0
- package/dist/panels/GitHubProjectsPanel/types.d.ts.map +1 -0
- package/dist/panels/GitHubStarredPanel/GitHubStarredPanel.stories.d.ts +26 -0
- package/dist/panels/GitHubStarredPanel/GitHubStarredPanel.stories.d.ts.map +1 -0
- package/dist/panels/GitHubStarredPanel/index.d.ts +12 -0
- package/dist/panels/GitHubStarredPanel/index.d.ts.map +1 -0
- package/dist/panels/GitHubStarredPanel/tools.d.ts +28 -0
- package/dist/panels/GitHubStarredPanel/tools.d.ts.map +1 -0
- package/dist/panels/GitHubStarredPanel/types.d.ts +64 -0
- package/dist/panels/GitHubStarredPanel/types.d.ts.map +1 -0
- package/dist/panels/LocalProjectsPanel/LocalProjectCard.d.ts.map +1 -1
- package/dist/panels/shared/GitHubRepositoryCard.d.ts +26 -0
- package/dist/panels/shared/GitHubRepositoryCard.d.ts.map +1 -0
- package/dist/panels/shared/github-types.d.ts +51 -0
- package/dist/panels/shared/github-types.d.ts.map +1 -0
- package/dist/panels.bundle.js +1697 -995
- package/dist/panels.bundle.js.map +1 -1
- package/dist/tools/index.d.ts +0 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools.bundle.js +0 -97
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts +0 -59
- package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts +0 -8
- package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts +0 -8
- package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/components/FilterBar.d.ts +0 -17
- package/dist/panels/DependenciesPanel/components/FilterBar.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/components/index.d.ts +0 -4
- package/dist/panels/DependenciesPanel/components/index.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/index.d.ts +0 -7
- package/dist/panels/DependenciesPanel/index.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/tools.d.ts +0 -35
- package/dist/panels/DependenciesPanel/tools.d.ts.map +0 -1
- package/dist/panels/DependenciesPanel/types.d.ts +0 -36
- package/dist/panels/DependenciesPanel/types.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,19 +19,25 @@ export declare const onPackageUnload: () => Promise<void>;
|
|
|
19
19
|
export { localProjectsPanelTools, localProjectsPanelToolsMetadata, filterProjectsTool, selectProjectTool, openProjectTool, } from './panels/LocalProjectsPanel/tools';
|
|
20
20
|
export { workspaceRepositoriesPanelTools, workspaceRepositoriesPanelToolsMetadata, selectRepositoryTool, refreshWorkspaceTool, openRepositoryTool, } from './panels/WorkspaceRepositoriesPanel/tools';
|
|
21
21
|
export { workspacesListPanelTools, workspacesListPanelToolsMetadata, filterWorkspacesTool, selectWorkspaceTool, openWorkspaceTool, createWorkspaceTool, } from './panels/WorkspacesListPanel/tools';
|
|
22
|
-
export {
|
|
22
|
+
export { githubStarredPanelTools, githubStarredPanelToolsMetadata, filterStarredTool, selectStarredRepositoryTool, cloneStarredRepositoryTool, } from './panels/GitHubStarredPanel/tools';
|
|
23
|
+
export { githubProjectsPanelTools, githubProjectsPanelToolsMetadata, filterProjectsTool as filterGitHubProjectsTool, toggleOwnerSectionTool, selectProjectRepositoryTool, cloneProjectRepositoryTool, } from './panels/GitHubProjectsPanel/tools';
|
|
23
24
|
/**
|
|
24
25
|
* Export panel components for direct use
|
|
25
26
|
*/
|
|
26
27
|
export { LocalProjectsPanel, LocalProjectsPanelPreview, LocalProjectCard, RepositoryAvatar, } from './panels/LocalProjectsPanel';
|
|
27
28
|
export { WorkspaceRepositoriesPanel } from './panels/WorkspaceRepositoriesPanel';
|
|
28
29
|
export { WorkspacesListPanel, WorkspacesListPanelPreview, WorkspaceCard, } from './panels/WorkspacesListPanel';
|
|
29
|
-
export {
|
|
30
|
+
export { GitHubStarredPanel, GitHubStarredPanelPreview, } from './panels/GitHubStarredPanel';
|
|
31
|
+
export { GitHubProjectsPanel, GitHubProjectsPanelPreview, } from './panels/GitHubProjectsPanel';
|
|
32
|
+
export { GitHubRepositoryCard } from './panels/shared/GitHubRepositoryCard';
|
|
30
33
|
/**
|
|
31
34
|
* Export types
|
|
32
35
|
*/
|
|
33
36
|
export type { LocalProjectCardProps, RepositoryAvatarProps, AlexandriaRepositoriesSlice, LocalProjectsPanelActions, CardActionMode, RepositoryWindowState, } from './panels/LocalProjectsPanel/types';
|
|
34
37
|
export type { Workspace, WorkspaceRepositoriesPanelActions, RepositorySelectedPayload, RepositoryOpenedPayload, } from './panels/WorkspaceRepositoriesPanel/types';
|
|
35
38
|
export type { WorkspacesSlice, WorkspacesListPanelActions, WorkspaceCardProps, WorkspaceSelectedPayload, WorkspaceOpenedPayload, WorkspaceCreatedPayload, WorkspaceDeletedPayload, } from './panels/WorkspacesListPanel/types';
|
|
36
|
-
export type {
|
|
39
|
+
export type { GitHubRepository, GitHubOrganization, LocalRepositoryReference, } from './panels/shared/github-types';
|
|
40
|
+
export type { GitHubStarredSlice, GitHubStarredPanelActions, GitHubStarredPanelEventPayloads, } from './panels/GitHubStarredPanel/types';
|
|
41
|
+
export type { GitHubProjectsSlice, GitHubProjectsPanelActions, GitHubProjectsPanelEventPayloads, } from './panels/GitHubProjectsPanel/types';
|
|
42
|
+
export type { GitHubRepositoryCardProps } from './panels/shared/GitHubRepositoryCard';
|
|
37
43
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAOlE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAoJnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,+BAA+B,EAC/B,uCAAuC,EACvC,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,EACjB,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EAChC,kBAAk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2
|
import type { AlexandriaEntry } from '@principal-ai/alexandria-core-library/types';
|
|
3
3
|
import type { PanelComponentProps, PanelContextValue, PanelActions, PanelEventEmitter, PanelEvent } from '../types';
|
|
4
4
|
import type { Workspace } from '../panels/WorkspacesListPanel/types';
|
|
5
|
+
import type { GitHubRepository, GitHubOrganization } from '../panels/shared/github-types';
|
|
5
6
|
/**
|
|
6
7
|
* Mock Workspaces for Storybook
|
|
7
8
|
*/
|
|
8
9
|
export declare const mockWorkspaces: Workspace[];
|
|
10
|
+
/**
|
|
11
|
+
* Mock GitHub Starred Repositories for Storybook
|
|
12
|
+
*/
|
|
13
|
+
export declare const mockGitHubStarredRepositories: GitHubRepository[];
|
|
14
|
+
/**
|
|
15
|
+
* Mock GitHub User Repositories for Storybook
|
|
16
|
+
*/
|
|
17
|
+
export declare const mockGitHubUserRepositories: GitHubRepository[];
|
|
18
|
+
/**
|
|
19
|
+
* Mock GitHub Organizations for Storybook
|
|
20
|
+
*/
|
|
21
|
+
export declare const mockGitHubOrganizations: GitHubOrganization[];
|
|
22
|
+
/**
|
|
23
|
+
* Mock GitHub Organization Repositories for Storybook
|
|
24
|
+
*/
|
|
25
|
+
export declare const mockGitHubOrgRepositories: Record<string, GitHubRepository[]>;
|
|
9
26
|
/**
|
|
10
27
|
* Mock Alexandria Repositories for Storybook
|
|
11
28
|
*/
|
|
@@ -55,6 +72,30 @@ export declare const createMockWorkspacesListActions: () => {
|
|
|
55
72
|
navigateToPanel?: (panelId: string) => void;
|
|
56
73
|
notifyPanels?: <T>(event: PanelEvent<T>) => void;
|
|
57
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Mock GitHubStarredPanel Actions for Storybook
|
|
77
|
+
*/
|
|
78
|
+
export declare const createMockGitHubStarredActions: () => {
|
|
79
|
+
cloneRepository: (repo: GitHubRepository) => Promise<void>;
|
|
80
|
+
openRepository: (localPath: string) => Promise<void>;
|
|
81
|
+
refreshStarred: () => Promise<void>;
|
|
82
|
+
openFile?: (filePath: string) => void;
|
|
83
|
+
openGitDiff?: (filePath: string, status?: string) => void;
|
|
84
|
+
navigateToPanel?: (panelId: string) => void;
|
|
85
|
+
notifyPanels?: <T>(event: PanelEvent<T>) => void;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Mock GitHubProjectsPanel Actions for Storybook
|
|
89
|
+
*/
|
|
90
|
+
export declare const createMockGitHubProjectsActions: () => {
|
|
91
|
+
cloneRepository: (repo: GitHubRepository) => Promise<void>;
|
|
92
|
+
openRepository: (localPath: string) => Promise<void>;
|
|
93
|
+
refreshProjects: () => Promise<void>;
|
|
94
|
+
openFile?: (filePath: string) => void;
|
|
95
|
+
openGitDiff?: (filePath: string, status?: string) => void;
|
|
96
|
+
navigateToPanel?: (panelId: string) => void;
|
|
97
|
+
notifyPanels?: <T>(event: PanelEvent<T>) => void;
|
|
98
|
+
};
|
|
58
99
|
/**
|
|
59
100
|
* Mock Event Emitter for Storybook
|
|
60
101
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EAGX,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EAGX,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,SAAS,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AACH,eAAO,MAAM,+BAA+B;4BAEZ,gBAAgB;gCAKZ,MAAM;;;2CA/kByB,CAAC;;;CAylBlE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,iBAwCnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1D,gBAAgB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1C,CAMA,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GitHubProjectsPanel } from './index';
|
|
3
|
+
declare const meta: Meta<typeof GitHubProjectsPanel>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GitHubProjectsPanel>;
|
|
6
|
+
/**
|
|
7
|
+
* Default state with user and org repositories
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* Loading state
|
|
12
|
+
*/
|
|
13
|
+
export declare const Loading: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Empty state - no repositories
|
|
16
|
+
*/
|
|
17
|
+
export declare const Empty: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Error state
|
|
20
|
+
*/
|
|
21
|
+
export declare const Error: Story;
|
|
22
|
+
/**
|
|
23
|
+
* User repos only (no organization membership)
|
|
24
|
+
*/
|
|
25
|
+
export declare const UserReposOnly: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Multiple organizations with repositories
|
|
28
|
+
*/
|
|
29
|
+
export declare const MultipleOrganizations: Story;
|
|
30
|
+
/**
|
|
31
|
+
* With some repositories already cloned locally
|
|
32
|
+
*/
|
|
33
|
+
export declare const WithClonedRepos: Story;
|
|
34
|
+
//# sourceMappingURL=GitHubProjectsPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubProjectsPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubProjectsPanel/GitHubProjectsPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAW9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAe1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAyCrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAyCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KA0CnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAyC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAyCnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAuF7B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* GitHubProjectsPanel - Browse user's repositories and organization repositories
|
|
5
|
+
*/
|
|
6
|
+
export declare const GitHubProjectsPanel: React.FC<PanelComponentProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Preview component for panel tabs/thumbnails
|
|
9
|
+
*/
|
|
10
|
+
export declare const GitHubProjectsPanelPreview: React.FC;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubProjectsPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAazE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAgBvD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE7D,CAAC;AA8lBF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAsC9C,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHubProjectsPanel UTCP Tools
|
|
3
|
+
*
|
|
4
|
+
* Server-safe tools for AI agent interaction with the GitHub Projects panel.
|
|
5
|
+
* These tools emit panel events that the panel component listens to.
|
|
6
|
+
*/
|
|
7
|
+
import type { PanelTool, PanelToolsMetadata } from '../../types';
|
|
8
|
+
/**
|
|
9
|
+
* Filter projects by name, owner, or language
|
|
10
|
+
*/
|
|
11
|
+
export declare const filterProjectsTool: PanelTool;
|
|
12
|
+
/**
|
|
13
|
+
* Toggle owner section visibility
|
|
14
|
+
*/
|
|
15
|
+
export declare const toggleOwnerSectionTool: PanelTool;
|
|
16
|
+
/**
|
|
17
|
+
* Select a project repository
|
|
18
|
+
*/
|
|
19
|
+
export declare const selectProjectRepositoryTool: PanelTool;
|
|
20
|
+
/**
|
|
21
|
+
* Clone a project repository
|
|
22
|
+
*/
|
|
23
|
+
export declare const cloneProjectRepositoryTool: PanelTool;
|
|
24
|
+
/**
|
|
25
|
+
* All tools for the GitHubProjectsPanel
|
|
26
|
+
*/
|
|
27
|
+
export declare const githubProjectsPanelTools: PanelTool[];
|
|
28
|
+
/**
|
|
29
|
+
* Tools metadata for registration
|
|
30
|
+
*/
|
|
31
|
+
export declare const githubProjectsPanelToolsMetadata: PanelToolsMetadata;
|
|
32
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubProjectsPanel/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjE;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SA2BhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,SA2BpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SA8BzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SA8BxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,EAK/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,kBAM9C,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHubProjectsPanel Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
import type { PanelActions } from '../../types';
|
|
5
|
+
import type { GitHubRepository, GitHubOrganization } from '../shared/github-types';
|
|
6
|
+
/**
|
|
7
|
+
* Data slice for GitHub projects (user repos + org repos)
|
|
8
|
+
* Provided by the host application through panel context
|
|
9
|
+
*/
|
|
10
|
+
export interface GitHubProjectsSlice {
|
|
11
|
+
/** User's own repositories */
|
|
12
|
+
userRepositories: GitHubRepository[];
|
|
13
|
+
/** User's organizations */
|
|
14
|
+
organizations: GitHubOrganization[];
|
|
15
|
+
/** Repositories by organization (org login -> repos) */
|
|
16
|
+
orgRepositories: Record<string, GitHubRepository[]>;
|
|
17
|
+
/** Whether data is currently loading */
|
|
18
|
+
loading: boolean;
|
|
19
|
+
/** Error message if loading failed */
|
|
20
|
+
error?: string;
|
|
21
|
+
/** Current authenticated user login */
|
|
22
|
+
currentUser?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Extended actions for GitHubProjectsPanel
|
|
26
|
+
* These are provided by the host application
|
|
27
|
+
*/
|
|
28
|
+
export interface GitHubProjectsPanelActions extends PanelActions {
|
|
29
|
+
/**
|
|
30
|
+
* Clone a repository from GitHub
|
|
31
|
+
* @param repo - Repository to clone
|
|
32
|
+
*/
|
|
33
|
+
cloneRepository?: (repo: GitHubRepository) => Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Open a locally cloned repository
|
|
36
|
+
* @param localPath - Path to the local repository
|
|
37
|
+
*/
|
|
38
|
+
openRepository?: (localPath: string) => Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Refresh projects data
|
|
41
|
+
*/
|
|
42
|
+
refreshProjects?: () => Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Event payloads for GitHubProjectsPanel
|
|
46
|
+
*/
|
|
47
|
+
export interface GitHubProjectsPanelEventPayloads {
|
|
48
|
+
/** Filter projects event */
|
|
49
|
+
filter: {
|
|
50
|
+
filter: string;
|
|
51
|
+
};
|
|
52
|
+
/** Toggle owner section collapse event */
|
|
53
|
+
'toggle-section': {
|
|
54
|
+
owner: string;
|
|
55
|
+
};
|
|
56
|
+
/** Select a repository event */
|
|
57
|
+
'select-repository': {
|
|
58
|
+
identifier: string;
|
|
59
|
+
};
|
|
60
|
+
/** Clone a repository event */
|
|
61
|
+
'clone-repository': {
|
|
62
|
+
identifier: string;
|
|
63
|
+
};
|
|
64
|
+
/** Repository selected notification */
|
|
65
|
+
'repository-selected': {
|
|
66
|
+
repository: GitHubRepository;
|
|
67
|
+
};
|
|
68
|
+
/** Repository cloned notification */
|
|
69
|
+
'repository-cloned': {
|
|
70
|
+
repository: GitHubRepository;
|
|
71
|
+
localPath: string;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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E;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,uCAAuC;IACvC,qBAAqB,EAAE;QAAE,UAAU,EAAE,gBAAgB,CAAA;KAAE,CAAC;IACxD,qCAAqC;IACrC,mBAAmB,EAAE;QAAE,UAAU,EAAE,gBAAgB,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GitHubStarredPanel } from './index';
|
|
3
|
+
declare const meta: Meta<typeof GitHubStarredPanel>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GitHubStarredPanel>;
|
|
6
|
+
/**
|
|
7
|
+
* Default state with starred repositories
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* Loading state
|
|
12
|
+
*/
|
|
13
|
+
export declare const Loading: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Empty state - no starred repositories
|
|
16
|
+
*/
|
|
17
|
+
export declare const Empty: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Error state
|
|
20
|
+
*/
|
|
21
|
+
export declare const Error: Story;
|
|
22
|
+
/**
|
|
23
|
+
* With some repositories already cloned locally
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithClonedRepos: Story;
|
|
26
|
+
//# sourceMappingURL=GitHubStarredPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubStarredPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubStarredPanel/GitHubStarredPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAS7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAezC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAmCrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAmCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAuCnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAoF7B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* GitHubStarredPanel - Browse and manage starred GitHub repositories
|
|
5
|
+
*/
|
|
6
|
+
export declare const GitHubStarredPanel: React.FC<PanelComponentProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Preview component for panel tabs/thumbnails
|
|
9
|
+
*/
|
|
10
|
+
export declare const GitHubStarredPanelPreview: React.FC;
|
|
11
|
+
export { GitHubRepositoryCard } from '../shared/GitHubRepositoryCard';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubStarredPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAgBvD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE5D,CAAC;AAwaF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAsC7C,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHubStarredPanel UTCP Tools
|
|
3
|
+
*
|
|
4
|
+
* Server-safe tools for AI agent interaction with the GitHub Starred panel.
|
|
5
|
+
* These tools emit panel events that the panel component listens to.
|
|
6
|
+
*/
|
|
7
|
+
import type { PanelTool, PanelToolsMetadata } from '../../types';
|
|
8
|
+
/**
|
|
9
|
+
* Filter starred repositories by name, owner, or language
|
|
10
|
+
*/
|
|
11
|
+
export declare const filterStarredTool: PanelTool;
|
|
12
|
+
/**
|
|
13
|
+
* Select a starred repository
|
|
14
|
+
*/
|
|
15
|
+
export declare const selectStarredRepositoryTool: PanelTool;
|
|
16
|
+
/**
|
|
17
|
+
* Clone a starred repository
|
|
18
|
+
*/
|
|
19
|
+
export declare const cloneStarredRepositoryTool: PanelTool;
|
|
20
|
+
/**
|
|
21
|
+
* All tools for the GitHubStarredPanel
|
|
22
|
+
*/
|
|
23
|
+
export declare const githubStarredPanelTools: PanelTool[];
|
|
24
|
+
/**
|
|
25
|
+
* Tools metadata for registration
|
|
26
|
+
*/
|
|
27
|
+
export declare const githubStarredPanelToolsMetadata: PanelToolsMetadata;
|
|
28
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubStarredPanel/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA2B/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,SA+BzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,SA8BxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,EAI9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,kBAK7C,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHubStarredPanel Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
import type { PanelActions } from '../../types';
|
|
5
|
+
import type { GitHubRepository } from '../shared/github-types';
|
|
6
|
+
/**
|
|
7
|
+
* Data slice for GitHub starred repositories
|
|
8
|
+
* Provided by the host application through panel context
|
|
9
|
+
*/
|
|
10
|
+
export interface GitHubStarredSlice {
|
|
11
|
+
/** List of starred repositories */
|
|
12
|
+
repositories: GitHubRepository[];
|
|
13
|
+
/** Whether repositories are currently loading */
|
|
14
|
+
loading: boolean;
|
|
15
|
+
/** Error message if loading failed */
|
|
16
|
+
error?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Extended actions for GitHubStarredPanel
|
|
20
|
+
* These are provided by the host application
|
|
21
|
+
*/
|
|
22
|
+
export interface GitHubStarredPanelActions extends PanelActions {
|
|
23
|
+
/**
|
|
24
|
+
* Clone a repository from GitHub
|
|
25
|
+
* @param repo - Repository to clone
|
|
26
|
+
*/
|
|
27
|
+
cloneRepository?: (repo: GitHubRepository) => Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Open a locally cloned repository
|
|
30
|
+
* @param localPath - Path to the local repository
|
|
31
|
+
*/
|
|
32
|
+
openRepository?: (localPath: string) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Refresh starred repositories data
|
|
35
|
+
*/
|
|
36
|
+
refreshStarred?: () => Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Event payloads for GitHubStarredPanel
|
|
40
|
+
*/
|
|
41
|
+
export interface GitHubStarredPanelEventPayloads {
|
|
42
|
+
/** Filter starred repositories event */
|
|
43
|
+
filter: {
|
|
44
|
+
filter: string;
|
|
45
|
+
};
|
|
46
|
+
/** Select a repository event */
|
|
47
|
+
'select-repository': {
|
|
48
|
+
identifier: string;
|
|
49
|
+
};
|
|
50
|
+
/** Clone a repository event */
|
|
51
|
+
'clone-repository': {
|
|
52
|
+
identifier: string;
|
|
53
|
+
};
|
|
54
|
+
/** Repository selected notification */
|
|
55
|
+
'repository-selected': {
|
|
56
|
+
repository: GitHubRepository;
|
|
57
|
+
};
|
|
58
|
+
/** Repository cloned notification */
|
|
59
|
+
'repository-cloned': {
|
|
60
|
+
repository: GitHubRepository;
|
|
61
|
+
localPath: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/panels/GitHubStarredPanel/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,iDAAiD;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5D;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,wCAAwC;IACxC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,gCAAgC;IAChC,mBAAmB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,+BAA+B;IAC/B,kBAAkB,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,uCAAuC;IACvC,qBAAqB,EAAE;QAAE,UAAU,EAAE,gBAAgB,CAAA;KAAE,CAAC;IACxD,qCAAqC;IACrC,mBAAmB,EAAE;QAAE,UAAU,EAAE,gBAAgB,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalProjectCard.d.ts","sourceRoot":"","sources":["../../../src/panels/LocalProjectsPanel/LocalProjectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,0BAA0B,CAAC;AA+BlC;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"LocalProjectCard.d.ts","sourceRoot":"","sources":["../../../src/panels/LocalProjectsPanel/LocalProjectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,0BAA0B,CAAC;AA+BlC;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwZ5D,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GitHubRepository, LocalRepositoryReference } from './github-types';
|
|
3
|
+
export interface GitHubRepositoryCardProps {
|
|
4
|
+
/** GitHub repository data */
|
|
5
|
+
repository: GitHubRepository;
|
|
6
|
+
/** Local repository reference if cloned */
|
|
7
|
+
localRepo?: LocalRepositoryReference;
|
|
8
|
+
/** Callback when clone button is clicked */
|
|
9
|
+
onClone?: (repo: GitHubRepository) => void;
|
|
10
|
+
/** Callback when open button is clicked (for local repos) */
|
|
11
|
+
onOpen?: (localPath: string) => void;
|
|
12
|
+
/** Whether an operation is in progress */
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
/** Whether the card is selected */
|
|
15
|
+
isSelected?: boolean;
|
|
16
|
+
/** Callback when card is clicked */
|
|
17
|
+
onSelect?: (repo: GitHubRepository) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* GitHubRepositoryCard - Displays a GitHub repository with clone/open actions
|
|
21
|
+
*
|
|
22
|
+
* Used by GitHubStarredPanel and GitHubProjectsPanel to display repositories
|
|
23
|
+
* with consistent styling and behavior.
|
|
24
|
+
*/
|
|
25
|
+
export declare const GitHubRepositoryCard: React.FC<GitHubRepositoryCardProps>;
|
|
26
|
+
//# sourceMappingURL=GitHubRepositoryCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubRepositoryCard.d.ts","sourceRoot":"","sources":["../../../src/panels/shared/GitHubRepositoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAGjF,MAAM,WAAW,yBAAyB;IACxC,6BAA6B;IAC7B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,wBAAwB,CAAC;IACrC,4CAA4C;IAC5C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,6DAA6D;IAC7D,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAgTpE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared GitHub API Types
|
|
3
|
+
*
|
|
4
|
+
* Common types used across GitHub-related panels
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* GitHub repository data from the API
|
|
8
|
+
*/
|
|
9
|
+
export interface GitHubRepository {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
full_name: string;
|
|
13
|
+
owner: {
|
|
14
|
+
login: string;
|
|
15
|
+
avatar_url: string;
|
|
16
|
+
};
|
|
17
|
+
private: boolean;
|
|
18
|
+
html_url: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
clone_url: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
pushed_at?: string;
|
|
23
|
+
language: string | null;
|
|
24
|
+
stargazers_count?: number;
|
|
25
|
+
default_branch: string;
|
|
26
|
+
fork?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* GitHub organization data from the API
|
|
30
|
+
*/
|
|
31
|
+
export interface GitHubOrganization {
|
|
32
|
+
login: string;
|
|
33
|
+
id: number;
|
|
34
|
+
avatar_url: string;
|
|
35
|
+
description: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Reference to a locally cloned repository
|
|
39
|
+
* Used to match GitHub repos with local Alexandria entries
|
|
40
|
+
*/
|
|
41
|
+
export interface LocalRepositoryReference {
|
|
42
|
+
/** Local file system path */
|
|
43
|
+
path: string;
|
|
44
|
+
/** Repository name */
|
|
45
|
+
name: string;
|
|
46
|
+
/** GitHub full name (owner/repo) if known */
|
|
47
|
+
githubFullName?: string;
|
|
48
|
+
/** GitHub numeric ID if known */
|
|
49
|
+
githubId?: string;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=github-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-types.d.ts","sourceRoot":"","sources":["../../../src/panels/shared/github-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|