@industry-theme/github-panels 0.4.2 → 0.4.4
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":"GitHubRepositoryCard.d.ts","sourceRoot":"","sources":["../../../src/components/shared/GitHubRepositoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAcrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D;;;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;AAED,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;IAC5C,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,kEAAkE;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"GitHubRepositoryCard.d.ts","sourceRoot":"","sources":["../../../src/components/shared/GitHubRepositoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAcrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAG3D;;;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;AAED,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;IAC5C,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,kEAAkE;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyYpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/ProfilePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,KAAK,EAIV,sBAAsB,EAEtB,WAAW,EACZ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/ProfilePanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,KAAK,EAIV,sBAAsB,EAEtB,WAAW,EACZ,MAAM,SAAS,CAAC;AA8zBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CA0CvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAGF,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -1619,6 +1619,7 @@ const GitHubRepositoryCard = ({
|
|
|
1619
1619
|
isInCollection = false,
|
|
1620
1620
|
collectionName
|
|
1621
1621
|
}) => {
|
|
1622
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
1622
1623
|
const { theme: theme2 } = useTheme();
|
|
1623
1624
|
const [isHovered, setIsHovered] = useState(false);
|
|
1624
1625
|
const isCloned = Boolean(localRepo);
|
|
@@ -1713,8 +1714,8 @@ const GitHubRepositoryCard = ({
|
|
|
1713
1714
|
/* @__PURE__ */ jsx(
|
|
1714
1715
|
RepositoryAvatar,
|
|
1715
1716
|
{
|
|
1716
|
-
owner: repository.owner.login,
|
|
1717
|
-
customAvatarUrl: repository.owner.avatar_url,
|
|
1717
|
+
owner: repository.fork && ((_b = (_a = repository.parent) == null ? void 0 : _a.owner) == null ? void 0 : _b.login) ? repository.parent.owner.login : repository.owner.login,
|
|
1718
|
+
customAvatarUrl: repository.fork && ((_d = (_c = repository.parent) == null ? void 0 : _c.owner) == null ? void 0 : _d.avatar_url) ? repository.parent.owner.avatar_url : repository.owner.avatar_url,
|
|
1718
1719
|
size: 40
|
|
1719
1720
|
}
|
|
1720
1721
|
),
|
|
@@ -1771,7 +1772,7 @@ const GitHubRepositoryCard = ({
|
|
|
1771
1772
|
color: theme2.colors.textSecondary,
|
|
1772
1773
|
marginBottom: "4px"
|
|
1773
1774
|
},
|
|
1774
|
-
children: repository.owner.login
|
|
1775
|
+
children: repository.fork && ((_f = (_e2 = repository.parent) == null ? void 0 : _e2.owner) == null ? void 0 : _f.login) ? repository.parent.owner.login : repository.owner.login
|
|
1775
1776
|
}
|
|
1776
1777
|
),
|
|
1777
1778
|
repository.description && /* @__PURE__ */ jsx(
|
|
@@ -53913,7 +53914,7 @@ const ProfilePanelContent = ({
|
|
|
53913
53914
|
panelId = DEFAULT_PANEL_ID,
|
|
53914
53915
|
extensions
|
|
53915
53916
|
}) => {
|
|
53916
|
-
var _a, _b, _c, _d, _e2, _f, _g;
|
|
53917
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i;
|
|
53917
53918
|
const { theme: theme2 } = useTheme();
|
|
53918
53919
|
const availableViews = useMemo(() => {
|
|
53919
53920
|
if (profileType === "user") {
|
|
@@ -53921,33 +53922,35 @@ const ProfilePanelContent = ({
|
|
|
53921
53922
|
}
|
|
53922
53923
|
return ["collections", "repositories"];
|
|
53923
53924
|
}, [profileType]);
|
|
53924
|
-
const [activeView, setActiveView] = useState(
|
|
53925
|
+
const [activeView, setActiveView] = useState(
|
|
53926
|
+
((_b = (_a = context.profile) == null ? void 0 : _a.data) == null ? void 0 : _b.currentView) ?? "repositories"
|
|
53927
|
+
);
|
|
53925
53928
|
const [searchQuery, setSearchQuery] = useState("");
|
|
53926
53929
|
const { profile: profileSlice } = context;
|
|
53927
|
-
const profile = ((
|
|
53930
|
+
const profile = ((_c = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _c.profile) ?? null;
|
|
53928
53931
|
const collections = useMemo(
|
|
53929
53932
|
() => {
|
|
53930
53933
|
var _a2;
|
|
53931
53934
|
return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.collections) || [];
|
|
53932
53935
|
},
|
|
53933
|
-
[(
|
|
53936
|
+
[(_d = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _d.collections]
|
|
53934
53937
|
);
|
|
53935
53938
|
const repositories = useMemo(
|
|
53936
53939
|
() => {
|
|
53937
53940
|
var _a2;
|
|
53938
53941
|
return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.repositories) || [];
|
|
53939
53942
|
},
|
|
53940
|
-
[(
|
|
53943
|
+
[(_e2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _e2.repositories]
|
|
53941
53944
|
);
|
|
53942
53945
|
const starredRepositories = useMemo(
|
|
53943
53946
|
() => {
|
|
53944
53947
|
var _a2;
|
|
53945
53948
|
return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.starredRepositories) || [];
|
|
53946
53949
|
},
|
|
53947
|
-
[(
|
|
53950
|
+
[(_f = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _f.starredRepositories]
|
|
53948
53951
|
);
|
|
53949
|
-
const selectedCollectionId = (
|
|
53950
|
-
const selectedRepositoryId = (
|
|
53952
|
+
const selectedCollectionId = (_g = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _g.selectedCollectionId;
|
|
53953
|
+
const selectedRepositoryId = (_h = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _h.selectedRepositoryId;
|
|
53951
53954
|
const loading = (profileSlice == null ? void 0 : profileSlice.loading) ?? false;
|
|
53952
53955
|
const filteredRepositories = useMemo(() => {
|
|
53953
53956
|
const repos = activeView === "starred" ? starredRepositories : repositories;
|
|
@@ -54248,7 +54251,7 @@ const ProfilePanelContent = ({
|
|
|
54248
54251
|
}
|
|
54249
54252
|
}
|
|
54250
54253
|
),
|
|
54251
|
-
(
|
|
54254
|
+
(_i = extensions == null ? void 0 : extensions.renderHeaderExtra) == null ? void 0 : _i.call(extensions, profile)
|
|
54252
54255
|
] }),
|
|
54253
54256
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
54254
54257
|
/* @__PURE__ */ jsx(
|