@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.
- package/CHANGELOG.md +71 -2
- package/LICENSE +18 -2
- package/README.md +198 -125
- package/SECURITY.md +48 -0
- package/dist/THIRD_PARTY_NOTICES.txt +284 -0
- package/dist/angular.es.js +68 -3419
- package/dist/comment-kit.es.js +33 -3192
- package/dist/demo.es.js +472 -0
- package/dist/headless.es.js +4 -0
- package/dist/preact.es.js +79 -3443
- package/dist/qwik.es.js +1 -3474
- package/dist/qwik.qwik.mjs +114 -0
- package/dist/react.es.js +80 -28447
- package/dist/shared/ShadowRootContext-Bv-4aElu.js +13 -0
- package/dist/shared/annotation-icons-Dh-bmNYK.js +172 -0
- package/dist/shared/annotation-toolbar-B9SxYqoF.js +1093 -0
- package/dist/shared/bridge-CJoGYngu.js +177 -0
- package/dist/shared/button-By0hGrJK.js +505 -0
- package/dist/shared/button-group-Cl9CrvvU.js +93 -0
- package/dist/shared/comment-drawing-canvas-Dzb5YoFw.js +124 -0
- package/dist/shared/comment-image-lightbox-BPYJT1sB.js +183 -0
- package/dist/shared/comment-kit-core-BaSuMzp9.js +3381 -0
- package/dist/shared/comment-kit-ui-CzfdAZs2.js +20181 -0
- package/dist/shared/comment-screenshot-annotator-C7X-_bm6.js +151 -0
- package/dist/shared/comment-screenshot-overlay-wIrZrcRy.js +206 -0
- package/dist/shared/comment-utils-BycYTSxA.js +602 -0
- package/dist/shared/createReactComponent-BZHeRbD0.js +45 -0
- package/dist/shared/dev-export-panel-FwFVdady.js +208 -0
- package/dist/shared/dev-grab-DDqg0LQf.js +203 -0
- package/dist/shared/dist-De294MVF.js +623 -0
- package/dist/{core/dom-x9svfpMk.js → shared/dom-Bhf4WFtY.js} +2 -2
- package/dist/shared/element-selector-BhJm-NSs.js +858 -0
- package/dist/shared/errors-Bu5ajEmB.js +22 -0
- package/dist/shared/icons-nzMOLzrm.js +266 -0
- package/dist/shared/mount-ui--ijs8pWT.js +193 -0
- package/dist/{angular/pusher-Vs-W-c8I.js → shared/pusher-ipHMJnO_.js} +93 -127
- package/dist/shared/realtime-Dk41VwKg.js +302 -0
- package/dist/shared/separator-XDBsaWyw.js +4021 -0
- package/dist/shared/shadow-root-C5v-T8lQ.js +135 -0
- package/dist/shared/styles-D3yMtaec.js +2 -0
- package/dist/shared/useValueChanged-CrzfD8l-.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-DhLWh3Jr.js} +90 -148
- package/dist/solid.es.js +63 -3427
- package/dist/svelte.es.js +78 -3442
- package/dist/types/adapters/bridge.d.ts +10 -13
- package/dist/types/angular/index.d.ts +17 -7
- package/dist/types/core/api-client.d.ts +16 -17
- package/dist/types/core/comment-kit-core.d.ts +29 -12
- package/dist/types/core/local-demo.d.ts +60 -0
- package/dist/types/core/types.d.ts +68 -0
- package/dist/types/demo.d.ts +17 -0
- package/dist/types/headless.d.ts +8 -0
- package/dist/types/index.d.ts +22 -20
- package/dist/types/qwik/index.d.ts +4 -1
- package/dist/vue.es.js +80 -3443
- package/docs/api-reference.md +372 -0
- package/docs/local-demo.md +60 -0
- package/package.json +69 -41
- package/dist/angular/chunk-Cyg4N8Ue.js +0 -11
- package/dist/angular/comment-kit-ui-D-LUFD6n.js +0 -24898
- package/dist/angular/dom-Cx1nMbdI.js +0 -104
- package/dist/angular/mount-ui-C9PJ5aK_.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-Ct4E18do.js +0 -24898
- package/dist/core/error-boundary-CN_BGsYl.js +0 -21
- package/dist/core/mount-ui-Bfnuuesk.js +0 -72
- package/dist/core/pusher-CizoY5NA.js +0 -2504
- package/dist/core/realtime-C3_O7gi2.js +0 -278
- 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-DEzn7J_P.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-Dx8en--W.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-Dvwee2tw.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-DSAwNk_d.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-ACW8BpEm.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-Dq1wj_tx.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-Cx4u1g77.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-CBoNGLNS.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-C3zijClM.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-18BnLwCO.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,19 +0,0 @@
|
|
|
1
|
-
export interface ResolvedSourceFrame {
|
|
2
|
-
filePath: string;
|
|
3
|
-
lineNumber: number | null;
|
|
4
|
-
columnNumber: number | null;
|
|
5
|
-
componentName: string | null;
|
|
6
|
-
}
|
|
7
|
-
export interface ResolvedSource {
|
|
8
|
-
tagName: string;
|
|
9
|
-
componentName: string | null;
|
|
10
|
-
source: ResolvedSourceFrame | null;
|
|
11
|
-
stack: ResolvedSourceFrame[];
|
|
12
|
-
}
|
|
13
|
-
type Resolver = (element: Element) => Promise<ResolvedSource | null>;
|
|
14
|
-
export declare function resolveSource(element: Element): Promise<ResolvedSource | null>;
|
|
15
|
-
/** Test/e2e helper — install a synthetic resolver so specs can drive the source-resolved path. */
|
|
16
|
-
export declare function __setResolverForTests(resolver: Resolver | null): void;
|
|
17
|
-
export declare function isSourceResolutionAvailable(): Promise<boolean>;
|
|
18
|
-
export declare function __resetForTests(): void;
|
|
19
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ApiClient } from "./api-client";
|
|
2
|
-
import type { CommentKitEvents, CommentKitState, ResolvedConfig, StateSlice } from "./types";
|
|
3
|
-
export declare const SLICE_KEYS: Readonly<Record<StateSlice, ReadonlyArray<keyof CommentKitState>>>;
|
|
4
|
-
export declare const MAX_MUTATION_RETRIES = 5;
|
|
5
|
-
export declare const RETRY_BASE_DELAY = 2000;
|
|
6
|
-
export declare function createInitialState(): CommentKitState;
|
|
7
|
-
/**
|
|
8
|
-
* Dependency bag passed to domain module functions.
|
|
9
|
-
* Created once by CommentKitCore and shared with all extracted modules.
|
|
10
|
-
*/
|
|
11
|
-
export interface CoreContext {
|
|
12
|
-
/** Returns the internal mutable state (not deep-copied). */
|
|
13
|
-
getState: () => CommentKitState;
|
|
14
|
-
/** Batched state update (microtask flush). */
|
|
15
|
-
setState: (updates: Partial<CommentKitState>) => void;
|
|
16
|
-
/** HTTP client for API calls. */
|
|
17
|
-
apiClient: ApiClient;
|
|
18
|
-
/** Emit a typed event. */
|
|
19
|
-
emit: <K extends keyof CommentKitEvents>(event: K, data: CommentKitEvents[K]) => void;
|
|
20
|
-
/** Centralized error handler. */
|
|
21
|
-
handleError: (error: unknown) => void;
|
|
22
|
-
/** Resolved runtime config. */
|
|
23
|
-
config: ResolvedConfig;
|
|
24
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { CommentKitCore } from "../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../core/types";
|
|
4
|
-
interface CommentKitUIProps {
|
|
5
|
-
core: CommentKitCore;
|
|
6
|
-
state: CommentKitState;
|
|
7
|
-
}
|
|
8
|
-
export declare const CommentKitUI: React.FC<CommentKitUIProps>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
2
|
-
import type { CommentKitState } from "../../core/types";
|
|
3
|
-
interface CommentFlowProps {
|
|
4
|
-
core: CommentKitCore;
|
|
5
|
-
state: CommentKitState;
|
|
6
|
-
}
|
|
7
|
-
export declare function CommentFlow({ core, state }: CommentFlowProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
2
|
-
import type { Comment, DrawingData, Position, TextSelection } from "../../core/types";
|
|
3
|
-
/** Confirmed success, queued work, or a real failure. Awaiting a void command is not enough. */
|
|
4
|
-
export type OperationStatus = "confirmed" | "queued" | "failed";
|
|
5
|
-
export interface OperationOutcome {
|
|
6
|
-
status: OperationStatus;
|
|
7
|
-
message?: string;
|
|
8
|
-
commentId?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function requestLoginCode(core: CommentKitCore, email: string): Promise<OperationOutcome>;
|
|
11
|
-
export declare function verifyLoginCode(core: CommentKitCore, otp: string): Promise<OperationOutcome>;
|
|
12
|
-
export declare function resendLoginCode(core: CommentKitCore): Promise<OperationOutcome>;
|
|
13
|
-
export declare function submitComment(core: CommentKitCore, content: string, position: Position, extras?: {
|
|
14
|
-
description?: string;
|
|
15
|
-
priority?: Comment["priority"];
|
|
16
|
-
}): Promise<OperationOutcome>;
|
|
17
|
-
export declare function toggleChecklistItem(core: CommentKitCore, commentId: string, itemId: string, done: boolean): Promise<OperationOutcome>;
|
|
18
|
-
export declare function saveCommentEdit(core: CommentKitCore, commentId: string, content: string): Promise<OperationOutcome>;
|
|
19
|
-
export declare function submitReply(core: CommentKitCore, commentId: string, content: string): Promise<OperationOutcome>;
|
|
20
|
-
export declare function resolveThread(core: CommentKitCore, commentId: string): Promise<OperationOutcome>;
|
|
21
|
-
export declare function reopenThread(core: CommentKitCore, commentId: string): Promise<OperationOutcome>;
|
|
22
|
-
export declare function submitHighlight(core: CommentKitCore, content: string, textSelection: TextSelection, extras?: {
|
|
23
|
-
description?: string;
|
|
24
|
-
priority?: Comment["priority"];
|
|
25
|
-
}): Promise<OperationOutcome>;
|
|
26
|
-
export declare function submitDrawing(core: CommentKitCore, drawingData: DrawingData, content?: string): Promise<OperationOutcome>;
|
|
27
|
-
/** Select a thread, open the detail view, and mark it seen from the latest core comment. */
|
|
28
|
-
export declare function openThread(core: CommentKitCore, commentId: string): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Position } from "../../core/types";
|
|
2
|
-
export interface PinPoint {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
/** True when the stored element or XPath still matches exactly one host element. */
|
|
6
|
-
matched: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Place a pin on its anchored element when that element still exists uniquely.
|
|
10
|
-
* Otherwise use the stored viewport percentage. Never snap to a different element.
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolvePinPoint(position: Position, doc?: Document): PinPoint;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { Attachment, Comment, CommentKitState, CommentReaction, DrawingData, Reply, TaskChecklistItem, TaskStatus, User } from "../../core/types";
|
|
2
|
-
export interface CommentViewUser {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
avatarUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CommentViewImage {
|
|
9
|
-
id: string;
|
|
10
|
-
url: string;
|
|
11
|
-
alt?: string;
|
|
12
|
-
type: Attachment["type"];
|
|
13
|
-
filename?: string;
|
|
14
|
-
thumbnail?: string;
|
|
15
|
-
}
|
|
16
|
-
/** Presentation shape for one comment or reply. Canonical ids and dates stay intact. */
|
|
17
|
-
export interface CommentView {
|
|
18
|
-
id: string;
|
|
19
|
-
author: CommentViewUser;
|
|
20
|
-
body: string;
|
|
21
|
-
timestamp: string;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt?: string;
|
|
24
|
-
images: CommentViewImage[];
|
|
25
|
-
status: TaskStatus;
|
|
26
|
-
priority: Comment["priority"];
|
|
27
|
-
isResolved: boolean;
|
|
28
|
-
type: Comment["type"];
|
|
29
|
-
isEdited?: boolean;
|
|
30
|
-
reactions?: CommentReaction[];
|
|
31
|
-
/** Highlighted passage. Present only for highlight threads. */
|
|
32
|
-
quotedText?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ThreadView {
|
|
35
|
-
id: string;
|
|
36
|
-
parent: CommentView;
|
|
37
|
-
replies: CommentView[];
|
|
38
|
-
pageRef?: {
|
|
39
|
-
title: string;
|
|
40
|
-
path: string;
|
|
41
|
-
url?: string;
|
|
42
|
-
};
|
|
43
|
-
position: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
element?: string;
|
|
47
|
-
xpath?: string;
|
|
48
|
-
};
|
|
49
|
-
status: TaskStatus;
|
|
50
|
-
priority: Comment["priority"];
|
|
51
|
-
isResolved: boolean;
|
|
52
|
-
assignees: CommentViewUser[];
|
|
53
|
-
checklistDone: number;
|
|
54
|
-
checklistTotal: number;
|
|
55
|
-
description?: string;
|
|
56
|
-
checklist?: TaskChecklistItem[];
|
|
57
|
-
drawingData?: DrawingData;
|
|
58
|
-
}
|
|
59
|
-
export declare function formatCommentTimestamp(iso: string, now?: number): string;
|
|
60
|
-
export declare function toViewUser(user: Pick<User, "id" | "name" | "email" | "avatar">): CommentViewUser;
|
|
61
|
-
export declare function toCommentView(comment: Comment, now?: number): CommentView;
|
|
62
|
-
export declare function toReplyView(reply: Reply, now?: number): CommentView;
|
|
63
|
-
export declare function toThreadView(comment: Comment, now?: number): ThreadView;
|
|
64
|
-
/** Comments whose canonical page path matches the host page, ignoring origin. */
|
|
65
|
-
export declare function commentsForCurrentPage(comments: Comment[]): Comment[];
|
|
66
|
-
export declare function threadFromState(state: CommentKitState, commentId: string | null): ThreadView | null;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const DRAWING_TOOLS: readonly ["pen", "line", "rect", "circle", "arrow"];
|
|
3
|
-
export type DrawingTool = (typeof DRAWING_TOOLS)[number];
|
|
4
|
-
interface AnnotationToolbarProps {
|
|
5
|
-
/** Which drawing tools to show. Defaults to all. */
|
|
6
|
-
tools?: DrawingTool[];
|
|
7
|
-
/** Color palette to display. */
|
|
8
|
-
colors: readonly {
|
|
9
|
-
value: string;
|
|
10
|
-
label: string;
|
|
11
|
-
}[];
|
|
12
|
-
/** Current drawing state. The drawing canvas owns undo and redo. */
|
|
13
|
-
drawing: {
|
|
14
|
-
tool: DrawingTool;
|
|
15
|
-
color: string;
|
|
16
|
-
strokeWidth: number;
|
|
17
|
-
canUndo: boolean;
|
|
18
|
-
canRedo: boolean;
|
|
19
|
-
paths: {
|
|
20
|
-
id: string;
|
|
21
|
-
}[];
|
|
22
|
-
setTool: (tool: DrawingTool) => void;
|
|
23
|
-
setColor: (color: string) => void;
|
|
24
|
-
setStrokeWidth: (width: number) => void;
|
|
25
|
-
undo: () => void;
|
|
26
|
-
redo: () => void;
|
|
27
|
-
clear: () => void;
|
|
28
|
-
};
|
|
29
|
-
/** Show the save button and call this on click. Omit to hide save. */
|
|
30
|
-
onSave?: () => void;
|
|
31
|
-
/** Whether save is disabled (for example, no paths drawn). */
|
|
32
|
-
saveDisabled?: boolean;
|
|
33
|
-
onCancel: () => void;
|
|
34
|
-
}
|
|
35
|
-
export declare const AnnotationToolbar: React.MemoExoticComponent<({ tools, colors, drawing, onSave, saveDisabled, onCancel, }: AnnotationToolbarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
36
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
3
|
-
import type { CommentKitState } from "../../core/types";
|
|
4
|
-
import type { ThreadView } from "../comments/view-model";
|
|
5
|
-
import type { CommentPanelProps } from "./comment-panel";
|
|
6
|
-
/** Props shared by the docked panel and the mobile sheet. Presentation is chosen by the caller. */
|
|
7
|
-
export type CommentPanelSharedProps = Omit<CommentPanelProps, "presentation">;
|
|
8
|
-
interface BuildPanelSharedPropsInput {
|
|
9
|
-
core: CommentKitCore;
|
|
10
|
-
state: CommentKitState;
|
|
11
|
-
view: CommentPanelProps["view"];
|
|
12
|
-
threads: ThreadView[];
|
|
13
|
-
activeThread: ThreadView | null;
|
|
14
|
-
onlineUsers: CommentPanelProps["onlineUsers"];
|
|
15
|
-
settings: ReactNode;
|
|
16
|
-
onCopyUrl: (threadId: string) => void;
|
|
17
|
-
onLocate: (threadId: string) => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* One prop object for both panel presentations. Thread actions are wired
|
|
21
|
-
* from the open thread, the same way the reference builder attaches the
|
|
22
|
-
* checklist handler only while a thread is active.
|
|
23
|
-
*/
|
|
24
|
-
export declare function buildPanelSharedProps({ core, state, view, threads, activeThread, onlineUsers, settings, onCopyUrl, onLocate, }: BuildPanelSharedPropsInput): CommentPanelSharedProps;
|
|
25
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface CommentActionsProps {
|
|
3
|
-
/** "list" = no three-dot menu; "detail" = full menu with edit/delete; "reply" = edit icon only, no menu. */
|
|
4
|
-
context?: "list" | "detail" | "reply";
|
|
5
|
-
isResolved?: boolean;
|
|
6
|
-
onReact?: (emoji: string) => void;
|
|
7
|
-
onCopyUrl?: () => void;
|
|
8
|
-
onResolve?: () => void;
|
|
9
|
-
/** Copy body as markdown for LLM (detail only). */
|
|
10
|
-
onCopyMarkdown?: () => void;
|
|
11
|
-
/** Edit comment (detail only, own comments). */
|
|
12
|
-
onEdit?: () => void;
|
|
13
|
-
/** Delete thread (detail only). */
|
|
14
|
-
onDelete?: () => void;
|
|
15
|
-
/** Locate/scroll to the marker on the page. */
|
|
16
|
-
onLocate?: () => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const CommentActions: React.MemoExoticComponent<({ context, isResolved, onReact, onCopyUrl, onResolve, onCopyMarkdown, onEdit, onDelete, onLocate, }: CommentActionsProps) => import("react/jsx-runtime").JSX.Element>;
|
|
19
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentViewUser } from "../comments/view-model";
|
|
3
|
-
interface CommentBodyProps {
|
|
4
|
-
text: string;
|
|
5
|
-
users?: CommentViewUser[];
|
|
6
|
-
}
|
|
7
|
-
export declare const CommentBody: React.MemoExoticComponent<({ text, users }: CommentBodyProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface BranchItem {
|
|
3
|
-
name: string;
|
|
4
|
-
isDefault?: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface CommentBranchFilterProps {
|
|
7
|
-
branch?: string;
|
|
8
|
-
pagePath?: string;
|
|
9
|
-
pageFilter: "all" | "current";
|
|
10
|
-
projectName?: string;
|
|
11
|
-
branches?: BranchItem[];
|
|
12
|
-
onBranchChange?: (branch: string) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const CommentBranchFilter: React.MemoExoticComponent<({ branch, pagePath, pageFilter, projectName, branches, onBranchChange, }: CommentBranchFilterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface CommentUser {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
avatarUrl?: string;
|
|
5
|
-
email?: string;
|
|
6
|
-
}
|
|
7
|
-
interface CommentComposerMentionsProps {
|
|
8
|
-
mentions: CommentUser[];
|
|
9
|
-
onSelect: (user: CommentUser) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare function CommentComposerMentions({ mentions, onSelect }: CommentComposerMentionsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
interface CommentComposerActionsProps {
|
|
13
|
-
mode: "reply" | "edit" | "new-thread";
|
|
14
|
-
hasContent: boolean;
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
isSubmitting: boolean;
|
|
17
|
-
/** Accepted for API compatibility. Ignored until file upload ships. */
|
|
18
|
-
onAttachFile: () => void;
|
|
19
|
-
/** Accepted for API compatibility. Ignored until file upload ships. */
|
|
20
|
-
onAttachImage: () => void;
|
|
21
|
-
onFormatInsert: (prefix: string, suffix: string) => void;
|
|
22
|
-
onSubmit: () => void;
|
|
23
|
-
onCancel?: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare function CommentComposerActions({ mode, hasContent, disabled, isSubmitting, onAttachFile: _onAttachFile, onAttachImage: _onAttachImage, onFormatInsert, onSubmit, onCancel, }: CommentComposerActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ChecklistDraft } from "./comment-composer-extras.state";
|
|
2
|
-
import type { Priority } from "./comment";
|
|
3
|
-
export type { ChecklistDraft };
|
|
4
|
-
export type CommentPriority = Priority;
|
|
5
|
-
export interface CommentUser {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
avatarUrl?: string;
|
|
10
|
-
}
|
|
11
|
-
interface DescriptionFieldProps {
|
|
12
|
-
description: string;
|
|
13
|
-
onChange: (description: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare function ComposerDescriptionField({ description, onChange }: DescriptionFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
interface ChecklistFieldProps {
|
|
17
|
-
checklist: ChecklistDraft[];
|
|
18
|
-
onAdd: (label: string) => void;
|
|
19
|
-
onRemove: (id: string) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare function ComposerChecklistField({ checklist, onAdd: _onAdd, onRemove: _onRemove, }: ChecklistFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
interface PriorityFieldProps {
|
|
23
|
-
priority: CommentPriority | null;
|
|
24
|
-
onChange: (priority: CommentPriority | null) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare function ComposerPriorityField({ priority, onChange }: PriorityFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
interface AssigneesFieldProps {
|
|
28
|
-
availableUsers: CommentUser[];
|
|
29
|
-
selectedAssignees: CommentUser[];
|
|
30
|
-
onChange: (users: CommentUser[]) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare function ComposerAssigneesField({ availableUsers: _availableUsers, selectedAssignees, onChange: _onChange, }: AssigneesFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ComposerExtrasState } from "./comment-composer-extras.state";
|
|
2
|
-
import type { CommentUser } from "./comment-composer-extras-fields";
|
|
3
|
-
export type { ComposerExtrasState };
|
|
4
|
-
interface CommentComposerExtrasToolbarProps {
|
|
5
|
-
state: ComposerExtrasState;
|
|
6
|
-
availableUsers?: CommentUser[];
|
|
7
|
-
onUpdate: (patch: Partial<ComposerExtrasState>) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function CommentComposerExtrasToolbar({ state, availableUsers, onUpdate, }: CommentComposerExtrasToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ComposerExtrasState } from "./comment-composer-extras.state";
|
|
3
|
-
import { type CommentUser } from "./comment-composer-extras-fields";
|
|
4
|
-
export type { ComposerExtrasState };
|
|
5
|
-
interface CommentComposerExtrasProps {
|
|
6
|
-
state: ComposerExtrasState;
|
|
7
|
-
onChange: (state: ComposerExtrasState) => void;
|
|
8
|
-
availableUsers?: CommentUser[];
|
|
9
|
-
}
|
|
10
|
-
export declare const CommentComposerExtras: React.MemoExoticComponent<({ state, onChange, availableUsers, }: CommentComposerExtrasProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface ComposerAssignee {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
email?: string;
|
|
5
|
-
avatarUrl?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ChecklistDraft {
|
|
8
|
-
id: string;
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
|
-
export interface ComposerExtrasState {
|
|
12
|
-
showDescription: boolean;
|
|
13
|
-
description: string;
|
|
14
|
-
showChecklist: boolean;
|
|
15
|
-
checklist: ChecklistDraft[];
|
|
16
|
-
showPriority: boolean;
|
|
17
|
-
priority: "low" | "medium" | "high" | "urgent" | null;
|
|
18
|
-
showAssignees: boolean;
|
|
19
|
-
selectedAssignees: ComposerAssignee[];
|
|
20
|
-
}
|
|
21
|
-
export declare const initialExtrasState: ComposerExtrasState;
|
|
22
|
-
/** Fresh arrays so a reset does not share the constant's checklist or assignees. */
|
|
23
|
-
export declare function createComposerExtrasState(): ComposerExtrasState;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useCommentComposer, type CommentComposerProps, type ComposerSubmitPayload, type UploadItem, } from "./use-comment-composer";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { AttachedFile, UploadItem } from "./comment-composer.types";
|
|
2
|
-
export declare function CommentComposerLinkPreviews({ urls }: {
|
|
3
|
-
urls: string[];
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
-
interface CommentComposerAttachmentsProps {
|
|
6
|
-
attachments: AttachedFile[];
|
|
7
|
-
onOpenLightbox: (file: AttachedFile) => void;
|
|
8
|
-
onRemove: (index: number) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function CommentComposerAttachments({ attachments, onOpenLightbox, onRemove, }: CommentComposerAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
interface CommentComposerUploadsProps {
|
|
12
|
-
uploads: UploadItem[];
|
|
13
|
-
onCancelUpload?: (id: string) => void;
|
|
14
|
-
onRetryUpload?: (id: string) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare function CommentComposerUploads({ uploads, onCancelUpload, onRetryUpload, }: CommentComposerUploadsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { CommentComposerProps, ComposerSubmitPayload, UploadItem } from "./comment-composer.types";
|
|
3
|
-
export type { UploadItem, ComposerSubmitPayload, CommentComposerProps };
|
|
4
|
-
export declare const CommentComposer: React.MemoExoticComponent<({ mode, defaultValue, images, availableUsers, highlightedText, uploads, onCancelUpload, onRetryUpload, onSubmit, onCancel, placeholder, disabled, }: CommentComposerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { CommentImage } from "./comment";
|
|
2
|
-
import type { CommentUser } from "./comment-composer-extras-fields";
|
|
3
|
-
export interface UploadItem {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
progress: number;
|
|
7
|
-
status: "uploading" | "complete" | "error";
|
|
8
|
-
error?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface AttachedFile {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
type: string;
|
|
14
|
-
size: number;
|
|
15
|
-
previewUrl?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ComposerSubmitPayload {
|
|
18
|
-
body: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
checklist?: {
|
|
21
|
-
label: string;
|
|
22
|
-
}[];
|
|
23
|
-
priority?: "low" | "medium" | "high" | "urgent";
|
|
24
|
-
assignees?: CommentUser[];
|
|
25
|
-
}
|
|
26
|
-
export interface CommentComposerProps {
|
|
27
|
-
mode?: "reply" | "edit" | "new-thread";
|
|
28
|
-
defaultValue?: string;
|
|
29
|
-
images?: CommentImage[];
|
|
30
|
-
/** Team members for @mentions. Assignee saving stays disabled in extras. */
|
|
31
|
-
availableUsers?: CommentUser[];
|
|
32
|
-
/** Highlighted text shown above the composer. */
|
|
33
|
-
highlightedText?: string;
|
|
34
|
-
uploads?: UploadItem[];
|
|
35
|
-
onCancelUpload?: (id: string) => void;
|
|
36
|
-
onRetryUpload?: (id: string) => void;
|
|
37
|
-
onSubmit?: (value: string, payload?: ComposerSubmitPayload) => void | Promise<void>;
|
|
38
|
-
onCancel?: () => void;
|
|
39
|
-
placeholder?: string;
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CommentConnectionAlertProps {
|
|
2
|
-
onRetry: () => void;
|
|
3
|
-
isRetrying: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare function CommentConnectionAlert({ onRetry, isRetrying }: CommentConnectionAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { CommentConnectionAlert };
|
|
7
|
-
export type { CommentConnectionAlertProps };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CommentKitCore } from "../../core/comment-kit-core";
|
|
2
|
-
import type { RemoteCursorData } from "./ui";
|
|
3
|
-
interface CommentCursorLayerProps {
|
|
4
|
-
cursors: Map<string, RemoteCursorData>;
|
|
5
|
-
onLocalCursorMove?: (x: number, y: number) => void;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Subscribes to the engine's existing cursor events. Positions arrive as
|
|
9
|
-
* percentages because the realtime sender already throttles outbound moves.
|
|
10
|
-
*/
|
|
11
|
-
declare function useRemoteCursors(core: CommentKitCore, currentPage: string): Map<string, RemoteCursorData>;
|
|
12
|
-
declare function CommentCursorLayer({ cursors, onLocalCursorMove }: CommentCursorLayerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
-
export { CommentCursorLayer, useRemoteCursors };
|
|
14
|
-
export type { CommentCursorLayerProps, RemoteCursorData };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ToolType } from "../../core/types";
|
|
3
|
-
interface CommentCustomCursorProps {
|
|
4
|
-
/** Package tool. "comment" is the pin. "select" and null keep the native cursor. */
|
|
5
|
-
mode?: ToolType;
|
|
6
|
-
/** Container whose bounds constrain the cursor. Falls back to the window. */
|
|
7
|
-
containerRef?: React.RefObject<HTMLElement | null>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Comment mode: tear-pin with a plus (sharp top-left is the hotspot).
|
|
11
|
-
* Draw, highlight, and screenshot: bare icon. Select and null render nothing.
|
|
12
|
-
*/
|
|
13
|
-
export declare const CommentCustomCursor: React.MemoExoticComponent<({ mode, containerRef, }: CommentCustomCursorProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DrawingData, DrawingPath } from "../../core/types";
|
|
3
|
-
interface CommentDrawingCanvasProps {
|
|
4
|
-
onSave: (data: DrawingData) => void | Promise<void>;
|
|
5
|
-
onCancel: () => void;
|
|
6
|
-
/** Strokes from other users, already in the engine path shape. */
|
|
7
|
-
remoteStrokes?: DrawingPath[];
|
|
8
|
-
}
|
|
9
|
-
export declare const CommentDrawingCanvas: React.MemoExoticComponent<({ onSave, onCancel, remoteStrokes, }: CommentDrawingCanvasProps) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface CommentEmojiPickerProps {
|
|
3
|
-
onSelect: (emoji: string) => void;
|
|
4
|
-
/** When true, plus icon is only visible on hover (avoids clutter in action rows). */
|
|
5
|
-
plusOnHoverOnly?: boolean;
|
|
6
|
-
/** Button variant for the trigger. */
|
|
7
|
-
variant?: "ghost" | "outline";
|
|
8
|
-
/** Trigger button size. */
|
|
9
|
-
triggerSize?: "icon-xs" | "icon-sm";
|
|
10
|
-
}
|
|
11
|
-
export declare const CommentEmojiPicker: React.MemoExoticComponent<({ onSelect, plusOnHoverOnly, variant, triggerSize, }: CommentEmojiPickerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface CommentErrorBannerProps {
|
|
3
|
-
error: string | null;
|
|
4
|
-
onDismiss?: (() => void) | undefined;
|
|
5
|
-
}
|
|
6
|
-
declare const CommentErrorBanner: React.MemoExoticComponent<({ error, onDismiss, }: CommentErrorBannerProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
7
|
-
export { CommentErrorBanner };
|
|
8
|
-
export type { CommentErrorBannerProps };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { DetectedExtension } from "../hooks/use-extension-conflicts";
|
|
3
|
-
interface CommentExtensionBannerProps {
|
|
4
|
-
extensions: DetectedExtension[];
|
|
5
|
-
onDismiss: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const CommentExtensionBanner: React.MemoExoticComponent<({ extensions, onDismiss, }: CommentExtensionBannerProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
8
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IconMapPin } from "@tabler/icons-react";
|
|
2
|
-
/**
|
|
3
|
-
* Toolbar modes. Pin maps to the engine's comment tool (key C).
|
|
4
|
-
* `altKey` is the physical key the existing Alt listener matches
|
|
5
|
-
* (Option composes characters on macOS, so that listener uses e.code).
|
|
6
|
-
* Tooltips show the engine key, which is what the shortcuts dialog lists.
|
|
7
|
-
*/
|
|
8
|
-
export type FabToolMode = "idle" | "pin" | "select" | "highlight" | "drawing" | "screenshot";
|
|
9
|
-
export declare const FAB_TOOLS: {
|
|
10
|
-
value: Exclude<FabToolMode, "idle">;
|
|
11
|
-
label: string;
|
|
12
|
-
shortcut: string;
|
|
13
|
-
altKey: string;
|
|
14
|
-
icon: typeof IconMapPin;
|
|
15
|
-
featureKey?: "comments" | "drawing" | "highlighting" | "screenshots";
|
|
16
|
-
}[];
|
|
17
|
-
interface CommentFabToolsProps {
|
|
18
|
-
commentMode: FabToolMode;
|
|
19
|
-
features?: {
|
|
20
|
-
comments?: boolean;
|
|
21
|
-
drawing?: boolean;
|
|
22
|
-
highlighting?: boolean;
|
|
23
|
-
screenshots?: boolean;
|
|
24
|
-
realtime?: boolean;
|
|
25
|
-
};
|
|
26
|
-
tooltipSide: "left" | "right" | "top";
|
|
27
|
-
layout?: "vertical" | "horizontal";
|
|
28
|
-
onModeChange?: (mode: FabToolMode) => void;
|
|
29
|
-
isOpen: boolean;
|
|
30
|
-
onClose?: () => void;
|
|
31
|
-
onHide?: () => void;
|
|
32
|
-
/** Keep the hide dialog mounted while the toolbar collapses on scroll. */
|
|
33
|
-
hideDialogOpen?: boolean;
|
|
34
|
-
onHideDialogOpenChange?: (open: boolean) => void;
|
|
35
|
-
}
|
|
36
|
-
export declare function CommentFabTools({ commentMode, features, tooltipSide, layout, onModeChange, isOpen, onClose, onHide, hideDialogOpen, onHideDialogOpenChange, }: CommentFabToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export {};
|
|
@@ -1,34 +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 CommentFabProps {
|
|
5
|
-
/** CommentKitCore instance — drives all state */
|
|
6
|
-
core: CommentKitCore;
|
|
7
|
-
/** Current state snapshot from core */
|
|
8
|
-
state: CommentKitState;
|
|
9
|
-
/** Feature flags from config (core.config.features) */
|
|
10
|
-
features?: {
|
|
11
|
-
comments?: boolean;
|
|
12
|
-
drawing?: boolean;
|
|
13
|
-
highlighting?: boolean;
|
|
14
|
-
screenshots?: boolean;
|
|
15
|
-
realtime?: boolean;
|
|
16
|
-
};
|
|
17
|
-
/** Whether the FAB is hidden */
|
|
18
|
-
hidden?: boolean;
|
|
19
|
-
/** Called when user confirms hiding the toolbar */
|
|
20
|
-
onHide?: () => void;
|
|
21
|
-
/** Number of comments currently available for agent handoff */
|
|
22
|
-
agentCommentCount?: number;
|
|
23
|
-
/** Copies comments and element context for agent handoff */
|
|
24
|
-
onCopyAgentContext?: () => void;
|
|
25
|
-
/** Show the dev-only "Dev export" button (multi-select bulk export panel). */
|
|
26
|
-
showDevExport?: boolean;
|
|
27
|
-
/** Toggles the dev-export panel (sets panelView=dev-export + ensures sidebar). */
|
|
28
|
-
onOpenDevExport?: () => void;
|
|
29
|
-
/** Whether the dev-export panel is currently open. */
|
|
30
|
-
devExportOpen?: boolean;
|
|
31
|
-
}
|
|
32
|
-
declare const CommentFab: React.MemoExoticComponent<({ core, state, features, hidden, onHide, agentCommentCount, onCopyAgentContext, showDevExport, onOpenDevExport, devExportOpen, }: CommentFabProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
33
|
-
export { CommentFab };
|
|
34
|
-
export type { CommentFabProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AssigneeFilter } from "../../core/types";
|
|
2
|
-
import type { CommentAvatarUser } from "./comment-user-avatar-tooltip";
|
|
3
|
-
interface FilterAssigneeComboboxProps {
|
|
4
|
-
availableAssignees: CommentAvatarUser[];
|
|
5
|
-
assigneeFilter: AssigneeFilter | undefined;
|
|
6
|
-
onAssigneeFilterChange: (filter: AssigneeFilter) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function FilterAssigneeCombobox({ availableAssignees, assigneeFilter, onAssigneeFilterChange, }: FilterAssigneeComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|