@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.
- package/CHANGELOG.md +43 -0
- package/README.md +73 -45
- package/dist/angular.es.js +47 -3411
- package/dist/comment-kit.es.js +13 -3184
- package/dist/demo.es.js +395 -0
- package/dist/headless.es.js +4 -0
- package/dist/preact.es.js +79 -3443
- package/dist/qwik.es.js +79 -3443
- package/dist/react.es.js +80 -28447
- package/dist/shared/ShadowRootContext-Bv-4aElu.js +13 -0
- package/dist/shared/annotation-toolbar-pX17NLmJ.js +1104 -0
- package/dist/shared/bridge-DRE03N9X.js +174 -0
- package/dist/shared/button-By0hGrJK.js +505 -0
- package/dist/shared/button-group-CHfMRXyA.js +93 -0
- package/dist/shared/clamp-CcFVX0vC.js +55 -0
- package/dist/shared/comment-drawing-canvas-CYu5SwRf.js +126 -0
- package/dist/shared/comment-image-lightbox-0VdAs2iT.js +178 -0
- package/dist/shared/comment-kit-core-D0kY00St.js +3083 -0
- package/dist/shared/comment-kit-ui-D2j2gvnm.js +16685 -0
- package/dist/shared/comment-screenshot-annotator-BuojwviY.js +137 -0
- package/dist/shared/comment-screenshot-overlay-BZX0Vcb8.js +144 -0
- package/dist/shared/createReactComponent-BZHeRbD0.js +45 -0
- package/dist/shared/dev-export-panel-BLngcr5q.js +208 -0
- package/dist/shared/dev-grab-pDAfH2lr.js +203 -0
- package/dist/{core/dom-x9svfpMk.js → shared/dom-Bhf4WFtY.js} +2 -2
- package/dist/shared/element-selector-CtFzgHvq.js +852 -0
- package/dist/shared/errors-Bu5ajEmB.js +22 -0
- package/dist/shared/icons-BSHCWYO1.js +267 -0
- package/dist/shared/local-demo-context-BohlYbHt.js +6 -0
- package/dist/shared/mount-ui-CVivB_eQ.js +193 -0
- package/dist/{angular/pusher-Vs-W-c8I.js → shared/pusher-BEl7Qn-8.js} +93 -127
- package/dist/{core/realtime-C3_O7gi2.js → shared/realtime-BG_t_ze7.js} +75 -72
- package/dist/shared/resolveAriaLabelledBy-CIKpnjNJ.js +669 -0
- package/dist/shared/separator-DusFNTs-.js +3915 -0
- package/dist/shared/shadow-root-CmYXiSRR.js +135 -0
- package/dist/shared/styles-D_FEJZ9G.js +2 -0
- package/dist/shared/useLabelableId-DGbfdMi_.js +155 -0
- package/dist/shared/useValueChanged-DQXLia-2.js +92 -0
- package/dist/{angular/limits-AEqOBweE.js → shared/validation-C7QG8j7Z.js} +2 -28
- package/dist/{core/websocket-manager-D1_TEuy_.js → shared/websocket-manager-BTRqNTB7.js} +90 -148
- package/dist/solid.es.js +63 -3427
- package/dist/svelte.es.js +78 -3442
- package/dist/types/adapters/bridge.d.ts +1 -1
- package/dist/types/angular/index.d.ts +2 -2
- package/dist/types/core/comment-kit-core.d.ts +10 -1
- package/dist/types/core/local-demo.d.ts +59 -0
- package/dist/types/demo.d.ts +17 -0
- package/dist/types/headless.d.ts +8 -0
- package/dist/types/index.d.ts +14 -16
- package/dist/vue.es.js +80 -3443
- package/package.json +55 -37
- package/dist/angular/chunk-Cyg4N8Ue.js +0 -11
- package/dist/angular/comment-kit-ui-ClsgTVKj.js +0 -24898
- package/dist/angular/dom-Cx1nMbdI.js +0 -104
- package/dist/angular/mount-ui-EPLnH0YJ.js +0 -72
- package/dist/angular/realtime-VrKV0lPI.js +0 -567
- package/dist/angular/shadow-root-yMOaW9pk.js +0 -93
- package/dist/angular/styles-CMz7-p8x.js +0 -2
- package/dist/angular/widget-theme-CYPYAwhR.js +0 -24
- package/dist/comment-kit.css +0 -2
- package/dist/core/chunk-t7YoJN_i.js +0 -11
- package/dist/core/comment-kit-ui-BTYGcSK-.js +0 -24898
- package/dist/core/error-boundary-CN_BGsYl.js +0 -21
- package/dist/core/mount-ui-B6jipL2Z.js +0 -72
- package/dist/core/pusher-CizoY5NA.js +0 -2504
- package/dist/core/shadow-root-DAtdjHG2.js +0 -93
- package/dist/core/styles-ClRoB6ro.js +0 -2
- package/dist/core/widget-theme-BWDYr7VR.js +0 -24
- package/dist/preact/chunk-CZ0PdaaN.js +0 -11
- package/dist/preact/comment-kit-ui-nhY36fa4.js +0 -24898
- package/dist/preact/dom-_ULpq7rg.js +0 -104
- package/dist/preact/error-boundary-B4-Bfy3g.js +0 -21
- package/dist/preact/limits-C3ZEKcL_.js +0 -71
- package/dist/preact/mount-ui-Dri-RQe3.js +0 -72
- package/dist/preact/pusher-BP4kCufH.js +0 -2504
- package/dist/preact/realtime-COin_nJF.js +0 -567
- package/dist/preact/shadow-root-D-NcwruG.js +0 -93
- package/dist/preact/styles-D6i7be5-.js +0 -2
- package/dist/preact/widget-theme-B7Z2pbaA.js +0 -24
- package/dist/qwik/chunk-CKKKzG2Q.js +0 -11
- package/dist/qwik/comment-kit-ui-B2oSKreb.js +0 -24898
- package/dist/qwik/dom-Dm3gzBBJ.js +0 -104
- package/dist/qwik/error-boundary-C4hlYQwS.js +0 -21
- package/dist/qwik/limits-DK35yjGY.js +0 -71
- package/dist/qwik/mount-ui-DkvDtcft.js +0 -72
- package/dist/qwik/pusher-B1KgC4iB.js +0 -2504
- package/dist/qwik/realtime-DhfcBrwF.js +0 -567
- package/dist/qwik/shadow-root-PkjcnvPe.js +0 -93
- package/dist/qwik/styles-DmEmq5Lh.js +0 -2
- package/dist/qwik/widget-theme-lbPF3I0A.js +0 -24
- package/dist/react/chunk--MHYZ-zp.js +0 -12
- package/dist/react/limits-CpprSem3.js +0 -175
- package/dist/react/pusher-3dki8s2l.js +0 -2505
- package/dist/react/realtime-DGqScuox.js +0 -567
- package/dist/solid/chunk-B2NCWFvW.js +0 -11
- package/dist/solid/comment-kit-ui-B7GeN0T8.js +0 -24898
- package/dist/solid/dom-DqDH-Gml.js +0 -104
- package/dist/solid/error-boundary-9mimpbZA.js +0 -21
- package/dist/solid/limits-B_69IbLl.js +0 -71
- package/dist/solid/mount-ui-CTFITRP7.js +0 -72
- package/dist/solid/pusher-_RVNpj1f.js +0 -2504
- package/dist/solid/realtime-DbUJK4gU.js +0 -567
- package/dist/solid/shadow-root-CssU3bQb.js +0 -93
- package/dist/solid/styles-DbueS9xx.js +0 -2
- package/dist/solid/widget-theme-B4DJ14fI.js +0 -24
- package/dist/svelte/chunk-Pi70BKld.js +0 -11
- package/dist/svelte/comment-kit-ui-CKmdu0gr.js +0 -24898
- package/dist/svelte/dom-MyTrWzy_.js +0 -104
- package/dist/svelte/error-boundary-C3GWI_IX.js +0 -21
- package/dist/svelte/limits-CURF22v3.js +0 -71
- package/dist/svelte/mount-ui-N1vul-tl.js +0 -72
- package/dist/svelte/pusher-DN1BiUDw.js +0 -2504
- package/dist/svelte/realtime-M1CJbCBA.js +0 -567
- package/dist/svelte/shadow-root-DG8inbf6.js +0 -93
- package/dist/svelte/styles-BK_MaUpD.js +0 -2
- package/dist/svelte/widget-theme-CkfJNysI.js +0 -24
- package/dist/types/adapters/errors.d.ts +0 -3
- package/dist/types/core/auth.d.ts +0 -18
- package/dist/types/core/comments.d.ts +0 -43
- package/dist/types/core/dev-grab.d.ts +0 -14
- package/dist/types/core/keyboard.d.ts +0 -12
- package/dist/types/core/limits.d.ts +0 -52
- package/dist/types/core/offline-queue.d.ts +0 -23
- package/dist/types/core/realtime.d.ts +0 -9
- package/dist/types/core/screenshot.d.ts +0 -12
- package/dist/types/core/session.d.ts +0 -9
- package/dist/types/core/source-resolver.d.ts +0 -19
- package/dist/types/core/state.d.ts +0 -24
- package/dist/types/react/comment-kit-ui.d.ts +0 -9
- package/dist/types/react/comments/comment-flow.d.ts +0 -8
- package/dist/types/react/comments/outcomes.d.ts +0 -28
- package/dist/types/react/comments/pin-geometry.d.ts +0 -12
- package/dist/types/react/comments/view-model.d.ts +0 -66
- package/dist/types/react/components/annotation-toolbar.d.ts +0 -36
- package/dist/types/react/components/build-panel-shared-props.d.ts +0 -25
- package/dist/types/react/components/comment-actions.d.ts +0 -19
- package/dist/types/react/components/comment-body.d.ts +0 -8
- package/dist/types/react/components/comment-branch-filter.d.ts +0 -15
- package/dist/types/react/components/comment-composer-actions.d.ts +0 -26
- package/dist/types/react/components/comment-composer-extras-fields.d.ts +0 -32
- package/dist/types/react/components/comment-composer-extras-toolbar.d.ts +0 -9
- package/dist/types/react/components/comment-composer-extras.d.ts +0 -10
- package/dist/types/react/components/comment-composer-extras.state.d.ts +0 -24
- package/dist/types/react/components/comment-composer-hook.d.ts +0 -1
- package/dist/types/react/components/comment-composer-media.d.ts +0 -17
- package/dist/types/react/components/comment-composer.d.ts +0 -4
- package/dist/types/react/components/comment-composer.types.d.ts +0 -41
- package/dist/types/react/components/comment-composer.utils.d.ts +0 -3
- package/dist/types/react/components/comment-connection-alert.d.ts +0 -7
- package/dist/types/react/components/comment-cursor-layer.d.ts +0 -14
- package/dist/types/react/components/comment-custom-cursor.d.ts +0 -14
- package/dist/types/react/components/comment-drawing-canvas.d.ts +0 -10
- package/dist/types/react/components/comment-emoji-picker.d.ts +0 -12
- package/dist/types/react/components/comment-error-banner.d.ts +0 -8
- package/dist/types/react/components/comment-extension-banner.d.ts +0 -8
- package/dist/types/react/components/comment-fab-tools.d.ts +0 -37
- package/dist/types/react/components/comment-fab.d.ts +0 -34
- package/dist/types/react/components/comment-filter-assignee.d.ts +0 -9
- package/dist/types/react/components/comment-filter-bar.d.ts +0 -27
- package/dist/types/react/components/comment-filter-popover.d.ts +0 -20
- package/dist/types/react/components/comment-format-toolbar.constants.d.ts +0 -34
- package/dist/types/react/components/comment-format-toolbar.d.ts +0 -6
- package/dist/types/react/components/comment-header.d.ts +0 -34
- package/dist/types/react/components/comment-highlight-layer.d.ts +0 -11
- package/dist/types/react/components/comment-highlight-marker.d.ts +0 -9
- package/dist/types/react/components/comment-image-lightbox.d.ts +0 -10
- package/dist/types/react/components/comment-images.d.ts +0 -7
- package/dist/types/react/components/comment-item.d.ts +0 -26
- package/dist/types/react/components/comment-keyboard-shortcuts.d.ts +0 -7
- package/dist/types/react/components/comment-kit-overlays.d.ts +0 -15
- package/dist/types/react/components/comment-kit.d.ts +0 -12
- package/dist/types/react/components/comment-list-filters.d.ts +0 -14
- package/dist/types/react/components/comment-login-modal.d.ts +0 -20
- package/dist/types/react/components/comment-marker-layer-composer.d.ts +0 -21
- package/dist/types/react/components/comment-marker-layer.d.ts +0 -27
- package/dist/types/react/components/comment-marker-popover.d.ts +0 -12
- package/dist/types/react/components/comment-marker.d.ts +0 -15
- package/dist/types/react/components/comment-member-list.d.ts +0 -10
- package/dist/types/react/components/comment-mode-bar.d.ts +0 -15
- package/dist/types/react/components/comment-online-users.d.ts +0 -8
- package/dist/types/react/components/comment-page-ref.d.ts +0 -9
- package/dist/types/react/components/comment-panel-header.d.ts +0 -22
- package/dist/types/react/components/comment-panel-mobile.d.ts +0 -9
- package/dist/types/react/components/comment-panel-utils.d.ts +0 -6
- package/dist/types/react/components/comment-panel-view-body.d.ts +0 -23
- package/dist/types/react/components/comment-panel.d.ts +0 -37
- package/dist/types/react/components/comment-quoted-text.d.ts +0 -9
- package/dist/types/react/components/comment-reactions.d.ts +0 -11
- package/dist/types/react/components/comment-remote-cursor.d.ts +0 -11
- package/dist/types/react/components/comment-screenshot-annotator.d.ts +0 -11
- package/dist/types/react/components/comment-screenshot-overlay.d.ts +0 -10
- package/dist/types/react/components/comment-search-bar.d.ts +0 -7
- package/dist/types/react/components/comment-settings-view.d.ts +0 -20
- package/dist/types/react/components/comment-skeletons.d.ts +0 -9
- package/dist/types/react/components/comment-thread-detail-badges.d.ts +0 -16
- package/dist/types/react/components/comment-thread-detail-meta.d.ts +0 -9
- package/dist/types/react/components/comment-thread-detail-replies.d.ts +0 -13
- package/dist/types/react/components/comment-thread-detail.d.ts +0 -13
- package/dist/types/react/components/comment-thread-footer.d.ts +0 -12
- package/dist/types/react/components/comment-thread-list-item.d.ts +0 -15
- package/dist/types/react/components/comment-thread-list.d.ts +0 -16
- package/dist/types/react/components/comment-user-avatar-tooltip.d.ts +0 -12
- package/dist/types/react/components/comment-users-context.d.ts +0 -15
- package/dist/types/react/components/comment-utils.d.ts +0 -20
- package/dist/types/react/components/comment.d.ts +0 -26
- package/dist/types/react/components/constants.d.ts +0 -50
- package/dist/types/react/components/dev-export-panel.d.ts +0 -10
- package/dist/types/react/components/drawing-path-renderer.d.ts +0 -10
- package/dist/types/react/components/element-selector.d.ts +0 -11
- package/dist/types/react/components/live-region.d.ts +0 -16
- package/dist/types/react/components/screenshot-capture.d.ts +0 -17
- package/dist/types/react/components/status-indicator.d.ts +0 -43
- package/dist/types/react/components/ui.d.ts +0 -44
- package/dist/types/react/components/use-comment-composer.d.ts +0 -28
- package/dist/types/react/error-boundary.d.ts +0 -25
- package/dist/types/react/hooks/use-comment-fab-drag.d.ts +0 -21
- package/dist/types/react/hooks/use-comment-hash-link.d.ts +0 -20
- package/dist/types/react/hooks/use-comment-kit-filters.d.ts +0 -19
- package/dist/types/react/hooks/use-comment-kit-keyboard.d.ts +0 -11
- package/dist/types/react/hooks/use-comment-kit-prop-sync.d.ts +0 -12
- package/dist/types/react/hooks/use-comment-marker-drag.d.ts +0 -23
- package/dist/types/react/hooks/use-comment-panel-navigation.d.ts +0 -21
- package/dist/types/react/hooks/use-comment-realtime.d.ts +0 -6
- package/dist/types/react/hooks/use-comment-thread-actions.d.ts +0 -15
- package/dist/types/react/hooks/use-connection-retry.d.ts +0 -9
- package/dist/types/react/hooks/use-drawing.d.ts +0 -32
- package/dist/types/react/hooks/use-extension-conflicts.d.ts +0 -13
- package/dist/types/react/hooks/use-filtered-threads.d.ts +0 -7
- package/dist/types/react/hooks/use-marker-layer.d.ts +0 -19
- package/dist/types/react/hooks/use-screenshot.d.ts +0 -18
- package/dist/types/react/hooks/use-text-selection.d.ts +0 -17
- package/dist/types/react/hooks/use-websocket.d.ts +0 -9
- package/dist/types/react/is-local-host.d.ts +0 -2
- package/dist/types/react/mount-ui.d.ts +0 -19
- package/dist/types/react/shadow-root.d.ts +0 -23
- package/dist/types/react/shims/use-sync-external-store-with-selector.d.ts +0 -4
- package/dist/types/react/shims/use-sync-external-store.d.ts +0 -1
- package/dist/types/react/ui/lib/ShadowRootContext.d.ts +0 -10
- package/dist/types/react/ui/lib/cn.d.ts +0 -12
- package/dist/types/react/ui/lib/widget-theme.d.ts +0 -7
- package/dist/types/react/ui/primitives/alert/alert.d.ts +0 -8
- package/dist/types/react/ui/primitives/alert/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/alert-dialog/alert-dialog.d.ts +0 -23
- package/dist/types/react/ui/primitives/alert-dialog/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/avatar/avatar.d.ts +0 -10
- package/dist/types/react/ui/primitives/avatar/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/badge/badge.d.ts +0 -5
- package/dist/types/react/ui/primitives/badge/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/breadcrumb/breadcrumb.d.ts +0 -10
- package/dist/types/react/ui/primitives/breadcrumb/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/button/button.d.ts +0 -6
- package/dist/types/react/ui/primitives/button/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/button-group/button-group.d.ts +0 -9
- package/dist/types/react/ui/primitives/button-group/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/card/card.d.ts +0 -11
- package/dist/types/react/ui/primitives/card/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/checkbox/checkbox.d.ts +0 -3
- package/dist/types/react/ui/primitives/checkbox/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/dialog/dialog.d.ts +0 -17
- package/dist/types/react/ui/primitives/dialog/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/dropdown-menu/dropdown-menu.d.ts +0 -29
- package/dist/types/react/ui/primitives/dropdown-menu/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/empty/empty.d.ts +0 -10
- package/dist/types/react/ui/primitives/empty/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/field/field.d.ts +0 -22
- package/dist/types/react/ui/primitives/field/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/hover-card/hover-card.d.ts +0 -6
- package/dist/types/react/ui/primitives/hover-card/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/input/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/input/input.d.ts +0 -3
- package/dist/types/react/ui/primitives/input-group/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/input-group/input-group.d.ts +0 -16
- package/dist/types/react/ui/primitives/input-otp/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/input-otp/input-otp.d.ts +0 -11
- package/dist/types/react/ui/primitives/kbd/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/kbd/kbd.d.ts +0 -4
- package/dist/types/react/ui/primitives/label/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/label/label.d.ts +0 -3
- package/dist/types/react/ui/primitives/native-select/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/native-select/native-select.d.ts +0 -7
- package/dist/types/react/ui/primitives/popover/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/popover/popover.d.ts +0 -9
- package/dist/types/react/ui/primitives/preview/component-preview.d.ts +0 -8
- package/dist/types/react/ui/primitives/progress/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/progress/progress.d.ts +0 -7
- package/dist/types/react/ui/primitives/radio-group/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/radio-group/radio-group.d.ts +0 -6
- package/dist/types/react/ui/primitives/scroll-area/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/scroll-area/scroll-area.d.ts +0 -6
- package/dist/types/react/ui/primitives/select/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/select/select.d.ts +0 -15
- package/dist/types/react/ui/primitives/separator/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/separator/separator.d.ts +0 -3
- package/dist/types/react/ui/primitives/sheet/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/sheet/sheet.d.ts +0 -14
- package/dist/types/react/ui/primitives/skeleton/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/skeleton/skeleton.d.ts +0 -3
- package/dist/types/react/ui/primitives/slider/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/slider/slider.d.ts +0 -7
- package/dist/types/react/ui/primitives/sonner/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/sonner/sonner.d.ts +0 -4
- package/dist/types/react/ui/primitives/spinner/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/spinner/spinner.d.ts +0 -3
- package/dist/types/react/ui/primitives/switch/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/switch/switch.d.ts +0 -5
- package/dist/types/react/ui/primitives/tabs/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/tabs/tabs.d.ts +0 -8
- package/dist/types/react/ui/primitives/textarea/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/textarea/textarea.d.ts +0 -3
- package/dist/types/react/ui/primitives/toggle/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/toggle/toggle.d.ts +0 -7
- package/dist/types/react/ui/primitives/toggle-group/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/toggle-group/toggle-group.d.ts +0 -14
- package/dist/types/react/ui/primitives/tooltip/index.d.ts +0 -1
- package/dist/types/react/ui/primitives/tooltip/tooltip.d.ts +0 -7
- package/dist/types/utils/freeze-animations.d.ts +0 -8
- package/dist/types/utils/text.d.ts +0 -9
- package/dist/types/utils/validation.d.ts +0 -10
- package/dist/vue/chunk-DHrubWSL.js +0 -11
- package/dist/vue/comment-kit-ui-MfED5JLH.js +0 -24898
- package/dist/vue/dom-C7krZAR8.js +0 -104
- package/dist/vue/error-boundary-DW6uGR8U.js +0 -21
- package/dist/vue/limits-B6csdQeI.js +0 -71
- package/dist/vue/mount-ui-C85XBX4V.js +0 -72
- package/dist/vue/pusher-cmjNbW6a.js +0 -2504
- package/dist/vue/realtime-B0B5cE-E.js +0 -567
- package/dist/vue/shadow-root-zwd_wUIP.js +0 -93
- package/dist/vue/styles-B0NAkbKu.js +0 -2
- package/dist/vue/widget-theme-D7Vkagk7.js +0 -24
- /package/dist/{angular/error-boundary-CxhCm8iF.js → shared/error-boundary-D3PD74vI.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- A dedicated `@commentkit/comment-kit/headless` entry for the engine and protocol types without React, widget mounting, or browser global registration.
|
|
13
|
+
- A dedicated `@commentkit/comment-kit/demo` entry for the private browser-local sandbox. The original root export remains as a deprecated lazy wrapper.
|
|
14
|
+
- Package, initial-load, first-open, and tool-activation size budgets, plus isolated consumer checks for the packed artifact.
|
|
15
|
+
- A complete development stylesheet and dependency guards that preserve all 46 primitive families while checking production CSS coverage.
|
|
16
|
+
- An interactive `/design-system` catalog with all 46 primitive families, 111 examples, local brand fonts, light/dark modes, RTL, and mobile browser coverage. Gallery assets remain excluded from npm.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Build all framework entries together, sharing the engine, UI, styles, and lazy Pusher chunk. Remove private implementation declarations from the published archive while retaining public type dependencies.
|
|
21
|
+
- Load the full widget on activation and specialist tools when used. Preserve access gates, drafts, dialogs, cleanup, and retry/cancel behavior.
|
|
22
|
+
- Exclude 11 currently unused primitive styles from production; retain their complete source and parity coverage for the remaining reference UI port. Load tool styles inside the widget's Shadow DOM with their tools.
|
|
23
|
+
- Upgrade development dependencies, including Base UI 1.9, TypeScript 7, Vite+ 1.3, Vitest 5, React 19.3, and the framework test runtimes. Use standard V8 coverage instead of the custom compatibility provider.
|
|
24
|
+
- Mark React and ReactDOM as optional npm peers for headless installations. **Built-in UI consumers must explicitly install matching React and ReactDOM 18+ versions**, including vanilla and non-React adapters.
|
|
25
|
+
- Allow the React client entry to be imported directly from a Next.js server layout; the widget mounts after hydration. A mandatory `next/dynamic` workaround is no longer needed.
|
|
26
|
+
- Reduce measured React initial SDK gzip from 262.8 KB to 38.9 KB and the all-adapter npm archive from 2.33 MB to about 359 KB. First-open and full-feature totals are recorded separately in the performance audit; external peers are excluded from browser estimates.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Prevent a redundant remote-cursor CSS import from emitting an unscoped document stylesheet.
|
|
31
|
+
- Keep tool loading failures recoverable without resurrecting canceled or destroyed widgets.
|
|
32
|
+
- Preserve link semantics for navigation controls after the Base UI upgrade.
|
|
33
|
+
- Restore InputOTP default values, active slots, caret movement, and replacement editing inside Shadow DOM without controlled/uncontrolled warnings.
|
|
34
|
+
- Match reference focus borders, brand-font glyph fallbacks, and Button background clipping in Sheet, Combobox, and MessageScroller controls.
|
|
35
|
+
- Interpolate Attachment and MessageScroller edge fades smoothly inside Shadow DOM.
|
|
36
|
+
|
|
37
|
+
## [0.6.9] - 2026-10-16
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- `createCommentKitDemo` mounts the real widget with a private 24-hour browser store. It does not use a project key, OTP, network, uploads, or the offline queue.
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- The launcher uses the CommentKit mark, and the widget theme is Electric Persimmon, Deep Graphite, and Warm Stone.
|
|
46
|
+
|
|
47
|
+
## [0.6.8] - 2026-10-12
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
|
|
51
|
+
- On production sites, choosing Pin, Element, or another tool no longer hides the toolbar. Leave the tool with Escape, or press the shortcut again, without reloading.
|
|
52
|
+
|
|
10
53
|
## [0.6.7] - 2026-10-12
|
|
11
54
|
|
|
12
55
|
### Changed
|
package/README.md
CHANGED
|
@@ -48,10 +48,20 @@ Drop-in SDK for React, Vue, Svelte, Angular, Solid.js, Qwik, Preact, and vanilla
|
|
|
48
48
|
|
|
49
49
|
### 1. Install
|
|
50
50
|
|
|
51
|
+
For an app that already has matching React and ReactDOM 18+ versions:
|
|
52
|
+
|
|
51
53
|
```bash
|
|
52
54
|
npm install @commentkit/comment-kit
|
|
53
55
|
```
|
|
54
56
|
|
|
57
|
+
For vanilla, Vue, Svelte, Angular, Solid, Qwik, or Preact apps using the built-in widget:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install @commentkit/comment-kit react react-dom
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Every adapter renders the same React widget. React and ReactDOM are optional in package metadata so a headless installation can omit them; **all built-in UI integrations still need both**. Keep existing compatible React versions rather than upgrading them just to install CommentKit. Your adapter's framework is also a peer dependency.
|
|
64
|
+
|
|
55
65
|
### 2. Get Your API Key
|
|
56
66
|
|
|
57
67
|
1. Sign up at [commentkit.dev](https://commentkit.dev)
|
|
@@ -65,35 +75,18 @@ Each project gets its own API key. The SDK reads everything else (project ID, We
|
|
|
65
75
|
|
|
66
76
|
**Next.js (App Router)**
|
|
67
77
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```tsx
|
|
71
|
-
// app/comment-kit-client.tsx
|
|
72
|
-
"use client";
|
|
73
|
-
import dynamic from "next/dynamic";
|
|
74
|
-
|
|
75
|
-
const CommentKit = dynamic(
|
|
76
|
-
() => import("@commentkit/comment-kit/react").then((m) => m.CommentKit),
|
|
77
|
-
{
|
|
78
|
-
ssr: false,
|
|
79
|
-
},
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
export function CommentKitClient(props: { apiKey: string }) {
|
|
83
|
-
return <CommentKit apiKey={props.apiKey} />;
|
|
84
|
-
}
|
|
85
|
-
```
|
|
78
|
+
Import the client entry directly from your layout. The published React entry retains its `"use client"` boundary, and browser UI mounting happens after hydration. A `next/dynamic` wrapper with `ssr: false` is no longer required.
|
|
86
79
|
|
|
87
80
|
```tsx
|
|
88
81
|
// app/layout.tsx
|
|
89
|
-
import {
|
|
82
|
+
import { CommentKit } from "@commentkit/comment-kit/react";
|
|
90
83
|
|
|
91
84
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
92
85
|
return (
|
|
93
86
|
<html lang="en">
|
|
94
87
|
<body>
|
|
95
88
|
{children}
|
|
96
|
-
<
|
|
89
|
+
<CommentKit apiKey="your-api-key" />
|
|
97
90
|
</body>
|
|
98
91
|
</html>
|
|
99
92
|
);
|
|
@@ -323,7 +316,7 @@ import { useCommentKit } from "@commentkit/comment-kit/preact";
|
|
|
323
316
|
|
|
324
317
|
function App() {
|
|
325
318
|
// Preact hooks — lightweight React alternative.
|
|
326
|
-
// Full UI mounts in Shadow DOM via React (
|
|
319
|
+
// Full UI mounts in Shadow DOM via React and ReactDOM (UI peers).
|
|
327
320
|
const { state, core } = useCommentKit({
|
|
328
321
|
apiKey: "your-api-key",
|
|
329
322
|
});
|
|
@@ -389,6 +382,37 @@ Or use vanilla JS in any `.astro` page:
|
|
|
389
382
|
|
|
390
383
|
---
|
|
391
384
|
|
|
385
|
+
## Headless and Demo Entries
|
|
386
|
+
|
|
387
|
+
Use the engine without the built-in widget or React dependencies:
|
|
388
|
+
|
|
389
|
+
```ts
|
|
390
|
+
import { CommentKitCore } from "@commentkit/comment-kit/headless";
|
|
391
|
+
|
|
392
|
+
const core = new CommentKitCore({ apiKey: "your-api-key" });
|
|
393
|
+
const unsubscribe = core.on("state:changed", (state) => {
|
|
394
|
+
// Render state in your own interface.
|
|
395
|
+
console.log(state.comments);
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
// When your integration unmounts:
|
|
399
|
+
// unsubscribe();
|
|
400
|
+
// core.destroy();
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
The headless entry exports the engine, API types, and helpers without widget mounting or `window.CommentKit` registration. Browser features such as element selection and screenshots still require a DOM.
|
|
404
|
+
|
|
405
|
+
For a website's opt-in product sandbox, load the dedicated demo entry on demand:
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
// Inside your "Try the demo" click handler:
|
|
409
|
+
const { createCommentKitDemo } = await import("@commentkit/comment-kit/demo");
|
|
410
|
+
const demo = await createCommentKitDemo({ storageKey: "website-demo" });
|
|
411
|
+
// demo.reset() starts a fresh sandbox; demo.destroy() removes it.
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
The real widget uses a private browser store with a fixed 24-hour lifetime and a memory fallback when storage is unavailable. No project key, OTP, production API writes, uploads, or realtime connection is created. The demo UI needs React and ReactDOM. The old root `createCommentKitDemo` export remains as a deprecated lazy compatibility wrapper.
|
|
415
|
+
|
|
392
416
|
## Member Invite Links
|
|
393
417
|
|
|
394
418
|
Invite external collaborators by email — they verify via OTP before they can comment:
|
|
@@ -545,7 +569,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
545
569
|
|
|
546
570
|
| Package | Required | Min Version |
|
|
547
571
|
| ----------------------------------- | ----------------------------------------------------------------------------- | ----------- |
|
|
548
|
-
| `react` + `react-dom` |
|
|
572
|
+
| `react` + `react-dom` | Built-in UI, including vanilla and non-React adapters | `>=18.0.0` |
|
|
549
573
|
| `vue` | Only for Vue apps | `>=3.0.0` |
|
|
550
574
|
| `svelte` | Only for Svelte apps | `>=4.0.0` |
|
|
551
575
|
| `@angular/core` + `@angular/common` | Only for Angular apps | `>=17.0.0` |
|
|
@@ -557,7 +581,7 @@ Every framework and meta-framework gets the full CommentKit UI — identical too
|
|
|
557
581
|
| `pusher-js` | Bundled — no install needed (inlined into the SDK for real-time) | — |
|
|
558
582
|
| `element-source` | Optional — enables file:line + component stack in agent context and dev grabs | `>=0.0.5` |
|
|
559
583
|
|
|
560
|
-
|
|
584
|
+
**Migration note:** React and ReactDOM are now optional npm peers, so npm will not install them automatically for a new headless-only consumer. UI consumers must declare compatible versions of both explicitly. Headless imports from `@commentkit/comment-kit/headless` do not require either. The minimum UI peer version remains React 18; using a non-React adapter does not remove this UI runtime requirement.
|
|
561
585
|
|
|
562
586
|
## Agent Handoff
|
|
563
587
|
|
|
@@ -705,33 +729,35 @@ See [SECURITY.md](./SECURITY.md) for how to report security issues and our suppo
|
|
|
705
729
|
|
|
706
730
|
## Bundle Size
|
|
707
731
|
|
|
708
|
-
|
|
709
|
-
| ------------------------------------------- | ------ | ------- |
|
|
710
|
-
| Core (`@commentkit/comment-kit`) | 101 KB | ~25 KB |
|
|
711
|
-
| React (`@commentkit/comment-kit/react`) | 450 KB | ~117 KB |
|
|
712
|
-
| Vue (`@commentkit/comment-kit/vue`) | 104 KB | ~25 KB |
|
|
713
|
-
| Svelte (`@commentkit/comment-kit/svelte`) | 104 KB | ~25 KB |
|
|
714
|
-
| Angular (`@commentkit/comment-kit/angular`) | 111 KB | ~26 KB |
|
|
715
|
-
| Solid.js (`@commentkit/comment-kit/solid`) | 103 KB | ~25 KB |
|
|
716
|
-
| Qwik (`@commentkit/comment-kit/qwik`) | 102 KB | ~25 KB |
|
|
717
|
-
| Preact (`@commentkit/comment-kit/preact`) | 102 KB | ~25 KB |
|
|
732
|
+
The shared ESM build stores common engine, UI, and styles once across all framework adapters. A small activation shell loads first; the full widget and its styles load when a visible surface is requested. Drawing, screenshot selection/annotation, element grabs, developer export, and the image lightbox load when used. Access rules, restored sessions, invites, and explicit tool requests still determine when the UI appears.
|
|
718
733
|
|
|
719
|
-
|
|
734
|
+
Measured from the current development build on 2026-10-16; KB below means 1,000 bytes:
|
|
735
|
+
|
|
736
|
+
| Measurement | Before | Current |
|
|
737
|
+
| ----------------------------------------------------- | -------: | -------: |
|
|
738
|
+
| React initial SDK code, gzip | 262.8 KB | 38.9 KB |
|
|
739
|
+
| React through first widget open, cumulative gzip | — | 255.2 KB |
|
|
740
|
+
| React with every reachable optional chunk, gzip | 289.3 KB | 312.6 KB |
|
|
741
|
+
| Compressed npm archive, all adapters and declarations | 2.33 MB | 359.1 KB |
|
|
742
|
+
|
|
743
|
+
These are different measurements. Browser estimates sum each SDK chunk compressed with gzip level 9 and exclude React, ReactDOM, framework peers, `html2canvas`, and `element-source`. First-open size includes the initial code; it is not an additional 255.2 KB. The npm archive includes every adapter and is not a browser download. Host bundling, caching, and enabled realtime features affect actual requests.
|
|
744
|
+
|
|
745
|
+
The initial React load is smaller because work is deferred; the complete optional feature set has not been removed. All 46 source primitive families remain available for the next UI port. See the [performance audit](./docs/package-performance-audit.md) for per-stage sizes, limitations, migration details, and reproduction commands. `npm run build` enforces the package and load-stage size budgets.
|
|
720
746
|
|
|
721
747
|
---
|
|
722
748
|
|
|
723
749
|
## Tech Stack
|
|
724
750
|
|
|
725
|
-
| Layer | Technology
|
|
726
|
-
| ------------- |
|
|
727
|
-
| Language | TypeScript (strict mode)
|
|
728
|
-
| UI Framework | React 19
|
|
729
|
-
| CSS Isolation | Shadow DOM with scoped CSS custom properties
|
|
730
|
-
| Real-Time | Pusher.js / Laravel Reverb (WebSocket)
|
|
731
|
-
| Bundler | Vite+ (Rolldown)
|
|
732
|
-
| Testing | Vitest
|
|
733
|
-
| Linting | OXC (oxlint)
|
|
734
|
-
| Formatting | OXC (oxfmt)
|
|
751
|
+
| Layer | Technology |
|
|
752
|
+
| ------------- | --------------------------------------------------------------------------- |
|
|
753
|
+
| Language | TypeScript (strict mode) |
|
|
754
|
+
| UI Framework | React 18+ peers; developed with React 19 and Base UI 1.9 primitives |
|
|
755
|
+
| CSS Isolation | Shadow DOM with scoped CSS custom properties |
|
|
756
|
+
| Real-Time | Pusher.js / Laravel Reverb (WebSocket) |
|
|
757
|
+
| Bundler | Vite+ (Rolldown) |
|
|
758
|
+
| Testing | Vitest 5 with standard V8 coverage + Playwright browser and consumer checks |
|
|
759
|
+
| Linting | OXC (oxlint) |
|
|
760
|
+
| Formatting | OXC (oxfmt) |
|
|
735
761
|
|
|
736
762
|
---
|
|
737
763
|
|
|
@@ -743,7 +769,7 @@ Tree-shakeable ESM. Only the entry point you import is bundled.
|
|
|
743
769
|
| Firefox | 80+ |
|
|
744
770
|
| Safari | 14+ |
|
|
745
771
|
|
|
746
|
-
|
|
772
|
+
The published package declares **Node.js >=18**. Developing or building this repository requires **Node.js 24.15+** for the current Vite+, TypeScript, and framework toolchain. That development requirement does not raise the React 18 UI peer minimum.
|
|
747
773
|
|
|
748
774
|
---
|
|
749
775
|
|
|
@@ -751,6 +777,8 @@ Requires **Node.js >= 18** for build tooling.
|
|
|
751
777
|
|
|
752
778
|
For custom integrations, events, selective subscriptions, and TypeScript types, see the [API Reference](./docs/api-reference.md).
|
|
753
779
|
|
|
780
|
+
Repository contributors can run `npm run dev` and open `/design-system` to inspect all 46 internal primitive families in light/dark mode and RTL. The [development catalog guide](./dev/README.md) explains its 111 examples and browser checks; the [primitive audit](./docs/ui-primitive-parity-audit.md) records comparisons with the React reference. The gallery and its local fonts are development assets, excluded from the published package.
|
|
781
|
+
|
|
754
782
|
---
|
|
755
783
|
|
|
756
784
|
## License
|