@blocklet/labels 1.6.187 → 1.6.189

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.
@@ -579,7 +579,7 @@ const useLabels = ({ loading, data: data2, createLabel: createLabelAPI }) => {
579
579
  return siblings;
580
580
  };
581
581
  const getRecommended = (id) => {
582
- const related = getRelatedLabels(id);
582
+ const related = id ? getRelatedLabels(id) : [];
583
583
  const set = /* @__PURE__ */ new Set([...related.map((x2) => x2.data.id), id]);
584
584
  return [...related, ...popularLabels.filter((x2) => !set.has(x2.data.id))].filter((x2) => !!counts[x2.data.id]);
585
585
  };
@@ -13594,7 +13594,7 @@ function WebviewLoginItem({
13594
13594
  return link.href.replace(/^https?:\/\//, "abt://");
13595
13595
  }, [tokenKey, tokenState.token]);
13596
13596
  const handleConnect = useMemoizedFn(() => {
13597
- import("./index-gwsJxz2s.mjs").then((n2) => n2.i).then((dsbridge) => {
13597
+ import("./index-7OIpnhiM.mjs").then((n2) => n2.i).then((dsbridge) => {
13598
13598
  if (!dsbridge.call) {
13599
13599
  dsbridge = dsbridge.default;
13600
13600
  }
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-LED75_5N.mjs";
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-3Crpny-A.mjs";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G, j, b, a, L, d, k, h, i, f, u, e } from "./index-LED75_5N.mjs";
1
+ import { G, j, b, a, L, d, k, h, i, f, u, e } from "./index-3Crpny-A.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "@mui/icons-material";
package/dist/index.umd.js CHANGED
@@ -545,7 +545,7 @@ var __publicField = (obj, key, value) => {
545
545
  return siblings;
546
546
  };
547
547
  const getRecommended = (id) => {
548
- const related = getRelatedLabels(id);
548
+ const related = id ? getRelatedLabels(id) : [];
549
549
  const set = /* @__PURE__ */ new Set([...related.map((x2) => x2.data.id), id]);
550
550
  return [...related, ...popularLabels.filter((x2) => !set.has(x2.data.id))].filter((x2) => !!counts[x2.data.id]);
551
551
  };
@@ -27,7 +27,7 @@ export declare const LabelsContainer: import("unstated-next").Container<{
27
27
  }): any;
28
28
  getName(locale: string): string;
29
29
  }>[];
30
- getRecommended: (id: string) => import("./tree").TreeNode<{
30
+ getRecommended: (id?: string) => import("./tree").TreeNode<{
31
31
  id: string;
32
32
  name: string;
33
33
  icon?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "1.6.187",
3
+ "version": "1.6.189",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -28,7 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@blocklet/translation-input": "1.6.187",
31
+ "@blocklet/translation-input": "1.6.189",
32
32
  "@emotion/css": "^11.10.5",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
@@ -82,5 +82,5 @@
82
82
  "resolutions": {
83
83
  "react": "^18.2.0"
84
84
  },
85
- "gitHead": "ef33879af45606451039ad019ceed367851d4731"
85
+ "gitHead": "9dc3cda97f297d5f4818c0b7a7e0daa1e588d1dd"
86
86
  }