@copilotkit/react-textarea 0.35.0 → 0.36.0-mme-fix-packaging-issues.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 +267 -267
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-COQISBP2.mjs → chunk-7R7KMN2G.mjs} +2 -2
- package/dist/{chunk-DMLXXOXD.mjs → chunk-GZPRBYKA.mjs} +2 -2
- package/dist/chunk-JC6NGPO4.mjs +100 -0
- package/dist/chunk-JC6NGPO4.mjs.map +1 -0
- package/dist/{chunk-PQIOU3E5.mjs → chunk-MMVI7IPP.mjs} +2 -2
- package/dist/{chunk-XU5Z5BWV.mjs → chunk-O3QC2FT5.mjs} +2 -2
- package/dist/{chunk-OGLVRSCO.mjs → chunk-P4EI4H6Y.mjs} +2 -2
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js +116 -66
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +5 -5
- package/dist/components/copilot-textarea/copilot-textarea.js +123 -73
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +6 -6
- package/dist/components/hovering-toolbar/hovering-toolbar.js +95 -45
- package/dist/components/hovering-toolbar/hovering-toolbar.js.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +4 -4
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.js +84 -34
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +2 -2
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.js +84 -34
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +3 -3
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.d.ts +1 -2
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.js +67 -19
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.mjs +1 -3
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.js +84 -34
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +3 -3
- package/dist/components/index.js +126 -76
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- package/dist/index.js +126 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +3 -4
- package/src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx +62 -13
- package/dist/chunk-YNXNMCDX.mjs +0 -51
- package/dist/chunk-YNXNMCDX.mjs.map +0 -1
- /package/dist/{chunk-COQISBP2.mjs.map → chunk-7R7KMN2G.mjs.map} +0 -0
- /package/dist/{chunk-DMLXXOXD.mjs.map → chunk-GZPRBYKA.mjs.map} +0 -0
- /package/dist/{chunk-PQIOU3E5.mjs.map → chunk-MMVI7IPP.mjs.map} +0 -0
- /package/dist/{chunk-XU5Z5BWV.mjs.map → chunk-O3QC2FT5.mjs.map} +0 -0
- /package/dist/{chunk-OGLVRSCO.mjs.map → chunk-P4EI4H6Y.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import "./chunk-WADHCMPK.mjs";
|
|
|
4
4
|
import "./chunk-MMVDU6DF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CopilotTextarea
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MMVI7IPP.mjs";
|
|
8
8
|
import "./chunk-SJ2TM5GA.mjs";
|
|
9
9
|
import "./chunk-QCPS6IYI.mjs";
|
|
10
10
|
import "./chunk-RUV6NBIF.mjs";
|
|
@@ -16,7 +16,7 @@ import "./chunk-RKQ6RTZM.mjs";
|
|
|
16
16
|
import "./chunk-KDVMG3XF.mjs";
|
|
17
17
|
import {
|
|
18
18
|
BaseCopilotTextarea
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O3QC2FT5.mjs";
|
|
20
20
|
import "./chunk-DRV2FOHZ.mjs";
|
|
21
21
|
import "./chunk-4NHVQZ67.mjs";
|
|
22
22
|
import "./chunk-FMQG2ZM3.mjs";
|
|
@@ -27,11 +27,11 @@ import "./chunk-QKS2IOUH.mjs";
|
|
|
27
27
|
import "./chunk-JJLQVT7S.mjs";
|
|
28
28
|
import "./chunk-LQ2OWQU7.mjs";
|
|
29
29
|
import "./chunk-7LSRNPNI.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-GZPRBYKA.mjs";
|
|
31
31
|
import "./chunk-L7VVZH4Q.mjs";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-7R7KMN2G.mjs";
|
|
33
|
+
import "./chunk-P4EI4H6Y.mjs";
|
|
34
|
+
import "./chunk-JC6NGPO4.mjs";
|
|
35
35
|
import "./chunk-3PQ7GSFE.mjs";
|
|
36
36
|
import "./chunk-WFTAAA7R.mjs";
|
|
37
37
|
import "./chunk-YFK5BFEI.mjs";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.36.0-mme-fix-packaging-issues.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.css"
|
|
10
10
|
],
|
|
@@ -37,15 +37,14 @@
|
|
|
37
37
|
"ts-jest": "^29.1.1",
|
|
38
38
|
"tsup": "^6.7.0",
|
|
39
39
|
"typescript": "^5.2.3",
|
|
40
|
-
"eslint-config-custom": "0.10.0",
|
|
41
40
|
"tailwind-config": "0.9.0",
|
|
42
|
-
"tsconfig": "0.14.0"
|
|
41
|
+
"tsconfig": "0.14.0",
|
|
42
|
+
"eslint-config-custom": "0.10.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@emotion/css": "^11.11.2",
|
|
46
46
|
"@emotion/react": "^11.11.1",
|
|
47
47
|
"@emotion/styled": "^11.11.0",
|
|
48
|
-
"@mui/material": "^5.14.11",
|
|
49
48
|
"@radix-ui/react-dialog": "^1.0.4",
|
|
50
49
|
"@radix-ui/react-label": "^2.0.2",
|
|
51
50
|
"@radix-ui/react-separator": "^1.0.3",
|
package/src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { DocumentPointer } from "@copilotkit/react-core";
|
|
2
2
|
import { Label } from "../../ui/label";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import Chip from "@mui/material/Chip/Chip.js";
|
|
5
|
-
import Avatar from "@mui/material/Avatar/Avatar.js";
|
|
6
4
|
|
|
7
5
|
export interface IncludedFilesPreviewProps {
|
|
8
6
|
includedFiles: DocumentPointer[];
|
|
@@ -38,18 +36,69 @@ export interface FileChipPreviewProps {
|
|
|
38
36
|
onDelete: () => void;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
function FileChipPreview({
|
|
40
|
+
filePointer,
|
|
41
|
+
onDelete,
|
|
42
|
+
}: {
|
|
43
|
+
filePointer: DocumentPointer;
|
|
44
|
+
onDelete: () => void;
|
|
45
|
+
}) {
|
|
46
|
+
const CLOSE_BUTTON_COLOR = "rgba(0, 0, 0, 0.26)";
|
|
47
|
+
const [color, setColor] = React.useState(CLOSE_BUTTON_COLOR);
|
|
42
48
|
return (
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
<div>
|
|
50
|
+
<button
|
|
51
|
+
style={{
|
|
52
|
+
fontSize: "0.8125rem",
|
|
53
|
+
display: "inline-flex",
|
|
54
|
+
justifyContent: "center",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
height: "32px",
|
|
57
|
+
color: "rgba(0, 0, 0, 0.87)",
|
|
58
|
+
backgroundColor: "rgba(0, 0, 0, 0.08)",
|
|
59
|
+
borderRadius: "16px",
|
|
60
|
+
whiteSpace: "nowrap",
|
|
61
|
+
boxSizing: "border-box",
|
|
62
|
+
border: 0,
|
|
63
|
+
verticalAlign: "middle",
|
|
64
|
+
outline: 0,
|
|
65
|
+
cursor: "default",
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
<img
|
|
69
|
+
style={{
|
|
70
|
+
marginLeft: "5px",
|
|
71
|
+
width: "24px",
|
|
72
|
+
height: "24px",
|
|
73
|
+
backgroundColor: "transparent",
|
|
74
|
+
borderRadius: "50%",
|
|
75
|
+
}}
|
|
48
76
|
src={filePointer.iconImageUri}
|
|
49
77
|
alt={filePointer.sourceApplication}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
78
|
+
/>
|
|
79
|
+
<span style={{ marginLeft: "5px" }}>{filePointer.name}</span>
|
|
80
|
+
<svg
|
|
81
|
+
style={{
|
|
82
|
+
color: color,
|
|
83
|
+
fontSize: "22px",
|
|
84
|
+
cursor: "pointer",
|
|
85
|
+
margin: "0 5px 0 5px",
|
|
86
|
+
userSelect: "none",
|
|
87
|
+
width: "1em",
|
|
88
|
+
height: "1em",
|
|
89
|
+
display: "inline-block",
|
|
90
|
+
fill: "currentColor",
|
|
91
|
+
flexShrink: 0,
|
|
92
|
+
}}
|
|
93
|
+
viewBox="0 0 24 24" // Defines the size of the original design space
|
|
94
|
+
preserveAspectRatio="xMidYMid meet"
|
|
95
|
+
onClick={onDelete}
|
|
96
|
+
onMouseOver={() => setColor("rgba(0, 0, 0, 0.54)")}
|
|
97
|
+
onMouseOut={() => setColor(CLOSE_BUTTON_COLOR)}
|
|
98
|
+
>
|
|
99
|
+
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path>
|
|
100
|
+
</svg>
|
|
101
|
+
</button>
|
|
102
|
+
</div>
|
|
54
103
|
);
|
|
55
|
-
}
|
|
104
|
+
}
|
package/dist/chunk-YNXNMCDX.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Label
|
|
3
|
-
} from "./chunk-YFK5BFEI.mjs";
|
|
4
|
-
|
|
5
|
-
// src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx
|
|
6
|
-
import Chip from "@mui/material/Chip/Chip.js";
|
|
7
|
-
import Avatar from "@mui/material/Avatar/Avatar.js";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
var IncludedFilesPreview = ({
|
|
10
|
-
includedFiles,
|
|
11
|
-
setIncludedFiles
|
|
12
|
-
}) => {
|
|
13
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 mt-2", children: [
|
|
14
|
-
/* @__PURE__ */ jsx(Label, { className: "", children: "Included context:" }),
|
|
15
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: includedFiles.map((filePointer, index) => {
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
FileChipPreview,
|
|
18
|
-
{
|
|
19
|
-
filePointer,
|
|
20
|
-
onDelete: () => {
|
|
21
|
-
setIncludedFiles((prev) => prev.filter((fp) => fp !== filePointer));
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
`file-${filePointer.sourceApplication}.${filePointer.name}`
|
|
25
|
-
);
|
|
26
|
-
}) })
|
|
27
|
-
] });
|
|
28
|
-
};
|
|
29
|
-
var FileChipPreview = ({ filePointer, onDelete }) => {
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
-
Chip,
|
|
32
|
-
{
|
|
33
|
-
label: filePointer.name,
|
|
34
|
-
onDelete,
|
|
35
|
-
avatar: /* @__PURE__ */ jsx(
|
|
36
|
-
Avatar,
|
|
37
|
-
{
|
|
38
|
-
src: filePointer.iconImageUri,
|
|
39
|
-
alt: filePointer.sourceApplication,
|
|
40
|
-
sx: { backgroundColor: "transparent" }
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
IncludedFilesPreview,
|
|
49
|
-
FileChipPreview
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=chunk-YNXNMCDX.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/hovering-toolbar/text-insertion-prompt-box/included-files-preview.tsx"],"sourcesContent":["import { DocumentPointer } from \"@copilotkit/react-core\";\nimport { Label } from \"../../ui/label\";\nimport React from \"react\";\nimport Chip from \"@mui/material/Chip/Chip.js\";\nimport Avatar from \"@mui/material/Avatar/Avatar.js\";\n\nexport interface IncludedFilesPreviewProps {\n includedFiles: DocumentPointer[];\n setIncludedFiles: React.Dispatch<React.SetStateAction<DocumentPointer[]>>;\n}\n\nexport const IncludedFilesPreview = ({\n includedFiles,\n setIncludedFiles,\n}: IncludedFilesPreviewProps) => {\n return (\n <div className=\"flex flex-col gap-2 mt-2\">\n <Label className=\"\">Included context:</Label>\n <div className=\"flex flex-wrap gap-2\">\n {includedFiles.map((filePointer, index) => {\n return (\n <FileChipPreview\n key={`file-${filePointer.sourceApplication}.${filePointer.name}`}\n filePointer={filePointer}\n onDelete={() => {\n setIncludedFiles((prev) => prev.filter((fp) => fp !== filePointer));\n }}\n />\n );\n })}\n </div>\n </div>\n );\n};\n\nexport interface FileChipPreviewProps {\n filePointer: DocumentPointer;\n onDelete: () => void;\n}\n\nexport const FileChipPreview = ({ filePointer, onDelete }: FileChipPreviewProps) => {\n return (\n <Chip\n label={filePointer.name}\n onDelete={onDelete}\n avatar={\n <Avatar\n src={filePointer.iconImageUri}\n alt={filePointer.sourceApplication}\n sx={{ backgroundColor: \"transparent\" }}\n ></Avatar>\n }\n />\n );\n};\n"],"mappings":";;;;;AAGA,OAAO,UAAU;AACjB,OAAO,YAAY;AAYf,SACE,KADF;AALG,IAAM,uBAAuB,CAAC;AAAA,EACnC;AAAA,EACA;AACF,MAAiC;AAC/B,SACE,qBAAC,SAAI,WAAU,4BACb;AAAA,wBAAC,SAAM,WAAU,IAAG,+BAAiB;AAAA,IACrC,oBAAC,SAAI,WAAU,wBACZ,wBAAc,IAAI,CAAC,aAAa,UAAU;AACzC,aACE;AAAA,QAAC;AAAA;AAAA,UAEC;AAAA,UACA,UAAU,MAAM;AACd,6BAAiB,CAAC,SAAS,KAAK,OAAO,CAAC,OAAO,OAAO,WAAW,CAAC;AAAA,UACpE;AAAA;AAAA,QAJK,QAAQ,YAAY,qBAAqB,YAAY;AAAA,MAK5D;AAAA,IAEJ,CAAC,GACH;AAAA,KACF;AAEJ;AAOO,IAAM,kBAAkB,CAAC,EAAE,aAAa,SAAS,MAA4B;AAClF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,YAAY;AAAA,MACnB;AAAA,MACA,QACE;AAAA,QAAC;AAAA;AAAA,UACC,KAAK,YAAY;AAAA,UACjB,KAAK,YAAY;AAAA,UACjB,IAAI,EAAE,iBAAiB,cAAc;AAAA;AAAA,MACtC;AAAA;AAAA,EAEL;AAEJ;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|