You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
having to go back and forth between blockkit builder and code is a bit tedious because of formatting differences between json (which is what blockkit builder accepts) and anything else you might use.
It seems like the entirety of the blockkit you design via the builder is URL-encoded, so we could build a pretty quick helper to generate the link for an array of blockkit blocks.
Describe the solution you'd like
A TS/JS utility that will return the blockkit builder URL provided an array of blockkit blocks:
// if it's a utility functionconsole.log(toBlockKitBuilderURL([/*array of KnownBlocks*/])// https://api.slack.com/tools/block-kit-builder?mode=message&blocks=<blahblahblah>// or using some imaginary class-based blockkit builder tool **nudge nudge**console.log(Builder.section().section().section().toBlockKitBuilderURL());
Describe alternatives you've considered
copy-pasting almost-json into vscode and using the Fix JSON extension to format the contents
The text was updated successfully, but these errors were encountered:
Hi Jimmy, you should check out slack-block-builder. It's got the chainable interfaces you're referred to, as well as a printPreviewUrl() method for every surface.
Is your feature request related to a problem? Please describe.
having to go back and forth between blockkit builder and code is a bit tedious because of formatting differences between
json
(which is what blockkit builder accepts) and anything else you might use.It seems like the entirety of the blockkit you design via the builder is URL-encoded, so we could build a pretty quick helper to generate the link for an array of blockkit blocks.
Describe the solution you'd like
A TS/JS utility that will return the blockkit builder URL provided an array of blockkit blocks:
Describe alternatives you've considered
copy-pasting almost-json into vscode and using the Fix JSON extension to format the contents
The text was updated successfully, but these errors were encountered: