The element types this version of the runtime knows, by the name a document spells them with.
A document's type is an open string: the schema does not enumerate the
types, so a host may carry a document holding a type through a validator
older than that type without having it rejected on the way. This registry
is the other half of that rule. It does enumerate them, so a type it does
not know is refused here, loudly, naming the type and the element - never an
element quietly passed through as though the runtime had understood it.
The types are heading, text, image, divider, link,
text_question, choice_question, boolean_question, secret_question,
button and variant.
iex> Riddler.Screens.Registry.types()
["boolean_question", "button", "choice_question", "divider", "heading", "image", "link", "secret_question", "text", "text_question", "variant"]
iex> Riddler.Screens.Registry.fetch("heading")
{:ok, Riddler.Screens.Type.Heading}
iex> Riddler.Screens.Registry.fetch("carousel")
:error
Summary
Functions
The module implementing type, or :error when this version has no such
type.
Every type name this version knows, sorted.