@copilotkit/react-textarea 0.22.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +104 -104
- package/CHANGELOG.md +33 -0
- package/dist/{chunk-WJYQWL4I.mjs → chunk-2C7O2EVM.mjs} +1 -1
- package/dist/{chunk-WJYQWL4I.mjs.map → chunk-2C7O2EVM.mjs.map} +1 -1
- package/dist/{chunk-KCHYD3EB.mjs → chunk-2CDXHWVF.mjs} +1 -1
- package/dist/chunk-2CDXHWVF.mjs.map +1 -0
- package/dist/{chunk-GCMQHIRF.mjs → chunk-2QDCE7PD.mjs} +1 -1
- package/dist/chunk-2QDCE7PD.mjs.map +1 -0
- package/dist/{chunk-ND5PXTAW.mjs → chunk-3PQ7GSFE.mjs} +1 -1
- package/dist/chunk-3PQ7GSFE.mjs.map +1 -0
- package/dist/{chunk-MRPRZQMN.mjs → chunk-5IISSXS2.mjs} +11 -11
- package/dist/chunk-5IISSXS2.mjs.map +1 -0
- package/dist/{chunk-RQHOUUXQ.mjs → chunk-5UNJXFUO.mjs} +1 -1
- package/dist/{chunk-RQHOUUXQ.mjs.map → chunk-5UNJXFUO.mjs.map} +1 -1
- package/dist/{chunk-NZKGYWQV.mjs → chunk-74HF6Q3L.mjs} +26 -27
- package/dist/chunk-74HF6Q3L.mjs.map +1 -0
- package/dist/{chunk-MPME5BW2.mjs → chunk-7LSRNPNI.mjs} +1 -1
- package/dist/chunk-7LSRNPNI.mjs.map +1 -0
- package/dist/{chunk-DYGPLRY3.mjs → chunk-7SZDD6XT.mjs} +4 -8
- package/dist/chunk-7SZDD6XT.mjs.map +1 -0
- package/dist/{chunk-SFEGMBSS.mjs → chunk-7VKOE5UL.mjs} +8 -12
- package/dist/chunk-7VKOE5UL.mjs.map +1 -0
- package/dist/{chunk-463BFNUP.mjs → chunk-AUCHS4VR.mjs} +2 -2
- package/dist/chunk-AUCHS4VR.mjs.map +1 -0
- package/dist/{chunk-JAFCXEPU.mjs → chunk-BLRAOGXD.mjs} +2 -2
- package/dist/{chunk-JAFCXEPU.mjs.map → chunk-BLRAOGXD.mjs.map} +1 -1
- package/dist/{chunk-NO3EYPQH.mjs → chunk-CK7Q3Y5A.mjs} +2 -2
- package/dist/{chunk-IXJ2HCOA.mjs → chunk-ECR45NSD.mjs} +1 -1
- package/dist/chunk-ECR45NSD.mjs.map +1 -0
- package/dist/{chunk-OELUUJZY.mjs → chunk-EZCKXWQF.mjs} +1 -1
- package/dist/chunk-EZCKXWQF.mjs.map +1 -0
- package/dist/{chunk-KGKLUWKW.mjs → chunk-F626GQCD.mjs} +1 -1
- package/dist/chunk-F626GQCD.mjs.map +1 -0
- package/dist/{chunk-5EJ5XOGP.mjs → chunk-FK2XUDQQ.mjs} +2 -2
- package/dist/chunk-FK2XUDQQ.mjs.map +1 -0
- package/dist/chunk-FP2EKU3L.mjs +28 -0
- package/dist/chunk-FP2EKU3L.mjs.map +1 -0
- package/dist/{chunk-F3MHL6ZY.mjs → chunk-GQN2HYFJ.mjs} +2 -5
- package/dist/chunk-GQN2HYFJ.mjs.map +1 -0
- package/dist/{chunk-AXN37AHC.mjs → chunk-K5LNB36H.mjs} +1 -1
- package/dist/chunk-K5LNB36H.mjs.map +1 -0
- package/dist/{chunk-JHTAOLEW.mjs → chunk-KDVMG3XF.mjs} +1 -1
- package/dist/chunk-KDVMG3XF.mjs.map +1 -0
- package/dist/{chunk-2NURR2DX.mjs → chunk-KMXSZRIA.mjs} +2 -2
- package/dist/chunk-KMXSZRIA.mjs.map +1 -0
- package/dist/{chunk-4S5ZJH3I.mjs → chunk-KNQIEOFP.mjs} +1 -1
- package/dist/{chunk-4S5ZJH3I.mjs.map → chunk-KNQIEOFP.mjs.map} +1 -1
- package/dist/{chunk-YQU7WG7T.mjs → chunk-LZ3UOAQ4.mjs} +3 -3
- package/dist/chunk-LZ3UOAQ4.mjs.map +1 -0
- package/dist/{chunk-NKW5OU2S.mjs → chunk-M2DR4KVB.mjs} +1 -1
- package/dist/chunk-M2DR4KVB.mjs.map +1 -0
- package/dist/{chunk-F2TIBXML.mjs → chunk-NTLVQENP.mjs} +7 -7
- package/dist/chunk-NTLVQENP.mjs.map +1 -0
- package/dist/{chunk-O5OWT5GE.mjs → chunk-PDCIGRCE.mjs} +8 -29
- package/dist/chunk-PDCIGRCE.mjs.map +1 -0
- package/dist/{chunk-YW3REYX6.mjs → chunk-QRKKPCUD.mjs} +2 -4
- package/dist/chunk-QRKKPCUD.mjs.map +1 -0
- package/dist/{chunk-RR6OQGTI.mjs → chunk-RBR32FWA.mjs} +1 -1
- package/dist/chunk-RBR32FWA.mjs.map +1 -0
- package/dist/{chunk-YTOPHPSG.mjs → chunk-T6MTDQZ7.mjs} +1 -1
- package/dist/chunk-T6MTDQZ7.mjs.map +1 -0
- package/dist/{chunk-QJDMIGLU.mjs → chunk-TZLW7PBU.mjs} +9 -12
- package/dist/chunk-TZLW7PBU.mjs.map +1 -0
- package/dist/{chunk-CSGFJU3L.mjs → chunk-U3LUDDT5.mjs} +2 -2
- package/dist/chunk-U3LUDDT5.mjs.map +1 -0
- package/dist/{chunk-LNAIMEB2.mjs → chunk-UEQYKC4W.mjs} +1 -1
- package/dist/chunk-UEQYKC4W.mjs.map +1 -0
- package/dist/{chunk-OD7ZMOVE.mjs → chunk-V55OPCG4.mjs} +2 -2
- package/dist/chunk-V55OPCG4.mjs.map +1 -0
- package/dist/{chunk-WPIA53HF.mjs → chunk-VYECMH73.mjs} +7 -25
- package/dist/chunk-VYECMH73.mjs.map +1 -0
- package/dist/{chunk-BYIG72TT.mjs → chunk-W2ZHOUV6.mjs} +5 -5
- package/dist/chunk-W2ZHOUV6.mjs.map +1 -0
- package/dist/{chunk-UHD44NC5.mjs → chunk-WVRTFPNO.mjs} +10 -20
- package/dist/chunk-WVRTFPNO.mjs.map +1 -0
- package/dist/{chunk-PGGR6HL5.mjs → chunk-ZEHF3AXH.mjs} +6 -9
- package/dist/chunk-ZEHF3AXH.mjs.map +1 -0
- package/dist/{chunk-XHUMROEY.mjs → chunk-ZKRM3DIR.mjs} +1 -1
- package/dist/chunk-ZKRM3DIR.mjs.map +1 -0
- package/dist/{chunk-WLPYYGES.mjs → chunk-ZMNOLW5V.mjs} +6 -16
- package/dist/chunk-ZMNOLW5V.mjs.map +1 -0
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +31 -31
- package/dist/components/base-copilot-textarea/render-element.mjs +1 -1
- package/dist/components/base-copilot-textarea/render-placeholder.mjs +1 -1
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs +2 -2
- package/dist/components/base-copilot-textarea/use-add-branding-css.mjs +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +40 -40
- package/dist/components/hovering-toolbar/hovering-editor-provider.d.ts +1 -1
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +15 -15
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +10 -10
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +11 -11
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs +3 -3
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +11 -11
- package/dist/components/index.mjs +40 -40
- package/dist/components/manual-ui/chip-with-icon.mjs +1 -5
- package/dist/components/manual-ui/chip-with-icon.mjs.map +1 -1
- package/dist/components/source-search-box/source-search-box.mjs +4 -4
- package/dist/components/ui/button.mjs +2 -2
- package/dist/components/ui/card.mjs +46 -42
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/command.mjs +3 -3
- package/dist/components/ui/dialog.mjs +2 -2
- package/dist/components/ui/label.mjs +2 -2
- package/dist/components/ui/separator.mjs +14 -16
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.d.ts +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs +4 -4
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs +2 -2
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs +3 -3
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +8 -8
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.d.ts +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +8 -8
- package/dist/hooks/misc/use-autosize-textarea.mjs +1 -1
- package/dist/index.mjs +40 -40
- package/dist/lib/debouncer.mjs +1 -1
- package/dist/lib/editor-to-text.mjs +1 -1
- package/dist/lib/get-text-around-cursor.mjs +1 -1
- package/dist/lib/retry.mjs +1 -1
- package/dist/lib/slatejs-edits/add-autocompletions.mjs +1 -1
- package/dist/lib/slatejs-edits/clear-autocompletions.mjs +1 -1
- package/dist/lib/slatejs-edits/replace-text.mjs +1 -1
- package/dist/lib/slatejs-edits/with-partial-history.mjs +1 -1
- package/dist/lib/stream-promise-flatten.mjs +1 -1
- package/dist/lib/utils.mjs +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.d.ts +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +5 -5
- package/dist/types/autosuggestions-config/editing-api-config.mjs +1 -1
- package/dist/types/autosuggestions-config/index.mjs +6 -6
- package/dist/types/autosuggestions-config/insertions-api-config.mjs +1 -1
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs +1 -1
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +1 -1
- package/dist/types/base/base-autosuggestions-config.d.ts +55 -2
- package/dist/types/base/base-autosuggestions-config.mjs +1 -1
- package/dist/types/base/editor-autocomplete-state.mjs +2 -2
- package/dist/types/base/index.mjs +1 -1
- package/dist/types/index.mjs +6 -6
- package/package.json +4 -4
- package/src/components/base-copilot-textarea/base-copilot-textarea.tsx +31 -37
- package/src/components/base-copilot-textarea/render-element.tsx +3 -5
- package/src/components/base-copilot-textarea/render-placeholder.tsx +2 -4
- package/src/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.tsx +2 -5
- package/src/components/base-copilot-textarea/use-add-branding-css.tsx +2 -4
- package/src/components/copilot-textarea/copilot-textarea.tsx +12 -19
- package/src/components/hovering-toolbar/hovering-editor-provider.tsx +1 -3
- package/src/components/hovering-toolbar/hovering-toolbar-components.tsx +14 -31
- package/src/components/hovering-toolbar/hovering-toolbar.tsx +4 -16
- package/src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx +11 -25
- package/src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx +9 -8
- package/src/components/manual-ui/chip-with-icon.tsx +3 -12
- package/src/components/source-search-box/source-search-box.tsx +2 -12
- package/src/components/ui/button.tsx +6 -13
- package/src/components/ui/card.tsx +35 -65
- package/src/components/ui/command.tsx +8 -21
- package/src/components/ui/dialog.tsx +8 -29
- package/src/components/ui/label.tsx +3 -8
- package/src/components/ui/separator.tsx +13 -18
- package/src/components/ui/textarea.tsx +3 -4
- package/src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts +13 -27
- package/src/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.tsx +1 -5
- package/src/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.ts +4 -11
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +6 -11
- package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +16 -36
- package/src/hooks/misc/use-autosize-textarea.tsx +1 -4
- package/src/lib/debouncer.ts +1 -3
- package/src/lib/editor-to-text.ts +4 -7
- package/src/lib/get-text-around-cursor.ts +2 -14
- package/src/lib/retry.tsx +1 -1
- package/src/lib/slatejs-edits/add-autocompletions.ts +2 -2
- package/src/lib/slatejs-edits/clear-autocompletions.ts +1 -4
- package/src/lib/slatejs-edits/replace-text.ts +1 -1
- package/src/lib/slatejs-edits/with-partial-history.ts +4 -11
- package/src/lib/stream-promise-flatten.ts +1 -3
- package/src/lib/utils.ts +4 -8
- package/src/types/autosuggestions-config/autosuggestions-config-user-specified.tsx +3 -7
- package/src/types/autosuggestions-config/autosuggestions-config.tsx +9 -21
- package/src/types/autosuggestions-config/editing-api-config.tsx +3 -5
- package/src/types/autosuggestions-config/insertions-api-config.tsx +2 -3
- package/src/types/autosuggestions-config/subtypes/chatlike-api-endpoint.tsx +18 -26
- package/src/types/autosuggestions-config/subtypes/make-system-prompt.ts +1 -4
- package/src/types/autosuggestions-config/suggestions-api-config.tsx +2 -3
- package/src/types/base/autosuggestions-bare-function.ts +2 -2
- package/src/types/base/base-autosuggestions-config.tsx +82 -4
- package/src/types/base/editor-autocomplete-state.ts +1 -1
- package/dist/chunk-2NURR2DX.mjs.map +0 -1
- package/dist/chunk-463BFNUP.mjs.map +0 -1
- package/dist/chunk-5EJ5XOGP.mjs.map +0 -1
- package/dist/chunk-AXN37AHC.mjs.map +0 -1
- package/dist/chunk-BYIG72TT.mjs.map +0 -1
- package/dist/chunk-CSGFJU3L.mjs.map +0 -1
- package/dist/chunk-DYGPLRY3.mjs.map +0 -1
- package/dist/chunk-F2TIBXML.mjs.map +0 -1
- package/dist/chunk-F3MHL6ZY.mjs.map +0 -1
- package/dist/chunk-GCMQHIRF.mjs.map +0 -1
- package/dist/chunk-IXJ2HCOA.mjs.map +0 -1
- package/dist/chunk-JHTAOLEW.mjs.map +0 -1
- package/dist/chunk-KCHYD3EB.mjs.map +0 -1
- package/dist/chunk-KGKLUWKW.mjs.map +0 -1
- package/dist/chunk-LNAIMEB2.mjs.map +0 -1
- package/dist/chunk-MPME5BW2.mjs.map +0 -1
- package/dist/chunk-MRPRZQMN.mjs.map +0 -1
- package/dist/chunk-ND5PXTAW.mjs.map +0 -1
- package/dist/chunk-NKW5OU2S.mjs.map +0 -1
- package/dist/chunk-NZKGYWQV.mjs.map +0 -1
- package/dist/chunk-O5OWT5GE.mjs.map +0 -1
- package/dist/chunk-OD7ZMOVE.mjs.map +0 -1
- package/dist/chunk-OELUUJZY.mjs.map +0 -1
- package/dist/chunk-PGGR6HL5.mjs.map +0 -1
- package/dist/chunk-QJDMIGLU.mjs.map +0 -1
- package/dist/chunk-RR6OQGTI.mjs.map +0 -1
- package/dist/chunk-S6JUGJK2.mjs +0 -13
- package/dist/chunk-S6JUGJK2.mjs.map +0 -1
- package/dist/chunk-SFEGMBSS.mjs.map +0 -1
- package/dist/chunk-UHD44NC5.mjs.map +0 -1
- package/dist/chunk-WLPYYGES.mjs.map +0 -1
- package/dist/chunk-WPIA53HF.mjs.map +0 -1
- package/dist/chunk-XHUMROEY.mjs.map +0 -1
- package/dist/chunk-YQU7WG7T.mjs.map +0 -1
- package/dist/chunk-YTOPHPSG.mjs.map +0 -1
- package/dist/chunk-YW3REYX6.mjs.map +0 -1
- /package/dist/{chunk-NO3EYPQH.mjs.map → chunk-CK7Q3Y5A.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;AAMnB;AAFJ,IAAM,OAAa;AAAA,EACjB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YALL,IAKG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,+BAAC;AAAA,MACC;AAAA,MACA,WAAW,GAAG,4DAA4D,SAAS;AAAA,OAC/E,MACN;AAAA;AAEJ;AACA,KAAK,cAAc;AAEnB,IAAM,aAAmB;AAAA,EACvB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YAhBL,IAgBG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,+BAAC;AAAA,MAAI;AAAA,MAAU,WAAW,GAAG,iCAAiC,SAAS;AAAA,OAAO,MAAO;AAAA;AAEzF;AACA,WAAW,cAAc;AAEzB,IAAM,YAAkB;AAAA,EACtB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YAvBL,IAuBG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,+BAAC;AAAA,MACC;AAAA,MACA,WAAW,GAAG,sDAAsD,SAAS;AAAA,OACzE,MACN;AAAA;AAEJ;AACA,UAAU,cAAc;AAExB,IAAM,kBAAwB,iBAG5B,CAAC,IAAyB,QAAK;AAA9B,eAAE,YApCL,IAoCG,IAAgB,kBAAhB,IAAgB,CAAd;AACH,6BAAC;AAAA,IAAE;AAAA,IAAU,WAAW,GAAG,iCAAiC,SAAS;AAAA,KAAO,MAAO;AAAA,CACpF;AACD,gBAAgB,cAAc;AAE9B,IAAM,cAAoB;AAAA,EACxB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YA1CL,IA0CG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,+BAAC;AAAA,MAAI;AAAA,MAAU,WAAW,GAAG,YAAY,SAAS;AAAA,OAAO,MAAO;AAAA;AAEpE;AACA,YAAY,cAAc;AAE1B,IAAM,aAAmB;AAAA,EACvB,CAAC,IAAyB,QAAK;AAA9B,iBAAE,YAjDL,IAiDG,IAAgB,kBAAhB,IAAgB,CAAd;AACD,+BAAC;AAAA,MAAI;AAAA,MAAU,WAAW,GAAG,8BAA8B,SAAS;AAAA,OAAO,MAAO;AAAA;AAEtF;AACA,WAAW,cAAc","sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"rounded-lg border bg-card text-card-foreground shadow-sm\", className)}\n {...props}\n />\n ),\n);\nCard.displayName = \"Card\";\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex flex-col space-y-1.5 p-6\", className)} {...props} />\n ),\n);\nCardHeader.displayName = \"CardHeader\";\n\nconst CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h3\n ref={ref}\n className={cn(\"text-2xl font-semibold leading-none tracking-tight\", className)}\n {...props}\n />\n ),\n);\nCardTitle.displayName = \"CardTitle\";\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn(\"text-sm text-muted-foreground\", className)} {...props} />\n));\nCardDescription.displayName = \"CardDescription\";\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"p-6 pt-0\", className)} {...props} />\n ),\n);\nCardContent.displayName = \"CardContent\";\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center p-6 pt-0\", className)} {...props} />\n ),\n);\nCardFooter.displayName = \"CardFooter\";\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../../chunk-ZMNOLW5V.mjs';
|
|
2
|
+
import '../../chunk-PDCIGRCE.mjs';
|
|
3
|
+
import '../../chunk-F626GQCD.mjs';
|
|
4
4
|
import '../../chunk-MRXNTQOX.mjs';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
6
6
|
//# sourceMappingURL=command.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-PDCIGRCE.mjs';
|
|
2
|
+
import '../../chunk-F626GQCD.mjs';
|
|
3
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Label } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Label } from '../../chunk-FK2XUDQQ.mjs';
|
|
2
|
+
import '../../chunk-F626GQCD.mjs';
|
|
3
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=label.mjs.map
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { cn } from '../../chunk-
|
|
1
|
+
import { cn } from '../../chunk-F626GQCD.mjs';
|
|
2
2
|
import { __objRest, __spreadValues } from '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var Separator = React.forwardRef(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
);
|
|
7
|
+
var Separator = React.forwardRef((_a, ref) => {
|
|
8
|
+
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
9
|
+
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, __spreadValues({
|
|
10
|
+
ref,
|
|
11
|
+
decorative,
|
|
12
|
+
orientation,
|
|
13
|
+
className: cn(
|
|
14
|
+
"shrink-0 bg-border",
|
|
15
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
16
|
+
className
|
|
17
|
+
)
|
|
18
|
+
}, props));
|
|
19
|
+
});
|
|
22
20
|
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
23
21
|
|
|
24
22
|
export { Separator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":";;;;;;;;;AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":";;;;;;;;;AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AAQlC;AAXF;AAOA,IAAM,YAAkB,iBAGtB,CAAC,IAAwE,QAAK;AAA7E,eAAE,aAAW,cAAc,cAAc,aAAa,KAVzD,IAUG,IAA+D,kBAA/D,IAA+D,CAA7D,aAAW,eAA4B;AAC1C,6BAAoB,yBAAnB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA,gBAAgB,eAAe,mBAAmB;AAAA,MAClD;AAAA,IACF;AAAA,KACI,MACN;AAAA,CACD;AACD,UAAU,cAAiC,wBAAK","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>(({ className, orientation = \"horizontal\", decorative = true, ...props }, ref) => (\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));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;AASjB;AAHN,IAAM,WAAiB;AAAA,EACrB,CAAC,IAAyB,QAAQ;AAAjC,iBAAE,YAPL,IAOG,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","sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport interface TextareaProps 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"]}
|
|
@@ -9,6 +9,6 @@ interface UseAutosuggestionsResult {
|
|
|
9
9
|
onChangeHandler: (newEditorState: EditorAutocompleteState | null) => void;
|
|
10
10
|
onKeyDownHandler: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
11
11
|
}
|
|
12
|
-
declare function useAutosuggestions(debounceTime: number,
|
|
12
|
+
declare function useAutosuggestions(debounceTime: number, shouldAcceptAutosuggestionOnKeyPress: (event: React.KeyboardEvent<HTMLDivElement>) => boolean, autosuggestionFunction: AutosuggestionsBareFunction, insertAutocompleteSuggestion: (suggestion: AutosuggestionState) => void, disableWhenEmpty: boolean, disabled: boolean): UseAutosuggestionsResult;
|
|
13
13
|
|
|
14
14
|
export { UseAutosuggestionsResult, useAutosuggestions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { useAutosuggestions } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { useAutosuggestions } from '../../chunk-WVRTFPNO.mjs';
|
|
2
|
+
import '../../chunk-BLRAOGXD.mjs';
|
|
3
|
+
import '../../chunk-F626GQCD.mjs';
|
|
4
|
+
import '../../chunk-M2DR4KVB.mjs';
|
|
5
5
|
import '../../chunk-MRXNTQOX.mjs';
|
|
6
6
|
//# sourceMappingURL=out.js.map
|
|
7
7
|
//# sourceMappingURL=use-autosuggestions.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { useCopilotTextareaEditor } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { useCopilotTextareaEditor } from '../../chunk-U3LUDDT5.mjs';
|
|
2
|
+
import '../../chunk-2CDXHWVF.mjs';
|
|
3
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=use-copilot-textarea-editor.mjs.map
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { usePopulateCopilotTextareaRef } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { usePopulateCopilotTextareaRef } from '../../chunk-LZ3UOAQ4.mjs';
|
|
2
|
+
import '../../chunk-5UNJXFUO.mjs';
|
|
3
|
+
import '../../chunk-ECR45NSD.mjs';
|
|
4
4
|
import '../../chunk-MRXNTQOX.mjs';
|
|
5
5
|
//# sourceMappingURL=out.js.map
|
|
6
6
|
//# sourceMappingURL=use-populate-copilot-textarea-ref.mjs.map
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts
CHANGED
|
@@ -17,6 +17,6 @@ import '../../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
|
17
17
|
* @param contextCategories - The categories of context strings we want to include. By default, we include the (default) "global" context category.
|
|
18
18
|
* @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
19
19
|
*/
|
|
20
|
-
declare function useMakeStandardAutosuggestionFunction(textareaPurpose: string, contextCategories: string[]
|
|
20
|
+
declare function useMakeStandardAutosuggestionFunction(textareaPurpose: string, contextCategories: string[], apiConfig: SuggestionsApiConfig): AutosuggestionsBareFunction;
|
|
21
21
|
|
|
22
22
|
export { useMakeStandardAutosuggestionFunction };
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { useMakeStandardAutosuggestionFunction } from '../../chunk-
|
|
1
|
+
export { useMakeStandardAutosuggestionFunction } from '../../chunk-7SZDD6XT.mjs';
|
|
2
2
|
import '../../chunk-DE5K76I2.mjs';
|
|
3
3
|
import '../../chunk-5FO6ISW4.mjs';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-TZLW7PBU.mjs';
|
|
5
|
+
import '../../chunk-NTLVQENP.mjs';
|
|
6
|
+
import '../../chunk-K5LNB36H.mjs';
|
|
7
|
+
import '../../chunk-RBR32FWA.mjs';
|
|
8
|
+
import '../../chunk-KDVMG3XF.mjs';
|
|
9
9
|
import '../../chunk-WADHCMPK.mjs';
|
|
10
10
|
import '../../chunk-WJHSY5T6.mjs';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-FP2EKU3L.mjs';
|
|
12
|
+
import '../../chunk-KNQIEOFP.mjs';
|
|
13
13
|
import '../../chunk-MRXNTQOX.mjs';
|
|
14
14
|
//# sourceMappingURL=out.js.map
|
|
15
15
|
//# sourceMappingURL=use-make-standard-autosuggestions-function.mjs.map
|
|
@@ -18,6 +18,6 @@ import '../../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js'
|
|
|
18
18
|
* @param contextCategories - The categories of context strings we want to include. By default, we include the (default) "global" context category.
|
|
19
19
|
* @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
20
20
|
*/
|
|
21
|
-
declare function useMakeStandardInsertionOrEditingFunction(textareaPurpose: string, contextCategories: string[]
|
|
21
|
+
declare function useMakeStandardInsertionOrEditingFunction(textareaPurpose: string, contextCategories: string[], insertionApiConfig: InsertionsApiConfig, editingApiConfig: EditingApiConfig): Generator_InsertionOrEditingSuggestion;
|
|
22
22
|
|
|
23
23
|
export { useMakeStandardInsertionOrEditingFunction };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { useMakeStandardInsertionOrEditingFunction } from '../../chunk-
|
|
1
|
+
export { useMakeStandardInsertionOrEditingFunction } from '../../chunk-VYECMH73.mjs';
|
|
2
2
|
import '../../chunk-DE5K76I2.mjs';
|
|
3
3
|
import '../../chunk-5FO6ISW4.mjs';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-TZLW7PBU.mjs';
|
|
5
|
+
import '../../chunk-NTLVQENP.mjs';
|
|
6
|
+
import '../../chunk-K5LNB36H.mjs';
|
|
7
|
+
import '../../chunk-RBR32FWA.mjs';
|
|
8
|
+
import '../../chunk-KDVMG3XF.mjs';
|
|
9
9
|
import '../../chunk-WADHCMPK.mjs';
|
|
10
10
|
import '../../chunk-WJHSY5T6.mjs';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-FP2EKU3L.mjs';
|
|
12
|
+
import '../../chunk-KNQIEOFP.mjs';
|
|
13
13
|
import '../../chunk-MRXNTQOX.mjs';
|
|
14
14
|
//# sourceMappingURL=out.js.map
|
|
15
15
|
//# sourceMappingURL=use-make-standard-insertion-function.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { use_autosize_textarea_default as default } from '../../chunk-
|
|
1
|
+
export { use_autosize_textarea_default as default } from '../../chunk-3PQ7GSFE.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=use-autosize-textarea.mjs.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import './chunk-MMVDU6DF.mjs';
|
|
2
|
-
export { CopilotTextarea } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
2
|
+
export { CopilotTextarea } from './chunk-7VKOE5UL.mjs';
|
|
3
|
+
import './chunk-7SZDD6XT.mjs';
|
|
4
|
+
import './chunk-VYECMH73.mjs';
|
|
5
5
|
import './chunk-DE5K76I2.mjs';
|
|
6
6
|
import './chunk-5FO6ISW4.mjs';
|
|
7
|
-
export { ChatlikeApiEndpoint } from './chunk-
|
|
8
|
-
export { defaultAutosuggestionsConfig } from './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
7
|
+
export { ChatlikeApiEndpoint } from './chunk-TZLW7PBU.mjs';
|
|
8
|
+
export { defaultAutosuggestionsConfig } from './chunk-NTLVQENP.mjs';
|
|
9
|
+
import './chunk-K5LNB36H.mjs';
|
|
10
|
+
import './chunk-RBR32FWA.mjs';
|
|
11
|
+
import './chunk-KDVMG3XF.mjs';
|
|
12
12
|
import './chunk-WADHCMPK.mjs';
|
|
13
|
-
export { BaseCopilotTextarea } from './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-BYIG72TT.mjs';
|
|
13
|
+
export { BaseCopilotTextarea } from './chunk-74HF6Q3L.mjs';
|
|
14
|
+
import './chunk-U3LUDDT5.mjs';
|
|
15
|
+
import './chunk-2CDXHWVF.mjs';
|
|
16
|
+
import './chunk-LZ3UOAQ4.mjs';
|
|
17
|
+
import './chunk-2C7O2EVM.mjs';
|
|
18
|
+
import './chunk-GQN2HYFJ.mjs';
|
|
19
|
+
import './chunk-5UNJXFUO.mjs';
|
|
20
|
+
import './chunk-WVRTFPNO.mjs';
|
|
21
|
+
import './chunk-BLRAOGXD.mjs';
|
|
22
|
+
import './chunk-V55OPCG4.mjs';
|
|
23
|
+
import './chunk-7LSRNPNI.mjs';
|
|
24
|
+
import './chunk-W2ZHOUV6.mjs';
|
|
26
25
|
import './chunk-L7VVZH4Q.mjs';
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
35
|
-
import './chunk-
|
|
36
|
-
import './chunk-
|
|
37
|
-
import './chunk-
|
|
38
|
-
import './chunk-
|
|
39
|
-
import './chunk-
|
|
26
|
+
import './chunk-CK7Q3Y5A.mjs';
|
|
27
|
+
import './chunk-5IISSXS2.mjs';
|
|
28
|
+
import './chunk-ZEHF3AXH.mjs';
|
|
29
|
+
import './chunk-3PQ7GSFE.mjs';
|
|
30
|
+
import './chunk-KMXSZRIA.mjs';
|
|
31
|
+
import './chunk-FK2XUDQQ.mjs';
|
|
32
|
+
import './chunk-QRKKPCUD.mjs';
|
|
33
|
+
import './chunk-ZKRM3DIR.mjs';
|
|
34
|
+
import './chunk-AUCHS4VR.mjs';
|
|
35
|
+
import './chunk-ZMNOLW5V.mjs';
|
|
36
|
+
import './chunk-PDCIGRCE.mjs';
|
|
37
|
+
import './chunk-2QDCE7PD.mjs';
|
|
38
|
+
import './chunk-F626GQCD.mjs';
|
|
40
39
|
import './chunk-WJHSY5T6.mjs';
|
|
41
|
-
export { defaultBaseAutosuggestionsConfig } from './chunk-
|
|
42
|
-
import './chunk-
|
|
40
|
+
export { defaultBaseAutosuggestionsConfig } from './chunk-FP2EKU3L.mjs';
|
|
41
|
+
import './chunk-UEQYKC4W.mjs';
|
|
42
|
+
import './chunk-EZCKXWQF.mjs';
|
|
43
43
|
import './chunk-IU3WTXLQ.mjs';
|
|
44
44
|
import './chunk-H4VKQGVU.mjs';
|
|
45
|
-
import './chunk-
|
|
46
|
-
import './chunk-
|
|
47
|
-
import './chunk-
|
|
48
|
-
import './chunk-
|
|
45
|
+
import './chunk-M2DR4KVB.mjs';
|
|
46
|
+
import './chunk-T6MTDQZ7.mjs';
|
|
47
|
+
import './chunk-ECR45NSD.mjs';
|
|
48
|
+
import './chunk-KNQIEOFP.mjs';
|
|
49
49
|
import './chunk-MRXNTQOX.mjs';
|
|
50
50
|
//# sourceMappingURL=out.js.map
|
|
51
51
|
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/debouncer.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { extractTextWithNewlines, getFullEditorTextWithNewlines, getTextAroundCollapsedCursor, getTextAroundSelection } from '../chunk-
|
|
1
|
+
export { extractTextWithNewlines, getFullEditorTextWithNewlines, getTextAroundCollapsedCursor, getTextAroundSelection } from '../chunk-ECR45NSD.mjs';
|
|
2
2
|
import '../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=get-text-around-cursor.mjs.map
|
package/dist/lib/retry.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { clearAutocompletionsFromEditor } from '../../chunk-
|
|
1
|
+
export { clearAutocompletionsFromEditor } from '../../chunk-GQN2HYFJ.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=clear-autocompletions.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defaultShouldSave, withPartialHistory } from '../../chunk-
|
|
1
|
+
export { defaultShouldSave, withPartialHistory } from '../../chunk-2CDXHWVF.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=with-partial-history.mjs.map
|
package/dist/lib/utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { arraysAreEqual, cn, fetcher, formatDate, nanoid, nullableCompatibleEqualityCheck } from '../chunk-
|
|
1
|
+
export { arraysAreEqual, cn, fetcher, formatDate, nanoid, nullableCompatibleEqualityCheck } from '../chunk-F626GQCD.mjs';
|
|
2
2
|
import '../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=utils.mjs.map
|
|
@@ -8,7 +8,7 @@ import './subtypes/minimal-chat-gpt-message.js';
|
|
|
8
8
|
import './subtypes/make-system-prompt.js';
|
|
9
9
|
|
|
10
10
|
interface AutosuggestionsConfig extends Omit<BaseAutosuggestionsConfig, "apiConfig"> {
|
|
11
|
-
|
|
11
|
+
contextCategories: string[];
|
|
12
12
|
chatApiConfigs: {
|
|
13
13
|
suggestionsApiConfig: SuggestionsApiConfig;
|
|
14
14
|
insertionApiConfig: InsertionsApiConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { defaultAutosuggestionsConfig } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { defaultAutosuggestionsConfig } from '../../chunk-NTLVQENP.mjs';
|
|
2
|
+
import '../../chunk-K5LNB36H.mjs';
|
|
3
|
+
import '../../chunk-RBR32FWA.mjs';
|
|
4
|
+
import '../../chunk-KDVMG3XF.mjs';
|
|
5
5
|
import '../../chunk-WJHSY5T6.mjs';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-FP2EKU3L.mjs';
|
|
7
7
|
import '../../chunk-MRXNTQOX.mjs';
|
|
8
8
|
//# sourceMappingURL=out.js.map
|
|
9
9
|
//# sourceMappingURL=autosuggestions-config.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defaultEditingApiConfig, defaultEditingFewShotMessages, defaultEditingMakeSystemPrompt } from '../../chunk-
|
|
1
|
+
export { defaultEditingApiConfig, defaultEditingFewShotMessages, defaultEditingMakeSystemPrompt } from '../../chunk-K5LNB36H.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=editing-api-config.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../../chunk-5FO6ISW4.mjs';
|
|
2
|
-
export { ChatlikeApiEndpoint } from '../../chunk-
|
|
3
|
-
export { defaultAutosuggestionsConfig } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
2
|
+
export { ChatlikeApiEndpoint } from '../../chunk-TZLW7PBU.mjs';
|
|
3
|
+
export { defaultAutosuggestionsConfig } from '../../chunk-NTLVQENP.mjs';
|
|
4
|
+
import '../../chunk-K5LNB36H.mjs';
|
|
5
|
+
import '../../chunk-RBR32FWA.mjs';
|
|
6
|
+
import '../../chunk-KDVMG3XF.mjs';
|
|
7
7
|
import '../../chunk-WJHSY5T6.mjs';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-FP2EKU3L.mjs';
|
|
9
9
|
import '../../chunk-MRXNTQOX.mjs';
|
|
10
10
|
//# sourceMappingURL=out.js.map
|
|
11
11
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defaultInsertionsApiConfig, defaultInsertionsFewShotMessages, defaultInsertionsMakeSystemPrompt } from '../../chunk-
|
|
1
|
+
export { defaultInsertionsApiConfig, defaultInsertionsFewShotMessages, defaultInsertionsMakeSystemPrompt } from '../../chunk-RBR32FWA.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=insertions-api-config.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defaultSuggestionsApiConfig, defaultSuggestionsFewShotMessages, defaultSuggestionsMakeSystemPrompt } from '../../chunk-
|
|
1
|
+
export { defaultSuggestionsApiConfig, defaultSuggestionsFewShotMessages, defaultSuggestionsMakeSystemPrompt } from '../../chunk-KDVMG3XF.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=suggestions-api-config.mjs.map
|
|
@@ -1,16 +1,69 @@
|
|
|
1
1
|
import { BaseCopilotTextareaApiConfig } from './autosuggestions-bare-function.js';
|
|
2
2
|
import '@copilotkit/react-core';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @interface BaseAutosuggestionsConfig
|
|
6
|
+
*
|
|
7
|
+
* @property {string} textareaPurpose - The purpose of the textarea. This is used to guide the autosuggestions.
|
|
8
|
+
*
|
|
9
|
+
* @property {string[]} contextCategories - The categories of context to consider when providing autosuggestions.
|
|
10
|
+
*
|
|
11
|
+
* @property {number} debounceTime - The amount of time (in milliseconds) to wait before triggering autosuggestions after the user has stopped typing.
|
|
12
|
+
*
|
|
13
|
+
* @property {BaseCopilotTextareaApiConfig} apiConfig - The configuration for the API that provides the autosuggestions.
|
|
14
|
+
*
|
|
15
|
+
* @property {boolean} disableWhenEmpty - Whether to disable autosuggestions when the textarea is empty.
|
|
16
|
+
*
|
|
17
|
+
* @property {boolean} disabled - Whether to disable autosuggestions entirely.
|
|
18
|
+
*
|
|
19
|
+
* @property {boolean} temporarilyDisableWhenMovingCursorWithoutChangingText - Whether to temporarily disable autosuggestions when the user moves the cursor without changing the text.
|
|
20
|
+
*
|
|
21
|
+
* @property {(event: React.KeyboardEvent<HTMLDivElement>) => boolean} shouldAcceptAutosuggestionOnKeyPress - A function that determines whether to accept the current autosuggestion based on a key press event. By default, the Tab key is used to accept the autosuggestion. Example code:
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const defaultShouldAcceptAutosuggestionOnKeyPress = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
|
25
|
+
* // if tab, accept the autosuggestion
|
|
26
|
+
* if (event.key === "Tab") {
|
|
27
|
+
* return true;
|
|
28
|
+
* }
|
|
29
|
+
* return false;
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @property {(event: React.KeyboardEvent<HTMLDivElement>) => boolean} shouldToggleHoveringEditorOnKeyPress - A function that determines whether to toggle the hovering editor based on a key press event. By default, the Command + K key combination is used to toggle the hovering editor. Example code:
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const defaultShouldToggleHoveringEditorOnKeyPress = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
|
37
|
+
* // if command-k, toggle the hovering editor
|
|
38
|
+
* if (event.key === "k" && event.metaKey) {
|
|
39
|
+
* return true;
|
|
40
|
+
* }
|
|
41
|
+
* return false;
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
4
45
|
interface BaseAutosuggestionsConfig {
|
|
5
46
|
textareaPurpose: string;
|
|
6
47
|
contextCategories: string[];
|
|
7
48
|
debounceTime: number;
|
|
8
|
-
|
|
49
|
+
apiConfig: BaseCopilotTextareaApiConfig;
|
|
9
50
|
disableWhenEmpty: boolean;
|
|
10
51
|
disabled: boolean;
|
|
11
52
|
temporarilyDisableWhenMovingCursorWithoutChangingText: boolean;
|
|
12
|
-
|
|
53
|
+
shouldAcceptAutosuggestionOnKeyPress: (event: React.KeyboardEvent<HTMLDivElement>) => boolean;
|
|
54
|
+
shouldToggleHoveringEditorOnKeyPress: (event: React.KeyboardEvent<HTMLDivElement>) => boolean;
|
|
13
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Default configuration for the BaseAutosuggestions.
|
|
58
|
+
*
|
|
59
|
+
* @property {number} debounceTime - The amount of time to wait before triggering the autosuggestions API call.
|
|
60
|
+
* @property {string[]} contextCategories - The categories to use for context when making the autosuggestions API call.
|
|
61
|
+
* @property {boolean} disableWhenEmpty - Whether to disable the autosuggestions when the textarea is empty.
|
|
62
|
+
* @property {boolean} disabled - Whether to disable the autosuggestions feature entirely.
|
|
63
|
+
* @property {boolean} temporarilyDisableWhenMovingCursorWithoutChangingText - Whether to temporarily disable the autosuggestions when the cursor is moved without changing the text.
|
|
64
|
+
* @property {(event: React.KeyboardEvent<HTMLDivElement>) => boolean} shouldToggleHoveringEditorOnKeyPress - A function that determines whether to toggle the hovering editor based on a key press event.
|
|
65
|
+
* @property {(event: React.KeyboardEvent<HTMLDivElement>) => boolean} shouldAcceptAutosuggestionOnKeyPress - A function that determines whether to accept the autosuggestion based on a key press event.
|
|
66
|
+
*/
|
|
14
67
|
declare const defaultBaseAutosuggestionsConfig: Omit<BaseAutosuggestionsConfig, "textareaPurpose" | "apiConfig">;
|
|
15
68
|
|
|
16
69
|
export { BaseAutosuggestionsConfig, defaultBaseAutosuggestionsConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { defaultBaseAutosuggestionsConfig } from '../../chunk-
|
|
1
|
+
export { defaultBaseAutosuggestionsConfig } from '../../chunk-FP2EKU3L.mjs';
|
|
2
2
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
3
|
//# sourceMappingURL=out.js.map
|
|
4
4
|
//# sourceMappingURL=base-autosuggestions-config.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { areEqual_autocompleteState } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { areEqual_autocompleteState } from '../../chunk-BLRAOGXD.mjs';
|
|
2
|
+
import '../../chunk-F626GQCD.mjs';
|
|
3
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=editor-autocomplete-state.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../chunk-WJHSY5T6.mjs';
|
|
2
|
-
export { defaultBaseAutosuggestionsConfig } from '../../chunk-
|
|
2
|
+
export { defaultBaseAutosuggestionsConfig } from '../../chunk-FP2EKU3L.mjs';
|
|
3
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
4
4
|
//# sourceMappingURL=out.js.map
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '../chunk-DE5K76I2.mjs';
|
|
2
2
|
import '../chunk-5FO6ISW4.mjs';
|
|
3
|
-
export { ChatlikeApiEndpoint } from '../chunk-
|
|
4
|
-
export { defaultAutosuggestionsConfig } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
3
|
+
export { ChatlikeApiEndpoint } from '../chunk-TZLW7PBU.mjs';
|
|
4
|
+
export { defaultAutosuggestionsConfig } from '../chunk-NTLVQENP.mjs';
|
|
5
|
+
import '../chunk-K5LNB36H.mjs';
|
|
6
|
+
import '../chunk-RBR32FWA.mjs';
|
|
7
|
+
import '../chunk-KDVMG3XF.mjs';
|
|
8
8
|
import '../chunk-WADHCMPK.mjs';
|
|
9
9
|
import '../chunk-WJHSY5T6.mjs';
|
|
10
|
-
export { defaultBaseAutosuggestionsConfig } from '../chunk-
|
|
10
|
+
export { defaultBaseAutosuggestionsConfig } from '../chunk-FP2EKU3L.mjs';
|
|
11
11
|
import '../chunk-MRXNTQOX.mjs';
|
|
12
12
|
//# sourceMappingURL=out.js.map
|
|
13
13
|
//# sourceMappingURL=index.mjs.map
|