@commentkit/comment-kit 0.6.7 → 0.6.9

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 (330) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +73 -45
  3. package/dist/angular.es.js +47 -3411
  4. package/dist/comment-kit.es.js +13 -3184
  5. package/dist/demo.es.js +395 -0
  6. package/dist/headless.es.js +4 -0
  7. package/dist/preact.es.js +79 -3443
  8. package/dist/qwik.es.js +79 -3443
  9. package/dist/react.es.js +80 -28447
  10. package/dist/shared/ShadowRootContext-Bv-4aElu.js +13 -0
  11. package/dist/shared/annotation-toolbar-pX17NLmJ.js +1104 -0
  12. package/dist/shared/bridge-DRE03N9X.js +174 -0
  13. package/dist/shared/button-By0hGrJK.js +505 -0
  14. package/dist/shared/button-group-CHfMRXyA.js +93 -0
  15. package/dist/shared/clamp-CcFVX0vC.js +55 -0
  16. package/dist/shared/comment-drawing-canvas-CYu5SwRf.js +126 -0
  17. package/dist/shared/comment-image-lightbox-0VdAs2iT.js +178 -0
  18. package/dist/shared/comment-kit-core-D0kY00St.js +3083 -0
  19. package/dist/shared/comment-kit-ui-D2j2gvnm.js +16685 -0
  20. package/dist/shared/comment-screenshot-annotator-BuojwviY.js +137 -0
  21. package/dist/shared/comment-screenshot-overlay-BZX0Vcb8.js +144 -0
  22. package/dist/shared/createReactComponent-BZHeRbD0.js +45 -0
  23. package/dist/shared/dev-export-panel-BLngcr5q.js +208 -0
  24. package/dist/shared/dev-grab-pDAfH2lr.js +203 -0
  25. package/dist/{core/dom-x9svfpMk.js → shared/dom-Bhf4WFtY.js} +2 -2
  26. package/dist/shared/element-selector-CtFzgHvq.js +852 -0
  27. package/dist/shared/errors-Bu5ajEmB.js +22 -0
  28. package/dist/shared/icons-BSHCWYO1.js +267 -0
  29. package/dist/shared/local-demo-context-BohlYbHt.js +6 -0
  30. package/dist/shared/mount-ui-CVivB_eQ.js +193 -0
  31. package/dist/{angular/pusher-Vs-W-c8I.js → shared/pusher-BEl7Qn-8.js} +93 -127
  32. package/dist/{core/realtime-C3_O7gi2.js → shared/realtime-BG_t_ze7.js} +75 -72
  33. package/dist/shared/resolveAriaLabelledBy-CIKpnjNJ.js +669 -0
  34. package/dist/shared/separator-DusFNTs-.js +3915 -0
  35. package/dist/shared/shadow-root-CmYXiSRR.js +135 -0
  36. package/dist/shared/styles-D_FEJZ9G.js +2 -0
  37. package/dist/shared/useLabelableId-DGbfdMi_.js +155 -0
  38. package/dist/shared/useValueChanged-DQXLia-2.js +92 -0
  39. package/dist/{angular/limits-AEqOBweE.js → shared/validation-C7QG8j7Z.js} +2 -28
  40. package/dist/{core/websocket-manager-D1_TEuy_.js → shared/websocket-manager-BTRqNTB7.js} +90 -148
  41. package/dist/solid.es.js +63 -3427
  42. package/dist/svelte.es.js +78 -3442
  43. package/dist/types/adapters/bridge.d.ts +1 -1
  44. package/dist/types/angular/index.d.ts +2 -2
  45. package/dist/types/core/comment-kit-core.d.ts +10 -1
  46. package/dist/types/core/local-demo.d.ts +59 -0
  47. package/dist/types/demo.d.ts +17 -0
  48. package/dist/types/headless.d.ts +8 -0
  49. package/dist/types/index.d.ts +14 -16
  50. package/dist/vue.es.js +80 -3443
  51. package/package.json +55 -37
  52. package/dist/angular/chunk-Cyg4N8Ue.js +0 -11
  53. package/dist/angular/comment-kit-ui-ClsgTVKj.js +0 -24898
  54. package/dist/angular/dom-Cx1nMbdI.js +0 -104
  55. package/dist/angular/mount-ui-EPLnH0YJ.js +0 -72
  56. package/dist/angular/realtime-VrKV0lPI.js +0 -567
  57. package/dist/angular/shadow-root-yMOaW9pk.js +0 -93
  58. package/dist/angular/styles-CMz7-p8x.js +0 -2
  59. package/dist/angular/widget-theme-CYPYAwhR.js +0 -24
  60. package/dist/comment-kit.css +0 -2
  61. package/dist/core/chunk-t7YoJN_i.js +0 -11
  62. package/dist/core/comment-kit-ui-BTYGcSK-.js +0 -24898
  63. package/dist/core/error-boundary-CN_BGsYl.js +0 -21
  64. package/dist/core/mount-ui-B6jipL2Z.js +0 -72
  65. package/dist/core/pusher-CizoY5NA.js +0 -2504
  66. package/dist/core/shadow-root-DAtdjHG2.js +0 -93
  67. package/dist/core/styles-ClRoB6ro.js +0 -2
  68. package/dist/core/widget-theme-BWDYr7VR.js +0 -24
  69. package/dist/preact/chunk-CZ0PdaaN.js +0 -11
  70. package/dist/preact/comment-kit-ui-nhY36fa4.js +0 -24898
  71. package/dist/preact/dom-_ULpq7rg.js +0 -104
  72. package/dist/preact/error-boundary-B4-Bfy3g.js +0 -21
  73. package/dist/preact/limits-C3ZEKcL_.js +0 -71
  74. package/dist/preact/mount-ui-Dri-RQe3.js +0 -72
  75. package/dist/preact/pusher-BP4kCufH.js +0 -2504
  76. package/dist/preact/realtime-COin_nJF.js +0 -567
  77. package/dist/preact/shadow-root-D-NcwruG.js +0 -93
  78. package/dist/preact/styles-D6i7be5-.js +0 -2
  79. package/dist/preact/widget-theme-B7Z2pbaA.js +0 -24
  80. package/dist/qwik/chunk-CKKKzG2Q.js +0 -11
  81. package/dist/qwik/comment-kit-ui-B2oSKreb.js +0 -24898
  82. package/dist/qwik/dom-Dm3gzBBJ.js +0 -104
  83. package/dist/qwik/error-boundary-C4hlYQwS.js +0 -21
  84. package/dist/qwik/limits-DK35yjGY.js +0 -71
  85. package/dist/qwik/mount-ui-DkvDtcft.js +0 -72
  86. package/dist/qwik/pusher-B1KgC4iB.js +0 -2504
  87. package/dist/qwik/realtime-DhfcBrwF.js +0 -567
  88. package/dist/qwik/shadow-root-PkjcnvPe.js +0 -93
  89. package/dist/qwik/styles-DmEmq5Lh.js +0 -2
  90. package/dist/qwik/widget-theme-lbPF3I0A.js +0 -24
  91. package/dist/react/chunk--MHYZ-zp.js +0 -12
  92. package/dist/react/limits-CpprSem3.js +0 -175
  93. package/dist/react/pusher-3dki8s2l.js +0 -2505
  94. package/dist/react/realtime-DGqScuox.js +0 -567
  95. package/dist/solid/chunk-B2NCWFvW.js +0 -11
  96. package/dist/solid/comment-kit-ui-B7GeN0T8.js +0 -24898
  97. package/dist/solid/dom-DqDH-Gml.js +0 -104
  98. package/dist/solid/error-boundary-9mimpbZA.js +0 -21
  99. package/dist/solid/limits-B_69IbLl.js +0 -71
  100. package/dist/solid/mount-ui-CTFITRP7.js +0 -72
  101. package/dist/solid/pusher-_RVNpj1f.js +0 -2504
  102. package/dist/solid/realtime-DbUJK4gU.js +0 -567
  103. package/dist/solid/shadow-root-CssU3bQb.js +0 -93
  104. package/dist/solid/styles-DbueS9xx.js +0 -2
  105. package/dist/solid/widget-theme-B4DJ14fI.js +0 -24
  106. package/dist/svelte/chunk-Pi70BKld.js +0 -11
  107. package/dist/svelte/comment-kit-ui-CKmdu0gr.js +0 -24898
  108. package/dist/svelte/dom-MyTrWzy_.js +0 -104
  109. package/dist/svelte/error-boundary-C3GWI_IX.js +0 -21
  110. package/dist/svelte/limits-CURF22v3.js +0 -71
  111. package/dist/svelte/mount-ui-N1vul-tl.js +0 -72
  112. package/dist/svelte/pusher-DN1BiUDw.js +0 -2504
  113. package/dist/svelte/realtime-M1CJbCBA.js +0 -567
  114. package/dist/svelte/shadow-root-DG8inbf6.js +0 -93
  115. package/dist/svelte/styles-BK_MaUpD.js +0 -2
  116. package/dist/svelte/widget-theme-CkfJNysI.js +0 -24
  117. package/dist/types/adapters/errors.d.ts +0 -3
  118. package/dist/types/core/auth.d.ts +0 -18
  119. package/dist/types/core/comments.d.ts +0 -43
  120. package/dist/types/core/dev-grab.d.ts +0 -14
  121. package/dist/types/core/keyboard.d.ts +0 -12
  122. package/dist/types/core/limits.d.ts +0 -52
  123. package/dist/types/core/offline-queue.d.ts +0 -23
  124. package/dist/types/core/realtime.d.ts +0 -9
  125. package/dist/types/core/screenshot.d.ts +0 -12
  126. package/dist/types/core/session.d.ts +0 -9
  127. package/dist/types/core/source-resolver.d.ts +0 -19
  128. package/dist/types/core/state.d.ts +0 -24
  129. package/dist/types/react/comment-kit-ui.d.ts +0 -9
  130. package/dist/types/react/comments/comment-flow.d.ts +0 -8
  131. package/dist/types/react/comments/outcomes.d.ts +0 -28
  132. package/dist/types/react/comments/pin-geometry.d.ts +0 -12
  133. package/dist/types/react/comments/view-model.d.ts +0 -66
  134. package/dist/types/react/components/annotation-toolbar.d.ts +0 -36
  135. package/dist/types/react/components/build-panel-shared-props.d.ts +0 -25
  136. package/dist/types/react/components/comment-actions.d.ts +0 -19
  137. package/dist/types/react/components/comment-body.d.ts +0 -8
  138. package/dist/types/react/components/comment-branch-filter.d.ts +0 -15
  139. package/dist/types/react/components/comment-composer-actions.d.ts +0 -26
  140. package/dist/types/react/components/comment-composer-extras-fields.d.ts +0 -32
  141. package/dist/types/react/components/comment-composer-extras-toolbar.d.ts +0 -9
  142. package/dist/types/react/components/comment-composer-extras.d.ts +0 -10
  143. package/dist/types/react/components/comment-composer-extras.state.d.ts +0 -24
  144. package/dist/types/react/components/comment-composer-hook.d.ts +0 -1
  145. package/dist/types/react/components/comment-composer-media.d.ts +0 -17
  146. package/dist/types/react/components/comment-composer.d.ts +0 -4
  147. package/dist/types/react/components/comment-composer.types.d.ts +0 -41
  148. package/dist/types/react/components/comment-composer.utils.d.ts +0 -3
  149. package/dist/types/react/components/comment-connection-alert.d.ts +0 -7
  150. package/dist/types/react/components/comment-cursor-layer.d.ts +0 -14
  151. package/dist/types/react/components/comment-custom-cursor.d.ts +0 -14
  152. package/dist/types/react/components/comment-drawing-canvas.d.ts +0 -10
  153. package/dist/types/react/components/comment-emoji-picker.d.ts +0 -12
  154. package/dist/types/react/components/comment-error-banner.d.ts +0 -8
  155. package/dist/types/react/components/comment-extension-banner.d.ts +0 -8
  156. package/dist/types/react/components/comment-fab-tools.d.ts +0 -37
  157. package/dist/types/react/components/comment-fab.d.ts +0 -34
  158. package/dist/types/react/components/comment-filter-assignee.d.ts +0 -9
  159. package/dist/types/react/components/comment-filter-bar.d.ts +0 -27
  160. package/dist/types/react/components/comment-filter-popover.d.ts +0 -20
  161. package/dist/types/react/components/comment-format-toolbar.constants.d.ts +0 -34
  162. package/dist/types/react/components/comment-format-toolbar.d.ts +0 -6
  163. package/dist/types/react/components/comment-header.d.ts +0 -34
  164. package/dist/types/react/components/comment-highlight-layer.d.ts +0 -11
  165. package/dist/types/react/components/comment-highlight-marker.d.ts +0 -9
  166. package/dist/types/react/components/comment-image-lightbox.d.ts +0 -10
  167. package/dist/types/react/components/comment-images.d.ts +0 -7
  168. package/dist/types/react/components/comment-item.d.ts +0 -26
  169. package/dist/types/react/components/comment-keyboard-shortcuts.d.ts +0 -7
  170. package/dist/types/react/components/comment-kit-overlays.d.ts +0 -15
  171. package/dist/types/react/components/comment-kit.d.ts +0 -12
  172. package/dist/types/react/components/comment-list-filters.d.ts +0 -14
  173. package/dist/types/react/components/comment-login-modal.d.ts +0 -20
  174. package/dist/types/react/components/comment-marker-layer-composer.d.ts +0 -21
  175. package/dist/types/react/components/comment-marker-layer.d.ts +0 -27
  176. package/dist/types/react/components/comment-marker-popover.d.ts +0 -12
  177. package/dist/types/react/components/comment-marker.d.ts +0 -15
  178. package/dist/types/react/components/comment-member-list.d.ts +0 -10
  179. package/dist/types/react/components/comment-mode-bar.d.ts +0 -15
  180. package/dist/types/react/components/comment-online-users.d.ts +0 -8
  181. package/dist/types/react/components/comment-page-ref.d.ts +0 -9
  182. package/dist/types/react/components/comment-panel-header.d.ts +0 -22
  183. package/dist/types/react/components/comment-panel-mobile.d.ts +0 -9
  184. package/dist/types/react/components/comment-panel-utils.d.ts +0 -6
  185. package/dist/types/react/components/comment-panel-view-body.d.ts +0 -23
  186. package/dist/types/react/components/comment-panel.d.ts +0 -37
  187. package/dist/types/react/components/comment-quoted-text.d.ts +0 -9
  188. package/dist/types/react/components/comment-reactions.d.ts +0 -11
  189. package/dist/types/react/components/comment-remote-cursor.d.ts +0 -11
  190. package/dist/types/react/components/comment-screenshot-annotator.d.ts +0 -11
  191. package/dist/types/react/components/comment-screenshot-overlay.d.ts +0 -10
  192. package/dist/types/react/components/comment-search-bar.d.ts +0 -7
  193. package/dist/types/react/components/comment-settings-view.d.ts +0 -20
  194. package/dist/types/react/components/comment-skeletons.d.ts +0 -9
  195. package/dist/types/react/components/comment-thread-detail-badges.d.ts +0 -16
  196. package/dist/types/react/components/comment-thread-detail-meta.d.ts +0 -9
  197. package/dist/types/react/components/comment-thread-detail-replies.d.ts +0 -13
  198. package/dist/types/react/components/comment-thread-detail.d.ts +0 -13
  199. package/dist/types/react/components/comment-thread-footer.d.ts +0 -12
  200. package/dist/types/react/components/comment-thread-list-item.d.ts +0 -15
  201. package/dist/types/react/components/comment-thread-list.d.ts +0 -16
  202. package/dist/types/react/components/comment-user-avatar-tooltip.d.ts +0 -12
  203. package/dist/types/react/components/comment-users-context.d.ts +0 -15
  204. package/dist/types/react/components/comment-utils.d.ts +0 -20
  205. package/dist/types/react/components/comment.d.ts +0 -26
  206. package/dist/types/react/components/constants.d.ts +0 -50
  207. package/dist/types/react/components/dev-export-panel.d.ts +0 -10
  208. package/dist/types/react/components/drawing-path-renderer.d.ts +0 -10
  209. package/dist/types/react/components/element-selector.d.ts +0 -11
  210. package/dist/types/react/components/live-region.d.ts +0 -16
  211. package/dist/types/react/components/screenshot-capture.d.ts +0 -17
  212. package/dist/types/react/components/status-indicator.d.ts +0 -43
  213. package/dist/types/react/components/ui.d.ts +0 -44
  214. package/dist/types/react/components/use-comment-composer.d.ts +0 -28
  215. package/dist/types/react/error-boundary.d.ts +0 -25
  216. package/dist/types/react/hooks/use-comment-fab-drag.d.ts +0 -21
  217. package/dist/types/react/hooks/use-comment-hash-link.d.ts +0 -20
  218. package/dist/types/react/hooks/use-comment-kit-filters.d.ts +0 -19
  219. package/dist/types/react/hooks/use-comment-kit-keyboard.d.ts +0 -11
  220. package/dist/types/react/hooks/use-comment-kit-prop-sync.d.ts +0 -12
  221. package/dist/types/react/hooks/use-comment-marker-drag.d.ts +0 -23
  222. package/dist/types/react/hooks/use-comment-panel-navigation.d.ts +0 -21
  223. package/dist/types/react/hooks/use-comment-realtime.d.ts +0 -6
  224. package/dist/types/react/hooks/use-comment-thread-actions.d.ts +0 -15
  225. package/dist/types/react/hooks/use-connection-retry.d.ts +0 -9
  226. package/dist/types/react/hooks/use-drawing.d.ts +0 -32
  227. package/dist/types/react/hooks/use-extension-conflicts.d.ts +0 -13
  228. package/dist/types/react/hooks/use-filtered-threads.d.ts +0 -7
  229. package/dist/types/react/hooks/use-marker-layer.d.ts +0 -19
  230. package/dist/types/react/hooks/use-screenshot.d.ts +0 -18
  231. package/dist/types/react/hooks/use-text-selection.d.ts +0 -17
  232. package/dist/types/react/hooks/use-websocket.d.ts +0 -9
  233. package/dist/types/react/is-local-host.d.ts +0 -2
  234. package/dist/types/react/mount-ui.d.ts +0 -19
  235. package/dist/types/react/shadow-root.d.ts +0 -23
  236. package/dist/types/react/shims/use-sync-external-store-with-selector.d.ts +0 -4
  237. package/dist/types/react/shims/use-sync-external-store.d.ts +0 -1
  238. package/dist/types/react/ui/lib/ShadowRootContext.d.ts +0 -10
  239. package/dist/types/react/ui/lib/cn.d.ts +0 -12
  240. package/dist/types/react/ui/lib/widget-theme.d.ts +0 -7
  241. package/dist/types/react/ui/primitives/alert/alert.d.ts +0 -8
  242. package/dist/types/react/ui/primitives/alert/index.d.ts +0 -1
  243. package/dist/types/react/ui/primitives/alert-dialog/alert-dialog.d.ts +0 -23
  244. package/dist/types/react/ui/primitives/alert-dialog/index.d.ts +0 -1
  245. package/dist/types/react/ui/primitives/avatar/avatar.d.ts +0 -10
  246. package/dist/types/react/ui/primitives/avatar/index.d.ts +0 -1
  247. package/dist/types/react/ui/primitives/badge/badge.d.ts +0 -5
  248. package/dist/types/react/ui/primitives/badge/index.d.ts +0 -1
  249. package/dist/types/react/ui/primitives/breadcrumb/breadcrumb.d.ts +0 -10
  250. package/dist/types/react/ui/primitives/breadcrumb/index.d.ts +0 -1
  251. package/dist/types/react/ui/primitives/button/button.d.ts +0 -6
  252. package/dist/types/react/ui/primitives/button/index.d.ts +0 -1
  253. package/dist/types/react/ui/primitives/button-group/button-group.d.ts +0 -9
  254. package/dist/types/react/ui/primitives/button-group/index.d.ts +0 -1
  255. package/dist/types/react/ui/primitives/card/card.d.ts +0 -11
  256. package/dist/types/react/ui/primitives/card/index.d.ts +0 -1
  257. package/dist/types/react/ui/primitives/checkbox/checkbox.d.ts +0 -3
  258. package/dist/types/react/ui/primitives/checkbox/index.d.ts +0 -1
  259. package/dist/types/react/ui/primitives/dialog/dialog.d.ts +0 -17
  260. package/dist/types/react/ui/primitives/dialog/index.d.ts +0 -1
  261. package/dist/types/react/ui/primitives/dropdown-menu/dropdown-menu.d.ts +0 -29
  262. package/dist/types/react/ui/primitives/dropdown-menu/index.d.ts +0 -1
  263. package/dist/types/react/ui/primitives/empty/empty.d.ts +0 -10
  264. package/dist/types/react/ui/primitives/empty/index.d.ts +0 -1
  265. package/dist/types/react/ui/primitives/field/field.d.ts +0 -22
  266. package/dist/types/react/ui/primitives/field/index.d.ts +0 -1
  267. package/dist/types/react/ui/primitives/hover-card/hover-card.d.ts +0 -6
  268. package/dist/types/react/ui/primitives/hover-card/index.d.ts +0 -1
  269. package/dist/types/react/ui/primitives/input/index.d.ts +0 -1
  270. package/dist/types/react/ui/primitives/input/input.d.ts +0 -3
  271. package/dist/types/react/ui/primitives/input-group/index.d.ts +0 -1
  272. package/dist/types/react/ui/primitives/input-group/input-group.d.ts +0 -16
  273. package/dist/types/react/ui/primitives/input-otp/index.d.ts +0 -1
  274. package/dist/types/react/ui/primitives/input-otp/input-otp.d.ts +0 -11
  275. package/dist/types/react/ui/primitives/kbd/index.d.ts +0 -1
  276. package/dist/types/react/ui/primitives/kbd/kbd.d.ts +0 -4
  277. package/dist/types/react/ui/primitives/label/index.d.ts +0 -1
  278. package/dist/types/react/ui/primitives/label/label.d.ts +0 -3
  279. package/dist/types/react/ui/primitives/native-select/index.d.ts +0 -1
  280. package/dist/types/react/ui/primitives/native-select/native-select.d.ts +0 -7
  281. package/dist/types/react/ui/primitives/popover/index.d.ts +0 -1
  282. package/dist/types/react/ui/primitives/popover/popover.d.ts +0 -9
  283. package/dist/types/react/ui/primitives/preview/component-preview.d.ts +0 -8
  284. package/dist/types/react/ui/primitives/progress/index.d.ts +0 -1
  285. package/dist/types/react/ui/primitives/progress/progress.d.ts +0 -7
  286. package/dist/types/react/ui/primitives/radio-group/index.d.ts +0 -1
  287. package/dist/types/react/ui/primitives/radio-group/radio-group.d.ts +0 -6
  288. package/dist/types/react/ui/primitives/scroll-area/index.d.ts +0 -1
  289. package/dist/types/react/ui/primitives/scroll-area/scroll-area.d.ts +0 -6
  290. package/dist/types/react/ui/primitives/select/index.d.ts +0 -1
  291. package/dist/types/react/ui/primitives/select/select.d.ts +0 -15
  292. package/dist/types/react/ui/primitives/separator/index.d.ts +0 -1
  293. package/dist/types/react/ui/primitives/separator/separator.d.ts +0 -3
  294. package/dist/types/react/ui/primitives/sheet/index.d.ts +0 -1
  295. package/dist/types/react/ui/primitives/sheet/sheet.d.ts +0 -14
  296. package/dist/types/react/ui/primitives/skeleton/index.d.ts +0 -1
  297. package/dist/types/react/ui/primitives/skeleton/skeleton.d.ts +0 -3
  298. package/dist/types/react/ui/primitives/slider/index.d.ts +0 -1
  299. package/dist/types/react/ui/primitives/slider/slider.d.ts +0 -7
  300. package/dist/types/react/ui/primitives/sonner/index.d.ts +0 -1
  301. package/dist/types/react/ui/primitives/sonner/sonner.d.ts +0 -4
  302. package/dist/types/react/ui/primitives/spinner/index.d.ts +0 -1
  303. package/dist/types/react/ui/primitives/spinner/spinner.d.ts +0 -3
  304. package/dist/types/react/ui/primitives/switch/index.d.ts +0 -1
  305. package/dist/types/react/ui/primitives/switch/switch.d.ts +0 -5
  306. package/dist/types/react/ui/primitives/tabs/index.d.ts +0 -1
  307. package/dist/types/react/ui/primitives/tabs/tabs.d.ts +0 -8
  308. package/dist/types/react/ui/primitives/textarea/index.d.ts +0 -1
  309. package/dist/types/react/ui/primitives/textarea/textarea.d.ts +0 -3
  310. package/dist/types/react/ui/primitives/toggle/index.d.ts +0 -1
  311. package/dist/types/react/ui/primitives/toggle/toggle.d.ts +0 -7
  312. package/dist/types/react/ui/primitives/toggle-group/index.d.ts +0 -1
  313. package/dist/types/react/ui/primitives/toggle-group/toggle-group.d.ts +0 -14
  314. package/dist/types/react/ui/primitives/tooltip/index.d.ts +0 -1
  315. package/dist/types/react/ui/primitives/tooltip/tooltip.d.ts +0 -7
  316. package/dist/types/utils/freeze-animations.d.ts +0 -8
  317. package/dist/types/utils/text.d.ts +0 -9
  318. package/dist/types/utils/validation.d.ts +0 -10
  319. package/dist/vue/chunk-DHrubWSL.js +0 -11
  320. package/dist/vue/comment-kit-ui-MfED5JLH.js +0 -24898
  321. package/dist/vue/dom-C7krZAR8.js +0 -104
  322. package/dist/vue/error-boundary-DW6uGR8U.js +0 -21
  323. package/dist/vue/limits-B6csdQeI.js +0 -71
  324. package/dist/vue/mount-ui-C85XBX4V.js +0 -72
  325. package/dist/vue/pusher-cmjNbW6a.js +0 -2504
  326. package/dist/vue/realtime-B0B5cE-E.js +0 -567
  327. package/dist/vue/shadow-root-zwd_wUIP.js +0 -93
  328. package/dist/vue/styles-B0NAkbKu.js +0 -2
  329. package/dist/vue/widget-theme-D7Vkagk7.js +0 -24
  330. /package/dist/{angular/error-boundary-CxhCm8iF.js → shared/error-boundary-D3PD74vI.js} +0 -0
