@copilotkit/react-textarea 0.21.0-alpha.0 → 0.21.0-alpha.1
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/.turbo/turbo-build.log +279 -249
- package/CHANGELOG.md +11 -0
- package/dist/chunk-2NURR2DX.mjs +16 -8
- package/dist/chunk-2NURR2DX.mjs.map +1 -1
- package/dist/{chunk-YXA3UPMI.mjs → chunk-34D4UIYX.mjs} +59 -23
- package/dist/chunk-34D4UIYX.mjs.map +1 -0
- package/dist/chunk-463BFNUP.mjs +16 -5
- package/dist/chunk-463BFNUP.mjs.map +1 -1
- package/dist/chunk-4S5ZJH3I.mjs +3 -2
- package/dist/chunk-4S5ZJH3I.mjs.map +1 -1
- package/dist/chunk-5EJ5XOGP.mjs +16 -8
- package/dist/chunk-5EJ5XOGP.mjs.map +1 -1
- package/dist/chunk-5FO6ISW4.mjs +0 -2
- package/dist/chunk-5FO6ISW4.mjs.map +1 -1
- package/dist/{chunk-5DU2QDHZ.mjs → chunk-7JO276KU.mjs} +9 -5
- package/dist/chunk-7JO276KU.mjs.map +1 -0
- package/dist/chunk-AXN37AHC.mjs +5 -2
- package/dist/chunk-AXN37AHC.mjs.map +1 -1
- package/dist/chunk-CSGFJU3L.mjs +11 -6
- package/dist/chunk-CSGFJU3L.mjs.map +1 -1
- package/dist/chunk-DE5K76I2.mjs +0 -2
- package/dist/chunk-DE5K76I2.mjs.map +1 -1
- package/dist/chunk-DYGPLRY3.mjs +15 -7
- package/dist/chunk-DYGPLRY3.mjs.map +1 -1
- package/dist/chunk-F2TIBXML.mjs +19 -7
- package/dist/chunk-F2TIBXML.mjs.map +1 -1
- package/dist/chunk-F3MHL6ZY.mjs +4 -4
- package/dist/chunk-F3MHL6ZY.mjs.map +1 -1
- package/dist/{chunk-O7G7E3E3.mjs → chunk-F4WZCQG6.mjs} +35 -13
- package/dist/chunk-F4WZCQG6.mjs.map +1 -0
- package/dist/chunk-GCMQHIRF.mjs +6 -3
- package/dist/chunk-GCMQHIRF.mjs.map +1 -1
- package/dist/chunk-H4VKQGVU.mjs +0 -2
- package/dist/chunk-H4VKQGVU.mjs.map +1 -1
- package/dist/{chunk-24SYR4JB.mjs → chunk-IPM5WWPW.mjs} +25 -11
- package/dist/chunk-IPM5WWPW.mjs.map +1 -0
- package/dist/chunk-IU3WTXLQ.mjs +0 -2
- package/dist/chunk-IU3WTXLQ.mjs.map +1 -1
- package/dist/chunk-IXJ2HCOA.mjs +14 -4
- package/dist/chunk-IXJ2HCOA.mjs.map +1 -1
- package/dist/chunk-JAFCXEPU.mjs +6 -3
- package/dist/chunk-JAFCXEPU.mjs.map +1 -1
- package/dist/chunk-JHTAOLEW.mjs +5 -2
- package/dist/chunk-JHTAOLEW.mjs.map +1 -1
- package/dist/chunk-KCHYD3EB.mjs +6 -5
- package/dist/chunk-KCHYD3EB.mjs.map +1 -1
- package/dist/chunk-KGKLUWKW.mjs +15 -6
- package/dist/chunk-KGKLUWKW.mjs.map +1 -1
- package/dist/chunk-L7VVZH4Q.mjs +0 -2
- package/dist/chunk-L7VVZH4Q.mjs.map +1 -1
- package/dist/chunk-LNAIMEB2.mjs +9 -4
- package/dist/chunk-LNAIMEB2.mjs.map +1 -1
- package/dist/{chunk-KLROO6ID.mjs → chunk-LRXRD5KU.mjs} +24 -12
- package/dist/chunk-LRXRD5KU.mjs.map +1 -0
- package/dist/chunk-MMVDU6DF.mjs +0 -2
- package/dist/chunk-MMVDU6DF.mjs.map +1 -1
- package/dist/chunk-MPME5BW2.mjs +4 -4
- package/dist/chunk-MPME5BW2.mjs.map +1 -1
- package/dist/chunk-MRXNTQOX.mjs +6 -2
- package/dist/chunk-MRXNTQOX.mjs.map +1 -1
- package/dist/chunk-ND5PXTAW.mjs +4 -4
- package/dist/chunk-ND5PXTAW.mjs.map +1 -1
- package/dist/chunk-NKW5OU2S.mjs +6 -3
- package/dist/chunk-NKW5OU2S.mjs.map +1 -1
- package/dist/chunk-O5OWT5GE.mjs +23 -8
- package/dist/chunk-O5OWT5GE.mjs.map +1 -1
- package/dist/chunk-OD7ZMOVE.mjs +11 -7
- package/dist/chunk-OD7ZMOVE.mjs.map +1 -1
- package/dist/chunk-OELUUJZY.mjs +10 -4
- package/dist/chunk-OELUUJZY.mjs.map +1 -1
- package/dist/chunk-QJDMIGLU.mjs +12 -4
- package/dist/chunk-QJDMIGLU.mjs.map +1 -1
- package/dist/chunk-RQHOUUXQ.mjs +4 -4
- package/dist/chunk-RQHOUUXQ.mjs.map +1 -1
- package/dist/chunk-RR6OQGTI.mjs +5 -2
- package/dist/chunk-RR6OQGTI.mjs.map +1 -1
- package/dist/chunk-S6JUGJK2.mjs +3 -2
- package/dist/chunk-S6JUGJK2.mjs.map +1 -1
- package/dist/{chunk-63FSISXT.mjs → chunk-TIBMW3DC.mjs} +12 -7
- package/dist/chunk-TIBMW3DC.mjs.map +1 -0
- package/dist/chunk-UHD44NC5.mjs +17 -7
- package/dist/chunk-UHD44NC5.mjs.map +1 -1
- package/dist/chunk-WADHCMPK.mjs +0 -2
- package/dist/chunk-WADHCMPK.mjs.map +1 -1
- package/dist/chunk-WJHSY5T6.mjs +0 -2
- package/dist/chunk-WJHSY5T6.mjs.map +1 -1
- package/dist/chunk-WJYQWL4I.mjs +4 -4
- package/dist/chunk-WJYQWL4I.mjs.map +1 -1
- package/dist/chunk-WLPYYGES.mjs +42 -22
- package/dist/chunk-WLPYYGES.mjs.map +1 -1
- package/dist/chunk-WPIA53HF.mjs +15 -7
- package/dist/chunk-WPIA53HF.mjs.map +1 -1
- package/dist/chunk-XHUMROEY.mjs +17 -7
- package/dist/chunk-XHUMROEY.mjs.map +1 -1
- package/dist/chunk-YQU7WG7T.mjs +12 -6
- package/dist/chunk-YQU7WG7T.mjs.map +1 -1
- package/dist/chunk-YTOPHPSG.mjs +4 -4
- package/dist/chunk-YTOPHPSG.mjs.map +1 -1
- package/dist/chunk-YW3REYX6.mjs +6 -5
- package/dist/chunk-YW3REYX6.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.d.ts +14 -0
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +39 -35
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/render-element.d.ts +6 -0
- package/dist/components/base-copilot-textarea/render-element.mjs +7 -3
- package/dist/components/base-copilot-textarea/render-element.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/render-placeholder.d.ts +6 -0
- package/dist/components/base-copilot-textarea/render-placeholder.mjs +7 -3
- package/dist/components/base-copilot-textarea/render-placeholder.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.d.ts +6 -0
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs +8 -4
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/use-add-branding-css.d.ts +3 -0
- package/dist/components/base-copilot-textarea/use-add-branding-css.mjs +7 -3
- package/dist/components/base-copilot-textarea/use-add-branding-css.mjs.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.d.ts +20 -0
- package/dist/components/copilot-textarea/copilot-textarea.mjs +51 -47
- package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-editor-provider.d.ts +13 -0
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs +9 -3
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar-components.d.ts +18 -0
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs +15 -3
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.d.ts +10 -0
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +22 -18
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.d.ts +16 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +16 -12
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.d.ts +14 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +17 -13
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.d.ts +15 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs +11 -5
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.d.ts +4 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +18 -14
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs.map +1 -1
- package/dist/components/index.d.ts +15 -0
- package/dist/components/index.mjs +55 -48
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/manual-ui/chip-with-icon.d.ts +10 -0
- package/dist/components/manual-ui/chip-with-icon.mjs +6 -5
- package/dist/components/manual-ui/chip-with-icon.mjs.map +1 -1
- package/dist/components/source-search-box/source-search-box.d.ts +15 -0
- package/dist/components/source-search-box/source-search-box.mjs +12 -6
- package/dist/components/source-search-box/source-search-box.mjs.map +1 -1
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.mjs +10 -4
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.mjs +18 -7
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/command.d.ts +48 -0
- package/dist/components/ui/command.mjs +25 -5
- package/dist/components/ui/command.mjs.map +1 -1
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.mjs +20 -4
- package/dist/components/ui/dialog.mjs.map +1 -1
- package/dist/components/ui/label.d.ts +8 -0
- package/dist/components/ui/label.mjs +8 -4
- package/dist/components/ui/label.mjs.map +1 -1
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.mjs +15 -8
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/textarea.d.ts +7 -0
- package/dist/components/ui/textarea.mjs +13 -7
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.mjs +1 -2
- package/dist/context/index.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.d.ts +14 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs +10 -6
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.d.ts +8 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs +8 -4
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.d.ts +7 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs +9 -5
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.mjs +1 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts +22 -0
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +18 -14
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.d.ts +23 -0
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +18 -14
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map +1 -1
- package/dist/hooks/misc/use-autosize-textarea.d.ts +5 -0
- package/dist/hooks/misc/use-autosize-textarea.mjs +7 -3
- package/dist/hooks/misc/use-autosize-textarea.mjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs +66 -50
- package/dist/index.mjs.map +1 -1
- package/dist/lib/debouncer.d.ts +11 -0
- package/dist/lib/debouncer.mjs +7 -3
- package/dist/lib/debouncer.mjs.map +1 -1
- package/dist/lib/editor-to-text.d.ts +7 -0
- package/dist/lib/editor-to-text.mjs +7 -3
- package/dist/lib/editor-to-text.mjs.map +1 -1
- package/dist/lib/get-text-around-cursor.d.ts +15 -0
- package/dist/lib/get-text-around-cursor.mjs +13 -3
- package/dist/lib/get-text-around-cursor.mjs.map +1 -1
- package/dist/lib/retry.d.ts +3 -0
- package/dist/lib/retry.mjs +7 -3
- package/dist/lib/retry.mjs.map +1 -1
- package/dist/lib/slatejs-edits/add-autocompletions.d.ts +8 -0
- package/dist/lib/slatejs-edits/add-autocompletions.mjs +7 -3
- package/dist/lib/slatejs-edits/add-autocompletions.mjs.map +1 -1
- package/dist/lib/slatejs-edits/clear-autocompletions.d.ts +8 -0
- package/dist/lib/slatejs-edits/clear-autocompletions.mjs +7 -3
- package/dist/lib/slatejs-edits/clear-autocompletions.mjs.map +1 -1
- package/dist/lib/slatejs-edits/replace-text.d.ts +5 -0
- package/dist/lib/slatejs-edits/replace-text.mjs +7 -3
- package/dist/lib/slatejs-edits/replace-text.mjs.map +1 -1
- package/dist/lib/slatejs-edits/with-partial-history.d.ts +10 -0
- package/dist/lib/slatejs-edits/with-partial-history.mjs +9 -3
- package/dist/lib/slatejs-edits/with-partial-history.mjs.map +1 -1
- package/dist/lib/stream-promise-flatten.d.ts +12 -0
- package/dist/lib/stream-promise-flatten.mjs +7 -3
- package/dist/lib/stream-promise-flatten.mjs.map +1 -1
- package/dist/lib/utils.d.ts +10 -0
- package/dist/lib/utils.mjs +17 -3
- package/dist/lib/utils.mjs.map +1 -1
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/lib/utils.test.mjs +0 -1
- package/dist/lib/utils.test.mjs.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.d.ts +23 -0
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs +0 -2
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.d.ts +20 -0
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +12 -8
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/editing-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/editing-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/editing-api-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/index.d.ts +11 -0
- package/dist/types/autosuggestions-config/index.mjs +17 -10
- package/dist/types/autosuggestions-config/index.mjs.map +1 -1
- package/dist/types/autosuggestions-config/insertions-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/insertions-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/insertions-api-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.d.ts +27 -0
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs +7 -3
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.d.ts +3 -0
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs +0 -2
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.d.ts +7 -0
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs +0 -2
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs.map +1 -1
- package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs.map +1 -1
- package/dist/types/base/autosuggestion-state.d.ts +8 -0
- package/dist/types/base/autosuggestion-state.mjs +0 -2
- package/dist/types/base/autosuggestion-state.mjs.map +1 -1
- package/dist/types/base/autosuggestions-bare-function.d.ts +19 -0
- package/dist/types/base/autosuggestions-bare-function.mjs +0 -2
- package/dist/types/base/autosuggestions-bare-function.mjs.map +1 -1
- package/dist/types/base/base-autosuggestions-config.d.ts +16 -0
- package/dist/types/base/base-autosuggestions-config.mjs +7 -3
- package/dist/types/base/base-autosuggestions-config.mjs.map +1 -1
- package/dist/types/base/base-copilot-textarea-props.d.ts +41 -0
- package/dist/types/base/base-copilot-textarea-props.mjs +0 -2
- package/dist/types/base/base-copilot-textarea-props.mjs.map +1 -1
- package/dist/types/base/custom-editor.d.ts +29 -0
- package/dist/types/base/custom-editor.mjs +0 -2
- package/dist/types/base/custom-editor.mjs.map +1 -1
- package/dist/types/base/editor-autocomplete-state.d.ts +10 -0
- package/dist/types/base/editor-autocomplete-state.mjs +8 -4
- package/dist/types/base/editor-autocomplete-state.mjs.map +1 -1
- package/dist/types/base/index.d.ts +5 -0
- package/dist/types/base/index.mjs +8 -4
- package/dist/types/base/index.mjs.map +1 -1
- package/dist/types/html-copilot-textarea-element.d.ts +7 -0
- package/dist/types/html-copilot-textarea-element.mjs +1 -2
- package/dist/types/html-copilot-textarea-element.mjs.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.mjs +22 -12
- package/dist/types/index.mjs.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-24SYR4JB.mjs.map +0 -1
- package/dist/chunk-5DU2QDHZ.mjs.map +0 -1
- package/dist/chunk-63FSISXT.mjs.map +0 -1
- package/dist/chunk-KLROO6ID.mjs.map +0 -1
- package/dist/chunk-O7G7E3E3.mjs.map +0 -1
- package/dist/chunk-YXA3UPMI.mjs.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DocumentPointer } from '@copilotkit/react-core';
|
|
2
|
+
|
|
3
|
+
interface SourceSearchBoxProps {
|
|
4
|
+
searchTerm: string;
|
|
5
|
+
suggestedFiles: DocumentPointer[];
|
|
6
|
+
onSelectedFile: (filePointer: DocumentPointer) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function SourceSearchBox(props: SourceSearchBoxProps): JSX.Element;
|
|
9
|
+
declare function Logo({ children, width, height, }: {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Logo, SourceSearchBox, SourceSearchBoxProps };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
Logo,
|
|
3
|
+
SourceSearchBox
|
|
4
|
+
} from "../../chunk-463BFNUP.mjs";
|
|
5
|
+
import "../../chunk-WLPYYGES.mjs";
|
|
6
|
+
import "../../chunk-O5OWT5GE.mjs";
|
|
7
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
8
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
9
|
+
export {
|
|
10
|
+
Logo,
|
|
11
|
+
SourceSearchBox
|
|
12
|
+
};
|
|
7
13
|
//# sourceMappingURL=source-search-box.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const buttonVariants: (props?: ({
|
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
|
|
14
|
+
export { Button, ButtonProps, buttonVariants };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
buttonVariants
|
|
4
|
+
} from "../../chunk-2NURR2DX.mjs";
|
|
5
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
6
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
7
|
+
export {
|
|
8
|
+
Button,
|
|
9
|
+
buttonVariants
|
|
10
|
+
};
|
|
5
11
|
//# sourceMappingURL=button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
6
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "../../chunk-KGKLUWKW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "../../chunk-MRXNTQOX.mjs";
|
|
5
8
|
|
|
9
|
+
// src/components/ui/card.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
12
|
var Card = React.forwardRef((_a, ref) => {
|
|
7
13
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8
14
|
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
@@ -57,7 +63,12 @@ var CardFooter = React.forwardRef((_a, ref) => {
|
|
|
57
63
|
}, props));
|
|
58
64
|
});
|
|
59
65
|
CardFooter.displayName = "CardFooter";
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
export {
|
|
67
|
+
Card,
|
|
68
|
+
CardContent,
|
|
69
|
+
CardDescription,
|
|
70
|
+
CardFooter,
|
|
71
|
+
CardHeader,
|
|
72
|
+
CardTitle
|
|
73
|
+
};
|
|
63
74
|
//# sourceMappingURL=card.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/card.tsx"],"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n \"rounded-lg border bg-card text-card-foreground shadow-sm\",\n className\n )}\n {...props}\n />\n));\nCard.displayName = \"Card\";\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\n {...props}\n />\n));\nCardHeader.displayName = \"CardHeader\";\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\n \"text-2xl font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n));\nCardTitle.displayName = \"CardTitle\";\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nCardDescription.displayName = \"CardDescription\";\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n));\nCardContent.displayName = \"CardContent\";\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"flex items-center p-6 pt-0\", className)}\n {...props}\n />\n));\nCardFooter.displayName = \"CardFooter\";\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardDescription,\n CardContent,\n};\n"],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;AAQrB;AAJF,IAAM,OAAa,iBAGjB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAPL,IAOG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,KACI,MACN;AAAA,CACD;AACD,KAAK,cAAc;AAEnB,IAAM,aAAmB,iBAGvB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAtBL,IAsBG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,KACpD,MACN;AAAA,CACD;AACD,WAAW,cAAc;AAEzB,IAAM,YAAkB,iBAGtB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAlCL,IAkCG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,KACI,MACN;AAAA,CACD;AACD,UAAU,cAAc;AAExB,IAAM,kBAAwB,iBAG5B,CAAC,IAAyB,QAAK;AAA9B,eAAE,YAjDL,IAiDG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,KACpD,MACN;AAAA,CACD;AACD,gBAAgB,cAAc;AAE9B,IAAM,cAAoB,iBAGxB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YA7DL,IA6DG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IAAI;AAAA,IAAU,WAAW,GAAG,YAAY,SAAS;AAAA,KAAO,MAAO;AAAA,CACjE;AACD,YAAY,cAAc;AAE1B,IAAM,aAAmB,iBAGvB,CAAC,IAAyB,QAAK;AAA9B,eAAE,YArEL,IAqEG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IACC;AAAA,IACA,WAAW,GAAG,8BAA8B,SAAS;AAAA,KACjD,MACN;AAAA,CACD;AACD,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
shouldFilter?: boolean | undefined;
|
|
9
|
+
filter?: ((value: string, search: string) => number) | undefined;
|
|
10
|
+
value?: string | undefined;
|
|
11
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
12
|
+
loop?: boolean | undefined;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
interface CommandDialogProps extends DialogProps {
|
|
15
|
+
}
|
|
16
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => JSX.Element;
|
|
17
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> & {
|
|
18
|
+
value?: string | undefined;
|
|
19
|
+
onValueChange?: ((search: string) => void) | undefined;
|
|
20
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
30
|
+
heading?: React.ReactNode;
|
|
31
|
+
value?: string | undefined;
|
|
32
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & {
|
|
34
|
+
alwaysRender?: boolean | undefined;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
|
|
39
|
+
disabled?: boolean | undefined;
|
|
40
|
+
onSelect?: ((value: string) => void) | undefined;
|
|
41
|
+
value?: string | undefined;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const CommandShortcut: {
|
|
44
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
45
|
+
displayName: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import {
|
|
2
|
+
Command,
|
|
3
|
+
CommandDialog,
|
|
4
|
+
CommandEmpty,
|
|
5
|
+
CommandGroup,
|
|
6
|
+
CommandInput,
|
|
7
|
+
CommandItem,
|
|
8
|
+
CommandList,
|
|
9
|
+
CommandSeparator,
|
|
10
|
+
CommandShortcut
|
|
11
|
+
} from "../../chunk-WLPYYGES.mjs";
|
|
12
|
+
import "../../chunk-O5OWT5GE.mjs";
|
|
13
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
14
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
15
|
+
export {
|
|
16
|
+
Command,
|
|
17
|
+
CommandDialog,
|
|
18
|
+
CommandEmpty,
|
|
19
|
+
CommandGroup,
|
|
20
|
+
CommandInput,
|
|
21
|
+
CommandItem,
|
|
22
|
+
CommandList,
|
|
23
|
+
CommandSeparator,
|
|
24
|
+
CommandShortcut
|
|
25
|
+
};
|
|
6
26
|
//# sourceMappingURL=command.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
5
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const DialogHeader: {
|
|
8
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const DialogFooter: {
|
|
12
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
|
|
18
|
+
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger };
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
Dialog,
|
|
3
|
+
DialogContent,
|
|
4
|
+
DialogDescription,
|
|
5
|
+
DialogFooter,
|
|
6
|
+
DialogHeader,
|
|
7
|
+
DialogTitle,
|
|
8
|
+
DialogTrigger
|
|
9
|
+
} from "../../chunk-O5OWT5GE.mjs";
|
|
10
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
11
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
12
|
+
export {
|
|
13
|
+
Dialog,
|
|
14
|
+
DialogContent,
|
|
15
|
+
DialogDescription,
|
|
16
|
+
DialogFooter,
|
|
17
|
+
DialogHeader,
|
|
18
|
+
DialogTitle,
|
|
19
|
+
DialogTrigger
|
|
20
|
+
};
|
|
5
21
|
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
|
|
8
|
+
export { Label };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
Label
|
|
3
|
+
} from "../../chunk-5EJ5XOGP.mjs";
|
|
4
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
5
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
6
|
+
export {
|
|
7
|
+
Label
|
|
8
|
+
};
|
|
5
9
|
//# sourceMappingURL=label.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
3
|
+
|
|
4
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
|
|
6
|
+
export { Separator };
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "../../chunk-KGKLUWKW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "../../chunk-MRXNTQOX.mjs";
|
|
6
8
|
|
|
9
|
+
// src/components/ui/separator.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
"use client";
|
|
7
14
|
var Separator = React.forwardRef(
|
|
8
15
|
(_a, ref) => {
|
|
9
16
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
@@ -20,7 +27,7 @@ var Separator = React.forwardRef(
|
|
|
20
27
|
}
|
|
21
28
|
);
|
|
22
29
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
export {
|
|
31
|
+
Separator
|
|
32
|
+
};
|
|
26
33
|
//# sourceMappingURL=separator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/separator.tsx"],"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/separator.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Separator = React.forwardRef<\n React.ElementRef<typeof SeparatorPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\n>(\n (\n { className, orientation = \"horizontal\", decorative = true, ...props },\n ref\n ) => (\n <SeparatorPrimitive.Root\n ref={ref}\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"shrink-0 bg-border\",\n orientation === \"horizontal\" ? \"h-[1px] w-full\" : \"h-full w-[1px]\",\n className\n )}\n {...props}\n />\n )\n);\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"],"mappings":";;;;;;;;;AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AAYhC;AAfJ;AAOA,IAAM,YAAkB;AAAA,EAItB,CACE,IACA,QACA;AAFA,iBAAE,aAAW,cAAc,cAAc,aAAa,KAZ1D,IAYI,IAA+D,kBAA/D,IAA+D,CAA7D,aAAW,eAA4B;AAGzC,+BAAoB,yBAAnB;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,gBAAgB,eAAe,mBAAmB;AAAA,QAClD;AAAA,MACF;AAAA,OACI,MACN;AAAA;AAEJ;AACA,UAAU,cAAiC,wBAAK;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
6
|
+
|
|
7
|
+
export { Textarea, TextareaProps };
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "../../chunk-KGKLUWKW.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "../../chunk-MRXNTQOX.mjs";
|
|
5
8
|
|
|
9
|
+
// src/components/ui/textarea.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
12
|
var Textarea = React.forwardRef(
|
|
7
13
|
(_a, ref) => {
|
|
8
14
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
@@ -16,7 +22,7 @@ var Textarea = React.forwardRef(
|
|
|
16
22
|
}
|
|
17
23
|
);
|
|
18
24
|
Textarea.displayName = "Textarea";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
export {
|
|
26
|
+
Textarea
|
|
27
|
+
};
|
|
22
28
|
//# sourceMappingURL=textarea.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/textarea.tsx"],"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;AAUjB;AAHN,IAAM,WAAiB;AAAA,EACrB,CAAC,IAAyB,QAAQ;AAAjC,iBAAE,YARL,IAQG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,WACE,oBAAC;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACA;AAAA,OACI,MACN;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/context/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AutosuggestionsBareFunction } from '../../types/base/autosuggestions-bare-function.js';
|
|
2
|
+
import { AutosuggestionState } from '../../types/base/autosuggestion-state.js';
|
|
3
|
+
import { EditorAutocompleteState } from '../../types/base/editor-autocomplete-state.js';
|
|
4
|
+
import '@copilotkit/react-core';
|
|
5
|
+
import 'slate';
|
|
6
|
+
|
|
7
|
+
interface UseAutosuggestionsResult {
|
|
8
|
+
currentAutocompleteSuggestion: AutosuggestionState | null;
|
|
9
|
+
onChangeHandler: (newEditorState: EditorAutocompleteState | null) => void;
|
|
10
|
+
onKeyDownHandler: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare function useAutosuggestions(debounceTime: number, acceptAutosuggestionKey: string, autosuggestionFunction: AutosuggestionsBareFunction, insertAutocompleteSuggestion: (suggestion: AutosuggestionState) => void, disableWhenEmpty: boolean, disabled: boolean): UseAutosuggestionsResult;
|
|
13
|
+
|
|
14
|
+
export { UseAutosuggestionsResult, useAutosuggestions };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
useAutosuggestions
|
|
3
|
+
} from "../../chunk-UHD44NC5.mjs";
|
|
4
|
+
import "../../chunk-JAFCXEPU.mjs";
|
|
5
|
+
import "../../chunk-KGKLUWKW.mjs";
|
|
6
|
+
import "../../chunk-NKW5OU2S.mjs";
|
|
7
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
8
|
+
export {
|
|
9
|
+
useAutosuggestions
|
|
10
|
+
};
|
|
7
11
|
//# sourceMappingURL=use-autosuggestions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
useCopilotTextareaEditor
|
|
3
|
+
} from "../../chunk-CSGFJU3L.mjs";
|
|
4
|
+
import "../../chunk-KCHYD3EB.mjs";
|
|
5
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
6
|
+
export {
|
|
7
|
+
useCopilotTextareaEditor
|
|
8
|
+
};
|
|
5
9
|
//# sourceMappingURL=use-copilot-textarea-editor.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Editor } from 'slate';
|
|
3
|
+
import { HTMLCopilotTextAreaElement } from '../../types/html-copilot-textarea-element.js';
|
|
4
|
+
|
|
5
|
+
declare function usePopulateCopilotTextareaRef(editor: Editor, ref: React__default.Ref<HTMLCopilotTextAreaElement>): void;
|
|
6
|
+
|
|
7
|
+
export { usePopulateCopilotTextareaRef };
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import {
|
|
2
|
+
usePopulateCopilotTextareaRef
|
|
3
|
+
} from "../../chunk-YQU7WG7T.mjs";
|
|
4
|
+
import "../../chunk-RQHOUUXQ.mjs";
|
|
5
|
+
import "../../chunk-IXJ2HCOA.mjs";
|
|
6
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
7
|
+
export {
|
|
8
|
+
usePopulateCopilotTextareaRef
|
|
9
|
+
};
|
|
6
10
|
//# sourceMappingURL=use-populate-copilot-textarea-ref.mjs.map
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/hooks/index.mjs
CHANGED
package/dist/hooks/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AutosuggestionsBareFunction } from '../../types/base/autosuggestions-bare-function.js';
|
|
2
|
+
import { SuggestionsApiConfig } from '../../types/autosuggestions-config/suggestions-api-config.js';
|
|
3
|
+
import '@copilotkit/react-core';
|
|
4
|
+
import '../../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js';
|
|
5
|
+
import '../../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Returns a memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
9
|
+
* The function takes in the text before and after the cursor, and an abort signal.
|
|
10
|
+
* It sends a POST request to the API endpoint with the messages array containing the system message, few shot messages, and user messages.
|
|
11
|
+
* The function returns the suggestion from the API response.
|
|
12
|
+
*
|
|
13
|
+
* @param textareaPurpose - The purpose of the textarea. This is included in the system message.
|
|
14
|
+
* @param apiEndpoint - The API endpoint to send the autosuggestion request to.
|
|
15
|
+
* @param makeSystemMessage - A function that takes in a context string and returns a system message to include in the autosuggestion request.
|
|
16
|
+
* @param fewShotMessages - An array of few shot messages to include in the autosuggestion request.
|
|
17
|
+
* @param contextCategories - The categories of context strings we want to include. By default, we include the (default) "global" context category.
|
|
18
|
+
* @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
19
|
+
*/
|
|
20
|
+
declare function useMakeStandardAutosuggestionFunction(textareaPurpose: string, contextCategories: string[] | undefined, apiConfig: SuggestionsApiConfig): AutosuggestionsBareFunction;
|
|
21
|
+
|
|
22
|
+
export { useMakeStandardAutosuggestionFunction };
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import {
|
|
2
|
+
useMakeStandardAutosuggestionFunction
|
|
3
|
+
} from "../../chunk-DYGPLRY3.mjs";
|
|
4
|
+
import "../../chunk-DE5K76I2.mjs";
|
|
5
|
+
import "../../chunk-5FO6ISW4.mjs";
|
|
6
|
+
import "../../chunk-QJDMIGLU.mjs";
|
|
7
|
+
import "../../chunk-F2TIBXML.mjs";
|
|
8
|
+
import "../../chunk-AXN37AHC.mjs";
|
|
9
|
+
import "../../chunk-RR6OQGTI.mjs";
|
|
10
|
+
import "../../chunk-JHTAOLEW.mjs";
|
|
11
|
+
import "../../chunk-WADHCMPK.mjs";
|
|
12
|
+
import "../../chunk-WJHSY5T6.mjs";
|
|
13
|
+
import "../../chunk-S6JUGJK2.mjs";
|
|
14
|
+
import "../../chunk-4S5ZJH3I.mjs";
|
|
15
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
16
|
+
export {
|
|
17
|
+
useMakeStandardAutosuggestionFunction
|
|
18
|
+
};
|
|
15
19
|
//# sourceMappingURL=use-make-standard-autosuggestions-function.mjs.map
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|