Skip to content

Commit 25f05fd

Browse files
committed
Remove types
1 parent e646f2d commit 25f05fd

File tree

3 files changed

+6
-23
lines changed

3 files changed

+6
-23
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"unist-util-visit": "^5.0.0"
3434
},
3535
"devDependencies": {
36-
"@inkeep/cxkit-types": "^0.5.64",
3736
"autoprefixer": "^10.4.20",
3837
"chalk": "^5.3.0",
3938
"cheerio": "^1.0.0",

src/components/Inkeep.astro

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
<script>
2-
import type {
3-
InkeepAIChatSettings,
4-
InkeepSearchSettings,
5-
InkeepBaseSettings,
6-
InkeepModalSettings,
7-
InkeepJS,
8-
InkeepComponentInstance
9-
} from "@inkeep/cxkit-types";
10-
11-
declare global {
12-
interface Window {
13-
Inkeep: InkeepJS;
14-
}
15-
}
16-
172
// Get the button element
183
const inkeepTriggers = document.querySelectorAll("[kui-trigger='search']");
194

20-
function handleOpenChange(newOpen: boolean) {
5+
function handleOpenChange(newOpen) {
216
inkeepWidget?.update({modalSettings: {isOpen: newOpen}});
227
}
238

@@ -34,7 +19,7 @@
3419
}
3520
};
3621

37-
const baseSettings: InkeepBaseSettings = {
22+
const baseSettings = {
3823
apiKey: import.meta.env.PUBLIC_INKEEP_API_KEY!, // required
3924
primaryBrandColor: "#0f0f0f",
4025
organizationDisplayName: "Kinde",
@@ -54,7 +39,7 @@
5439
]
5540
}
5641
};
57-
const aiChatSettings: InkeepAIChatSettings = {
42+
const aiChatSettings = {
5843
chatSubjectName: "Kinde",
5944
aiAssistantAvatar: {
6045
light: "/bot-avatar-light.png",
@@ -99,12 +84,12 @@
9984
]
10085
};
10186

102-
const modalSettings: InkeepModalSettings = {
87+
const modalSettings = {
10388
isOpen: false,
10489
onOpenChange: handleOpenChange
10590
};
10691

107-
const searchSettings: InkeepSearchSettings = {
92+
const searchSettings = {
10893
tabs: []
10994
};
11095

@@ -116,7 +101,7 @@
116101
};
117102

118103
// Embed the widget using the `Inkeep.embed()` function.
119-
let inkeepWidget: InkeepComponentInstance | undefined;
104+
let inkeepWidget: any;
120105
// Add event listener to open the Inkeep modal when the button is clicked
121106
inkeepTriggers.forEach((trigger) => trigger.addEventListener("click", handleOpen));
122107

0 commit comments

Comments
 (0)