@commentkit/comment-kit 0.6.8 → 0.7.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 (339) hide show
  1. package/CHANGELOG.md +71 -2
  2. package/LICENSE +18 -2
  3. package/README.md +198 -125
  4. package/SECURITY.md +48 -0
  5. package/dist/THIRD_PARTY_NOTICES.txt +284 -0
  6. package/dist/angular.es.js +68 -3419
  7. package/dist/comment-kit.es.js +33 -3192
  8. package/dist/demo.es.js +472 -0
  9. package/dist/headless.es.js +4 -0
  10. package/dist/preact.es.js +79 -3443
  11. package/dist/qwik.es.js +1 -3474
  12. package/dist/qwik.qwik.mjs +114 -0
  13. package/dist/react.es.js +80 -28447
  14. package/dist/shared/ShadowRootContext-Bv-4aElu.js +13 -0
  15. package/dist/shared/annotation-icons-Dh-bmNYK.js +172 -0
  16. package/dist/shared/annotation-toolbar-B9SxYqoF.js +1093 -0
  17. package/dist/shared/bridge-CJoGYngu.js +177 -0
  18. package/dist/shared/button-By0hGrJK.js +505 -0
  19. package/dist/shared/button-group-Cl9CrvvU.js +93 -0
  20. package/dist/shared/comment-drawing-canvas-Dzb5YoFw.js +124 -0
  21. package/dist/shared/comment-image-lightbox-BPYJT1sB.js +183 -0
  22. package/dist/shared/comment-kit-core-BaSuMzp9.js +3381 -0
  23. package/dist/shared/comment-kit-ui-CzfdAZs2.js +20181 -0
  24. package/dist/shared/comment-screenshot-annotator-C7X-_bm6.js +151 -0
  25. package/dist/shared/comment-screenshot-overlay-wIrZrcRy.js +206 -0
  26. package/dist/shared/comment-utils-BycYTSxA.js +602 -0
  27. package/dist/shared/createReactComponent-BZHeRbD0.js +45 -0
  28. package/dist/shared/dev-export-panel-FwFVdady.js +208 -0
  29. package/dist/shared/dev-grab-DDqg0LQf.js +203 -0
  30. package/dist/shared/dist-De294MVF.js +623 -0
  31. package/dist/{core/dom-x9svfpMk.js → shared/dom-Bhf4WFtY.js} +2 -2
  32. package/dist/shared/element-selector-BhJm-NSs.js +858 -0
  33. package/dist/shared/errors-Bu5ajEmB.js +22 -0
  34. package/dist/shared/icons-nzMOLzrm.js +266 -0
  35. package/dist/shared/mount-ui--ijs8pWT.js +193 -0
  36. package/dist/{angular/pusher-Vs-W-c8I.js → shared/pusher-ipHMJnO_.js} +93 -127
  37. package/dist/shared/realtime-Dk41VwKg.js +302 -0
  38. package/dist/shared/separator-XDBsaWyw.js +4021 -0
  39. package/dist/shared/shadow-root-C5v-T8lQ.js +135 -0
  40. package/dist/shared/styles-D3yMtaec.js +2 -0
  41. package/dist/shared/useValueChanged-CrzfD8l-.js +92 -0
  42. package/dist/{angular/limits-AEqOBweE.js → shared/validation-C7QG8j7Z.js} +2 -28
  43. package/dist/{core/websocket-manager-D1_TEuy_.js → shared/websocket-manager-DhLWh3Jr.js} +90 -148
  44. package/dist/solid.es.js +63 -3427
  45. package/dist/svelte.es.js +78 -3442
  46. package/dist/types/adapters/bridge.d.ts +10 -13
  47. package/dist/types/angular/index.d.ts +17 -7
  48. package/dist/types/core/api-client.d.ts +16 -17
  49. package/dist/types/core/comment-kit-core.d.ts +29 -12
  50. package/dist/types/core/local-demo.d.ts +60 -0
  51. package/dist/types/core/types.d.ts +68 -0
  52. package/dist/types/demo.d.ts +17 -0
  53. package/dist/types/headless.d.ts +8 -0
  54. package/dist/types/index.d.ts +22 -20
  55. package/dist/types/qwik/index.d.ts +4 -1
  56. package/dist/vue.es.js +80 -3443
  57. package/docs/api-reference.md +372 -0
  58. package/docs/local-demo.md +60 -0
  59. package/package.json +69 -41
  60. package/dist/angular/chunk-Cyg4N8Ue.js +0 -11
  61. package/dist/angular/comment-kit-ui-D-LUFD6n.js +0 -24898
  62. package/dist/angular/dom-Cx1nMbdI.js +0 -104
  63. package/dist/angular/mount-ui-C9PJ5aK_.js +0 -72
  64. package/dist/angular/realtime-VrKV0lPI.js +0 -567
  65. package/dist/angular/shadow-root-yMOaW9pk.js +0 -93
  66. package/dist/angular/styles-CMz7-p8x.js +0 -2
  67. package/dist/angular/widget-theme-CYPYAwhR.js +0 -24
  68. package/dist/comment-kit.css +0 -2
  69. package/dist/core/chunk-t7YoJN_i.js +0 -11
  70. package/dist/core/comment-kit-ui-Ct4E18do.js +0 -24898
  71. package/dist/core/error-boundary-CN_BGsYl.js +0 -21
  72. package/dist/core/mount-ui-Bfnuuesk.js +0 -72
  73. package/dist/core/pusher-CizoY5NA.js +0 -2504
  74. package/dist/core/realtime-C3_O7gi2.js +0 -278
  75. package/dist/core/shadow-root-DAtdjHG2.js +0 -93
  76. package/dist/core/styles-ClRoB6ro.js +0 -2
  77. package/dist/core/widget-theme-BWDYr7VR.js +0 -24
  78. package/dist/preact/chunk-CZ0PdaaN.js +0 -11
  79. package/dist/preact/comment-kit-ui-DEzn7J_P.js +0 -24898
  80. package/dist/preact/dom-_ULpq7rg.js +0 -104
  81. package/dist/preact/error-boundary-B4-Bfy3g.js +0 -21
  82. package/dist/preact/limits-C3ZEKcL_.js +0 -71
  83. package/dist/preact/mount-ui-Dx8en--W.js +0 -72
  84. package/dist/preact/pusher-BP4kCufH.js +0 -2504
  85. package/dist/preact/realtime-COin_nJF.js +0 -567
  86. package/dist/preact/shadow-root-D-NcwruG.js +0 -93
  87. package/dist/preact/styles-D6i7be5-.js +0 -2
  88. package/dist/preact/widget-theme-B7Z2pbaA.js +0 -24
  89. package/dist/qwik/chunk-CKKKzG2Q.js +0 -11
  90. package/dist/qwik/comment-kit-ui-Dvwee2tw.js +0 -24898
  91. package/dist/qwik/dom-Dm3gzBBJ.js +0 -104
  92. package/dist/qwik/error-boundary-C4hlYQwS.js +0 -21
  93. package/dist/qwik/limits-DK35yjGY.js +0 -71
  94. package/dist/qwik/mount-ui-DSAwNk_d.js +0 -72
  95. package/dist/qwik/pusher-B1KgC4iB.js +0 -2504
  96. package/dist/qwik/realtime-DhfcBrwF.js +0 -567
  97. package/dist/qwik/shadow-root-PkjcnvPe.js +0 -93
  98. package/dist/qwik/styles-DmEmq5Lh.js +0 -2
  99. package/dist/qwik/widget-theme-lbPF3I0A.js +0 -24
  100. package/dist/react/chunk--MHYZ-zp.js +0 -12
  101. package/dist/react/limits-CpprSem3.js +0 -175
  102. package/dist/react/pusher-3dki8s2l.js +0 -2505
  103. package/dist/react/realtime-DGqScuox.js +0 -567
  104. package/dist/solid/chunk-B2NCWFvW.js +0 -11
  105. package/dist/solid/comment-kit-ui-ACW8BpEm.js +0 -24898
  106. package/dist/solid/dom-DqDH-Gml.js +0 -104
  107. package/dist/solid/error-boundary-9mimpbZA.js +0 -21
  108. package/dist/solid/limits-B_69IbLl.js +0 -71
  109. package/dist/solid/mount-ui-Dq1wj_tx.js +0 -72
  110. package/dist/solid/pusher-_RVNpj1f.js +0 -2504
  111. package/dist/solid/realtime-DbUJK4gU.js +0 -567
  112. package/dist/solid/shadow-root-CssU3bQb.js +0 -93
  113. package/dist/solid/styles-DbueS9xx.js +0 -2
  114. package/dist/solid/widget-theme-B4DJ14fI.js +0 -24
  115. package/dist/svelte/chunk-Pi70BKld.js +0 -11
  116. package/dist/svelte/comment-kit-ui-Cx4u1g77.js +0 -24898
  117. package/dist/svelte/dom-MyTrWzy_.js +0 -104
  118. package/dist/svelte/error-boundary-C3GWI_IX.js +0 -21
  119. package/dist/svelte/limits-CURF22v3.js +0 -71
  120. package/dist/svelte/mount-ui-CBoNGLNS.js +0 -72
  121. package/dist/svelte/pusher-DN1BiUDw.js +0 -2504
  122. package/dist/svelte/realtime-M1CJbCBA.js +0 -567
  123. package/dist/svelte/shadow-root-DG8inbf6.js +0 -93
  124. package/dist/svelte/styles-BK_MaUpD.js +0 -2
  125. package/dist/svelte/widget-theme-CkfJNysI.js +0 -24
  126. package/dist/types/adapters/errors.d.ts +0 -3
  127. package/dist/types/core/auth.d.ts +0 -18
  128. package/dist/types/core/comments.d.ts +0 -43
  129. package/dist/types/core/dev-grab.d.ts +0 -14
  130. package/dist/types/core/keyboard.d.ts +0 -12
  131. package/dist/types/core/limits.d.ts +0 -52
  132. package/dist/types/core/offline-queue.d.ts +0 -23
  133. package/dist/types/core/realtime.d.ts +0 -9
  134. package/dist/types/core/screenshot.d.ts +0 -12
  135. package/dist/types/core/session.d.ts +0 -9
  136. package/dist/types/core/source-resolver.d.ts +0 -19
  137. package/dist/types/core/state.d.ts +0 -24
  138. package/dist/types/react/comment-kit-ui.d.ts +0 -9
  139. package/dist/types/react/comments/comment-flow.d.ts +0 -8
  140. package/dist/types/react/comments/outcomes.d.ts +0 -28
  141. package/dist/types/react/comments/pin-geometry.d.ts +0 -12
  142. package/dist/types/react/comments/view-model.d.ts +0 -66
  143. package/dist/types/react/components/annotation-toolbar.d.ts +0 -36
  144. package/dist/types/react/components/build-panel-shared-props.d.ts +0 -25
  145. package/dist/types/react/components/comment-actions.d.ts +0 -19
  146. package/dist/types/react/components/comment-body.d.ts +0 -8
  147. package/dist/types/react/components/comment-branch-filter.d.ts +0 -15
  148. package/dist/types/react/components/comment-composer-actions.d.ts +0 -26
  149. package/dist/types/react/components/comment-composer-extras-fields.d.ts +0 -32
  150. package/dist/types/react/components/comment-composer-extras-toolbar.d.ts +0 -9
  151. package/dist/types/react/components/comment-composer-extras.d.ts +0 -10
  152. package/dist/types/react/components/comment-composer-extras.state.d.ts +0 -24
  153. package/dist/types/react/components/comment-composer-hook.d.ts +0 -1
  154. package/dist/types/react/components/comment-composer-media.d.ts +0 -17
  155. package/dist/types/react/components/comment-composer.d.ts +0 -4
  156. package/dist/types/react/components/comment-composer.types.d.ts +0 -41
  157. package/dist/types/react/components/comment-composer.utils.d.ts +0 -3
  158. package/dist/types/react/components/comment-connection-alert.d.ts +0 -7
  159. package/dist/types/react/components/comment-cursor-layer.d.ts +0 -14
  160. package/dist/types/react/components/comment-custom-cursor.d.ts +0 -14
  161. package/dist/types/react/components/comment-drawing-canvas.d.ts +0 -10
  162. package/dist/types/react/components/comment-emoji-picker.d.ts +0 -12
  163. package/dist/types/react/components/comment-error-banner.d.ts +0 -8
  164. package/dist/types/react/components/comment-extension-banner.d.ts +0 -8
  165. package/dist/types/react/components/comment-fab-tools.d.ts +0 -37
  166. package/dist/types/react/components/comment-fab.d.ts +0 -34
  167. package/dist/types/react/components/comment-filter-assignee.d.ts +0 -9
  168. package/dist/types/react/components/comment-filter-bar.d.ts +0 -27
  169. package/dist/types/react/components/comment-filter-popover.d.ts +0 -20
  170. package/dist/types/react/components/comment-format-toolbar.constants.d.ts +0 -34
  171. package/dist/types/react/components/comment-format-toolbar.d.ts +0 -6
  172. package/dist/types/react/components/comment-header.d.ts +0 -34
  173. package/dist/types/react/components/comment-highlight-layer.d.ts +0 -11
  174. package/dist/types/react/components/comment-highlight-marker.d.ts +0 -9
  175. package/dist/types/react/components/comment-image-lightbox.d.ts +0 -10
  176. package/dist/types/react/components/comment-images.d.ts +0 -7
  177. package/dist/types/react/components/comment-item.d.ts +0 -26
  178. package/dist/types/react/components/comment-keyboard-shortcuts.d.ts +0 -7
  179. package/dist/types/react/components/comment-kit-overlays.d.ts +0 -15
  180. package/dist/types/react/components/comment-kit.d.ts +0 -12
  181. package/dist/types/react/components/comment-list-filters.d.ts +0 -14
  182. package/dist/types/react/components/comment-login-modal.d.ts +0 -20
  183. package/dist/types/react/components/comment-marker-layer-composer.d.ts +0 -21
  184. package/dist/types/react/components/comment-marker-layer.d.ts +0 -27
  185. package/dist/types/react/components/comment-marker-popover.d.ts +0 -12
  186. package/dist/types/react/components/comment-marker.d.ts +0 -15
  187. package/dist/types/react/components/comment-member-list.d.ts +0 -10
  188. package/dist/types/react/components/comment-mode-bar.d.ts +0 -15
  189. package/dist/types/react/components/comment-online-users.d.ts +0 -8
  190. package/dist/types/react/components/comment-page-ref.d.ts +0 -9
  191. package/dist/types/react/components/comment-panel-header.d.ts +0 -22
  192. package/dist/types/react/components/comment-panel-mobile.d.ts +0 -9
  193. package/dist/types/react/components/comment-panel-utils.d.ts +0 -6
  194. package/dist/types/react/components/comment-panel-view-body.d.ts +0 -23
  195. package/dist/types/react/components/comment-panel.d.ts +0 -37
  196. package/dist/types/react/components/comment-quoted-text.d.ts +0 -9
  197. package/dist/types/react/components/comment-reactions.d.ts +0 -11
  198. package/dist/types/react/components/comment-remote-cursor.d.ts +0 -11
  199. package/dist/types/react/components/comment-screenshot-annotator.d.ts +0 -11
  200. package/dist/types/react/components/comment-screenshot-overlay.d.ts +0 -10
  201. package/dist/types/react/components/comment-search-bar.d.ts +0 -7
  202. package/dist/types/react/components/comment-settings-view.d.ts +0 -20
  203. package/dist/types/react/components/comment-skeletons.d.ts +0 -9
  204. package/dist/types/react/components/comment-thread-detail-badges.d.ts +0 -16
  205. package/dist/types/react/components/comment-thread-detail-meta.d.ts +0 -9
  206. package/dist/types/react/components/comment-thread-detail-replies.d.ts +0 -13
  207. package/dist/types/react/components/comment-thread-detail.d.ts +0 -13
  208. package/dist/types/react/components/comment-thread-footer.d.ts +0 -12
  209. package/dist/types/react/components/comment-thread-list-item.d.ts +0 -15
  210. package/dist/types/react/components/comment-thread-list.d.ts +0 -16
  211. package/dist/types/react/components/comment-user-avatar-tooltip.d.ts +0 -12
  212. package/dist/types/react/components/comment-users-context.d.ts +0 -15
  213. package/dist/types/react/components/comment-utils.d.ts +0 -20
  214. package/dist/types/react/components/comment.d.ts +0 -26
  215. package/dist/types/react/components/constants.d.ts +0 -50
  216. package/dist/types/react/components/dev-export-panel.d.ts +0 -10
  217. package/dist/types/react/components/drawing-path-renderer.d.ts +0 -10
  218. package/dist/types/react/components/element-selector.d.ts +0 -11
  219. package/dist/types/react/components/live-region.d.ts +0 -16
  220. package/dist/types/react/components/screenshot-capture.d.ts +0 -17
  221. package/dist/types/react/components/status-indicator.d.ts +0 -43
  222. package/dist/types/react/components/ui.d.ts +0 -44
  223. package/dist/types/react/components/use-comment-composer.d.ts +0 -28
  224. package/dist/types/react/error-boundary.d.ts +0 -25
  225. package/dist/types/react/hooks/use-comment-fab-drag.d.ts +0 -21
  226. package/dist/types/react/hooks/use-comment-hash-link.d.ts +0 -20
  227. package/dist/types/react/hooks/use-comment-kit-filters.d.ts +0 -19
  228. package/dist/types/react/hooks/use-comment-kit-keyboard.d.ts +0 -11
  229. package/dist/types/react/hooks/use-comment-kit-prop-sync.d.ts +0 -12
  230. package/dist/types/react/hooks/use-comment-marker-drag.d.ts +0 -23
  231. package/dist/types/react/hooks/use-comment-panel-navigation.d.ts +0 -21
  232. package/dist/types/react/hooks/use-comment-realtime.d.ts +0 -6
  233. package/dist/types/react/hooks/use-comment-thread-actions.d.ts +0 -15
  234. package/dist/types/react/hooks/use-connection-retry.d.ts +0 -9
  235. package/dist/types/react/hooks/use-drawing.d.ts +0 -32
  236. package/dist/types/react/hooks/use-extension-conflicts.d.ts +0 -13
  237. package/dist/types/react/hooks/use-filtered-threads.d.ts +0 -7
  238. package/dist/types/react/hooks/use-marker-layer.d.ts +0 -19
  239. package/dist/types/react/hooks/use-screenshot.d.ts +0 -18
  240. package/dist/types/react/hooks/use-text-selection.d.ts +0 -17
  241. package/dist/types/react/hooks/use-websocket.d.ts +0 -9
  242. package/dist/types/react/is-local-host.d.ts +0 -2
  243. package/dist/types/react/mount-ui.d.ts +0 -19
  244. package/dist/types/react/shadow-root.d.ts +0 -23
  245. package/dist/types/react/shims/use-sync-external-store-with-selector.d.ts +0 -4
  246. package/dist/types/react/shims/use-sync-external-store.d.ts +0 -1
  247. package/dist/types/react/ui/lib/ShadowRootContext.d.ts +0 -10
  248. package/dist/types/react/ui/lib/cn.d.ts +0 -12
  249. package/dist/types/react/ui/lib/widget-theme.d.ts +0 -7
  250. package/dist/types/react/ui/primitives/alert/alert.d.ts +0 -8
  251. package/dist/types/react/ui/primitives/alert/index.d.ts +0 -1
  252. package/dist/types/react/ui/primitives/alert-dialog/alert-dialog.d.ts +0 -23
  253. package/dist/types/react/ui/primitives/alert-dialog/index.d.ts +0 -1
  254. package/dist/types/react/ui/primitives/avatar/avatar.d.ts +0 -10
  255. package/dist/types/react/ui/primitives/avatar/index.d.ts +0 -1
  256. package/dist/types/react/ui/primitives/badge/badge.d.ts +0 -5
  257. package/dist/types/react/ui/primitives/badge/index.d.ts +0 -1
  258. package/dist/types/react/ui/primitives/breadcrumb/breadcrumb.d.ts +0 -10
  259. package/dist/types/react/ui/primitives/breadcrumb/index.d.ts +0 -1
  260. package/dist/types/react/ui/primitives/button/button.d.ts +0 -6
  261. package/dist/types/react/ui/primitives/button/index.d.ts +0 -1
  262. package/dist/types/react/ui/primitives/button-group/button-group.d.ts +0 -9
  263. package/dist/types/react/ui/primitives/button-group/index.d.ts +0 -1
  264. package/dist/types/react/ui/primitives/card/card.d.ts +0 -11
  265. package/dist/types/react/ui/primitives/card/index.d.ts +0 -1
  266. package/dist/types/react/ui/primitives/checkbox/checkbox.d.ts +0 -3
  267. package/dist/types/react/ui/primitives/checkbox/index.d.ts +0 -1
  268. package/dist/types/react/ui/primitives/dialog/dialog.d.ts +0 -17
  269. package/dist/types/react/ui/primitives/dialog/index.d.ts +0 -1
  270. package/dist/types/react/ui/primitives/dropdown-menu/dropdown-menu.d.ts +0 -29
  271. package/dist/types/react/ui/primitives/dropdown-menu/index.d.ts +0 -1
  272. package/dist/types/react/ui/primitives/empty/empty.d.ts +0 -10
  273. package/dist/types/react/ui/primitives/empty/index.d.ts +0 -1
  274. package/dist/types/react/ui/primitives/field/field.d.ts +0 -22
  275. package/dist/types/react/ui/primitives/field/index.d.ts +0 -1
  276. package/dist/types/react/ui/primitives/hover-card/hover-card.d.ts +0 -6
  277. package/dist/types/react/ui/primitives/hover-card/index.d.ts +0 -1
  278. package/dist/types/react/ui/primitives/input/index.d.ts +0 -1
  279. package/dist/types/react/ui/primitives/input/input.d.ts +0 -3
  280. package/dist/types/react/ui/primitives/input-group/index.d.ts +0 -1
  281. package/dist/types/react/ui/primitives/input-group/input-group.d.ts +0 -16
  282. package/dist/types/react/ui/primitives/input-otp/index.d.ts +0 -1
  283. package/dist/types/react/ui/primitives/input-otp/input-otp.d.ts +0 -11
  284. package/dist/types/react/ui/primitives/kbd/index.d.ts +0 -1
  285. package/dist/types/react/ui/primitives/kbd/kbd.d.ts +0 -4
  286. package/dist/types/react/ui/primitives/label/index.d.ts +0 -1
  287. package/dist/types/react/ui/primitives/label/label.d.ts +0 -3
  288. package/dist/types/react/ui/primitives/native-select/index.d.ts +0 -1
  289. package/dist/types/react/ui/primitives/native-select/native-select.d.ts +0 -7
  290. package/dist/types/react/ui/primitives/popover/index.d.ts +0 -1
  291. package/dist/types/react/ui/primitives/popover/popover.d.ts +0 -9
  292. package/dist/types/react/ui/primitives/preview/component-preview.d.ts +0 -8
  293. package/dist/types/react/ui/primitives/progress/index.d.ts +0 -1
  294. package/dist/types/react/ui/primitives/progress/progress.d.ts +0 -7
  295. package/dist/types/react/ui/primitives/radio-group/index.d.ts +0 -1
  296. package/dist/types/react/ui/primitives/radio-group/radio-group.d.ts +0 -6
  297. package/dist/types/react/ui/primitives/scroll-area/index.d.ts +0 -1
  298. package/dist/types/react/ui/primitives/scroll-area/scroll-area.d.ts +0 -6
  299. package/dist/types/react/ui/primitives/select/index.d.ts +0 -1
  300. package/dist/types/react/ui/primitives/select/select.d.ts +0 -15
  301. package/dist/types/react/ui/primitives/separator/index.d.ts +0 -1
  302. package/dist/types/react/ui/primitives/separator/separator.d.ts +0 -3
  303. package/dist/types/react/ui/primitives/sheet/index.d.ts +0 -1
  304. package/dist/types/react/ui/primitives/sheet/sheet.d.ts +0 -14
  305. package/dist/types/react/ui/primitives/skeleton/index.d.ts +0 -1
  306. package/dist/types/react/ui/primitives/skeleton/skeleton.d.ts +0 -3
  307. package/dist/types/react/ui/primitives/slider/index.d.ts +0 -1
  308. package/dist/types/react/ui/primitives/slider/slider.d.ts +0 -7
  309. package/dist/types/react/ui/primitives/sonner/index.d.ts +0 -1
  310. package/dist/types/react/ui/primitives/sonner/sonner.d.ts +0 -4
  311. package/dist/types/react/ui/primitives/spinner/index.d.ts +0 -1
  312. package/dist/types/react/ui/primitives/spinner/spinner.d.ts +0 -3
  313. package/dist/types/react/ui/primitives/switch/index.d.ts +0 -1
  314. package/dist/types/react/ui/primitives/switch/switch.d.ts +0 -5
  315. package/dist/types/react/ui/primitives/tabs/index.d.ts +0 -1
  316. package/dist/types/react/ui/primitives/tabs/tabs.d.ts +0 -8
  317. package/dist/types/react/ui/primitives/textarea/index.d.ts +0 -1
  318. package/dist/types/react/ui/primitives/textarea/textarea.d.ts +0 -3
  319. package/dist/types/react/ui/primitives/toggle/index.d.ts +0 -1
  320. package/dist/types/react/ui/primitives/toggle/toggle.d.ts +0 -7
  321. package/dist/types/react/ui/primitives/toggle-group/index.d.ts +0 -1
  322. package/dist/types/react/ui/primitives/toggle-group/toggle-group.d.ts +0 -14
  323. package/dist/types/react/ui/primitives/tooltip/index.d.ts +0 -1
  324. package/dist/types/react/ui/primitives/tooltip/tooltip.d.ts +0 -7
  325. package/dist/types/utils/freeze-animations.d.ts +0 -8
  326. package/dist/types/utils/text.d.ts +0 -9
  327. package/dist/types/utils/validation.d.ts +0 -10
  328. package/dist/vue/chunk-DHrubWSL.js +0 -11
  329. package/dist/vue/comment-kit-ui-C3zijClM.js +0 -24898
  330. package/dist/vue/dom-C7krZAR8.js +0 -104
  331. package/dist/vue/error-boundary-DW6uGR8U.js +0 -21
  332. package/dist/vue/limits-B6csdQeI.js +0 -71
  333. package/dist/vue/mount-ui-18BnLwCO.js +0 -72
  334. package/dist/vue/pusher-cmjNbW6a.js +0 -2504
  335. package/dist/vue/realtime-B0B5cE-E.js +0 -567
  336. package/dist/vue/shadow-root-zwd_wUIP.js +0 -93
  337. package/dist/vue/styles-B0NAkbKu.js +0 -2
  338. package/dist/vue/widget-theme-D7Vkagk7.js +0 -24
  339. /package/dist/{angular/error-boundary-CxhCm8iF.js → shared/error-boundary-D3PD74vI.js} +0 -0
