@industry-theme/alexandria-panels 0.2.0 → 0.3.0
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.
|
@@ -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;AAElB,OAAO,KAAK,EACV,SAAS,EAEV,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAIvC;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,EAsCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,gBAAgB,EA6F3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAAgB,EA6DxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,
|
|
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,EACV,SAAS,EAEV,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAIvC;;G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AC;;;CA0e7D,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"}
|
|
@@ -1,52 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared GitHub API Types
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Re-exports types from @industry-theme/github-panels to avoid duplication.
|
|
5
|
+
* See: https://github.com/principal-ade/industry-themed-github-panels
|
|
5
6
|
*/
|
|
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
|
-
/** Parent repository info (for forks) */
|
|
28
|
-
parent?: {
|
|
29
|
-
full_name: string;
|
|
30
|
-
owner: {
|
|
31
|
-
login: string;
|
|
32
|
-
avatar_url: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
/** License SPDX identifier (e.g., "MIT", "Apache-2.0") */
|
|
36
|
-
license?: string | null;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* GitHub organization data from the API
|
|
40
|
-
*/
|
|
41
|
-
export interface GitHubOrganization {
|
|
42
|
-
login: string;
|
|
43
|
-
id: number;
|
|
44
|
-
avatar_url: string;
|
|
45
|
-
description: string | null;
|
|
46
|
-
}
|
|
7
|
+
export type { GitHubRepository, GitHubOrganization, } from '@industry-theme/github-panels';
|
|
47
8
|
/**
|
|
48
9
|
* Reference to a locally cloned repository
|
|
49
10
|
* Used to match GitHub repos with local Alexandria entries
|
|
11
|
+
*
|
|
12
|
+
* Note: This type is Alexandria-specific and not exported from github-panels
|
|
50
13
|
*/
|
|
51
14
|
export interface LocalRepositoryReference {
|
|
52
15
|
/** Local file system path */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-types.d.ts","sourceRoot":"","sources":["../../../src/panels/shared/github-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"github-types.d.ts","sourceRoot":"","sources":["../../../src/panels/shared/github-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;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"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -650,9 +650,9 @@ function useNodesContext() {
|
|
|
650
650
|
throw new Error("Provide a NodesContext");
|
|
651
651
|
return value;
|
|
652
652
|
}
|
|
653
|
-
const DndContext$
|
|
653
|
+
const DndContext$2 = createContext(null);
|
|
654
654
|
function useDndContext() {
|
|
655
|
-
const value = useContext(DndContext$
|
|
655
|
+
const value = useContext(DndContext$2);
|
|
656
656
|
if (value === null)
|
|
657
657
|
throw new Error("Provide a DnDContext");
|
|
658
658
|
return value;
|
|
@@ -1895,7 +1895,7 @@ const ListInnerElement = forwardRef(function InnerElement(_a, ref) {
|
|
|
1895
1895
|
const paddingBottom = (_e = (_d = tree.props.padding) !== null && _d !== void 0 ? _d : tree.props.paddingBottom) !== null && _e !== void 0 ? _e : 0;
|
|
1896
1896
|
return jsx("div", Object.assign({ ref, style: Object.assign(Object.assign({}, style), { height: `${parseFloat(style.height) + paddingTop + paddingBottom}px` }) }, rest));
|
|
1897
1897
|
});
|
|
1898
|
-
var DndContext = createContext({
|
|
1898
|
+
var DndContext$1 = createContext({
|
|
1899
1899
|
dragDropManager: void 0
|
|
1900
1900
|
});
|
|
1901
1901
|
var HandlerRole;
|
|
@@ -3604,7 +3604,7 @@ var DndProvider = memo(function DndProvider2(_ref) {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
}
|
|
3606
3606
|
}, []);
|
|
3607
|
-
return jsx(DndContext.Provider, Object.assign({
|
|
3607
|
+
return jsx(DndContext$1.Provider, Object.assign({
|
|
3608
3608
|
value: manager
|
|
3609
3609
|
}, {
|
|
3610
3610
|
children
|
|
@@ -4507,7 +4507,7 @@ function useDragSource(spec, monitor, connector) {
|
|
|
4507
4507
|
return handler;
|
|
4508
4508
|
}
|
|
4509
4509
|
function useDragDropManager() {
|
|
4510
|
-
var _useContext = useContext(DndContext), dragDropManager = _useContext.dragDropManager;
|
|
4510
|
+
var _useContext = useContext(DndContext$1), dragDropManager = _useContext.dragDropManager;
|
|
4511
4511
|
invariant(dragDropManager != null, "Expected drag drop context");
|
|
4512
4512
|
return dragDropManager;
|
|
4513
4513
|
}
|
|
@@ -7525,7 +7525,7 @@ function TreeProvider({ treeProps, imperativeHandle, children }) {
|
|
|
7525
7525
|
store.current.dispatch(actions$2.clear(true));
|
|
7526
7526
|
}
|
|
7527
7527
|
}, [api.props.searchTerm]);
|
|
7528
|
-
return jsx(TreeApiContext.Provider, { value: api, children: jsx(DataUpdatesContext.Provider, { value: updateCount.current, children: jsx(NodesContext.Provider, { value: state.nodes, children: jsx(DndContext$
|
|
7528
|
+
return jsx(TreeApiContext.Provider, { value: api, children: jsx(DataUpdatesContext.Provider, { value: updateCount.current, children: jsx(NodesContext.Provider, { value: state.nodes, children: jsx(DndContext$2.Provider, { value: state.dnd, children: jsx(DndProvider, Object.assign({ backend: HTML5Backend, options: { rootElement: api.props.dndRootElement || void 0 } }, treeProps.dndManager && { manager: treeProps.dndManager }, { children })) }) }) }) });
|
|
7529
7529
|
}
|
|
7530
7530
|
function useOuterDrop() {
|
|
7531
7531
|
const tree = useTreeApi();
|
|
@@ -7747,6 +7747,13 @@ var useContainerHeight = (initialHeight = 600) => {
|
|
|
7747
7747
|
}, []);
|
|
7748
7748
|
return [containerRef, containerHeight];
|
|
7749
7749
|
};
|
|
7750
|
+
var DndContext = createContext({
|
|
7751
|
+
dragDropManager: void 0
|
|
7752
|
+
});
|
|
7753
|
+
var useParentDndManager = () => {
|
|
7754
|
+
const context = useContext(DndContext);
|
|
7755
|
+
return context.dragDropManager;
|
|
7756
|
+
};
|
|
7750
7757
|
var PANEL_DATA_MIME_TYPE$1 = "application/x-panel-data";
|
|
7751
7758
|
function TreeNode({
|
|
7752
7759
|
node,
|
|
@@ -7970,6 +7977,7 @@ var RepositoryTreeCore = ({
|
|
|
7970
7977
|
verticalNodePadding = "6px",
|
|
7971
7978
|
verticalPadding = "8px"
|
|
7972
7979
|
}) => {
|
|
7980
|
+
const parentDndManager = useParentDndManager();
|
|
7973
7981
|
const rowHeight = useMemo(() => {
|
|
7974
7982
|
const paddingValue = parseFloat(verticalNodePadding);
|
|
7975
7983
|
const contentLineHeight = 20;
|
|
@@ -8055,7 +8063,8 @@ var RepositoryTreeCore = ({
|
|
|
8055
8063
|
...selection !== void 0 && { selection },
|
|
8056
8064
|
width: "100%",
|
|
8057
8065
|
height: containerHeight,
|
|
8058
|
-
rowHeight
|
|
8066
|
+
rowHeight,
|
|
8067
|
+
dndManager: parentDndManager
|
|
8059
8068
|
}, NodeRenderer));
|
|
8060
8069
|
};
|
|
8061
8070
|
React2.createContext(null);
|