Skip to content

Commit

Permalink
fix(cli): readded missing files from the published cli package
Browse files Browse the repository at this point in the history
readded missing files from the published cli package.

COMUI-1622
  • Loading branch information
daragh-king-genesys committed Apr 28, 2023
1 parent afed63a commit 26c8eb9
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 3 deletions.
21 changes: 21 additions & 0 deletions packages/iframe-coordinator-cli/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Genesys Cloud Services, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
40 changes: 40 additions & 0 deletions packages/iframe-coordinator-cli/example-ifc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = function(frameRouter) {
let hostname = window.location.hostname;

frameRouter.clientConfig = {
clients: {
application1: {
url: `http://${hostname}:8080/client-app-1/#/`,
assignedRoute: '/app1'
},
application2: {
// We are removing the built-in proxy route example for now, as there are conflicts with vite and
// we will be adding improvements to the proxy behavior in the near future
url: `http://${hostname}:8080/client-app-2/#/`,
assignedRoute: '/app2',
allow: 'camera http://localhost:8080;', // optional
sandbox: 'allow-presentation allow-modals', // optional
defaultTitle: 'iframe Application 2 Example' // optional, but needed for accessibility
}
},
envData: {
locale: 'en-US',
hostRootUrl: window.location.origin + '/#/',
registeredKeys: [
{ key: 'a', ctrlKey: true },
{ key: 'b', altKey: true },
{ key: 'a', ctrlKey: true, shiftKey: true }
],
custom: getCustomClientData()
}
};
return {
// These are the topics that the host app should display payloads for when
// the client publishes on them.
publishTopics: ['publish.topic']
};
};

function getCustomClientData() {
return { test: 'This is only a test' };
}
5 changes: 5 additions & 0 deletions packages/iframe-coordinator-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"typescript": "^4.8.3",
"vite": "^3.1.3"
},
"files": [
"dist",
"ifc-cli.js",
"example-ifc.config.js"
],
"bin": {
"ifc-cli": "ifc-cli.js"
},
Expand Down
21 changes: 21 additions & 0 deletions packages/iframe-coordinator/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Genesys Cloud Services, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
18 changes: 15 additions & 3 deletions packages/iframe-coordinator/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export default [
file: 'dist/index.js',
format: 'es'
},
external: ['decoders'],
plugins: [
typescript(),
replace({
__PACKAGE_VERSION__: packageVersion
preventAssignment: true,
values: {
'__PACKAGE_VERSION__': packageVersion
}
})
]
},
Expand All @@ -25,10 +29,14 @@ export default [
file: 'dist/client.js',
format: 'es'
},
external: ['decoders'],
plugins: [
typescript(),
replace({
__PACKAGE_VERSION__: packageVersion
preventAssignment: true,
values: {
'__PACKAGE_VERSION__': packageVersion
}
})
]
},
Expand All @@ -38,10 +46,14 @@ export default [
file: 'dist/host.js',
format: 'es'
},
external: ['decoders'],
plugins: [
typescript(),
replace({
__PACKAGE_VERSION__: packageVersion
preventAssignment: true,
values: {
'__PACKAGE_VERSION__': packageVersion
}
})
]
}
Expand Down

0 comments on commit 26c8eb9

Please sign in to comment.