diff --git a/copilot-extension/README.md b/copilot-extension/README.md new file mode 100644 index 0000000..28886dd --- /dev/null +++ b/copilot-extension/README.md @@ -0,0 +1,14 @@ +# Chrome Browser Extension + +This is an example Chrome Browser Extension for adding CopilotUX as a side-panel extension. + +## Configuration + +1. Load the extension into Chrome. As this is in development, this extension needs to be loaded by using the 'Load unpacked' method. + +## Known Issues / Limitations + +1. We are using an iframe inside the extension - this should be done without using an iframe if doing for real. +1. You need to be logged in via SSO 1st in the main browser because verint auth refuses to run in an iframe. +1. The whole copilot resets each time you close and reopen the extension... which actually has the interesting side effect of giving us a quick way to reset the copilot between calls + diff --git a/copilot-extension/images/icon-128.png b/copilot-extension/images/icon-128.png new file mode 100644 index 0000000..0aaa588 Binary files /dev/null and b/copilot-extension/images/icon-128.png differ diff --git a/copilot-extension/images/icon-16.png b/copilot-extension/images/icon-16.png new file mode 100644 index 0000000..d9f8613 Binary files /dev/null and b/copilot-extension/images/icon-16.png differ diff --git a/copilot-extension/images/icon-32.png b/copilot-extension/images/icon-32.png new file mode 100644 index 0000000..34262cd Binary files /dev/null and b/copilot-extension/images/icon-32.png differ diff --git a/copilot-extension/images/icon-48.png b/copilot-extension/images/icon-48.png new file mode 100644 index 0000000..1fe33dc Binary files /dev/null and b/copilot-extension/images/icon-48.png differ diff --git a/copilot-extension/manifest.json b/copilot-extension/manifest.json new file mode 100644 index 0000000..e2c057a --- /dev/null +++ b/copilot-extension/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "Verint Copilot", + "description": "Verint Copilot Side-panel Extension", + "version": "1.0", + "manifest_version": 3, + "background": { + "service_worker": "service-worker.js" + }, + "side_panel": { + "default_path": "src/pages/side-panel/index.html" + }, + "permissions": ["sidePanel", "tabs"], + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, + "icons": { + "16": "images/icon-16.png", + "32": "images/icon-32.png", + "48": "images/icon-48.png", + "128": "images/icon-128.png" + }, + "web_accessible_resources": [ + { + "matches": ["*://*/*"], + "resources": [ + "assets/js/*.js", + "assets/css/*.css", + "assets/svg/*.svg", + "assets/png/*.png", + "icon.svg", + "blob/*" + ] + } + ] +} diff --git a/copilot-extension/service-worker.js b/copilot-extension/service-worker.js new file mode 100644 index 0000000..dd3db75 --- /dev/null +++ b/copilot-extension/service-worker.js @@ -0,0 +1,4 @@ +// Allows users to open the side panel by clicking on the action toolbar icon +chrome.sidePanel + .setPanelBehavior({ openPanelOnActionClick: true }) + .catch((error) => console.error(error)); \ No newline at end of file diff --git a/copilot-extension/src/pages/panel/panel.css b/copilot-extension/src/pages/panel/panel.css new file mode 100644 index 0000000..42e135f --- /dev/null +++ b/copilot-extension/src/pages/panel/panel.css @@ -0,0 +1,6 @@ +body, html {width: 100%; height: 100%; margin: 0; padding: 0} +iframe{ + position:absolute; + width:100%; + height:100%; +} \ No newline at end of file diff --git a/copilot-extension/src/pages/side-panel/index.html b/copilot-extension/src/pages/side-panel/index.html new file mode 100644 index 0000000..6bf5a4d --- /dev/null +++ b/copilot-extension/src/pages/side-panel/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + \ No newline at end of file