@industry-theme/github-panels 0.4.3 → 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":"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;AA4zBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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"}
@@ -53914,7 +53914,7 @@ const ProfilePanelContent = ({
53914
53914
  panelId = DEFAULT_PANEL_ID,
53915
53915
  extensions
53916
53916
  }) => {
53917
- var _a, _b, _c, _d, _e2, _f, _g;
53917
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i;
53918
53918
  const { theme: theme2 } = useTheme();
53919
53919
  const availableViews = useMemo(() => {
53920
53920
  if (profileType === "user") {
@@ -53922,33 +53922,35 @@ const ProfilePanelContent = ({
53922
53922
  }
53923
53923
  return ["collections", "repositories"];
53924
53924
  }, [profileType]);
53925
- const [activeView, setActiveView] = useState("repositories");
53925
+ const [activeView, setActiveView] = useState(
53926
+ ((_b = (_a = context.profile) == null ? void 0 : _a.data) == null ? void 0 : _b.currentView) ?? "repositories"
53927
+ );
53926
53928
  const [searchQuery, setSearchQuery] = useState("");
53927
53929
  const { profile: profileSlice } = context;
53928
- const profile = ((_a = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a.profile) ?? null;
53930
+ const profile = ((_c = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _c.profile) ?? null;
53929
53931
  const collections = useMemo(
53930
53932
  () => {
53931
53933
  var _a2;
53932
53934
  return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.collections) || [];
53933
53935
  },
53934
- [(_b = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _b.collections]
53936
+ [(_d = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _d.collections]
53935
53937
  );
53936
53938
  const repositories = useMemo(
53937
53939
  () => {
53938
53940
  var _a2;
53939
53941
  return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.repositories) || [];
53940
53942
  },
53941
- [(_c = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _c.repositories]
53943
+ [(_e2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _e2.repositories]
53942
53944
  );
53943
53945
  const starredRepositories = useMemo(
53944
53946
  () => {
53945
53947
  var _a2;
53946
53948
  return ((_a2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _a2.starredRepositories) || [];
53947
53949
  },
53948
- [(_d = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _d.starredRepositories]
53950
+ [(_f = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _f.starredRepositories]
53949
53951
  );
53950
- const selectedCollectionId = (_e2 = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _e2.selectedCollectionId;
53951
- const selectedRepositoryId = (_f = profileSlice == null ? void 0 : profileSlice.data) == null ? void 0 : _f.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;
53952
53954
  const loading = (profileSlice == null ? void 0 : profileSlice.loading) ?? false;
53953
53955
  const filteredRepositories = useMemo(() => {
53954
53956
  const repos = activeView === "starred" ? starredRepositories : repositories;
@@ -54249,7 +54251,7 @@ const ProfilePanelContent = ({
54249
54251
  }
54250
54252
  }
54251
54253
  ),
54252
- (_g = extensions == null ? void 0 : extensions.renderHeaderExtra) == null ? void 0 : _g.call(extensions, profile)
54254
+ (_i = extensions == null ? void 0 : extensions.renderHeaderExtra) == null ? void 0 : _i.call(extensions, profile)
54253
54255
  ] }),
54254
54256
  /* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
54255
54257
  /* @__PURE__ */ jsx(