-
Notifications
You must be signed in to change notification settings - Fork 3
add: plug script #224
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
Merged
Merged
add: plug script #224
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d266357
add: plug script
nikhiltidke101 f9bc015
Merge branch 'main' into feat/plug
nikhiltidke101 5e5d10e
feat: integrate Plug SDK into main application
nikhiltidke101 c67893b
Merge branch 'feat/plug' of https://github.com/devrev/fern-api-docs i…
nikhiltidke101 e4a7d6c
Remove Plug component implementation from the codebase.
nikhiltidke101 0f6d93b
Remove unused Plug component import from main application file.
nikhiltidke101 165cf3b
chore: add @types/node to devDependencies in package.json
nikhiltidke101 4a013b9
fix: update Plug SDK initialization to use dynamic app ID from fetche…
nikhiltidke101 60f9545
feat: add search component and integrate into main application
nikhiltidke101 e447a28
refactor: comment out theme switch and search component initialization
nikhiltidke101 6a880d9
refactor: streamline search component integration
nikhiltidke101 86365f2
refactor: remove unused sidenav code from main application
nikhiltidke101 60a24d0
refactor: update search component integration in main application
nikhiltidke101 2aa4d8e
refactor: comment out search component rendering logic
nikhiltidke101 23e4e72
refactor: comment out theme switch and search component imports
nikhiltidke101 dc7a90a
refactor: integrate theme switch and search components into main appl…
nikhiltidke101 35de9ea
refactor: integrate search component rendering into main application
nikhiltidke101 7f93d54
feat: implement event handling for Plug SDK in main application
nikhiltidke101 0c61799
refactor: update key event handling for search agent activation
nikhiltidke101 f177745
refactor: comment out search component rendering logic
nikhiltidke101 5b65429
refactor: restore search component rendering logic in main application
nikhiltidke101 7b884bc
refactor: reorder imports for theme switch and search components in m…
nikhiltidke101 63e36ee
refactor: enhance event logging for Plug SDK integration in main appl…
nikhiltidke101 85b23b5
feat: add Widget component for Plug SDK integration in main application
nikhiltidke101 96ae4d8
feat: replace Widget component with Plug SDK integration in main appl…
nikhiltidke101 acdd873
refactor: restructure sidenav to include header wrapper for theme swi…
nikhiltidke101 9c4198e
refactor: improve event handling for Plug SDK widget readiness in mai…
nikhiltidke101 92db0e1
refactor: update sidenav structure and search button styling in main …
nikhiltidke101 5e87b13
refactor: adjust rendering order of theme switch and search component…
nikhiltidke101 967a035
refactor: remove PLUG_APP_ID environment variable from workflow files
nikhiltidke101 81fe745
refactor: remove @types/node dependency from custom implementation pa…
nikhiltidke101 b5b686e
refactor: remove Widget component from custom implementation package
nikhiltidke101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
export const Search = () => { | ||
return ( | ||
<button | ||
id="fern-search-button" | ||
className="fern-search-bar w-full" | ||
style={{ marginBottom: '8px' }} | ||
onClick={() => { | ||
if ((window as any).plugSDK) { | ||
(window as any).plugSDK.toggleSearchAgent() | ||
} | ||
}}> | ||
<span className="search-placeholder"> | ||
<svg | ||
width="1.5em" | ||
height="1.5em" | ||
viewBox="0 0 24 24" | ||
strokeWidth="1.5" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
color="currentColor" | ||
className="size-icon-md"> | ||
<path | ||
d="M17 17L21 21" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round"></path> | ||
<path | ||
d="M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round"></path> | ||
</svg> | ||
<span>Search...</span> | ||
</span> | ||
<kbd className="keyboard-shortcut-hint">/</kbd> | ||
</button> | ||
) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.