@industry-theme/github-panels 0.1.34 → 0.1.36
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 +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/GitHubIssuesPanel.d.ts.map +1 -1
- package/dist/panels/GitHubSearchPanel.stories.d.ts +35 -0
- package/dist/panels/GitHubSearchPanel.stories.d.ts.map +1 -0
- package/dist/panels/OwnerRepositoriesPanel.d.ts +11 -6
- package/dist/panels/OwnerRepositoriesPanel.d.ts.map +1 -1
- package/dist/panels/OwnerRepositoriesPanel.stories.d.ts +56 -0
- package/dist/panels/OwnerRepositoriesPanel.stories.d.ts.map +1 -0
- package/dist/panels/RecentRepositoriesPanel.stories.d.ts +41 -0
- package/dist/panels/RecentRepositoriesPanel.stories.d.ts.map +1 -0
- package/dist/panels.bundle.js +134 -803
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +1 -1
- package/dist/panels/WelcomePanel.d.ts +0 -62
- package/dist/panels/WelcomePanel.d.ts.map +0 -1
- package/dist/panels/WelcomePanel.stories.d.ts +0 -61
- package/dist/panels/WelcomePanel.stories.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export { GitHubIssuesPanel } from './panels/GitHubIssuesPanel';
|
|
|
21
21
|
export { OwnerRepositoriesPanel } from './panels/OwnerRepositoriesPanel';
|
|
22
22
|
export { RecentRepositoriesPanel, addRecentRepository, addRecentOwner } from './panels/RecentRepositoriesPanel';
|
|
23
23
|
export type { OwnerInfo } from './panels/RecentRepositoriesPanel';
|
|
24
|
-
export { WelcomePanel } from './panels/WelcomePanel';
|
|
25
|
-
export type { WelcomePanelProps, HighlightedProject, FeaturedOrganization, CuratedCollection } from './panels/WelcomePanel';
|
|
26
24
|
export type { GitHubOwner, GitHubRepository, GitHubOrganization, GitHubRepositoriesSliceData, RepositorySelectedEventPayload, RepositoryPreviewEventPayload, GitHubPanelEventType, GitHubIssue, GitHubIssueLabel, GitHubIssueUser, GitHubIssuesSliceData, IssueSelectedEventPayload, } from './types/github';
|
|
27
25
|
export { githubTools, githubToolsMetadata, listRepositoriesTool, selectRepositoryTool, previewRepositoryTool, searchRepositoriesTool, openRepositorySwitcherTool, requestGitHubLoginTool, listIssuesTool, refreshIssuesTool, } from './tools';
|
|
28
26
|
//# 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,EAAgC,MAAM,SAAS,CAAC;AAG7E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAsFnC,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;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAChH,YAAY,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitHubIssuesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"GitHubIssuesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA8/BpD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
3
|
+
/**
|
|
4
|
+
* GitHubSearchPanel allows users to search for repositories on GitHub
|
|
5
|
+
* with real-time debounced search and preview functionality.
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: React.FC<import("@principal-ade/panel-framework-core").PanelComponentProps>;
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
tags: string[];
|
|
19
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
20
|
+
context: import("@principal-ade/panel-framework-core").PanelContextValue;
|
|
21
|
+
actions: import("@principal-ade/panel-framework-core").PanelActions;
|
|
22
|
+
events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
|
|
23
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
type Story = StoryObj<typeof meta>;
|
|
27
|
+
/**
|
|
28
|
+
* Default empty state - ready to search
|
|
29
|
+
*/
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
/**
|
|
32
|
+
* Interactive with event logging
|
|
33
|
+
*/
|
|
34
|
+
export declare const Interactive: Story;
|
|
35
|
+
//# sourceMappingURL=GitHubSearchPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitHubSearchPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubSearchPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8J5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CA8BgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KA4BzB,CAAC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PanelComponentProps } from '../types';
|
|
3
|
+
export interface OwnerRepositoriesPanelProps extends PanelComponentProps {
|
|
4
|
+
owner?: string;
|
|
5
|
+
selectedRepository?: string;
|
|
6
|
+
}
|
|
3
7
|
/**
|
|
4
8
|
* OwnerRepositoriesPanel - A panel for browsing a GitHub user or organization's repositories
|
|
5
9
|
*
|
|
10
|
+
* Props:
|
|
11
|
+
* - owner: GitHub username or organization name
|
|
12
|
+
* - selectedRepository: Full name of the selected repo (e.g., "owner/repo")
|
|
13
|
+
*
|
|
6
14
|
* Features:
|
|
7
15
|
* - Shows repositories for a user/org (including private if authenticated)
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* - Filter by programming language
|
|
16
|
+
* - Toggle between name (A-Z) and recently updated sorting
|
|
17
|
+
* - Syncs selection with selectedRepository prop and repository:preview events
|
|
11
18
|
* - Click to preview README, double-click to open
|
|
12
19
|
*
|
|
13
20
|
* Required data slice: 'owner-repositories' (OwnerRepositoriesSliceData)
|
|
@@ -18,9 +25,7 @@ import type { PanelComponentProps } from '../types';
|
|
|
18
25
|
* - 'repository:preview' - When a repo is clicked
|
|
19
26
|
* - 'repository:selected' - When a repo is double-clicked
|
|
20
27
|
*/
|
|
21
|
-
export declare const OwnerRepositoriesPanel: React.FC<
|
|
22
|
-
owner?: string;
|
|
23
|
-
}>;
|
|
28
|
+
export declare const OwnerRepositoriesPanel: React.FC<OwnerRepositoriesPanelProps>;
|
|
24
29
|
/**
|
|
25
30
|
* Panel metadata for registration
|
|
26
31
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAseD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAExE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
/**
|
|
3
|
+
* OwnerRepositoriesPanel displays repositories for a GitHub user or organization
|
|
4
|
+
* with sorting, filtering, and preview functionality.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: import("react").FC<import("./OwnerRepositoriesPanel").OwnerRepositoriesPanelProps>;
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
tags: string[];
|
|
18
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
19
|
+
owner?: string | undefined;
|
|
20
|
+
selectedRepository?: string | undefined;
|
|
21
|
+
context: import("@principal-ade/panel-framework-core").PanelContextValue;
|
|
22
|
+
actions: import("@principal-ade/panel-framework-core").PanelActions;
|
|
23
|
+
events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
|
|
24
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
25
|
+
};
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof meta>;
|
|
28
|
+
/**
|
|
29
|
+
* Default state with organization repositories
|
|
30
|
+
*/
|
|
31
|
+
export declare const Default: Story;
|
|
32
|
+
/**
|
|
33
|
+
* User profile with repositories
|
|
34
|
+
*/
|
|
35
|
+
export declare const UserProfile: Story;
|
|
36
|
+
/**
|
|
37
|
+
* Loading state while fetching repositories
|
|
38
|
+
*/
|
|
39
|
+
export declare const Loading: Story;
|
|
40
|
+
/**
|
|
41
|
+
* Error state - failed to load repositories
|
|
42
|
+
*/
|
|
43
|
+
export declare const ErrorState: Story;
|
|
44
|
+
/**
|
|
45
|
+
* Empty state - no repositories
|
|
46
|
+
*/
|
|
47
|
+
export declare const EmptyRepositories: Story;
|
|
48
|
+
/**
|
|
49
|
+
* Many repositories - tests scrolling
|
|
50
|
+
*/
|
|
51
|
+
export declare const ManyRepositories: Story;
|
|
52
|
+
/**
|
|
53
|
+
* Interactive with event logging
|
|
54
|
+
*/
|
|
55
|
+
export declare const Interactive: Story;
|
|
56
|
+
//# sourceMappingURL=OwnerRepositoriesPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OwnerRepositoriesPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA2I5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAmCqC,CAAC;AAEhD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmDnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAqB9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAgCzB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
/**
|
|
3
|
+
* RecentRepositoriesPanel displays recently visited repositories and owners
|
|
4
|
+
* with filtering, navigation, and history management.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: import("react").FC<import("@principal-ade/panel-framework-core").PanelComponentProps & {
|
|
9
|
+
onNavigate?: (path: string) => void;
|
|
10
|
+
}>;
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: string;
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
21
|
+
context: import("@principal-ade/panel-framework-core").PanelContextValue;
|
|
22
|
+
actions: import("@principal-ade/panel-framework-core").PanelActions;
|
|
23
|
+
events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
|
|
24
|
+
onNavigate?: ((path: string) => void) | undefined;
|
|
25
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
/**
|
|
30
|
+
* Default state - shows items from localStorage (may be empty)
|
|
31
|
+
*/
|
|
32
|
+
export declare const Default: Story;
|
|
33
|
+
/**
|
|
34
|
+
* Interactive with event logging
|
|
35
|
+
*/
|
|
36
|
+
export declare const Interactive: Story;
|
|
37
|
+
/**
|
|
38
|
+
* With navigation callback
|
|
39
|
+
*/
|
|
40
|
+
export declare const WithNavigate: Story;
|
|
41
|
+
//# sourceMappingURL=RecentRepositoriesPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecentRepositoriesPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/RecentRepositoriesPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAS5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAiCsC,CAAC;AAEjD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAmCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAC"}
|