@diplodoc/folding-headings-extension 0.2.1 → 0.2.3
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/package.json +5 -5
- package/build/test/data.d.ts +0 -147
- package/build/test/plugin.spec.d.ts +0 -1
- /package/build/{src/common → common}/const.d.ts +0 -0
- /package/build/{src/plugin → plugin}/const.d.ts +0 -0
- /package/build/{src/plugin → plugin}/headingBlockRule.d.ts +0 -0
- /package/build/{src/plugin → plugin}/index.d.ts +0 -0
- /package/build/{src/plugin → plugin}/plugin.d.ts +0 -0
- /package/build/{src/plugin → plugin}/sectionsCoreRule.d.ts +0 -0
- /package/build/{src/plugin → plugin}/transform.d.ts +0 -0
- /package/build/{src/plugin → plugin}/utils.d.ts +0 -0
- /package/build/{src/runtime → runtime}/const.d.ts +0 -0
- /package/build/{src/runtime → runtime}/controller.d.ts +0 -0
- /package/build/{src/runtime → runtime}/index.d.ts +0 -0
- /package/build/{src/runtime → runtime}/utils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
**english** | [русский](https://github.com/diplodoc-platform/folding-headings-extension/blob/master/README.ru.md)
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
[](https://www.npmjs.org/package/@diplodoc/folding-headings-extension)
|
|
2
6
|
[](https://sonarcloud.io/summary/overall?id=diplodoc-platform_folding-headings-extension)
|
|
3
7
|
[](https://sonarcloud.io/summary/overall?id=diplodoc-platform_folding-headings-extension)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diplodoc/folding-headings-extension",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Folding headings extension for Diplodoc platform ",
|
|
5
5
|
"main": "build/plugin/index.js",
|
|
6
6
|
"types": "build/plugin/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "run-p build:*",
|
|
37
|
-
"build:declarations": "tsc
|
|
37
|
+
"build:declarations": "tsc -p tsconfig.publish.json",
|
|
38
38
|
"build:js": "node ./esbuild/build.mjs",
|
|
39
39
|
"prepublishOnly": "npm run typecheck && npm run lint && npm test && npm run build",
|
|
40
40
|
"test": "vitest run --config vitest.config.mjs",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"lint": "lint",
|
|
45
45
|
"lint:fix": "lint fix",
|
|
46
46
|
"pre-commit": "lint-staged",
|
|
47
|
-
"prepare": "husky || true"
|
|
47
|
+
"prepare": "husky || true",
|
|
48
|
+
"lock": "npm install --no-workspaces --package-lock-only --ignore-scripts"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@diplodoc/tsconfig": "^1.0.2",
|
|
51
51
|
"@diplodoc/utils": "^2.2.2",
|
|
52
52
|
"@types/markdown-it": "^13.0.9",
|
|
53
53
|
"@vitest/coverage-v8": "^3.2.4",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"npm-run-all": "^4.1.5",
|
|
56
56
|
"typescript": "^5.3.3",
|
|
57
57
|
"vitest": "^3.2.4",
|
|
58
|
-
"@diplodoc/infra": "2.
|
|
58
|
+
"@diplodoc/infra": "2.2.1"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/build/test/data.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
export declare const sectionsHtmlResult: string;
|
|
2
|
-
export declare const commonHeadingTokens: ({
|
|
3
|
-
type: string;
|
|
4
|
-
tag: string;
|
|
5
|
-
attrs: null;
|
|
6
|
-
map: number[];
|
|
7
|
-
nesting: number;
|
|
8
|
-
level: number;
|
|
9
|
-
children: null;
|
|
10
|
-
content: string;
|
|
11
|
-
markup: string;
|
|
12
|
-
info: string;
|
|
13
|
-
meta: null;
|
|
14
|
-
block: boolean;
|
|
15
|
-
hidden: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: string;
|
|
18
|
-
tag: string;
|
|
19
|
-
attrs: null;
|
|
20
|
-
map: number[];
|
|
21
|
-
nesting: number;
|
|
22
|
-
level: number;
|
|
23
|
-
children: {
|
|
24
|
-
type: string;
|
|
25
|
-
tag: string;
|
|
26
|
-
attrs: null;
|
|
27
|
-
map: null;
|
|
28
|
-
nesting: number;
|
|
29
|
-
level: number;
|
|
30
|
-
children: null;
|
|
31
|
-
content: string;
|
|
32
|
-
markup: string;
|
|
33
|
-
info: string;
|
|
34
|
-
meta: null;
|
|
35
|
-
block: boolean;
|
|
36
|
-
hidden: boolean;
|
|
37
|
-
}[];
|
|
38
|
-
content: string;
|
|
39
|
-
markup: string;
|
|
40
|
-
info: string;
|
|
41
|
-
meta: null;
|
|
42
|
-
block: boolean;
|
|
43
|
-
hidden: boolean;
|
|
44
|
-
} | {
|
|
45
|
-
type: string;
|
|
46
|
-
tag: string;
|
|
47
|
-
attrs: null;
|
|
48
|
-
map: null;
|
|
49
|
-
nesting: number;
|
|
50
|
-
level: number;
|
|
51
|
-
children: null;
|
|
52
|
-
content: string;
|
|
53
|
-
markup: string;
|
|
54
|
-
info: string;
|
|
55
|
-
meta: null;
|
|
56
|
-
block: boolean;
|
|
57
|
-
hidden: boolean;
|
|
58
|
-
})[];
|
|
59
|
-
export declare const foldingHeadingTokens: ({
|
|
60
|
-
type: string;
|
|
61
|
-
tag: string;
|
|
62
|
-
attrs: string[][];
|
|
63
|
-
map: null;
|
|
64
|
-
nesting: number;
|
|
65
|
-
level: number;
|
|
66
|
-
children: null;
|
|
67
|
-
content: string;
|
|
68
|
-
markup: string;
|
|
69
|
-
info: string;
|
|
70
|
-
meta: null;
|
|
71
|
-
block: boolean;
|
|
72
|
-
hidden: boolean;
|
|
73
|
-
} | {
|
|
74
|
-
type: string;
|
|
75
|
-
tag: string;
|
|
76
|
-
attrs: null;
|
|
77
|
-
map: number[];
|
|
78
|
-
nesting: number;
|
|
79
|
-
level: number;
|
|
80
|
-
children: null;
|
|
81
|
-
content: string;
|
|
82
|
-
markup: string;
|
|
83
|
-
info: string;
|
|
84
|
-
meta: {
|
|
85
|
-
folding: boolean;
|
|
86
|
-
};
|
|
87
|
-
block: boolean;
|
|
88
|
-
hidden: boolean;
|
|
89
|
-
} | {
|
|
90
|
-
type: string;
|
|
91
|
-
tag: string;
|
|
92
|
-
attrs: null;
|
|
93
|
-
map: number[];
|
|
94
|
-
nesting: number;
|
|
95
|
-
level: number;
|
|
96
|
-
children: {
|
|
97
|
-
type: string;
|
|
98
|
-
tag: string;
|
|
99
|
-
attrs: null;
|
|
100
|
-
map: null;
|
|
101
|
-
nesting: number;
|
|
102
|
-
level: number;
|
|
103
|
-
children: null;
|
|
104
|
-
content: string;
|
|
105
|
-
markup: string;
|
|
106
|
-
info: string;
|
|
107
|
-
meta: null;
|
|
108
|
-
block: boolean;
|
|
109
|
-
hidden: boolean;
|
|
110
|
-
}[];
|
|
111
|
-
content: string;
|
|
112
|
-
markup: string;
|
|
113
|
-
info: string;
|
|
114
|
-
meta: null;
|
|
115
|
-
block: boolean;
|
|
116
|
-
hidden: boolean;
|
|
117
|
-
} | {
|
|
118
|
-
type: string;
|
|
119
|
-
tag: string;
|
|
120
|
-
attrs: null;
|
|
121
|
-
map: null;
|
|
122
|
-
nesting: number;
|
|
123
|
-
level: number;
|
|
124
|
-
children: null;
|
|
125
|
-
content: string;
|
|
126
|
-
markup: string;
|
|
127
|
-
info: string;
|
|
128
|
-
meta: {
|
|
129
|
-
folding: boolean;
|
|
130
|
-
};
|
|
131
|
-
block: boolean;
|
|
132
|
-
hidden: boolean;
|
|
133
|
-
} | {
|
|
134
|
-
type: string;
|
|
135
|
-
tag: string;
|
|
136
|
-
attrs: null;
|
|
137
|
-
map: null;
|
|
138
|
-
nesting: number;
|
|
139
|
-
level: number;
|
|
140
|
-
children: null;
|
|
141
|
-
content: string;
|
|
142
|
-
markup: string;
|
|
143
|
-
info: string;
|
|
144
|
-
meta: null;
|
|
145
|
-
block: boolean;
|
|
146
|
-
hidden: boolean;
|
|
147
|
-
})[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|