@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
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ThreadView } from "../comments/view-model";
|
|
2
|
-
interface CommentThreadDetailMetaProps {
|
|
3
|
-
readonly thread: ThreadView;
|
|
4
|
-
readonly description?: string;
|
|
5
|
-
readonly onMarkComplete?: () => void;
|
|
6
|
-
readonly onChecklistToggle?: (itemId: string, done: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function CommentThreadDetailMeta({ thread, description, onMarkComplete, onChecklistToggle, }: CommentThreadDetailMetaProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ThreadView } from "../comments/view-model";
|
|
2
|
-
interface CommentThreadDetailRepliesProps {
|
|
3
|
-
readonly thread: ThreadView;
|
|
4
|
-
readonly animateLastReply: boolean;
|
|
5
|
-
readonly editingCommentId?: string | null;
|
|
6
|
-
readonly onStartEdit?: (id: string) => void;
|
|
7
|
-
readonly onCancelEdit?: () => void;
|
|
8
|
-
readonly onSaveEdit?: (id: string, body: string) => void | Promise<void>;
|
|
9
|
-
readonly onReact?: (id: string, emoji: string) => void;
|
|
10
|
-
readonly onScrollToTop: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function CommentThreadDetailReplies({ thread, animateLastReply, editingCommentId, onStartEdit, onCancelEdit, onSaveEdit, onReact, onScrollToTop, }: CommentThreadDetailRepliesProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ThreadView } from "../comments/view-model";
|
|
3
|
-
export interface CommentThreadDetailProps {
|
|
4
|
-
readonly thread: ThreadView;
|
|
5
|
-
readonly onReply: (body: string) => Promise<void>;
|
|
6
|
-
readonly onResolve: () => void;
|
|
7
|
-
readonly onReopen: () => void;
|
|
8
|
-
readonly onSaveEdit?: (id: string, body: string) => Promise<void>;
|
|
9
|
-
readonly onChecklistToggle?: (itemId: string, done: boolean) => void;
|
|
10
|
-
readonly onCopyUrl?: () => void;
|
|
11
|
-
readonly onLocate?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const CommentThreadDetail: React.MemoExoticComponent<({ thread, onReply, onResolve, onReopen, onSaveEdit, onChecklistToggle, onCopyUrl, onLocate, }: CommentThreadDetailProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentViewUser } from "../comments/view-model";
|
|
3
|
-
interface CommentThreadFooterProps {
|
|
4
|
-
replyCount: number;
|
|
5
|
-
checklistDone?: number;
|
|
6
|
-
checklistTotal?: number;
|
|
7
|
-
assignees?: CommentViewUser[];
|
|
8
|
-
dimmed?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const CommentThreadFooter: React.MemoExoticComponent<({ replyCount, checklistDone, checklistTotal, assignees, dimmed, className, }: CommentThreadFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentReaction } from "../../core/types";
|
|
3
|
-
import type { ThreadView } from "../comments/view-model";
|
|
4
|
-
interface CommentThreadListItemProps {
|
|
5
|
-
readonly thread: ThreadView;
|
|
6
|
-
readonly onSelect: (threadId: string) => void;
|
|
7
|
-
readonly selected?: boolean;
|
|
8
|
-
readonly pageFilter?: "all" | "current";
|
|
9
|
-
readonly reactions?: CommentReaction[];
|
|
10
|
-
readonly onCopyUrl?: (threadId: string) => void;
|
|
11
|
-
readonly onResolve?: (threadId: string) => void;
|
|
12
|
-
readonly onLocate?: (threadId: string) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const CommentThreadListItem: React.MemoExoticComponent<({ thread, onSelect, selected, pageFilter, reactions, onCopyUrl, onResolve, onLocate, }: CommentThreadListItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ThreadView } from "../comments/view-model";
|
|
3
|
-
export interface CommentThreadListProps {
|
|
4
|
-
readonly threads: ThreadView[];
|
|
5
|
-
readonly onSelectThread: (id: string) => void;
|
|
6
|
-
readonly onResolve?: (id: string) => void;
|
|
7
|
-
readonly onCopyUrl?: (id: string) => void;
|
|
8
|
-
readonly onLocate?: (id: string) => void;
|
|
9
|
-
readonly onResetFilters?: () => void;
|
|
10
|
-
readonly noMatches?: boolean;
|
|
11
|
-
readonly pageFilter?: "all" | "current";
|
|
12
|
-
readonly isThreadNew?: (thread: ThreadView) => boolean;
|
|
13
|
-
readonly selectedIds?: ReadonlySet<string>;
|
|
14
|
-
readonly onScroll?: (event: React.UIEvent<HTMLElement>) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const CommentThreadList: React.MemoExoticComponent<({ threads, onSelectThread, onResolve, onCopyUrl, onLocate, onResetFilters, noMatches, pageFilter, isThreadNew, selectedIds, onScroll, }: CommentThreadListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface CommentAvatarUser {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
avatarUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
interface CommentUserAvatarTooltipProps {
|
|
9
|
-
user: CommentAvatarUser;
|
|
10
|
-
}
|
|
11
|
-
export declare const CommentUserAvatarTooltip: React.MemoExoticComponent<({ user, }: CommentUserAvatarTooltipProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitState, User } from "../../core/types";
|
|
3
|
-
import type { CommentUser } from "./comment-composer-extras-fields";
|
|
4
|
-
declare function CommentUsersProvider({ users, children, }: {
|
|
5
|
-
users: CommentUser[];
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function useCommentUsers(): CommentUser[];
|
|
9
|
-
declare function toCommentUser(user: Pick<User, "id" | "name"> & {
|
|
10
|
-
email?: string;
|
|
11
|
-
avatar?: string;
|
|
12
|
-
}): CommentUser;
|
|
13
|
-
/** People the widget can name: the viewer, who is online, and comment authors. */
|
|
14
|
-
declare function collectCommentUsers(state: CommentKitState): CommentUser[];
|
|
15
|
-
export { CommentUsersProvider, collectCommentUsers, toCommentUser, useCommentUsers };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TaskStatus, User } from "../../core/types";
|
|
2
|
-
import type { CommentViewUser, ThreadView } from "../comments/view-model";
|
|
3
|
-
import type { CommentType } from "./comment";
|
|
4
|
-
/** Sort weight for priority (lower = higher priority). */
|
|
5
|
-
export declare const PRIORITY_WEIGHT: Record<ThreadView["priority"], number>;
|
|
6
|
-
type ThreadStatusSource = {
|
|
7
|
-
status?: TaskStatus;
|
|
8
|
-
isResolved?: boolean;
|
|
9
|
-
};
|
|
10
|
-
/** Resolve task status from `status`, or from the legacy `isResolved` flag. */
|
|
11
|
-
export declare function getThreadStatus(thread: ThreadStatusSource): TaskStatus;
|
|
12
|
-
/** Shared type → display label map. */
|
|
13
|
-
export declare const TYPE_LABELS: Record<CommentType, string>;
|
|
14
|
-
/** True when the thread is resolved or the client marked it complete. */
|
|
15
|
-
export declare function getIsResolved(thread: ThreadStatusSource): boolean;
|
|
16
|
-
/** Signed-in profile, or a guest label when nobody is signed in. */
|
|
17
|
-
export declare function resolveCommentAuthor(user?: Pick<User, "id" | "name" | "avatar"> | null): CommentViewUser;
|
|
18
|
-
/** Human-readable byte size for image labels. */
|
|
19
|
-
export declare function formatFileSize(bytes?: number | null): string | null;
|
|
20
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Display shapes for a comment. The record the engine stores is `Comment`
|
|
3
|
-
* in `src/core/types.ts` (content, page, replies, and the SVG drawing model).
|
|
4
|
-
* This file is the widget's view of an image and of browser context.
|
|
5
|
-
*/
|
|
6
|
-
export type { CommentReaction, TaskChecklistItem, TaskStatus, TextSelection, } from "../../core/types";
|
|
7
|
-
export type CommentType = "pin" | "highlight" | "drawing";
|
|
8
|
-
export type Priority = "low" | "medium" | "high" | "urgent";
|
|
9
|
-
export interface CommentImage {
|
|
10
|
-
id: string;
|
|
11
|
-
url: string;
|
|
12
|
-
alt?: string;
|
|
13
|
-
type?: "screenshot" | "file" | "drawing";
|
|
14
|
-
filename?: string;
|
|
15
|
-
size?: number;
|
|
16
|
-
thumbnail?: string;
|
|
17
|
-
}
|
|
18
|
-
/** Browser context shown on a comment when the host supplies it. */
|
|
19
|
-
export interface DeviceInfo {
|
|
20
|
-
browser: string;
|
|
21
|
-
os: string;
|
|
22
|
-
windowSize: string;
|
|
23
|
-
devicePixelRatio: number;
|
|
24
|
-
deployment?: string;
|
|
25
|
-
type: "desktop" | "mobile";
|
|
26
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { PriorityFilter } from "../../core/types";
|
|
2
|
-
import type { Priority } from "./comment";
|
|
3
|
-
/**
|
|
4
|
-
* Shared widget constants. Stroke colors are hex because SVG fill and stroke
|
|
5
|
-
* do not read the shadow theme tokens.
|
|
6
|
-
*/
|
|
7
|
-
export declare const DRAWING_COLORS: readonly [{
|
|
8
|
-
readonly value: "#ef4444";
|
|
9
|
-
readonly label: "Red";
|
|
10
|
-
}, {
|
|
11
|
-
readonly value: "#f97316";
|
|
12
|
-
readonly label: "Orange";
|
|
13
|
-
}, {
|
|
14
|
-
readonly value: "#eab308";
|
|
15
|
-
readonly label: "Yellow";
|
|
16
|
-
}, {
|
|
17
|
-
readonly value: "#22c55e";
|
|
18
|
-
readonly label: "Green";
|
|
19
|
-
}, {
|
|
20
|
-
readonly value: "#3b82f6";
|
|
21
|
-
readonly label: "Blue";
|
|
22
|
-
}, {
|
|
23
|
-
readonly value: "#8b5cf6";
|
|
24
|
-
readonly label: "Purple";
|
|
25
|
-
}, {
|
|
26
|
-
readonly value: "#ec4899";
|
|
27
|
-
readonly label: "Pink";
|
|
28
|
-
}];
|
|
29
|
-
/** Default stroke colour for a new drawing. */
|
|
30
|
-
export declare const DEFAULT_DRAWING_COLOR: "#ef4444";
|
|
31
|
-
/** One color per remote cursor, chosen by a hash of the user id. */
|
|
32
|
-
export declare const CURSOR_COLORS: readonly ["#6366f1", "#ec4899", "#f59e0b", "#10b981", "#3b82f6", "#8b5cf6", "#ef4444", "#14b8a6"];
|
|
33
|
-
/** Matches `.ck-composer-exit` so a composer finishes leaving before it unmounts. */
|
|
34
|
-
export declare const DISMISS_ANIMATION_MS = 220;
|
|
35
|
-
/** Pointer travel, in pixels, before a pin drag starts. */
|
|
36
|
-
export declare const MIN_DRAG_THRESHOLD_PX = 4;
|
|
37
|
-
/** Region smaller than this falls back to a full-page capture. */
|
|
38
|
-
export declare const MIN_SCREENSHOT_REGION_PX = 20;
|
|
39
|
-
/** Reactions shared by the emoji picker. */
|
|
40
|
-
export declare const EMOJIS: readonly ["👍", "👎", "❤️", "😄", "🤔", "👀", "🔥", "✅", "❌", "🐛", "🚀", "🎉"];
|
|
41
|
-
/** Priorities the filter popover offers. All still means every priority. */
|
|
42
|
-
export declare const PRIORITY_OPTIONS: {
|
|
43
|
-
value: Extract<PriorityFilter, "high" | "low">;
|
|
44
|
-
label: string;
|
|
45
|
-
}[];
|
|
46
|
-
/** Priorities a new comment can be given. */
|
|
47
|
-
export declare const COMMENT_PRIORITY_OPTIONS: ReadonlyArray<{
|
|
48
|
-
value: Priority;
|
|
49
|
-
label: string;
|
|
50
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
interface DevExportPanelProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
}
|
|
8
|
-
declare const DevExportPanel: React.FC<DevExportPanelProps>;
|
|
9
|
-
export { DevExportPanel };
|
|
10
|
-
export type { DevExportPanelProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DrawingPath } from "../../core/types";
|
|
3
|
-
import type { StrokePath } from "../hooks/use-drawing";
|
|
4
|
-
interface DrawingPathRendererProps {
|
|
5
|
-
path: DrawingPath;
|
|
6
|
-
}
|
|
7
|
-
/** Convert a live stroke into the path shape the comment engine stores. */
|
|
8
|
-
export declare function strokeToDrawingPath(stroke: StrokePath): DrawingPath | null;
|
|
9
|
-
export declare const DrawingPathRenderer: React.MemoExoticComponent<({ path, }: DrawingPathRendererProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
interface ElementSelectorProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
active: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const ElementSelector: React.MemoExoticComponent<({ core, state, active, }: ElementSelectorProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
10
|
-
export { ElementSelector };
|
|
11
|
-
export type { ElementSelectorProps };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
interface LiveRegionProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Visually-hidden polite live region. Mounted once by CommentKitUI; subscribes
|
|
10
|
-
* to core events and announces realtime/connection/offline-queue changes for
|
|
11
|
-
* screen-reader users. All announcements are coalesced so a burst of identical
|
|
12
|
-
* messages (e.g. several queued mutations completing) doesn't flood the SR.
|
|
13
|
-
*/
|
|
14
|
-
declare const LiveRegion: React.MemoExoticComponent<({ core }: LiveRegionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
-
export { LiveRegion };
|
|
16
|
-
export type { LiveRegionProps };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
interface ScreenshotCaptureProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Drives the screenshot tool. The toolbar only flips `activeTool` to
|
|
10
|
-
* "screenshot"; before this, capture/upload happened silently (or not at all).
|
|
11
|
-
* This component runs the capture → upload flow when the tool activates and
|
|
12
|
-
* surfaces progress ("Capturing…" / "Uploading…") and failures via the same
|
|
13
|
-
* sonner `toast()` pattern used elsewhere in the shell. Renders nothing.
|
|
14
|
-
*/
|
|
15
|
-
declare const ScreenshotCapture: React.MemoExoticComponent<({ core, state, }: ScreenshotCaptureProps) => null>;
|
|
16
|
-
export { ScreenshotCapture };
|
|
17
|
-
export type { ScreenshotCaptureProps };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
interface StatusIndicatorProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
}
|
|
8
|
-
type StatusTone = "connecting" | "offline" | "syncing";
|
|
9
|
-
interface StatusChip {
|
|
10
|
-
tone: StatusTone;
|
|
11
|
-
label: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Derive the connection / offline / sync chip from the current state.
|
|
15
|
-
*
|
|
16
|
-
* Visibility rules (returns null = hidden):
|
|
17
|
-
* - Online + connected (or realtime off) + empty queue → nothing to show.
|
|
18
|
-
* - Offline (or no network) with a queue → "Offline — N change(s) queued".
|
|
19
|
-
* - Offline with empty queue → "Offline".
|
|
20
|
-
* - connectionStatus "connecting"/"error" while authenticated → "Reconnecting…".
|
|
21
|
-
* - Online + connected with a non-empty queue → "Syncing N…".
|
|
22
|
-
*/
|
|
23
|
-
declare function deriveStatus(state: CommentKitState): StatusChip | null;
|
|
24
|
-
/**
|
|
25
|
-
* Small, unobtrusive offline / pending-mutation / reconnect status chip.
|
|
26
|
-
* Pinned to the bottom of the viewport (opposite the draggable FAB) and
|
|
27
|
-
* non-interactive so it never steals host-page pointer events.
|
|
28
|
-
*/
|
|
29
|
-
declare const StatusIndicator: React.MemoExoticComponent<({ state }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
30
|
-
/**
|
|
31
|
-
* True when the first comment fetch is still in flight: authenticated, loading,
|
|
32
|
-
* no comments yet, and no error. Distinguishes "loading" from a genuine empty
|
|
33
|
-
* state so the host doesn't flash "no comments" before the request resolves.
|
|
34
|
-
*/
|
|
35
|
-
declare function isInitialLoading(state: CommentKitState): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Subtle "Loading comments…" affordance shown only during the initial fetch
|
|
38
|
-
* (see isInitialLoading). Token-styled, non-interactive, and marked aria-busy
|
|
39
|
-
* so assistive tech knows the region is updating.
|
|
40
|
-
*/
|
|
41
|
-
declare const LoadingIndicator: React.MemoExoticComponent<({ state }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
42
|
-
export { StatusIndicator, LoadingIndicator, deriveStatus, isInitialLoading };
|
|
43
|
-
export type { StatusIndicatorProps };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { CommentUser } from "./comment-composer-extras-fields";
|
|
2
|
-
import type { AssigneeFilter, CommentMode, ConnectionStatus, PageFilter, PanelView, PriorityFilter, Project, SortOrder, StatusFilter, UserFilter } from "../../core/types";
|
|
3
|
-
/**
|
|
4
|
-
* Widget view types. Sort order, comment mode, and connection status are the
|
|
5
|
-
* engine unions (`newest`, `comment` / `draw`, and `error`). The reference
|
|
6
|
-
* names `latest`, `pin`, and `drawing` are not used here.
|
|
7
|
-
*/
|
|
8
|
-
export type { AssigneeFilter, CommentMode, ConnectionStatus, PageFilter, PanelView, PriorityFilter, SortOrder, StatusFilter, UserFilter, };
|
|
9
|
-
export type FeatureFlags = Project["features"];
|
|
10
|
-
export type LimitsConfig = Project["limits"];
|
|
11
|
-
/** Where the toolbar rests after a drag. */
|
|
12
|
-
export type FabDock = "left" | "right" | "center";
|
|
13
|
-
export interface UsageInfo {
|
|
14
|
-
used: number;
|
|
15
|
-
limit: number;
|
|
16
|
-
label?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface MemberItem {
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
email?: string;
|
|
22
|
-
avatarUrl?: string;
|
|
23
|
-
role?: "owner" | "admin" | "member";
|
|
24
|
-
joinedAt?: string;
|
|
25
|
-
isOnline?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface RemoteCursorData {
|
|
28
|
-
readonly user: CommentUser;
|
|
29
|
-
readonly x: number;
|
|
30
|
-
readonly y: number;
|
|
31
|
-
}
|
|
32
|
-
/** Profile fields the settings screen can show. The widget edits theme only. */
|
|
33
|
-
export interface UserSettingsProfile {
|
|
34
|
-
id?: string;
|
|
35
|
-
name?: string;
|
|
36
|
-
email?: string;
|
|
37
|
-
avatar?: string;
|
|
38
|
-
timezone?: string;
|
|
39
|
-
locale?: string;
|
|
40
|
-
jobTitle?: string;
|
|
41
|
-
company?: string;
|
|
42
|
-
notificationPreferences?: string;
|
|
43
|
-
status?: "active" | "suspended" | "banned" | "churned";
|
|
44
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentUser } from "./comment-composer-extras-fields";
|
|
3
|
-
import { type ComposerExtrasState } from "./comment-composer-extras.state";
|
|
4
|
-
import type { CommentComposerProps, ComposerSubmitPayload, UploadItem } from "./comment-composer.types";
|
|
5
|
-
export type { UploadItem, ComposerSubmitPayload, CommentComposerProps };
|
|
6
|
-
/**
|
|
7
|
-
* Composer state for a reply, edit, or new thread. File attachments stay out
|
|
8
|
-
* until the engine accepts them; the attach control remains disabled.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useCommentComposer({ mode, defaultValue, availableUsers, onSubmit, disabled, }: Pick<CommentComposerProps, "mode" | "defaultValue" | "availableUsers" | "onSubmit" | "disabled">): {
|
|
11
|
-
value: string;
|
|
12
|
-
extras: ComposerExtrasState;
|
|
13
|
-
setExtras: React.Dispatch<React.SetStateAction<ComposerExtrasState>>;
|
|
14
|
-
textareaRef: React.RefObject<HTMLTextAreaElement | null>;
|
|
15
|
-
mentionQuery: string | null;
|
|
16
|
-
isSubmitting: boolean;
|
|
17
|
-
hasContent: boolean;
|
|
18
|
-
showExtras: boolean;
|
|
19
|
-
filteredMentions: CommentUser[];
|
|
20
|
-
replyUrls: string[];
|
|
21
|
-
resolvedUsers: CommentUser[];
|
|
22
|
-
handleSubmit: () => Promise<void>;
|
|
23
|
-
handleFormatInsert: (prefix: string, suffix: string) => void;
|
|
24
|
-
insertMention: (user: CommentUser) => void;
|
|
25
|
-
handleKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
26
|
-
handlePaste: (event: React.ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
27
|
-
handleValueChange: (next: string, selectionStart: number) => void;
|
|
28
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
fallback?: React.ReactNode;
|
|
5
|
-
/** Optional key to trigger a reset when it changes (e.g. pass a timestamp or counter) */
|
|
6
|
-
resetKey?: string | number;
|
|
7
|
-
}
|
|
8
|
-
interface State {
|
|
9
|
-
hasError: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Catches rendering errors so CommentKit never crashes the host application.
|
|
13
|
-
* Fails silently — the widget disappears rather than breaking the page.
|
|
14
|
-
*
|
|
15
|
-
* To recover after a transient error, change `resetKey` or call the static reset pattern:
|
|
16
|
-
* wrap in a key prop on the parent to force remount.
|
|
17
|
-
*/
|
|
18
|
-
export declare class ErrorBoundary extends React.Component<Props, State> {
|
|
19
|
-
state: State;
|
|
20
|
-
static getDerivedStateFromError(): State;
|
|
21
|
-
componentDidUpdate(prevProps: Props): void;
|
|
22
|
-
componentDidCatch(error: Error, info: React.ErrorInfo): void;
|
|
23
|
-
render(): React.ReactNode;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type FabDock = "left" | "center" | "right";
|
|
3
|
-
declare function useCommentFabDrag(defaultSide: "left" | "right"): {
|
|
4
|
-
dragging: boolean;
|
|
5
|
-
side: FabDock;
|
|
6
|
-
scrolling: boolean;
|
|
7
|
-
barRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
-
dragOriginX: number;
|
|
9
|
-
dragX: number;
|
|
10
|
-
dragStartOffsetY: number;
|
|
11
|
-
dragY: number;
|
|
12
|
-
offsetY: number;
|
|
13
|
-
verticalEdge: "top" | "bottom" | null;
|
|
14
|
-
onPointerDown: (event: React.PointerEvent) => void;
|
|
15
|
-
onPointerMove: (event: React.PointerEvent) => void;
|
|
16
|
-
onPointerUp: (event: React.PointerEvent) => void;
|
|
17
|
-
onPointerCancel: (event: React.PointerEvent) => void;
|
|
18
|
-
onLostPointerCapture: (event: React.PointerEvent) => void;
|
|
19
|
-
};
|
|
20
|
-
export { useCommentFabDrag };
|
|
21
|
-
export type { FabDock };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface HashThread {
|
|
2
|
-
id: string;
|
|
3
|
-
position: {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
element?: string;
|
|
7
|
-
xpath?: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
interface UseCommentHashLinkOptions {
|
|
11
|
-
threads: HashThread[];
|
|
12
|
-
onOpenThread: (threadId: string) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Opens `#comment-{id}` when that thread is loaded, and scrolls the pin into view.
|
|
16
|
-
* The engine also handles the hash; this covers comments that arrive after boot.
|
|
17
|
-
*/
|
|
18
|
-
declare function useCommentHashLink({ threads, onOpenThread }: UseCommentHashLinkOptions): void;
|
|
19
|
-
export { useCommentHashLink };
|
|
20
|
-
export type { HashThread };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentListFilters } from "../components/comment-list-filters";
|
|
3
|
-
/** Filter and search state for the comment list. Sort stays `newest`, not `latest`. */
|
|
4
|
-
export declare function useCommentKitFilters(initialPageFilter?: CommentListFilters["pageFilter"]): {
|
|
5
|
-
pageFilter: "all" | "current";
|
|
6
|
-
setPageFilter: React.Dispatch<React.SetStateAction<"all" | "current">>;
|
|
7
|
-
statusFilter: import("..").StatusFilter;
|
|
8
|
-
setStatusFilter: React.Dispatch<React.SetStateAction<import("..").StatusFilter>>;
|
|
9
|
-
sortOrder: "priority" | "newest" | "oldest";
|
|
10
|
-
setSortOrder: React.Dispatch<React.SetStateAction<"priority" | "newest" | "oldest">>;
|
|
11
|
-
priorityFilter: import("..").PriorityFilter;
|
|
12
|
-
setPriorityFilter: React.Dispatch<React.SetStateAction<import("..").PriorityFilter>>;
|
|
13
|
-
searchQuery: string;
|
|
14
|
-
setSearchQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
-
userFilter: import("..").UserFilter;
|
|
16
|
-
setUserFilter: React.Dispatch<React.SetStateAction<import("..").UserFilter>>;
|
|
17
|
-
assigneeFilter: string;
|
|
18
|
-
setAssigneeFilter: React.Dispatch<React.SetStateAction<string>>;
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface UseCommentKitKeyboardOptions {
|
|
2
|
-
/** Desktop panel is open. Keyboard shortcuts stay on the engine. */
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Closes the desktop comments panel on a second click outside it.
|
|
8
|
-
* Ctrl/Cmd+Shift+K, Escape, and tool keys are handled by the engine.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useCommentKitKeyboard({ enabled, onClose }: UseCommentKitKeyboardOptions): void;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
2
|
-
interface UseCommentKitPropSyncOptions {
|
|
3
|
-
core: CommentKitCore;
|
|
4
|
-
commentIds: readonly string[];
|
|
5
|
-
onOpenThread: (commentId: string) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Opens a `#comment-{id}` target once that comment is in state.
|
|
9
|
-
* The engine opens it immediately when the comment is already loaded.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useCommentKitPropSync({ core, commentIds, onOpenThread, }: UseCommentKitPropSyncOptions): void;
|
|
12
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface MarkerPoint {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
interface UseCommentMarkerDragOptions {
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
pos: MarkerPoint | undefined;
|
|
9
|
-
threadId: string;
|
|
10
|
-
onPositionChange?: (threadId: string, x: number, y: number) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function useCommentMarkerDrag({ isActive, pos, threadId, onPositionChange, }: UseCommentMarkerDragOptions): {
|
|
13
|
-
dragging: boolean;
|
|
14
|
-
dragOffset: {
|
|
15
|
-
dx: number;
|
|
16
|
-
dy: number;
|
|
17
|
-
} | null;
|
|
18
|
-
handlePointerDown: (event: React.PointerEvent) => void;
|
|
19
|
-
handlePointerMove: (event: React.PointerEvent) => void;
|
|
20
|
-
handlePointerUp: (event: React.PointerEvent) => void;
|
|
21
|
-
handleClick: (event: React.MouseEvent) => void;
|
|
22
|
-
};
|
|
23
|
-
export { useCommentMarkerDrag };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ThreadView } from "../comments/view-model";
|
|
2
|
-
import type { CommentListFilters } from "../components/comment-list-filters";
|
|
3
|
-
interface UseCommentPanelNavigationOptions {
|
|
4
|
-
filteredThreads: readonly ThreadView[];
|
|
5
|
-
navIndex: number;
|
|
6
|
-
onSelectThread: (id: string) => void;
|
|
7
|
-
setPageFilter: (filter: CommentListFilters["pageFilter"]) => void;
|
|
8
|
-
setStatusFilter: (filter: CommentListFilters["statusFilter"]) => void;
|
|
9
|
-
setSortOrder: (order: CommentListFilters["sortOrder"]) => void;
|
|
10
|
-
setPriorityFilter: (filter: CommentListFilters["priorityFilter"]) => void;
|
|
11
|
-
setUserFilter: (filter: CommentListFilters["userFilter"]) => void;
|
|
12
|
-
setAssigneeFilter: (filter: CommentListFilters["assigneeFilter"]) => void;
|
|
13
|
-
setSearchQuery: (query: string) => void;
|
|
14
|
-
setSearchOpen: (open: boolean) => void;
|
|
15
|
-
}
|
|
16
|
-
declare function useCommentPanelNavigation({ filteredThreads, navIndex, onSelectThread, setPageFilter, setStatusFilter, setSortOrder, setPriorityFilter, setUserFilter, setAssigneeFilter, setSearchQuery, setSearchOpen, }: UseCommentPanelNavigationOptions): {
|
|
17
|
-
resetFilters: () => void;
|
|
18
|
-
selectPrevious: () => void;
|
|
19
|
-
selectNext: () => void;
|
|
20
|
-
};
|
|
21
|
-
export { useCommentPanelNavigation };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
2
|
-
/**
|
|
3
|
-
* Toasts when someone joins or leaves. The engine already owns the socket,
|
|
4
|
-
* presence list, and connection status.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useCommentRealtime(core: CommentKitCore, currentUserId: string | null): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface LocatableThread {
|
|
2
|
-
id: string;
|
|
3
|
-
position: {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
element?: string;
|
|
7
|
-
xpath?: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare function useCommentThreadActions(threads: readonly LocatableThread[]): {
|
|
11
|
-
copyUrl: (threadId: string) => Promise<void>;
|
|
12
|
-
locate: (threadId: string) => void;
|
|
13
|
-
};
|
|
14
|
-
export { useCommentThreadActions };
|
|
15
|
-
export type { LocatableThread };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Asks the engine to reconnect the live socket. The reference demo reloaded
|
|
3
|
-
* the page because it had no socket; this keeps the current comments open.
|
|
4
|
-
*/
|
|
5
|
-
declare function useConnectionRetry(retry: () => void): {
|
|
6
|
-
isRetrying: boolean;
|
|
7
|
-
handleRetry: () => void;
|
|
8
|
-
};
|
|
9
|
-
export { useConnectionRetry };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DrawingTool } from "../components/annotation-toolbar";
|
|
2
|
-
export interface StrokePoint {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
/** In-progress stroke. Saved comments use the engine's DrawingPath shape. */
|
|
7
|
-
export interface StrokePath {
|
|
8
|
-
id: string;
|
|
9
|
-
tool: DrawingTool;
|
|
10
|
-
points: StrokePoint[];
|
|
11
|
-
color: string;
|
|
12
|
-
strokeWidth: number;
|
|
13
|
-
}
|
|
14
|
-
export declare function useDrawing(): {
|
|
15
|
-
setTool: (tool: DrawingTool) => void;
|
|
16
|
-
setColor: (color: string) => void;
|
|
17
|
-
setStrokeWidth: (strokeWidth: number) => void;
|
|
18
|
-
startPath: (x: number, y: number) => void;
|
|
19
|
-
addPoint: (x: number, y: number) => void;
|
|
20
|
-
endPath: () => void;
|
|
21
|
-
undo: () => void;
|
|
22
|
-
redo: () => void;
|
|
23
|
-
clear: () => void;
|
|
24
|
-
canUndo: boolean;
|
|
25
|
-
canRedo: boolean;
|
|
26
|
-
paths: StrokePath[];
|
|
27
|
-
undone: StrokePath[];
|
|
28
|
-
activePath: StrokePath | null;
|
|
29
|
-
tool: DrawingTool;
|
|
30
|
-
color: string;
|
|
31
|
-
strokeWidth: number;
|
|
32
|
-
};
|