@yozora/tokenizer-autolink 2.0.6 → 2.1.0
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/lib/types/index.d.ts +3 -3
- package/package.json +5 -5
- package/src/types.ts +4 -4
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INodePoint } from '@yozora/character';
|
|
2
|
-
import { IResultOfRequiredEater,
|
|
2
|
+
import { IResultOfRequiredEater, IPartialInlineToken, ITokenizer, IBaseInlineTokenizerProps, ITokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
|
|
3
3
|
import { LinkType, Link } from '@yozora/ast';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -39,13 +39,13 @@ type AutolinkContentType = 'uri' | 'email';
|
|
|
39
39
|
type T = LinkType;
|
|
40
40
|
type INode = Link;
|
|
41
41
|
declare const uniqueName = "@yozora/tokenizer-autolink";
|
|
42
|
-
interface IToken extends
|
|
42
|
+
interface IToken extends IPartialInlineToken<T> {
|
|
43
43
|
/**
|
|
44
44
|
* Autolink content type: absolute uri or email.
|
|
45
45
|
*/
|
|
46
46
|
contentType: AutolinkContentType;
|
|
47
47
|
}
|
|
48
|
-
interface IDelimiter extends
|
|
48
|
+
interface IDelimiter extends ITokenDelimiter {
|
|
49
49
|
type: 'full';
|
|
50
50
|
/**
|
|
51
51
|
* Autolink content type: absolute uri or email.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-autolink",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "guanghechen",
|
|
6
6
|
"url": "https://github.com/guanghechen/"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"test": "cross-env TS_NODE_FILES=true NODE_OPTIONS=--experimental-vm-modules jest --config ../../jest.config.mjs --rootDir ."
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@yozora/ast": "^2.0
|
|
43
|
-
"@yozora/character": "^2.0
|
|
44
|
-
"@yozora/core-tokenizer": "^2.0
|
|
42
|
+
"@yozora/ast": "^2.1.0",
|
|
43
|
+
"@yozora/character": "^2.1.0",
|
|
44
|
+
"@yozora/core-tokenizer": "^2.1.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "387a68e8f9154944e2a6a7009a808d076d0659c6"
|
|
47
47
|
}
|
package/src/types.ts
CHANGED
|
@@ -2,10 +2,10 @@ import type { Link, LinkType } from '@yozora/ast'
|
|
|
2
2
|
import type { INodePoint } from '@yozora/character'
|
|
3
3
|
import type {
|
|
4
4
|
IBaseInlineTokenizerProps,
|
|
5
|
-
|
|
5
|
+
IPartialInlineToken,
|
|
6
6
|
IResultOfRequiredEater,
|
|
7
|
+
ITokenDelimiter,
|
|
7
8
|
ITokenizer,
|
|
8
|
-
IYastTokenDelimiter,
|
|
9
9
|
} from '@yozora/core-tokenizer'
|
|
10
10
|
|
|
11
11
|
// Content type of autolink
|
|
@@ -15,14 +15,14 @@ export type T = LinkType
|
|
|
15
15
|
export type INode = Link
|
|
16
16
|
export const uniqueName = '@yozora/tokenizer-autolink'
|
|
17
17
|
|
|
18
|
-
export interface IToken extends
|
|
18
|
+
export interface IToken extends IPartialInlineToken<T> {
|
|
19
19
|
/**
|
|
20
20
|
* Autolink content type: absolute uri or email.
|
|
21
21
|
*/
|
|
22
22
|
contentType: AutolinkContentType
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface IDelimiter extends
|
|
25
|
+
export interface IDelimiter extends ITokenDelimiter {
|
|
26
26
|
type: 'full'
|
|
27
27
|
/**
|
|
28
28
|
* Autolink content type: absolute uri or email.
|