From a10a49152ec14c14a44032a4b8fd21c400db0247 Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Tue, 11 Mar 2025 18:50:10 +0800 Subject: [PATCH] feat(richtext): spoiler --- deno.json | 2 +- richText/span.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deno.json b/deno.json index d501531..4076058 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@blah/core", - "version": "0.4.1", + "version": "0.4.2", "exports": { "./crypto": "./crypto/mod.ts", "./identity": "./identity/mod.ts", diff --git a/richText/span.ts b/richText/span.ts index 8090984..2ab5052 100644 --- a/richText/span.ts +++ b/richText/span.ts @@ -7,6 +7,7 @@ export const blahRichTextSpanAttributesSchema = z.object({ s: z.boolean().default(false), m: z.boolean().default(false), tag: z.boolean().default(false), + spoiler: z.boolean().default(false), link: z.string().url().optional(), }); @@ -17,6 +18,7 @@ export type BlahRichTextSpanAttributes = { s?: boolean; m?: boolean; tag?: boolean; + spoiler?: boolean; link?: string | undefined; };