@blocklet/labels 1.6.191 → 1.6.192
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-
|
|
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 =
|
|
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
|
|
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
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 =
|
|
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.
|
|
3
|
+
"version": "1.6.192",
|
|
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.
|
|
31
|
+
"@blocklet/translation-input": "1.6.192",
|
|
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": "
|
|
85
|
+
"gitHead": "3c34fa4bd4f854452af6a5d9c434dd4774ed7381"
|
|
86
86
|
}
|