fox-block-builder
Version:
Maintainable code for loop slack-block-kit-like modal builder
25 lines • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Surfaces = void 0;
exports.Modal = Modal;
/* eslint-disable max-len */
const modal_1 = require("./modal");
/**
* @param {Object} [config] Parameters passed to the constructor.
* @param {string} [config.title] Sets a title for your modal.
* @param {string} [config.close] Sets the text for the close button.
* @param {string} [config.submit] Sets the text for the submit button.
* @param {string} [config.callbackId] Sets a string sent back to your server together with all action and submission events.
* @param {string} [config.externalId] Sets a custom identifier that must be unique for all views on a per-team basis.
* @param {string} [config.privateMetaData] Sets a string sent back to your server together with all action and submission events.
*
* {@link https://api.slack.com/reference/surfaces/views|View in Slack API Documentation}
*/
function Modal(params) {
return new modal_1.ModalBuilder(params);
}
const surfaces = {
Modal,
};
exports.Surfaces = surfaces;
//# sourceMappingURL=index.js.map
;