@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: "Anexar um arquivo",
|
|
18
18
|
screenshot: "Captura de tela",
|
|
19
19
|
screenshotIncluded: "Uma captura do que você está vendo é incluída automaticamente.",
|
|
20
|
-
screenshotRemove: "
|
|
20
|
+
screenshotRemove: "Remover a captura",
|
|
21
21
|
screenshotAdd: "Incluir a captura",
|
|
22
22
|
markup: "Desenhar na captura",
|
|
23
23
|
markupDone: "Pronto",
|
|
@@ -25,7 +25,7 @@ var e = {
|
|
|
25
25
|
tool_arrow: "Seta",
|
|
26
26
|
tool_rect: "Retângulo",
|
|
27
27
|
tool_pen: "Caneta",
|
|
28
|
-
tool_blur: "
|
|
28
|
+
tool_blur: "Pixelar",
|
|
29
29
|
tool_text: "Texto",
|
|
30
30
|
markupTextPrompt: "O que a nota deve dizer?",
|
|
31
31
|
undo: "Desfazer",
|
|
@@ -41,8 +41,9 @@ var e = {
|
|
|
41
41
|
signIn: "Continuar",
|
|
42
42
|
signInMember: "Entrar",
|
|
43
43
|
signOut: "Sair",
|
|
44
|
-
popupBlocked: "Seu navegador bloqueou a janela de login.
|
|
44
|
+
popupBlocked: "Seu navegador bloqueou a janela de login. Tente de novo ou permita pop-ups neste site.",
|
|
45
45
|
signInCancelled: "O login foi fechado antes de terminar. Seu comentário continua aqui.",
|
|
46
|
+
insecureContext: "O login só funciona em um endereço seguro (https). Peça à equipe do site o link https desta página.",
|
|
46
47
|
sent: "Enviado! A equipe já foi avisada.",
|
|
47
48
|
sentGuest: "Enviado! Vamos te mandar um e-mail quando alguém responder.",
|
|
48
49
|
thisPage: "Esta página",
|
|
@@ -50,6 +51,7 @@ var e = {
|
|
|
50
51
|
notifications: "Notificações",
|
|
51
52
|
nothingHere: "Ainda não há feedback nesta página.",
|
|
52
53
|
nothingHereHint: "Clique em Comentar e depois em qualquer parte da página.",
|
|
54
|
+
nothingHereHintTouch: "Toque em Comentar e depois em qualquer parte da página.",
|
|
53
55
|
nothingAnywhere: "Ainda não há feedback neste site.",
|
|
54
56
|
noMatch: "Nenhum feedback corresponde à sua busca ou aos filtros.",
|
|
55
57
|
clearFilters: "Limpar filtros",
|
|
@@ -66,8 +68,8 @@ var e = {
|
|
|
66
68
|
resolveHint: "Marcar como corrigido",
|
|
67
69
|
reopen: "Reabrir",
|
|
68
70
|
markInProgress: "Começar a trabalhar",
|
|
69
|
-
markInReview: "
|
|
70
|
-
closeThread: "Fechar sem
|
|
71
|
+
markInReview: "Marcar como pronto para revisão",
|
|
72
|
+
closeThread: "Fechar sem corrigir",
|
|
71
73
|
reviewAsk: "A equipe acha que já está corrigido. Ficou certo para você?",
|
|
72
74
|
looksGood: "Ficou bom — resolver",
|
|
73
75
|
notYet: "Ainda não — responder",
|
|
@@ -92,6 +94,7 @@ var e = {
|
|
|
92
94
|
delete: "Excluir",
|
|
93
95
|
edit: "Editar",
|
|
94
96
|
edited: "editado",
|
|
97
|
+
teamOnly: "Só a equipe",
|
|
95
98
|
save: "Salvar",
|
|
96
99
|
mute: "Desativar notificações",
|
|
97
100
|
unmute: "Ativar notificações",
|
|
@@ -105,7 +108,7 @@ var e = {
|
|
|
105
108
|
retry: "Tentar de novo",
|
|
106
109
|
loadingThread: "Carregando a conversa…",
|
|
107
110
|
readOnlyReply: "Você pode ler esta conversa, mas as respostas estão desativadas no momento.",
|
|
108
|
-
noReplyAccess: "Você pode ler
|
|
111
|
+
noReplyAccess: "Você pode ler esta conversa, mas não tem permissão para responder.",
|
|
109
112
|
notOnPage: "Não encontrado nesta página",
|
|
110
113
|
more: "Mais",
|
|
111
114
|
allStatuses: "Todos",
|
|
@@ -148,6 +151,8 @@ var e = {
|
|
|
148
151
|
peopleHere_one: "{n} pessoa aqui",
|
|
149
152
|
markupTextAdd: "Adicionar nota",
|
|
150
153
|
includeDiagnostics: "Incluir detalhes técnicos para ajudar o desenvolvedor",
|
|
154
|
+
diagnosticsSee: "Ver o que é incluído",
|
|
155
|
+
diagnosticsEmpty: "Nada foi registrado nesta página ainda.",
|
|
151
156
|
filters: "Filtros",
|
|
152
157
|
assignedToMe: "Atribuído a mim",
|
|
153
158
|
assigneeFilter: "Atribuído a",
|
|
@@ -164,10 +169,10 @@ var e = {
|
|
|
164
169
|
guestExplain: "Vamos enviar um código de 6 dígitos para o seu e-mail. Seu comentário é publicado assim que você digitar o código.",
|
|
165
170
|
guestName: "Seu nome",
|
|
166
171
|
guestEmail: "Seu e-mail",
|
|
167
|
-
shareExpired: "Este link de
|
|
172
|
+
shareExpired: "Este link de revisão expirou. Peça um novo à equipe.",
|
|
168
173
|
verifyTitle: "Confira seu e-mail",
|
|
169
174
|
verifyBody: "Digite o código de 6 dígitos para publicar seu comentário. Enviamos para {email}.",
|
|
170
|
-
verifyLookFor: "Procure um e-mail da CommentKit: “
|
|
175
|
+
verifyLookFor: "Procure um e-mail da CommentKit: “Seu código para {website}”. Se não estiver lá, confira o spam.",
|
|
171
176
|
signInLinkTitle: "Que bom ver você de novo em {project}",
|
|
172
177
|
signInLinkBody: "Continue para ver o feedback e responder. Vamos enviar um código de 6 dígitos para o seu e-mail para confirmar que é você.",
|
|
173
178
|
notNow: "Agora não",
|
|
@@ -176,6 +181,16 @@ var e = {
|
|
|
176
181
|
verifyResend: "Enviar um novo código",
|
|
177
182
|
verifyResent: "Enviamos um novo código. Ele pode levar um minuto para chegar.",
|
|
178
183
|
verifyWait: "Espere um minuto antes de pedir outro código.",
|
|
184
|
+
guestCodesPaused: "Este site enviou códigos demais hoje. Tente de novo amanhã ou peça ajuda à equipe.",
|
|
185
|
+
notLive: "Escolha um plano para usar os comentários no seu site publicado.",
|
|
186
|
+
fileImagesOnly: "Este site aceita apenas imagens.",
|
|
187
|
+
tooBig: "Isso é grande demais para enviar. Tente um comentário mais curto ou um arquivo menor.",
|
|
188
|
+
finishTitle: "Enviar seu comentário?",
|
|
189
|
+
finishBody: "Você abriu o link do e-mail com o seu código. Toque no botão para publicar o comentário que você escreveu neste site.",
|
|
190
|
+
finishSend: "Enviar meu comentário",
|
|
191
|
+
finishExpired: "Este link não funciona mais. Os links do e-mail com o código funcionam uma vez, por 10 minutos. Se o seu comentário ainda estiver esperando, digite o código na página onde você o escreveu.",
|
|
192
|
+
closeCardHint: "Pressione × para fechar, ou clique duas vezes fora.",
|
|
193
|
+
closeCardHintTouch: "Toque em × para fechar, ou toque duas vezes fora.",
|
|
179
194
|
verifyWrong: "Esse código não está certo. Confira o e-mail ou peça um novo código.",
|
|
180
195
|
verifyDifferent: "Usar outro e-mail",
|
|
181
196
|
verifyExpired: "Este código não é mais válido. Seu comentário continua salvo neste dispositivo.",
|
|
@@ -197,11 +212,12 @@ var e = {
|
|
|
197
212
|
resolvedToast: "{ref} resolvido.",
|
|
198
213
|
undoTooLate: "Não dá mais para desfazer. Reabra {ref} se ainda precisar de ajustes.",
|
|
199
214
|
guestIntro: "Seu nome e e-mail, para que a equipe possa responder. Não precisa de conta.",
|
|
200
|
-
guestPrivacy: "Seu nome, e-mail e
|
|
215
|
+
guestPrivacy: "Seu nome, e-mail, comentários, a captura de tela e dados básicos do navegador vão para a equipe responsável por este site e para a CommentKit, que opera esta ferramenta de comentários para essa equipe.",
|
|
201
216
|
guestPrivacyLink: "Aviso de privacidade",
|
|
217
|
+
guestPrivacySite: "Aviso de privacidade de {website}",
|
|
202
218
|
guestNameMissing: "Digite seu nome para a equipe saber quem escreveu isto.",
|
|
203
219
|
guestEmailInvalid: "Confira seu e-mail, por exemplo nome@empresa.com.",
|
|
204
|
-
verifyLinkExpired: "Este link de
|
|
220
|
+
verifyLinkExpired: "Este link de revisão expirou. Peça um novo a quem o enviou. Seu comentário está salvo neste dispositivo.",
|
|
205
221
|
verifyRemoved: "A equipe removeu seu acesso a este site. Peça para adicionarem você de novo.",
|
|
206
222
|
writeAgain: "Escrever de novo",
|
|
207
223
|
pendingNote: "Seu comentário está esperando o código que enviamos para {email}.",
|
|
@@ -211,12 +227,13 @@ var e = {
|
|
|
211
227
|
serverError: "Algo deu errado no CommentKit. Tente de novo em instantes.",
|
|
212
228
|
noAccess: "Você não tem acesso ao feedback deste site. Peça à equipe para convidar você de novo.",
|
|
213
229
|
originNotAllowed: "Ainda não é possível enviar feedback deste endereço. Peça à equipe para adicioná-lo ao projeto.",
|
|
214
|
-
forbidden: "Você não tem permissão para fazer isso.",
|
|
230
|
+
forbidden: "Você não tem permissão para fazer isso. Peça à equipe se precisar.",
|
|
215
231
|
tooFast: "Muitas ações de uma vez. Aguarde um momento e tente de novo.",
|
|
216
232
|
sentWithoutScreenshot: "Enviado, mas sem a captura de tela: não foi possível enviá-la.",
|
|
217
233
|
sentWithoutFiles: "Enviado, mas alguns arquivos não puderam ser anexados. Você pode adicioná-los em uma resposta.",
|
|
218
234
|
replyFailed: "Sua resposta ainda não foi enviada. Ela continua aqui, então você pode tentar de novo.",
|
|
219
235
|
taskDetails: "Detalhes da tarefa",
|
|
236
|
+
taskDetailsSet: "Detalhes da tarefa adicionados",
|
|
220
237
|
priority: "Prioridade",
|
|
221
238
|
priority_none: "Sem prioridade",
|
|
222
239
|
priority_low: "Baixa",
|
|
@@ -235,9 +252,9 @@ var e = {
|
|
|
235
252
|
formatCode: "Código",
|
|
236
253
|
reopenedToast: "{ref} está aberto de novo.",
|
|
237
254
|
editedToast: "Comentário atualizado.",
|
|
238
|
-
editConflict: "
|
|
255
|
+
editConflict: "Outra pessoa editou isto agora há pouco. A versão dela está aparecendo agora, então faça sua alteração de novo.",
|
|
239
256
|
threadDeleted: "{ref} excluído.",
|
|
240
|
-
detailCreated: "
|
|
257
|
+
detailCreated: "Publicado em",
|
|
241
258
|
detailResolved: "Resolvido em",
|
|
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: "Mostrando os primeiros {n} comentários desta página",
|
|
266
284
|
showMore: "Mostrar mais",
|
|
267
|
-
livePaused: "
|
|
285
|
+
livePaused: "Sem conexão. O feedback novo aparece quando você se reconectar.",
|
|
268
286
|
clearSearch: "Limpar busca",
|
|
269
287
|
filtersOn_one: "{n} filtro ativo",
|
|
270
288
|
filtersOn: "{n} filtros ativos",
|
|
@@ -297,6 +315,7 @@ var e = {
|
|
|
297
315
|
nextImage: "Próxima imagem",
|
|
298
316
|
attachments: "Anexos",
|
|
299
317
|
openImage: "Abrir {name}",
|
|
318
|
+
openImageMore: "Abrir {name} e mais {n}",
|
|
300
319
|
uploading: "Enviando {name}",
|
|
301
320
|
retryUpload: "Tentar enviar {name} de novo",
|
|
302
321
|
uploadFailedShort: "Este arquivo não foi enviado.",
|
|
@@ -316,7 +335,7 @@ var e = {
|
|
|
316
335
|
checklist: "Checklist",
|
|
317
336
|
description: "Descrição",
|
|
318
337
|
checklistProgress: "{n} de {total} feitos",
|
|
319
|
-
checklistAdd: "Adicione um item
|
|
338
|
+
checklistAdd: "Adicione um item",
|
|
320
339
|
removeItem: "Remover {item}",
|
|
321
340
|
addChecklist: "Adicionar um checklist",
|
|
322
341
|
checklistShort_one: "{done}/{n} feito",
|
|
@@ -337,8 +356,8 @@ var e = {
|
|
|
337
356
|
previousThread: "Anterior",
|
|
338
357
|
nextThread: "Próximo",
|
|
339
358
|
showOnPage: "Mostrar na página",
|
|
340
|
-
doubleClickHint: "
|
|
341
|
-
spot_element: "Em um
|
|
359
|
+
doubleClickHint: "Para fechar a caixa de entrada, pressione Esc ou clique duas vezes na página.",
|
|
360
|
+
spot_element: "Em um ponto",
|
|
342
361
|
spot_region: "Em uma área",
|
|
343
362
|
spot_text: "Em um texto selecionado",
|
|
344
363
|
spot_page: "Na página inteira",
|
|
@@ -361,6 +380,31 @@ var e = {
|
|
|
361
380
|
styleDone: "Pronto",
|
|
362
381
|
stylePrevious: "Valor anterior de {property}",
|
|
363
382
|
styleNext: "Próximo valor de {property}",
|
|
364
|
-
styleEdit: "Editar as mudanças de estilo sugeridas"
|
|
383
|
+
styleEdit: "Editar as mudanças de estilo sugeridas",
|
|
384
|
+
shortcutsSetting: "Atalhos de uma tecla",
|
|
385
|
+
shortcutsSettingHint: "Use C, J, K, E e ? para comentar, navegar entre os comentários e resolvê-los. Desative se eles atrapalharem seu leitor de tela ou outras ferramentas.",
|
|
386
|
+
movePin: "Mover marcador",
|
|
387
|
+
movePinHint: "Clique no novo ponto para este comentário, ou vá até ele com Tab e pressione Enter · Esc para cancelar",
|
|
388
|
+
movePinHintTouch: "Toque no novo ponto para este comentário",
|
|
389
|
+
unread: "Não lido",
|
|
390
|
+
otherKind: "{actor} fez uma alteração",
|
|
391
|
+
unitKB: "{n} KB",
|
|
392
|
+
unitMB: "{n} MB",
|
|
393
|
+
unitGB: "{n} GB",
|
|
394
|
+
signOff: "Aprovação da página",
|
|
395
|
+
signOffAsk: "Gostou de como esta página ficou?",
|
|
396
|
+
signOffApprove: "Aprovar esta página",
|
|
397
|
+
signOffAgain: "Aprovar de novo",
|
|
398
|
+
signOffNote: "Adicionar uma nota (opcional)",
|
|
399
|
+
signOffDone: "Aprovada. A equipe já foi avisada.",
|
|
400
|
+
signOffMine: "Você aprovou esta página em {date}.",
|
|
401
|
+
signOffBy: "Aprovada por {name}",
|
|
402
|
+
signOffByMore: "Aprovada por {name} e mais {n} pessoas",
|
|
403
|
+
signOffByMore_one: "Aprovada por {name} e mais {n} pessoa",
|
|
404
|
+
signOffNewFeedback: "Chegaram comentários novos depois que esta página foi aprovada.",
|
|
405
|
+
signOffNewCommit: "Esta página mudou desde que foi aprovada.",
|
|
406
|
+
signOffOpen: "{n} comentários desta página ainda estão abertos. Você pode aprovar mesmo assim.",
|
|
407
|
+
signOffOpen_one: "{n} comentário desta página ainda está aberto. Você pode aprovar mesmo assim.",
|
|
408
|
+
signOffWithdraw: "Retirar a aprovação"
|
|
365
409
|
};
|
|
366
410
|
export { e as default };
|
|
@@ -2469,7 +2469,7 @@ var r = /* @__PURE__ */ n(((e, t) => {
|
|
|
2469
2469
|
})());
|
|
2470
2470
|
})), i = /* @__PURE__ */ e({ connect: () => a });
|
|
2471
2471
|
async function a(e) {
|
|
2472
|
-
let { default: n } = await Promise.resolve().then(() => /* @__PURE__ */ t(r(), 1)), i = new n(e.key, {
|
|
2472
|
+
let { default: n } = await Promise.resolve().then(() => /* @__PURE__ */ t(r(), 1)), i = !1, a = new n(e.key, {
|
|
2473
2473
|
wsHost: e.host,
|
|
2474
2474
|
wsPort: e.port,
|
|
2475
2475
|
wssPort: e.port,
|
|
@@ -2481,19 +2481,21 @@ async function a(e) {
|
|
|
2481
2481
|
transport: "ajax",
|
|
2482
2482
|
endpoint: "/unused",
|
|
2483
2483
|
customHandler: (t, n) => {
|
|
2484
|
-
e.authorize(t.socketId, t.channelName).then((e) => n(null, e), (
|
|
2484
|
+
e.authorize(t.socketId, t.channelName).then((e) => n(null, e), (t) => {
|
|
2485
|
+
n(t, null), !(t?.code !== "realtime_full" || i) && (i = !0, a.disconnect(), e.onPresence?.(0), e.onTeam?.([]), e.onState?.("off"));
|
|
2486
|
+
});
|
|
2485
2487
|
}
|
|
2486
2488
|
}
|
|
2487
|
-
}),
|
|
2488
|
-
|
|
2489
|
-
let
|
|
2489
|
+
}), o = a.subscribe(`presence-ck.project.${e.projectId}`);
|
|
2490
|
+
o.bind("feedback.changed", (t) => e.onFeedback(t));
|
|
2491
|
+
let s = () => e.onPresence?.(o.members?.count ?? 0);
|
|
2490
2492
|
for (let e of [
|
|
2491
2493
|
"pusher:subscription_succeeded",
|
|
2492
2494
|
"pusher:member_added",
|
|
2493
2495
|
"pusher:member_removed"
|
|
2494
|
-
])
|
|
2496
|
+
]) o.bind(e, s);
|
|
2495
2497
|
if (e.onTeam) {
|
|
2496
|
-
let t =
|
|
2498
|
+
let t = a.subscribe(`presence-ck.team.${e.projectId}`), n = () => {
|
|
2497
2499
|
let n = [];
|
|
2498
2500
|
t.members?.each((e) => {
|
|
2499
2501
|
let t = typeof e.info?.name == "string" ? e.info.name.slice(0, 120) : "";
|
|
@@ -2511,15 +2513,15 @@ async function a(e) {
|
|
|
2511
2513
|
"pusher:member_removed"
|
|
2512
2514
|
]) t.bind(e, n);
|
|
2513
2515
|
}
|
|
2514
|
-
return
|
|
2516
|
+
return a.subscribe(`private-ck.inbox.${e.inbox}`).bind("inbox.changed", (t) => {
|
|
2515
2517
|
(t.project_id == null || String(t.project_id) === String(e.projectId)) && e.onInbox(t.unread);
|
|
2516
|
-
}),
|
|
2517
|
-
t === "connected" ? e.onState?.("on") : (t === "unavailable" || t === "failed" || t === "disconnected") && e.onState?.("lost");
|
|
2518
|
+
}), a.connection?.bind("state_changed", ({ current: t }) => {
|
|
2519
|
+
i || (t === "connected" ? e.onState?.("on") : (t === "unavailable" || t === "failed" || t === "disconnected") && e.onState?.("lost"));
|
|
2518
2520
|
}), {
|
|
2519
2521
|
disconnect: () => {
|
|
2520
|
-
|
|
2522
|
+
a.disconnect(), e.onPresence?.(0), e.onTeam?.([]);
|
|
2521
2523
|
},
|
|
2522
|
-
reconnect: () => i.connect()
|
|
2524
|
+
reconnect: () => void (i || a.connect())
|
|
2523
2525
|
};
|
|
2524
2526
|
}
|
|
2525
2527
|
export { i as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { d as e, i as t, n } from "./client-7eVxvg5j.js";
|
|
2
|
+
// src/core/report.ts
|
|
3
|
+
var r = 0;
|
|
4
|
+
function i(r, i) {
|
|
5
|
+
try {
|
|
6
|
+
let a = r?.project;
|
|
7
|
+
if (typeof a != "string" || !e.test(a)) return;
|
|
8
|
+
o((typeof r.endpoint == "string" ? r.endpoint : n).replace(/\/+$/, ""), a, t, i, "start");
|
|
9
|
+
} catch {}
|
|
10
|
+
}
|
|
11
|
+
var a = (e) => e.replace(/(https?:\/\/[^\s?#)]+)[?#][^\s)]*/g, "$1");
|
|
12
|
+
function o(e, t, n, i, a = "crash", o, c) {
|
|
13
|
+
if (r >= 3 || typeof fetch != "function") return;
|
|
14
|
+
r++;
|
|
15
|
+
let l = i instanceof Error ? i : Error(String(i)), u = `${e}/api/v1/client-errors`, d = c?.access && c.access.expiresAt > Date.now() ? c.access.token : null;
|
|
16
|
+
if (!d) return s(u, n, l, a, o, {}, t);
|
|
17
|
+
c.proof("POST", u, d).then((e) => ({
|
|
18
|
+
Authorization: `DPoP ${d}`,
|
|
19
|
+
DPoP: e
|
|
20
|
+
}), () => ({})).then((e) => s(u, n, l, a, o, e, t));
|
|
21
|
+
}
|
|
22
|
+
function s(e, t, n, r, i, o, s) {
|
|
23
|
+
try {
|
|
24
|
+
fetch(e, {
|
|
25
|
+
method: "POST",
|
|
26
|
+
keepalive: !0,
|
|
27
|
+
credentials: "omit",
|
|
28
|
+
headers: {
|
|
29
|
+
"Content-Type": "application/json",
|
|
30
|
+
"X-CommentKit-SDK": t,
|
|
31
|
+
...o
|
|
32
|
+
},
|
|
33
|
+
body: JSON.stringify({
|
|
34
|
+
key: s,
|
|
35
|
+
version: t,
|
|
36
|
+
kind: r,
|
|
37
|
+
message: a(`${n.name}: ${n.message}`).slice(0, 300),
|
|
38
|
+
stack: a(n.stack ?? "").slice(0, 2e3),
|
|
39
|
+
...i ? { nonce: i } : {}
|
|
40
|
+
})
|
|
41
|
+
}).catch(() => void 0);
|
|
42
|
+
} catch {}
|
|
43
|
+
}
|
|
44
|
+
export { o as reportCrash, i as reportStart };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i } from "./src-C8rZFyL_.js";
|
|
2
|
+
import { i as a, l as o, v as s } from "./client-7eVxvg5j.js";
|
|
3
|
+
import { n as c } from "./page-key-HSY3Lze5.js";
|
|
4
|
+
// src/core/show.ts
|
|
5
|
+
var l;
|
|
6
|
+
function u() {
|
|
7
|
+
if (/[?&]ck(_thread)?(=|&|$)/.test(location.search)) return !0;
|
|
8
|
+
try {
|
|
9
|
+
return !!sessionStorage.getItem("commentkit:share");
|
|
10
|
+
} catch {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
o(c);
|
|
15
|
+
var d = (e) => e.disabled_reason === "version_blocked", f = (e) => e.disabled_reason === "not_live", p = (e) => {
|
|
16
|
+
let t = e.state.get().session;
|
|
17
|
+
return !!t && t.role !== "guest";
|
|
18
|
+
};
|
|
19
|
+
async function m(i, a, o, s, m, v, y = () => void 0) {
|
|
20
|
+
let b = (l ?? (l = u())) || o;
|
|
21
|
+
if (d(a)) return y(), null;
|
|
22
|
+
let x = f(a);
|
|
23
|
+
if (x && !i.auth.hasSession() && !e()) return y(), null;
|
|
24
|
+
if (!a.enabled && !b && !x) return null;
|
|
25
|
+
c.ignore(a.pages?.ignored_query_params);
|
|
26
|
+
let S = n(() => import("./start-CV4j78_q.js").then((e) => e.t)), C = S.then((e) => e.setLocale(i.options.locale));
|
|
27
|
+
if (S.catch(() => void 0), C.catch(() => void 0), await i.auth.completeRedirect().catch(() => !1), e() && await import("./extension-SmoH5AA4.js").then((e) => e.extensionHandoff(i.auth)).catch(() => !1), v && a.enabled && await import("./identify-BGYh2dVo.js").then((e) => e.identify(i, v, null, !0)).catch(() => !1), await i.loadSession().catch(() => null), i.state.get().session || h(i.options.project), x && !p(i)) return y(), null;
|
|
28
|
+
let w = await S, { installDiagnostics: T, mountWidget: E } = w;
|
|
29
|
+
if (x && Object.assign(w.en, (await import("./late-words-80_VWt8S.js").then((e) => e.n)).LATE), await C, s()) return null;
|
|
30
|
+
let D = T({
|
|
31
|
+
console: a.features.console_capture,
|
|
32
|
+
network: a.features.network_capture,
|
|
33
|
+
endpoint: i.endpoint
|
|
34
|
+
}), O = () => {
|
|
35
|
+
m(), r(!1);
|
|
36
|
+
}, k;
|
|
37
|
+
try {
|
|
38
|
+
k = E(i, () => (g([t() + 1, Date.now()]), O()), O);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw D(), e;
|
|
41
|
+
}
|
|
42
|
+
let A = setTimeout(g, 3e4, null), j = _(i, b, m, y), M = i.state.get().config, N = i.state.subscribe((e) => {
|
|
43
|
+
e.config && e.config !== M && c.ignore((M = e.config).pages?.ignored_query_params);
|
|
44
|
+
});
|
|
45
|
+
return i.emit("ready", { session: i.state.get().session }), Object.assign(() => {
|
|
46
|
+
clearTimeout(A), j(), N();
|
|
47
|
+
for (let e of [k, D]) try {
|
|
48
|
+
e();
|
|
49
|
+
} catch (e) {
|
|
50
|
+
console.warn("[CommentKit] hide() failed.", e);
|
|
51
|
+
}
|
|
52
|
+
}, { attach: () => k.attach?.() });
|
|
53
|
+
}
|
|
54
|
+
function h(e) {
|
|
55
|
+
let t = `commentkit:draft:v2:${e}:`;
|
|
56
|
+
try {
|
|
57
|
+
for (let e = localStorage.length - 1; e >= 0; e--) {
|
|
58
|
+
let n = localStorage.key(e);
|
|
59
|
+
n?.startsWith(t) && n.includes("~", t.length) && localStorage.removeItem(n);
|
|
60
|
+
}
|
|
61
|
+
} catch {}
|
|
62
|
+
}
|
|
63
|
+
function g(e) {
|
|
64
|
+
try {
|
|
65
|
+
e ? localStorage.setItem(i, JSON.stringify(e)) : localStorage.removeItem(i);
|
|
66
|
+
} catch {}
|
|
67
|
+
}
|
|
68
|
+
function _(e, t, n, r) {
|
|
69
|
+
let i = Date.now(), a = () => {
|
|
70
|
+
document.visibilityState === "hidden" || Date.now() - i < 15e3 || (i = Date.now(), e.loadConfig().then((i) => {
|
|
71
|
+
d(i) || f(i) && !p(e) ? (n(), r()) : i.enabled || t || f(i) || n();
|
|
72
|
+
}, () => void 0));
|
|
73
|
+
}, o = setInterval(a, 6e4);
|
|
74
|
+
return document.addEventListener("visibilitychange", a), () => {
|
|
75
|
+
clearInterval(o), document.removeEventListener("visibilitychange", a);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function v(e, t) {
|
|
79
|
+
let n = e.state.get().config;
|
|
80
|
+
if (n && (d(n) || f(n))) return;
|
|
81
|
+
let r = t instanceof s;
|
|
82
|
+
console.warn(r ? `[CommentKit] The widget could not start: ${t.message} (${t.code}). See https://commentkit.dev/docs/errors#${t.code}` : "[CommentKit] The widget could not start; your page is not affected. See https://commentkit.dev/docs/troubleshooting", t), r && e.emit("error", { error: t }), (!r || t.status >= 500) && e.reportCrash(t, "start");
|
|
83
|
+
}
|
|
84
|
+
function y(e, t) {
|
|
85
|
+
import("./report-DaVuoRYS.js").then((n) => n.reportStart(e, t)).catch(() => void 0);
|
|
86
|
+
}
|
|
87
|
+
var b = "See https://commentkit.dev/docs/";
|
|
88
|
+
function x(e, ...t) {
|
|
89
|
+
let [n, r] = t, i = {
|
|
90
|
+
key: `init() needs your publishable project key, which starts with pk_live_ or pk_test_ (${n ? "the one given is not one" : "none was given"}), so the widget stays off. Copy it from the website's Settings → Install in CommentKit and pass it as init({ project: "pk_live_…" }) or data-project="pk_live_…". ${b}quickstart`,
|
|
91
|
+
copy: `CommentKit was added twice: version ${String(n)} is already running on this page, so this copy (${a}) stays off. Add it once, with either the npm package or the script tag, not both. ${b}troubleshooting`,
|
|
92
|
+
project: `init() was called again with another project (${String(n)}) while ${String(r)} is running; the first one stays. Call destroy() on every handle of the first one before starting another project. ${b}troubleshooting`,
|
|
93
|
+
cooling: `The widget is hidden for a few hours on this browser after 3 crashes in a row. Cmd/Ctrl+Shift+K or show() brings it back now. ${b}troubleshooting`
|
|
94
|
+
};
|
|
95
|
+
console.warn(`[CommentKit] ${i[e]}`);
|
|
96
|
+
}
|
|
97
|
+
export { x as explain, v as failed, h as forgetSignedIn, m as mount, y as reportStart };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { b as e } from "./client-7eVxvg5j.js";
|
|
2
|
+
import { r as t } from "./page-key-HSY3Lze5.js";
|
|
3
|
+
import { t as n } from "./pkce-CfZhiNBi.js";
|
|
4
|
+
import { t as r } from "./locale-D8Q4Q2Nt.js";
|
|
5
|
+
// src/core/signin.ts
|
|
6
|
+
function i(e = navigator.userAgent) {
|
|
7
|
+
return /FBAN|FBAV|Instagram|Line\/|WhatsApp|Snapchat|LinkedInApp|Slack|Twitter|MicroMessenger|; wv\)|GSA\//i.test(e);
|
|
8
|
+
}
|
|
9
|
+
var a = "popup=yes,width=460,height=680,left=120,top=80", o = 500, s = 6e5, c = (e) => `commentkit:pkce:${e.projectKey}`;
|
|
10
|
+
function l() {
|
|
11
|
+
return (document.querySelector("[data-commentkit-host]")?.shadowRoot?.querySelector(".ck-root"))?.getAttribute("lang") || r();
|
|
12
|
+
}
|
|
13
|
+
async function u(t, r) {
|
|
14
|
+
let o = e(48), s = e(24), c = await n(o), u = r.mode ?? "auto", d = u === "redirect" || u === "auto" && i(), h = t.signInLink, g = l(), _ = f(t, c, s, r.share ?? null, d ? location.href : null, h, g);
|
|
15
|
+
if (d) return t.signInLink = null, p(t, _, o, s);
|
|
16
|
+
let v = window.open(_.toString(), "commentkit-signin", a);
|
|
17
|
+
if (!v) return u === "auto" ? (t.signInLink = null, p(t, f(t, c, s, r.share ?? null, location.href, h, g), o, s)) : "popup_blocked";
|
|
18
|
+
t.signInLink = null;
|
|
19
|
+
let y = await m(t, v, s);
|
|
20
|
+
return y ? await t.exchange(y, o) ? "signed_in" : "failed" : "cancelled";
|
|
21
|
+
}
|
|
22
|
+
async function d(e) {
|
|
23
|
+
let n = new URL(location.href), r = n.searchParams.get("ck_code"), i = n.searchParams.get("ck_state");
|
|
24
|
+
if (!r || !i) return !1;
|
|
25
|
+
history.replaceState(history.state, "", t(location.href, /^ck_(code|state)$/));
|
|
26
|
+
let a = null;
|
|
27
|
+
try {
|
|
28
|
+
a = JSON.parse(sessionStorage.getItem(c(e)) ?? "null"), sessionStorage.removeItem(c(e));
|
|
29
|
+
} catch {
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
32
|
+
return !a?.verifier || a.state !== i ? !1 : e.exchange(r, a.verifier);
|
|
33
|
+
}
|
|
34
|
+
function f(e, t, n, r, i, a = null, o = l()) {
|
|
35
|
+
let s = new URL(e.authorize ?? "/widget/connect", e.endpoint), c = a ? new URL("guest", s) : s;
|
|
36
|
+
return c.search = new URLSearchParams({
|
|
37
|
+
key: e.projectKey,
|
|
38
|
+
origin: e.origin,
|
|
39
|
+
code_challenge: t,
|
|
40
|
+
code_challenge_method: "S256",
|
|
41
|
+
state: n,
|
|
42
|
+
locale: o,
|
|
43
|
+
...r ? { share: r } : {},
|
|
44
|
+
...i ? { return_to: i } : {}
|
|
45
|
+
}).toString(), a && (c.hash = `signin=${encodeURIComponent(a)}`), c;
|
|
46
|
+
}
|
|
47
|
+
function p(e, t, n, r) {
|
|
48
|
+
try {
|
|
49
|
+
sessionStorage.setItem(c(e), JSON.stringify({
|
|
50
|
+
verifier: n,
|
|
51
|
+
state: r
|
|
52
|
+
}));
|
|
53
|
+
} catch {
|
|
54
|
+
return "failed";
|
|
55
|
+
}
|
|
56
|
+
return location.assign(t.toString()), "redirecting";
|
|
57
|
+
}
|
|
58
|
+
function m(e, t, n) {
|
|
59
|
+
let r = [new URL(e.endpoint).origin, new URL(e.authorize ?? e.endpoint).origin];
|
|
60
|
+
return new Promise((e) => {
|
|
61
|
+
let i = !1, a = Date.now(), c = (t) => {
|
|
62
|
+
i || (i = !0, window.removeEventListener("message", l), clearInterval(d), e(t));
|
|
63
|
+
}, l = (e) => {
|
|
64
|
+
if (e.source !== t || !r.includes(e.origin)) return;
|
|
65
|
+
let i = e.data;
|
|
66
|
+
i?.type === "commentkit:auth" && i.state === n && typeof i.code == "string" && c(i.code);
|
|
67
|
+
};
|
|
68
|
+
window.addEventListener("message", l);
|
|
69
|
+
let u = null, d = setInterval(() => {
|
|
70
|
+
if (Date.now() - a > s) return c(null);
|
|
71
|
+
t.closed && (u ?? (u = Date.now())), u !== null && Date.now() - u > 1e3 && c(null);
|
|
72
|
+
}, o);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export { f as authorizeUrl, d as completeRedirect, u as signIn, l as widgetLocale };
|