@forsakringskassan/docs-generator 2.0.0 → 2.2.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/README.md +0 -17
- package/dist/compile-example.js +9 -6
- package/dist/{create-markdown-renderer-Blvx866w.js → create-markdown-renderer-xVpSTRxi.js} +2 -1
- package/dist/index.d.ts +21 -3
- package/dist/index.js +1902 -1823
- package/dist/markdown.js +10 -7
- package/dist/processors/selectable-version.js +1984 -0
- package/dist/runtime.js +69 -1991
- package/dist/style/core.css +39 -0
- package/dist/style/index.css +39 -0
- package/dist/{vendor-DD1glhBC.js → vendor-D59s3fBh.js} +29500 -22681
- package/dist/{vue3-DIgl9PAu.js → vue3-0ybYLno6.js} +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -187,23 +187,6 @@ MyAwesomeLiveExampleFile.vue
|
|
|
187
187
|
```
|
|
188
188
|
````
|
|
189
189
|
|
|
190
|
-
#### Diagrams and flowcharts
|
|
191
|
-
|
|
192
|
-
You can generate diagrams from text by using [Mermaid](https://mermaidjs.github.io/).
|
|
193
|
-
The results are rendered as SVG in the browser.
|
|
194
|
-
|
|
195
|
-
````md
|
|
196
|
-
```mermaid
|
|
197
|
-
graph TD;
|
|
198
|
-
A-->B;
|
|
199
|
-
A-->C;
|
|
200
|
-
B-->D;
|
|
201
|
-
C-->D;
|
|
202
|
-
```
|
|
203
|
-
````
|
|
204
|
-
|
|
205
|
-
You can use the [Mermaid Live Editor](https://mermaid-js.github.io/mermaid-live-editor/) to help write your diagrams.
|
|
206
|
-
|
|
207
190
|
### Frontmatter
|
|
208
191
|
|
|
209
192
|
#### `status`
|
package/dist/compile-example.js
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
var path$1 = require('node:path');
|
|
4
4
|
var esbuild = require('esbuild');
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var vue3 = require('./vue3-
|
|
6
|
+
var vue3 = require('./vue3-0ybYLno6.js');
|
|
7
7
|
var path = require('node:path/posix');
|
|
8
8
|
require('@vue/compiler-sfc');
|
|
9
|
-
require('./vendor-
|
|
9
|
+
require('./vendor-D59s3fBh.js');
|
|
10
|
+
require('typescript');
|
|
10
11
|
require('node:url');
|
|
11
12
|
require('fs');
|
|
12
13
|
require('node:fs');
|
|
@@ -22,13 +23,15 @@ require('path');
|
|
|
22
23
|
require('readline');
|
|
23
24
|
require('events');
|
|
24
25
|
require('child_process');
|
|
25
|
-
require('node:
|
|
26
|
+
require('node:stream/promises');
|
|
26
27
|
require('node:child_process');
|
|
28
|
+
require('node:util');
|
|
27
29
|
require('node:process');
|
|
28
|
-
require('node:
|
|
30
|
+
require('node:tty');
|
|
29
31
|
require('node:timers/promises');
|
|
30
|
-
require('node:
|
|
31
|
-
require('
|
|
32
|
+
require('node:os');
|
|
33
|
+
require('node:v8');
|
|
34
|
+
require('node:buffer');
|
|
32
35
|
require('os');
|
|
33
36
|
require('http');
|
|
34
37
|
require('https');
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vendor = require('./vendor-
|
|
3
|
+
var vendor = require('./vendor-D59s3fBh.js');
|
|
4
4
|
var path = require('node:path/posix');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
6
|
require('crypto');
|
|
7
7
|
var crypto = require('node:crypto');
|
|
8
|
+
require('node:child_process');
|
|
8
9
|
|
|
9
10
|
function findDocument(haystack, needle) {
|
|
10
11
|
const match = haystack.find((it) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare type AttributeValue = string | number | boolean | null | {
|
|
|
8
8
|
[key: string]: AttributeValue;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
/* Excluded from this release type: availableProcessors */
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* @public
|
|
13
15
|
*/
|
|
@@ -152,8 +154,8 @@ declare class Generator_2 {
|
|
|
152
154
|
private resources;
|
|
153
155
|
private sourceFiles;
|
|
154
156
|
constructor(options: GeneratorOptions);
|
|
155
|
-
compileScript(name: string, src: string |
|
|
156
|
-
compileStyle(name: string, src: string, options?: Partial<CompileOptions>): void;
|
|
157
|
+
compileScript(name: string, src: string | URL, options?: Partial<CompileOptions>): void;
|
|
158
|
+
compileStyle(name: string, src: string | URL, options?: Partial<CompileOptions>): void;
|
|
157
159
|
/**
|
|
158
160
|
* @param dst - Destination directory relative to asset folder.
|
|
159
161
|
* @param src - File or directory to copy.
|
|
@@ -240,7 +242,7 @@ export declare interface Manifest {
|
|
|
240
242
|
*
|
|
241
243
|
* @public
|
|
242
244
|
*/
|
|
243
|
-
export declare function manifestProcessor(options
|
|
245
|
+
export declare function manifestProcessor(options?: ManifestProcessorOptions): Processor;
|
|
244
246
|
|
|
245
247
|
/**
|
|
246
248
|
* Options for {@link manifestProcessor}.
|
|
@@ -400,6 +402,8 @@ export declare interface ProcessorHandler {
|
|
|
400
402
|
after?: ProcessorStage;
|
|
401
403
|
name: string;
|
|
402
404
|
enabled?: boolean;
|
|
405
|
+
/** List of runtime client scripts required by this processor */
|
|
406
|
+
runtime?: ProcessorRuntime[];
|
|
403
407
|
handler(context: ProcessorContext): void | string[] | Promise<void> | Promise<string[]>;
|
|
404
408
|
}
|
|
405
409
|
|
|
@@ -418,6 +422,20 @@ export declare interface ProcessorOptions {
|
|
|
418
422
|
enabled?: boolean;
|
|
419
423
|
}
|
|
420
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Describes a runtime client script required by this processor.
|
|
427
|
+
*
|
|
428
|
+
* @public
|
|
429
|
+
*/
|
|
430
|
+
export declare interface ProcessorRuntime {
|
|
431
|
+
/** Path (from repo root) to the script entrypoint */
|
|
432
|
+
src: string;
|
|
433
|
+
/** Bundle name (in dist/processors) folder (default: derived from processor name) */
|
|
434
|
+
name?: string;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* Excluded from this release type: processorRuntimeName */
|
|
438
|
+
|
|
421
439
|
/**
|
|
422
440
|
* @public
|
|
423
441
|
*/
|