@blocklet/labels 1.6.191 → 1.6.193

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,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-H_ZU4NCD.mjs";
1
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-VI76Nvwo.mjs";
2
2
  function _mergeNamespaces(n, m) {
3
3
  for (var i = 0; i < m.length; i++) {
4
4
  const e = m[i];
@@ -580,7 +580,7 @@ const useLabels = ({ loading, data: data2, createLabel: createLabelAPI }) => {
580
580
  };
581
581
  const getRecommended = (id) => {
582
582
  const related = id ? getRelatedLabels(id) : [];
583
- const set = /* @__PURE__ */ new Set([...related.map((x2) => x2.data.id), id]);
583
+ const set = new Set([...related.map((x2) => x2.data.id), id].filter(Boolean));
584
584
  return [...related, ...popularLabels.filter((x2) => !set.has(x2.data.id))].filter((x2) => !!counts[x2.data.id]);
585
585
  };
586
586
  const createLabel = async (name2) => {
@@ -13595,7 +13595,7 @@ function WebviewLoginItem({
13595
13595
  return link.href.replace(/^https?:\/\//, "abt://");
13596
13596
  }, [tokenKey, tokenState.token]);
13597
13597
  const handleConnect = useMemoizedFn(() => {
13598
- import("./index-sDka_q8L.mjs").then((n2) => n2.i).then((dsbridge) => {
13598
+ import("./index--R2g5u3O.mjs").then((n2) => n2.i).then((dsbridge) => {
13599
13599
  if (!dsbridge.call) {
13600
13600
  dsbridge = dsbridge.default;
13601
13601
  }
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-H_ZU4NCD.mjs";
1
+ import { G, j, b, a, L, d, k, h, i, f, u, e } from "./index-VI76Nvwo.mjs";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
4
  import "@mui/icons-material";
package/dist/index.umd.js CHANGED
@@ -546,7 +546,7 @@ var __publicField = (obj, key, value) => {
546
546
  };
547
547
  const getRecommended = (id) => {
548
548
  const related = id ? getRelatedLabels(id) : [];
549
- const set = /* @__PURE__ */ new Set([...related.map((x2) => x2.data.id), id]);
549
+ const set = new Set([...related.map((x2) => x2.data.id), id].filter(Boolean));
550
550
  return [...related, ...popularLabels.filter((x2) => !set.has(x2.data.id))].filter((x2) => !!counts[x2.data.id]);
551
551
  };
552
552
  const createLabel = async (name2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/labels",
3
- "version": "1.6.191",
3
+ "version": "1.6.193",
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.191",
31
+ "@blocklet/translation-input": "1.6.193",
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": "e0bfe0bdc7ce8d39f4f3684f7170075025bbcb0a"
85
+ "gitHead": "9037f9c4d84c8117cdbfb44ec701f86a66fb65bb"
86
86
  }