jsx-slack
Version:
Build JSON object for Slack Block Kit surfaces from JSX
2 lines (1 loc) • 878 B
JavaScript
import{Select as e}from"../elements/Select.mjs";import{Textarea as o}from"../input/Textarea.mjs";import{availableActionTypes as i}from"../layout/Actions.mjs";import{Divider as t}from"../layout/Divider.mjs";import{Header as r}from"../layout/Header.mjs";import{Image as a}from"../layout/Image.mjs";import{Input as m,knownInputs as n}from"../layout/Input.mjs";import{availableSectionAccessoryTypes as c,Section as s}from"../layout/Section.mjs";import{Video as l}from"../layout/Video.mjs";import{generateBlocksContainer as p,generateActionsValidator as d,generateSectionValidator as f}from"./utils.mjs";const g=p({name:"Blocks",availableBlockTypes:{actions:d([...i]),call:!0,context:!0,divider:!0,file:!0,header:!0,image:!0,input:!0,section:f(c),video:!0},aliases:{header:r,hr:t,img:a,input:m,section:s,select:e,textarea:o,video:l},typesToCheckMissingLabel:n});export{g as Blocks};