@commentkit/comment-kit 1.6.0 → 2.0.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.
- package/CHANGELOG.md +298 -590
- package/README.md +421 -145
- package/SECURITY.md +47 -46
- package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
- package/dist/node/browser.js +17 -0
- package/dist/node/cli/api.js +226 -0
- package/dist/node/cli/bin.js +18 -0
- package/dist/node/cli/credentials.js +268 -0
- package/dist/node/cli/doctor.js +789 -0
- package/dist/node/cli/format.js +54 -0
- package/dist/node/cli/init.js +686 -0
- package/dist/node/cli/main.js +537 -0
- package/dist/node/cli/mcp.js +295 -0
- package/dist/node/cli/open.js +20 -0
- package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
- package/dist/node/plugins/astro.js +26 -0
- package/dist/node/plugins/git-BIXLbL3f.js +92 -0
- package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
- package/dist/node/plugins/next.js +48 -0
- package/dist/node/plugins/options-THop1K92.js +71 -0
- package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
- package/dist/node/plugins/vite-BdAYUW10.js +74 -0
- package/dist/node/plugins/vite.js +1 -0
- package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
- package/dist/node/plugins/webpack-loader.cjs +21 -0
- package/dist/node/plugins/webpack-loader.js +18 -0
- package/dist/node/plugins/webpack.js +1 -0
- package/dist/node/shared/dashboard-places.js +33 -0
- package/dist/node/shared/endpoint.js +26 -0
- package/dist/node/shared/format.js +63 -0
- package/dist/node/types/astro.d.ts +11 -0
- package/dist/node/types/next.d.ts +34 -0
- package/dist/node/types/options.d.ts +59 -0
- package/dist/node/types/vite.d.ts +11 -0
- package/dist/node/types/webpack-loader.d.ts +22 -0
- package/dist/node/types/webpack.d.ts +27 -0
- package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
- package/dist/npm/chunks/AgentSend-DOy3jhyF.js +68 -0
- package/dist/npm/chunks/Checklist-CW_SwMpS.js +282 -0
- package/dist/npm/chunks/Composer-Bveq5QrK.js +727 -0
- package/dist/npm/chunks/Guest-7hcN765o.js +270 -0
- package/dist/npm/chunks/MarkupEditor-6bJGpWGO.js +345 -0
- package/dist/npm/chunks/Panel-ChPUB68C.js +1211 -0
- package/dist/npm/chunks/Settings-CB5eEKnf.js +231 -0
- package/dist/npm/chunks/Shortcuts-eAyjJ89P.js +62 -0
- package/dist/npm/chunks/StyleEditor-CZTdAA5c.js +46 -0
- package/dist/npm/chunks/StylePanel-B4pHQUL9.js +199 -0
- package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +289 -0
- package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +1160 -0
- package/dist/npm/chunks/Viewer-DY6zb90M.js +114 -0
- package/dist/npm/chunks/{agent-BDMQtOzH.js → agent-MTQHr9ei.js} +9 -9
- package/dist/npm/chunks/{anchor-BsradQhn.js → anchor-BsQNVkHj.js} +108 -85
- package/dist/npm/chunks/{ar-8tPch6W4.js → ar-L5cQ-NPe.js} +71 -19
- package/dist/npm/chunks/card-bits-CTdrkYn8.js +53 -0
- package/dist/npm/chunks/{client-EFTWxHbJ.js → client-7eVxvg5j.js} +282 -290
- package/dist/npm/chunks/confetti-BIs5s14P.js +49 -0
- package/dist/npm/chunks/context-BuMl7A07.js +48 -0
- package/dist/npm/chunks/context-Cf6khm7A.js +20 -0
- package/dist/npm/chunks/{de-C63897uD.js → de-D0C-v6tP.js} +62 -18
- package/dist/npm/chunks/dialog-DvdIkCW0.js +3 -0
- package/dist/npm/chunks/dpop-0A76OPa9.js +96 -0
- package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
- package/dist/npm/chunks/{es-CI2bSpvB.js → es-Bw4Dj9tN.js} +62 -18
- package/dist/npm/chunks/extension-DFVOvciD.js +62 -0
- package/dist/npm/chunks/{extension-BST6LH1q.js → extension-SmoH5AA4.js} +20 -12
- package/dist/npm/chunks/files-4lV9YQIX.js +114 -0
- package/dist/npm/chunks/{fr-rsVe-Lqk.js → fr-TkuQaIAa.js} +120 -76
- package/dist/npm/chunks/{hi-cvwbSaWP.js → hi-DXSH2U8d.js} +63 -19
- package/dist/npm/chunks/{i18n-C4v0M-6z.js → i18n-aVSu9TcJ.js} +136 -92
- package/dist/npm/chunks/identify-BGYh2dVo.js +106 -0
- package/dist/npm/chunks/{it-C8tnV0BF.js → it-CiWA_bch.js} +81 -37
- package/dist/npm/chunks/{ja-BWxDfC2f.js → ja-C-QmR3yz.js} +60 -16
- package/dist/npm/chunks/late-words-80_VWt8S.js +14 -0
- package/dist/npm/chunks/live-BExWHzQ7.js +85 -0
- package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
- package/dist/npm/chunks/{nl-DNQ6eCht.js → nl-CEmZRqjX.js} +63 -19
- package/dist/npm/chunks/page-key-HSY3Lze5.js +62 -0
- package/dist/npm/chunks/{pick-CLyOdjnD.js → pick-B3sR7jtS.js} +45 -44
- package/dist/npm/chunks/pkce-CfZhiNBi.js +8 -0
- package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
- package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
- package/dist/npm/chunks/{pt-BR-CkG7vpU2.js → pt-BR-b-a8sxO8.js} +62 -18
- package/dist/npm/chunks/{realtime-DIo-Wth4.js → realtime-C79zF50C.js} +14 -12
- package/dist/npm/chunks/report-DaVuoRYS.js +44 -0
- package/dist/npm/chunks/show-BoN8AC-F.js +97 -0
- package/dist/npm/chunks/signin-BOWr_WCo.js +75 -0
- package/dist/npm/chunks/{source-CS7C6wJA.js → source-mk3rGBBQ.js} +1 -1
- package/dist/npm/chunks/src-C8rZFyL_.js +215 -0
- package/dist/npm/chunks/start-CV4j78_q.js +1894 -0
- package/dist/npm/chunks/states-b9Bv3Ci7.js +3 -0
- package/dist/npm/chunks/upload-B2mkgMeJ.js +42 -0
- package/dist/npm/chunks/uploads-8AxyRq7g.js +1147 -0
- package/dist/npm/chunks/wrap-DW6EFbVQ.js +69 -0
- package/dist/npm/chunks/{zh-CN-BKuZOLBE.js → zh-CN-JTscW8u8.js} +61 -17
- package/dist/npm/element.js +58 -21
- package/dist/npm/headless.js +7 -3
- package/dist/npm/index.js +3 -3
- package/dist/npm/react.js +18 -11
- package/dist/npm/svelte.js +28 -12
- package/dist/npm/types/adapters/react.d.ts +4 -1
- package/dist/npm/types/adapters/svelte.d.ts +4 -1
- package/dist/npm/types/adapters/vue.d.ts +35 -2
- package/dist/npm/types/anchor/index.d.ts +19 -0
- package/dist/npm/types/capture/privacy.d.ts +14 -0
- package/dist/npm/types/core/api.d.ts +20 -1
- package/dist/npm/types/core/auth.d.ts +40 -21
- package/dist/npm/types/core/client.d.ts +60 -4
- package/dist/npm/types/core/page-key.d.ts +42 -0
- package/dist/npm/types/core/types.d.ts +87 -4
- package/dist/npm/types/element.d.ts +17 -7
- package/dist/npm/types/headless.d.ts +2 -1
- package/dist/npm/types/index.d.ts +16 -6
- package/dist/npm/vue.js +44 -9
- package/package.json +90 -14
- package/dist/npm/chunks/AgentSend-2JPDseOo.js +0 -63
- package/dist/npm/chunks/Checklist-BpDXQebo.js +0 -257
- package/dist/npm/chunks/Composer-CAyj-c8e.js +0 -677
- package/dist/npm/chunks/Guest-ZdFmTcXI.js +0 -187
- package/dist/npm/chunks/MarkupEditor-BFplZwFy.js +0 -332
- package/dist/npm/chunks/Panel-BhZ4XRDR.js +0 -861
- package/dist/npm/chunks/Settings-SPG9EHUZ.js +0 -204
- package/dist/npm/chunks/Shortcuts-C28HVDw6.js +0 -58
- package/dist/npm/chunks/StyleEditor-ByZMtq10.js +0 -43
- package/dist/npm/chunks/StylePanel-Iwhce2tE.js +0 -197
- package/dist/npm/chunks/TaskFields-BsP_fVJg.js +0 -273
- package/dist/npm/chunks/ThreadCard-BzVZdDCb.js +0 -1030
- package/dist/npm/chunks/Viewer-CqtGrdD8.js +0 -108
- package/dist/npm/chunks/card-bits-Bna-g3Py.js +0 -124
- package/dist/npm/chunks/confetti-DTKpwF3O.js +0 -40
- package/dist/npm/chunks/drafts-akdBsOd0.js +0 -50
- package/dist/npm/chunks/extension-D-V3utTm.js +0 -53
- package/dist/npm/chunks/live-BCpJVBeN.js +0 -33
- package/dist/npm/chunks/report-BBrT3r89.js +0 -27
- package/dist/npm/chunks/src-C4FsVoUp.js +0 -148
- package/dist/npm/chunks/start-i9M-r3aH.js +0 -1800
- package/dist/npm/chunks/upload-DSv7EyBD.js +0 -41
- package/dist/npm/chunks/uploads-I01kdqQF.js +0 -1103
|
@@ -17,7 +17,7 @@ var e = {
|
|
|
17
17
|
attach: "Adjuntar un archivo",
|
|
18
18
|
screenshot: "Captura de pantalla",
|
|
19
19
|
screenshotIncluded: "Se incluye automáticamente una captura de lo que ves.",
|
|
20
|
-
screenshotRemove: "
|
|
20
|
+
screenshotRemove: "Quitar la captura",
|
|
21
21
|
screenshotAdd: "Incluir la captura",
|
|
22
22
|
markup: "Dibujar en la captura",
|
|
23
23
|
markupDone: "Listo",
|
|
@@ -25,7 +25,7 @@ var e = {
|
|
|
25
25
|
tool_arrow: "Flecha",
|
|
26
26
|
tool_rect: "Recuadro",
|
|
27
27
|
tool_pen: "Lápiz",
|
|
28
|
-
tool_blur: "
|
|
28
|
+
tool_blur: "Pixelar",
|
|
29
29
|
tool_text: "Texto",
|
|
30
30
|
markupTextPrompt: "¿Qué debe decir la nota?",
|
|
31
31
|
undo: "Deshacer",
|
|
@@ -41,8 +41,9 @@ var e = {
|
|
|
41
41
|
signIn: "Continuar",
|
|
42
42
|
signInMember: "Iniciar sesión",
|
|
43
43
|
signOut: "Cerrar sesión",
|
|
44
|
-
popupBlocked: "Tu navegador bloqueó la ventana de inicio de sesión.
|
|
44
|
+
popupBlocked: "Tu navegador bloqueó la ventana de inicio de sesión. Inténtalo de nuevo o permite las ventanas emergentes en este sitio.",
|
|
45
45
|
signInCancelled: "Se cerró el inicio de sesión antes de terminar. Tu comentario sigue aquí.",
|
|
46
|
+
insecureContext: "El inicio de sesión solo funciona en una dirección segura (https). Pide al equipo del sitio el enlace https de esta página.",
|
|
46
47
|
sent: "¡Enviado! El equipo ya está avisado.",
|
|
47
48
|
sentGuest: "¡Enviado! Te escribiremos cuando alguien responda.",
|
|
48
49
|
thisPage: "Esta página",
|
|
@@ -50,6 +51,7 @@ var e = {
|
|
|
50
51
|
notifications: "Notificaciones",
|
|
51
52
|
nothingHere: "Todavía no hay comentarios en esta página.",
|
|
52
53
|
nothingHereHint: "Pulsa Comentar y luego haz clic en cualquier parte de la página.",
|
|
54
|
+
nothingHereHintTouch: "Toca Comentar y luego toca cualquier parte de la página.",
|
|
53
55
|
nothingAnywhere: "Todavía no hay comentarios en este sitio.",
|
|
54
56
|
noMatch: "Ningún comentario coincide con tu búsqueda o filtros.",
|
|
55
57
|
clearFilters: "Quitar filtros",
|
|
@@ -66,8 +68,8 @@ var e = {
|
|
|
66
68
|
resolveHint: "Marcar como arreglado",
|
|
67
69
|
reopen: "Reabrir",
|
|
68
70
|
markInProgress: "Empezar a trabajar",
|
|
69
|
-
markInReview: "
|
|
70
|
-
closeThread: "Cerrar sin
|
|
71
|
+
markInReview: "Marcar como listo para revisar",
|
|
72
|
+
closeThread: "Cerrar sin arreglar",
|
|
71
73
|
reviewAsk: "El equipo cree que ya está arreglado. ¿Te parece bien?",
|
|
72
74
|
looksGood: "Está bien — resolver",
|
|
73
75
|
notYet: "Todavía no — responder",
|
|
@@ -92,6 +94,7 @@ var e = {
|
|
|
92
94
|
delete: "Eliminar",
|
|
93
95
|
edit: "Editar",
|
|
94
96
|
edited: "editado",
|
|
97
|
+
teamOnly: "Solo el equipo",
|
|
95
98
|
save: "Guardar",
|
|
96
99
|
mute: "Desactivar avisos",
|
|
97
100
|
unmute: "Activar avisos",
|
|
@@ -105,7 +108,7 @@ var e = {
|
|
|
105
108
|
retry: "Reintentar",
|
|
106
109
|
loadingThread: "Cargando la conversación…",
|
|
107
110
|
readOnlyReply: "Puedes leer esta conversación, pero ahora mismo las respuestas están desactivadas.",
|
|
108
|
-
noReplyAccess: "Puedes leer
|
|
111
|
+
noReplyAccess: "Puedes leer esta conversación, pero no tienes permiso para responder.",
|
|
109
112
|
notOnPage: "No está en esta página",
|
|
110
113
|
more: "Más",
|
|
111
114
|
allStatuses: "Todos",
|
|
@@ -148,6 +151,8 @@ var e = {
|
|
|
148
151
|
peopleHere_one: "{n} persona aquí",
|
|
149
152
|
markupTextAdd: "Añadir nota",
|
|
150
153
|
includeDiagnostics: "Incluir detalles técnicos para ayudar al desarrollador",
|
|
154
|
+
diagnosticsSee: "Ver qué se incluye",
|
|
155
|
+
diagnosticsEmpty: "Todavía no se ha registrado nada en esta página.",
|
|
151
156
|
filters: "Filtros",
|
|
152
157
|
assignedToMe: "Asignado a mí",
|
|
153
158
|
assigneeFilter: "Asignado a",
|
|
@@ -164,10 +169,10 @@ var e = {
|
|
|
164
169
|
guestExplain: "Te enviaremos un código de 6 dígitos por correo. Tu comentario se publica en cuanto escribas el código.",
|
|
165
170
|
guestName: "Tu nombre",
|
|
166
171
|
guestEmail: "Tu correo",
|
|
167
|
-
shareExpired: "Este enlace
|
|
172
|
+
shareExpired: "Este enlace de revisión ha caducado. Pide uno nuevo al equipo.",
|
|
168
173
|
verifyTitle: "Revisa tu correo",
|
|
169
174
|
verifyBody: "Escribe el código de 6 dígitos para publicar tu comentario. Lo enviamos a {email}.",
|
|
170
|
-
verifyLookFor: "Busca un correo de CommentKit:
|
|
175
|
+
verifyLookFor: "Busca un correo de CommentKit: «Tu código para {website}». Si no está, revisa la carpeta de spam.",
|
|
171
176
|
signInLinkTitle: "Hola de nuevo en {project}",
|
|
172
177
|
signInLinkBody: "Continúa para ver los comentarios y responder. Te enviaremos un código de 6 dígitos por correo para confirmar que eres tú.",
|
|
173
178
|
notNow: "Ahora no",
|
|
@@ -176,6 +181,16 @@ var e = {
|
|
|
176
181
|
verifyResend: "Enviar un código nuevo",
|
|
177
182
|
verifyResent: "Te enviamos un código nuevo. Puede tardar un minuto en llegar.",
|
|
178
183
|
verifyWait: "Espera un minuto antes de pedir otro código.",
|
|
184
|
+
guestCodesPaused: "Este sitio web ha enviado demasiados códigos hoy. Inténtalo de nuevo mañana o pide ayuda al equipo.",
|
|
185
|
+
notLive: "Elige un plan para usar los comentarios en tu sitio web publicado.",
|
|
186
|
+
fileImagesOnly: "Este sitio web solo acepta imágenes.",
|
|
187
|
+
tooBig: "Es demasiado grande para enviarlo. Prueba con un comentario más corto o un archivo más pequeño.",
|
|
188
|
+
finishTitle: "¿Enviar tu comentario?",
|
|
189
|
+
finishBody: "Abriste el enlace del correo con tu código. Pulsa el botón para publicar el comentario que escribiste en este sitio web.",
|
|
190
|
+
finishSend: "Enviar mi comentario",
|
|
191
|
+
finishExpired: "Este enlace ya no funciona. Los enlaces del correo con el código funcionan una vez, durante 10 minutos. Si tu comentario sigue esperando, introduce el código en la página donde lo escribiste.",
|
|
192
|
+
closeCardHint: "Pulsa × para cerrar, o haz doble clic fuera.",
|
|
193
|
+
closeCardHintTouch: "Toca × para cerrar, o toca dos veces fuera.",
|
|
179
194
|
verifyWrong: "Ese código no es correcto. Revisa el correo o pide uno nuevo.",
|
|
180
195
|
verifyDifferent: "Usar otro correo",
|
|
181
196
|
verifyExpired: "Este código ya no sirve. Tu comentario sigue guardado en este dispositivo.",
|
|
@@ -197,11 +212,12 @@ var e = {
|
|
|
197
212
|
resolvedToast: "{ref} resuelto.",
|
|
198
213
|
undoTooLate: "Ya no se puede deshacer. Vuelve a abrir {ref} si todavía hay algo que cambiar.",
|
|
199
214
|
guestIntro: "Tu nombre y correo, para que el equipo pueda responderte. No necesitas cuenta.",
|
|
200
|
-
guestPrivacy: "Tu nombre, tu correo
|
|
215
|
+
guestPrivacy: "Tu nombre, tu correo, tus comentarios, la captura y datos básicos del navegador llegan al equipo que gestiona este sitio web y a CommentKit, que ofrece esta herramienta de comentarios a ese equipo.",
|
|
201
216
|
guestPrivacyLink: "Aviso de privacidad",
|
|
217
|
+
guestPrivacySite: "Aviso de privacidad de {website}",
|
|
202
218
|
guestNameMissing: "Escribe tu nombre para que el equipo sepa quién lo escribió.",
|
|
203
219
|
guestEmailInvalid: "Revisa tu correo, por ejemplo nombre@empresa.com.",
|
|
204
|
-
verifyLinkExpired: "Este enlace
|
|
220
|
+
verifyLinkExpired: "Este enlace de revisión ha caducado. Pide uno nuevo a quien te lo envió. Tu comentario está guardado en este dispositivo.",
|
|
205
221
|
verifyRemoved: "El equipo quitó tu acceso a este sitio. Pídeles que vuelvan a añadirte.",
|
|
206
222
|
writeAgain: "Escribirlo de nuevo",
|
|
207
223
|
pendingNote: "Tu comentario espera el código que enviamos a {email}.",
|
|
@@ -211,12 +227,13 @@ var e = {
|
|
|
211
227
|
serverError: "Algo falló en CommentKit. Inténtalo de nuevo en un momento.",
|
|
212
228
|
noAccess: "No tienes acceso a los comentarios de este sitio. Pide al equipo que vuelva a invitarte.",
|
|
213
229
|
originNotAllowed: "Todavía no se pueden enviar comentarios desde esta dirección web. Pide al equipo que la añada al proyecto.",
|
|
214
|
-
forbidden: "No tienes permiso para hacer eso.",
|
|
230
|
+
forbidden: "No tienes permiso para hacer eso. Pídeselo al equipo si lo necesitas.",
|
|
215
231
|
tooFast: "Demasiadas acciones a la vez. Espera un momento y vuelve a intentarlo.",
|
|
216
232
|
sentWithoutScreenshot: "Enviado, pero sin la captura de pantalla: no se pudo subir.",
|
|
217
233
|
sentWithoutFiles: "Enviado, pero algunos archivos no se pudieron adjuntar. Puedes añadirlos en una respuesta.",
|
|
218
234
|
replyFailed: "Tu respuesta aún no se ha enviado. Sigue aquí, así que puedes intentarlo de nuevo.",
|
|
219
235
|
taskDetails: "Detalles de la tarea",
|
|
236
|
+
taskDetailsSet: "Detalles de la tarea añadidos",
|
|
220
237
|
priority: "Prioridad",
|
|
221
238
|
priority_none: "Sin prioridad",
|
|
222
239
|
priority_low: "Baja",
|
|
@@ -235,9 +252,9 @@ var e = {
|
|
|
235
252
|
formatCode: "Código",
|
|
236
253
|
reopenedToast: "{ref} está abierto otra vez.",
|
|
237
254
|
editedToast: "Comentario actualizado.",
|
|
238
|
-
editConflict: "
|
|
255
|
+
editConflict: "Otra persona lo editó hace un momento. Ahora ves su versión, así que vuelve a hacer tu cambio.",
|
|
239
256
|
threadDeleted: "{ref} eliminado.",
|
|
240
|
-
detailCreated: "
|
|
257
|
+
detailCreated: "Publicado",
|
|
241
258
|
detailResolved: "Resuelto",
|
|
242
259
|
detailPage: "Página",
|
|
243
260
|
detailBrowser: "Navegador",
|
|
@@ -263,8 +280,9 @@ var e = {
|
|
|
263
280
|
results_one: "{n} resultado",
|
|
264
281
|
results: "{n} resultados",
|
|
265
282
|
resultsMore: "{n}+ resultados",
|
|
283
|
+
firstPageThreads: "Se muestran los primeros {n} comentarios de esta página",
|
|
266
284
|
showMore: "Mostrar más",
|
|
267
|
-
livePaused: "
|
|
285
|
+
livePaused: "Sin conexión. Los comentarios nuevos aparecerán cuando te vuelvas a conectar.",
|
|
268
286
|
clearSearch: "Borrar búsqueda",
|
|
269
287
|
filtersOn_one: "{n} filtro activo",
|
|
270
288
|
filtersOn: "{n} filtros activos",
|
|
@@ -297,6 +315,7 @@ var e = {
|
|
|
297
315
|
nextImage: "Imagen siguiente",
|
|
298
316
|
attachments: "Archivos adjuntos",
|
|
299
317
|
openImage: "Abrir {name}",
|
|
318
|
+
openImageMore: "Abrir {name} y {n} más",
|
|
300
319
|
uploading: "Subiendo {name}",
|
|
301
320
|
retryUpload: "Volver a subir {name}",
|
|
302
321
|
uploadFailedShort: "Este archivo no se subió.",
|
|
@@ -316,7 +335,7 @@ var e = {
|
|
|
316
335
|
checklist: "Lista de tareas",
|
|
317
336
|
description: "Descripción",
|
|
318
337
|
checklistProgress: "{n} de {total} hechas",
|
|
319
|
-
checklistAdd: "Añade una tarea
|
|
338
|
+
checklistAdd: "Añade una tarea",
|
|
320
339
|
removeItem: "Quitar {item}",
|
|
321
340
|
addChecklist: "Añadir una lista de tareas",
|
|
322
341
|
checklistShort_one: "{done}/{n} hecha",
|
|
@@ -337,8 +356,8 @@ var e = {
|
|
|
337
356
|
previousThread: "Anterior",
|
|
338
357
|
nextThread: "Siguiente",
|
|
339
358
|
showOnPage: "Mostrar en la página",
|
|
340
|
-
doubleClickHint: "
|
|
341
|
-
spot_element: "En un
|
|
359
|
+
doubleClickHint: "Para cerrar la bandeja, pulsa Esc o haz doble clic en la página.",
|
|
360
|
+
spot_element: "En un punto",
|
|
342
361
|
spot_region: "En una zona",
|
|
343
362
|
spot_text: "En un texto seleccionado",
|
|
344
363
|
spot_page: "En toda la página",
|
|
@@ -361,6 +380,31 @@ var e = {
|
|
|
361
380
|
styleDone: "Listo",
|
|
362
381
|
stylePrevious: "Valor anterior de {property}",
|
|
363
382
|
styleNext: "Valor siguiente de {property}",
|
|
364
|
-
styleEdit: "Editar los cambios de estilo sugeridos"
|
|
383
|
+
styleEdit: "Editar los cambios de estilo sugeridos",
|
|
384
|
+
shortcutsSetting: "Atajos de una sola tecla",
|
|
385
|
+
shortcutsSettingHint: "Usa C, J, K, E y ? para comentar, moverte entre comentarios y resolverlos. Desactívalo si interfieren con tu lector de pantalla u otras herramientas.",
|
|
386
|
+
movePin: "Mover marcador",
|
|
387
|
+
movePinHint: "Haz clic en el nuevo punto para este comentario, o llega con Tab y pulsa Intro · Esc para cancelar",
|
|
388
|
+
movePinHintTouch: "Toca el nuevo punto para este comentario",
|
|
389
|
+
unread: "Sin leer",
|
|
390
|
+
otherKind: "{actor} hizo un cambio",
|
|
391
|
+
unitKB: "{n} KB",
|
|
392
|
+
unitMB: "{n} MB",
|
|
393
|
+
unitGB: "{n} GB",
|
|
394
|
+
signOff: "Aprobación de la página",
|
|
395
|
+
signOffAsk: "¿Te gusta cómo ha quedado esta página?",
|
|
396
|
+
signOffApprove: "Aprobar esta página",
|
|
397
|
+
signOffAgain: "Aprobar de nuevo",
|
|
398
|
+
signOffNote: "Añade una nota (opcional)",
|
|
399
|
+
signOffDone: "Aprobada. El equipo ya está avisado.",
|
|
400
|
+
signOffMine: "Aprobaste esta página el {date}.",
|
|
401
|
+
signOffBy: "Aprobada por {name}",
|
|
402
|
+
signOffByMore: "Aprobada por {name} y {n} personas más",
|
|
403
|
+
signOffByMore_one: "Aprobada por {name} y {n} persona más",
|
|
404
|
+
signOffNewFeedback: "Llegaron comentarios nuevos después de que se aprobara esta página.",
|
|
405
|
+
signOffNewCommit: "Esta página ha cambiado desde que se aprobó.",
|
|
406
|
+
signOffOpen: "{n} comentarios de esta página siguen abiertos. Aun así, puedes aprobarla.",
|
|
407
|
+
signOffOpen_one: "{n} comentario de esta página sigue abierto. Aun así, puedes aprobarla.",
|
|
408
|
+
signOffWithdraw: "Retirar la aprobación"
|
|
365
409
|
};
|
|
366
410
|
export { e as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { c as e, n as t, r as n } from "./privacy-BWUGlHw5.js";
|
|
2
|
+
import { askExtension as r } from "./extension-SmoH5AA4.js";
|
|
3
|
+
// src/capture/extension.ts
|
|
4
|
+
var i = 8e6, a = "[data-commentkit-host]", o = "#d4d4d8";
|
|
5
|
+
function s(n = [], r = !1) {
|
|
6
|
+
let i = e(n, r), o = [], s = (e) => {
|
|
7
|
+
let n;
|
|
8
|
+
try {
|
|
9
|
+
n = e.querySelectorAll(i);
|
|
10
|
+
} catch {
|
|
11
|
+
n = e.querySelectorAll(t);
|
|
12
|
+
}
|
|
13
|
+
for (let t of n) {
|
|
14
|
+
if (t.closest(a) || e instanceof ShadowRoot && e.host.closest(a)) continue;
|
|
15
|
+
let n = t.getBoundingClientRect();
|
|
16
|
+
n.width <= 0 || n.height <= 0 || n.right <= 0 || n.bottom <= 0 || n.left >= innerWidth || n.top >= innerHeight || o.push({
|
|
17
|
+
x: n.left,
|
|
18
|
+
y: n.top,
|
|
19
|
+
w: n.width,
|
|
20
|
+
h: n.height
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
for (let t of e.querySelectorAll("*")) t.shadowRoot && !t.matches(a) && s(t.shadowRoot);
|
|
24
|
+
};
|
|
25
|
+
return s(document), o;
|
|
26
|
+
}
|
|
27
|
+
async function c(e = [], t = !1) {
|
|
28
|
+
let c = innerWidth, d = innerHeight, f = [...document.querySelectorAll(a)], p = {
|
|
29
|
+
visibility: "hidden",
|
|
30
|
+
opacity: "0"
|
|
31
|
+
}, m = f.map((e) => Object.keys(p).map((t) => [
|
|
32
|
+
t,
|
|
33
|
+
e.style.getPropertyValue(t),
|
|
34
|
+
e.style.getPropertyPriority(t)
|
|
35
|
+
]));
|
|
36
|
+
f.forEach((e) => Object.entries(p).forEach(([t, n]) => e.style.setProperty(t, n, "important")));
|
|
37
|
+
let h, g;
|
|
38
|
+
try {
|
|
39
|
+
await l(), await l(), g = s(e, t);
|
|
40
|
+
let i = scrollX, a = scrollY;
|
|
41
|
+
if (h = (await r("capture", { redact: t ? [...e, n] : e }))?.dataUrl, Math.abs(scrollX - i) > 1 || Math.abs(scrollY - a) > 1 || innerWidth !== c || innerHeight !== d) throw Error("The page moved while it was captured.");
|
|
42
|
+
} finally {
|
|
43
|
+
f.forEach((e, t) => m[t].forEach(([t, n, r]) => e.style.setProperty(t, n, r)));
|
|
44
|
+
}
|
|
45
|
+
if (typeof h != "string" || !h.startsWith("data:image/")) throw Error("The extension returned no screenshot.");
|
|
46
|
+
let _ = await u(h), v = _.width / Math.max(1, c), y = Math.min(v, 2, Math.sqrt(i / Math.max(1, c * d))), b = document.createElement("canvas");
|
|
47
|
+
b.width = Math.round(c * y), b.height = Math.round(d * y);
|
|
48
|
+
let x = b.getContext("2d");
|
|
49
|
+
if (!x) throw Error("Canvas is not available.");
|
|
50
|
+
x.drawImage(_, 0, 0, b.width, b.height), x.fillStyle = o;
|
|
51
|
+
for (let e of g) x.fillRect(e.x * y, e.y * y, e.w * y, e.h * y);
|
|
52
|
+
return b;
|
|
53
|
+
}
|
|
54
|
+
function l() {
|
|
55
|
+
return new Promise((e) => requestAnimationFrame(() => e()));
|
|
56
|
+
}
|
|
57
|
+
function u(e) {
|
|
58
|
+
let [t, n = ""] = e.split(",", 2), r = atob(n), i = new Uint8Array(r.length);
|
|
59
|
+
for (let e = 0; e < r.length; e++) i[e] = r.charCodeAt(e);
|
|
60
|
+
return createImageBitmap(new Blob([i], { type: t.slice(5).split(";")[0] }));
|
|
61
|
+
}
|
|
62
|
+
export { c as captureTab };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e } from "./client-7eVxvg5j.js";
|
|
2
|
+
import { t } from "./pkce-CfZhiNBi.js";
|
|
2
3
|
// src/core/extension.ts
|
|
3
4
|
var n = "commentkit:ext-request", r = "The CommentKit extension did not answer.", i = null, a = /* @__PURE__ */ new Map();
|
|
4
5
|
function o() {
|
|
@@ -6,21 +7,26 @@ function o() {
|
|
|
6
7
|
}
|
|
7
8
|
function s() {
|
|
8
9
|
return i ?? (i = new Promise((t) => {
|
|
9
|
-
let { port1: n, port2: r } = new MessageChannel(),
|
|
10
|
-
clearTimeout(
|
|
11
|
-
},
|
|
10
|
+
let { port1: n, port2: r } = new MessageChannel(), o = e(12), s = (e) => {
|
|
11
|
+
clearTimeout(c), e || n.close(), t(e);
|
|
12
|
+
}, c = setTimeout(() => s(null), 2e3);
|
|
12
13
|
n.onmessage = (e) => {
|
|
13
14
|
let t = e.data;
|
|
14
|
-
if (t && t.type === "commentkit:ext-reply" && t.id ===
|
|
15
|
-
if (t.error) return t.error === "already_connected" && console.warn("[CommentKit] Another script on this page connected to the CommentKit extension first; screenshots use the built-in capture."),
|
|
15
|
+
if (t && t.type === "commentkit:ext-reply" && t.id === o) {
|
|
16
|
+
if (t.error) return t.error === "already_connected" && console.warn("[CommentKit] Another script on this page connected to the CommentKit extension first; screenshots use the built-in capture."), s(null);
|
|
16
17
|
n.onmessage = (e) => {
|
|
17
18
|
let t = e.data;
|
|
18
|
-
t && t.type === "commentkit:ext-reply" && typeof t.id == "string"
|
|
19
|
-
|
|
19
|
+
if (t && t.type === "commentkit:ext-reply" && typeof t.id == "string") {
|
|
20
|
+
if (t.id === o && t.error === "closed") {
|
|
21
|
+
console.warn("[CommentKit] Another script on this page tried to connect to the CommentKit extension; screenshots use the built-in capture."), i = Promise.resolve(null), n.close();
|
|
22
|
+
for (let e of [...a.values()]) e(t);
|
|
23
|
+
} else a.get(t.id)?.(t);
|
|
24
|
+
}
|
|
25
|
+
}, s(n);
|
|
20
26
|
}
|
|
21
27
|
}, n.start?.(), postMessage({
|
|
22
28
|
type: "commentkit:ext-request",
|
|
23
|
-
id:
|
|
29
|
+
id: o,
|
|
24
30
|
action: "hello",
|
|
25
31
|
channel: !0
|
|
26
32
|
}, location.origin, [r]);
|
|
@@ -41,9 +47,11 @@ async function c(t, i = {}, o = 8e3) {
|
|
|
41
47
|
});
|
|
42
48
|
});
|
|
43
49
|
}
|
|
44
|
-
async function l(
|
|
45
|
-
|
|
50
|
+
async function l(e) {
|
|
51
|
+
return !e.hasSession() && u(e);
|
|
52
|
+
}
|
|
53
|
+
async function u(n) {
|
|
46
54
|
let r = e(48), i = await c("handoff", { code_challenge: await t(r) });
|
|
47
|
-
return typeof i?.code == "string" && n.exchange(i.code, r);
|
|
55
|
+
return typeof i?.code == "string" && (n.renew = () => u(n).catch(() => !1), n.exchange(i.code, r));
|
|
48
56
|
}
|
|
49
57
|
export { c as askExtension, l as extensionHandoff, o as extensionHello };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { a as e, c as t, n, r } from "./i18n-aVSu9TcJ.js";
|
|
2
|
+
import { t as i } from "./late-words-80_VWt8S.js";
|
|
3
|
+
// src/core/contract-lists.ts
|
|
4
|
+
var a = [
|
|
5
|
+
"👍",
|
|
6
|
+
"❤️",
|
|
7
|
+
"🎉",
|
|
8
|
+
"👀",
|
|
9
|
+
"✅",
|
|
10
|
+
"🙏",
|
|
11
|
+
"👎",
|
|
12
|
+
"😄",
|
|
13
|
+
"😍",
|
|
14
|
+
"🤔",
|
|
15
|
+
"😮",
|
|
16
|
+
"😢",
|
|
17
|
+
"🔥",
|
|
18
|
+
"🚀",
|
|
19
|
+
"💯",
|
|
20
|
+
"👏",
|
|
21
|
+
"🙌",
|
|
22
|
+
"💡",
|
|
23
|
+
"⚠️",
|
|
24
|
+
"❌",
|
|
25
|
+
"⭐",
|
|
26
|
+
"🎨",
|
|
27
|
+
"🐛",
|
|
28
|
+
"✨"
|
|
29
|
+
], o = {
|
|
30
|
+
png: "image/png",
|
|
31
|
+
jpg: "image/jpeg",
|
|
32
|
+
jpeg: "image/jpeg",
|
|
33
|
+
webp: "image/webp",
|
|
34
|
+
gif: "image/gif",
|
|
35
|
+
pdf: "application/pdf",
|
|
36
|
+
txt: "text/plain",
|
|
37
|
+
csv: "text/csv",
|
|
38
|
+
mp4: "video/mp4",
|
|
39
|
+
webm: "video/webm",
|
|
40
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
41
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
42
|
+
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
43
|
+
};
|
|
44
|
+
// src/ui/files.ts
|
|
45
|
+
Object.assign(r, i);
|
|
46
|
+
var s = o, c = new Set(Object.values(o)), l = (e) => Array.isArray(e) ? new Set(e.filter((e) => c.has(e))) : c;
|
|
47
|
+
function u(e) {
|
|
48
|
+
let t = l(e);
|
|
49
|
+
return [...t, ...Object.keys(o).filter((e) => t.has(s[e])).map((e) => `.${e}`)].join(",");
|
|
50
|
+
}
|
|
51
|
+
u();
|
|
52
|
+
function d(n, r, i, a) {
|
|
53
|
+
let o = [...n], c = l(a), u = c.size && [...c].every((e) => e.startsWith("image/")) ? "fileImagesOnly" : "fileNotAllowed", d = null;
|
|
54
|
+
for (let n of r) {
|
|
55
|
+
let r = c.has(n.type) ? n.type : n.type ? void 0 : s[n.name.split(".").pop()?.toLowerCase() ?? ""];
|
|
56
|
+
!r || !c.has(r) ? d = t(u, { name: f(n.name) }) : n.size > i ? d = t("fileTooBig", {
|
|
57
|
+
name: f(n.name),
|
|
58
|
+
size: p(i, !0)
|
|
59
|
+
}) : o.length >= 10 ? d = e("tooManyFiles", 10) : o.push(r === n.type ? n : new File([n], n.name, {
|
|
60
|
+
type: r,
|
|
61
|
+
lastModified: n.lastModified
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
files: o,
|
|
66
|
+
problem: d
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function f(e, t = 40) {
|
|
70
|
+
let n = Array.from(e || "file");
|
|
71
|
+
if (n.length <= t) return n.join("");
|
|
72
|
+
let r = e.lastIndexOf("."), i = r > 0 && e.length - r <= 8 ? Array.from(e.slice(r)) : [], a = [...n.slice(n.length - i.length - 2, n.length - i.length), ...i];
|
|
73
|
+
return `${n.slice(0, t - a.length - 1).join("")}…${a.join("")}`;
|
|
74
|
+
}
|
|
75
|
+
function p(e, r = !1) {
|
|
76
|
+
let i = r ? 1024 : 1e3, [a, o, s] = e >= i ** 3 ? [
|
|
77
|
+
e / i ** 3,
|
|
78
|
+
"gigabyte",
|
|
79
|
+
"unitGB"
|
|
80
|
+
] : e >= i ** 2 || r ? [
|
|
81
|
+
Math.max(1, e / i ** 2),
|
|
82
|
+
"megabyte",
|
|
83
|
+
"unitMB"
|
|
84
|
+
] : [
|
|
85
|
+
e / i,
|
|
86
|
+
"kilobyte",
|
|
87
|
+
"unitKB"
|
|
88
|
+
], c = r || a >= 10 ? 0 : 1;
|
|
89
|
+
try {
|
|
90
|
+
return new Intl.NumberFormat(n(), {
|
|
91
|
+
style: "unit",
|
|
92
|
+
unit: o,
|
|
93
|
+
maximumFractionDigits: c
|
|
94
|
+
}).format(a);
|
|
95
|
+
} catch {
|
|
96
|
+
return t(s, { n: a.toFixed(c) });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function m(e) {
|
|
100
|
+
return {
|
|
101
|
+
onPaste: (t) => {
|
|
102
|
+
let n = [...t.clipboardData?.files ?? []];
|
|
103
|
+
n.length && (t.preventDefault(), e(n));
|
|
104
|
+
},
|
|
105
|
+
onDragOver: (e) => {
|
|
106
|
+
e.dataTransfer?.types.includes("Files") && (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
|
|
107
|
+
},
|
|
108
|
+
onDrop: (t) => {
|
|
109
|
+
let n = [...t.dataTransfer?.files ?? []];
|
|
110
|
+
n.length && (t.preventDefault(), e(n));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export { a, p as i, d as n, m as r, u as t };
|