···22export * as ComDeckbelcherActorProfile from "./types/com/deckbelcher/actor/profile.js";
33export * as ComDeckbelcherCollectionList from "./types/com/deckbelcher/collection/list.js";
44export * as ComDeckbelcherDeckList from "./types/com/deckbelcher/deck/list.js";
55-export * as ComDeckbelcherRichtextFacet from "./types/com/deckbelcher/richtext/facet.js";
65export * as ComDeckbelcherRichtext from "./types/com/deckbelcher/richtext.js";
66+export * as ComDeckbelcherRichtextFacet from "./types/com/deckbelcher/richtext/facet.js";
77export * as ComDeckbelcherSocialLike from "./types/com/deckbelcher/social/like.js";
···1717 @maxLength(320)
1818 format?: string;
19192020+ /** Deck primer with strategy, combos, and card choices. */
2121+ primer?: com.deckbelcher.richtext.Document;
2222+2023 /** Array of cards in the decklist. */
2124 @required
2225 cards: Card[];
2323-2424- /** Deck primer with strategy, combos, and card choices. */
2525- primer?: com.deckbelcher.richtext.Main;
26262727 /** Timestamp when the decklist was created. */
2828 @required
+42-4
typelex/richtext.tsp
···3344namespace com.deckbelcher.richtext {
55 /**
66- * Rich text content with optional facet annotations.
77- * Used for primers, descriptions, and other formatted text.
66+ * A single paragraph of rich text with optional facet annotations.
77+ * Used for descriptions and other short formatted text.
88 */
99 model Main {
1010- /** The text content. */
1010+ /** The plain text content (no markdown symbols). */
1111 @maxGraphemes(50000)
1212 @maxLength(500000)
1313 text?: string;
14141515- /** Annotations of text (mentions, URLs, hashtags, card references, etc). */
1515+ /** Annotations of text (mentions, URLs, hashtags, formatting, etc). */
1616+ facets?: com.deckbelcher.richtext.facet.Main[];
1717+ }
1818+1919+ /**
2020+ * A multi-block rich text document.
2121+ * Used for primers and other long-form content.
2222+ */
2323+ model Document {
2424+ /** Array of blocks (paragraphs, headings, etc). */
2525+ @required
2626+ content: (ParagraphBlock | HeadingBlock | unknown)[];
2727+ }
2828+2929+ /** A paragraph block with text and optional facets. */
3030+ model ParagraphBlock {
3131+ /** The plain text content (no markdown symbols). */
3232+ @maxGraphemes(50000)
3333+ @maxLength(500000)
3434+ text?: string;
3535+3636+ /** Annotations of text (formatting, mentions, links, etc). */
3737+ facets?: com.deckbelcher.richtext.facet.Main[];
3838+ }
3939+4040+ /** A heading block with level, text, and optional facets. */
4141+ model HeadingBlock {
4242+ /** Heading level (1-6). */
4343+ @required
4444+ @minValue(1)
4545+ @maxValue(6)
4646+ level: integer;
4747+4848+ /** The plain text content (no markdown symbols). */
4949+ @maxGraphemes(1000)
5050+ @maxLength(10000)
5151+ text?: string;
5252+5353+ /** Annotations of text (formatting, mentions, links, etc). */
1654 facets?: com.deckbelcher.richtext.facet.Main[];
1755 }
1856}