@copilotkit/react-textarea 0.18.0 → 0.19.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 +303 -189
- package/CHANGELOG.md +19 -0
- package/dist/chunk-2NURR2DX.mjs +47 -0
- package/dist/chunk-2NURR2DX.mjs.map +1 -0
- package/dist/chunk-3YJ63D5D.mjs +106 -0
- package/dist/chunk-3YJ63D5D.mjs.map +1 -0
- package/dist/chunk-4S5ZJH3I.mjs +18 -0
- package/dist/chunk-4S5ZJH3I.mjs.map +1 -0
- package/dist/chunk-55EGOC5T.mjs +87 -0
- package/dist/chunk-55EGOC5T.mjs.map +1 -0
- package/dist/{chunk-3A2CNIG5.mjs → chunk-5ARCOTW3.mjs} +8 -5
- package/dist/chunk-5ARCOTW3.mjs.map +1 -0
- package/dist/chunk-5EJ5XOGP.mjs +22 -0
- package/dist/chunk-5EJ5XOGP.mjs.map +1 -0
- package/dist/chunk-5FO6ISW4.mjs +3 -0
- package/dist/{chunk-5GGCWNTT.mjs → chunk-5SL5L4VS.mjs} +67 -29
- package/dist/chunk-5SL5L4VS.mjs.map +1 -0
- package/dist/{chunk-JWN2VEE3.mjs → chunk-A2RRLD23.mjs} +13 -12
- package/dist/chunk-A2RRLD23.mjs.map +1 -0
- package/dist/chunk-CDB7HFCY.mjs +65 -0
- package/dist/chunk-CDB7HFCY.mjs.map +1 -0
- package/dist/{chunk-MFJNLKRC.mjs → chunk-D7SEV5PR.mjs} +4 -3
- package/dist/chunk-D7SEV5PR.mjs.map +1 -0
- package/dist/chunk-HAFHLU4N.mjs +55 -0
- package/dist/chunk-HAFHLU4N.mjs.map +1 -0
- package/dist/chunk-ITZHK3YV.mjs +477 -0
- package/dist/chunk-ITZHK3YV.mjs.map +1 -0
- package/dist/{chunk-3UQM3NLM.mjs → chunk-IXJ2HCOA.mjs} +42 -7
- package/dist/chunk-IXJ2HCOA.mjs.map +1 -0
- package/dist/{chunk-UW3ITU2Y.mjs → chunk-JAFCXEPU.mjs} +1 -1
- package/dist/chunk-JAFCXEPU.mjs.map +1 -0
- package/dist/chunk-KDFCAQGV.mjs +44 -0
- package/dist/chunk-KDFCAQGV.mjs.map +1 -0
- package/dist/chunk-L7VVZH4Q.mjs +3 -0
- package/dist/chunk-ND5PXTAW.mjs +17 -0
- package/dist/chunk-ND5PXTAW.mjs.map +1 -0
- package/dist/chunk-O5OWT5GE.mjs +114 -0
- package/dist/chunk-O5OWT5GE.mjs.map +1 -0
- package/dist/chunk-OD7ZMOVE.mjs +45 -0
- package/dist/chunk-OD7ZMOVE.mjs.map +1 -0
- package/dist/chunk-OM5WQQOU.mjs +47 -0
- package/dist/chunk-OM5WQQOU.mjs.map +1 -0
- package/dist/chunk-QL2GYGG5.mjs +19 -0
- package/dist/chunk-QL2GYGG5.mjs.map +1 -0
- package/dist/chunk-RPDVSCLO.mjs +107 -0
- package/dist/chunk-RPDVSCLO.mjs.map +1 -0
- package/dist/{chunk-HZGSG7ST.mjs → chunk-UHD44NC5.mjs} +10 -5
- package/dist/chunk-UHD44NC5.mjs.map +1 -0
- package/dist/chunk-VBIJPE3H.mjs +108 -0
- package/dist/chunk-VBIJPE3H.mjs.map +1 -0
- package/dist/chunk-XDT7BF3V.mjs +81 -0
- package/dist/chunk-XDT7BF3V.mjs.map +1 -0
- package/dist/chunk-XHUMROEY.mjs +91 -0
- package/dist/chunk-XHUMROEY.mjs.map +1 -0
- package/dist/{chunk-LWVCQYWV.mjs → chunk-YQU7WG7T.mjs} +2 -2
- package/dist/chunk-YTOPHPSG.mjs +45 -0
- package/dist/chunk-YTOPHPSG.mjs.map +1 -0
- package/dist/chunk-YW3REYX6.mjs +23 -0
- package/dist/chunk-YW3REYX6.mjs.map +1 -0
- package/dist/components/base-copilot-textarea/base-copilot-textarea.d.ts +3 -5
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +21 -7
- 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 +5 -0
- package/dist/components/copilot-textarea/copilot-textarea.d.ts +13 -10
- package/dist/components/copilot-textarea/copilot-textarea.mjs +31 -12
- package/dist/components/hovering-toolbar/hovering-editor-provider.d.ts +13 -0
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs +4 -0
- package/dist/components/hovering-toolbar/hovering-toolbar-components.d.ts +18 -0
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs +4 -0
- package/dist/components/hovering-toolbar/hovering-toolbar.d.ts +8 -0
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +17 -0
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs.map +1 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.d.ts +12 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +12 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs.map +1 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.d.ts +3 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +13 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs.map +1 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-pre-suggestion.d.ts +16 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-pre-suggestion.mjs +5 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-pre-suggestion.mjs.map +1 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.d.ts +37 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.mjs +10 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.mjs.map +1 -0
- package/dist/components/index.d.ts +9 -4
- package/dist/components/index.mjs +31 -12
- package/dist/components/manual-ui/chip-with-icon.d.ts +10 -0
- package/dist/components/manual-ui/chip-with-icon.mjs +29 -0
- package/dist/components/manual-ui/chip-with-icon.mjs.map +1 -0
- package/dist/components/source-search-box/source-search-box.d.ts +17 -0
- package/dist/components/source-search-box/source-search-box.mjs +10 -0
- package/dist/components/source-search-box/source-search-box.mjs.map +1 -0
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.mjs +5 -0
- package/dist/components/ui/button.mjs.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.mjs +63 -0
- package/dist/components/ui/card.mjs.map +1 -0
- package/dist/components/ui/command.d.ts +48 -0
- package/dist/components/ui/command.mjs +6 -0
- package/dist/components/ui/command.mjs.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.mjs +5 -0
- package/dist/components/ui/dialog.mjs.map +1 -0
- package/dist/components/ui/label.d.ts +8 -0
- package/dist/components/ui/label.mjs +5 -0
- package/dist/components/ui/label.mjs.map +1 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.mjs +26 -0
- package/dist/components/ui/separator.mjs.map +1 -0
- package/dist/components/ui/textarea.d.ts +7 -0
- package/dist/components/ui/textarea.mjs +22 -0
- package/dist/components/ui/textarea.mjs.map +1 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs +2 -2
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.d.ts +2 -2
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs +2 -2
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts +5 -7
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +2 -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 +5 -0
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map +1 -0
- package/dist/hooks/misc/use-autosize-textarea.d.ts +5 -0
- package/dist/hooks/misc/use-autosize-textarea.mjs +4 -0
- package/dist/hooks/misc/use-autosize-textarea.mjs.map +1 -0
- package/dist/index.css +674 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.mjs +31 -12
- package/dist/lib/editor-to-text.mjs +1 -42
- package/dist/lib/editor-to-text.mjs.map +1 -1
- package/dist/lib/get-text-around-cursor.d.ts +10 -3
- package/dist/lib/get-text-around-cursor.mjs +1 -1
- package/dist/lib/retry.d.ts +3 -0
- package/dist/lib/retry.mjs +4 -0
- package/dist/lib/retry.mjs.map +1 -0
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.d.ts +25 -0
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs +3 -0
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs.map +1 -0
- package/dist/types/autosuggestions-config/autosuggestions-config.d.ts +20 -0
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +10 -0
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs.map +1 -0
- package/dist/types/autosuggestions-config/editing-api-config.d.ts +17 -0
- package/dist/types/autosuggestions-config/editing-api-config.mjs +5 -0
- package/dist/types/autosuggestions-config/editing-api-config.mjs.map +1 -0
- package/dist/types/autosuggestions-config/index.d.ts +10 -0
- package/dist/types/autosuggestions-config/index.mjs +11 -0
- package/dist/types/autosuggestions-config/index.mjs.map +1 -0
- package/dist/types/autosuggestions-config/insertions-api-config.d.ts +17 -0
- package/dist/types/autosuggestions-config/insertions-api-config.mjs +5 -0
- package/dist/types/autosuggestions-config/insertions-api-config.mjs.map +1 -0
- package/dist/types/{standard-autosuggestions → autosuggestions-config/subtypes}/chatlike-api-endpoint.d.ts +7 -4
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs +4 -0
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs.map +1 -0
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.d.ts +3 -0
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs +3 -0
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs.map +1 -0
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs.map +1 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +17 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +5 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs.map +1 -0
- package/dist/types/base/autosuggestions-bare-function.d.ts +16 -2
- package/dist/types/base/base-autosuggestions-config.d.ts +5 -1
- package/dist/types/base/base-autosuggestions-config.mjs +1 -1
- package/dist/types/base/base-copilot-textarea-props.d.ts +3 -1
- package/dist/types/base/editor-autocomplete-state.mjs +1 -1
- package/dist/types/base/index.mjs +1 -1
- package/dist/types/index.d.ts +8 -3
- package/dist/types/index.mjs +7 -4
- package/package.json +19 -5
- package/src/components/base-copilot-textarea/base-copilot-textarea.tsx +64 -13
- package/src/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.tsx +61 -0
- package/src/components/copilot-textarea/copilot-textarea.tsx +29 -17
- package/src/components/hovering-toolbar/hovering-editor-provider.tsx +29 -0
- package/src/components/hovering-toolbar/hovering-toolbar-components.tsx +115 -0
- package/src/components/hovering-toolbar/hovering-toolbar.tsx +156 -0
- package/src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx +73 -0
- package/src/components/hovering-toolbar/text-insertion-prompt-box/index.ts +2 -0
- package/src/components/hovering-toolbar/text-insertion-prompt-box/mode-pre-suggestion.tsx +83 -0
- package/src/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.tsx +410 -0
- package/src/components/manual-ui/chip-with-icon.tsx +28 -0
- package/src/components/source-search-box/source-search-box.tsx +133 -0
- package/src/components/ui/button.tsx +56 -0
- package/src/components/ui/card.tsx +86 -0
- package/src/components/ui/command.tsx +155 -0
- package/src/components/ui/dialog.tsx +123 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/separator.tsx +31 -0
- package/src/components/ui/textarea.tsx +24 -0
- package/src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts +10 -3
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +29 -44
- package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +150 -0
- package/src/hooks/misc/use-autosize-textarea.tsx +21 -0
- package/src/lib/get-text-around-cursor.ts +71 -6
- package/src/lib/retry.tsx +23 -0
- package/src/styles.css +2 -0
- package/src/types/autosuggestions-config/autosuggestions-config-user-specified.tsx +27 -0
- package/src/types/autosuggestions-config/autosuggestions-config.tsx +43 -0
- package/src/types/autosuggestions-config/editing-api-config.tsx +102 -0
- package/src/types/autosuggestions-config/index.ts +11 -0
- package/src/types/autosuggestions-config/insertions-api-config.tsx +95 -0
- package/src/types/{standard-autosuggestions → autosuggestions-config/subtypes}/chatlike-api-endpoint.tsx +19 -7
- package/src/types/autosuggestions-config/subtypes/make-system-prompt.ts +4 -0
- package/src/types/{standard-autosuggestions/autosuggestions-config.tsx → autosuggestions-config/suggestions-api-config.tsx} +12 -23
- package/src/types/base/autosuggestions-bare-function.ts +24 -2
- package/src/types/base/base-autosuggestions-config.tsx +7 -2
- package/src/types/base/base-copilot-textarea-props.tsx +3 -1
- package/src/types/base/editor-autocomplete-state.ts +1 -0
- package/src/types/index.ts +1 -1
- package/tailwind.config.js +2 -0
- package/dist/chunk-3A2CNIG5.mjs.map +0 -1
- package/dist/chunk-3UQM3NLM.mjs.map +0 -1
- package/dist/chunk-5GGCWNTT.mjs.map +0 -1
- package/dist/chunk-BLRD23HM.mjs +0 -32
- package/dist/chunk-BLRD23HM.mjs.map +0 -1
- package/dist/chunk-BTAUKCBN.mjs +0 -60
- package/dist/chunk-BTAUKCBN.mjs.map +0 -1
- package/dist/chunk-HZGSG7ST.mjs.map +0 -1
- package/dist/chunk-JWN2VEE3.mjs.map +0 -1
- package/dist/chunk-MFJNLKRC.mjs.map +0 -1
- package/dist/chunk-SL4J5HMW.mjs +0 -3
- package/dist/chunk-UW3ITU2Y.mjs.map +0 -1
- package/dist/types/standard-autosuggestions/autosuggestions-config.d.ts +0 -19
- package/dist/types/standard-autosuggestions/autosuggestions-config.mjs +0 -6
- package/dist/types/standard-autosuggestions/chatlike-api-endpoint.mjs +0 -4
- package/dist/types/standard-autosuggestions/index.d.ts +0 -4
- package/dist/types/standard-autosuggestions/index.mjs +0 -8
- package/src/types/standard-autosuggestions/index.ts +0 -14
- /package/dist/{chunk-SL4J5HMW.mjs.map → chunk-5FO6ISW4.mjs.map} +0 -0
- /package/dist/{types/standard-autosuggestions/autosuggestions-config.mjs.map → chunk-L7VVZH4Q.mjs.map} +0 -0
- /package/dist/{chunk-LWVCQYWV.mjs.map → chunk-YQU7WG7T.mjs.map} +0 -0
- /package/dist/{types/standard-autosuggestions/chatlike-api-endpoint.mjs.map → components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs.map} +0 -0
- /package/dist/{types/standard-autosuggestions/index.mjs.map → components/hovering-toolbar/hovering-editor-provider.mjs.map} +0 -0
- /package/dist/{types/standard-autosuggestions/minimal-chat-gpt-message.mjs.map → components/hovering-toolbar/hovering-toolbar-components.mjs.map} +0 -0
- /package/dist/types/{standard-autosuggestions → autosuggestions-config/subtypes}/minimal-chat-gpt-message.d.ts +0 -0
- /package/dist/types/{standard-autosuggestions → autosuggestions-config/subtypes}/minimal-chat-gpt-message.mjs +0 -0
- /package/src/types/{standard-autosuggestions → autosuggestions-config/subtypes}/minimal-chat-gpt-message.tsx +0 -0
package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-pre-suggestion.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EditingEditorState, Generator_InsertionOrEditingSuggestion } from '../../../types/base/autosuggestions-bare-function.js';
|
|
2
|
+
import { FilePointer } from '../../source-search-box/source-search-box.js';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
|
|
5
|
+
type State_SuggestionAppearing = {
|
|
6
|
+
type: "suggestion-appearing";
|
|
7
|
+
initialSuggestion: SuggestionSnapshot;
|
|
8
|
+
};
|
|
9
|
+
type SuggestionSnapshot = {
|
|
10
|
+
adjustmentPrompt: string;
|
|
11
|
+
generatingSuggestion: ReadableStream<string>;
|
|
12
|
+
editorState: EditingEditorState;
|
|
13
|
+
};
|
|
14
|
+
interface SuggestionAppearingProps {
|
|
15
|
+
state: State_SuggestionAppearing;
|
|
16
|
+
performInsertion: (insertedText: string) => void;
|
|
17
|
+
goBack: () => void;
|
|
18
|
+
insertionOrEditingFunction: Generator_InsertionOrEditingSuggestion;
|
|
19
|
+
onGeneratedText: (generatedText: ReadableStream<string>) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const SuggestionAppearing: React__default.FC<SuggestionAppearingProps>;
|
|
22
|
+
interface IncludedFilesPreviewProps {
|
|
23
|
+
includedFiles: FilePointer[];
|
|
24
|
+
setIncludedFiles: React__default.Dispatch<React__default.SetStateAction<FilePointer[]>>;
|
|
25
|
+
}
|
|
26
|
+
declare const IncludedFilesPreview: React__default.FC<IncludedFilesPreviewProps>;
|
|
27
|
+
interface FileChipPreviewProp {
|
|
28
|
+
filePointer: FilePointer;
|
|
29
|
+
onDelete: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare const FileChipPreview: React__default.FC<FileChipPreviewProp>;
|
|
32
|
+
declare function IconForFilePointer({ filePointer, className, }: {
|
|
33
|
+
filePointer: FilePointer;
|
|
34
|
+
className: string;
|
|
35
|
+
}): JSX.Element;
|
|
36
|
+
|
|
37
|
+
export { FileChipPreview, FileChipPreviewProp, IconForFilePointer, IncludedFilesPreview, State_SuggestionAppearing, SuggestionAppearing, SuggestionAppearingProps };
|
package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { FileChipPreview, IconForFilePointer, IncludedFilesPreview, SuggestionAppearing } from '../../../chunk-ITZHK3YV.mjs';
|
|
2
|
+
import '../../../chunk-ND5PXTAW.mjs';
|
|
3
|
+
import '../../../chunk-3YJ63D5D.mjs';
|
|
4
|
+
import '../../../chunk-O5OWT5GE.mjs';
|
|
5
|
+
import '../../../chunk-5EJ5XOGP.mjs';
|
|
6
|
+
import '../../../chunk-2NURR2DX.mjs';
|
|
7
|
+
import '../../../chunk-KGKLUWKW.mjs';
|
|
8
|
+
import '../../../chunk-MRXNTQOX.mjs';
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
10
|
+
//# sourceMappingURL=mode-suggestion-appearing.mjs.map
|
package/dist/components/hovering-toolbar/text-insertion-prompt-box/mode-suggestion-appearing.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export { BaseCopilotTextarea } from './base-copilot-textarea/base-copilot-textarea.js';
|
|
2
2
|
export { CopilotTextarea, CopilotTextareaProps } from './copilot-textarea/copilot-textarea.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../types/base/autosuggestions-bare-function.js';
|
|
5
4
|
import '../types/base/base-copilot-textarea-props.js';
|
|
6
5
|
import '../types/base/base-autosuggestions-config.js';
|
|
6
|
+
import '../types/base/autosuggestions-bare-function.js';
|
|
7
7
|
import '../types/html-copilot-textarea-element.js';
|
|
8
|
-
import '../types/
|
|
9
|
-
import '../types/
|
|
10
|
-
import '../types/
|
|
8
|
+
import '../types/autosuggestions-config/autosuggestions-config-user-specified.js';
|
|
9
|
+
import '../types/autosuggestions-config/autosuggestions-config.js';
|
|
10
|
+
import '../types/autosuggestions-config/suggestions-api-config.js';
|
|
11
|
+
import '../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js';
|
|
12
|
+
import '../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
13
|
+
import '../types/autosuggestions-config/subtypes/chatlike-api-endpoint.js';
|
|
14
|
+
import '../types/autosuggestions-config/insertions-api-config.js';
|
|
15
|
+
import '../types/autosuggestions-config/editing-api-config.js';
|
|
@@ -1,26 +1,45 @@
|
|
|
1
1
|
import '../chunk-MMVDU6DF.mjs';
|
|
2
|
-
export { CopilotTextarea } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
2
|
+
export { CopilotTextarea } from '../chunk-KDFCAQGV.mjs';
|
|
3
|
+
import '../chunk-HAFHLU4N.mjs';
|
|
4
|
+
import '../chunk-VBIJPE3H.mjs';
|
|
5
|
+
import '../chunk-5FO6ISW4.mjs';
|
|
6
|
+
import '../chunk-QL2GYGG5.mjs';
|
|
7
|
+
import '../chunk-55EGOC5T.mjs';
|
|
8
|
+
import '../chunk-XDT7BF3V.mjs';
|
|
9
|
+
import '../chunk-A2RRLD23.mjs';
|
|
10
|
+
import '../chunk-5ARCOTW3.mjs';
|
|
11
|
+
export { BaseCopilotTextarea } from '../chunk-5SL5L4VS.mjs';
|
|
12
|
+
import '../chunk-UHD44NC5.mjs';
|
|
13
|
+
import '../chunk-JAFCXEPU.mjs';
|
|
10
14
|
import '../chunk-CSGFJU3L.mjs';
|
|
11
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-YQU7WG7T.mjs';
|
|
12
16
|
import '../chunk-WJYQWL4I.mjs';
|
|
13
17
|
import '../chunk-F3MHL6ZY.mjs';
|
|
14
18
|
import '../chunk-RQHOUUXQ.mjs';
|
|
15
19
|
import '../chunk-KCHYD3EB.mjs';
|
|
20
|
+
import '../chunk-OD7ZMOVE.mjs';
|
|
21
|
+
import '../chunk-MPME5BW2.mjs';
|
|
22
|
+
import '../chunk-RPDVSCLO.mjs';
|
|
23
|
+
import '../chunk-L7VVZH4Q.mjs';
|
|
24
|
+
import '../chunk-OM5WQQOU.mjs';
|
|
25
|
+
import '../chunk-CDB7HFCY.mjs';
|
|
26
|
+
import '../chunk-YW3REYX6.mjs';
|
|
27
|
+
import '../chunk-XHUMROEY.mjs';
|
|
28
|
+
import '../chunk-ITZHK3YV.mjs';
|
|
29
|
+
import '../chunk-ND5PXTAW.mjs';
|
|
30
|
+
import '../chunk-3YJ63D5D.mjs';
|
|
31
|
+
import '../chunk-O5OWT5GE.mjs';
|
|
32
|
+
import '../chunk-5EJ5XOGP.mjs';
|
|
33
|
+
import '../chunk-2NURR2DX.mjs';
|
|
16
34
|
import '../chunk-KGKLUWKW.mjs';
|
|
17
35
|
import '../chunk-WJHSY5T6.mjs';
|
|
18
|
-
import '../chunk-
|
|
36
|
+
import '../chunk-D7SEV5PR.mjs';
|
|
19
37
|
import '../chunk-LNAIMEB2.mjs';
|
|
20
38
|
import '../chunk-OELUUJZY.mjs';
|
|
21
|
-
import '../chunk-MPME5BW2.mjs';
|
|
22
39
|
import '../chunk-NKW5OU2S.mjs';
|
|
23
|
-
import '../chunk-
|
|
40
|
+
import '../chunk-YTOPHPSG.mjs';
|
|
41
|
+
import '../chunk-IXJ2HCOA.mjs';
|
|
42
|
+
import '../chunk-4S5ZJH3I.mjs';
|
|
24
43
|
import '../chunk-MRXNTQOX.mjs';
|
|
25
44
|
//# sourceMappingURL=out.js.map
|
|
26
45
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var ChipWithIcon = ({
|
|
5
|
+
label,
|
|
6
|
+
onDelete,
|
|
7
|
+
iconUrl
|
|
8
|
+
}) => {
|
|
9
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
10
|
+
className: "inline-flex items-center px-3 py-1 rounded-full bg-slate-200 text-sm font-medium text-white",
|
|
11
|
+
children: [
|
|
12
|
+
iconUrl && /* @__PURE__ */ jsx("img", {
|
|
13
|
+
src: iconUrl,
|
|
14
|
+
alt: "icon",
|
|
15
|
+
className: "w-4 h-4 rounded-full mr-2"
|
|
16
|
+
}),
|
|
17
|
+
label,
|
|
18
|
+
/* @__PURE__ */ jsx("button", {
|
|
19
|
+
className: "ml-2 text-white hover:text-gray-200 focus:outline-none",
|
|
20
|
+
onClick: onDelete,
|
|
21
|
+
children: "x"
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { ChipWithIcon };
|
|
28
|
+
//# sourceMappingURL=out.js.map
|
|
29
|
+
//# sourceMappingURL=chip-with-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/manual-ui/chip-with-icon.tsx"],"names":[],"mappings":";;;AAcI,SAEI,KAFJ;AANG,IAAM,eAA4C,CAAC;AAAA,EACxD;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,SACE,qBAAC;AAAA,IAAK,WAAU;AAAA,IACb;AAAA,iBACC,oBAAC;AAAA,QAAI,KAAK;AAAA,QAAS,KAAI;AAAA,QAAO,WAAU;AAAA,OAA4B;AAAA,MAErE;AAAA,MACD,oBAAC;AAAA,QACC,WAAU;AAAA,QACV,SAAS;AAAA,QACV;AAAA,OAED;AAAA;AAAA,GACF;AAEJ","sourcesContent":["import React from \"react\";\n\nexport interface ChipWithIconProps {\n label: string;\n onDelete: () => void;\n iconUrl: string;\n}\n\nexport const ChipWithIcon: React.FC<ChipWithIconProps> = ({\n label,\n onDelete,\n iconUrl,\n}) => {\n return (\n <span className=\"inline-flex items-center px-3 py-1 rounded-full bg-slate-200 text-sm font-medium text-white\">\n {iconUrl && (\n <img src={iconUrl} alt=\"icon\" className=\"w-4 h-4 rounded-full mr-2\" />\n )}\n {label}\n <button\n className=\"ml-2 text-white hover:text-gray-200 focus:outline-none\"\n onClick={onDelete}\n >\n x\n </button>\n </span>\n );\n};\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface FilePointer {
|
|
2
|
+
name: string;
|
|
3
|
+
sourceApplication: string;
|
|
4
|
+
getContents: () => Promise<string>;
|
|
5
|
+
}
|
|
6
|
+
interface SourceSearchBoxProps {
|
|
7
|
+
searchTerm: string;
|
|
8
|
+
recentFiles: FilePointer[];
|
|
9
|
+
onSelectedFile: (filePointer: FilePointer) => void;
|
|
10
|
+
}
|
|
11
|
+
declare function SourceSearchBox(props: SourceSearchBoxProps): JSX.Element;
|
|
12
|
+
declare function Logo({ children, size, }: {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
size?: string;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { FilePointer, Logo, SourceSearchBox, SourceSearchBoxProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Logo, SourceSearchBox } from '../../chunk-ITZHK3YV.mjs';
|
|
2
|
+
import '../../chunk-ND5PXTAW.mjs';
|
|
3
|
+
import '../../chunk-3YJ63D5D.mjs';
|
|
4
|
+
import '../../chunk-O5OWT5GE.mjs';
|
|
5
|
+
import '../../chunk-5EJ5XOGP.mjs';
|
|
6
|
+
import '../../chunk-2NURR2DX.mjs';
|
|
7
|
+
import '../../chunk-KGKLUWKW.mjs';
|
|
8
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
9
|
+
//# sourceMappingURL=out.js.map
|
|
10
|
+
//# sourceMappingURL=source-search-box.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -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?: "icon" | "default" | "sm" | "lg" | 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -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 };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn } from '../../chunk-KGKLUWKW.mjs';
|
|
2
|
+
import { __objRest, __spreadValues } from '../../chunk-MRXNTQOX.mjs';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var Card = React.forwardRef((_a, ref) => {
|
|
7
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
8
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
9
|
+
ref,
|
|
10
|
+
className: cn(
|
|
11
|
+
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
12
|
+
className
|
|
13
|
+
)
|
|
14
|
+
}, props));
|
|
15
|
+
});
|
|
16
|
+
Card.displayName = "Card";
|
|
17
|
+
var CardHeader = React.forwardRef((_a, ref) => {
|
|
18
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
19
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
20
|
+
ref,
|
|
21
|
+
className: cn("flex flex-col space-y-1.5 p-6", className)
|
|
22
|
+
}, props));
|
|
23
|
+
});
|
|
24
|
+
CardHeader.displayName = "CardHeader";
|
|
25
|
+
var CardTitle = React.forwardRef((_a, ref) => {
|
|
26
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
27
|
+
return /* @__PURE__ */ jsx("h3", __spreadValues({
|
|
28
|
+
ref,
|
|
29
|
+
className: cn(
|
|
30
|
+
"text-2xl font-semibold leading-none tracking-tight",
|
|
31
|
+
className
|
|
32
|
+
)
|
|
33
|
+
}, props));
|
|
34
|
+
});
|
|
35
|
+
CardTitle.displayName = "CardTitle";
|
|
36
|
+
var CardDescription = React.forwardRef((_a, ref) => {
|
|
37
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
38
|
+
return /* @__PURE__ */ jsx("p", __spreadValues({
|
|
39
|
+
ref,
|
|
40
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
41
|
+
}, props));
|
|
42
|
+
});
|
|
43
|
+
CardDescription.displayName = "CardDescription";
|
|
44
|
+
var CardContent = React.forwardRef((_a, ref) => {
|
|
45
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
46
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
47
|
+
ref,
|
|
48
|
+
className: cn("p-6 pt-0", className)
|
|
49
|
+
}, props));
|
|
50
|
+
});
|
|
51
|
+
CardContent.displayName = "CardContent";
|
|
52
|
+
var CardFooter = React.forwardRef((_a, ref) => {
|
|
53
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
54
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({
|
|
55
|
+
ref,
|
|
56
|
+
className: cn("flex items-center p-6 pt-0", className)
|
|
57
|
+
}, props));
|
|
58
|
+
});
|
|
59
|
+
CardFooter.displayName = "CardFooter";
|
|
60
|
+
|
|
61
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
62
|
+
//# sourceMappingURL=out.js.map
|
|
63
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/card.tsx"],"names":[],"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","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"]}
|
|
@@ -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 };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from '../../chunk-3YJ63D5D.mjs';
|
|
2
|
+
import '../../chunk-O5OWT5GE.mjs';
|
|
3
|
+
import '../../chunk-KGKLUWKW.mjs';
|
|
4
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
5
|
+
//# sourceMappingURL=out.js.map
|
|
6
|
+
//# sourceMappingURL=command.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -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 };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-O5OWT5GE.mjs';
|
|
2
|
+
import '../../chunk-KGKLUWKW.mjs';
|
|
3
|
+
import '../../chunk-MRXNTQOX.mjs';
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
5
|
+
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cn } from '../../chunk-KGKLUWKW.mjs';
|
|
2
|
+
import { __objRest, __spreadValues } from '../../chunk-MRXNTQOX.mjs';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var Separator = React.forwardRef(
|
|
8
|
+
(_a, ref) => {
|
|
9
|
+
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
10
|
+
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, __spreadValues({
|
|
11
|
+
ref,
|
|
12
|
+
decorative,
|
|
13
|
+
orientation,
|
|
14
|
+
className: cn(
|
|
15
|
+
"shrink-0 bg-border",
|
|
16
|
+
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
17
|
+
className
|
|
18
|
+
)
|
|
19
|
+
}, props));
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
23
|
+
|
|
24
|
+
export { Separator };
|
|
25
|
+
//# sourceMappingURL=out.js.map
|
|
26
|
+
//# sourceMappingURL=separator.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/separator.tsx"],"names":[],"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","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"]}
|
|
@@ -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 };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { cn } from '../../chunk-KGKLUWKW.mjs';
|
|
2
|
+
import { __objRest, __spreadValues } from '../../chunk-MRXNTQOX.mjs';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var Textarea = React.forwardRef(
|
|
7
|
+
(_a, ref) => {
|
|
8
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
9
|
+
return /* @__PURE__ */ jsx("textarea", __spreadValues({
|
|
10
|
+
className: cn(
|
|
11
|
+
"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",
|
|
12
|
+
className
|
|
13
|
+
),
|
|
14
|
+
ref
|
|
15
|
+
}, props));
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
Textarea.displayName = "Textarea";
|
|
19
|
+
|
|
20
|
+
export { Textarea };
|
|
21
|
+
//# sourceMappingURL=out.js.map
|
|
22
|
+
//# sourceMappingURL=textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ui/textarea.tsx"],"names":[],"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","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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { useAutosuggestions } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { useAutosuggestions } from '../../chunk-UHD44NC5.mjs';
|
|
2
|
+
import '../../chunk-JAFCXEPU.mjs';
|
|
3
3
|
import '../../chunk-KGKLUWKW.mjs';
|
|
4
4
|
import '../../chunk-NKW5OU2S.mjs';
|
|
5
5
|
import '../../chunk-MRXNTQOX.mjs';
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Editor } from 'slate';
|
|
3
3
|
import { HTMLCopilotTextAreaElement } from '../../types/html-copilot-textarea-element.js';
|
|
4
4
|
|
|
5
|
-
declare function usePopulateCopilotTextareaRef(editor: Editor, ref:
|
|
5
|
+
declare function usePopulateCopilotTextareaRef(editor: Editor, ref: React__default.Ref<HTMLCopilotTextAreaElement>): void;
|
|
6
6
|
|
|
7
7
|
export { usePopulateCopilotTextareaRef };
|
package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { usePopulateCopilotTextareaRef } from '../../chunk-
|
|
1
|
+
export { usePopulateCopilotTextareaRef } from '../../chunk-YQU7WG7T.mjs';
|
|
2
2
|
import '../../chunk-RQHOUUXQ.mjs';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-IXJ2HCOA.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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutosuggestionsBareFunction } from '../../types/base/autosuggestions-bare-function.js';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '../../types/
|
|
2
|
+
import { SuggestionsApiConfig } from '../../types/autosuggestions-config/suggestions-api-config.js';
|
|
3
|
+
import '../../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js';
|
|
4
|
+
import '../../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
5
|
+
import '../../types/autosuggestions-config/subtypes/chatlike-api-endpoint.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Returns a memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
@@ -17,8 +17,6 @@ import '../../types/base/base-autosuggestions-config.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,
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}): AutosuggestionsBareFunction;
|
|
20
|
+
declare function useMakeStandardAutosuggestionFunction(textareaPurpose: string, contextCategories: string[] | undefined, apiConfig: SuggestionsApiConfig): AutosuggestionsBareFunction;
|
|
23
21
|
|
|
24
22
|
export { useMakeStandardAutosuggestionFunction };
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { useMakeStandardAutosuggestionFunction } from '../../chunk-
|
|
1
|
+
export { useMakeStandardAutosuggestionFunction } from '../../chunk-HAFHLU4N.mjs';
|
|
2
|
+
import '../../chunk-4S5ZJH3I.mjs';
|
|
2
3
|
import '../../chunk-MRXNTQOX.mjs';
|
|
3
4
|
//# sourceMappingURL=out.js.map
|
|
4
5
|
//# sourceMappingURL=use-make-standard-autosuggestions-function.mjs.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Generator_InsertionOrEditingSuggestion } from '../../types/base/autosuggestions-bare-function.js';
|
|
2
|
+
import { InsertionsApiConfig } from '../../types/autosuggestions-config/insertions-api-config.js';
|
|
3
|
+
import { EditingApiConfig } from '../../types/autosuggestions-config/editing-api-config.js';
|
|
4
|
+
import '../../types/autosuggestions-config/subtypes/chatlike-api-endpoint.js';
|
|
5
|
+
import '../../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js';
|
|
6
|
+
import '../../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns a memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
10
|
+
* The function takes in the text before and after the cursor, and an abort signal.
|
|
11
|
+
* It sends a POST request to the API endpoint with the messages array containing the system message, few shot messages, and user messages.
|
|
12
|
+
* The function returns the suggestion from the API response.
|
|
13
|
+
*
|
|
14
|
+
* @param textareaPurpose - The purpose of the textarea. This is included in the system message.
|
|
15
|
+
* @param apiEndpoint - The API endpoint to send the autosuggestion request to.
|
|
16
|
+
* @param makeSystemMessage - A function that takes in a context string and returns a system message to include in the autosuggestion request.
|
|
17
|
+
* @param fewShotMessages - An array of few shot messages to include in the autosuggestion request.
|
|
18
|
+
* @param contextCategories - The categories of context strings we want to include. By default, we include the (default) "global" context category.
|
|
19
|
+
* @returns A memoized function that sends a request to the specified API endpoint to get an autosuggestion for the user's input.
|
|
20
|
+
*/
|
|
21
|
+
declare function useMakeStandardInsertionOrEditingFunction(textareaPurpose: string, contextCategories: string[] | undefined, insertionApiConfig: InsertionsApiConfig, editingApiConfig: EditingApiConfig): Generator_InsertionOrEditingSuggestion;
|
|
22
|
+
|
|
23
|
+
export { useMakeStandardInsertionOrEditingFunction };
|