@@ -0,0 +1,472 @@
1
+ import { o as e, r as t } from "./shared/validation-C7QG8j7Z.js";
2
+ import { p as n, t as r } from "./shared/comment-kit-core-BaSuMzp9.js";
3
+ var i = 864e5, a = 512e3, o = 50, s = 20, c = "commentkit:demo:", l = {
4
+ id: "local-demo-you",
5
+ name: "You",
6
+ email: "you@demo.invalid"
7
+ };
8
+ function u(e, n, r = !1) {
9
+ return typeof e == "string" && (r || e.trim().length > 0) && e.length <= n && !t(e);
10
+ }
11
+ function d(e) {
12
+ return typeof e == "string" && e.length <= 40 && Number.isFinite(Date.parse(e));
13
+ }
14
+ function f(e) {
15
+ return d(e) && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?(?:Z|[+-]\d{2}:\d{2})$/.test(e);
16
+ }
17
+ function p(e, t) {
18
+ e.status !== t && (e.status = t, t === "open" ? (delete e.resolvedAt, delete e.completedAt) : t === "resolved" ? (e.resolvedAt = (/* @__PURE__ */ new Date()).toISOString(), delete e.completedAt) : t === "complete" && (e.completedAt = (/* @__PURE__ */ new Date()).toISOString()));
19
+ }
20
+ function m(e) {
21
+ return typeof e == "string" && /^[a-zA-Z0-9_-]{1,128}$/.test(e);
22
+ }
23
+ function h(t) {
24
+ return e(t) && typeof t.x == "number" && Number.isFinite(t.x) && t.x >= 0 && t.x <= 100 && typeof t.y == "number" && Number.isFinite(t.y) && t.y >= 0 && t.y <= 100 && (t.element === void 0 || u(t.element, 2048)) && (t.xpath === void 0 || u(t.xpath, 2048));
25
+ }
26
+ function g(t) {
27
+ if (t === void 0) return [];
28
+ if (!Array.isArray(t) || t.length > 20) return null;
29
+ let n = [], r = /* @__PURE__ */ new Set();
30
+ for (let i of t) {
31
+ if (!e(i) || !u(i.emoji, 32) || typeof i.reacted != "boolean" || r.has(i.emoji)) return null;
32
+ r.add(i.emoji), i.reacted && n.push({
33
+ emoji: i.emoji,
34
+ count: 1,
35
+ reacted: !0
36
+ });
37
+ }
38
+ return n;
39
+ }
40
+ function _(t) {
41
+ if (t === void 0) return [];
42
+ if (!Array.isArray(t) || t.length > 100) return null;
43
+ let n = [];
44
+ for (let r of t) {
45
+ if (!e(r) || !m(r.userId)) return null;
46
+ r.userId === l.id && n.length === 0 && n.push({
47
+ userId: l.id,
48
+ name: l.name
49
+ });
50
+ }
51
+ return n;
52
+ }
53
+ function v(t) {
54
+ if (t !== void 0) return !e(t) || !u(t.browser, 255) || !u(t.os, 255) || !u(t.windowSize, 64) || typeof t.devicePixelRatio != "number" || !Number.isFinite(t.devicePixelRatio) || t.devicePixelRatio <= 0 || t.devicePixelRatio > 16 || !["desktop", "mobile"].includes(t.type) || t.deployment !== void 0 && !u(t.deployment, 255, !0) ? null : {
55
+ browser: t.browser,
56
+ os: t.os,
57
+ windowSize: t.windowSize,
58
+ devicePixelRatio: t.devicePixelRatio,
59
+ type: t.type,
60
+ ...t.deployment === void 0 ? {} : { deployment: t.deployment }
61
+ };
62
+ }
63
+ function y(t) {
64
+ if (!e(t) || !m(t.id) || !u(t.content, 5e3) || !d(t.createdAt)) return null;
65
+ let n = g(t.reactions), r = _(t.mentions);
66
+ if (!n || !r) return null;
67
+ let i = t.replyTo, a;
68
+ if (i !== void 0) {
69
+ if (!e(i) || !m(i.id) || !["comment", "reply"].includes(i.type) || !u(i.body, 1e4)) return null;
70
+ a = {
71
+ id: i.id,
72
+ type: i.type,
73
+ authorName: l.name,
74
+ body: i.body
75
+ };
76
+ }
77
+ return {
78
+ id: t.id,
79
+ content: t.content,
80
+ createdAt: t.createdAt,
81
+ author: { ...l },
82
+ reactions: n,
83
+ mentions: r,
84
+ ...a ? { replyTo: a } : {},
85
+ ...t.isEdited === !0 ? { isEdited: !0 } : {}
86
+ };
87
+ }
88
+ function b(t) {
89
+ if (!e(t) || !m(t.id) || t.type !== "pin" || !u(t.content, 1e4) || !h(t.position) || ![
90
+ "open",
91
+ "resolved",
92
+ "complete"
93
+ ].includes(t.status) || ![
94
+ "low",
95
+ "medium",
96
+ "high",
97
+ "urgent"
98
+ ].includes(t.priority) || !d(t.createdAt) || !d(t.updatedAt) || t.resolvedAt != null && !f(t.resolvedAt) || t.completedAt != null && !f(t.completedAt) || !e(t.page) || !u(t.page.url, 2e3) || !u(t.page.path, 2e3) || !u(t.page.title, 2e3, !0) || !Array.isArray(t.replies) || t.replies.length > s || t.description !== void 0 && !u(t.description, 1e4, !0) || t.branch !== void 0 && !u(t.branch, 255)) return null;
99
+ let n;
100
+ try {
101
+ if (n = new URL(t.page.url), n.origin !== window.location.origin || n.username || n.password || n.pathname + n.search !== t.page.path) return null;
102
+ } catch {
103
+ return null;
104
+ }
105
+ let r = t.replies.map(y);
106
+ if (r.some((e) => !e) || r.some((e) => e?.replyTo?.type === "comment" && e.replyTo.id !== t.id) || new Set(r.map((e) => e.id)).size !== r.length) return null;
107
+ let i = [];
108
+ if (t.checklist !== void 0) {
109
+ if (!Array.isArray(t.checklist) || t.checklist.length > 25) return null;
110
+ for (let n of t.checklist) {
111
+ if (!e(n) || !u(n.id, 256) || !u(n.label, 500) || typeof n.done != "boolean") return null;
112
+ i.push({
113
+ id: n.id,
114
+ label: n.label,
115
+ done: n.done
116
+ });
117
+ }
118
+ }
119
+ let a = g(t.reactions), o = _(t.mentions), c = v(t.deviceInfo);
120
+ return !a || !o || c === null ? null : {
121
+ id: t.id,
122
+ type: "pin",
123
+ content: t.content,
124
+ position: {
125
+ x: t.position.x,
126
+ y: t.position.y,
127
+ ...t.position.element ? { element: t.position.element } : {},
128
+ ...t.position.xpath ? { xpath: t.position.xpath } : {}
129
+ },
130
+ status: t.status,
131
+ priority: t.priority,
132
+ author: { ...l },
133
+ userId: l.id,
134
+ createdAt: t.createdAt,
135
+ updatedAt: t.updatedAt,
136
+ ...f(t.resolvedAt) ? { resolvedAt: t.resolvedAt } : {},
137
+ ...f(t.completedAt) ? { completedAt: t.completedAt } : {},
138
+ page: {
139
+ url: n.href,
140
+ path: t.page.path,
141
+ title: t.page.title
142
+ },
143
+ replies: r,
144
+ attachments: [],
145
+ checklist: i,
146
+ reactions: a,
147
+ mentions: o,
148
+ ...c ? { deviceInfo: c } : {},
149
+ ...t.branch === void 0 ? {} : { branch: t.branch },
150
+ assignees: Array.isArray(t.assignees) && t.assignees.some((t) => e(t) && t.id === l.id) ? [{ ...l }] : [],
151
+ ...t.description === void 0 ? {} : { description: t.description },
152
+ ...t.isEdited === !0 ? { isEdited: !0 } : {}
153
+ };
154
+ }
155
+ function x() {
156
+ let e = Date.now();
157
+ return {
158
+ version: 1,
159
+ createdAt: e,
160
+ expiresAt: e + i,
161
+ comments: []
162
+ };
163
+ }
164
+ var S = class {
165
+ constructor(e = {}) {
166
+ this.user = { ...l }, this.storage = null, this.data = x(), this.timer = null, this.destroyed = !1, this.expiryNotified = !1, this.revision = 0, this.listeners = /* @__PURE__ */ new Set(), this.lastSerialized = null, this.onFocus = () => {
167
+ this.sync();
168
+ }, this.onStorage = (e) => {
169
+ (e.key === this.storageKey || e.key === null) && (e.newValue === null ? (this.expiryNotified = !1, this.data.comments = [], this.data.expiresAt = Math.min(this.data.expiresAt, Date.now()), this.lastSerialized = null, this.notify("expired")) : this.sync());
170
+ }, this.client = {
171
+ setProject() {},
172
+ setUserEmail() {},
173
+ setAuthToken() {},
174
+ setEnvironment() {},
175
+ setOnAuthExpired() {},
176
+ validateApiKey: async () => this.unavailable(),
177
+ requestOtp: async () => this.unavailable(),
178
+ verifyOtp: async () => this.unavailable(),
179
+ validateInvite: async () => this.unavailable(),
180
+ getComments: async (e, t = "all", n = 1, r = o, i, a) => {
181
+ this.sync();
182
+ let s = this.getComments().filter((n) => (!e || n.page.path === e) && (t === "all" || n.status === t) && (!i || n.environment === i) && (!a || n.branch === a)), c = Number.isFinite(n) ? Math.max(1, Math.floor(n)) : 1, l = Number.isFinite(r) ? Math.min(100, Math.max(1, Math.floor(r))) : o, u = (c - 1) * l;
183
+ return {
184
+ comments: s.slice(u, u + l),
185
+ pagination: {
186
+ total: s.length,
187
+ hasMore: u + l < s.length,
188
+ page: c,
189
+ limit: l
190
+ }
191
+ };
192
+ },
193
+ createComment: async (e, t, n, r, i = "medium", a, o, s) => {
194
+ if (e !== "pin" || s?.attachmentIds?.length) return this.unavailable();
195
+ let c = (/* @__PURE__ */ new Date()).toISOString(), u = `demo-${crypto.randomUUID()}`;
196
+ return this.write((a) => a.push({
197
+ id: u,
198
+ type: e,
199
+ content: t,
200
+ position: n,
201
+ page: r,
202
+ priority: i,
203
+ status: "open",
204
+ author: { ...l },
205
+ userId: l.id,
206
+ createdAt: c,
207
+ updatedAt: c,
208
+ replies: [],
209
+ attachments: [],
210
+ description: s?.description,
211
+ checklist: s?.checklist,
212
+ assignees: s?.assignees,
213
+ mentions: s?.mentions,
214
+ branch: s?.branch,
215
+ deviceInfo: s?.deviceInfo
216
+ })), this.getComments().find((e) => e.id === u);
217
+ },
218
+ updateComment: async (e, t) => t.attachmentIds?.length || t.drawingData || t.textSelection ? this.unavailable() : this.modify(e, (e) => {
219
+ Object.assign(e, t, {
220
+ isEdited: !0,
221
+ status: e.status,
222
+ resolvedAt: e.resolvedAt,
223
+ completedAt: e.completedAt
224
+ }), t.status !== void 0 && p(e, t.status);
225
+ }),
226
+ deleteComment: async (e) => {
227
+ this.write((t) => {
228
+ let n = t.indexOf(this.find(t, e));
229
+ t.splice(n, 1);
230
+ });
231
+ },
232
+ addReply: async (e, t, n, r) => {
233
+ if (r?.attachmentIds?.length) return this.unavailable();
234
+ let i = {
235
+ id: `reply-${crypto.randomUUID()}`,
236
+ content: t,
237
+ author: { ...l },
238
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
239
+ mentions: r?.mentions
240
+ };
241
+ return this.modify(e, (e) => {
242
+ r?.replyTo && (i.replyTo = this.quote(e, r.replyTo)), e.replies.push(i), p(e, "open");
243
+ }).replies.find((e) => e.id === i.id);
244
+ },
245
+ updateReply: async (e, t, r, i) => i?.attachmentIds?.length ? this.unavailable() : this.modify(e, (e) => {
246
+ let a = e.replies.find((e) => e.id === t);
247
+ if (!a) throw new n("not_found", "This demo reply no longer exists.", 404);
248
+ a.content = r, a.isEdited = !0, i?.mentions !== void 0 && (a.mentions = i.mentions), i?.replyTo && (a.replyTo = this.quote(e, i.replyTo));
249
+ }).replies.find((e) => e.id === t),
250
+ deleteReply: async (e, t) => {
251
+ this.modify(e, (e) => {
252
+ e.replies = e.replies.filter((e) => e.id !== t);
253
+ });
254
+ },
255
+ resolveComment: async (e) => this.modify(e, (e) => p(e, "resolved")),
256
+ unresolveComment: async (e) => this.modify(e, (e) => p(e, "open")),
257
+ markComplete: async (e) => this.modify(e, (e) => p(e, "complete")),
258
+ addReaction: async (e, t, r) => {
259
+ this.modify(e, (e) => {
260
+ let i = r ? e.replies.find((e) => e.id === r) : e;
261
+ if (!i) throw new n("not_found", "This demo reply no longer exists.", 404);
262
+ i.reactions = [...(i.reactions ?? []).filter((e) => e.emoji !== t), {
263
+ emoji: t,
264
+ count: 1,
265
+ reacted: !0
266
+ }];
267
+ });
268
+ },
269
+ removeReaction: async (e, t, r) => {
270
+ this.modify(e, (e) => {
271
+ let i = r ? e.replies.find((e) => e.id === r) : e;
272
+ if (!i) throw new n("not_found", "This demo reply no longer exists.", 404);
273
+ i.reactions = (i.reactions ?? []).filter((e) => e.emoji !== t);
274
+ });
275
+ },
276
+ updatePosition: async (e, t) => this.modify(e, (e) => {
277
+ e.position = t;
278
+ }),
279
+ createHighlight: async () => this.unavailable(),
280
+ createDrawing: async () => this.unavailable(),
281
+ uploadFile: async () => this.unavailable(),
282
+ uploadScreenshot: async () => this.unavailable(),
283
+ uploadFiles: async () => this.unavailable(),
284
+ getComment: async (e) => (this.sync(), this.find(this.getComments(), e)),
285
+ getProjectContext: async () => this.unavailable(),
286
+ getProjectMembers: async () => [{ ...l }]
287
+ };
288
+ let t = e.storageKey ?? "website-v1";
289
+ if (!/^[a-zA-Z0-9:_-]{1,160}$/.test(t)) throw Error("Invalid demo storage key");
290
+ this.storageKey = c + t;
291
+ try {
292
+ this.storage = window.localStorage;
293
+ } catch {}
294
+ this.hydrate(), this.data.expiresAt <= Date.now() && (this.data = x()), this.persist(), this.armExpiry(), window.addEventListener("focus", this.onFocus), document.addEventListener("visibilitychange", this.onFocus), window.addEventListener("storage", this.onStorage);
295
+ }
296
+ hydrate() {
297
+ if (this.storage) try {
298
+ let t = this.storage.getItem(this.storageKey);
299
+ if (t === this.lastSerialized) return;
300
+ let n = this.lastSerialized !== null;
301
+ if (this.lastSerialized = t, !t) {
302
+ n && (this.data.comments = [], this.data.expiresAt = Math.min(this.data.expiresAt, Date.now()));
303
+ return;
304
+ }
305
+ if (t.length > a) throw Error("Oversized demo");
306
+ let r = JSON.parse(t);
307
+ if (!e(r) || r.version !== 1 || typeof r.createdAt != "number" || !Number.isSafeInteger(r.createdAt) || r.createdAt > Date.now() || r.expiresAt !== r.createdAt + 864e5 || !Array.isArray(r.comments) || r.comments.length > o) throw Error("Invalid demo");
308
+ let i = r.comments.map(b);
309
+ if (i.some((e) => !e) || new Set(i.map((e) => e.id)).size !== i.length) throw Error("Invalid comments");
310
+ this.data = {
311
+ version: 1,
312
+ createdAt: r.createdAt,
313
+ expiresAt: r.expiresAt,
314
+ comments: i
315
+ };
316
+ } catch {
317
+ try {
318
+ this.storage.removeItem(this.storageKey);
319
+ } catch {
320
+ this.storage = null;
321
+ }
322
+ this.lastSerialized = null, this.data = x();
323
+ }
324
+ }
325
+ persist() {
326
+ let e = JSON.stringify(this.data);
327
+ if (e.length > a) throw new n("demo_full", "This demo is full. Reset it to start again.", 413);
328
+ if (this.storage) try {
329
+ this.storage.setItem(this.storageKey, e), this.lastSerialized = e;
330
+ } catch {
331
+ try {
332
+ this.storage.removeItem(this.storageKey);
333
+ } catch {}
334
+ this.storage = null;
335
+ }
336
+ }
337
+ armExpiry() {
338
+ this.timer && clearTimeout(this.timer), !this.destroyed && (this.timer = setTimeout(() => {
339
+ this.timer = null, this.checkExpiry();
340
+ }, Math.max(0, this.data.expiresAt - Date.now())));
341
+ }
342
+ sync() {
343
+ if (this.destroyed) return;
344
+ let e = this.lastSerialized;
345
+ this.hydrate(), !this.checkExpiry() && e !== this.lastSerialized && (this.armExpiry(), this.notify("storage"));
346
+ }
347
+ checkExpiry() {
348
+ if (this.destroyed || this.data.expiresAt > Date.now()) return this.destroyed;
349
+ if (!this.expiryNotified) {
350
+ if (this.expiryNotified = !0, this.data.comments = [], this.storage) try {
351
+ this.storage.removeItem(this.storageKey);
352
+ } catch {
353
+ this.storage = null;
354
+ }
355
+ this.lastSerialized = null, this.notify("expired");
356
+ }
357
+ return !0;
358
+ }
359
+ getSession() {
360
+ return this.checkExpiry(), {
361
+ expiresAt: this.data.expiresAt,
362
+ persistence: this.storage ? "localStorage" : "memory",
363
+ commentCount: this.data.comments.length,
364
+ expired: this.data.expiresAt <= Date.now()
365
+ };
366
+ }
367
+ getComments() {
368
+ return this.checkExpiry(), structuredClone(this.data.comments);
369
+ }
370
+ subscribe(e) {
371
+ return this.listeners.add(e), () => this.listeners.delete(e);
372
+ }
373
+ refresh() {
374
+ this.sync();
375
+ }
376
+ getRevision() {
377
+ return this.revision;
378
+ }
379
+ notify(e) {
380
+ e !== "persist" && (this.revision += 1);
381
+ for (let t of this.listeners) try {
382
+ t(e);
383
+ } catch {}
384
+ }
385
+ reset() {
386
+ this.destroyed || (this.expiryNotified = !1, this.data = x(), this.persist(), this.armExpiry(), this.notify("reset"));
387
+ }
388
+ activate() {
389
+ this.checkExpiry() && this.reset();
390
+ }
391
+ write(e) {
392
+ if (this.sync(), this.checkExpiry()) throw new n("demo_expired", "Your demo has expired. Start a new demo to continue.", 410);
393
+ let t = structuredClone(this.data.comments);
394
+ if (e(t), t.length > o) throw new n("demo_full", "This demo holds up to 50 comments. Reset it to start again.", 413);
395
+ let r = t.map(b);
396
+ if (r.some((e) => !e)) throw new n("invalid_demo_data", "The demo comment is invalid or exceeds its limit.", 400);
397
+ let i = {
398
+ ...this.data,
399
+ comments: r
400
+ };
401
+ if (JSON.stringify(i).length > a) throw new n("demo_full", "This demo is full. Reset it to start again.", 413);
402
+ this.data = i, this.persist(), this.notify("persist");
403
+ }
404
+ find(e, t) {
405
+ let r = e.find((e) => e.id === t);
406
+ if (!r) throw new n("not_found", "This demo comment no longer exists.", 404);
407
+ return r;
408
+ }
409
+ modify(e, t) {
410
+ return this.write((n) => {
411
+ let r = this.find(n, e);
412
+ t(r), r.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
413
+ }), this.getComments().find((t) => t.id === e);
414
+ }
415
+ quote(e, t) {
416
+ let r = t.type === "comment" && t.id === e.id ? e : t.type === "reply" ? e.replies.find((e) => e.id === t.id) : void 0;
417
+ if (!r) throw new n("not_found", "The quoted demo comment no longer exists.", 404);
418
+ return {
419
+ id: r.id,
420
+ type: t.type,
421
+ authorName: l.name,
422
+ body: r.content
423
+ };
424
+ }
425
+ unavailable() {
426
+ throw new n("demo_unavailable", "This action is unavailable in the private browser demo.", 400);
427
+ }
428
+ destroy() {
429
+ this.destroyed = !0, this.timer && clearTimeout(this.timer), this.listeners.clear(), window.removeEventListener("focus", this.onFocus), document.removeEventListener("visibilitychange", this.onFocus), window.removeEventListener("storage", this.onStorage);
430
+ }
431
+ }, C = !1;
432
+ async function w(e = {}) {
433
+ if (typeof window > "u" || typeof document > "u") throw Error("The CommentKit demo requires a browser");
434
+ if (C || document.querySelector("[data-commentkit], [data-commentkit-host]")) throw Error("Destroy the existing CommentKit widget before starting a demo");
435
+ let t = new S(e);
436
+ C = !0;
437
+ let n = new r({
438
+ apiKey: "",
439
+ ui: {
440
+ ...e.ui,
441
+ loadRemoteFonts: !1
442
+ }
443
+ }, t), i;
444
+ try {
445
+ let { mountCommentKitUI: e } = await import("./shared/mount-ui--ijs8pWT.js").then((e) => e.n);
446
+ i = await e(n);
447
+ } catch (e) {
448
+ throw n.destroy(), C = !1, e;
449
+ }
450
+ let a = !1, o = {
451
+ start() {
452
+ a || n.startLocalDemo();
453
+ },
454
+ reset() {
455
+ a || (t.reset(), n.startLocalDemo());
456
+ },
457
+ destroy() {
458
+ a || (a = !0, i.unmount(), n.destroy(), C = !1);
459
+ },
460
+ getSession() {
461
+ return t.getSession();
462
+ },
463
+ getCore() {
464
+ return n;
465
+ },
466
+ onSessionChange(e) {
467
+ return t.subscribe(() => e(t.getSession()));
468
+ }
469
+ };
470
+ return o.start(), o;
471
+ }
472
+ export { w as createCommentKitDemo };
@@ -0,0 +1,4 @@
1
+ import { t as e } from "./shared/websocket-manager-DhLWh3Jr.js";
2
+ import { a as t, c as n, f as r, g as i, h as a, l as o, m as s, n as c, t as l } from "./shared/comment-kit-core-BaSuMzp9.js";
3
+ import { a as u, c as d, d as f, f as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "./shared/dom-Bhf4WFtY.js";
4
+ export { r as ApiClient, l as CommentKitCore, t as EventEmitter, c as SDK_VERSION, e as WebSocketManager, n as createAgentContext, S as debounce, _ as findElement, o as formatAgentContext, s as formatMention, b as generateId, m as generateSelector, u as generateXPath, v as getCurrentPage, x as getElementBounds, d as getSelectionRange, h as getSelectionText, C as isElementVisible, f as isInteractiveElement, a as parseMentions, p as percentageToViewport, i as stripMentionMarkup, y as throttle, g as viewportToPercentage };