@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
@@ -110,7 +110,7 @@ export declare const STATE_SELECTORS: {
110
110
  readonly isSidebarVisible: (s: CommentKitState | null) => boolean;
111
111
  readonly currentUser: (s: CommentKitState | null) => User | null;
112
112
  readonly comments: (s: CommentKitState | null) => Comment[];
113
- readonly activeTool: (s: CommentKitState | null) => "highlight" | "screenshot" | "comment" | "draw" | "select" | null;
113
+ readonly activeTool: (s: CommentKitState | null) => "comment" | "draw" | "highlight" | "screenshot" | "select" | null;
114
114
  readonly otpStep: (s: CommentKitState | null) => import("..").OtpStep;
115
115
  readonly otpEmail: (s: CommentKitState | null) => string | null;
116
116
  readonly pendingMutationCount: (s: CommentKitState | null) => number;
@@ -37,8 +37,8 @@ export declare class CommentKitService implements OnDestroy {
37
37
  readonly isSidebarVisible$: import("rxjs").Observable<boolean>;
38
38
  readonly currentUser$: import("rxjs").Observable<import("./index.ts").User | null>;
39
39
  readonly comments$: import("rxjs").Observable<import("./index.ts").Comment[]>;
40
- readonly activeTool$: import("rxjs").Observable<"highlight" | "screenshot" | "comment" | "draw" | "select" | null>;
41
- readonly otpStep$: import("rxjs").Observable<import("../index.ts").OtpStep>;
40
+ readonly activeTool$: import("rxjs").Observable<"comment" | "draw" | "highlight" | "screenshot" | "select" | null>;
41
+ readonly otpStep$: import("rxjs").Observable<import("../headless.ts").OtpStep>;
42
42
  readonly otpEmail$: import("rxjs").Observable<string | null>;
43
43
  readonly pendingMutationCount$: import("rxjs").Observable<number>;
44
44
  readonly isOnline$: import("rxjs").Observable<boolean>;
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter } from "../utils/event-emitter";
2
+ import type { LocalDemoStore } from "./local-demo";
2
3
  import type { AgentContextExport, AgentContextOptions, Comment, CommentKitConfig, CommentKitState, DevGrabBundle, DevGrabOptions, DevGrabResult, DrawingData, DrawingPath, Position, ResolvedConfig, ScreenshotResult, StateSlice, TaskChecklistItem, TextSelection, ToolType, Unsubscribe, User } from "./types";
3
4
  /**
4
5
  * Current SDK version — compared against the backend's sdkLatestVersion on
@@ -10,6 +11,7 @@ export declare const SDK_VERSION: string;
10
11
  export declare class CommentKitCore extends EventEmitter {
11
12
  private state;
12
13
  private apiClient;
14
+ private readonly localDemo;
13
15
  private wsManager;
14
16
  private wsUnsubscribers;
15
17
  private config;
@@ -43,7 +45,12 @@ export declare class CommentKitCore extends EventEmitter {
43
45
  private kbdCallbacks;
44
46
  private commentCb;
45
47
  private realtimeRefs;
46
- constructor(config: CommentKitConfig | ResolvedConfig);
48
+ constructor(config: CommentKitConfig | ResolvedConfig, localDemo?: LocalDemoStore);
49
+ /** True only for a separately constructed, browser-local sandbox. */
50
+ isLocalDemo(): boolean;
51
+ private restoreDemoState;
52
+ /** Reveal the local sandbox with the pin tool. Normal instances are unaffected. */
53
+ startLocalDemo(): void;
47
54
  private detectEnvironment;
48
55
  private boot;
49
56
  /**
@@ -120,6 +127,8 @@ export declare class CommentKitCore extends EventEmitter {
120
127
  toggleSidebar(): void;
121
128
  private overlayBeforeTool;
122
129
  setTool(tool: ToolType): void;
130
+ private operationContext;
131
+ private operationCallbacks;
123
132
  private loadMoreGuard;
124
133
  private loadComments;
125
134
  loadMoreComments(): Promise<void>;
@@ -0,0 +1,59 @@
1
+ import type { ApiClient } from "./api-client";
2
+ import type { Comment, CommentKitConfig } from "./types";
3
+ /** A demo window is fixed at creation; reading or editing never extends it. */
4
+ export declare const LOCAL_DEMO_TTL: number;
5
+ export interface CommentKitDemoOptions {
6
+ /** A name scoped below commentkit:demo:. Never used for production sessions. */
7
+ storageKey?: string;
8
+ ui?: Pick<NonNullable<CommentKitConfig["ui"]>, "theme" | "position">;
9
+ }
10
+ export interface CommentKitDemoSession {
11
+ expiresAt: number;
12
+ persistence: "localStorage" | "memory";
13
+ commentCount: number;
14
+ expired: boolean;
15
+ }
16
+ type ChangeReason = "persist" | "reset" | "expired" | "storage";
17
+ type PublicApiClient = Pick<ApiClient, keyof ApiClient>;
18
+ /** A closed local store: it has no fetch, token, websocket, upload, or queue dependency. */
19
+ export declare class LocalDemoStore {
20
+ readonly user: {
21
+ id: string;
22
+ name: string;
23
+ email: string;
24
+ avatar?: string;
25
+ organizationId?: string;
26
+ };
27
+ readonly storageKey: string;
28
+ private storage;
29
+ private data;
30
+ private timer;
31
+ private destroyed;
32
+ private expiryNotified;
33
+ private revision;
34
+ private listeners;
35
+ private lastSerialized;
36
+ constructor(options?: CommentKitDemoOptions);
37
+ private hydrate;
38
+ private persist;
39
+ private armExpiry;
40
+ private onFocus;
41
+ private onStorage;
42
+ private sync;
43
+ checkExpiry(): boolean;
44
+ getSession(): CommentKitDemoSession;
45
+ getComments(): Comment[];
46
+ subscribe(listener: (reason: ChangeReason) => void): () => void;
47
+ refresh(): void;
48
+ getRevision(): number;
49
+ private notify;
50
+ reset(): void;
51
+ activate(): void;
52
+ private write;
53
+ private find;
54
+ private modify;
55
+ readonly client: PublicApiClient;
56
+ private unavailable;
57
+ destroy(): void;
58
+ }
59
+ export {};
@@ -0,0 +1,17 @@
1
+ import { CommentKitCore } from "./core/comment-kit-core";
2
+ import type { CommentKitDemoOptions, CommentKitDemoSession } from "./core/local-demo";
3
+ export type { CommentKitDemoOptions, CommentKitDemoSession } from "./core/local-demo";
4
+ /** A real SDK instance with a private, fixed 24-hour browser-local data store. */
5
+ export interface CommentKitDemo {
6
+ start(): void;
7
+ reset(): void;
8
+ destroy(): void;
9
+ getSession(): CommentKitDemoSession;
10
+ getCore(): CommentKitCore;
11
+ onSessionChange(listener: (session: CommentKitDemoSession) => void): () => void;
12
+ }
13
+ /**
14
+ * Opt-in sandbox. No project/API key, OTP, production session, network client,
15
+ * realtime connection, file upload, or offline mutation queue is created.
16
+ */
17
+ export declare function createCommentKitDemo(options?: CommentKitDemoOptions): Promise<CommentKitDemo>;
@@ -0,0 +1,8 @@
1
+ /** Engine, protocol types and helpers without any UI runtime or global registration. */
2
+ export { ApiClient, formatMention, parseMentions, stripMentionMarkup } from "./core/api-client";
3
+ export { createAgentContext, formatAgentContext } from "./core/agent-context";
4
+ export { CommentKitCore, SDK_VERSION } from "./core/comment-kit-core";
5
+ export { WebSocketManager } from "./core/websocket-manager";
6
+ export type { ActivityItem, AgentCommentContext, AgentContextExport, AgentContextOptions, AgentElementContext, ApiError, AssigneeFilter, Attachment, AuthResponse, Comment, CommentFilter, CommentKitConfig, CommentKitEvents, CommentKitState, CommentMode, CommentReaction, ConnectionStatus, CursorPosition, DeviceInfo, DevGrabAttachment, DevGrabAttachmentPathSource, DevGrabOptions, DrawingData, DrawingPath, EventListener, InviteValidationResponse, Mention, Organization, OrganizationMember, OtpResponse, OtpStep, OtpVerifyResponse, PageFilter, PaginationInfo, PanelView, Position, PriorityFilter, Project, QueuedMutation, RealtimeMessage, Reply, ScreenshotOptions, ScreenshotProvider, ScreenshotResult, SortOrder, StateSlice, StatusFilter, TaskChecklistItem, TaskStatus, TextSelection, ToolType, Unsubscribe, User, UserFilter, } from "./core/types";
7
+ export { debounce, findElement, generateId, generateSelector, generateXPath, getCurrentPage, getElementBounds, getSelectionRange, getSelectionText, isElementVisible, isInteractiveElement, percentageToViewport, throttle, viewportToPercentage, } from "./utils/dom";
8
+ export { EventEmitter } from "./utils/event-emitter";
@@ -1,10 +1,8 @@
1
- export { ApiClient, formatMention, parseMentions, stripMentionMarkup } from "./core/api-client";
2
- export { createAgentContext, formatAgentContext } from "./core/agent-context";
3
- export { CommentKitCore, SDK_VERSION } from "./core/comment-kit-core";
4
- export { WebSocketManager } from "./core/websocket-manager";
5
- export type { ActivityItem, AgentCommentContext, AgentContextExport, AgentContextOptions, AgentElementContext, ApiError, AssigneeFilter, Attachment, AuthResponse, Comment, CommentFilter, CommentKitConfig, CommentKitEvents, CommentKitState, CommentMode, CommentReaction, ConnectionStatus, CursorPosition, DeviceInfo, DevGrabAttachment, DevGrabAttachmentPathSource, DevGrabOptions, DrawingData, DrawingPath, EventListener, InviteValidationResponse, Mention, Organization, OrganizationMember, OtpResponse, OtpStep, OtpVerifyResponse, PageFilter, PaginationInfo, PanelView, Position, PriorityFilter, Project, QueuedMutation, RealtimeMessage, Reply, ScreenshotOptions, ScreenshotProvider, ScreenshotResult, SortOrder, StateSlice, StatusFilter, TaskChecklistItem, TaskStatus, TextSelection, ToolType, Unsubscribe, User, UserFilter, } from "./core/types";
6
- export { debounce, findElement, generateId, generateSelector, generateXPath, getCurrentPage, getElementBounds, getSelectionRange, getSelectionText, isElementVisible, isInteractiveElement, percentageToViewport, throttle, viewportToPercentage, } from "./utils/dom";
7
- export { EventEmitter } from "./utils/event-emitter";
1
+ import type { CommentKitDemo, CommentKitDemoOptions } from "./demo";
2
+ /** @deprecated Prefer the dedicated `@commentkit/comment-kit/demo` entry. */
3
+ export declare function createCommentKitDemo(options?: CommentKitDemoOptions): Promise<CommentKitDemo>;
4
+ export type { CommentKitDemo, CommentKitDemoOptions, CommentKitDemoSession } from "./demo";
5
+ export * from "./headless";
8
6
  import type { CommentKitConfig, CommentKitEvents, DrawingData, DrawingPath, EventListener, ScreenshotResult } from "./core/types";
9
7
  import { CommentKitCore } from "./core/comment-kit-core";
10
8
  export declare class CommentKit {
@@ -13,7 +11,7 @@ export declare class CommentKit {
13
11
  private destroyed;
14
12
  constructor(config: CommentKitConfig);
15
13
  private mount;
16
- getState(): import(".").CommentKitState;
14
+ getState(): import("./headless").CommentKitState;
17
15
  getConfig(): Readonly<CommentKitConfig>;
18
16
  getFeatures(): {
19
17
  comments?: boolean;
@@ -50,11 +48,11 @@ export declare class CommentKit {
50
48
  setActiveDrawing(drawing: DrawingData | null): void;
51
49
  sendDrawingStroke(path: DrawingPath): void;
52
50
  captureScreenshot(el?: HTMLElement): Promise<ScreenshotResult | null>;
53
- uploadScreenshot(...args: Parameters<CommentKitCore["uploadScreenshot"]>): Promise<import(".").Comment | null>;
51
+ uploadScreenshot(...args: Parameters<CommentKitCore["uploadScreenshot"]>): Promise<import("./headless").Comment | null>;
54
52
  setActiveScreenshot(screenshot: ScreenshotResult | null): void;
55
53
  uploadFiles(files: File[]): Promise<string[]>;
56
- getOnlineUsers(): import(".").User[];
57
- getProjectMembers(): Promise<import(".").User[]>;
54
+ getOnlineUsers(): import("./headless").User[];
55
+ getProjectMembers(): Promise<import("./headless").User[]>;
58
56
  toggleShortcutsOverlay(): void;
59
57
  markThreadSeen(threadId: string): void;
60
58
  isThreadNew(threadId: string): boolean;
@@ -62,17 +60,17 @@ export declare class CommentKit {
62
60
  markAllActivitiesRead(): void;
63
61
  getUnreadActivityCount(): number;
64
62
  getPendingMutationCount(): number;
65
- getAgentContext(...args: Parameters<CommentKitCore["getAgentContext"]>): import(".").AgentContextExport;
66
- getAgentContextAsync(...args: Parameters<CommentKitCore["getAgentContextAsync"]>): Promise<import(".").AgentContextExport>;
63
+ getAgentContext(...args: Parameters<CommentKitCore["getAgentContext"]>): import("./headless").AgentContextExport;
64
+ getAgentContextAsync(...args: Parameters<CommentKitCore["getAgentContextAsync"]>): Promise<import("./headless").AgentContextExport>;
67
65
  formatAgentContext(...args: Parameters<CommentKitCore["formatAgentContext"]>): string;
68
66
  formatAgentContextAsync(...args: Parameters<CommentKitCore["formatAgentContextAsync"]>): Promise<string>;
69
67
  copyAgentContext(...args: Parameters<CommentKitCore["copyAgentContext"]>): Promise<string>;
70
68
  grabElement(...args: Parameters<CommentKitCore["grabElement"]>): Promise<import("./core/types").DevGrabResult | null>;
71
69
  grabElements(...args: Parameters<CommentKitCore["grabElements"]>): Promise<import("./core/types").DevGrabBundle | null>;
72
- on<K extends keyof CommentKitEvents>(event: K, listener: EventListener<CommentKitEvents[K]>): import(".").Unsubscribe;
70
+ on<K extends keyof CommentKitEvents>(event: K, listener: EventListener<CommentKitEvents[K]>): import("./headless").Unsubscribe;
73
71
  off<K extends keyof CommentKitEvents>(event: K, listener: EventListener<CommentKitEvents[K]>): void;
74
- onSlice(...args: Parameters<CommentKitCore["onSlice"]>): import(".").Unsubscribe;
75
- select(...args: Parameters<CommentKitCore["select"]>): import(".").Unsubscribe;
72
+ onSlice(...args: Parameters<CommentKitCore["onSlice"]>): import("./headless").Unsubscribe;
73
+ select(...args: Parameters<CommentKitCore["select"]>): import("./headless").Unsubscribe;
76
74
  getCore(): CommentKitCore;
77
75
  destroy(): void;
78
76
  }