@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,278 +0,0 @@
|
|
|
1
|
-
import { c as e, l as t, n, o as r, s as i, t as a, u as o } from "./websocket-manager-D1_TEuy_.js";
|
|
2
|
-
import { o as s } from "./dom-x9svfpMk.js";
|
|
3
|
-
var c = n.ID, l = n.CONTENT, u = n.NAME, d = n.EMAIL, f = n.PAGE, p = n.EMOJI, m = n.ONLINE_USERS, h = n.REACTION_COUNT, g = 33, _ = 1e3, v = n.CURSOR_EMITS_PER_SEC;
|
|
4
|
-
function y(e) {
|
|
5
|
-
let t = e.config.realtime, r = t?.maxRenderedCursors;
|
|
6
|
-
return {
|
|
7
|
-
cursors: t?.cursors !== !1,
|
|
8
|
-
presence: t?.presence !== !1,
|
|
9
|
-
maxRenderedCursors: typeof r == "number" && Number.isFinite(r) && r >= 0 ? Math.min(Math.floor(r), m) : n.RENDERED_CURSORS
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
var b = new Set([
|
|
13
|
-
"pin",
|
|
14
|
-
"highlight",
|
|
15
|
-
"drawing"
|
|
16
|
-
]), x = new Set([
|
|
17
|
-
"open",
|
|
18
|
-
"resolved",
|
|
19
|
-
"complete"
|
|
20
|
-
]), S = new Set([
|
|
21
|
-
"low",
|
|
22
|
-
"medium",
|
|
23
|
-
"high",
|
|
24
|
-
"urgent"
|
|
25
|
-
]), C = new Set([
|
|
26
|
-
"path",
|
|
27
|
-
"line",
|
|
28
|
-
"rectangle",
|
|
29
|
-
"circle",
|
|
30
|
-
"text"
|
|
31
|
-
]);
|
|
32
|
-
function w(e, n) {
|
|
33
|
-
return t(e, n);
|
|
34
|
-
}
|
|
35
|
-
function T(e) {
|
|
36
|
-
return w(e, c);
|
|
37
|
-
}
|
|
38
|
-
function E(e) {
|
|
39
|
-
if (!w(e, d)) return !1;
|
|
40
|
-
let t = e.trim(), n = t.indexOf("@");
|
|
41
|
-
return n > 0 && n === t.lastIndexOf("@") && n < t.length - 1 && !/\s/.test(t);
|
|
42
|
-
}
|
|
43
|
-
function D(t) {
|
|
44
|
-
return e(t) && T(t.id) && w(t.name, u) && E(t.email) && o(t.avatar, f) && o(t.organizationId, c);
|
|
45
|
-
}
|
|
46
|
-
function O(e) {
|
|
47
|
-
return {
|
|
48
|
-
id: e.id.trim(),
|
|
49
|
-
name: e.name.trim(),
|
|
50
|
-
email: e.email.trim(),
|
|
51
|
-
...e.avatar ? { avatar: e.avatar.trim() } : {},
|
|
52
|
-
...e.organizationId ? { organizationId: e.organizationId.trim() } : {}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function k(e) {
|
|
56
|
-
if (!Array.isArray(e)) return null;
|
|
57
|
-
let t = [], n = /* @__PURE__ */ new Set();
|
|
58
|
-
for (let r of e) {
|
|
59
|
-
if (t.length >= m) break;
|
|
60
|
-
if (!D(r)) continue;
|
|
61
|
-
let e = O(r);
|
|
62
|
-
n.has(e.id) || (n.add(e.id), t.push(e));
|
|
63
|
-
}
|
|
64
|
-
return t;
|
|
65
|
-
}
|
|
66
|
-
function A(t) {
|
|
67
|
-
return e(t) ? i(t.x) && i(t.y) : !1;
|
|
68
|
-
}
|
|
69
|
-
function j(t) {
|
|
70
|
-
return e(t) && w(t.url, f) && w(t.path, f) && w(t.title, f);
|
|
71
|
-
}
|
|
72
|
-
function M(t) {
|
|
73
|
-
return e(t) && R(t.emoji) && Number.isInteger(t.count) && t.count >= 0 && t.count <= h && typeof t.reacted == "boolean";
|
|
74
|
-
}
|
|
75
|
-
function N(e) {
|
|
76
|
-
return {
|
|
77
|
-
...e,
|
|
78
|
-
replies: Array.isArray(e.replies) ? e.replies.filter((e) => F(e) !== null) : [],
|
|
79
|
-
...e.reactions === void 0 ? {} : { reactions: (e.reactions ?? []).filter(M) }
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function P(t) {
|
|
83
|
-
return !e(t) || !T(t.id) || !b.has(t.type) || !w(t.content, l) || !A(t.position) || !x.has(t.status) || !S.has(t.priority) || !D(t.author) || !T(t.userId) || !w(t.createdAt, f) || !w(t.updatedAt, f) || !j(t.page) || !Array.isArray(t.replies) || !Array.isArray(t.attachments) ? null : N(structuredClone(t));
|
|
84
|
-
}
|
|
85
|
-
function F(t) {
|
|
86
|
-
return !e(t) || !T(t.id) || !w(t.content, l) || !D(t.author) || !w(t.createdAt, f) ? null : structuredClone(t);
|
|
87
|
-
}
|
|
88
|
-
function I(t) {
|
|
89
|
-
return !e(t) || !D(t.user) || !r(t.x) || t.x < 0 || t.x > 100 || !r(t.y) || t.y < 0 || t.y > 100 || !w(t.page, f) ? null : {
|
|
90
|
-
x: t.x,
|
|
91
|
-
y: t.y,
|
|
92
|
-
page: t.page.trim(),
|
|
93
|
-
user: O(t.user)
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function L(t) {
|
|
97
|
-
return e(t) ? w(t.type, n.DRAWING_TYPE) && C.has(t.type) && w(t.stroke, n.COLOR) && r(t.strokeWidth) && t.strokeWidth >= 0 && w(t.fill, n.COLOR) && o(t.d, n.DRAWING_PATH_DATA) && o(t.text, n.DRAWING_TEXT) && (t.x === void 0 || r(t.x)) && (t.y === void 0 || r(t.y)) && (t.width === void 0 || r(t.width)) && (t.height === void 0 || r(t.height)) : !1;
|
|
98
|
-
}
|
|
99
|
-
function R(e) {
|
|
100
|
-
return w(e, p);
|
|
101
|
-
}
|
|
102
|
-
function z(e) {
|
|
103
|
-
try {
|
|
104
|
-
e();
|
|
105
|
-
} catch {}
|
|
106
|
-
}
|
|
107
|
-
function B(e, t) {
|
|
108
|
-
return e.wsManager === t;
|
|
109
|
-
}
|
|
110
|
-
function V(e, t) {
|
|
111
|
-
e.setState({ comments: e.getState().comments.map((e) => e.id === t.id ? t : e) });
|
|
112
|
-
}
|
|
113
|
-
function H(t, n) {
|
|
114
|
-
if (t.config.features?.realtime === !1 || !t.config.reverb?.host || !t.config.reverb?.key) return;
|
|
115
|
-
if (n.wsManager) {
|
|
116
|
-
for (let e of n.wsUnsubscribers) z(e);
|
|
117
|
-
n.wsUnsubscribers = [], U(n);
|
|
118
|
-
try {
|
|
119
|
-
n.wsManager.destroy();
|
|
120
|
-
} catch {}
|
|
121
|
-
n.wsManager = null;
|
|
122
|
-
}
|
|
123
|
-
let r = t.config.baseUrl || "https://api.commentkit.dev/api", i = t.getState().currentUser, o = y(t);
|
|
124
|
-
try {
|
|
125
|
-
n.wsManager = new a({
|
|
126
|
-
key: t.config.reverb.key,
|
|
127
|
-
wsHost: t.config.reverb.host,
|
|
128
|
-
wsPort: t.config.reverb.port ?? 443,
|
|
129
|
-
forceTLS: (t.config.reverb.scheme ?? "wss") === "wss",
|
|
130
|
-
/* v8 ignore next -- projectId always provided in config */
|
|
131
|
-
projectId: t.config.projectId || "",
|
|
132
|
-
apiKey: t.config.apiKey,
|
|
133
|
-
authEndpoint: `${r}/broadcasting/auth`,
|
|
134
|
-
userEmail: i?.email,
|
|
135
|
-
userInfo: i ? {
|
|
136
|
-
id: i.id,
|
|
137
|
-
name: i.name,
|
|
138
|
-
email: i.email
|
|
139
|
-
} : void 0
|
|
140
|
-
});
|
|
141
|
-
} catch (e) {
|
|
142
|
-
t.setState({ connectionStatus: "error" }), t.handleError(e);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
let c = n.wsUnsubscribers, l = n.wsManager;
|
|
146
|
-
c.push(l.on("connected", () => {
|
|
147
|
-
B(n, l) && (t.setState({ connectionStatus: "connected" }), n.wsManager?.requestPresence());
|
|
148
|
-
})), c.push(l.on("disconnected", () => {
|
|
149
|
-
B(n, l) && t.setState({ connectionStatus: "disconnected" });
|
|
150
|
-
})), c.push(l.on("reconnecting", () => {
|
|
151
|
-
B(n, l) && t.setState({ connectionStatus: "connecting" });
|
|
152
|
-
})), c.push(l.on("error", () => {
|
|
153
|
-
B(n, l) && t.setState({ connectionStatus: "error" });
|
|
154
|
-
})), c.push(l.on("comment:resolved", (e) => {
|
|
155
|
-
if (!B(n, l)) return;
|
|
156
|
-
let r = P(e);
|
|
157
|
-
r && (V(t, r), t.emit("comment:resolved", r));
|
|
158
|
-
})), c.push(l.on("comment:completed", (e) => {
|
|
159
|
-
if (!B(n, l)) return;
|
|
160
|
-
let r = P(e);
|
|
161
|
-
r && (V(t, r), t.emit("comment:completed", r));
|
|
162
|
-
})), c.push(l.on("comment:created", (e) => {
|
|
163
|
-
if (!B(n, l)) return;
|
|
164
|
-
let r = P(e);
|
|
165
|
-
r && r.page.path === s().path && (t.getState().comments.find((e) => e.id === r.id) || (t.setState({ comments: [...t.getState().comments, r] }), t.emit("comment:created", r)));
|
|
166
|
-
})), c.push(l.on("comment:updated", (e) => {
|
|
167
|
-
if (!B(n, l)) return;
|
|
168
|
-
let r = P(e);
|
|
169
|
-
r && (V(t, r), t.emit("comment:updated", r));
|
|
170
|
-
})), c.push(l.on("comment:deleted", (r) => {
|
|
171
|
-
if (!B(n, l) || !e(r) || !T(r.id)) return;
|
|
172
|
-
let i = r.id.trim();
|
|
173
|
-
t.setState({
|
|
174
|
-
comments: t.getState().comments.filter((e) => e.id !== i),
|
|
175
|
-
selectedComment: t.getState().selectedComment?.id === i ? null : t.getState().selectedComment
|
|
176
|
-
}), t.emit("comment:deleted", { id: i });
|
|
177
|
-
})), c.push(l.on("reply:added", (r) => {
|
|
178
|
-
if (!B(n, l) || !e(r) || !T(r.commentId)) return;
|
|
179
|
-
let i = F(r.reply);
|
|
180
|
-
if (!i) return;
|
|
181
|
-
let a = r.commentId.trim(), o = t.getState().comments.map((e) => e.id !== a || e.replies.some((e) => e.id === i.id) ? e : {
|
|
182
|
-
...e,
|
|
183
|
-
replies: [...e.replies, i]
|
|
184
|
-
});
|
|
185
|
-
t.setState({ comments: o });
|
|
186
|
-
let s = o.find((e) => e.id === a);
|
|
187
|
-
s && t.emit("comment:updated", s);
|
|
188
|
-
}));
|
|
189
|
-
let u = (e, t, n) => {
|
|
190
|
-
let r = (e ?? []).filter((e) => R(e.emoji) && Number.isInteger(e.count) && e.count >= 0 && e.count <= h), i = r.findIndex((e) => e.emoji === t);
|
|
191
|
-
if (i !== -1) {
|
|
192
|
-
let e = r[i];
|
|
193
|
-
r[i] = n ? {
|
|
194
|
-
...e,
|
|
195
|
-
reacted: !0
|
|
196
|
-
} : {
|
|
197
|
-
...e,
|
|
198
|
-
count: Math.min(e.count + 1, h),
|
|
199
|
-
reacted: e.reacted
|
|
200
|
-
};
|
|
201
|
-
} else r.push({
|
|
202
|
-
emoji: t,
|
|
203
|
-
count: 1,
|
|
204
|
-
reacted: n
|
|
205
|
-
});
|
|
206
|
-
return r;
|
|
207
|
-
}, d = (e, t, n) => (e ?? []).filter((e) => R(e.emoji) && Number.isInteger(e.count) && e.count > 0 && e.count <= h).map((e) => e.emoji === t ? {
|
|
208
|
-
...e,
|
|
209
|
-
count: n ? e.count : e.count - 1,
|
|
210
|
-
reacted: n ? !1 : e.reacted
|
|
211
|
-
} : e).filter((e) => e.count > 0), f = (r, i) => {
|
|
212
|
-
if (!B(n, l) || !e(r) || !T(r.commentId) || !R(r.emoji) || !T(r.userId)) return;
|
|
213
|
-
let a = r.commentId.trim(), o = T(r.replyId) ? r.replyId.trim() : null, s = r.emoji.trim(), c = r.userId.trim() === t.getState().currentUser?.id;
|
|
214
|
-
t.setState({ comments: t.getState().comments.map((e) => e.id === a ? o === null ? {
|
|
215
|
-
...e,
|
|
216
|
-
reactions: i(e.reactions, s, c)
|
|
217
|
-
} : {
|
|
218
|
-
...e,
|
|
219
|
-
replies: e.replies.map((e) => e.id === o ? {
|
|
220
|
-
...e,
|
|
221
|
-
reactions: i(e.reactions, s, c)
|
|
222
|
-
} : e)
|
|
223
|
-
} : e) });
|
|
224
|
-
};
|
|
225
|
-
c.push(l.on("reaction:added", (e) => f(e, u))), c.push(l.on("reaction:removed", (e) => f(e, d)));
|
|
226
|
-
let p = /* @__PURE__ */ new Map(), m = 0, b = 0;
|
|
227
|
-
c.push(l.on("cursor:move", (e) => {
|
|
228
|
-
if (!B(n, l) || !o.cursors) return;
|
|
229
|
-
let r = I(e);
|
|
230
|
-
if (!r) return;
|
|
231
|
-
let i = Date.now(), a = r.user.id, s = p.get(a);
|
|
232
|
-
if (s === void 0 && p.size >= o.maxRenderedCursors) {
|
|
233
|
-
let e, t = Infinity;
|
|
234
|
-
for (let [n, r] of p) r < t && (t = r, e = n);
|
|
235
|
-
if (e !== void 0 && i - t >= g) p.delete(e);
|
|
236
|
-
else return;
|
|
237
|
-
}
|
|
238
|
-
s !== void 0 && i - s < g || (i - m >= _ && (m = i, b = 0), !(b >= v) && (b++, p.set(a, i), t.emit("cursor:move", r)));
|
|
239
|
-
})), c.push(l.on("cursor:leave", (r) => {
|
|
240
|
-
!B(n, l) || !e(r) || !T(r.userId) || (p.delete(r.userId.trim()), t.emit("cursor:leave", { userId: r.userId.trim() }));
|
|
241
|
-
})), c.push(l.on("user:joined", (e) => {
|
|
242
|
-
!B(n, l) || !D(e) || t.emit("user:joined", O(e));
|
|
243
|
-
})), c.push(l.on("user:left", (r) => {
|
|
244
|
-
!B(n, l) || !e(r) || !T(r.userId) || t.emit("user:left", { userId: r.userId.trim() });
|
|
245
|
-
})), c.push(l.on("presence:update", (r) => {
|
|
246
|
-
if (!B(n, l) || !o.presence || !e(r)) return;
|
|
247
|
-
let i = k(r.users);
|
|
248
|
-
if (!i) return;
|
|
249
|
-
let a = { users: i };
|
|
250
|
-
t.setState({ onlineUsers: i }), t.emit("presence:update", a);
|
|
251
|
-
})), c.push(l.on("drawing:stroke", (r) => {
|
|
252
|
-
!B(n, l) || !e(r) || !T(r.userId) || !L(r.path) || t.emit("drawing:stroke", {
|
|
253
|
-
userId: r.userId.trim(),
|
|
254
|
-
path: structuredClone(r.path)
|
|
255
|
-
});
|
|
256
|
-
}));
|
|
257
|
-
try {
|
|
258
|
-
t.setState({ connectionStatus: "connecting" });
|
|
259
|
-
let e = l.connect();
|
|
260
|
-
e && typeof e.catch == "function" && e.catch((e) => {
|
|
261
|
-
t.setState({ connectionStatus: "error" }), t.handleError(e);
|
|
262
|
-
});
|
|
263
|
-
} catch (e) {
|
|
264
|
-
t.setState({ connectionStatus: "error" }), t.handleError(e);
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
typeof document > "u" || typeof window > "u" || o.cursors && (n.mouseMoveHandler = (e) => {
|
|
268
|
-
if (t.getState().isOverlayVisible && n.wsManager?.isConnected()) {
|
|
269
|
-
if (window.innerWidth <= 0 || window.innerHeight <= 0) return;
|
|
270
|
-
let t = Math.max(0, Math.min(100, e.clientX / window.innerWidth * 100)), r = Math.max(0, Math.min(100, e.clientY / window.innerHeight * 100));
|
|
271
|
-
n.wsManager.sendCursorMove(t, r, s().url);
|
|
272
|
-
}
|
|
273
|
-
}, document.addEventListener("mousemove", n.mouseMoveHandler));
|
|
274
|
-
}
|
|
275
|
-
function U(e) {
|
|
276
|
-
typeof window < "u" && typeof document < "u" && e.mouseMoveHandler && (document.removeEventListener("mousemove", e.mouseMoveHandler), e.mouseMoveHandler = null);
|
|
277
|
-
}
|
|
278
|
-
export { H as initializeWebSocket, U as removeMouseMoveListener };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t, t as n } from "./widget-theme-BWDYr7VR.js";
|
|
2
|
-
import { useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
|
-
import { createPortal as c } from "react-dom";
|
|
4
|
-
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
-
var f = "https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap";
|
|
6
|
-
function p() {
|
|
7
|
-
if (typeof document > "u" || document.querySelector("link[data-commentkit-font]") || getComputedStyle(document.documentElement).getPropertyValue("--font-geist-sans").trim()) return;
|
|
8
|
-
if (!document.querySelector("link[href=\"https://fonts.googleapis.com\"]")) {
|
|
9
|
-
let e = document.createElement("link");
|
|
10
|
-
e.rel = "preconnect", e.href = "https://fonts.googleapis.com", document.head.appendChild(e);
|
|
11
|
-
let t = document.createElement("link");
|
|
12
|
-
t.rel = "preconnect", t.href = "https://fonts.gstatic.com", t.crossOrigin = "anonymous", document.head.appendChild(t);
|
|
13
|
-
}
|
|
14
|
-
let e = document.createElement("link");
|
|
15
|
-
e.rel = "stylesheet", e.href = f, e.setAttribute("data-commentkit-font", "geist"), document.head.appendChild(e);
|
|
16
|
-
}
|
|
17
|
-
var m = ({ children: f, styles: m, config: h }) => {
|
|
18
|
-
let g = o(null), [_, v] = s(null), [y, b] = s(null), [x, S] = s(!1), C = h?.ui?.loadRemoteFonts === !0;
|
|
19
|
-
i(() => {
|
|
20
|
-
let e = g.current;
|
|
21
|
-
e && (e.shadowRoot ? v(e.shadowRoot) : v(e.attachShadow({ mode: "open" })));
|
|
22
|
-
}, []), i(() => {
|
|
23
|
-
C && p();
|
|
24
|
-
}, [C]), i(() => {
|
|
25
|
-
let e = document.documentElement, r = window.matchMedia("(prefers-color-scheme: dark)"), i = () => {
|
|
26
|
-
let t = n();
|
|
27
|
-
if (t) {
|
|
28
|
-
S(t === "dark");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
let i = e.classList.contains("dark"), a = e.classList.contains("light");
|
|
32
|
-
S(i ? !0 : a ? !1 : r.matches);
|
|
33
|
-
};
|
|
34
|
-
i();
|
|
35
|
-
let a = new MutationObserver(i);
|
|
36
|
-
a.observe(e, {
|
|
37
|
-
attributes: !0,
|
|
38
|
-
attributeFilter: ["class"]
|
|
39
|
-
}), r.addEventListener("change", i);
|
|
40
|
-
let o = t(i);
|
|
41
|
-
return () => {
|
|
42
|
-
o(), a.disconnect(), r.removeEventListener("change", i);
|
|
43
|
-
};
|
|
44
|
-
}, []);
|
|
45
|
-
let w = r(() => {
|
|
46
|
-
/* v8 ignore start -- SSR guard unreachable in jsdom */
|
|
47
|
-
if (typeof window > "u") return "";
|
|
48
|
-
/* v8 ignore stop */
|
|
49
|
-
let e = getComputedStyle(document.documentElement), t = e.getPropertyValue("--font-geist-sans").trim(), n = e.getPropertyValue("--font-geist-mono").trim();
|
|
50
|
-
if (!t && !n) return "";
|
|
51
|
-
let r = [];
|
|
52
|
-
return t && r.push(`--font-sans: ${t}, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif`), n && r.push(`--font-mono: ${n}, "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace`), `:host { ${r.join("; ")}; }`;
|
|
53
|
-
}, []), [T, E] = s(() => w());
|
|
54
|
-
i(() => {
|
|
55
|
-
let e = !1, t = () => {
|
|
56
|
-
if (e) return;
|
|
57
|
-
let t = w();
|
|
58
|
-
E((e) => e === t ? e : t);
|
|
59
|
-
};
|
|
60
|
-
typeof document < "u" && document.fonts?.ready && document.fonts.ready.then(t).catch(() => void 0);
|
|
61
|
-
let n = setTimeout(t, 2e3);
|
|
62
|
-
return () => {
|
|
63
|
-
e = !0, clearTimeout(n);
|
|
64
|
-
};
|
|
65
|
-
}, [w]);
|
|
66
|
-
let D = a(() => m + "\n" + T, [m, T]);
|
|
67
|
-
return /* @__PURE__ */ u("div", {
|
|
68
|
-
ref: g,
|
|
69
|
-
"data-commentkit-host": !0,
|
|
70
|
-
"data-ck-dark": x || void 0,
|
|
71
|
-
style: {
|
|
72
|
-
position: "fixed",
|
|
73
|
-
top: 0,
|
|
74
|
-
left: 0,
|
|
75
|
-
width: 0,
|
|
76
|
-
height: 0,
|
|
77
|
-
overflow: "visible",
|
|
78
|
-
zIndex: 2147483647,
|
|
79
|
-
pointerEvents: "none"
|
|
80
|
-
},
|
|
81
|
-
children: _ && c(/* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("style", { children: D }), /* @__PURE__ */ u(e.Provider, {
|
|
82
|
-
value: y,
|
|
83
|
-
children: /* @__PURE__ */ u("div", {
|
|
84
|
-
ref: b,
|
|
85
|
-
className: "ck-root",
|
|
86
|
-
"data-commentkit-ui": !0,
|
|
87
|
-
"data-theme": x ? "dark" : "light",
|
|
88
|
-
children: y ? f : null
|
|
89
|
-
})
|
|
90
|
-
})] }), _)
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
export { m as ShadowContainer };
|