@copilotkit/react-textarea 0.21.0-alpha.0 → 0.21.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +279 -249
- package/CHANGELOG.md +11 -0
- package/dist/chunk-2NURR2DX.mjs +16 -8
- package/dist/chunk-2NURR2DX.mjs.map +1 -1
- package/dist/{chunk-YXA3UPMI.mjs → chunk-34D4UIYX.mjs} +59 -23
- package/dist/chunk-34D4UIYX.mjs.map +1 -0
- package/dist/chunk-463BFNUP.mjs +16 -5
- package/dist/chunk-463BFNUP.mjs.map +1 -1
- package/dist/chunk-4S5ZJH3I.mjs +3 -2
- package/dist/chunk-4S5ZJH3I.mjs.map +1 -1
- package/dist/chunk-5EJ5XOGP.mjs +16 -8
- package/dist/chunk-5EJ5XOGP.mjs.map +1 -1
- package/dist/chunk-5FO6ISW4.mjs +0 -2
- package/dist/chunk-5FO6ISW4.mjs.map +1 -1
- package/dist/{chunk-5DU2QDHZ.mjs → chunk-7JO276KU.mjs} +9 -5
- package/dist/chunk-7JO276KU.mjs.map +1 -0
- package/dist/chunk-AXN37AHC.mjs +5 -2
- package/dist/chunk-AXN37AHC.mjs.map +1 -1
- package/dist/chunk-CSGFJU3L.mjs +11 -6
- package/dist/chunk-CSGFJU3L.mjs.map +1 -1
- package/dist/chunk-DE5K76I2.mjs +0 -2
- package/dist/chunk-DE5K76I2.mjs.map +1 -1
- package/dist/chunk-DYGPLRY3.mjs +15 -7
- package/dist/chunk-DYGPLRY3.mjs.map +1 -1
- package/dist/chunk-F2TIBXML.mjs +19 -7
- package/dist/chunk-F2TIBXML.mjs.map +1 -1
- package/dist/chunk-F3MHL6ZY.mjs +4 -4
- package/dist/chunk-F3MHL6ZY.mjs.map +1 -1
- package/dist/{chunk-O7G7E3E3.mjs → chunk-F4WZCQG6.mjs} +35 -13
- package/dist/chunk-F4WZCQG6.mjs.map +1 -0
- package/dist/chunk-GCMQHIRF.mjs +6 -3
- package/dist/chunk-GCMQHIRF.mjs.map +1 -1
- package/dist/chunk-H4VKQGVU.mjs +0 -2
- package/dist/chunk-H4VKQGVU.mjs.map +1 -1
- package/dist/{chunk-24SYR4JB.mjs → chunk-IPM5WWPW.mjs} +25 -11
- package/dist/chunk-IPM5WWPW.mjs.map +1 -0
- package/dist/chunk-IU3WTXLQ.mjs +0 -2
- package/dist/chunk-IU3WTXLQ.mjs.map +1 -1
- package/dist/chunk-IXJ2HCOA.mjs +14 -4
- package/dist/chunk-IXJ2HCOA.mjs.map +1 -1
- package/dist/chunk-JAFCXEPU.mjs +6 -3
- package/dist/chunk-JAFCXEPU.mjs.map +1 -1
- package/dist/chunk-JHTAOLEW.mjs +5 -2
- package/dist/chunk-JHTAOLEW.mjs.map +1 -1
- package/dist/chunk-KCHYD3EB.mjs +6 -5
- package/dist/chunk-KCHYD3EB.mjs.map +1 -1
- package/dist/chunk-KGKLUWKW.mjs +15 -6
- package/dist/chunk-KGKLUWKW.mjs.map +1 -1
- package/dist/chunk-L7VVZH4Q.mjs +0 -2
- package/dist/chunk-L7VVZH4Q.mjs.map +1 -1
- package/dist/chunk-LNAIMEB2.mjs +9 -4
- package/dist/chunk-LNAIMEB2.mjs.map +1 -1
- package/dist/{chunk-KLROO6ID.mjs → chunk-LRXRD5KU.mjs} +24 -12
- package/dist/chunk-LRXRD5KU.mjs.map +1 -0
- package/dist/chunk-MMVDU6DF.mjs +0 -2
- package/dist/chunk-MMVDU6DF.mjs.map +1 -1
- package/dist/chunk-MPME5BW2.mjs +4 -4
- package/dist/chunk-MPME5BW2.mjs.map +1 -1
- package/dist/chunk-MRXNTQOX.mjs +6 -2
- package/dist/chunk-MRXNTQOX.mjs.map +1 -1
- package/dist/chunk-ND5PXTAW.mjs +4 -4
- package/dist/chunk-ND5PXTAW.mjs.map +1 -1
- package/dist/chunk-NKW5OU2S.mjs +6 -3
- package/dist/chunk-NKW5OU2S.mjs.map +1 -1
- package/dist/chunk-O5OWT5GE.mjs +23 -8
- package/dist/chunk-O5OWT5GE.mjs.map +1 -1
- package/dist/chunk-OD7ZMOVE.mjs +11 -7
- package/dist/chunk-OD7ZMOVE.mjs.map +1 -1
- package/dist/chunk-OELUUJZY.mjs +10 -4
- package/dist/chunk-OELUUJZY.mjs.map +1 -1
- package/dist/chunk-QJDMIGLU.mjs +12 -4
- package/dist/chunk-QJDMIGLU.mjs.map +1 -1
- package/dist/chunk-RQHOUUXQ.mjs +4 -4
- package/dist/chunk-RQHOUUXQ.mjs.map +1 -1
- package/dist/chunk-RR6OQGTI.mjs +5 -2
- package/dist/chunk-RR6OQGTI.mjs.map +1 -1
- package/dist/chunk-S6JUGJK2.mjs +3 -2
- package/dist/chunk-S6JUGJK2.mjs.map +1 -1
- package/dist/{chunk-63FSISXT.mjs → chunk-TIBMW3DC.mjs} +12 -7
- package/dist/chunk-TIBMW3DC.mjs.map +1 -0
- package/dist/chunk-UHD44NC5.mjs +17 -7
- package/dist/chunk-UHD44NC5.mjs.map +1 -1
- package/dist/chunk-WADHCMPK.mjs +0 -2
- package/dist/chunk-WADHCMPK.mjs.map +1 -1
- package/dist/chunk-WJHSY5T6.mjs +0 -2
- package/dist/chunk-WJHSY5T6.mjs.map +1 -1
- package/dist/chunk-WJYQWL4I.mjs +4 -4
- package/dist/chunk-WJYQWL4I.mjs.map +1 -1
- package/dist/chunk-WLPYYGES.mjs +42 -22
- package/dist/chunk-WLPYYGES.mjs.map +1 -1
- package/dist/chunk-WPIA53HF.mjs +15 -7
- package/dist/chunk-WPIA53HF.mjs.map +1 -1
- package/dist/chunk-XHUMROEY.mjs +17 -7
- package/dist/chunk-XHUMROEY.mjs.map +1 -1
- package/dist/chunk-YQU7WG7T.mjs +12 -6
- package/dist/chunk-YQU7WG7T.mjs.map +1 -1
- package/dist/chunk-YTOPHPSG.mjs +4 -4
- package/dist/chunk-YTOPHPSG.mjs.map +1 -1
- package/dist/chunk-YW3REYX6.mjs +6 -5
- package/dist/chunk-YW3REYX6.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.d.ts +14 -0
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +39 -35
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/render-element.d.ts +6 -0
- package/dist/components/base-copilot-textarea/render-element.mjs +7 -3
- package/dist/components/base-copilot-textarea/render-element.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/render-placeholder.d.ts +6 -0
- package/dist/components/base-copilot-textarea/render-placeholder.mjs +7 -3
- package/dist/components/base-copilot-textarea/render-placeholder.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.d.ts +6 -0
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs +8 -4
- package/dist/components/base-copilot-textarea/track-cursor-moved-since-last-text-change.mjs.map +1 -1
- package/dist/components/base-copilot-textarea/use-add-branding-css.d.ts +3 -0
- package/dist/components/base-copilot-textarea/use-add-branding-css.mjs +7 -3
- package/dist/components/base-copilot-textarea/use-add-branding-css.mjs.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.d.ts +20 -0
- package/dist/components/copilot-textarea/copilot-textarea.mjs +51 -47
- package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-editor-provider.d.ts +13 -0
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs +9 -3
- package/dist/components/hovering-toolbar/hovering-editor-provider.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar-components.d.ts +18 -0
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs +15 -3
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.d.ts +10 -0
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +22 -18
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.d.ts +16 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +16 -12
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.d.ts +14 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +17 -13
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.d.ts +15 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs +11 -5
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.d.ts +4 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +18 -14
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs.map +1 -1
- package/dist/components/index.d.ts +15 -0
- package/dist/components/index.mjs +55 -48
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/manual-ui/chip-with-icon.d.ts +10 -0
- package/dist/components/manual-ui/chip-with-icon.mjs +6 -5
- package/dist/components/manual-ui/chip-with-icon.mjs.map +1 -1
- package/dist/components/source-search-box/source-search-box.d.ts +15 -0
- package/dist/components/source-search-box/source-search-box.mjs +12 -6
- package/dist/components/source-search-box/source-search-box.mjs.map +1 -1
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.mjs +10 -4
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.mjs +18 -7
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/command.d.ts +48 -0
- package/dist/components/ui/command.mjs +25 -5
- package/dist/components/ui/command.mjs.map +1 -1
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.mjs +20 -4
- package/dist/components/ui/dialog.mjs.map +1 -1
- package/dist/components/ui/label.d.ts +8 -0
- package/dist/components/ui/label.mjs +8 -4
- package/dist/components/ui/label.mjs.map +1 -1
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.mjs +15 -8
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/textarea.d.ts +7 -0
- package/dist/components/ui/textarea.mjs +13 -7
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.mjs +1 -2
- package/dist/context/index.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.d.ts +14 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs +10 -6
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.d.ts +8 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs +8 -4
- package/dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.d.ts +7 -0
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs +9 -5
- package/dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.mjs +1 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.d.ts +22 -0
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +18 -14
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.d.ts +23 -0
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +18 -14
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map +1 -1
- package/dist/hooks/misc/use-autosize-textarea.d.ts +5 -0
- package/dist/hooks/misc/use-autosize-textarea.mjs +7 -3
- package/dist/hooks/misc/use-autosize-textarea.mjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs +66 -50
- package/dist/index.mjs.map +1 -1
- package/dist/lib/debouncer.d.ts +11 -0
- package/dist/lib/debouncer.mjs +7 -3
- package/dist/lib/debouncer.mjs.map +1 -1
- package/dist/lib/editor-to-text.d.ts +7 -0
- package/dist/lib/editor-to-text.mjs +7 -3
- package/dist/lib/editor-to-text.mjs.map +1 -1
- package/dist/lib/get-text-around-cursor.d.ts +15 -0
- package/dist/lib/get-text-around-cursor.mjs +13 -3
- package/dist/lib/get-text-around-cursor.mjs.map +1 -1
- package/dist/lib/retry.d.ts +3 -0
- package/dist/lib/retry.mjs +7 -3
- package/dist/lib/retry.mjs.map +1 -1
- package/dist/lib/slatejs-edits/add-autocompletions.d.ts +8 -0
- package/dist/lib/slatejs-edits/add-autocompletions.mjs +7 -3
- package/dist/lib/slatejs-edits/add-autocompletions.mjs.map +1 -1
- package/dist/lib/slatejs-edits/clear-autocompletions.d.ts +8 -0
- package/dist/lib/slatejs-edits/clear-autocompletions.mjs +7 -3
- package/dist/lib/slatejs-edits/clear-autocompletions.mjs.map +1 -1
- package/dist/lib/slatejs-edits/replace-text.d.ts +5 -0
- package/dist/lib/slatejs-edits/replace-text.mjs +7 -3
- package/dist/lib/slatejs-edits/replace-text.mjs.map +1 -1
- package/dist/lib/slatejs-edits/with-partial-history.d.ts +10 -0
- package/dist/lib/slatejs-edits/with-partial-history.mjs +9 -3
- package/dist/lib/slatejs-edits/with-partial-history.mjs.map +1 -1
- package/dist/lib/stream-promise-flatten.d.ts +12 -0
- package/dist/lib/stream-promise-flatten.mjs +7 -3
- package/dist/lib/stream-promise-flatten.mjs.map +1 -1
- package/dist/lib/utils.d.ts +10 -0
- package/dist/lib/utils.mjs +17 -3
- package/dist/lib/utils.mjs.map +1 -1
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/lib/utils.test.mjs +0 -1
- package/dist/lib/utils.test.mjs.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.d.ts +23 -0
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs +0 -2
- package/dist/types/autosuggestions-config/autosuggestions-config-user-specified.mjs.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.d.ts +20 -0
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +12 -8
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/editing-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/editing-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/editing-api-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/index.d.ts +11 -0
- package/dist/types/autosuggestions-config/index.mjs +17 -10
- package/dist/types/autosuggestions-config/index.mjs.map +1 -1
- package/dist/types/autosuggestions-config/insertions-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/insertions-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/insertions-api-config.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.d.ts +27 -0
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs +7 -3
- package/dist/types/autosuggestions-config/subtypes/chatlike-api-endpoint.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.d.ts +3 -0
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs +0 -2
- package/dist/types/autosuggestions-config/subtypes/make-system-prompt.mjs.map +1 -1
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.d.ts +7 -0
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs +0 -2
- package/dist/types/autosuggestions-config/subtypes/minimal-chat-gpt-message.mjs.map +1 -1
- package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +15 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +11 -3
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs.map +1 -1
- package/dist/types/base/autosuggestion-state.d.ts +8 -0
- package/dist/types/base/autosuggestion-state.mjs +0 -2
- package/dist/types/base/autosuggestion-state.mjs.map +1 -1
- package/dist/types/base/autosuggestions-bare-function.d.ts +19 -0
- package/dist/types/base/autosuggestions-bare-function.mjs +0 -2
- package/dist/types/base/autosuggestions-bare-function.mjs.map +1 -1
- package/dist/types/base/base-autosuggestions-config.d.ts +16 -0
- package/dist/types/base/base-autosuggestions-config.mjs +7 -3
- package/dist/types/base/base-autosuggestions-config.mjs.map +1 -1
- package/dist/types/base/base-copilot-textarea-props.d.ts +41 -0
- package/dist/types/base/base-copilot-textarea-props.mjs +0 -2
- package/dist/types/base/base-copilot-textarea-props.mjs.map +1 -1
- package/dist/types/base/custom-editor.d.ts +29 -0
- package/dist/types/base/custom-editor.mjs +0 -2
- package/dist/types/base/custom-editor.mjs.map +1 -1
- package/dist/types/base/editor-autocomplete-state.d.ts +10 -0
- package/dist/types/base/editor-autocomplete-state.mjs +8 -4
- package/dist/types/base/editor-autocomplete-state.mjs.map +1 -1
- package/dist/types/base/index.d.ts +5 -0
- package/dist/types/base/index.mjs +8 -4
- package/dist/types/base/index.mjs.map +1 -1
- package/dist/types/html-copilot-textarea-element.d.ts +7 -0
- package/dist/types/html-copilot-textarea-element.mjs +1 -2
- package/dist/types/html-copilot-textarea-element.mjs.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.mjs +22 -12
- package/dist/types/index.mjs.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-24SYR4JB.mjs.map +0 -1
- package/dist/chunk-5DU2QDHZ.mjs.map +0 -1
- package/dist/chunk-63FSISXT.mjs.map +0 -1
- package/dist/chunk-KLROO6ID.mjs.map +0 -1
- package/dist/chunk-O7G7E3E3.mjs.map +0 -1
- package/dist/chunk-YXA3UPMI.mjs.map +0 -1
|
@@ -0,0 +1,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 '@copilotkit/react-core';
|
|
5
|
+
import '../../types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
6
|
+
import '../../types/autosuggestions-config/subtypes/minimal-chat-gpt-message.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 };
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import {
|
|
2
|
+
useMakeStandardInsertionOrEditingFunction
|
|
3
|
+
} from "../../chunk-WPIA53HF.mjs";
|
|
4
|
+
import "../../chunk-DE5K76I2.mjs";
|
|
5
|
+
import "../../chunk-5FO6ISW4.mjs";
|
|
6
|
+
import "../../chunk-QJDMIGLU.mjs";
|
|
7
|
+
import "../../chunk-F2TIBXML.mjs";
|
|
8
|
+
import "../../chunk-AXN37AHC.mjs";
|
|
9
|
+
import "../../chunk-RR6OQGTI.mjs";
|
|
10
|
+
import "../../chunk-JHTAOLEW.mjs";
|
|
11
|
+
import "../../chunk-WADHCMPK.mjs";
|
|
12
|
+
import "../../chunk-WJHSY5T6.mjs";
|
|
13
|
+
import "../../chunk-S6JUGJK2.mjs";
|
|
14
|
+
import "../../chunk-4S5ZJH3I.mjs";
|
|
15
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
16
|
+
export {
|
|
17
|
+
useMakeStandardInsertionOrEditingFunction
|
|
18
|
+
};
|
|
15
19
|
//# sourceMappingURL=use-make-standard-insertion-function.mjs.map
|
package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
use_autosize_textarea_default
|
|
3
|
+
} from "../../chunk-ND5PXTAW.mjs";
|
|
4
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
use_autosize_textarea_default as default
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=use-autosize-textarea.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { BaseCopilotTextarea } from './components/base-copilot-textarea/base-copilot-textarea.js';
|
|
2
|
+
export { CopilotTextarea, CopilotTextareaProps } from './components/copilot-textarea/copilot-textarea.js';
|
|
3
|
+
export { BaseAutosuggestionsConfig, defaultBaseAutosuggestionsConfig } from './types/base/base-autosuggestions-config.js';
|
|
4
|
+
export { AutosuggestionsBareFunction } from './types/base/autosuggestions-bare-function.js';
|
|
5
|
+
export { BaseCopilotTextareaProps } from './types/base/base-copilot-textarea-props.js';
|
|
6
|
+
export { HTMLCopilotTextAreaElement } from './types/html-copilot-textarea-element.js';
|
|
7
|
+
export { AutosuggestionsConfig, defaultAutosuggestionsConfig } from './types/autosuggestions-config/autosuggestions-config.js';
|
|
8
|
+
export { MinimalChatGPTMessage } from './types/autosuggestions-config/subtypes/minimal-chat-gpt-message.js';
|
|
9
|
+
export { MakeSystemPrompt } from './types/autosuggestions-config/subtypes/make-system-prompt.js';
|
|
10
|
+
export { ChatlikeApiEndpoint, ChatlikeApiEndpointImpl } from './types/autosuggestions-config/subtypes/chatlike-api-endpoint.js';
|
|
11
|
+
export { AutosuggestionsConfigUserSpecified, InsertionsApiConfigUserSpecified, SuggestionsApiConfigUserSpecified } from './types/autosuggestions-config/autosuggestions-config-user-specified.js';
|
|
12
|
+
import 'react';
|
|
13
|
+
import '@copilotkit/react-core';
|
|
14
|
+
import './types/autosuggestions-config/suggestions-api-config.js';
|
|
15
|
+
import './types/autosuggestions-config/insertions-api-config.js';
|
|
16
|
+
import './types/autosuggestions-config/editing-api-config.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,51 +1,67 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
import "./chunk-MMVDU6DF.mjs";
|
|
2
|
+
import {
|
|
3
|
+
CopilotTextarea
|
|
4
|
+
} from "./chunk-IPM5WWPW.mjs";
|
|
5
|
+
import "./chunk-DYGPLRY3.mjs";
|
|
6
|
+
import "./chunk-WPIA53HF.mjs";
|
|
7
|
+
import "./chunk-DE5K76I2.mjs";
|
|
8
|
+
import "./chunk-5FO6ISW4.mjs";
|
|
9
|
+
import {
|
|
10
|
+
ChatlikeApiEndpoint
|
|
11
|
+
} from "./chunk-QJDMIGLU.mjs";
|
|
12
|
+
import {
|
|
13
|
+
defaultAutosuggestionsConfig
|
|
14
|
+
} from "./chunk-F2TIBXML.mjs";
|
|
15
|
+
import "./chunk-AXN37AHC.mjs";
|
|
16
|
+
import "./chunk-RR6OQGTI.mjs";
|
|
17
|
+
import "./chunk-JHTAOLEW.mjs";
|
|
18
|
+
import "./chunk-WADHCMPK.mjs";
|
|
19
|
+
import {
|
|
20
|
+
BaseCopilotTextarea
|
|
21
|
+
} from "./chunk-34D4UIYX.mjs";
|
|
22
|
+
import "./chunk-CSGFJU3L.mjs";
|
|
23
|
+
import "./chunk-KCHYD3EB.mjs";
|
|
24
|
+
import "./chunk-YQU7WG7T.mjs";
|
|
25
|
+
import "./chunk-WJYQWL4I.mjs";
|
|
26
|
+
import "./chunk-F3MHL6ZY.mjs";
|
|
27
|
+
import "./chunk-RQHOUUXQ.mjs";
|
|
28
|
+
import "./chunk-UHD44NC5.mjs";
|
|
29
|
+
import "./chunk-JAFCXEPU.mjs";
|
|
30
|
+
import "./chunk-OD7ZMOVE.mjs";
|
|
31
|
+
import "./chunk-MPME5BW2.mjs";
|
|
32
|
+
import "./chunk-LRXRD5KU.mjs";
|
|
33
|
+
import "./chunk-L7VVZH4Q.mjs";
|
|
34
|
+
import "./chunk-7JO276KU.mjs";
|
|
35
|
+
import "./chunk-F4WZCQG6.mjs";
|
|
36
|
+
import "./chunk-TIBMW3DC.mjs";
|
|
37
|
+
import "./chunk-ND5PXTAW.mjs";
|
|
38
|
+
import "./chunk-2NURR2DX.mjs";
|
|
39
|
+
import "./chunk-5EJ5XOGP.mjs";
|
|
40
|
+
import "./chunk-YW3REYX6.mjs";
|
|
41
|
+
import "./chunk-XHUMROEY.mjs";
|
|
42
|
+
import "./chunk-463BFNUP.mjs";
|
|
43
|
+
import "./chunk-WLPYYGES.mjs";
|
|
44
|
+
import "./chunk-O5OWT5GE.mjs";
|
|
45
|
+
import "./chunk-GCMQHIRF.mjs";
|
|
46
|
+
import "./chunk-KGKLUWKW.mjs";
|
|
47
|
+
import "./chunk-WJHSY5T6.mjs";
|
|
48
|
+
import {
|
|
49
|
+
defaultBaseAutosuggestionsConfig
|
|
50
|
+
} from "./chunk-S6JUGJK2.mjs";
|
|
51
|
+
import "./chunk-LNAIMEB2.mjs";
|
|
52
|
+
import "./chunk-OELUUJZY.mjs";
|
|
53
|
+
import "./chunk-H4VKQGVU.mjs";
|
|
54
|
+
import "./chunk-IU3WTXLQ.mjs";
|
|
55
|
+
import "./chunk-NKW5OU2S.mjs";
|
|
56
|
+
import "./chunk-YTOPHPSG.mjs";
|
|
57
|
+
import "./chunk-IXJ2HCOA.mjs";
|
|
58
|
+
import "./chunk-4S5ZJH3I.mjs";
|
|
59
|
+
import "./chunk-MRXNTQOX.mjs";
|
|
60
|
+
export {
|
|
61
|
+
BaseCopilotTextarea,
|
|
62
|
+
ChatlikeApiEndpoint,
|
|
63
|
+
CopilotTextarea,
|
|
64
|
+
defaultAutosuggestionsConfig,
|
|
65
|
+
defaultBaseAutosuggestionsConfig
|
|
66
|
+
};
|
|
51
67
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type AsyncFunction<T extends any[]> = (...args: [...T, AbortSignal]) => Promise<void>;
|
|
2
|
+
declare class Debouncer<T extends any[]> {
|
|
3
|
+
private wait;
|
|
4
|
+
private timeoutId?;
|
|
5
|
+
private activeAbortController?;
|
|
6
|
+
constructor(wait: number);
|
|
7
|
+
debounce: (func: AsyncFunction<T>, ...args: T) => Promise<void>;
|
|
8
|
+
cancel: () => void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AsyncFunction, Debouncer };
|
package/dist/lib/debouncer.mjs
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
Debouncer
|
|
3
|
+
} from "../chunk-NKW5OU2S.mjs";
|
|
4
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
Debouncer
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=debouncer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
editorToText
|
|
3
|
+
} from "../chunk-YTOPHPSG.mjs";
|
|
4
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
editorToText
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=editor-to-text.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseRange, Editor, Range } from 'slate';
|
|
2
|
+
import { EditorAutocompleteState } from '../types/base/editor-autocomplete-state.js';
|
|
3
|
+
|
|
4
|
+
interface EditorTextState {
|
|
5
|
+
selection: BaseRange;
|
|
6
|
+
textBeforeCursor: string;
|
|
7
|
+
selectedText: string;
|
|
8
|
+
textAfterCursor: string;
|
|
9
|
+
}
|
|
10
|
+
declare function getTextAroundCollapsedCursor(editor: Editor): EditorAutocompleteState | null;
|
|
11
|
+
declare function getTextAroundSelection(editor: Editor): EditorTextState | null;
|
|
12
|
+
declare function getFullEditorTextWithNewlines(editor: Editor): string;
|
|
13
|
+
declare function extractTextWithNewlines(editor: Editor, range: Range): string;
|
|
14
|
+
|
|
15
|
+
export { EditorTextState, extractTextWithNewlines, getFullEditorTextWithNewlines, getTextAroundCollapsedCursor, getTextAroundSelection };
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
extractTextWithNewlines,
|
|
3
|
+
getFullEditorTextWithNewlines,
|
|
4
|
+
getTextAroundCollapsedCursor,
|
|
5
|
+
getTextAroundSelection
|
|
6
|
+
} from "../chunk-IXJ2HCOA.mjs";
|
|
7
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
8
|
+
export {
|
|
9
|
+
extractTextWithNewlines,
|
|
10
|
+
getFullEditorTextWithNewlines,
|
|
11
|
+
getTextAroundCollapsedCursor,
|
|
12
|
+
getTextAroundSelection
|
|
13
|
+
};
|
|
4
14
|
//# sourceMappingURL=get-text-around-cursor.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/lib/retry.mjs
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
retry
|
|
3
|
+
} from "../chunk-4S5ZJH3I.mjs";
|
|
4
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
retry
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=retry.mjs.map
|
package/dist/lib/retry.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BasePoint } from 'slate';
|
|
2
|
+
import { CustomEditor } from '../../types/base/custom-editor.js';
|
|
3
|
+
import 'slate-react';
|
|
4
|
+
import 'slate-history';
|
|
5
|
+
|
|
6
|
+
declare function addAutocompletionsToEditor(editor: CustomEditor, newSuggestion: string, point: BasePoint): void;
|
|
7
|
+
|
|
8
|
+
export { addAutocompletionsToEditor };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
addAutocompletionsToEditor
|
|
3
|
+
} from "../../chunk-WJYQWL4I.mjs";
|
|
4
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
addAutocompletionsToEditor
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=add-autocompletions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
clearAutocompletionsFromEditor
|
|
3
|
+
} from "../../chunk-F3MHL6ZY.mjs";
|
|
4
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
clearAutocompletionsFromEditor
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=clear-autocompletions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
replaceEditorText
|
|
3
|
+
} from "../../chunk-RQHOUUXQ.mjs";
|
|
4
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
replaceEditorText
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=replace-text.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomEditor } from '../../types/base/custom-editor.js';
|
|
2
|
+
import { Operation } from 'slate';
|
|
3
|
+
import { HistoryEditor } from 'slate-history';
|
|
4
|
+
import 'slate-react';
|
|
5
|
+
|
|
6
|
+
type ShouldSaveToHistory = (op: Operation, prev: Operation | undefined) => boolean;
|
|
7
|
+
declare const withPartialHistory: <T extends CustomEditor>(editor: T, shouldSave: ShouldSaveToHistory) => T & HistoryEditor;
|
|
8
|
+
declare const defaultShouldSave: (op: Operation, prev: Operation | undefined) => boolean;
|
|
9
|
+
|
|
10
|
+
export { ShouldSaveToHistory, defaultShouldSave, withPartialHistory };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
defaultShouldSave,
|
|
3
|
+
withPartialHistory
|
|
4
|
+
} from "../../chunk-KCHYD3EB.mjs";
|
|
5
|
+
import "../../chunk-MRXNTQOX.mjs";
|
|
6
|
+
export {
|
|
7
|
+
defaultShouldSave,
|
|
8
|
+
withPartialHistory
|
|
9
|
+
};
|
|
4
10
|
//# sourceMappingURL=with-partial-history.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flatten a promise of a stream, into a stream.
|
|
3
|
+
*
|
|
4
|
+
* Useful because a stream already includes the notion of async value delivery,
|
|
5
|
+
* so it often makes sense to simply await the values rather than the generator of the values.
|
|
6
|
+
*
|
|
7
|
+
* @param {Promise<ReadableStream<A>>} promise - The promise to flatten.
|
|
8
|
+
* @returns {ReadableStream<A>} - The flattened stream.
|
|
9
|
+
*/
|
|
10
|
+
declare function streamPromiseFlatten<A>(promise: Promise<ReadableStream<A>>): ReadableStream<A>;
|
|
11
|
+
|
|
12
|
+
export { streamPromiseFlatten };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
streamPromiseFlatten
|
|
3
|
+
} from "../chunk-GCMQHIRF.mjs";
|
|
4
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
5
|
+
export {
|
|
6
|
+
streamPromiseFlatten
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=stream-promise-flatten.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
+
declare const nanoid: (size?: number | undefined) => string;
|
|
5
|
+
declare function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON>;
|
|
6
|
+
declare function formatDate(input: string | number | Date): string;
|
|
7
|
+
declare const arraysAreEqual: (arr1: number[], arr2: number[]) => boolean;
|
|
8
|
+
declare function nullableCompatibleEqualityCheck<T>(naiveEqualityCheck: (a: T, b: T) => boolean, a: T | null | undefined, b: T | null | undefined): boolean;
|
|
9
|
+
|
|
10
|
+
export { arraysAreEqual, cn, fetcher, formatDate, nanoid, nullableCompatibleEqualityCheck };
|
package/dist/lib/utils.mjs
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
arraysAreEqual,
|
|
3
|
+
cn,
|
|
4
|
+
fetcher,
|
|
5
|
+
formatDate,
|
|
6
|
+
nanoid,
|
|
7
|
+
nullableCompatibleEqualityCheck
|
|
8
|
+
} from "../chunk-KGKLUWKW.mjs";
|
|
9
|
+
import "../chunk-MRXNTQOX.mjs";
|
|
10
|
+
export {
|
|
11
|
+
arraysAreEqual,
|
|
12
|
+
cn,
|
|
13
|
+
fetcher,
|
|
14
|
+
formatDate,
|
|
15
|
+
nanoid,
|
|
16
|
+
nullableCompatibleEqualityCheck
|
|
17
|
+
};
|
|
4
18
|
//# sourceMappingURL=utils.mjs.map
|
package/dist/lib/utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/lib/utils.test.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/utils.test.ts"],"
|
|
1
|
+
{"version":3,"sources":["../../src/lib/utils.test.ts"],"sourcesContent":["import * as utils from \"./utils\";\n\ndescribe(\"emptyTest\", () => {\n it(\"should be truthy\", () => {\n expect(true).toBeTruthy();\n });\n});\n"],"mappings":";AAEA,SAAS,aAAa,MAAM;AAC1B,KAAG,oBAAoB,MAAM;AAC3B,WAAO,IAAI,EAAE,WAAW;AAAA,EAC1B,CAAC;AACH,CAAC;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AutosuggestionsConfig } from './autosuggestions-config.js';
|
|
2
|
+
import { InsertionsApiConfig } from './insertions-api-config.js';
|
|
3
|
+
import { SuggestionsApiConfig } from './suggestions-api-config.js';
|
|
4
|
+
import '../base/base-autosuggestions-config.js';
|
|
5
|
+
import '../base/autosuggestions-bare-function.js';
|
|
6
|
+
import '@copilotkit/react-core';
|
|
7
|
+
import './editing-api-config.js';
|
|
8
|
+
import './subtypes/make-system-prompt.js';
|
|
9
|
+
import './subtypes/minimal-chat-gpt-message.js';
|
|
10
|
+
|
|
11
|
+
interface SuggestionsApiConfigUserSpecified extends Partial<SuggestionsApiConfig> {
|
|
12
|
+
}
|
|
13
|
+
interface InsertionsApiConfigUserSpecified extends Partial<InsertionsApiConfig> {
|
|
14
|
+
}
|
|
15
|
+
interface AutosuggestionsConfigUserSpecified extends Partial<Omit<AutosuggestionsConfig, "chatApiConfigs" | "textareaPurpose">> {
|
|
16
|
+
textareaPurpose: string;
|
|
17
|
+
chatApiConfigs: {
|
|
18
|
+
suggestionsApiConfig?: SuggestionsApiConfigUserSpecified;
|
|
19
|
+
insertionApiConfig?: InsertionsApiConfigUserSpecified;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { AutosuggestionsConfigUserSpecified, InsertionsApiConfigUserSpecified, SuggestionsApiConfigUserSpecified };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseAutosuggestionsConfig } from '../base/base-autosuggestions-config.js';
|
|
2
|
+
import { SuggestionsApiConfig } from './suggestions-api-config.js';
|
|
3
|
+
import { InsertionsApiConfig } from './insertions-api-config.js';
|
|
4
|
+
import { EditingApiConfig } from './editing-api-config.js';
|
|
5
|
+
import '../base/autosuggestions-bare-function.js';
|
|
6
|
+
import '@copilotkit/react-core';
|
|
7
|
+
import './subtypes/minimal-chat-gpt-message.js';
|
|
8
|
+
import './subtypes/make-system-prompt.js';
|
|
9
|
+
|
|
10
|
+
interface AutosuggestionsConfig extends Omit<BaseAutosuggestionsConfig, "apiConfig"> {
|
|
11
|
+
externalContextCategories: string[] | undefined;
|
|
12
|
+
chatApiConfigs: {
|
|
13
|
+
suggestionsApiConfig: SuggestionsApiConfig;
|
|
14
|
+
insertionApiConfig: InsertionsApiConfig;
|
|
15
|
+
editingApiConfig: EditingApiConfig;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare const defaultAutosuggestionsConfig: Omit<AutosuggestionsConfig, "textareaPurpose" | "apiEndpoint">;
|
|
19
|
+
|
|
20
|
+
export { AutosuggestionsConfig, defaultAutosuggestionsConfig };
|