feat(richtext): spoiler

This commit is contained in:
Shibo Lyu 2025-03-11 18:50:10 +08:00
parent f0edaba656
commit a10a49152e
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@blah/core",
"version": "0.4.1",
"version": "0.4.2",
"exports": {
"./crypto": "./crypto/mod.ts",
"./identity": "./identity/mod.ts",

View file

@ -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;
};