@paroicms/internal-link-plugin 0.17.0 → 0.18.0
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.
|
@@ -16,7 +16,7 @@ function he(e, t) {
|
|
|
16
16
|
cleanups: null,
|
|
17
17
|
context: r ? r.context : null,
|
|
18
18
|
owner: r
|
|
19
|
-
}, s = l ? e : () => e(() => A(() =>
|
|
19
|
+
}, s = l ? e : () => e(() => A(() => N(o)));
|
|
20
20
|
v = o, b = null;
|
|
21
21
|
try {
|
|
22
22
|
return T(s, !0);
|
|
@@ -36,17 +36,17 @@ function E(e, t) {
|
|
|
36
36
|
}
|
|
37
37
|
function C(e, t, n) {
|
|
38
38
|
const i = q(e, t, !1, S);
|
|
39
|
-
|
|
39
|
+
B(i);
|
|
40
40
|
}
|
|
41
41
|
function G(e, t, n) {
|
|
42
42
|
te = $e;
|
|
43
43
|
const i = q(e, t, !1, S);
|
|
44
|
-
i.user = !0, I ? I.push(i) :
|
|
44
|
+
i.user = !0, I ? I.push(i) : B(i);
|
|
45
45
|
}
|
|
46
46
|
function D(e, t, n) {
|
|
47
47
|
n = n ? Object.assign({}, R, n) : R;
|
|
48
48
|
const i = q(e, t, !0, 0);
|
|
49
|
-
return i.observers = null, i.observerSlots = null, i.comparator = n.equals || void 0,
|
|
49
|
+
return i.observers = null, i.observerSlots = null, i.comparator = n.equals || void 0, B(i), ie.bind(i);
|
|
50
50
|
}
|
|
51
51
|
function A(e) {
|
|
52
52
|
if (b === null) return e();
|
|
@@ -60,7 +60,7 @@ function A(e) {
|
|
|
60
60
|
}
|
|
61
61
|
function ie() {
|
|
62
62
|
if (this.sources && this.state)
|
|
63
|
-
if (this.state === S)
|
|
63
|
+
if (this.state === S) B(this);
|
|
64
64
|
else {
|
|
65
65
|
const e = y;
|
|
66
66
|
y = null, T(() => M(this), !1), y = e;
|
|
@@ -82,9 +82,9 @@ function le(e, t, n) {
|
|
|
82
82
|
throw y = [], new Error();
|
|
83
83
|
}, !1)), t;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function B(e) {
|
|
86
86
|
if (!e.fn) return;
|
|
87
|
-
|
|
87
|
+
N(e);
|
|
88
88
|
const t = K;
|
|
89
89
|
pe(e, e.value, t);
|
|
90
90
|
}
|
|
@@ -95,7 +95,7 @@ function pe(e, t, n) {
|
|
|
95
95
|
try {
|
|
96
96
|
i = e.fn(t);
|
|
97
97
|
} catch (o) {
|
|
98
|
-
return e.pure && (e.state = S, e.owned && e.owned.forEach(
|
|
98
|
+
return e.pure && (e.state = S, e.owned && e.owned.forEach(N), e.owned = null), e.updatedAt = n + 1, oe(o);
|
|
99
99
|
} finally {
|
|
100
100
|
b = r, v = l;
|
|
101
101
|
}
|
|
@@ -126,7 +126,7 @@ function j(e) {
|
|
|
126
126
|
e.state && t.push(e);
|
|
127
127
|
for (let n = t.length - 1; n >= 0; n--)
|
|
128
128
|
if (e = t[n], e.state === S)
|
|
129
|
-
|
|
129
|
+
B(e);
|
|
130
130
|
else if (e.state === V) {
|
|
131
131
|
const i = y;
|
|
132
132
|
y = null, T(() => M(e, t[0]), !1), y = i;
|
|
@@ -175,7 +175,7 @@ function se(e) {
|
|
|
175
175
|
n.state || (n.state = V, n.pure ? y.push(n) : I.push(n), n.observers && se(n));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function N(e) {
|
|
179
179
|
let t;
|
|
180
180
|
if (e.sources)
|
|
181
181
|
for (; e.sources.length; ) {
|
|
@@ -186,11 +186,11 @@ function x(e) {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
if (e.tOwned) {
|
|
189
|
-
for (t = e.tOwned.length - 1; t >= 0; t--)
|
|
189
|
+
for (t = e.tOwned.length - 1; t >= 0; t--) N(e.tOwned[t]);
|
|
190
190
|
delete e.tOwned;
|
|
191
191
|
}
|
|
192
192
|
if (e.owned) {
|
|
193
|
-
for (t = e.owned.length - 1; t >= 0; t--)
|
|
193
|
+
for (t = e.owned.length - 1; t >= 0; t--) N(e.owned[t]);
|
|
194
194
|
e.owned = null;
|
|
195
195
|
}
|
|
196
196
|
if (e.cleanups) {
|
|
@@ -207,7 +207,7 @@ function ke(e) {
|
|
|
207
207
|
function oe(e, t = v) {
|
|
208
208
|
throw ke(e);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function x(e, t) {
|
|
211
211
|
return A(() => e(t || {}));
|
|
212
212
|
}
|
|
213
213
|
const me = (e) => `Stale read from <${e}>.`;
|
|
@@ -436,13 +436,13 @@ const Ie = { insertLink: "Link einfügen", change: "Ändern", editor: { noResult
|
|
|
436
436
|
InternalLink: Se
|
|
437
437
|
}, De = { insertLink: "Insertar enlace", change: "Cambiar", editor: { noResult: "No se encontraron resultados", draft: "Borrador", published: "Publicado", sheduled: "Programado" }, dialog: { title: "Insertar un enlace interno", removeLink: "Eliminar enlace", changeLink: "Encontrar otro enlace", ok: "OK" } }, Ce = {
|
|
438
438
|
InternalLink: De
|
|
439
|
-
}, Ae = { insertLink: "Insérer un lien", change: "Modifier", editor: { noResult: "Aucun résultat trouvé", draft: "Brouillon", published: "Publié", sheduled: "Programmé" }, dialog: { title: "Insérer un lien interne", removeLink: "Supprimer le lien", changeLink: "Trouver un autre lien", ok: "OK" } },
|
|
439
|
+
}, Ae = { insertLink: "Insérer un lien", change: "Modifier", editor: { noResult: "Aucun résultat trouvé", draft: "Brouillon", published: "Publié", sheduled: "Programmé" }, dialog: { title: "Insérer un lien interne", removeLink: "Supprimer le lien", changeLink: "Trouver un autre lien", ok: "OK" } }, Ne = {
|
|
440
440
|
InternalLink: Ae
|
|
441
|
-
},
|
|
442
|
-
InternalLink:
|
|
441
|
+
}, xe = { insertLink: "Inserisci link", change: "Cambia", editor: { noResult: "Nessun risultato trovato", draft: "Bozza", published: "Pubblicato", sheduled: "Programmato" }, dialog: { title: "Inserisci un link interno", removeLink: "Rimuovi link", changeLink: "Trova un altro link", ok: "OK" } }, Be = {
|
|
442
|
+
InternalLink: xe
|
|
443
443
|
}, Te = { insertLink: "Inserir link", change: "Alterar", editor: { noResult: "Nenhum resultado encontrado", draft: "Rascunho", published: "Publicado", sheduled: "Agendado" }, dialog: { title: "Inserir um link interno", removeLink: "Remover link", changeLink: "Encontrar outro link", ok: "OK" } }, Oe = {
|
|
444
444
|
InternalLink: Te
|
|
445
|
-
}, Z = { en: Pe, fr:
|
|
445
|
+
}, Z = { en: Pe, fr: Ne, es: Ce, de: Ee, it: Be, pt: Oe };
|
|
446
446
|
function W(e) {
|
|
447
447
|
const t = D(() => {
|
|
448
448
|
const i = e(), l = i in Z ? i : "en";
|
|
@@ -474,7 +474,7 @@ function ue(e) {
|
|
|
474
474
|
}, $ = (f) => f && new Date(f).getTime() < Date.now();
|
|
475
475
|
return (() => {
|
|
476
476
|
var f = je(), g = f.firstChild, c = g.firstChild;
|
|
477
|
-
return g.addEventListener("submit", k), c.$$input = (d) => r(d.currentTarget.value), p(f,
|
|
477
|
+
return g.addEventListener("submit", k), c.$$input = (d) => r(d.currentTarget.value), p(f, x(X, {
|
|
478
478
|
when: o,
|
|
479
479
|
get children() {
|
|
480
480
|
var d = Re();
|
|
@@ -489,7 +489,7 @@ function ue(e) {
|
|
|
489
489
|
${u.ready ? $(u.publishDate) ? "published" : "sheduled" : "draft"}`)), h;
|
|
490
490
|
})())), d;
|
|
491
491
|
}
|
|
492
|
-
}), null), p(f,
|
|
492
|
+
}), null), p(f, x(X, {
|
|
493
493
|
get when() {
|
|
494
494
|
return !o() || o().length === 0;
|
|
495
495
|
},
|
|
@@ -546,7 +546,7 @@ function Xe({
|
|
|
546
546
|
const L = n(), O = r()?.typeName;
|
|
547
547
|
!L || !O || (g.close(), e.openDocumentEdition(L, O));
|
|
548
548
|
}, u;
|
|
549
|
-
})() :
|
|
549
|
+
})() : x(ue, {
|
|
550
550
|
service: e,
|
|
551
551
|
language: i,
|
|
552
552
|
value: n,
|
|
@@ -668,7 +668,7 @@ async function rt({
|
|
|
668
668
|
const h = e(), w = i()?.typeName;
|
|
669
669
|
!h || !w || ($.close(), n.openDocumentEdition(h, w));
|
|
670
670
|
}, c;
|
|
671
|
-
})() :
|
|
671
|
+
})() : x(ue, {
|
|
672
672
|
service: n,
|
|
673
673
|
language: t,
|
|
674
674
|
value: e,
|
|
@@ -733,7 +733,7 @@ function ct(e) {
|
|
|
733
733
|
return he((i) => {
|
|
734
734
|
const [l, r] = E(n ?? ""), [o, s] = E(e.language);
|
|
735
735
|
return {
|
|
736
|
-
element:
|
|
736
|
+
element: x(Xe, {
|
|
737
737
|
language: o,
|
|
738
738
|
value: l,
|
|
739
739
|
setValue: (a) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/internal-link-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Internal link plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@paroicms/public-server-lib": "0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@paroicms/public-admin-ui-lib": "0.
|
|
34
|
-
"@paroicms/public-anywhere-lib": "0.
|
|
35
|
-
"@paroicms/public-server-lib": "0.
|
|
36
|
-
"@paroicms/quill-editor-plugin": "1.
|
|
33
|
+
"@paroicms/public-admin-ui-lib": "0.27.0",
|
|
34
|
+
"@paroicms/public-anywhere-lib": "0.30.0",
|
|
35
|
+
"@paroicms/public-server-lib": "0.39.0",
|
|
36
|
+
"@paroicms/quill-editor-plugin": "1.38.0",
|
|
37
37
|
"@solid-primitives/i18n": "~2.2.1",
|
|
38
38
|
"@types/node": "~24.0.1",
|
|
39
39
|
"primeicons": "^7.0.0",
|