@@ -0,0 +1,137 @@
1
+ import { n as e, t } from "./annotation-toolbar-pX17NLmJ.js";
2
+ import { o as n, s as r } from "./resolveAriaLabelledBy-CIKpnjNJ.js";
3
+ import { g as i, l as a, u as o } from "./comment-kit-ui-D2j2gvnm.js";
4
+ import * as s from "react";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
+ function u(e) {
7
+ let t = e.composedPath?.()[0];
8
+ return t instanceof Element ? t : e.target instanceof Element ? e.target : null;
9
+ }
10
+ function d(e) {
11
+ let t = u(e);
12
+ if (!t) return !1;
13
+ let n = t.tagName;
14
+ return n === "INPUT" || n === "TEXTAREA" || n === "SELECT" || t instanceof HTMLElement && t.isContentEditable;
15
+ }
16
+ function f({ imageUrl: u, availableUsers: f = [], onSave: p, onCancel: m }) {
17
+ let h = e(), g = s.useRef(null), _ = s.useRef(null), [v, y] = s.useState(null), b = h.paths, x = s.useMemo(() => {
18
+ if (!v) return {
19
+ w: 800,
20
+ h: 500
21
+ };
22
+ let e = Math.min(window.innerWidth * .7, 900), t = window.innerHeight * .6, n = Math.min(e / v.w, t / v.h, 1);
23
+ return {
24
+ w: Math.round(v.w * n),
25
+ h: Math.round(v.h * n)
26
+ };
27
+ }, [v]), S = b.flatMap((e) => {
28
+ let t = r(e);
29
+ return t ? [t] : [];
30
+ }), C = s.useCallback((e) => {
31
+ let t = g.current?.getBoundingClientRect();
32
+ return t ? {
33
+ x: e.clientX - t.left,
34
+ y: e.clientY - t.top
35
+ } : null;
36
+ }, []);
37
+ return s.useEffect(() => {
38
+ let e = (e) => {
39
+ if (d(e)) return;
40
+ let t = e.metaKey || e.ctrlKey;
41
+ t && e.key.toLowerCase() === "z" && !e.shiftKey ? (e.preventDefault(), h.undo()) : t && (e.key.toLowerCase() === "z" || e.key.toLowerCase() === "y") ? (e.preventDefault(), h.redo()) : e.key === "Escape" && m();
42
+ };
43
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
44
+ }, [h, m]), /* @__PURE__ */ l("div", {
45
+ "data-commentkit-ui": "",
46
+ className: "ck-screenshot-annotator",
47
+ children: [/* @__PURE__ */ c("div", {
48
+ className: "ck-screenshot-annotator-toolbar",
49
+ children: /* @__PURE__ */ c(t, {
50
+ colors: i,
51
+ drawing: h,
52
+ onCancel: m
53
+ })
54
+ }), /* @__PURE__ */ l("div", {
55
+ className: "ck-screenshot-annotator-stage",
56
+ children: [/* @__PURE__ */ l("div", {
57
+ ref: g,
58
+ className: "ck-screenshot-annotator-canvas",
59
+ style: {
60
+ "--ck-w": `${x.w}px`,
61
+ "--ck-h": `${x.h}px`
62
+ },
63
+ onPointerDown: (e) => {
64
+ if (e.button !== 0) return;
65
+ let t = C(e);
66
+ if (t) {
67
+ h.startPath(t.x, t.y);
68
+ try {
69
+ e.currentTarget.setPointerCapture(e.pointerId);
70
+ } catch {}
71
+ }
72
+ },
73
+ onPointerMove: (e) => {
74
+ if (!h.activePath) return;
75
+ let t = C(e);
76
+ t && h.addPoint(t.x, t.y);
77
+ },
78
+ onPointerUp: () => {
79
+ h.activePath && h.endPath();
80
+ },
81
+ children: [
82
+ /* @__PURE__ */ c("img", {
83
+ src: u,
84
+ alt: "Screenshot",
85
+ className: "ck-screenshot-annotator-image",
86
+ draggable: !1,
87
+ onLoad: (e) => {
88
+ let t = e.currentTarget;
89
+ y({
90
+ w: t.naturalWidth,
91
+ h: t.naturalHeight
92
+ });
93
+ }
94
+ }),
95
+ /* @__PURE__ */ c("svg", {
96
+ ref: _,
97
+ className: "ck-screenshot-annotator-strokes",
98
+ viewBox: `0 0 ${x.w} ${x.h}`,
99
+ children: S.map((e, t) => /* @__PURE__ */ c(n, { path: e }, `${e.type}-${t}`))
100
+ }),
101
+ /* @__PURE__ */ c(a, { mode: "draw" })
102
+ ]
103
+ }), /* @__PURE__ */ c("div", {
104
+ className: "ck-screenshot-annotator-composer",
105
+ children: /* @__PURE__ */ c(o, {
106
+ mode: "new-thread",
107
+ placeholder: "Describe what you see...",
108
+ availableUsers: f,
109
+ onSubmit: async (e) => {
110
+ let t = _.current;
111
+ if (!t || b.length === 0) {
112
+ await p(u, e);
113
+ return;
114
+ }
115
+ let n = new Image();
116
+ n.src = u, await new Promise((e) => {
117
+ n.onload = () => e(), n.onerror = () => e();
118
+ });
119
+ let r = document.createElement("canvas");
120
+ r.width = n.naturalWidth || x.w, r.height = n.naturalHeight || x.h;
121
+ let i = r.getContext("2d");
122
+ if (!i) {
123
+ await p(u, e);
124
+ return;
125
+ }
126
+ i.drawImage(n, 0, 0, r.width, r.height);
127
+ let a = new XMLSerializer().serializeToString(t), o = new Blob([a], { type: "image/svg+xml;charset=utf-8" }), s = URL.createObjectURL(o), c = new Image();
128
+ c.src = s, await new Promise((e) => {
129
+ c.onload = () => e(), c.onerror = () => e();
130
+ }), i.drawImage(c, 0, 0, r.width, r.height), URL.revokeObjectURL(s), await p(r.toDataURL("image/png"), e);
131
+ }
132
+ })
133
+ })]
134
+ })]
135
+ });
136
+ }
137
+ export { f as CommentScreenshotAnnotator };
@@ -0,0 +1,144 @@
1
+ import { t as e } from "./button-By0hGrJK.js";
2
+ import { _ as t, f as n, l as r, r as i } from "./comment-kit-ui-D2j2gvnm.js";
3
+ import * as a from "react";
4
+ import { useCallback as o, useState as s } from "react";
5
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
+ var d = ".ck-annotation-toolbar{background-color:var(--background);width:100%;max-width:100%;box-shadow:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a, 0 0 0 1px color-mix(in oklch, var(--foreground) 5%, transparent);border-radius:2rem;flex-wrap:wrap;justify-content:center;align-items:center;gap:.375rem .5rem;margin-inline:auto;padding:.375rem;display:flex}@media (width>=1024px){.ck-annotation-toolbar{width:fit-content}}.ck-annotation-separator.ck-separator[data-orientation=vertical]{align-self:center;height:1rem;display:none}@media (width>=1024px){.ck-annotation-separator.ck-separator[data-orientation=vertical]{display:block}}.ck-annotation-stroke{align-items:center;gap:.5rem;width:7rem;padding-inline:.25rem;display:flex}@media (width>=1024px){.ck-annotation-stroke{width:12rem}}.ck-annotation-slider{flex:auto;min-width:0}.ck-annotation-stroke-label{color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.75rem;line-height:1rem}.ck-annotation-swatch{background-color:var(--ck-bg);width:.875rem;height:.875rem;box-shadow:0 0 0 1px color-mix(in oklch, var(--foreground) 5%, transparent);border-radius:999px}.ck-annotation-tooltip{align-items:center;gap:.375rem;display:inline-flex}.ck-annotation-save--disabled{opacity:.5}.ck-screenshot-overlay{z-index:var(--z-ck-overlay);cursor:none;background:color-mix(in srgb, var(--foreground) 20%, transparent);pointer-events:auto;outline:none;position:fixed;inset:0}.ck-screenshot-selection{pointer-events:none;inset-inline-start:var(--ck-x);top:var(--ck-y);width:var(--ck-w);height:var(--ck-h);border:2px solid var(--primary);background:color-mix(in srgb, var(--primary) 10%, transparent);position:fixed}.ck-screenshot-overlay-bar{inset-inline-start:50%;z-index:10;background:var(--card);color:var(--foreground);box-shadow:var(--shadow-lg);border-radius:.5rem;align-items:center;gap:.75rem;padding:.5rem 1rem;font-size:.875rem;display:flex;position:fixed;bottom:1.5rem;transform:translate(-50%)}.ck-screenshot-overlay-status{align-items:center;gap:.5rem;display:inline-flex}.ck-screenshot-annotator{z-index:var(--z-ck-overlay);background:color-mix(in srgb, var(--foreground) 60%, transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:auto;flex-direction:column;display:flex;position:fixed;inset:0}.ck-screenshot-annotator-toolbar{justify-content:center;padding:.75rem;display:flex}.ck-screenshot-annotator-stage{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1rem;min-height:0;padding:1rem;display:flex}@media (width>=1024px){.ck-screenshot-annotator-stage{flex-direction:row}}.ck-screenshot-annotator-canvas{width:var(--ck-w);height:var(--ck-h);cursor:none;background:var(--card);box-shadow:var(--shadow-xl);border-radius:.5rem;position:relative;overflow:hidden}.ck-screenshot-annotator-image,.ck-screenshot-annotator-strokes{width:100%;height:100%;position:absolute;inset:0}.ck-screenshot-annotator-image{object-fit:contain;-webkit-user-select:none;user-select:none}.ck-screenshot-annotator-strokes{pointer-events:none}.ck-screenshot-annotator-composer{flex-shrink:0;width:min(100%,380px)}", f = 15e3;
7
+ function p(e) {
8
+ try {
9
+ return e.matches?.("[data-commentkit],[data-commentkit-host],[data-commentkit-ui],[data-commentkit-panel],input[type=\"password\"],[data-commentkit-redact],[data-html2canvas-ignore]") ?? !1;
10
+ } catch {
11
+ return !1;
12
+ }
13
+ }
14
+ function m() {
15
+ let [e, t] = s(null), [n, r] = s(!1);
16
+ return {
17
+ imageUrl: e,
18
+ capturing: n,
19
+ capture: o(async (e) => {
20
+ r(!0);
21
+ try {
22
+ let n = (await import("html2canvas")).default, r = Math.max(document.documentElement.scrollWidth, document.body?.scrollWidth ?? 0, window.innerWidth), i = Math.max(document.documentElement.scrollHeight, document.body?.scrollHeight ?? 0, window.innerHeight), a = await Promise.race([n(document.body, {
23
+ useCORS: !0,
24
+ allowTaint: !1,
25
+ scale: 1,
26
+ logging: !1,
27
+ ignoreElements: p,
28
+ x: e ? e.x + window.scrollX : 0,
29
+ y: e ? e.y + window.scrollY : 0,
30
+ width: e?.width ?? r,
31
+ height: e?.height ?? i,
32
+ windowWidth: r,
33
+ windowHeight: i,
34
+ scrollX: 0,
35
+ scrollY: 0
36
+ }), new Promise((e, t) => {
37
+ window.setTimeout(() => t(/* @__PURE__ */ Error("Screenshot timed out")), f);
38
+ })]);
39
+ t(a.toDataURL("image/png"));
40
+ } catch (e) {
41
+ console.error("[CommentKit] Screenshot failed:", e), t(null);
42
+ } finally {
43
+ r(!1);
44
+ }
45
+ }, []),
46
+ reset: o(() => {
47
+ t(null);
48
+ }, [])
49
+ };
50
+ }
51
+ var h = () => import("./comment-screenshot-annotator-BuojwviY.js");
52
+ function g({ availableUsers: o = [], onSave: s, onCancel: c }) {
53
+ let { imageUrl: d, capturing: f, capture: p, reset: g } = m(), [_, v] = a.useState(null), [y, b] = a.useState(null), x = _ !== null, S = a.useMemo(() => !_ || !y ? null : {
54
+ x: Math.min(_.x, y.x),
55
+ y: Math.min(_.y, y.y),
56
+ width: Math.abs(y.x - _.x),
57
+ height: Math.abs(y.y - _.y)
58
+ }, [y, _]), C = a.useCallback(() => {
59
+ p();
60
+ }, [p]);
61
+ return d ? /* @__PURE__ */ l(n, {
62
+ load: h,
63
+ label: "screenshot editor",
64
+ onCancel: () => {
65
+ g(), c();
66
+ },
67
+ children: ({ CommentScreenshotAnnotator: e }) => /* @__PURE__ */ l(e, {
68
+ imageUrl: d,
69
+ availableUsers: o,
70
+ onSave: s,
71
+ onCancel: () => {
72
+ g(), c();
73
+ }
74
+ })
75
+ }) : /* @__PURE__ */ u("div", {
76
+ role: "button",
77
+ tabIndex: 0,
78
+ "data-commentkit-ui": "",
79
+ className: "ck-screenshot-overlay",
80
+ "aria-label": "Drag to select a region, or press Enter for the full page",
81
+ onMouseDown: (e) => {
82
+ e.button !== 0 || d || f || (v({
83
+ x: e.clientX,
84
+ y: e.clientY
85
+ }), b({
86
+ x: e.clientX,
87
+ y: e.clientY
88
+ }));
89
+ },
90
+ onMouseMove: (e) => {
91
+ x && !d && b({
92
+ x: e.clientX,
93
+ y: e.clientY
94
+ });
95
+ },
96
+ onMouseUp: () => {
97
+ if (!x || !S || d) {
98
+ v(null), b(null);
99
+ return;
100
+ }
101
+ let e = S.width >= 20 && S.height >= 20 ? S : void 0;
102
+ v(null), b(null), p(e);
103
+ },
104
+ onKeyDown: (e) => {
105
+ d || f || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C());
106
+ },
107
+ children: [
108
+ S ? /* @__PURE__ */ l("div", {
109
+ className: "ck-screenshot-selection",
110
+ style: {
111
+ "--ck-x": `${S.x}px`,
112
+ "--ck-y": `${S.y}px`,
113
+ "--ck-w": `${S.width}px`,
114
+ "--ck-h": `${S.height}px`
115
+ }
116
+ }) : null,
117
+ /* @__PURE__ */ u("div", {
118
+ className: "ck-screenshot-overlay-bar",
119
+ onMouseDown: (e) => e.stopPropagation(),
120
+ children: [f ? /* @__PURE__ */ u("span", {
121
+ className: "ck-screenshot-overlay-status",
122
+ children: [/* @__PURE__ */ l(i, {}), "Capturing…"]
123
+ }) : /* @__PURE__ */ l("span", { children: "Drag to select region, or click for full page" }), /* @__PURE__ */ u(e, {
124
+ type: "button",
125
+ variant: "secondary",
126
+ size: "sm",
127
+ "aria-label": "Cancel screenshot",
128
+ onClick: (e) => {
129
+ e.stopPropagation(), c();
130
+ },
131
+ children: [/* @__PURE__ */ l(t, {}), "Cancel"]
132
+ })]
133
+ }),
134
+ /* @__PURE__ */ l(r, { mode: "screenshot" })
135
+ ]
136
+ });
137
+ }
138
+ function _(e) {
139
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("style", {
140
+ "data-ck-tool-styles": "screenshot",
141
+ children: d
142
+ }), /* @__PURE__ */ l(g, { ...e })] });
143
+ }
144
+ export { _ as CommentScreenshotOverlay };
@@ -0,0 +1,45 @@
1
+ import { createElement as e, forwardRef as t } from "react";
2
+ var n = {
3
+ outline: {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ width: 24,
6
+ height: 24,
7
+ viewBox: "0 0 24 24",
8
+ fill: "none",
9
+ stroke: "currentColor",
10
+ strokeWidth: 2,
11
+ strokeLinecap: "round",
12
+ strokeLinejoin: "round"
13
+ },
14
+ filled: {
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ width: 24,
17
+ height: 24,
18
+ viewBox: "0 0 24 24",
19
+ fill: "currentColor",
20
+ stroke: "none"
21
+ }
22
+ }, r = (r, i, a, o) => {
23
+ let s = t(({ color: t = "currentColor", size: a = 24, stroke: s = 2, title: c, className: l, children: u, ...d }, f) => e("svg", {
24
+ ref: f,
25
+ ...n[r],
26
+ width: a,
27
+ height: a,
28
+ className: [
29
+ "tabler-icon",
30
+ `tabler-icon-${i}`,
31
+ l
32
+ ].filter(Boolean).join(" "),
33
+ ...r === "filled" ? { fill: t } : {
34
+ strokeWidth: s,
35
+ stroke: t
36
+ },
37
+ ...d
38
+ }, [
39
+ c && e("title", { key: "svg-title" }, c),
40
+ ...o.map(([t, n]) => e(t, n)),
41
+ ...Array.isArray(u) ? u : [u]
42
+ ]));
43
+ return s.displayName = `${a}`, s;
44
+ };
45
+ export { r as t };
@@ -0,0 +1,208 @@
1
+ import { t as e } from "./button-By0hGrJK.js";
2
+ import { i as t, o as n, r, t as i } from "./separator-DusFNTs-.js";
3
+ import { t as a } from "./createReactComponent-BZHeRbD0.js";
4
+ import { a as o, d as s, m as c, v as l, y as u } from "./comment-kit-ui-D2j2gvnm.js";
5
+ import * as d from "react";
6
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
7
+ var h = a("outline", "refresh", "Refresh", [["path", {
8
+ d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",
9
+ key: "svg-0"
10
+ }], ["path", {
11
+ d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",
12
+ key: "svg-1"
13
+ }]]), g = ".ck-dev-export-host{background:var(--popover);border:1px solid var(--border);width:min(420px,100vw - 32px);max-height:calc(100vh - 32px);z-index:var(--z-ck-overlay);border-radius:10px;flex-direction:column;display:flex;position:fixed;top:16px;right:16px;overflow:hidden;box-shadow:0 8px 32px #0000001f}.ck-dev-export{height:100%;font-family:var(--font-sans);color:var(--popover-foreground);flex-direction:column;gap:8px;padding:12px;font-size:14px;line-height:1.4;display:flex}.ck-dev-export-header{flex-direction:column;gap:4px;display:flex}.ck-dev-export-title{align-items:center;gap:6px;font-size:13px;font-weight:600;display:inline-flex}.ck-dev-export-help{color:var(--muted-foreground);margin:0;font-size:12px}.ck-dev-export-help code{font-family:var(--font-mono);background:color-mix(in oklch, var(--muted) 60%, transparent);border-radius:4px;padding:1px 4px;font-size:.92em}.ck-dev-export-toolbar{align-items:center;gap:8px;padding:6px 0;display:flex}.ck-dev-export-count{color:var(--muted-foreground);font-size:12px}.ck-dev-export-truncation{color:var(--muted-foreground);margin:0;font-size:11px}.ck-dev-export-actions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.ck-dev-export-scroll{flex:1;min-height:0}.ck-dev-export-list{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.ck-dev-export-row{cursor:default;background:0 0;border:1px solid #0000;border-radius:6px;align-items:flex-start;gap:8px;padding:8px;display:flex}.ck-dev-export-row[data-checked=true]{background:color-mix(in oklch, var(--accent) 70%, transparent);border-color:var(--border)}.ck-dev-export-row-body{cursor:pointer;flex-direction:column;gap:2px;min-width:0;display:flex}.ck-dev-export-row-title{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;overflow:hidden}.ck-dev-export-row-meta{color:var(--muted-foreground);align-items:center;gap:4px;font-size:11px;display:inline-flex}.ck-dev-export-row-meta [data-priority=urgent]{color:var(--ck-priority-urgent);font-weight:600}.ck-dev-export-row-meta [data-priority=high]{color:var(--priority-high-foreground);font-weight:600}.ck-dev-export-empty{color:var(--muted-foreground);text-align:center;padding:16px;font-size:12px}.ck-dev-export-error,.ck-dev-export-success{margin:0;font-size:12px}.ck-dev-export-error{color:var(--destructive)}.ck-dev-export-success{color:var(--ck-status-success)}", _ = 200;
14
+ function v(e, t = 140) {
15
+ let n = e.replace(/\s+/g, " ").trim();
16
+ return n.length > t ? `${n.slice(0, t - 1)}…` : n;
17
+ }
18
+ var y = 2500, b = ({ core: a, state: f }) => {
19
+ let [g, b] = d.useState(() => /* @__PURE__ */ new Set()), [x, S] = d.useState(!1), [C, w] = d.useState(null), [T, E] = d.useState(null), D = d.useMemo(() => f.comments.reduce((e, t) => e + +(t.status === "open"), 0), [f.comments]), O = d.useMemo(() => f.comments.filter((e) => e.status === "open").slice(0, _).map((e) => ({
20
+ id: e.id,
21
+ title: v(e.content || "(no content)"),
22
+ page: e.page.path || e.page.url || "unknown",
23
+ author: e.author.name || e.author.email,
24
+ priority: e.priority
25
+ })), [f.comments]), k = D > O.length;
26
+ d.useEffect(() => {
27
+ b((e) => {
28
+ let t = /* @__PURE__ */ new Set();
29
+ for (let n of e) O.some((e) => e.id === n) && t.add(n);
30
+ return t.size === e.size ? e : t;
31
+ });
32
+ }, [O]), d.useEffect(() => {
33
+ if (C == null) return;
34
+ let e = setTimeout(() => w(null), y);
35
+ return () => clearTimeout(e);
36
+ }, [C]);
37
+ let A = O.length > 0 && g.size === O.length, j = g.size > 0 && g.size < O.length, M = g.size === 0, N = (e) => {
38
+ w(null), b((t) => {
39
+ let n = new Set(t);
40
+ return n.has(e) ? n.delete(e) : n.add(e), n;
41
+ });
42
+ };
43
+ return /* @__PURE__ */ m("div", {
44
+ className: "ck-dev-export",
45
+ "data-testid": "ck-dev-export-panel",
46
+ children: [
47
+ /* @__PURE__ */ m("header", {
48
+ className: "ck-dev-export-header",
49
+ children: [/* @__PURE__ */ m("div", {
50
+ className: "ck-dev-export-title",
51
+ children: [/* @__PURE__ */ p(l, {
52
+ size: 16,
53
+ "aria-hidden": !0
54
+ }), /* @__PURE__ */ p("strong", { children: "Dev export" })]
55
+ }), /* @__PURE__ */ p("p", {
56
+ className: "ck-dev-export-help",
57
+ children: "Select stakeholder comments to bundle into a single Markdown payload for your agent. Each comment is enriched with the source file location when source resolution is available."
58
+ })]
59
+ }),
60
+ /* @__PURE__ */ p(i, {}),
61
+ /* @__PURE__ */ m("div", {
62
+ className: "ck-dev-export-toolbar",
63
+ children: [
64
+ /* @__PURE__ */ p(s, {
65
+ checked: A,
66
+ indeterminate: j,
67
+ onCheckedChange: () => {
68
+ w(null), b((e) => e.size === O.length ? /* @__PURE__ */ new Set() : new Set(O.map((e) => e.id)));
69
+ },
70
+ "aria-label": A ? "Deselect all" : "Select all",
71
+ disabled: O.length === 0
72
+ }),
73
+ /* @__PURE__ */ m("span", {
74
+ className: "ck-dev-export-count",
75
+ children: [
76
+ g.size,
77
+ " of ",
78
+ O.length,
79
+ " selected"
80
+ ]
81
+ }),
82
+ /* @__PURE__ */ m("div", {
83
+ className: "ck-dev-export-actions",
84
+ children: [/* @__PURE__ */ m(r, { children: [/* @__PURE__ */ p(n, {
85
+ render: /* @__PURE__ */ p(e, {
86
+ type: "button",
87
+ variant: "ghost",
88
+ size: "icon",
89
+ onClick: async () => {
90
+ if (!x) {
91
+ S(!0), E(null);
92
+ try {
93
+ await a.reloadComments();
94
+ } catch {
95
+ E("Could not refresh comments");
96
+ } finally {
97
+ S(!1);
98
+ }
99
+ }
100
+ },
101
+ disabled: x,
102
+ "aria-label": "Refresh comments"
103
+ }),
104
+ children: /* @__PURE__ */ p(h, {
105
+ size: 14,
106
+ "aria-hidden": !0
107
+ })
108
+ }), /* @__PURE__ */ p(t, { children: "Refresh comments" })] }), /* @__PURE__ */ m(e, {
109
+ type: "button",
110
+ onClick: async () => {
111
+ if (!(M || x)) {
112
+ S(!0), E(null);
113
+ try {
114
+ await a.copyAgentContext({
115
+ commentIds: Array.from(g),
116
+ includeResolved: !1,
117
+ includeHtml: !0
118
+ }), w(Date.now());
119
+ } catch {
120
+ E("Could not copy. Allow clipboard access and try again.");
121
+ } finally {
122
+ S(!1);
123
+ }
124
+ }
125
+ },
126
+ disabled: M || x,
127
+ children: [/* @__PURE__ */ p(u, {
128
+ size: 14,
129
+ "aria-hidden": !0
130
+ }), x ? "Copying…" : `Copy ${g.size || ""} for agent`.trim()]
131
+ })]
132
+ })
133
+ ]
134
+ }),
135
+ k && /* @__PURE__ */ m("p", {
136
+ className: "ck-dev-export-truncation",
137
+ role: "note",
138
+ children: [
139
+ "Showing first ",
140
+ O.length,
141
+ " of ",
142
+ D,
143
+ " open comments."
144
+ ]
145
+ }),
146
+ /* @__PURE__ */ p(o, {
147
+ className: "ck-dev-export-scroll",
148
+ children: O.length === 0 ? /* @__PURE__ */ p(c, {
149
+ className: "ck-dev-export-empty",
150
+ children: "No open stakeholder comments on this project. Comments left in production or staging will show up here for bulk export."
151
+ }) : /* @__PURE__ */ p("ul", {
152
+ className: "ck-dev-export-list",
153
+ children: O.map((e) => {
154
+ let t = g.has(e.id);
155
+ return /* @__PURE__ */ m("li", {
156
+ className: "ck-dev-export-row",
157
+ "data-checked": t,
158
+ children: [/* @__PURE__ */ p(s, {
159
+ checked: t,
160
+ onCheckedChange: () => N(e.id),
161
+ "aria-label": `Select ${e.title}`
162
+ }), /* @__PURE__ */ m("div", {
163
+ className: "ck-dev-export-row-body",
164
+ onClick: () => N(e.id),
165
+ children: [/* @__PURE__ */ p("div", {
166
+ className: "ck-dev-export-row-title",
167
+ children: e.title
168
+ }), /* @__PURE__ */ m("div", {
169
+ className: "ck-dev-export-row-meta",
170
+ children: [
171
+ /* @__PURE__ */ p("span", {
172
+ "data-priority": e.priority,
173
+ children: e.priority
174
+ }),
175
+ /* @__PURE__ */ p("span", { children: "·" }),
176
+ /* @__PURE__ */ p("span", { children: e.author }),
177
+ /* @__PURE__ */ p("span", { children: "·" }),
178
+ /* @__PURE__ */ p("span", {
179
+ title: e.page,
180
+ children: e.page
181
+ })
182
+ ]
183
+ })]
184
+ })]
185
+ }, e.id);
186
+ })
187
+ })
188
+ }),
189
+ T && /* @__PURE__ */ p("p", {
190
+ className: "ck-dev-export-error",
191
+ role: "alert",
192
+ children: T
193
+ }),
194
+ C && !T && /* @__PURE__ */ p("p", {
195
+ className: "ck-dev-export-success",
196
+ role: "status",
197
+ children: "Copied. Paste into your agent now."
198
+ })
199
+ ]
200
+ });
201
+ };
202
+ function x(e) {
203
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("style", {
204
+ "data-ck-tool-styles": "dev-export",
205
+ children: g
206
+ }), /* @__PURE__ */ p(b, { ...e })] });
207
+ }
208
+ export { x as DevExportPanel };