Plugin configuration UI connector for CloudQuery Cloud App.
@cloudquery/plugin-config-ui-connector
is a library designed to establish communication between CloudQuery Cloud App form and Plugin UI.
To install the library, you can use npm:
npm install @cloudquery/plugin-config-ui-connector
Below is an example of how to use the getPluginUiMessageHandler
function provided by the library.
import { getPluginUiMessageHandler } from '@cloudquery/plugin-config-ui-connector';
// Create a message handler instance
const messageHandler = getPluginUiMessageHandler();
// Example of sending a message to the CloudQuery Cloud App form
messageHandler.sendMessage('height_changed', { height: 200 });
// Example of receiving a message from the CloudQuery Cloud App form
messageHandler.subscribeToMessage('init', function (payload) {
customCallback(payload);
});
To build the library, run:
npm run build
To run the test suite, execute:
npm test
If you encounter any issues or have feature requests, please feel free to open an issue on the GitHub repository.
This project is licensed under the Mozilla Public License..