laif-ds 0.1.9 → 0.1.11
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/dist/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,144 +1,143 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
function ae({
|
|
2
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as y, useEffect as C, useRef as Y } from "react";
|
|
4
|
+
import { AnimatePresence as v, motion as x } from "framer-motion";
|
|
5
|
+
import { a as I } from "../../node_modules/remeda/dist/chunk-A3PVMI4K.js";
|
|
6
|
+
import { cn as R } from "../../lib/utils.js";
|
|
7
|
+
import { useAudioRecording as Z } from "../../hooks/use-audio-recording.js";
|
|
8
|
+
import { useAutosizeTextArea as _ } from "../../hooks/use-autosize-textarea.js";
|
|
9
|
+
import { AudioVisualizer as $ } from "./audio-visualizer.js";
|
|
10
|
+
import { Button as p } from "./button.js";
|
|
11
|
+
import { FilePreview as K } from "./file-preview.js";
|
|
12
|
+
import { InterruptPrompt as G } from "./interrupt-prompt.js";
|
|
13
|
+
import F from "../../node_modules/lucide-react/dist/esm/icons/paperclip.js";
|
|
14
|
+
import ee from "../../node_modules/lucide-react/dist/esm/icons/mic.js";
|
|
15
|
+
import te from "../../node_modules/lucide-react/dist/esm/icons/square.js";
|
|
16
|
+
import re from "../../node_modules/lucide-react/dist/esm/icons/arrow-up.js";
|
|
17
|
+
import ie from "../../node_modules/lucide-react/dist/esm/icons/info.js";
|
|
18
|
+
import ae from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
19
|
+
function ne({
|
|
21
20
|
placeholder: a = "Ask AI...",
|
|
22
21
|
className: l,
|
|
23
|
-
onKeyDown:
|
|
24
|
-
submitOnEnter:
|
|
25
|
-
stop:
|
|
26
|
-
isGenerating:
|
|
27
|
-
enableInterrupt:
|
|
28
|
-
transcribeAudio:
|
|
22
|
+
onKeyDown: o,
|
|
23
|
+
submitOnEnter: s = !0,
|
|
24
|
+
stop: m,
|
|
25
|
+
isGenerating: d,
|
|
26
|
+
enableInterrupt: A = !0,
|
|
27
|
+
transcribeAudio: P,
|
|
29
28
|
...r
|
|
30
29
|
}) {
|
|
31
|
-
var
|
|
32
|
-
const [
|
|
33
|
-
isListening:
|
|
34
|
-
isSpeechSupported:
|
|
35
|
-
isRecording:
|
|
36
|
-
isTranscribing:
|
|
37
|
-
audioStream:
|
|
30
|
+
var S;
|
|
31
|
+
const [L, w] = y(!1), [N, h] = y(!1), {
|
|
32
|
+
isListening: M,
|
|
33
|
+
isSpeechSupported: O,
|
|
34
|
+
isRecording: k,
|
|
35
|
+
isTranscribing: j,
|
|
36
|
+
audioStream: q,
|
|
38
37
|
toggleListening: E,
|
|
39
|
-
stopRecording:
|
|
40
|
-
} =
|
|
41
|
-
transcribeAudio:
|
|
38
|
+
stopRecording: D
|
|
39
|
+
} = Z({
|
|
40
|
+
transcribeAudio: P,
|
|
42
41
|
onTranscriptionComplete: (t) => {
|
|
43
42
|
var i;
|
|
44
43
|
(i = r.onChange) == null || i.call(r, { target: { value: t } });
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, [
|
|
50
|
-
const
|
|
46
|
+
C(() => {
|
|
47
|
+
d || h(!1);
|
|
48
|
+
}, [d]);
|
|
49
|
+
const g = (t) => {
|
|
51
50
|
r.allowAttachments && r.setFiles((i) => i === null ? t : t === null ? i : [...i, ...t]);
|
|
52
|
-
}, q = (t) => {
|
|
53
|
-
r.allowAttachments === !0 && (t.preventDefault(), b(!0));
|
|
54
51
|
}, H = (t) => {
|
|
55
|
-
r.allowAttachments === !0 && (t.preventDefault(),
|
|
52
|
+
r.allowAttachments === !0 && (t.preventDefault(), w(!0));
|
|
56
53
|
}, U = (t) => {
|
|
57
|
-
|
|
54
|
+
r.allowAttachments === !0 && (t.preventDefault(), w(!1));
|
|
55
|
+
}, V = (t) => {
|
|
56
|
+
if (w(!1), r.allowAttachments !== !0) return;
|
|
58
57
|
t.preventDefault();
|
|
59
58
|
const i = t.dataTransfer;
|
|
60
|
-
i.files.length &&
|
|
61
|
-
},
|
|
62
|
-
var
|
|
63
|
-
const i = (
|
|
59
|
+
i.files.length && g(Array.from(i.files));
|
|
60
|
+
}, B = (t) => {
|
|
61
|
+
var T;
|
|
62
|
+
const i = (T = t.clipboardData) == null ? void 0 : T.items;
|
|
64
63
|
if (!i) return;
|
|
65
64
|
const n = t.clipboardData.getData("text");
|
|
66
65
|
if (n && n.length > 500 && r.allowAttachments) {
|
|
67
66
|
t.preventDefault();
|
|
68
|
-
const
|
|
67
|
+
const f = new Blob([n], { type: "text/plain" }), X = new File([f], "Pasted text", {
|
|
69
68
|
type: "text/plain",
|
|
70
69
|
lastModified: Date.now()
|
|
71
70
|
});
|
|
72
|
-
|
|
71
|
+
g([X]);
|
|
73
72
|
return;
|
|
74
73
|
}
|
|
75
|
-
const c = Array.from(i).map((
|
|
76
|
-
r.allowAttachments && c.length > 0 &&
|
|
77
|
-
},
|
|
74
|
+
const c = Array.from(i).map((f) => f.getAsFile()).filter((f) => f !== null);
|
|
75
|
+
r.allowAttachments && c.length > 0 && g(c);
|
|
76
|
+
}, W = (t) => {
|
|
78
77
|
var i, n, c;
|
|
79
|
-
if (
|
|
80
|
-
if (t.preventDefault(),
|
|
81
|
-
if (
|
|
82
|
-
|
|
78
|
+
if (s && t.key === "Enter" && !t.shiftKey) {
|
|
79
|
+
if (t.preventDefault(), d && m && A) {
|
|
80
|
+
if (N)
|
|
81
|
+
m(), h(!1), (i = t.currentTarget.form) == null || i.requestSubmit();
|
|
83
82
|
else if (r.value || r.allowAttachments && ((n = r.files) != null && n.length)) {
|
|
84
|
-
|
|
83
|
+
h(!0);
|
|
85
84
|
return;
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
(c = t.currentTarget.form) == null || c.requestSubmit();
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
o == null || o(t);
|
|
90
|
+
}, b = Y(null), [J, Q] = y(0);
|
|
91
|
+
C(() => {
|
|
92
|
+
b.current && Q(b.current.offsetHeight);
|
|
94
93
|
}, [r.value]);
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
-
ref:
|
|
94
|
+
const z = r.allowAttachments && r.files && r.files.length > 0;
|
|
95
|
+
return _({
|
|
96
|
+
ref: b,
|
|
98
97
|
maxHeight: 240,
|
|
99
98
|
borderWidth: 1,
|
|
100
|
-
dependencies: [r.value,
|
|
101
|
-
}), /* @__PURE__ */
|
|
99
|
+
dependencies: [r.value, z]
|
|
100
|
+
}), /* @__PURE__ */ u(
|
|
102
101
|
"div",
|
|
103
102
|
{
|
|
104
103
|
className: "relative flex w-full",
|
|
105
|
-
onDragOver:
|
|
106
|
-
onDragLeave:
|
|
107
|
-
onDrop:
|
|
104
|
+
onDragOver: H,
|
|
105
|
+
onDragLeave: U,
|
|
106
|
+
onDrop: V,
|
|
108
107
|
children: [
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
A && /* @__PURE__ */ e(
|
|
109
|
+
G,
|
|
111
110
|
{
|
|
112
|
-
isOpen:
|
|
113
|
-
close: () =>
|
|
111
|
+
isOpen: N,
|
|
112
|
+
close: () => h(!1)
|
|
114
113
|
}
|
|
115
114
|
),
|
|
116
|
-
/* @__PURE__ */ e
|
|
117
|
-
|
|
115
|
+
/* @__PURE__ */ e(
|
|
116
|
+
ce,
|
|
118
117
|
{
|
|
119
|
-
isVisible:
|
|
120
|
-
onStopRecording:
|
|
118
|
+
isVisible: k,
|
|
119
|
+
onStopRecording: D
|
|
121
120
|
}
|
|
122
121
|
),
|
|
123
|
-
/* @__PURE__ */ e
|
|
124
|
-
/* @__PURE__ */ e
|
|
122
|
+
/* @__PURE__ */ e("div", { className: "relative flex w-full items-center space-x-2", children: /* @__PURE__ */ u("div", { className: "relative flex-1", children: [
|
|
123
|
+
/* @__PURE__ */ e(
|
|
125
124
|
"textarea",
|
|
126
125
|
{
|
|
127
126
|
"aria-label": "Write your prompt here",
|
|
128
127
|
placeholder: a,
|
|
129
|
-
ref:
|
|
130
|
-
onPaste:
|
|
131
|
-
onKeyDown:
|
|
132
|
-
className:
|
|
128
|
+
ref: b,
|
|
129
|
+
onPaste: B,
|
|
130
|
+
onKeyDown: W,
|
|
131
|
+
className: R(
|
|
133
132
|
"z-10 w-full grow resize-none rounded-xl border border-input bg-background p-3 pr-24 text-sm ring-offset-background transition-[border] placeholder:text-muted-foreground focus-visible:border-primary focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
134
|
-
|
|
133
|
+
z && "pb-16",
|
|
135
134
|
l
|
|
136
135
|
),
|
|
137
|
-
...r.allowAttachments ?
|
|
136
|
+
...r.allowAttachments ? I(r, ["allowAttachments", "files", "setFiles"]) : I(r, ["allowAttachments"])
|
|
138
137
|
}
|
|
139
138
|
),
|
|
140
|
-
r.allowAttachments && /* @__PURE__ */ e
|
|
141
|
-
|
|
139
|
+
r.allowAttachments && /* @__PURE__ */ e("div", { className: "absolute inset-x-3 bottom-2 z-20 overflow-x-scroll py-3 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ e("div", { className: "flex space-x-3", children: /* @__PURE__ */ e(v, { mode: "popLayout", children: (S = r.files) == null ? void 0 : S.map((t) => /* @__PURE__ */ e(
|
|
140
|
+
K,
|
|
142
141
|
{
|
|
143
142
|
file: t,
|
|
144
143
|
onRemove: () => {
|
|
@@ -154,9 +153,9 @@ function ae({
|
|
|
154
153
|
t.name + String(t.lastModified)
|
|
155
154
|
)) }) }) })
|
|
156
155
|
] }) }),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
r.allowAttachments && /* @__PURE__ */ e
|
|
159
|
-
|
|
156
|
+
/* @__PURE__ */ u("div", { className: "absolute right-3 top-3 z-20 flex gap-2", children: [
|
|
157
|
+
r.allowAttachments && /* @__PURE__ */ e(
|
|
158
|
+
p,
|
|
160
159
|
{
|
|
161
160
|
type: "button",
|
|
162
161
|
size: "icon",
|
|
@@ -164,65 +163,65 @@ function ae({
|
|
|
164
163
|
className: "h-8 w-8",
|
|
165
164
|
"aria-label": "Attach a file",
|
|
166
165
|
onClick: async () => {
|
|
167
|
-
const t = await
|
|
168
|
-
|
|
166
|
+
const t = await oe();
|
|
167
|
+
g(t);
|
|
169
168
|
},
|
|
170
|
-
children: /* @__PURE__ */ e
|
|
169
|
+
children: /* @__PURE__ */ e(F, { className: "h-4 w-4" })
|
|
171
170
|
}
|
|
172
171
|
),
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
O && /* @__PURE__ */ e(
|
|
173
|
+
p,
|
|
175
174
|
{
|
|
176
175
|
type: "button",
|
|
177
176
|
variant: "outline",
|
|
178
|
-
className:
|
|
177
|
+
className: R("h-8 w-8", M && "text-primary"),
|
|
179
178
|
"aria-label": "Voice input",
|
|
180
179
|
size: "icon",
|
|
181
180
|
onClick: E,
|
|
182
|
-
children: /* @__PURE__ */ e
|
|
181
|
+
children: /* @__PURE__ */ e(ee, { className: "h-4 w-4" })
|
|
183
182
|
}
|
|
184
183
|
),
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
d && m ? /* @__PURE__ */ e(
|
|
185
|
+
p,
|
|
187
186
|
{
|
|
188
187
|
type: "button",
|
|
189
188
|
size: "icon",
|
|
190
189
|
className: "h-8 w-8",
|
|
191
190
|
"aria-label": "Stop generating",
|
|
192
|
-
onClick:
|
|
193
|
-
children: /* @__PURE__ */ e
|
|
191
|
+
onClick: m,
|
|
192
|
+
children: /* @__PURE__ */ e(te, { className: "h-3 w-3 animate-pulse", fill: "currentColor" })
|
|
194
193
|
}
|
|
195
|
-
) : /* @__PURE__ */ e
|
|
196
|
-
|
|
194
|
+
) : /* @__PURE__ */ e(
|
|
195
|
+
p,
|
|
197
196
|
{
|
|
198
197
|
type: "submit",
|
|
199
198
|
size: "icon",
|
|
200
199
|
className: "h-8 w-8 transition-opacity",
|
|
201
200
|
"aria-label": "Send message",
|
|
202
|
-
disabled: r.value === "" ||
|
|
203
|
-
children: /* @__PURE__ */ e
|
|
201
|
+
disabled: r.value === "" || d,
|
|
202
|
+
children: /* @__PURE__ */ e(re, { className: "h-5 w-5" })
|
|
204
203
|
}
|
|
205
204
|
)
|
|
206
205
|
] }),
|
|
207
|
-
r.allowAttachments && /* @__PURE__ */ e
|
|
208
|
-
/* @__PURE__ */ e
|
|
209
|
-
|
|
206
|
+
r.allowAttachments && /* @__PURE__ */ e(le, { isDragging: L }),
|
|
207
|
+
/* @__PURE__ */ e(
|
|
208
|
+
ue,
|
|
210
209
|
{
|
|
211
|
-
isRecording:
|
|
212
|
-
isTranscribing:
|
|
213
|
-
audioStream:
|
|
214
|
-
textAreaHeight:
|
|
215
|
-
onStopRecording:
|
|
210
|
+
isRecording: k,
|
|
211
|
+
isTranscribing: j,
|
|
212
|
+
audioStream: q,
|
|
213
|
+
textAreaHeight: J,
|
|
214
|
+
onStopRecording: D
|
|
216
215
|
}
|
|
217
216
|
)
|
|
218
217
|
]
|
|
219
218
|
}
|
|
220
219
|
);
|
|
221
220
|
}
|
|
222
|
-
|
|
223
|
-
function
|
|
224
|
-
return /* @__PURE__ */ e
|
|
225
|
-
|
|
221
|
+
ne.displayName = "MessageInput";
|
|
222
|
+
function le({ isDragging: a }) {
|
|
223
|
+
return /* @__PURE__ */ e(v, { children: a && /* @__PURE__ */ u(
|
|
224
|
+
x.div,
|
|
226
225
|
{
|
|
227
226
|
className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center space-x-2 rounded-xl border border-dashed border-border bg-background text-sm text-muted-foreground",
|
|
228
227
|
initial: { opacity: 0 },
|
|
@@ -231,21 +230,21 @@ function ne({ isDragging: a }) {
|
|
|
231
230
|
transition: { duration: 0.2 },
|
|
232
231
|
"aria-hidden": !0,
|
|
233
232
|
children: [
|
|
234
|
-
/* @__PURE__ */ e
|
|
235
|
-
/* @__PURE__ */ e
|
|
233
|
+
/* @__PURE__ */ e(F, { className: "h-4 w-4" }),
|
|
234
|
+
/* @__PURE__ */ e("span", { children: "Drop your files here to attach them." })
|
|
236
235
|
]
|
|
237
236
|
}
|
|
238
237
|
) });
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function oe() {
|
|
241
240
|
if (typeof document > "u")
|
|
242
241
|
return Promise.resolve(null);
|
|
243
242
|
const a = document.createElement("input");
|
|
244
243
|
return a.type = "file", a.multiple = !0, a.accept = "*/*", a.click(), new Promise((l) => {
|
|
245
|
-
a.onchange = (
|
|
246
|
-
const
|
|
247
|
-
if (
|
|
248
|
-
l(Array.from(
|
|
244
|
+
a.onchange = (o) => {
|
|
245
|
+
const s = o.currentTarget.files;
|
|
246
|
+
if (s) {
|
|
247
|
+
l(Array.from(s));
|
|
249
248
|
return;
|
|
250
249
|
}
|
|
251
250
|
l(null);
|
|
@@ -253,8 +252,8 @@ function le() {
|
|
|
253
252
|
});
|
|
254
253
|
}
|
|
255
254
|
function se() {
|
|
256
|
-
return /* @__PURE__ */
|
|
257
|
-
|
|
255
|
+
return /* @__PURE__ */ u(
|
|
256
|
+
x.div,
|
|
258
257
|
{
|
|
259
258
|
className: "flex h-full w-full flex-col items-center justify-center rounded-xl bg-background/80 backdrop-blur-sm",
|
|
260
259
|
initial: { opacity: 0 },
|
|
@@ -262,10 +261,10 @@ function se() {
|
|
|
262
261
|
exit: { opacity: 0 },
|
|
263
262
|
transition: { duration: 0.2 },
|
|
264
263
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */ e
|
|
267
|
-
/* @__PURE__ */ e
|
|
268
|
-
|
|
264
|
+
/* @__PURE__ */ u("div", { className: "relative", children: [
|
|
265
|
+
/* @__PURE__ */ e(ae, { className: "h-8 w-8 animate-spin text-primary" }),
|
|
266
|
+
/* @__PURE__ */ e(
|
|
267
|
+
x.div,
|
|
269
268
|
{
|
|
270
269
|
className: "absolute inset-0 h-8 w-8 animate-pulse rounded-full bg-primary/20",
|
|
271
270
|
initial: { scale: 0.8, opacity: 0 },
|
|
@@ -279,14 +278,14 @@ function se() {
|
|
|
279
278
|
}
|
|
280
279
|
)
|
|
281
280
|
] }),
|
|
282
|
-
/* @__PURE__ */ e
|
|
281
|
+
/* @__PURE__ */ e("p", { className: "mt-4 text-sm font-medium text-muted-foreground", children: "Transcribing audio..." })
|
|
283
282
|
]
|
|
284
283
|
}
|
|
285
284
|
);
|
|
286
285
|
}
|
|
287
|
-
function
|
|
288
|
-
return /* @__PURE__ */ e
|
|
289
|
-
|
|
286
|
+
function ce({ isVisible: a, onStopRecording: l }) {
|
|
287
|
+
return /* @__PURE__ */ e(v, { children: a && /* @__PURE__ */ e(
|
|
288
|
+
x.div,
|
|
290
289
|
{
|
|
291
290
|
initial: { top: 0, filter: "blur(5px)" },
|
|
292
291
|
animate: {
|
|
@@ -300,43 +299,43 @@ function oe({ isVisible: a, onStopRecording: l }) {
|
|
|
300
299
|
exit: { top: 0, filter: "blur(5px)" },
|
|
301
300
|
className: "absolute left-1/2 flex -translate-x-1/2 cursor-pointer overflow-hidden whitespace-nowrap rounded-full border bg-background py-1 text-center text-sm text-muted-foreground",
|
|
302
301
|
onClick: l,
|
|
303
|
-
children: /* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */ e
|
|
302
|
+
children: /* @__PURE__ */ u("span", { className: "mx-2.5 flex items-center", children: [
|
|
303
|
+
/* @__PURE__ */ e(ie, { className: "mr-2 h-3 w-3" }),
|
|
305
304
|
"Click to finish recording"
|
|
306
305
|
] })
|
|
307
306
|
}
|
|
308
307
|
) });
|
|
309
308
|
}
|
|
310
|
-
function
|
|
309
|
+
function ue({
|
|
311
310
|
isRecording: a,
|
|
312
311
|
isTranscribing: l,
|
|
313
|
-
audioStream:
|
|
314
|
-
textAreaHeight:
|
|
315
|
-
onStopRecording:
|
|
312
|
+
audioStream: o,
|
|
313
|
+
textAreaHeight: s,
|
|
314
|
+
onStopRecording: m
|
|
316
315
|
}) {
|
|
317
|
-
return a ? /* @__PURE__ */ e
|
|
316
|
+
return a ? /* @__PURE__ */ e(
|
|
318
317
|
"div",
|
|
319
318
|
{
|
|
320
319
|
className: "absolute inset-[1px] z-50 overflow-hidden rounded-xl",
|
|
321
|
-
style: { height:
|
|
322
|
-
children: /* @__PURE__ */ e
|
|
323
|
-
|
|
320
|
+
style: { height: s - 2 },
|
|
321
|
+
children: /* @__PURE__ */ e(
|
|
322
|
+
$,
|
|
324
323
|
{
|
|
325
|
-
stream:
|
|
324
|
+
stream: o,
|
|
326
325
|
isRecording: a,
|
|
327
|
-
onClick:
|
|
326
|
+
onClick: m
|
|
328
327
|
}
|
|
329
328
|
)
|
|
330
329
|
}
|
|
331
|
-
) : l ? /* @__PURE__ */ e
|
|
330
|
+
) : l ? /* @__PURE__ */ e(
|
|
332
331
|
"div",
|
|
333
332
|
{
|
|
334
333
|
className: "absolute inset-[1px] z-50 overflow-hidden rounded-xl",
|
|
335
|
-
style: { height:
|
|
336
|
-
children: /* @__PURE__ */ e
|
|
334
|
+
style: { height: s - 2 },
|
|
335
|
+
children: /* @__PURE__ */ e(se, {})
|
|
337
336
|
}
|
|
338
337
|
) : null;
|
|
339
338
|
}
|
|
340
339
|
export {
|
|
341
|
-
|
|
340
|
+
ne as MessageInput
|
|
342
341
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { ChatMessage as
|
|
4
|
-
import { TypingIndicator as
|
|
5
|
-
function
|
|
2
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { ChatMessage as f } from "./chat-message.js";
|
|
4
|
+
import { TypingIndicator as p } from "./typing-indicator.js";
|
|
5
|
+
function d({
|
|
6
6
|
messages: r,
|
|
7
7
|
showTimeStamps: e = !0,
|
|
8
|
-
isTyping:
|
|
8
|
+
isTyping: n = !1,
|
|
9
9
|
messageOptions: t
|
|
10
10
|
}) {
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
r.map((
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
|
|
11
|
+
return /* @__PURE__ */ c("div", { className: "space-y-4 overflow-visible", children: [
|
|
12
|
+
r.map((i, a) => {
|
|
13
|
+
const s = typeof t == "function" ? t(i) : t;
|
|
14
|
+
return /* @__PURE__ */ o(
|
|
15
|
+
f,
|
|
16
16
|
{
|
|
17
17
|
showTimeStamp: e,
|
|
18
|
-
...
|
|
19
|
-
...
|
|
18
|
+
...i,
|
|
19
|
+
...s
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
a
|
|
22
22
|
);
|
|
23
23
|
}),
|
|
24
|
-
|
|
24
|
+
n && /* @__PURE__ */ o(p, {})
|
|
25
25
|
] });
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
d as MessageList
|
|
29
29
|
};
|