@paroicms/internal-link-plugin 0.23.0 → 0.23.1
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.
|
@@ -415,7 +415,7 @@ function Le(e) {
|
|
|
415
415
|
ae(i) && ce(t, i, n);
|
|
416
416
|
return t;
|
|
417
417
|
}
|
|
418
|
-
const we = (e) => e;
|
|
418
|
+
const we = ((e) => e);
|
|
419
419
|
function _e(e, t = we) {
|
|
420
420
|
return (n, ...i) => {
|
|
421
421
|
n[0] === "." && (n = n.slice(1));
|
|
@@ -466,7 +466,7 @@ function ue(e) {
|
|
|
466
466
|
r(g?.title ?? ""), await k();
|
|
467
467
|
});
|
|
468
468
|
const k = async (f) => {
|
|
469
|
-
if (f?.preventDefault(), l().length <
|
|
469
|
+
if (f?.preventDefault(), l().length < 2) return;
|
|
470
470
|
const g = await i.searchDocuments({
|
|
471
471
|
searchString: l()
|
|
472
472
|
});
|
|
@@ -702,15 +702,12 @@ function ot(e) {
|
|
|
702
702
|
getLanguage: n.getLanguage,
|
|
703
703
|
service: e
|
|
704
704
|
});
|
|
705
|
-
if (
|
|
706
|
-
|
|
707
|
-
if (i === "remove") return {
|
|
705
|
+
if (i)
|
|
706
|
+
return i === "remove" ? {
|
|
708
707
|
documentId: void 0
|
|
708
|
+
} : {
|
|
709
|
+
documentId: i
|
|
709
710
|
};
|
|
710
|
-
}
|
|
711
|
-
return {
|
|
712
|
-
documentId: i
|
|
713
|
-
};
|
|
714
711
|
}
|
|
715
712
|
};
|
|
716
713
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/internal-link-plugin",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Internal link plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"build:admin-ui:watch": "(cd admin-ui-plugin && npm run build:watch)"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@paroicms/script-lib": "0.3.
|
|
28
|
-
"arktype": "~2.1.
|
|
27
|
+
"@paroicms/script-lib": "0.3.3",
|
|
28
|
+
"arktype": "~2.1.23"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@paroicms/public-anywhere-lib": "0",
|
|
32
32
|
"@paroicms/public-server-lib": "0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@paroicms/public-anywhere-lib": "0.37.
|
|
36
|
-
"@paroicms/public-server-lib": "0.47.
|
|
37
|
-
"@types/node": "~24.
|
|
35
|
+
"@paroicms/public-anywhere-lib": "0.37.1",
|
|
36
|
+
"@paroicms/public-server-lib": "0.47.1",
|
|
37
|
+
"@types/node": "~24.8.1",
|
|
38
38
|
"rimraf": "~6.0.1",
|
|
39
|
-
"typescript": "~5.9.
|
|
39
|
+
"typescript": "~5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"type": "module",
|
|
42
42
|
"main": "backend/dist/index.js",
|