-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adds OSS Orama support #39
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e9964b1
to
7a3674d
Compare
LGTM! |
7a3674d
to
53a204d
Compare
@@ -28,11 +28,6 @@ const demoIndexes: DemoIndexConfig = { | |||
description: 'content', | |||
section: 'category', | |||
}, | |||
highlight: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove it. Thanks! You could also use highlightTitle or highlightDescription
With commit c638a16, I've added some workarounds to make OSS Chat work. The second one is related to the |
7dddf5f
to
5453786
Compare
@@ -58,7 +58,7 @@ export namespace Components { | |||
} | |||
interface OramaChatBox { | |||
"autoFocus": boolean; | |||
"clientInstance"?: OramaClient; | |||
"clientInstance"?: OramaClient | Orama<unknown>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we be using OramaSwtich?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clientInstance
coming as a prop should be an OramaClient | AnyOrama.
The Switch is instantiated inside the ChatService / SearchService.
Ex.
ChatService
SearchService
@@ -133,7 +133,7 @@ export namespace Components { | |||
} | |||
interface OramaSearchBox { | |||
"chatPlaceholder"?: string; | |||
"clientInstance"?: OramaClient; | |||
"clientInstance"?: OramaClient | AnyOrama; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we're usingAnyOrama here and Oraam on OramaChatBox?
@@ -517,7 +517,7 @@ declare namespace LocalJSX { | |||
} | |||
interface OramaChatBox { | |||
"autoFocus"?: boolean; | |||
"clientInstance"?: OramaClient; | |||
"clientInstance"?: OramaClient | Orama<unknown>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment
@@ -594,7 +594,7 @@ declare namespace LocalJSX { | |||
} | |||
interface OramaSearchBox { | |||
"chatPlaceholder"?: string; | |||
"clientInstance"?: OramaClient; | |||
"clientInstance"?: OramaClient | AnyOrama; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment
@@ -14,7 +15,7 @@ import '@phosphor-icons/webcomponents/dist/icons/PhArrowClockwise.mjs' | |||
export class ChatBox { | |||
@Element() el: HTMLElement | |||
@Prop() index?: CloudIndexConfig | |||
@Prop() clientInstance?: OramaClient | |||
@Prop() clientInstance?: OramaClient | Orama<unknown> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we be using OramaSwitch?
5453786
to
1d7efea
Compare
1d7efea
to
90dff7b
Compare
c69f976
to
eac8041
Compare
752d38d
to
0ea00b1
Compare
Adds OSS Orama Support as option of Client Instance