@industry-theme/github-panels 0.1.8 → 0.1.10

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 CHANGED
@@ -17,6 +17,10 @@ export declare const onPackageUnload: () => Promise<void>;
17
17
  export { GitHubProjectCard } from './components/GitHubProjectCard';
18
18
  export { GitHubProjectsPanel } from './panels/GitHubProjectsPanel';
19
19
  export { GitHubSearchPanel } from './panels/GitHubSearchPanel';
20
+ export { OwnerRepositoriesPanel } from './panels/OwnerRepositoriesPanel';
21
+ export { RecentRepositoriesPanel, addRecentRepository, addRecentOwner } from './panels/RecentRepositoriesPanel';
22
+ export type { OwnerInfo } from './panels/RecentRepositoriesPanel';
23
+ export { WelcomePanel } from './panels/WelcomePanel';
20
24
  export type { GitHubOwner, GitHubRepository, GitHubOrganization, GitHubRepositoriesSliceData, RepositorySelectedEventPayload, RepositoryPreviewEventPayload, GitHubPanelEventType, } from './types/github';
21
25
  export { githubTools, githubToolsMetadata, listRepositoriesTool, selectRepositoryTool, previewRepositoryTool, searchRepositoriesTool, openRepositorySwitcherTool, requestGitHubLoginTool, } from './tools';
22
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAG7E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAsCnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAGF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,YAAY,EACV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M,SAAS,CAAC"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import type { PanelComponentProps } from '../types';
3
+ /**
4
+ * OwnerRepositoriesPanel - A panel for browsing a GitHub user or organization's repositories
5
+ *
6
+ * Features:
7
+ * - Shows all public repositories for a user/org
8
+ * - Displays owner info (avatar, bio, repo count)
9
+ * - Sort by updated, stars, or name
10
+ * - Filter by programming language
11
+ * - Click to preview README, double-click to open
12
+ */
13
+ export declare const OwnerRepositoriesPanel: React.FC<PanelComponentProps & {
14
+ owner?: string;
15
+ }>;
16
+ /**
17
+ * Panel metadata for registration
18
+ */
19
+ export declare const OwnerRepositoriesPanelMetadata: {
20
+ id: string;
21
+ name: string;
22
+ description: string;
23
+ icon: string;
24
+ version: string;
25
+ slices: never[];
26
+ surfaces: string[];
27
+ };
28
+ //# sourceMappingURL=OwnerRepositoriesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAehE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAmoBpD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAMrF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import type { PanelComponentProps } from '../types';
3
+ import type { GitHubRepository } from '../types/github';
4
+ /**
5
+ * Add a repository to the recent list
6
+ */
7
+ export declare function addRecentRepository(repo: GitHubRepository): void;
8
+ /**
9
+ * Owner info structure for addRecentOwner
10
+ */
11
+ export interface OwnerInfo {
12
+ id: number;
13
+ login: string;
14
+ avatar_url?: string;
15
+ name?: string;
16
+ bio?: string;
17
+ type: 'User' | 'Organization';
18
+ public_repos?: number;
19
+ followers?: number;
20
+ }
21
+ /**
22
+ * Add an owner to the recent list
23
+ */
24
+ export declare function addRecentOwner(owner: OwnerInfo): void;
25
+ /**
26
+ * RecentRepositoriesPanel - A panel for displaying recently visited repositories and owners
27
+ *
28
+ * Features:
29
+ * - Persists visited repos and owners in localStorage
30
+ * - Shows owner avatar, repo name, description
31
+ * - Displays stars, forks, language, and last visited time
32
+ * - Filter by repositories or owners
33
+ * - Click to preview, double-click to open
34
+ * - Remove individual items or clear all history
35
+ */
36
+ export declare const RecentRepositoriesPanel: React.FC<PanelComponentProps & {
37
+ onNavigate?: (path: string) => void;
38
+ }>;
39
+ /**
40
+ * Panel metadata for registration
41
+ */
42
+ export declare const RecentRepositoriesPanelMetadata: {
43
+ id: string;
44
+ name: string;
45
+ description: string;
46
+ icon: string;
47
+ version: string;
48
+ slices: never[];
49
+ surfaces: string[];
50
+ };
51
+ //# sourceMappingURL=RecentRepositoriesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecentRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/RecentRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AAkGvF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CA8BhE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CA0BrD;AAypBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IACnE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAMA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;CAQ3C,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import type { PanelComponentProps } from '../types';
3
+ /**
4
+ * WelcomePanel - A landing panel with branding and repo search
5
+ *
6
+ * Features:
7
+ * - Brand introduction with tagline
8
+ * - Search input for owner/repo or GitHub URLs
9
+ * - Feature highlights (diagrams, chat, git insights)
10
+ * - Quick start links to popular repos
11
+ */
12
+ export declare const WelcomePanel: React.FC<PanelComponentProps & {
13
+ onNavigate?: (owner: string, repo: string) => void;
14
+ }>;
15
+ /**
16
+ * Panel metadata for registration
17
+ */
18
+ export declare const WelcomePanelMetadata: {
19
+ id: string;
20
+ name: string;
21
+ description: string;
22
+ icon: string;
23
+ version: string;
24
+ slices: never[];
25
+ surfaces: string[];
26
+ };
27
+ //# sourceMappingURL=WelcomePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAwZpD;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAM/G,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}