magic-editor-x 2.0.0 → 2.1.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.
- package/CHANGELOG.md +54 -0
- package/README.md +154 -68
- package/dist/admin/{ConfigurationPage-DvAifELO.mjs → ConfigurationPage-CK2AbfGW.mjs} +126 -7
- package/dist/admin/{ConfigurationPage-B1uCIE3J.js → ConfigurationPage-CzsT_dO_.js} +125 -4
- package/dist/admin/{CustomBlocksPage-6-OQwpXQ.mjs → CustomBlocksPage-B2A8S5MV.mjs} +4 -4
- package/dist/admin/{CustomBlocksPage-6eWCOreU.js → CustomBlocksPage-CvLrsBds.js} +4 -4
- package/dist/admin/{EditorField-ThSoOCPm.mjs → EditorField-7YCdXx-v.mjs} +2019 -661
- package/dist/admin/{EditorField-DocyD2Q3.js → EditorField-BdBCW15Q.js} +2015 -657
- package/dist/admin/{api-B-RsxJCs.js → api-CmccMxlN.js} +2 -0
- package/dist/admin/{api-C4XsDZxd.mjs → api-D5CAH0nh.mjs} +2 -0
- package/dist/admin/{de-RAxzvrwm.mjs → de-BHPyA2S-.mjs} +10 -2
- package/dist/admin/{de-BMxADn2Z.mjs → de-Bt6pYIWi.mjs} +16 -1
- package/dist/admin/{de-Dx7vUW0Z.js → de-CVbi685U.js} +16 -1
- package/dist/admin/{de-DcDPRzV4.js → de-CkUYGb7U.js} +22 -1
- package/dist/admin/{de-B8XFFhHh.js → de-RMs-_SCK.js} +10 -2
- package/dist/admin/{de-n5V6c5RT.mjs → de-rRIutpYJ.mjs} +22 -1
- package/dist/admin/{en-sNn4z9lA.js → en-BX362fTp.js} +16 -1
- package/dist/admin/{en-BQ5Pxe2o.mjs → en-B_HltUxZ.mjs} +16 -1
- package/dist/admin/{en-BzfyifEU.mjs → en-BluCStLw.mjs} +10 -2
- package/dist/admin/{en-DcWUTE2J.js → en-C81faOHP.js} +10 -2
- package/dist/admin/{en-D-DGftl0.js → en-DulOcmXb.js} +22 -1
- package/dist/admin/{en-BqNm3nMQ.mjs → en-Puup8TFi.mjs} +22 -1
- package/dist/admin/{es-SzeTV4q8.mjs → es-257SSB7f.mjs} +22 -1
- package/dist/admin/{es-Di0pyQCh.js → es-BoQZC86B.js} +22 -1
- package/dist/admin/{es-DVsXnS0N.js → es-CHHEZi44.js} +16 -1
- package/dist/admin/{es-C2OJVYkV.mjs → es-CQRI2Prp.mjs} +10 -2
- package/dist/admin/{es-B6NYq0VH.mjs → es-CrhwOq-5.mjs} +16 -1
- package/dist/admin/{es-BOtVc9qv.js → es-D1QzY0JW.js} +10 -2
- package/dist/admin/{fr-DmG3_Cn-.mjs → fr-5djKfQ3s.mjs} +16 -1
- package/dist/admin/{fr-Fwxcj4SM.js → fr-B3SL0TBV.js} +16 -1
- package/dist/admin/{fr-DhgPYHIH.mjs → fr-C5rSdKU4.mjs} +22 -1
- package/dist/admin/{fr-Bpo5Uq1f.mjs → fr-Di3R6gOX.mjs} +10 -2
- package/dist/admin/{fr-D6F--jIB.js → fr-HxFcPpv4.js} +22 -1
- package/dist/admin/{fr-DfxKaOc_.js → fr-R3_MbzT5.js} +10 -2
- package/dist/admin/{index-D1Q5Rlt6.mjs → index-0_b1iroK.mjs} +18 -18
- package/dist/admin/{index-CwfaB5-e.js → index-6SZLli70.js} +18 -18
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/{pt-LCvjwk0y.js → pt-BCW1u_Hp.js} +10 -2
- package/dist/admin/{pt-BbdwHlWF.mjs → pt-BdnY2Cth.mjs} +16 -1
- package/dist/admin/{pt-BPo0ex21.js → pt-Cjn2Sc9k.js} +22 -1
- package/dist/admin/{pt-DqCXuI4S.mjs → pt-Cr9AL408.mjs} +10 -2
- package/dist/admin/{pt-BvSl1btT.mjs → pt-D6UuEtPy.mjs} +22 -1
- package/dist/admin/{pt-C6nr71Yw.js → pt-EVwCuBUK.js} +16 -1
- package/dist/admin/{sanitize-9UVcXFfc.js → sanitize-DP5aeU7V.js} +46 -1
- package/dist/admin/{sanitize-D4kfZ_ly.mjs → sanitize-jjCot5PM.mjs} +47 -2
- package/dist/admin/{useT-B5M49wGH.js → useT-91ruePzq.js} +1 -1
- package/dist/admin/{useT-CjX6fL2m.mjs → useT-vgY88N_H.mjs} +1 -1
- package/dist/server/index.js +1561 -321
- package/dist/server/index.mjs +1561 -321
- package/package.json +1 -1
|
@@ -59,6 +59,21 @@ const fr = {
|
|
|
59
59
|
"tools.header.level5": "Titre 5",
|
|
60
60
|
"tools.header.level6": "Titre 6",
|
|
61
61
|
"tools.header.placeholder": "Titre",
|
|
62
|
+
"tools.hyperlink.internal.draft": "Brouillon",
|
|
63
|
+
"tools.hyperlink.internal.empty": "Aucune entrée ne correspond à votre recherche",
|
|
64
|
+
"tools.hyperlink.internal.failed": "Les entrées n’ont pas pu être chargées",
|
|
65
|
+
"tools.hyperlink.internal.loading": "Chargement des types de contenu",
|
|
66
|
+
"tools.hyperlink.internal.noTypes": "Aucun type de contenu ne vous est accessible en lecture",
|
|
67
|
+
"tools.hyperlink.internal.open": "Lier à une entrée",
|
|
68
|
+
"tools.hyperlink.internal.published": "Publié",
|
|
69
|
+
"tools.hyperlink.internal.results": "Entrées",
|
|
70
|
+
"tools.hyperlink.internal.search": "Rechercher",
|
|
71
|
+
"tools.hyperlink.internal.searchPlaceholder": "Rechercher par titre",
|
|
72
|
+
"tools.hyperlink.internal.searching": "Recherche en cours",
|
|
73
|
+
"tools.hyperlink.internal.title": "Lier à une entrée",
|
|
74
|
+
"tools.hyperlink.internal.type": "Type de contenu",
|
|
75
|
+
"tools.hyperlink.internal.typesFailed": "Les types de contenu n’ont pas pu être chargés",
|
|
76
|
+
"tools.hyperlink.internal.untitled": "Entrée sans titre",
|
|
62
77
|
"tools.hyperlink.label": "Adresse du lien",
|
|
63
78
|
"tools.hyperlink.newTab": "Ouvrir dans un nouvel onglet",
|
|
64
79
|
"tools.hyperlink.placeholder": "Collez un lien et appuyez sur Entrée",
|
|
@@ -148,7 +163,13 @@ const fr = {
|
|
|
148
163
|
"tools.ui.nothingFound": "Aucun résultat",
|
|
149
164
|
"tools.ui.stub": "Ce bloc ne peut pas être affiché. Son contenu est conservé lors de l’enregistrement.",
|
|
150
165
|
"tools.warning.message": "Message",
|
|
151
|
-
"tools.warning.title": "Titre"
|
|
166
|
+
"tools.warning.title": "Titre",
|
|
167
|
+
"tools.csp.embedBlocked": "Ce contenu intégré est bloqué par votre Content Security Policy.",
|
|
168
|
+
"tools.csp.imageBlocked": "Cette image est bloquée par votre Content Security Policy.",
|
|
169
|
+
"tools.csp.hostBlocked": "L'administration n'autorise pas le contenu de {host}. Le bloc est enregistré sans modification et s'affiche toujours sur votre site.",
|
|
170
|
+
"tools.csp.blockedGeneric": "L'administration n'autorise pas ce contenu. Le bloc est enregistré sans modification et s'affiche toujours sur votre site.",
|
|
171
|
+
"tools.csp.howTo": "Comment l'autoriser",
|
|
172
|
+
"tools.csp.askAdmin": "Demandez à un administrateur de l'autoriser dans la Content Security Policy."
|
|
152
173
|
};
|
|
153
174
|
export {
|
|
154
175
|
fr as default
|
|
@@ -9,7 +9,7 @@ const fr = {
|
|
|
9
9
|
"editor.collab.status.connecting": "Connexion",
|
|
10
10
|
"editor.collab.status.syncing": "Synchronisation",
|
|
11
11
|
"editor.collab.status.live": "En direct",
|
|
12
|
-
"editor.collab.status.offline": "
|
|
12
|
+
"editor.collab.status.offline": "Hors ligne",
|
|
13
13
|
"editor.collab.status.denied": "Édition en direct indisponible",
|
|
14
14
|
"editor.collab.status.error": "Édition en direct indisponible",
|
|
15
15
|
"editor.toolbar.undo": "Annuler",
|
|
@@ -88,7 +88,15 @@ const fr = {
|
|
|
88
88
|
"editor.ai.retry": "Réessayer",
|
|
89
89
|
"editor.ai.generate": "Générer",
|
|
90
90
|
"editor.ai.apply": "Remplacer la sélection",
|
|
91
|
-
"editor.keyboard": "Appuyez sur Tab dans un bloc vide pour choisir un type de bloc. Appuyez sur Échap puis sur Tab pour quitter l’éditeur."
|
|
91
|
+
"editor.keyboard": "Appuyez sur Tab dans un bloc vide pour choisir un type de bloc. Appuyez sur Échap puis sur Tab pour quitter l’éditeur.",
|
|
92
|
+
"editor.collab.status.reconnecting": "Reconnexion",
|
|
93
|
+
"editor.collab.away": "{name} (absent)",
|
|
94
|
+
"editor.collab.editingBlock": "{name} modifie ce bloc",
|
|
95
|
+
"editor.collab.more": "+{count}",
|
|
96
|
+
"editor.collab.unsent": "Les modifications sont conservées et envoyées dès le retour de la connexion",
|
|
97
|
+
"editor.collab.upgrade": "Rechargez la page pour continuer à modifier en direct",
|
|
98
|
+
"editor.collab.joined": "{names} a rejoint",
|
|
99
|
+
"editor.collab.left": "{names} est parti"
|
|
92
100
|
};
|
|
93
101
|
export {
|
|
94
102
|
fr as default
|
|
@@ -61,6 +61,21 @@ const fr = {
|
|
|
61
61
|
"tools.header.level5": "Titre 5",
|
|
62
62
|
"tools.header.level6": "Titre 6",
|
|
63
63
|
"tools.header.placeholder": "Titre",
|
|
64
|
+
"tools.hyperlink.internal.draft": "Brouillon",
|
|
65
|
+
"tools.hyperlink.internal.empty": "Aucune entrée ne correspond à votre recherche",
|
|
66
|
+
"tools.hyperlink.internal.failed": "Les entrées n’ont pas pu être chargées",
|
|
67
|
+
"tools.hyperlink.internal.loading": "Chargement des types de contenu",
|
|
68
|
+
"tools.hyperlink.internal.noTypes": "Aucun type de contenu ne vous est accessible en lecture",
|
|
69
|
+
"tools.hyperlink.internal.open": "Lier à une entrée",
|
|
70
|
+
"tools.hyperlink.internal.published": "Publié",
|
|
71
|
+
"tools.hyperlink.internal.results": "Entrées",
|
|
72
|
+
"tools.hyperlink.internal.search": "Rechercher",
|
|
73
|
+
"tools.hyperlink.internal.searchPlaceholder": "Rechercher par titre",
|
|
74
|
+
"tools.hyperlink.internal.searching": "Recherche en cours",
|
|
75
|
+
"tools.hyperlink.internal.title": "Lier à une entrée",
|
|
76
|
+
"tools.hyperlink.internal.type": "Type de contenu",
|
|
77
|
+
"tools.hyperlink.internal.typesFailed": "Les types de contenu n’ont pas pu être chargés",
|
|
78
|
+
"tools.hyperlink.internal.untitled": "Entrée sans titre",
|
|
64
79
|
"tools.hyperlink.label": "Adresse du lien",
|
|
65
80
|
"tools.hyperlink.newTab": "Ouvrir dans un nouvel onglet",
|
|
66
81
|
"tools.hyperlink.placeholder": "Collez un lien et appuyez sur Entrée",
|
|
@@ -150,6 +165,12 @@ const fr = {
|
|
|
150
165
|
"tools.ui.nothingFound": "Aucun résultat",
|
|
151
166
|
"tools.ui.stub": "Ce bloc ne peut pas être affiché. Son contenu est conservé lors de l’enregistrement.",
|
|
152
167
|
"tools.warning.message": "Message",
|
|
153
|
-
"tools.warning.title": "Titre"
|
|
168
|
+
"tools.warning.title": "Titre",
|
|
169
|
+
"tools.csp.embedBlocked": "Ce contenu intégré est bloqué par votre Content Security Policy.",
|
|
170
|
+
"tools.csp.imageBlocked": "Cette image est bloquée par votre Content Security Policy.",
|
|
171
|
+
"tools.csp.hostBlocked": "L'administration n'autorise pas le contenu de {host}. Le bloc est enregistré sans modification et s'affiche toujours sur votre site.",
|
|
172
|
+
"tools.csp.blockedGeneric": "L'administration n'autorise pas ce contenu. Le bloc est enregistré sans modification et s'affiche toujours sur votre site.",
|
|
173
|
+
"tools.csp.howTo": "Comment l'autoriser",
|
|
174
|
+
"tools.csp.askAdmin": "Demandez à un administrateur de l'autoriser dans la Content Security Policy."
|
|
154
175
|
};
|
|
155
176
|
exports.default = fr;
|
|
@@ -11,7 +11,7 @@ const fr = {
|
|
|
11
11
|
"editor.collab.status.connecting": "Connexion",
|
|
12
12
|
"editor.collab.status.syncing": "Synchronisation",
|
|
13
13
|
"editor.collab.status.live": "En direct",
|
|
14
|
-
"editor.collab.status.offline": "
|
|
14
|
+
"editor.collab.status.offline": "Hors ligne",
|
|
15
15
|
"editor.collab.status.denied": "Édition en direct indisponible",
|
|
16
16
|
"editor.collab.status.error": "Édition en direct indisponible",
|
|
17
17
|
"editor.toolbar.undo": "Annuler",
|
|
@@ -90,6 +90,14 @@ const fr = {
|
|
|
90
90
|
"editor.ai.retry": "Réessayer",
|
|
91
91
|
"editor.ai.generate": "Générer",
|
|
92
92
|
"editor.ai.apply": "Remplacer la sélection",
|
|
93
|
-
"editor.keyboard": "Appuyez sur Tab dans un bloc vide pour choisir un type de bloc. Appuyez sur Échap puis sur Tab pour quitter l’éditeur."
|
|
93
|
+
"editor.keyboard": "Appuyez sur Tab dans un bloc vide pour choisir un type de bloc. Appuyez sur Échap puis sur Tab pour quitter l’éditeur.",
|
|
94
|
+
"editor.collab.status.reconnecting": "Reconnexion",
|
|
95
|
+
"editor.collab.away": "{name} (absent)",
|
|
96
|
+
"editor.collab.editingBlock": "{name} modifie ce bloc",
|
|
97
|
+
"editor.collab.more": "+{count}",
|
|
98
|
+
"editor.collab.unsent": "Les modifications sont conservées et envoyées dès le retour de la connexion",
|
|
99
|
+
"editor.collab.upgrade": "Rechargez la page pour continuer à modifier en direct",
|
|
100
|
+
"editor.collab.joined": "{names} a rejoint",
|
|
101
|
+
"editor.collab.left": "{names} est parti"
|
|
94
102
|
};
|
|
95
103
|
exports.default = fr;
|
|
@@ -12,33 +12,33 @@ const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
|
|
|
12
12
|
const LOADERS = {
|
|
13
13
|
en: () => [
|
|
14
14
|
import("./en-D9Nfccux.mjs"),
|
|
15
|
-
import("./en-
|
|
16
|
-
import("./en-
|
|
17
|
-
import("./en-
|
|
15
|
+
import("./en-BluCStLw.mjs"),
|
|
16
|
+
import("./en-Puup8TFi.mjs"),
|
|
17
|
+
import("./en-B_HltUxZ.mjs")
|
|
18
18
|
],
|
|
19
19
|
de: () => [
|
|
20
20
|
import("./de-fBFh09Wl.mjs"),
|
|
21
|
-
import("./de-
|
|
22
|
-
import("./de-
|
|
23
|
-
import("./de-
|
|
21
|
+
import("./de-BHPyA2S-.mjs"),
|
|
22
|
+
import("./de-rRIutpYJ.mjs"),
|
|
23
|
+
import("./de-Bt6pYIWi.mjs")
|
|
24
24
|
],
|
|
25
25
|
fr: () => [
|
|
26
26
|
import("./fr-oiUb2bb_.mjs"),
|
|
27
|
-
import("./fr-
|
|
28
|
-
import("./fr-
|
|
29
|
-
import("./fr-
|
|
27
|
+
import("./fr-Di3R6gOX.mjs"),
|
|
28
|
+
import("./fr-C5rSdKU4.mjs"),
|
|
29
|
+
import("./fr-5djKfQ3s.mjs")
|
|
30
30
|
],
|
|
31
31
|
es: () => [
|
|
32
32
|
import("./es-B0Zy8DVg.mjs"),
|
|
33
|
-
import("./es-
|
|
34
|
-
import("./es-
|
|
35
|
-
import("./es-
|
|
33
|
+
import("./es-CQRI2Prp.mjs"),
|
|
34
|
+
import("./es-257SSB7f.mjs"),
|
|
35
|
+
import("./es-CrhwOq-5.mjs")
|
|
36
36
|
],
|
|
37
37
|
pt: () => [
|
|
38
38
|
import("./pt-B3Jce6uT.mjs"),
|
|
39
|
-
import("./pt-
|
|
40
|
-
import("./pt-
|
|
41
|
-
import("./pt-
|
|
39
|
+
import("./pt-Cr9AL408.mjs"),
|
|
40
|
+
import("./pt-D6UuEtPy.mjs"),
|
|
41
|
+
import("./pt-BdnY2Cth.mjs")
|
|
42
42
|
]
|
|
43
43
|
};
|
|
44
44
|
const loadMessages = async (locale) => {
|
|
@@ -65,7 +65,7 @@ const index = {
|
|
|
65
65
|
},
|
|
66
66
|
icon: PluginIcon,
|
|
67
67
|
components: {
|
|
68
|
-
Input: () => import("./EditorField-
|
|
68
|
+
Input: () => import("./EditorField-7YCdXx-v.mjs")
|
|
69
69
|
},
|
|
70
70
|
options: {
|
|
71
71
|
base: [
|
|
@@ -119,14 +119,14 @@ const index = {
|
|
|
119
119
|
intlLabel: { id: getTranslation("settings.link.configuration"), defaultMessage: "Configuration" },
|
|
120
120
|
to: `${PLUGIN_ID}/configuration`,
|
|
121
121
|
permissions: PERMISSIONS.settingsRead,
|
|
122
|
-
Component: () => import("./ConfigurationPage-
|
|
122
|
+
Component: () => import("./ConfigurationPage-CK2AbfGW.mjs")
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
id: `${PLUGIN_ID}-custom-blocks`,
|
|
126
126
|
intlLabel: { id: getTranslation("settings.link.customBlocks"), defaultMessage: "Custom blocks" },
|
|
127
127
|
to: `${PLUGIN_ID}/custom-blocks`,
|
|
128
128
|
permissions: PERMISSIONS.customBlocksManage,
|
|
129
|
-
Component: () => import("./CustomBlocksPage-
|
|
129
|
+
Component: () => import("./CustomBlocksPage-B2A8S5MV.mjs")
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
);
|
|
@@ -13,33 +13,33 @@ const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
|
|
|
13
13
|
const LOADERS = {
|
|
14
14
|
en: () => [
|
|
15
15
|
Promise.resolve().then(() => require("./en-gueRT44P.js")),
|
|
16
|
-
Promise.resolve().then(() => require("./en-
|
|
17
|
-
Promise.resolve().then(() => require("./en-
|
|
18
|
-
Promise.resolve().then(() => require("./en-
|
|
16
|
+
Promise.resolve().then(() => require("./en-C81faOHP.js")),
|
|
17
|
+
Promise.resolve().then(() => require("./en-DulOcmXb.js")),
|
|
18
|
+
Promise.resolve().then(() => require("./en-BX362fTp.js"))
|
|
19
19
|
],
|
|
20
20
|
de: () => [
|
|
21
21
|
Promise.resolve().then(() => require("./de-DBR893G4.js")),
|
|
22
|
-
Promise.resolve().then(() => require("./de-
|
|
23
|
-
Promise.resolve().then(() => require("./de-
|
|
24
|
-
Promise.resolve().then(() => require("./de-
|
|
22
|
+
Promise.resolve().then(() => require("./de-RMs-_SCK.js")),
|
|
23
|
+
Promise.resolve().then(() => require("./de-CkUYGb7U.js")),
|
|
24
|
+
Promise.resolve().then(() => require("./de-CVbi685U.js"))
|
|
25
25
|
],
|
|
26
26
|
fr: () => [
|
|
27
27
|
Promise.resolve().then(() => require("./fr-B8rdLAIL.js")),
|
|
28
|
-
Promise.resolve().then(() => require("./fr-
|
|
29
|
-
Promise.resolve().then(() => require("./fr-
|
|
30
|
-
Promise.resolve().then(() => require("./fr-
|
|
28
|
+
Promise.resolve().then(() => require("./fr-R3_MbzT5.js")),
|
|
29
|
+
Promise.resolve().then(() => require("./fr-HxFcPpv4.js")),
|
|
30
|
+
Promise.resolve().then(() => require("./fr-B3SL0TBV.js"))
|
|
31
31
|
],
|
|
32
32
|
es: () => [
|
|
33
33
|
Promise.resolve().then(() => require("./es-DRGs7meF.js")),
|
|
34
|
-
Promise.resolve().then(() => require("./es-
|
|
35
|
-
Promise.resolve().then(() => require("./es-
|
|
36
|
-
Promise.resolve().then(() => require("./es-
|
|
34
|
+
Promise.resolve().then(() => require("./es-D1QzY0JW.js")),
|
|
35
|
+
Promise.resolve().then(() => require("./es-BoQZC86B.js")),
|
|
36
|
+
Promise.resolve().then(() => require("./es-CHHEZi44.js"))
|
|
37
37
|
],
|
|
38
38
|
pt: () => [
|
|
39
39
|
Promise.resolve().then(() => require("./pt-BiWuSBcH.js")),
|
|
40
|
-
Promise.resolve().then(() => require("./pt-
|
|
41
|
-
Promise.resolve().then(() => require("./pt-
|
|
42
|
-
Promise.resolve().then(() => require("./pt-
|
|
40
|
+
Promise.resolve().then(() => require("./pt-BCW1u_Hp.js")),
|
|
41
|
+
Promise.resolve().then(() => require("./pt-Cjn2Sc9k.js")),
|
|
42
|
+
Promise.resolve().then(() => require("./pt-EVwCuBUK.js"))
|
|
43
43
|
]
|
|
44
44
|
};
|
|
45
45
|
const loadMessages = async (locale) => {
|
|
@@ -66,7 +66,7 @@ const index = {
|
|
|
66
66
|
},
|
|
67
67
|
icon: PluginIcon,
|
|
68
68
|
components: {
|
|
69
|
-
Input: () => Promise.resolve().then(() => require("./EditorField-
|
|
69
|
+
Input: () => Promise.resolve().then(() => require("./EditorField-BdBCW15Q.js"))
|
|
70
70
|
},
|
|
71
71
|
options: {
|
|
72
72
|
base: [
|
|
@@ -120,14 +120,14 @@ const index = {
|
|
|
120
120
|
intlLabel: { id: getTranslation("settings.link.configuration"), defaultMessage: "Configuration" },
|
|
121
121
|
to: `${PLUGIN_ID}/configuration`,
|
|
122
122
|
permissions: PERMISSIONS.settingsRead,
|
|
123
|
-
Component: () => Promise.resolve().then(() => require("./ConfigurationPage-
|
|
123
|
+
Component: () => Promise.resolve().then(() => require("./ConfigurationPage-CzsT_dO_.js"))
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
id: `${PLUGIN_ID}-custom-blocks`,
|
|
127
127
|
intlLabel: { id: getTranslation("settings.link.customBlocks"), defaultMessage: "Custom blocks" },
|
|
128
128
|
to: `${PLUGIN_ID}/custom-blocks`,
|
|
129
129
|
permissions: PERMISSIONS.customBlocksManage,
|
|
130
|
-
Component: () => Promise.resolve().then(() => require("./CustomBlocksPage-
|
|
130
|
+
Component: () => Promise.resolve().then(() => require("./CustomBlocksPage-CvLrsBds.js"))
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
);
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const pt = {
|
|
|
11
11
|
"editor.collab.status.connecting": "Conectando",
|
|
12
12
|
"editor.collab.status.syncing": "Sincronizando",
|
|
13
13
|
"editor.collab.status.live": "Ao vivo",
|
|
14
|
-
"editor.collab.status.offline": "
|
|
14
|
+
"editor.collab.status.offline": "Offline",
|
|
15
15
|
"editor.collab.status.denied": "Edição ao vivo indisponível",
|
|
16
16
|
"editor.collab.status.error": "Edição ao vivo indisponível",
|
|
17
17
|
"editor.toolbar.undo": "Desfazer",
|
|
@@ -90,6 +90,14 @@ const pt = {
|
|
|
90
90
|
"editor.ai.retry": "Tentar novamente",
|
|
91
91
|
"editor.ai.generate": "Gerar",
|
|
92
92
|
"editor.ai.apply": "Substituir a seleção",
|
|
93
|
-
"editor.keyboard": "Pressione Tab em um bloco vazio para escolher um tipo de bloco. Pressione Escape e depois Tab para sair do editor."
|
|
93
|
+
"editor.keyboard": "Pressione Tab em um bloco vazio para escolher um tipo de bloco. Pressione Escape e depois Tab para sair do editor.",
|
|
94
|
+
"editor.collab.status.reconnecting": "Reconectando",
|
|
95
|
+
"editor.collab.away": "{name} (ausente)",
|
|
96
|
+
"editor.collab.editingBlock": "{name} está editando este bloco",
|
|
97
|
+
"editor.collab.more": "+{count}",
|
|
98
|
+
"editor.collab.unsent": "As alterações são mantidas e enviadas quando a conexão voltar",
|
|
99
|
+
"editor.collab.upgrade": "Recarregue a página para continuar editando ao vivo",
|
|
100
|
+
"editor.collab.joined": "{names} entrou",
|
|
101
|
+
"editor.collab.left": "{names} saiu"
|
|
94
102
|
};
|
|
95
103
|
exports.default = pt;
|
|
@@ -224,7 +224,22 @@ const pt = {
|
|
|
224
224
|
"settings.validation.range": "Introduza um número inteiro de {min} a {max}.",
|
|
225
225
|
"settings.validation.reenterKey": "Introduza novamente a chave de API quando mudar o fornecedor ou o URL base.",
|
|
226
226
|
"settings.validation.required": "Este campo é obrigatório.",
|
|
227
|
-
"settings.validation.url": "Introduza um URL http ou https válido sem nome de utilizador nem palavra-passe."
|
|
227
|
+
"settings.validation.url": "Introduza um URL http ou https válido sem nome de utilizador nem palavra-passe.",
|
|
228
|
+
"settings.csp.title": "Content Security Policy",
|
|
229
|
+
"settings.csp.subtitle": "A Content Security Policy do painel é definida em config/middlewares.js. O plugin nunca a altera.",
|
|
230
|
+
"settings.csp.alertTitle": "Algumas pré-visualizações do editor estão bloqueadas",
|
|
231
|
+
"settings.csp.alertBody": "A sua Content Security Policy bloqueia conteúdo que o editor mostra. O conteúdo guardado não é afetado; os editores veem um marcador em vez dele. Para o permitir, adicione as fontes abaixo ao middleware strapi::security e reinicie o Strapi.",
|
|
232
|
+
"settings.csp.frames": "Conteúdo incorporado (frame-src)",
|
|
233
|
+
"settings.csp.framesBlocked": "Bloqueado: {sources}",
|
|
234
|
+
"settings.csp.images": "Imagens externas (img-src)",
|
|
235
|
+
"settings.csp.imagesBlocked": "Bloqueado: imagens de outros hosts (por exemplo, pré-visualizações de links)",
|
|
236
|
+
"settings.csp.imagesHint": "O excerto adiciona https:. Pode indicar os seus hosts de imagens em vez disso.",
|
|
237
|
+
"settings.csp.allowed": "Permitido",
|
|
238
|
+
"settings.csp.codeLabel": "Excerto para config/middlewares.js",
|
|
239
|
+
"settings.csp.copy": "Copiar o excerto",
|
|
240
|
+
"settings.csp.copied": "Excerto copiado para a área de transferência.",
|
|
241
|
+
"settings.csp.copyFailed": "O navegador não permitiu copiar. O excerto está selecionado; copie-o com Ctrl+C ou Cmd+C.",
|
|
242
|
+
"settings.csp.mergeHint": "Mantenha as suas outras diretivas (por exemplo, os hosts do seu fornecedor de upload) e reinicie o Strapi após a alteração."
|
|
228
243
|
};
|
|
229
244
|
export {
|
|
230
245
|
pt as default
|
|
@@ -61,6 +61,21 @@ const pt = {
|
|
|
61
61
|
"tools.header.level5": "Título 5",
|
|
62
62
|
"tools.header.level6": "Título 6",
|
|
63
63
|
"tools.header.placeholder": "Título",
|
|
64
|
+
"tools.hyperlink.internal.draft": "Rascunho",
|
|
65
|
+
"tools.hyperlink.internal.empty": "Nenhuma entrada corresponde à sua pesquisa",
|
|
66
|
+
"tools.hyperlink.internal.failed": "Não foi possível carregar as entradas",
|
|
67
|
+
"tools.hyperlink.internal.loading": "A carregar tipos de conteúdo",
|
|
68
|
+
"tools.hyperlink.internal.noTypes": "Não existe nenhum tipo de conteúdo que possa ler",
|
|
69
|
+
"tools.hyperlink.internal.open": "Ligar a uma entrada",
|
|
70
|
+
"tools.hyperlink.internal.published": "Publicado",
|
|
71
|
+
"tools.hyperlink.internal.results": "Entradas",
|
|
72
|
+
"tools.hyperlink.internal.search": "Pesquisar",
|
|
73
|
+
"tools.hyperlink.internal.searchPlaceholder": "Pesquisar por título",
|
|
74
|
+
"tools.hyperlink.internal.searching": "A pesquisar",
|
|
75
|
+
"tools.hyperlink.internal.title": "Ligar a uma entrada",
|
|
76
|
+
"tools.hyperlink.internal.type": "Tipo de conteúdo",
|
|
77
|
+
"tools.hyperlink.internal.typesFailed": "Não foi possível carregar os tipos de conteúdo",
|
|
78
|
+
"tools.hyperlink.internal.untitled": "Entrada sem título",
|
|
64
79
|
"tools.hyperlink.label": "Endereço da ligação",
|
|
65
80
|
"tools.hyperlink.newTab": "Abrir num novo separador",
|
|
66
81
|
"tools.hyperlink.placeholder": "Cole uma ligação e prima Enter",
|
|
@@ -150,6 +165,12 @@ const pt = {
|
|
|
150
165
|
"tools.ui.nothingFound": "Nada encontrado",
|
|
151
166
|
"tools.ui.stub": "Este bloco não pode ser apresentado. O seu conteúdo é mantido ao guardar.",
|
|
152
167
|
"tools.warning.message": "Mensagem",
|
|
153
|
-
"tools.warning.title": "Título"
|
|
168
|
+
"tools.warning.title": "Título",
|
|
169
|
+
"tools.csp.embedBlocked": "Este conteúdo incorporado está bloqueado pela sua Content Security Policy.",
|
|
170
|
+
"tools.csp.imageBlocked": "Esta imagem está bloqueada pela sua Content Security Policy.",
|
|
171
|
+
"tools.csp.hostBlocked": "O painel de administração não permite conteúdo de {host}. O bloco é guardado sem alterações e continua a aparecer no seu site.",
|
|
172
|
+
"tools.csp.blockedGeneric": "O painel de administração não permite este conteúdo. O bloco é guardado sem alterações e continua a aparecer no seu site.",
|
|
173
|
+
"tools.csp.howTo": "Como permitir",
|
|
174
|
+
"tools.csp.askAdmin": "Peça a um administrador que o permita na Content Security Policy."
|
|
154
175
|
};
|
|
155
176
|
exports.default = pt;
|
|
@@ -9,7 +9,7 @@ const pt = {
|
|
|
9
9
|
"editor.collab.status.connecting": "Conectando",
|
|
10
10
|
"editor.collab.status.syncing": "Sincronizando",
|
|
11
11
|
"editor.collab.status.live": "Ao vivo",
|
|
12
|
-
"editor.collab.status.offline": "
|
|
12
|
+
"editor.collab.status.offline": "Offline",
|
|
13
13
|
"editor.collab.status.denied": "Edição ao vivo indisponível",
|
|
14
14
|
"editor.collab.status.error": "Edição ao vivo indisponível",
|
|
15
15
|
"editor.toolbar.undo": "Desfazer",
|
|
@@ -88,7 +88,15 @@ const pt = {
|
|
|
88
88
|
"editor.ai.retry": "Tentar novamente",
|
|
89
89
|
"editor.ai.generate": "Gerar",
|
|
90
90
|
"editor.ai.apply": "Substituir a seleção",
|
|
91
|
-
"editor.keyboard": "Pressione Tab em um bloco vazio para escolher um tipo de bloco. Pressione Escape e depois Tab para sair do editor."
|
|
91
|
+
"editor.keyboard": "Pressione Tab em um bloco vazio para escolher um tipo de bloco. Pressione Escape e depois Tab para sair do editor.",
|
|
92
|
+
"editor.collab.status.reconnecting": "Reconectando",
|
|
93
|
+
"editor.collab.away": "{name} (ausente)",
|
|
94
|
+
"editor.collab.editingBlock": "{name} está editando este bloco",
|
|
95
|
+
"editor.collab.more": "+{count}",
|
|
96
|
+
"editor.collab.unsent": "As alterações são mantidas e enviadas quando a conexão voltar",
|
|
97
|
+
"editor.collab.upgrade": "Recarregue a página para continuar editando ao vivo",
|
|
98
|
+
"editor.collab.joined": "{names} entrou",
|
|
99
|
+
"editor.collab.left": "{names} saiu"
|
|
92
100
|
};
|
|
93
101
|
export {
|
|
94
102
|
pt as default
|
|
@@ -59,6 +59,21 @@ const pt = {
|
|
|
59
59
|
"tools.header.level5": "Título 5",
|
|
60
60
|
"tools.header.level6": "Título 6",
|
|
61
61
|
"tools.header.placeholder": "Título",
|
|
62
|
+
"tools.hyperlink.internal.draft": "Rascunho",
|
|
63
|
+
"tools.hyperlink.internal.empty": "Nenhuma entrada corresponde à sua pesquisa",
|
|
64
|
+
"tools.hyperlink.internal.failed": "Não foi possível carregar as entradas",
|
|
65
|
+
"tools.hyperlink.internal.loading": "A carregar tipos de conteúdo",
|
|
66
|
+
"tools.hyperlink.internal.noTypes": "Não existe nenhum tipo de conteúdo que possa ler",
|
|
67
|
+
"tools.hyperlink.internal.open": "Ligar a uma entrada",
|
|
68
|
+
"tools.hyperlink.internal.published": "Publicado",
|
|
69
|
+
"tools.hyperlink.internal.results": "Entradas",
|
|
70
|
+
"tools.hyperlink.internal.search": "Pesquisar",
|
|
71
|
+
"tools.hyperlink.internal.searchPlaceholder": "Pesquisar por título",
|
|
72
|
+
"tools.hyperlink.internal.searching": "A pesquisar",
|
|
73
|
+
"tools.hyperlink.internal.title": "Ligar a uma entrada",
|
|
74
|
+
"tools.hyperlink.internal.type": "Tipo de conteúdo",
|
|
75
|
+
"tools.hyperlink.internal.typesFailed": "Não foi possível carregar os tipos de conteúdo",
|
|
76
|
+
"tools.hyperlink.internal.untitled": "Entrada sem título",
|
|
62
77
|
"tools.hyperlink.label": "Endereço da ligação",
|
|
63
78
|
"tools.hyperlink.newTab": "Abrir num novo separador",
|
|
64
79
|
"tools.hyperlink.placeholder": "Cole uma ligação e prima Enter",
|
|
@@ -148,7 +163,13 @@ const pt = {
|
|
|
148
163
|
"tools.ui.nothingFound": "Nada encontrado",
|
|
149
164
|
"tools.ui.stub": "Este bloco não pode ser apresentado. O seu conteúdo é mantido ao guardar.",
|
|
150
165
|
"tools.warning.message": "Mensagem",
|
|
151
|
-
"tools.warning.title": "Título"
|
|
166
|
+
"tools.warning.title": "Título",
|
|
167
|
+
"tools.csp.embedBlocked": "Este conteúdo incorporado está bloqueado pela sua Content Security Policy.",
|
|
168
|
+
"tools.csp.imageBlocked": "Esta imagem está bloqueada pela sua Content Security Policy.",
|
|
169
|
+
"tools.csp.hostBlocked": "O painel de administração não permite conteúdo de {host}. O bloco é guardado sem alterações e continua a aparecer no seu site.",
|
|
170
|
+
"tools.csp.blockedGeneric": "O painel de administração não permite este conteúdo. O bloco é guardado sem alterações e continua a aparecer no seu site.",
|
|
171
|
+
"tools.csp.howTo": "Como permitir",
|
|
172
|
+
"tools.csp.askAdmin": "Peça a um administrador que o permita na Content Security Policy."
|
|
152
173
|
};
|
|
153
174
|
export {
|
|
154
175
|
pt as default
|
|
@@ -226,6 +226,21 @@ const pt = {
|
|
|
226
226
|
"settings.validation.range": "Introduza um número inteiro de {min} a {max}.",
|
|
227
227
|
"settings.validation.reenterKey": "Introduza novamente a chave de API quando mudar o fornecedor ou o URL base.",
|
|
228
228
|
"settings.validation.required": "Este campo é obrigatório.",
|
|
229
|
-
"settings.validation.url": "Introduza um URL http ou https válido sem nome de utilizador nem palavra-passe."
|
|
229
|
+
"settings.validation.url": "Introduza um URL http ou https válido sem nome de utilizador nem palavra-passe.",
|
|
230
|
+
"settings.csp.title": "Content Security Policy",
|
|
231
|
+
"settings.csp.subtitle": "A Content Security Policy do painel é definida em config/middlewares.js. O plugin nunca a altera.",
|
|
232
|
+
"settings.csp.alertTitle": "Algumas pré-visualizações do editor estão bloqueadas",
|
|
233
|
+
"settings.csp.alertBody": "A sua Content Security Policy bloqueia conteúdo que o editor mostra. O conteúdo guardado não é afetado; os editores veem um marcador em vez dele. Para o permitir, adicione as fontes abaixo ao middleware strapi::security e reinicie o Strapi.",
|
|
234
|
+
"settings.csp.frames": "Conteúdo incorporado (frame-src)",
|
|
235
|
+
"settings.csp.framesBlocked": "Bloqueado: {sources}",
|
|
236
|
+
"settings.csp.images": "Imagens externas (img-src)",
|
|
237
|
+
"settings.csp.imagesBlocked": "Bloqueado: imagens de outros hosts (por exemplo, pré-visualizações de links)",
|
|
238
|
+
"settings.csp.imagesHint": "O excerto adiciona https:. Pode indicar os seus hosts de imagens em vez disso.",
|
|
239
|
+
"settings.csp.allowed": "Permitido",
|
|
240
|
+
"settings.csp.codeLabel": "Excerto para config/middlewares.js",
|
|
241
|
+
"settings.csp.copy": "Copiar o excerto",
|
|
242
|
+
"settings.csp.copied": "Excerto copiado para a área de transferência.",
|
|
243
|
+
"settings.csp.copyFailed": "O navegador não permitiu copiar. O excerto está selecionado; copie-o com Ctrl+C ou Cmd+C.",
|
|
244
|
+
"settings.csp.mergeHint": "Mantenha as suas outras diretivas (por exemplo, os hosts do seu fornecedor de upload) e reinicie o Strapi após a alteração."
|
|
230
245
|
};
|
|
231
246
|
exports.default = pt;
|
|
@@ -194,8 +194,28 @@ const INLINE_TAGS = Object.freeze([
|
|
|
194
194
|
"sub",
|
|
195
195
|
"sup"
|
|
196
196
|
]);
|
|
197
|
+
const INTERNAL_LINK_ATTRIBUTES = Object.freeze([
|
|
198
|
+
"data-mex-uid",
|
|
199
|
+
"data-mex-document-id",
|
|
200
|
+
"data-mex-locale"
|
|
201
|
+
]);
|
|
202
|
+
const INTERNAL_LINK_RULES = Object.freeze({
|
|
203
|
+
"data-mex-uid": /^api::[a-z0-9-]{1,60}\.[a-z0-9-]{1,60}$/,
|
|
204
|
+
"data-mex-document-id": /^[a-z0-9]{1,64}$/,
|
|
205
|
+
"data-mex-locale": /^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8}){0,3}$/
|
|
206
|
+
});
|
|
207
|
+
const cleanInternalLinkAttributes = (attribs) => {
|
|
208
|
+
const out = {};
|
|
209
|
+
if (!attribs || typeof attribs !== "object") return out;
|
|
210
|
+
for (const name of INTERNAL_LINK_ATTRIBUTES) {
|
|
211
|
+
const value = attribs[name];
|
|
212
|
+
if (typeof value === "string" && INTERNAL_LINK_RULES[name].test(value)) out[name] = value;
|
|
213
|
+
}
|
|
214
|
+
if (!out["data-mex-uid"] || !out["data-mex-document-id"]) return {};
|
|
215
|
+
return out;
|
|
216
|
+
};
|
|
197
217
|
const INLINE_ATTRIBUTES = Object.freeze({
|
|
198
|
-
a: ["href", "target", "rel", "title"],
|
|
218
|
+
a: ["href", "target", "rel", "title", ...INTERNAL_LINK_ATTRIBUTES],
|
|
199
219
|
span: ["class", "data-tooltip"],
|
|
200
220
|
mark: ["class"],
|
|
201
221
|
u: ["class"],
|
|
@@ -466,6 +486,15 @@ const instance = () => {
|
|
|
466
486
|
purify.addHook("afterSanitizeAttributes", (node) => {
|
|
467
487
|
if (node.nodeName === "A" && node.getAttribute("target") === "_blank")
|
|
468
488
|
node.setAttribute("rel", "noopener noreferrer");
|
|
489
|
+
if (typeof node.hasAttribute !== "function") return;
|
|
490
|
+
if (!INTERNAL_LINK_ATTRIBUTES.some((name) => node.hasAttribute(name))) return;
|
|
491
|
+
const kept = node.nodeName === "A" ? cleanInternalLinkAttributes(
|
|
492
|
+
Object.fromEntries(INTERNAL_LINK_ATTRIBUTES.map((name) => [name, node.getAttribute(name)]))
|
|
493
|
+
) : {};
|
|
494
|
+
for (const name of INTERNAL_LINK_ATTRIBUTES) {
|
|
495
|
+
if (kept[name]) node.setAttribute(name, kept[name]);
|
|
496
|
+
else node.removeAttribute(name);
|
|
497
|
+
}
|
|
469
498
|
});
|
|
470
499
|
return purify;
|
|
471
500
|
};
|
|
@@ -543,9 +572,25 @@ const prepareEditorValue = (value, rawHtml = "allow") => {
|
|
|
543
572
|
return { data: null, error: error && error.code || "INVALID" };
|
|
544
573
|
}
|
|
545
574
|
};
|
|
575
|
+
const prepareRemoteData = (data, cache) => {
|
|
576
|
+
const blocks = [];
|
|
577
|
+
for (const block of data && data.blocks || []) {
|
|
578
|
+
let clean = cache.get(block);
|
|
579
|
+
if (clean === void 0) {
|
|
580
|
+
const prepared = prepareEditorValue({ time: data.time, version: data.version, blocks: [block] }).data;
|
|
581
|
+
clean = prepared && prepared.blocks.length === 1 ? prepared.blocks[0] : null;
|
|
582
|
+
cache.set(block, clean);
|
|
583
|
+
}
|
|
584
|
+
if (clean) blocks.push(clean);
|
|
585
|
+
}
|
|
586
|
+
return { time: data && data.time || Date.now(), version: data && data.version || "2.31.7", blocks };
|
|
587
|
+
};
|
|
588
|
+
exports.EDITOR_DATA_LIMITS = EDITOR_DATA_LIMITS;
|
|
589
|
+
exports.cloneJsonSafe = cloneJsonSafe;
|
|
546
590
|
exports.computeStats = computeStats;
|
|
547
591
|
exports.isPlainObject = isPlainObject;
|
|
548
592
|
exports.prepareEditorValue = prepareEditorValue;
|
|
593
|
+
exports.prepareRemoteData = prepareRemoteData;
|
|
549
594
|
exports.sanitizeInline = sanitizeInline;
|
|
550
595
|
exports.sanitizeSvg = sanitizeSvg;
|
|
551
596
|
exports.sanitizeTemplate = sanitizeTemplate;
|
|
@@ -191,8 +191,28 @@ const INLINE_TAGS = Object.freeze([
|
|
|
191
191
|
"sub",
|
|
192
192
|
"sup"
|
|
193
193
|
]);
|
|
194
|
+
const INTERNAL_LINK_ATTRIBUTES = Object.freeze([
|
|
195
|
+
"data-mex-uid",
|
|
196
|
+
"data-mex-document-id",
|
|
197
|
+
"data-mex-locale"
|
|
198
|
+
]);
|
|
199
|
+
const INTERNAL_LINK_RULES = Object.freeze({
|
|
200
|
+
"data-mex-uid": /^api::[a-z0-9-]{1,60}\.[a-z0-9-]{1,60}$/,
|
|
201
|
+
"data-mex-document-id": /^[a-z0-9]{1,64}$/,
|
|
202
|
+
"data-mex-locale": /^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8}){0,3}$/
|
|
203
|
+
});
|
|
204
|
+
const cleanInternalLinkAttributes = (attribs) => {
|
|
205
|
+
const out = {};
|
|
206
|
+
if (!attribs || typeof attribs !== "object") return out;
|
|
207
|
+
for (const name of INTERNAL_LINK_ATTRIBUTES) {
|
|
208
|
+
const value = attribs[name];
|
|
209
|
+
if (typeof value === "string" && INTERNAL_LINK_RULES[name].test(value)) out[name] = value;
|
|
210
|
+
}
|
|
211
|
+
if (!out["data-mex-uid"] || !out["data-mex-document-id"]) return {};
|
|
212
|
+
return out;
|
|
213
|
+
};
|
|
194
214
|
const INLINE_ATTRIBUTES = Object.freeze({
|
|
195
|
-
a: ["href", "target", "rel", "title"],
|
|
215
|
+
a: ["href", "target", "rel", "title", ...INTERNAL_LINK_ATTRIBUTES],
|
|
196
216
|
span: ["class", "data-tooltip"],
|
|
197
217
|
mark: ["class"],
|
|
198
218
|
u: ["class"],
|
|
@@ -463,6 +483,15 @@ const instance = () => {
|
|
|
463
483
|
purify.addHook("afterSanitizeAttributes", (node) => {
|
|
464
484
|
if (node.nodeName === "A" && node.getAttribute("target") === "_blank")
|
|
465
485
|
node.setAttribute("rel", "noopener noreferrer");
|
|
486
|
+
if (typeof node.hasAttribute !== "function") return;
|
|
487
|
+
if (!INTERNAL_LINK_ATTRIBUTES.some((name) => node.hasAttribute(name))) return;
|
|
488
|
+
const kept = node.nodeName === "A" ? cleanInternalLinkAttributes(
|
|
489
|
+
Object.fromEntries(INTERNAL_LINK_ATTRIBUTES.map((name) => [name, node.getAttribute(name)]))
|
|
490
|
+
) : {};
|
|
491
|
+
for (const name of INTERNAL_LINK_ATTRIBUTES) {
|
|
492
|
+
if (kept[name]) node.setAttribute(name, kept[name]);
|
|
493
|
+
else node.removeAttribute(name);
|
|
494
|
+
}
|
|
466
495
|
});
|
|
467
496
|
return purify;
|
|
468
497
|
};
|
|
@@ -540,11 +569,27 @@ const prepareEditorValue = (value, rawHtml = "allow") => {
|
|
|
540
569
|
return { data: null, error: error && error.code || "INVALID" };
|
|
541
570
|
}
|
|
542
571
|
};
|
|
572
|
+
const prepareRemoteData = (data, cache) => {
|
|
573
|
+
const blocks = [];
|
|
574
|
+
for (const block of data && data.blocks || []) {
|
|
575
|
+
let clean = cache.get(block);
|
|
576
|
+
if (clean === void 0) {
|
|
577
|
+
const prepared = prepareEditorValue({ time: data.time, version: data.version, blocks: [block] }).data;
|
|
578
|
+
clean = prepared && prepared.blocks.length === 1 ? prepared.blocks[0] : null;
|
|
579
|
+
cache.set(block, clean);
|
|
580
|
+
}
|
|
581
|
+
if (clean) blocks.push(clean);
|
|
582
|
+
}
|
|
583
|
+
return { time: data && data.time || Date.now(), version: data && data.version || "2.31.7", blocks };
|
|
584
|
+
};
|
|
543
585
|
export {
|
|
586
|
+
EDITOR_DATA_LIMITS as E,
|
|
544
587
|
sanitizeInline as a,
|
|
545
588
|
sanitizeSvg as b,
|
|
546
589
|
sanitizeTemplate as c,
|
|
547
|
-
|
|
590
|
+
cloneJsonSafe as d,
|
|
591
|
+
computeStats as e,
|
|
592
|
+
prepareRemoteData as f,
|
|
548
593
|
isPlainObject as i,
|
|
549
594
|
prepareEditorValue as p,
|
|
550
595
|
sanitizeUrl as s
|
|
@@ -4,7 +4,7 @@ const react = require("react");
|
|
|
4
4
|
const designSystem = require("@strapi/design-system");
|
|
5
5
|
const admin = require("@strapi/strapi/admin");
|
|
6
6
|
const reactIntl = require("react-intl");
|
|
7
|
-
const index = require("./index-
|
|
7
|
+
const index = require("./index-6SZLli70.js");
|
|
8
8
|
const PageShell = ({
|
|
9
9
|
title,
|
|
10
10
|
subtitle,
|
|
@@ -3,7 +3,7 @@ import { useId, useState, useRef, useCallback } from "react";
|
|
|
3
3
|
import { Flex, Box, Typography, Dialog, Button } from "@strapi/design-system";
|
|
4
4
|
import { Page, Layouts, ConfirmDialog } from "@strapi/strapi/admin";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
-
import { g as getTranslation } from "./index-
|
|
6
|
+
import { g as getTranslation } from "./index-0_b1iroK.mjs";
|
|
7
7
|
const PageShell = ({
|
|
8
8
|
title,
|
|
9
9
|
subtitle,
|