mirror of
https://github.com/Blah-IM/typescript-core.git
synced 2025-04-30 16:21:10 +00:00
feat(richtext): spoiler
This commit is contained in:
parent
f0edaba656
commit
a10a49152e
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@blah/core",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.2",
|
||||
"exports": {
|
||||
"./crypto": "./crypto/mod.ts",
|
||||
"./identity": "./identity/mod.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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue