@commentkit/comment-kit 1.5.1 → 2.0.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.
Files changed (141) hide show
  1. package/CHANGELOG.md +281 -582
  2. package/README.md +334 -154
  3. package/SECURITY.md +47 -46
  4. package/dist/node/THIRD_PARTY_NOTICES.txt +56 -0
  5. package/dist/node/browser.js +17 -0
  6. package/dist/node/cli/api.js +226 -0
  7. package/dist/node/cli/bin.js +18 -0
  8. package/dist/node/cli/credentials.js +268 -0
  9. package/dist/node/cli/doctor.js +725 -0
  10. package/dist/node/cli/format.js +54 -0
  11. package/dist/node/cli/init.js +372 -0
  12. package/dist/node/cli/main.js +519 -0
  13. package/dist/node/cli/mcp.js +114 -0
  14. package/dist/node/cli/open.js +20 -0
  15. package/dist/node/plugins/astro-B5y1Gtbf.js +31 -0
  16. package/dist/node/plugins/astro.js +26 -0
  17. package/dist/node/plugins/git-BIXLbL3f.js +92 -0
  18. package/dist/node/plugins/jsx-Bg4BdSph.js +7958 -0
  19. package/dist/node/plugins/next.js +48 -0
  20. package/dist/node/plugins/options-THop1K92.js +71 -0
  21. package/dist/node/plugins/transform-CKiAuSbk.js +1155 -0
  22. package/dist/node/plugins/vite-BdAYUW10.js +74 -0
  23. package/dist/node/plugins/vite.js +1 -0
  24. package/dist/node/plugins/webpack-R2U2DLlY.js +35 -0
  25. package/dist/node/plugins/webpack-loader.cjs +21 -0
  26. package/dist/node/plugins/webpack-loader.js +18 -0
  27. package/dist/node/plugins/webpack.js +1 -0
  28. package/dist/node/shared/endpoint.js +26 -0
  29. package/dist/node/shared/format.js +63 -0
  30. package/dist/node/types/astro.d.ts +11 -0
  31. package/dist/node/types/next.d.ts +34 -0
  32. package/dist/node/types/options.d.ts +59 -0
  33. package/dist/node/types/vite.d.ts +11 -0
  34. package/dist/node/types/webpack-loader.d.ts +22 -0
  35. package/dist/node/types/webpack.d.ts +27 -0
  36. package/dist/npm/THIRD_PARTY_NOTICES.txt +6 -6
  37. package/dist/npm/chunks/AgentSend-DxRJIYiz.js +68 -0
  38. package/dist/npm/chunks/Checklist-CnlfeSbc.js +282 -0
  39. package/dist/npm/chunks/Composer-B1bBVszY.js +725 -0
  40. package/dist/npm/chunks/Guest-vvNPz8h-.js +267 -0
  41. package/dist/npm/chunks/MarkupEditor-VCOXh9d2.js +338 -0
  42. package/dist/npm/chunks/Panel-F37vIL1K.js +1206 -0
  43. package/dist/npm/chunks/Settings-BGoZS2iV.js +231 -0
  44. package/dist/npm/chunks/Shortcuts-B2OMvczr.js +62 -0
  45. package/dist/npm/chunks/StyleEditor-CJ_d8Huf.js +46 -0
  46. package/dist/npm/chunks/StylePanel-yQzHHlY7.js +199 -0
  47. package/dist/npm/chunks/TaskFields-fmy6_HtK.js +289 -0
  48. package/dist/npm/chunks/ThreadCard-D51slKST.js +1113 -0
  49. package/dist/npm/chunks/Viewer-BOBadqmC.js +111 -0
  50. package/dist/npm/chunks/{agent-CqDO3JMA.js → agent-C1OQzBAm.js} +20 -21
  51. package/dist/npm/chunks/{anchor-OCQnjp_6.js → anchor-BsQNVkHj.js} +109 -87
  52. package/dist/npm/chunks/{ar-BQ9K9Oqf.js → ar-CAJ3XT8e.js} +73 -20
  53. package/dist/npm/chunks/card-bits-CAnzrqx3.js +53 -0
  54. package/dist/npm/chunks/{client-dZeNdizE.js → client-kNAo2TTG.js} +292 -285
  55. package/dist/npm/chunks/{colors-CAjY4jxf.js → colors-CWAn_swA.js} +1 -2
  56. package/dist/npm/chunks/confetti-CkBdSu19.js +49 -0
  57. package/dist/npm/chunks/context-B8UAzve0.js +20 -0
  58. package/dist/npm/chunks/context-BuMl7A07.js +48 -0
  59. package/dist/npm/chunks/{de-CcPi8xdC.js → de-Dl18G48t.js} +64 -19
  60. package/dist/npm/chunks/dialog-GO04oC3D.js +3 -0
  61. package/dist/npm/chunks/dpop-U48QIQd7.js +96 -0
  62. package/dist/npm/chunks/drafts-B0ctr1g9.js +21 -0
  63. package/dist/npm/chunks/{es-DXgkjDCG.js → es-Dxk79lS9.js} +64 -19
  64. package/dist/npm/chunks/extension-CKFpPWmi.js +62 -0
  65. package/dist/npm/chunks/{extension-BFkXOmX5.js → extension-E81hWyiT.js} +21 -14
  66. package/dist/npm/chunks/files-DyD5BZgp.js +114 -0
  67. package/dist/npm/chunks/{fr-IjJaUbWh.js → fr-8BebGKYD.js} +121 -76
  68. package/dist/npm/chunks/{hi-BhKQK2MU.js → hi-BIN6Yy_p.js} +65 -20
  69. package/dist/npm/chunks/{html2canvas-pro.esm-lgs6tb4C.js → html2canvas-pro.esm-B7b8p5Wr.js} +608 -528
  70. package/dist/npm/chunks/i18n-DOBt8e9U.js +936 -0
  71. package/dist/npm/chunks/identify-CN-3xzqL.js +106 -0
  72. package/dist/npm/chunks/{it-DKiSCkiD.js → it-Cr6EwpPQ.js} +83 -38
  73. package/dist/npm/chunks/{ja-BI1WagDg.js → ja-Iy3s5aur.js} +62 -17
  74. package/dist/npm/chunks/late-words-B2bmZceJ.js +12 -0
  75. package/dist/npm/chunks/live-CelVeZfP.js +85 -0
  76. package/dist/npm/chunks/locale-D8Q4Q2Nt.js +26 -0
  77. package/dist/npm/chunks/{lock-C82sC17d.js → lock-B1JLlOhz.js} +0 -1
  78. package/dist/npm/chunks/{nl-CJw3VUQ5.js → nl-B84WHqqe.js} +65 -20
  79. package/dist/npm/chunks/page-key-DepmJzC1.js +62 -0
  80. package/dist/npm/chunks/{pick-dDDLxCDI.js → pick-yTyqtxN0.js} +46 -46
  81. package/dist/npm/chunks/pkce-ChKGSW_4.js +8 -0
  82. package/dist/npm/chunks/placement-BF_HOUDD.js +74 -0
  83. package/dist/npm/chunks/privacy-BWUGlHw5.js +57 -0
  84. package/dist/npm/chunks/{pt-BR-CjBolC5g.js → pt-BR-DOkdlfoe.js} +64 -19
  85. package/dist/npm/chunks/{realtime-D22tI_AS.js → realtime-C79zF50C.js} +16 -15
  86. package/dist/npm/chunks/report-CrIqQZDI.js +44 -0
  87. package/dist/npm/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  88. package/dist/npm/chunks/show-BgVC8gWY.js +97 -0
  89. package/dist/npm/chunks/signin-Dd1rb2BP.js +75 -0
  90. package/dist/npm/chunks/{source-BQS2_xfB.js → source-pXVve2Cx.js} +2 -3
  91. package/dist/npm/chunks/src-BTMy4Gyc.js +208 -0
  92. package/dist/npm/chunks/start-DtVlpt7p.js +1878 -0
  93. package/dist/npm/chunks/states-sfTbjZz8.js +3 -0
  94. package/dist/npm/chunks/upload-MgPYqPyE.js +42 -0
  95. package/dist/npm/chunks/uploads-D49mywwz.js +1146 -0
  96. package/dist/npm/chunks/wrap-Bl0gbnFa.js +69 -0
  97. package/dist/npm/chunks/{zh-CN-BrZGx2S0.js → zh-CN-Z5fQCb7G.js} +63 -18
  98. package/dist/npm/element.js +59 -23
  99. package/dist/npm/headless.js +7 -3
  100. package/dist/npm/index.js +3 -3
  101. package/dist/npm/react.js +19 -13
  102. package/dist/npm/svelte.js +29 -14
  103. package/dist/npm/types/adapters/react.d.ts +4 -1
  104. package/dist/npm/types/adapters/svelte.d.ts +4 -1
  105. package/dist/npm/types/adapters/vue.d.ts +35 -2
  106. package/dist/npm/types/anchor/index.d.ts +19 -0
  107. package/dist/npm/types/capture/privacy.d.ts +14 -0
  108. package/dist/npm/types/core/api.d.ts +20 -1
  109. package/dist/npm/types/core/auth.d.ts +47 -14
  110. package/dist/npm/types/core/client.d.ts +60 -4
  111. package/dist/npm/types/core/page-key.d.ts +42 -0
  112. package/dist/npm/types/core/types.d.ts +87 -4
  113. package/dist/npm/types/element.d.ts +17 -7
  114. package/dist/npm/types/headless.d.ts +2 -1
  115. package/dist/npm/types/index.d.ts +16 -6
  116. package/dist/npm/vue.js +45 -11
  117. package/package.json +95 -21
  118. package/dist/npm/chunks/AgentSend-DjFZSC0S.js +0 -64
  119. package/dist/npm/chunks/Checklist-BEz4IZdT.js +0 -259
  120. package/dist/npm/chunks/Composer-D1wbmdjF.js +0 -681
  121. package/dist/npm/chunks/Guest-CtyRy8Kz.js +0 -170
  122. package/dist/npm/chunks/MarkupEditor-CPH4yKx4.js +0 -334
  123. package/dist/npm/chunks/Panel-DSoUAlbQ.js +0 -863
  124. package/dist/npm/chunks/Settings-C_qV4n7J.js +0 -206
  125. package/dist/npm/chunks/Shortcuts-ChnaribX.js +0 -60
  126. package/dist/npm/chunks/StyleEditor-DqZd6C5o.js +0 -44
  127. package/dist/npm/chunks/StylePanel-DMC3riYK.js +0 -199
  128. package/dist/npm/chunks/TaskFields-BfjjllMx.js +0 -272
  129. package/dist/npm/chunks/ThreadCard-DmKAelSL.js +0 -1026
  130. package/dist/npm/chunks/Viewer-mw69qSI5.js +0 -110
  131. package/dist/npm/chunks/card-bits-C7bIk5KX.js +0 -126
  132. package/dist/npm/chunks/confetti-DKeKR7-6.js +0 -41
  133. package/dist/npm/chunks/drafts-CpQdHhcK.js +0 -51
  134. package/dist/npm/chunks/extension-Gvei3opb.js +0 -54
  135. package/dist/npm/chunks/i18n-DAJGndZ2.js +0 -904
  136. package/dist/npm/chunks/live-MvvBdoGd.js +0 -34
  137. package/dist/npm/chunks/report-DoDVi1qT.js +0 -28
  138. package/dist/npm/chunks/src-C_oUnL0i.js +0 -150
  139. package/dist/npm/chunks/start-C5-rebEU.js +0 -1783
  140. package/dist/npm/chunks/upload-CzPAjktW.js +0 -42
  141. package/dist/npm/chunks/uploads-tpLjiJdH.js +0 -541
