@atcute/pckt 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/lexicons/index.d.ts +1 -6
- package/dist/lexicons/index.d.ts.map +1 -1
- package/dist/lexicons/index.js +1 -6
- package/dist/lexicons/index.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/blockquote.d.ts +3 -3
- package/dist/lexicons/types/blog/pckt/block/blockquote.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/blockquote.js +3 -3
- package/dist/lexicons/types/blog/pckt/block/blockquote.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/blueskyEmbed.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/bulletList.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/bulletList.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/codeBlock.d.ts +5 -19
- package/dist/lexicons/types/blog/pckt/block/codeBlock.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/codeBlock.js +5 -18
- package/dist/lexicons/types/blog/pckt/block/codeBlock.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/hardBreak.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/heading.d.ts +10 -20
- package/dist/lexicons/types/blog/pckt/block/heading.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/heading.js +13 -21
- package/dist/lexicons/types/blog/pckt/block/heading.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/horizontalRule.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/iframe.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/image.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/image.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/listItem.d.ts +3 -3
- package/dist/lexicons/types/blog/pckt/block/listItem.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/listItem.js +3 -3
- package/dist/lexicons/types/blog/pckt/block/listItem.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/mention.d.ts +5 -0
- package/dist/lexicons/types/blog/pckt/block/mention.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/mention.js +5 -0
- package/dist/lexicons/types/blog/pckt/block/mention.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/orderedList.d.ts +1 -14
- package/dist/lexicons/types/blog/pckt/block/orderedList.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/orderedList.js +1 -11
- package/dist/lexicons/types/blog/pckt/block/orderedList.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts +5 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/paragraph.js +7 -0
- package/dist/lexicons/types/blog/pckt/block/paragraph.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/taskItem.d.ts +5 -18
- package/dist/lexicons/types/blog/pckt/block/taskItem.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/taskItem.js +5 -15
- package/dist/lexicons/types/blog/pckt/block/taskItem.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/taskList.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/taskList.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/text.d.ts +5 -12
- package/dist/lexicons/types/blog/pckt/block/text.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/text.js +6 -25
- package/dist/lexicons/types/blog/pckt/block/text.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/block/website.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/document.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/document.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/publication.d.ts +5 -0
- package/dist/lexicons/types/blog/pckt/publication.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/publication.js +5 -0
- package/dist/lexicons/types/blog/pckt/publication.js.map +1 -1
- package/dist/lexicons/types/blog/pckt/richtext/facet.d.ts +125 -0
- package/dist/lexicons/types/blog/pckt/richtext/facet.d.ts.map +1 -0
- package/dist/lexicons/types/blog/pckt/richtext/facet.js +80 -0
- package/dist/lexicons/types/blog/pckt/richtext/facet.js.map +1 -0
- package/dist/lexicons/types/blog/pckt/theme.d.ts.map +1 -1
- package/dist/lexicons/types/blog/pckt/theme.js.map +1 -1
- package/lib/lexicons/index.ts +1 -6
- package/lib/lexicons/types/blog/pckt/block/blockquote.ts +3 -3
- package/lib/lexicons/types/blog/pckt/block/codeBlock.ts +5 -21
- package/lib/lexicons/types/blog/pckt/block/heading.ts +14 -26
- package/lib/lexicons/types/blog/pckt/block/listItem.ts +3 -3
- package/lib/lexicons/types/blog/pckt/block/mention.ts +5 -0
- package/lib/lexicons/types/blog/pckt/block/orderedList.ts +1 -14
- package/lib/lexicons/types/blog/pckt/block/paragraph.ts +7 -0
- package/lib/lexicons/types/blog/pckt/block/taskItem.ts +5 -18
- package/lib/lexicons/types/blog/pckt/block/text.ts +6 -27
- package/lib/lexicons/types/blog/pckt/publication.ts +5 -0
- package/lib/lexicons/types/blog/pckt/richtext/facet.ts +122 -0
- package/package.json +3 -3
- package/dist/lexicons/types/blog/pckt/mark/bold.d.ts +0 -12
- package/dist/lexicons/types/blog/pckt/mark/bold.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/bold.js +0 -6
- package/dist/lexicons/types/blog/pckt/mark/bold.js.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/code.d.ts +0 -12
- package/dist/lexicons/types/blog/pckt/mark/code.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/code.js +0 -6
- package/dist/lexicons/types/blog/pckt/mark/code.js.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/italic.d.ts +0 -12
- package/dist/lexicons/types/blog/pckt/mark/italic.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/italic.js +0 -6
- package/dist/lexicons/types/blog/pckt/mark/italic.js.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/link.d.ts +0 -45
- package/dist/lexicons/types/blog/pckt/mark/link.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/link.js +0 -41
- package/dist/lexicons/types/blog/pckt/mark/link.js.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/strike.d.ts +0 -12
- package/dist/lexicons/types/blog/pckt/mark/strike.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/strike.js +0 -6
- package/dist/lexicons/types/blog/pckt/mark/strike.js.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/underline.d.ts +0 -12
- package/dist/lexicons/types/blog/pckt/mark/underline.d.ts.map +0 -1
- package/dist/lexicons/types/blog/pckt/mark/underline.js +0 -6
- package/dist/lexicons/types/blog/pckt/mark/underline.js.map +0 -1
- package/lib/lexicons/types/blog/pckt/mark/bold.ts +0 -14
- package/lib/lexicons/types/blog/pckt/mark/code.ts +0 -14
- package/lib/lexicons/types/blog/pckt/mark/italic.ts +0 -14
- package/lib/lexicons/types/blog/pckt/mark/link.ts +0 -55
- package/lib/lexicons/types/blog/pckt/mark/strike.ts +0 -14
- package/lib/lexicons/types/blog/pckt/mark/underline.ts +0 -14
|
@@ -1,45 +1,33 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
|
-
import * as
|
|
4
|
-
import * as BlogPcktBlockText from './text.js';
|
|
3
|
+
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
5
4
|
|
|
6
|
-
const _headingAttrsSchema = /*#__PURE__*/ v.object({
|
|
7
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.heading#headingAttrs')),
|
|
8
|
-
/**
|
|
9
|
-
* Heading level from 1 (most important) to 6 (least important)
|
|
10
|
-
* @minimum 1
|
|
11
|
-
* @maximum 6
|
|
12
|
-
*/
|
|
13
|
-
level: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 6)]),
|
|
14
|
-
});
|
|
15
5
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
16
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.heading')),
|
|
17
7
|
/**
|
|
18
|
-
*
|
|
8
|
+
* Facets for text formatting and features
|
|
19
9
|
*/
|
|
20
|
-
get
|
|
21
|
-
return
|
|
10
|
+
get facets() {
|
|
11
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
|
|
22
12
|
},
|
|
23
13
|
/**
|
|
24
|
-
*
|
|
14
|
+
* Heading level from 1 (most important) to 6 (least important)
|
|
15
|
+
* @minimum 1
|
|
16
|
+
* @maximum 6
|
|
25
17
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
level: /*#__PURE__*/ v.optional(
|
|
19
|
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 6)]),
|
|
20
|
+
),
|
|
21
|
+
/**
|
|
22
|
+
* The plain text content of the heading
|
|
23
|
+
*/
|
|
24
|
+
plaintext: /*#__PURE__*/ v.string(),
|
|
33
25
|
});
|
|
34
26
|
|
|
35
|
-
type headingAttrs$schematype = typeof _headingAttrsSchema;
|
|
36
27
|
type main$schematype = typeof _mainSchema;
|
|
37
28
|
|
|
38
|
-
export interface headingAttrsSchema extends headingAttrs$schematype {}
|
|
39
29
|
export interface mainSchema extends main$schematype {}
|
|
40
30
|
|
|
41
|
-
export const headingAttrsSchema = _headingAttrsSchema as headingAttrsSchema;
|
|
42
31
|
export const mainSchema = _mainSchema as mainSchema;
|
|
43
32
|
|
|
44
|
-
export interface HeadingAttrs extends v.InferInput<typeof headingAttrsSchema> {}
|
|
45
33
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
@@ -2,19 +2,19 @@ import type {} from '@atcute/lexicons';
|
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
3
|
import * as BlogPcktBlockBulletList from './bulletList.js';
|
|
4
4
|
import * as BlogPcktBlockOrderedList from './orderedList.js';
|
|
5
|
-
import * as
|
|
5
|
+
import * as BlogPcktBlockText from './text.js';
|
|
6
6
|
|
|
7
7
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
8
8
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.listItem')),
|
|
9
9
|
/**
|
|
10
|
-
* Array of block content (
|
|
10
|
+
* Array of block content (text or nested lists)
|
|
11
11
|
*/
|
|
12
12
|
get content() {
|
|
13
13
|
return /*#__PURE__*/ v.array(
|
|
14
14
|
/*#__PURE__*/ v.variant([
|
|
15
15
|
BlogPcktBlockBulletList.mainSchema,
|
|
16
16
|
BlogPcktBlockOrderedList.mainSchema,
|
|
17
|
-
|
|
17
|
+
BlogPcktBlockText.mainSchema,
|
|
18
18
|
]),
|
|
19
19
|
);
|
|
20
20
|
},
|
|
@@ -7,6 +7,11 @@ const _mainSchema = /*#__PURE__*/ v.object({
|
|
|
7
7
|
* The DID of the mentioned user (e.g., did:plc:abc123xyz). This is the canonical reference that persists even if the user changes their handle, following app.bsky.richtext.facet#mention
|
|
8
8
|
*/
|
|
9
9
|
did: /*#__PURE__*/ v.didString(),
|
|
10
|
+
/**
|
|
11
|
+
* The handle of the mentioned user at the time of mention (e.g., alice.bsky.social). Used for display text and byte offset calculation in facets.
|
|
12
|
+
* @maxLength 253
|
|
13
|
+
*/
|
|
14
|
+
handle: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.handleString(), [/*#__PURE__*/ v.stringLength(0, 253)]),
|
|
10
15
|
});
|
|
11
16
|
|
|
12
17
|
type main$schematype = typeof _mainSchema;
|
|
@@ -4,23 +4,14 @@ import * as BlogPcktBlockListItem from './listItem.js';
|
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.orderedList')),
|
|
7
|
-
/**
|
|
8
|
-
* Optional attributes for the ordered list
|
|
9
|
-
*/
|
|
10
|
-
get attrs() {
|
|
11
|
-
return /*#__PURE__*/ v.optional(orderedListAttrsSchema);
|
|
12
|
-
},
|
|
13
7
|
/**
|
|
14
8
|
* Array of list items
|
|
15
9
|
*/
|
|
16
10
|
get content() {
|
|
17
11
|
return /*#__PURE__*/ v.array(BlogPcktBlockListItem.mainSchema);
|
|
18
12
|
},
|
|
19
|
-
});
|
|
20
|
-
const _orderedListAttrsSchema = /*#__PURE__*/ v.object({
|
|
21
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.orderedList#orderedListAttrs')),
|
|
22
13
|
/**
|
|
23
|
-
* Starting number for the ordered list
|
|
14
|
+
* Starting number for the ordered list (default: 1)
|
|
24
15
|
* @minimum 1
|
|
25
16
|
*/
|
|
26
17
|
start: /*#__PURE__*/ v.optional(
|
|
@@ -29,13 +20,9 @@ const _orderedListAttrsSchema = /*#__PURE__*/ v.object({
|
|
|
29
20
|
});
|
|
30
21
|
|
|
31
22
|
type main$schematype = typeof _mainSchema;
|
|
32
|
-
type orderedListAttrs$schematype = typeof _orderedListAttrsSchema;
|
|
33
23
|
|
|
34
24
|
export interface mainSchema extends main$schematype {}
|
|
35
|
-
export interface orderedListAttrsSchema extends orderedListAttrs$schematype {}
|
|
36
25
|
|
|
37
26
|
export const mainSchema = _mainSchema as mainSchema;
|
|
38
|
-
export const orderedListAttrsSchema = _orderedListAttrsSchema as orderedListAttrsSchema;
|
|
39
27
|
|
|
40
28
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
41
|
-
export interface OrderedListAttrs extends v.InferInput<typeof orderedListAttrsSchema> {}
|
|
@@ -3,6 +3,7 @@ import * as v from '@atcute/lexicons/validations';
|
|
|
3
3
|
import * as BlogPcktBlockHardBreak from './hardBreak.js';
|
|
4
4
|
import * as BlogPcktBlockMention from './mention.js';
|
|
5
5
|
import * as BlogPcktBlockText from './text.js';
|
|
6
|
+
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
6
7
|
|
|
7
8
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
8
9
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.paragraph')),
|
|
@@ -20,6 +21,12 @@ const _mainSchema = /*#__PURE__*/ v.object({
|
|
|
20
21
|
),
|
|
21
22
|
);
|
|
22
23
|
},
|
|
24
|
+
/**
|
|
25
|
+
* Facets for text formatting and features within this paragraph
|
|
26
|
+
*/
|
|
27
|
+
get facets() {
|
|
28
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
|
|
29
|
+
},
|
|
23
30
|
});
|
|
24
31
|
|
|
25
32
|
type main$schematype = typeof _mainSchema;
|
|
@@ -1,38 +1,25 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
|
-
import * as
|
|
3
|
+
import * as BlogPcktBlockText from './text.js';
|
|
4
4
|
|
|
5
5
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
6
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.taskItem')),
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Whether the task is completed
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
return taskItemAttrsSchema;
|
|
12
|
-
},
|
|
10
|
+
checked: /*#__PURE__*/ v.boolean(),
|
|
13
11
|
/**
|
|
14
|
-
* Array of
|
|
12
|
+
* Array of text blocks
|
|
15
13
|
*/
|
|
16
14
|
get content() {
|
|
17
|
-
return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([
|
|
15
|
+
return /*#__PURE__*/ v.array(/*#__PURE__*/ v.variant([BlogPcktBlockText.mainSchema]));
|
|
18
16
|
},
|
|
19
17
|
});
|
|
20
|
-
const _taskItemAttrsSchema = /*#__PURE__*/ v.object({
|
|
21
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.taskItem#taskItemAttrs')),
|
|
22
|
-
/**
|
|
23
|
-
* Whether the task is checked or unchecked
|
|
24
|
-
*/
|
|
25
|
-
checked: /*#__PURE__*/ v.boolean(),
|
|
26
|
-
});
|
|
27
18
|
|
|
28
19
|
type main$schematype = typeof _mainSchema;
|
|
29
|
-
type taskItemAttrs$schematype = typeof _taskItemAttrsSchema;
|
|
30
20
|
|
|
31
21
|
export interface mainSchema extends main$schematype {}
|
|
32
|
-
export interface taskItemAttrsSchema extends taskItemAttrs$schematype {}
|
|
33
22
|
|
|
34
23
|
export const mainSchema = _mainSchema as mainSchema;
|
|
35
|
-
export const taskItemAttrsSchema = _taskItemAttrsSchema as taskItemAttrsSchema;
|
|
36
24
|
|
|
37
25
|
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
38
|
-
export interface TaskItemAttrs extends v.InferInput<typeof taskItemAttrsSchema> {}
|
|
@@ -1,40 +1,19 @@
|
|
|
1
1
|
import type {} from '@atcute/lexicons';
|
|
2
2
|
import * as v from '@atcute/lexicons/validations';
|
|
3
|
-
import * as
|
|
4
|
-
import * as BlogPcktMarkCode from '../mark/code.js';
|
|
5
|
-
import * as BlogPcktMarkItalic from '../mark/italic.js';
|
|
6
|
-
import * as BlogPcktMarkLink from '../mark/link.js';
|
|
7
|
-
import * as BlogPcktMarkStrike from '../mark/strike.js';
|
|
8
|
-
import * as BlogPcktMarkUnderline from '../mark/underline.js';
|
|
3
|
+
import * as BlogPcktRichtextFacet from '../richtext/facet.js';
|
|
9
4
|
|
|
10
5
|
const _mainSchema = /*#__PURE__*/ v.object({
|
|
11
6
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.block.text')),
|
|
12
7
|
/**
|
|
13
|
-
*
|
|
8
|
+
* Facets for text formatting and features
|
|
14
9
|
*/
|
|
15
|
-
get
|
|
16
|
-
return /*#__PURE__*/ v.optional(
|
|
17
|
-
/*#__PURE__*/ v.array(
|
|
18
|
-
/*#__PURE__*/ v.variant([
|
|
19
|
-
BlogPcktMarkBold.mainSchema,
|
|
20
|
-
BlogPcktMarkCode.mainSchema,
|
|
21
|
-
BlogPcktMarkItalic.mainSchema,
|
|
22
|
-
BlogPcktMarkLink.mainSchema,
|
|
23
|
-
BlogPcktMarkStrike.mainSchema,
|
|
24
|
-
BlogPcktMarkUnderline.mainSchema,
|
|
25
|
-
]),
|
|
26
|
-
),
|
|
27
|
-
);
|
|
10
|
+
get facets() {
|
|
11
|
+
return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(BlogPcktRichtextFacet.mainSchema));
|
|
28
12
|
},
|
|
29
13
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @maxLength 10000
|
|
32
|
-
* @maxGraphemes 5000
|
|
14
|
+
* The plain text content
|
|
33
15
|
*/
|
|
34
|
-
|
|
35
|
-
/*#__PURE__*/ v.stringLength(0, 10000),
|
|
36
|
-
/*#__PURE__*/ v.stringGraphemes(0, 5000),
|
|
37
|
-
]),
|
|
16
|
+
plaintext: /*#__PURE__*/ v.string(),
|
|
38
17
|
});
|
|
39
18
|
|
|
40
19
|
type main$schematype = typeof _mainSchema;
|
|
@@ -75,6 +75,11 @@ const _mainSchema = /*#__PURE__*/ v.record(
|
|
|
75
75
|
);
|
|
76
76
|
const _preferencesSchema = /*#__PURE__*/ v.object({
|
|
77
77
|
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.publication#preferences')),
|
|
78
|
+
/**
|
|
79
|
+
* Whether to display credit line on the publication
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
showCredit: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean(), true),
|
|
78
83
|
/**
|
|
79
84
|
* Whether documents from this publication should appear in public discover feeds
|
|
80
85
|
* @default true
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type {} from '@atcute/lexicons';
|
|
2
|
+
import * as v from '@atcute/lexicons/validations';
|
|
3
|
+
|
|
4
|
+
const _atMentionSchema = /*#__PURE__*/ v.object({
|
|
5
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#atMention')),
|
|
6
|
+
atURI: /*#__PURE__*/ v.genericUriString(),
|
|
7
|
+
});
|
|
8
|
+
const _boldSchema = /*#__PURE__*/ v.object({
|
|
9
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#bold')),
|
|
10
|
+
});
|
|
11
|
+
const _byteSliceSchema = /*#__PURE__*/ v.object({
|
|
12
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#byteSlice')),
|
|
13
|
+
/**
|
|
14
|
+
* @minimum 0
|
|
15
|
+
*/
|
|
16
|
+
byteEnd: /*#__PURE__*/ v.integer(),
|
|
17
|
+
/**
|
|
18
|
+
* @minimum 0
|
|
19
|
+
*/
|
|
20
|
+
byteStart: /*#__PURE__*/ v.integer(),
|
|
21
|
+
});
|
|
22
|
+
const _codeSchema = /*#__PURE__*/ v.object({
|
|
23
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#code')),
|
|
24
|
+
});
|
|
25
|
+
const _didMentionSchema = /*#__PURE__*/ v.object({
|
|
26
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#didMention')),
|
|
27
|
+
did: /*#__PURE__*/ v.didString(),
|
|
28
|
+
});
|
|
29
|
+
const _highlightSchema = /*#__PURE__*/ v.object({
|
|
30
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#highlight')),
|
|
31
|
+
});
|
|
32
|
+
const _idSchema = /*#__PURE__*/ v.object({
|
|
33
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#id')),
|
|
34
|
+
id: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
|
|
35
|
+
});
|
|
36
|
+
const _italicSchema = /*#__PURE__*/ v.object({
|
|
37
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#italic')),
|
|
38
|
+
});
|
|
39
|
+
const _linkSchema = /*#__PURE__*/ v.object({
|
|
40
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#link')),
|
|
41
|
+
uri: /*#__PURE__*/ v.string(),
|
|
42
|
+
});
|
|
43
|
+
const _mainSchema = /*#__PURE__*/ v.object({
|
|
44
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet')),
|
|
45
|
+
get features() {
|
|
46
|
+
return /*#__PURE__*/ v.array(
|
|
47
|
+
/*#__PURE__*/ v.variant([
|
|
48
|
+
atMentionSchema,
|
|
49
|
+
boldSchema,
|
|
50
|
+
codeSchema,
|
|
51
|
+
didMentionSchema,
|
|
52
|
+
highlightSchema,
|
|
53
|
+
idSchema,
|
|
54
|
+
italicSchema,
|
|
55
|
+
linkSchema,
|
|
56
|
+
strikethroughSchema,
|
|
57
|
+
underlineSchema,
|
|
58
|
+
]),
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
get index() {
|
|
62
|
+
return byteSliceSchema;
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
const _strikethroughSchema = /*#__PURE__*/ v.object({
|
|
66
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#strikethrough')),
|
|
67
|
+
});
|
|
68
|
+
const _underlineSchema = /*#__PURE__*/ v.object({
|
|
69
|
+
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.richtext.facet#underline')),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
type atMention$schematype = typeof _atMentionSchema;
|
|
73
|
+
type bold$schematype = typeof _boldSchema;
|
|
74
|
+
type byteSlice$schematype = typeof _byteSliceSchema;
|
|
75
|
+
type code$schematype = typeof _codeSchema;
|
|
76
|
+
type didMention$schematype = typeof _didMentionSchema;
|
|
77
|
+
type highlight$schematype = typeof _highlightSchema;
|
|
78
|
+
type id$schematype = typeof _idSchema;
|
|
79
|
+
type italic$schematype = typeof _italicSchema;
|
|
80
|
+
type link$schematype = typeof _linkSchema;
|
|
81
|
+
type main$schematype = typeof _mainSchema;
|
|
82
|
+
type strikethrough$schematype = typeof _strikethroughSchema;
|
|
83
|
+
type underline$schematype = typeof _underlineSchema;
|
|
84
|
+
|
|
85
|
+
export interface atMentionSchema extends atMention$schematype {}
|
|
86
|
+
export interface boldSchema extends bold$schematype {}
|
|
87
|
+
export interface byteSliceSchema extends byteSlice$schematype {}
|
|
88
|
+
export interface codeSchema extends code$schematype {}
|
|
89
|
+
export interface didMentionSchema extends didMention$schematype {}
|
|
90
|
+
export interface highlightSchema extends highlight$schematype {}
|
|
91
|
+
export interface idSchema extends id$schematype {}
|
|
92
|
+
export interface italicSchema extends italic$schematype {}
|
|
93
|
+
export interface linkSchema extends link$schematype {}
|
|
94
|
+
export interface mainSchema extends main$schematype {}
|
|
95
|
+
export interface strikethroughSchema extends strikethrough$schematype {}
|
|
96
|
+
export interface underlineSchema extends underline$schematype {}
|
|
97
|
+
|
|
98
|
+
export const atMentionSchema = _atMentionSchema as atMentionSchema;
|
|
99
|
+
export const boldSchema = _boldSchema as boldSchema;
|
|
100
|
+
export const byteSliceSchema = _byteSliceSchema as byteSliceSchema;
|
|
101
|
+
export const codeSchema = _codeSchema as codeSchema;
|
|
102
|
+
export const didMentionSchema = _didMentionSchema as didMentionSchema;
|
|
103
|
+
export const highlightSchema = _highlightSchema as highlightSchema;
|
|
104
|
+
export const idSchema = _idSchema as idSchema;
|
|
105
|
+
export const italicSchema = _italicSchema as italicSchema;
|
|
106
|
+
export const linkSchema = _linkSchema as linkSchema;
|
|
107
|
+
export const mainSchema = _mainSchema as mainSchema;
|
|
108
|
+
export const strikethroughSchema = _strikethroughSchema as strikethroughSchema;
|
|
109
|
+
export const underlineSchema = _underlineSchema as underlineSchema;
|
|
110
|
+
|
|
111
|
+
export interface AtMention extends v.InferInput<typeof atMentionSchema> {}
|
|
112
|
+
export interface Bold extends v.InferInput<typeof boldSchema> {}
|
|
113
|
+
export interface ByteSlice extends v.InferInput<typeof byteSliceSchema> {}
|
|
114
|
+
export interface Code extends v.InferInput<typeof codeSchema> {}
|
|
115
|
+
export interface DidMention extends v.InferInput<typeof didMentionSchema> {}
|
|
116
|
+
export interface Highlight extends v.InferInput<typeof highlightSchema> {}
|
|
117
|
+
export interface Id extends v.InferInput<typeof idSchema> {}
|
|
118
|
+
export interface Italic extends v.InferInput<typeof italicSchema> {}
|
|
119
|
+
export interface Link extends v.InferInput<typeof linkSchema> {}
|
|
120
|
+
export interface Main extends v.InferInput<typeof mainSchema> {}
|
|
121
|
+
export interface Strikethrough extends v.InferInput<typeof strikethroughSchema> {}
|
|
122
|
+
export interface Underline extends v.InferInput<typeof underlineSchema> {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/pckt",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"description": "pckt (blog.pckt.*) schema definitions",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"atcute",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atcute/lexicons": "^1.2.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@atcute/lex-cli": "^2.5.
|
|
31
|
+
"@atcute/lex-cli": "^2.5.1"
|
|
32
32
|
},
|
|
33
33
|
"atcute:lexicons": {
|
|
34
34
|
"mappings": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "
|
|
42
|
+
"build": "tsgo",
|
|
43
43
|
"pull": "lex-cli pull",
|
|
44
44
|
"generate": "rm -r ./lib/lexicons/; lex-cli generate",
|
|
45
45
|
"prepublish": "rm -rf dist; pnpm run build"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.bold">, undefined>;
|
|
4
|
-
}>;
|
|
5
|
-
type main$schematype = typeof _mainSchema;
|
|
6
|
-
export interface mainSchema extends main$schematype {
|
|
7
|
-
}
|
|
8
|
-
export declare const mainSchema: mainSchema;
|
|
9
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=bold.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bold.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/bold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;EAEf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bold.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/bold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC/E,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.code">, undefined>;
|
|
4
|
-
}>;
|
|
5
|
-
type main$schematype = typeof _mainSchema;
|
|
6
|
-
export interface mainSchema extends main$schematype {
|
|
7
|
-
}
|
|
8
|
-
export declare const mainSchema: mainSchema;
|
|
9
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=code.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/code.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;EAEf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/code.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC/E,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.italic">, undefined>;
|
|
4
|
-
}>;
|
|
5
|
-
type main$schematype = typeof _mainSchema;
|
|
6
|
-
export interface mainSchema extends main$schematype {
|
|
7
|
-
}
|
|
8
|
-
export declare const mainSchema: mainSchema;
|
|
9
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=italic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"italic.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/italic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;EAEf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"italic.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/italic.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACjF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _linkAttrsSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.link#linkAttrs">, undefined>;
|
|
4
|
-
/**
|
|
5
|
-
* The URL destination of the hyperlink
|
|
6
|
-
* @maxLength 2000
|
|
7
|
-
*/
|
|
8
|
-
href: v.SchemaWithConstraint<v.FormattedStringSchema<"uri">, readonly [v.StringLengthConstraint<0, 2000>]>;
|
|
9
|
-
/**
|
|
10
|
-
* Defines the relationship between the current document and the linked resource (e.g., nofollow, noopener)
|
|
11
|
-
* @maxLength 100
|
|
12
|
-
*/
|
|
13
|
-
rel: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 100>]>, undefined>;
|
|
14
|
-
/**
|
|
15
|
-
* Specifies where to open the linked document (e.g., _blank, _self)
|
|
16
|
-
* @maxLength 50
|
|
17
|
-
*/
|
|
18
|
-
target: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 50>]>, undefined>;
|
|
19
|
-
/**
|
|
20
|
-
* Additional information about the link, typically shown as a tooltip on hover
|
|
21
|
-
* @maxLength 500
|
|
22
|
-
*/
|
|
23
|
-
title: v.OptionalSchema<v.SchemaWithConstraint<v.StringSchema<string>, readonly [v.StringLengthConstraint<0, 500>]>, undefined>;
|
|
24
|
-
}>;
|
|
25
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
26
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.link">, undefined>;
|
|
27
|
-
/**
|
|
28
|
-
* Link attributes that define the hyperlink behavior and destination
|
|
29
|
-
*/
|
|
30
|
-
readonly attrs: linkAttrsSchema;
|
|
31
|
-
}>;
|
|
32
|
-
type linkAttrs$schematype = typeof _linkAttrsSchema;
|
|
33
|
-
type main$schematype = typeof _mainSchema;
|
|
34
|
-
export interface linkAttrsSchema extends linkAttrs$schematype {
|
|
35
|
-
}
|
|
36
|
-
export interface mainSchema extends main$schematype {
|
|
37
|
-
}
|
|
38
|
-
export declare const linkAttrsSchema: linkAttrsSchema;
|
|
39
|
-
export declare const mainSchema: mainSchema;
|
|
40
|
-
export interface LinkAttrs extends v.InferInput<typeof linkAttrsSchema> {
|
|
41
|
-
}
|
|
42
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/link.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,gBAAgB;;IAErB;;;OAGG;;IAIH;;;OAGG;;IAIH;;;OAGG;;IAIH;;;OAGG;;EAIF,CAAC;AACH,QAAA,MAAM,WAAW;;IAEhB;;OAEG;;EAIF,CAAC;AAEH,KAAK,oBAAoB,GAAG,OAAO,gBAAgB,CAAC;AACpD,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;CAAG;AAChE,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,eAAe,EAAuB,eAAe,CAAC;AACnE,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAC1E,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
const _linkAttrsSchema = /*#__PURE__*/ v.object({
|
|
3
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.mark.link#linkAttrs')),
|
|
4
|
-
/**
|
|
5
|
-
* The URL destination of the hyperlink
|
|
6
|
-
* @maxLength 2000
|
|
7
|
-
*/
|
|
8
|
-
href: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.genericUriString(), [
|
|
9
|
-
/*#__PURE__*/ v.stringLength(0, 2000),
|
|
10
|
-
]),
|
|
11
|
-
/**
|
|
12
|
-
* Defines the relationship between the current document and the linked resource (e.g., nofollow, noopener)
|
|
13
|
-
* @maxLength 100
|
|
14
|
-
*/
|
|
15
|
-
rel: /*#__PURE__*/ v.optional(
|
|
16
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 100)])),
|
|
17
|
-
/**
|
|
18
|
-
* Specifies where to open the linked document (e.g., _blank, _self)
|
|
19
|
-
* @maxLength 50
|
|
20
|
-
*/
|
|
21
|
-
target: /*#__PURE__*/ v.optional(
|
|
22
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 50)])),
|
|
23
|
-
/**
|
|
24
|
-
* Additional information about the link, typically shown as a tooltip on hover
|
|
25
|
-
* @maxLength 500
|
|
26
|
-
*/
|
|
27
|
-
title: /*#__PURE__*/ v.optional(
|
|
28
|
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [/*#__PURE__*/ v.stringLength(0, 500)])),
|
|
29
|
-
});
|
|
30
|
-
const _mainSchema = /*#__PURE__*/ v.object({
|
|
31
|
-
$type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('blog.pckt.mark.link')),
|
|
32
|
-
/**
|
|
33
|
-
* Link attributes that define the hyperlink behavior and destination
|
|
34
|
-
*/
|
|
35
|
-
get attrs() {
|
|
36
|
-
return linkAttrsSchema;
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
export const linkAttrsSchema = _linkAttrsSchema;
|
|
40
|
-
export const mainSchema = _mainSchema;
|
|
41
|
-
//# sourceMappingURL=link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/link.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,gBAAgB,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,+BAA+B,CAAC,CAAC;IACzF;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,gBAAgB,EAAE,EAAE;QACnE,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC;KACrC,CAAC;IACF;;;OAGG;IACH,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC5B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAC3F;IACD;;;OAGG;IACH,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC/B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAC1F;IACD;;;OAGG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAC3F;CACD,CAAC,CAAC;AACH,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC/E;;OAEG;IACH,IAAI,KAAK;QACR,OAAO,eAAe,CAAC;IACxB,CAAC;CACD,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAmC,CAAC;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.strike">, undefined>;
|
|
4
|
-
}>;
|
|
5
|
-
type main$schematype = typeof _mainSchema;
|
|
6
|
-
export interface mainSchema extends main$schematype {
|
|
7
|
-
}
|
|
8
|
-
export declare const mainSchema: mainSchema;
|
|
9
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=strike.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/strike.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,QAAA,MAAM,WAAW;;EAEf,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,WAAW,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,eAAe;CAAG;AAEtD,eAAO,MAAM,UAAU,EAAkB,UAAU,CAAC;AAEpD,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strike.js","sourceRoot":"","sources":["../../../../../../lib/lexicons/types/blog/pckt/mark/strike.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACjF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,UAAU,GAAG,WAAyB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from '@atcute/lexicons/validations';
|
|
2
|
-
declare const _mainSchema: v.ObjectSchema<{
|
|
3
|
-
$type: v.OptionalSchema<v.LiteralSchema<"blog.pckt.mark.underline">, undefined>;
|
|
4
|
-
}>;
|
|
5
|
-
type main$schematype = typeof _mainSchema;
|
|
6
|
-
export interface mainSchema extends main$schematype {
|
|
7
|
-
}
|
|
8
|
-
export declare const mainSchema: mainSchema;
|
|
9
|
-
export interface Main extends v.InferInput<typeof mainSchema> {
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=underline.d.ts.map
|