@@ -0,0 +1,57 @@
1
+ var e = "iframe,[data-commentkit],[data-commentkit-host],[data-commentkit-ui],[data-commentkit-panel],[data-commentkit-redact],[data-html2canvas-ignore],input[type=\"password\"],input[type=\"hidden\"],input[type=\"email\" i],input[type=\"tel\" i]," + [
2
+ "current-password",
3
+ "new-password",
4
+ "one-time-code",
5
+ "email",
6
+ "tel",
7
+ "street-address",
8
+ "address-line1",
9
+ "address-line2",
10
+ "address-line3",
11
+ "postal-code",
12
+ "name",
13
+ "given-name",
14
+ "family-name",
15
+ "username",
16
+ "bday",
17
+ "organization"
18
+ ].map((e) => `[autocomplete~="${e}" i]`).join(",") + "," + [
19
+ "cc-",
20
+ "tel-",
21
+ "bday-"
22
+ ].map((e) => `[autocomplete^="${e}" i],[autocomplete*=" ${e}" i]`).join(","), t = "input,textarea,select", n = `${t},[contenteditable]:not([contenteditable="false" i])`, r = {
23
+ redact: [],
24
+ strict: !1
25
+ };
26
+ function i(e = [], t) {
27
+ r.redact = e.filter(c), r.strict = t === "strict", r.selector = void 0;
28
+ }
29
+ var a = (e) => e ? e === "strict" : r.strict;
30
+ function o(t, i) {
31
+ return !t && i === void 0 ? r.selector ?? (r.selector = o(r.redact, r.strict)) : [
32
+ e,
33
+ ...i ? [n] : [],
34
+ ...(t ?? []).filter(c)
35
+ ].join(",");
36
+ }
37
+ function s(t, n = e) {
38
+ try {
39
+ let e = t;
40
+ for (; e;) {
41
+ if (e.closest(n)) return !0;
42
+ let t = e.getRootNode();
43
+ e = t instanceof ShadowRoot ? t.host : null;
44
+ }
45
+ return !1;
46
+ } catch {
47
+ return !0;
48
+ }
49
+ }
50
+ function c(e) {
51
+ try {
52
+ return document.createDocumentFragment().querySelector(e), !0;
53
+ } catch {
54
+ return !1;
55
+ }
56
+ }
57
+ export { s as a, o as c, i, e as n, a as o, n as r, c as s, t };
@@ -1,4 +1,4 @@
1
- //#region src/ui/locales/pt-BR.ts
1
+ // src/ui/locales/pt-BR.ts
2
2
  var e = {
3
3
  comment: "Comentar",
4
4
  commentHint: "Clique em qualquer parte da página para comentar",
@@ -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: "Não incluir a captura",
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: "Desfocar",
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. Clique no botão de novo ou permita pop-ups neste site.",
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: "Pronto para revisão",
70
- closeThread: "Fechar sem mudanças",
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 este feedback, mas não tem permissão para responder.",
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,14 +169,26 @@ 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 cliente expirou. Peça um novo à equipe.",
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}.",
175
+ verifyLookFor: "Procure um e-mail da CommentKit: “Seu código para {website}”. Se não estiver lá, confira o spam.",
176
+ signInLinkTitle: "Que bom ver você de novo em {project}",
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ê.",
178
+ notNow: "Agora não",
170
179
  verifyCode: "Código de 6 dígitos",
171
180
  verifyPublish: "Publicar comentário",
172
181
  verifyResend: "Enviar um novo código",
173
182
  verifyResent: "Enviamos um novo código. Ele pode levar um minuto para chegar.",
174
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.",
175
192
  verifyWrong: "Esse código não está certo. Confira o e-mail ou peça um novo código.",
176
193
  verifyDifferent: "Usar outro e-mail",
177
194
  verifyExpired: "Este código não é mais válido. Seu comentário continua salvo neste dispositivo.",
@@ -193,11 +210,12 @@ var e = {
193
210
  resolvedToast: "{ref} resolvido.",
194
211
  undoTooLate: "Não dá mais para desfazer. Reabra {ref} se ainda precisar de ajustes.",
195
212
  guestIntro: "Seu nome e e-mail, para que a equipe possa responder. Não precisa de conta.",
196
- guestPrivacy: "Seu nome, e-mail e comentários vão para a equipe responsável por este site e para a CommentKit, que opera esta ferramenta de comentários para essa equipe.",
213
+ 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.",
197
214
  guestPrivacyLink: "Aviso de privacidade",
215
+ guestPrivacySite: "Aviso de privacidade de {website}",
198
216
  guestNameMissing: "Digite seu nome para a equipe saber quem escreveu isto.",
199
217
  guestEmailInvalid: "Confira seu e-mail, por exemplo nome@empresa.com.",
200
- verifyLinkExpired: "Este link de cliente expirou. Peça um novo a quem o enviou. Seu comentário está salvo neste dispositivo.",
218
+ verifyLinkExpired: "Este link de revisão expirou. Peça um novo a quem o enviou. Seu comentário está salvo neste dispositivo.",
201
219
  verifyRemoved: "A equipe removeu seu acesso a este site. Peça para adicionarem você de novo.",
202
220
  writeAgain: "Escrever de novo",
203
221
  pendingNote: "Seu comentário está esperando o código que enviamos para {email}.",
@@ -207,12 +225,13 @@ var e = {
207
225
  serverError: "Algo deu errado no CommentKit. Tente de novo em instantes.",
208
226
  noAccess: "Você não tem acesso ao feedback deste site. Peça à equipe para convidar você de novo.",
209
227
  originNotAllowed: "Ainda não é possível enviar feedback deste endereço. Peça à equipe para adicioná-lo ao projeto.",
210
- forbidden: "Você não tem permissão para fazer isso.",
228
+ forbidden: "Você não tem permissão para fazer isso. Peça à equipe se precisar.",
211
229
  tooFast: "Muitas ações de uma vez. Aguarde um momento e tente de novo.",
212
230
  sentWithoutScreenshot: "Enviado, mas sem a captura de tela: não foi possível enviá-la.",
213
231
  sentWithoutFiles: "Enviado, mas alguns arquivos não puderam ser anexados. Você pode adicioná-los em uma resposta.",
214
232
  replyFailed: "Sua resposta ainda não foi enviada. Ela continua aqui, então você pode tentar de novo.",
215
233
  taskDetails: "Detalhes da tarefa",
234
+ taskDetailsSet: "Detalhes da tarefa adicionados",
216
235
  priority: "Prioridade",
217
236
  priority_none: "Sem prioridade",
218
237
  priority_low: "Baixa",
@@ -231,9 +250,9 @@ var e = {
231
250
  formatCode: "Código",
232
251
  reopenedToast: "{ref} está aberto de novo.",
233
252
  editedToast: "Comentário atualizado.",
234
- editConflict: "Alguém mudou isto agora há pouco — atualizado.",
253
+ editConflict: "Outra pessoa editou isto agora há pouco. A versão dela está aparecendo agora, então faça sua alteração de novo.",
235
254
  threadDeleted: "{ref} excluído.",
236
- detailCreated: "Deixado em",
255
+ detailCreated: "Publicado em",
237
256
  detailResolved: "Resolvido em",
238
257
  detailPage: "Página",
239
258
  detailBrowser: "Navegador",
@@ -259,8 +278,9 @@ var e = {
259
278
  results_one: "{n} resultado",
260
279
  results: "{n} resultados",
261
280
  resultsMore: "{n}+ resultados",
281
+ firstPageThreads: "Mostrando os primeiros {n} comentários desta página",
262
282
  showMore: "Mostrar mais",
263
- livePaused: "Atualizações ao vivo pausadas. O feedback novo aparece quando você se reconectar ou recarregar a página.",
283
+ livePaused: "Sem conexão. O feedback novo aparece quando você se reconectar.",
264
284
  clearSearch: "Limpar busca",
265
285
  filtersOn_one: "{n} filtro ativo",
266
286
  filtersOn: "{n} filtros ativos",
@@ -293,6 +313,7 @@ var e = {
293
313
  nextImage: "Próxima imagem",
294
314
  attachments: "Anexos",
295
315
  openImage: "Abrir {name}",
316
+ openImageMore: "Abrir {name} e mais {n}",
296
317
  uploading: "Enviando {name}",
297
318
  retryUpload: "Tentar enviar {name} de novo",
298
319
  uploadFailedShort: "Este arquivo não foi enviado.",
@@ -312,7 +333,7 @@ var e = {
312
333
  checklist: "Checklist",
313
334
  description: "Descrição",
314
335
  checklistProgress: "{n} de {total} feitos",
315
- checklistAdd: "Adicione um item e pressione Enter",
336
+ checklistAdd: "Adicione um item",
316
337
  removeItem: "Remover {item}",
317
338
  addChecklist: "Adicionar um checklist",
318
339
  checklistShort_one: "{done}/{n} feito",
@@ -333,8 +354,8 @@ var e = {
333
354
  previousThread: "Anterior",
334
355
  nextThread: "Próximo",
335
356
  showOnPage: "Mostrar na página",
336
- doubleClickHint: "Clique duas vezes fora da caixa de entrada para fechá-la, ou pressione Esc.",
337
- spot_element: "Em um elemento",
357
+ doubleClickHint: "Para fechar a caixa de entrada, pressione Esc ou clique duas vezes na página.",
358
+ spot_element: "Em um ponto",
338
359
  spot_region: "Em uma área",
339
360
  spot_text: "Em um texto selecionado",
340
361
  spot_page: "Na página inteira",
@@ -357,7 +378,31 @@ var e = {
357
378
  styleDone: "Pronto",
358
379
  stylePrevious: "Valor anterior de {property}",
359
380
  styleNext: "Próximo valor de {property}",
360
- styleEdit: "Editar as mudanças de estilo sugeridas"
381
+ styleEdit: "Editar as mudanças de estilo sugeridas",
382
+ shortcutsSetting: "Atalhos de uma tecla",
383
+ 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.",
384
+ movePin: "Mover marcador",
385
+ movePinHint: "Clique no novo ponto para este comentário, ou vá até ele com Tab e pressione Enter · Esc para cancelar",
386
+ movePinHintTouch: "Toque no novo ponto para este comentário",
387
+ unread: "Não lido",
388
+ otherKind: "{actor} fez uma alteração",
389
+ unitKB: "{n} KB",
390
+ unitMB: "{n} MB",
391
+ unitGB: "{n} GB",
392
+ signOff: "Aprovação da página",
393
+ signOffAsk: "Gostou de como esta página ficou?",
394
+ signOffApprove: "Aprovar esta página",
395
+ signOffAgain: "Aprovar de novo",
396
+ signOffNote: "Adicionar uma nota (opcional)",
397
+ signOffDone: "Aprovada. A equipe já foi avisada.",
398
+ signOffMine: "Você aprovou esta página em {date}.",
399
+ signOffBy: "Aprovada por {name}",
400
+ signOffByMore: "Aprovada por {name} e mais {n} pessoas",
401
+ signOffByMore_one: "Aprovada por {name} e mais {n} pessoa",
402
+ signOffNewFeedback: "Chegaram comentários novos depois que esta página foi aprovada.",
403
+ signOffNewCommit: "Esta página mudou desde que foi aprovada.",
404
+ signOffOpen: "{n} comentários desta página ainda estão abertos. Você pode aprovar mesmo assim.",
405
+ signOffOpen_one: "{n} comentário desta página ainda está aberto. Você pode aprovar mesmo assim.",
406
+ signOffWithdraw: "Retirar a aprovação"
361
407
  };
362
- //#endregion
363
408
  export { e as default };
@@ -1,5 +1,5 @@
1
- import { n as e, r as t, t as n } from "./rolldown-runtime-Y_bBpyJl.js";
2
- //#region node_modules/pusher-js/dist/web/pusher.js
1
+ import { n as e, r as t, t as n } from "./rolldown-runtime-QGRDbDUS.js";
2
+ // node_modules/pusher-js/dist/web/pusher.js
3
3
  var r = /* @__PURE__ */ n(((e, t) => {
4
4
  (function(n, r) {
5
5
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.Pusher = r() : n.Pusher = r();
@@ -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), (e) => n(e, null));
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
- }), a = i.subscribe(`presence-ck.project.${e.projectId}`);
2488
- a.bind("feedback.changed", (t) => e.onFeedback(t));
2489
- let o = () => e.onPresence?.(a.members?.count ?? 0);
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
- ]) a.bind(e, o);
2496
+ ]) o.bind(e, s);
2495
2497
  if (e.onTeam) {
2496
- let t = i.subscribe(`presence-ck.team.${e.projectId}`), n = () => {
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,16 +2513,15 @@ async function a(e) {
2511
2513
  "pusher:member_removed"
2512
2514
  ]) t.bind(e, n);
2513
2515
  }
2514
- return i.subscribe(`private-ck.inbox.${e.inbox}`).bind("inbox.changed", (t) => {
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
- }), i.connection?.bind("state_changed", ({ current: t }) => {
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
- i.disconnect(), e.onPresence?.(0), e.onTeam?.([]);
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
- //#endregion
2526
2527
  export { i as t };
@@ -0,0 +1,44 @@
1
+ import { d as e, i as t, n } from "./client-kNAo2TTG.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 };
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
3
3
  let r = {};
4
4
  for (var i in e) t(r, i, {
@@ -16,5 +16,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
16
16
  value: n,
17
17
  enumerable: !0
18
18
  }) : o, n));
19
- //#endregion
20
19
  export { s as n, l as r, o as t };
@@ -0,0 +1,97 @@
1
+ import { a as e, i as t, n, r } from "./src-BTMy4Gyc.js";
2
+ import { i, l as a, v as o } from "./client-kNAo2TTG.js";
3
+ import { n as s } from "./page-key-DepmJzC1.js";
4
+ // src/core/show.ts
5
+ var c;
6
+ function l() {
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
+ a(s);
15
+ var u = (e) => e.disabled_reason === "version_blocked", d = (e) => e.disabled_reason === "not_live", f = (e) => {
16
+ let t = e.state.get().session;
17
+ return !!t && t.role !== "guest";
18
+ };
19
+ async function p(n, i, a, o, p, _, v = () => void 0) {
20
+ let y = (c ?? (c = l())) || a;
21
+ if (u(i)) return v(), null;
22
+ let b = d(i);
23
+ if (b && !n.auth.hasSession() && !t()) return v(), null;
24
+ if (!i.enabled && !y && !b) return null;
25
+ s.ignore(i.pages?.ignored_query_params);
26
+ let x = import("./start-DtVlpt7p.js").then((e) => e.t), S = x.then((e) => e.setLocale(n.options.locale));
27
+ if (x.catch(() => void 0), S.catch(() => void 0), await n.auth.completeRedirect().catch(() => !1), t() && await import("./extension-E81hWyiT.js").then((e) => e.extensionHandoff(n.auth)).catch(() => !1), _ && i.enabled && await import("./identify-CN-3xzqL.js").then((e) => e.identify(n, _, null, !0)).catch(() => !1), await n.loadSession().catch(() => null), n.state.get().session || m(n.options.project), b && !f(n)) return v(), null;
28
+ let C = await x, { installDiagnostics: w, mountWidget: T } = C;
29
+ if (b && Object.assign(C.en, (await import("./late-words-B2bmZceJ.js").then((e) => e.n)).LATE), await S, o()) return null;
30
+ let E = w({
31
+ console: i.features.console_capture,
32
+ network: i.features.network_capture,
33
+ endpoint: n.endpoint
34
+ }), D = () => {
35
+ p(), e(!1);
36
+ }, O;
37
+ try {
38
+ O = T(n, () => (h([r() + 1, Date.now()]), D()), D);
39
+ } catch (e) {
40
+ throw E(), e;
41
+ }
42
+ let k = setTimeout(h, 3e4, null), A = g(n, y, p, v), j = n.state.get().config, M = n.state.subscribe((e) => {
43
+ e.config && e.config !== j && s.ignore((j = e.config).pages?.ignored_query_params);
44
+ });
45
+ return n.emit("ready", { session: n.state.get().session }), Object.assign(() => {
46
+ clearTimeout(k), A(), M();
47
+ for (let e of [O, E]) try {
48
+ e();
49
+ } catch (e) {
50
+ console.warn("[CommentKit] hide() failed.", e);
51
+ }
52
+ }, { attach: () => O.attach?.() });
53
+ }
54
+ function m(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 h(e) {
64
+ try {
65
+ e ? localStorage.setItem(n, JSON.stringify(e)) : localStorage.removeItem(n);
66
+ } catch {}
67
+ }
68
+ function g(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
+ u(i) || d(i) && !f(e) ? (n(), r()) : i.enabled || t || d(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 _(e, t) {
79
+ let n = e.state.get().config;
80
+ if (n && (u(n) || d(n))) return;
81
+ let r = t instanceof o;
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 v(e, t) {
85
+ import("./report-CrIqQZDI.js").then((n) => n.reportStart(e, t)).catch(() => void 0);
86
+ }
87
+ var y = "See https://commentkit.dev/docs/";
88
+ function b(e, ...t) {
89
+ let [n, r] = t, a = {
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 Setup in your CommentKit project and pass it as init({ project: "pk_live_…" }) or data-project="pk_live_…". ${y}quickstart`,
91
+ copy: `CommentKit was added twice: version ${String(n)} is already running on this page, so this copy (${i}) stays off. Add it once, with either the npm package or the script tag, not both. ${y}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. ${y}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. ${y}troubleshooting`
94
+ };
95
+ console.warn(`[CommentKit] ${a[e]}`);
96
+ }
97
+ export { b as explain, _ as failed, m as forgetSignedIn, p as mount, v as reportStart };
@@ -0,0 +1,75 @@
1
+ import { b as e } from "./client-kNAo2TTG.js";
2
+ import { r as t } from "./page-key-DepmJzC1.js";
3
+ import { t as n } from "./pkce-ChKGSW_4.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 };
@@ -1,5 +1,5 @@
1
- import { s as e } from "./client-dZeNdizE.js";
2
- //#region src/anchor/source.ts
1
+ import { f as e } from "./client-kNAo2TTG.js";
2
+ // src/anchor/source.ts
3
3
  var t = /^[A-Za-z_$][\w$.-]*$/, n = /* @__PURE__ */ new Set([
4
4
  "src",
5
5
  "app",
@@ -142,5 +142,4 @@ function g(e) {
142
142
  let n = e.split(/[?#]/)[0].split(/[\\/]/).pop()?.replace(/\.[^.]+$/, "") ?? "";
143
143
  return t.test(n) ? n.slice(0, 120) : null;
144
144
  }
145
- //#endregion
146
145
  export { a as readSource };