@forsakringskassan/docs-generator 2.29.3 → 2.30.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/dist/{create-markdown-renderer-Bqm7kdpQ.mjs → create-markdown-renderer-D5LtM0yF.mjs} +52 -41
- package/dist/create-markdown-renderer-D5LtM0yF.mjs.map +1 -0
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +67 -46
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.d.mts +8 -8
- package/dist/markdown.mjs +2 -2
- package/dist/processors/selectable-version.mjs +3 -2
- package/dist/runtime.mjs +9450 -10293
- package/dist/style/core.css +1 -1
- package/dist/style/index.css +66 -2
- package/dist/style/site.css +65 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-COMHgwYY.mjs → vendor-B6t9njJr.mjs} +63 -21
- package/dist/vendor-B6t9njJr.mjs.map +1 -0
- package/package.json +2 -1
- package/dist/create-markdown-renderer-Bqm7kdpQ.mjs.map +0 -1
- package/dist/vendor-COMHgwYY.mjs.map +0 -1
package/dist/markdown.d.mts
CHANGED
|
@@ -201,16 +201,16 @@ export declare interface MarkdownOptions {
|
|
|
201
201
|
/** List of all available documents */
|
|
202
202
|
readonly docs: Document_2[];
|
|
203
203
|
/** Callback for adding a static resource */
|
|
204
|
-
addResource(dst: string, src: string): void;
|
|
204
|
+
addResource(this: void, dst: string, src: string): void;
|
|
205
205
|
/** Callback when an example should be generated */
|
|
206
|
-
generateExample(options: {
|
|
206
|
+
generateExample(this: void, options: {
|
|
207
207
|
source: string;
|
|
208
208
|
language: string;
|
|
209
209
|
filename: string;
|
|
210
210
|
tags: string[];
|
|
211
211
|
}): ExampleResult;
|
|
212
212
|
/** Callback to get source for an imported filename */
|
|
213
|
-
getImportedSource(filename: string): string;
|
|
213
|
+
getImportedSource(this: void, filename: string): string;
|
|
214
214
|
/**
|
|
215
215
|
* Handle error which can be recovered from.
|
|
216
216
|
*
|
|
@@ -222,7 +222,7 @@ export declare interface MarkdownOptions {
|
|
|
222
222
|
* @param error - The error to be handled.
|
|
223
223
|
* @returns A replacement string or rethrows error.
|
|
224
224
|
*/
|
|
225
|
-
handleSoftError(error: SoftErrorType): string;
|
|
225
|
+
handleSoftError(this: void, error: SoftErrorType): string;
|
|
226
226
|
/**
|
|
227
227
|
* Options for messagebox container.
|
|
228
228
|
*/
|
|
@@ -291,14 +291,14 @@ export declare type SoftErrorCode = keyof SoftErrorDetails;
|
|
|
291
291
|
export declare interface SoftErrorDetails {
|
|
292
292
|
ELINKTARGET: {
|
|
293
293
|
key: string;
|
|
294
|
-
hash: string;
|
|
295
|
-
title: string;
|
|
294
|
+
hash: string | undefined;
|
|
295
|
+
title: string | undefined;
|
|
296
296
|
};
|
|
297
297
|
ELINKFORMAT: undefined;
|
|
298
298
|
ELINKPARTIAL: {
|
|
299
299
|
key: string;
|
|
300
|
-
hash: string;
|
|
301
|
-
title: string;
|
|
300
|
+
hash: string | undefined;
|
|
301
|
+
title: string | undefined;
|
|
302
302
|
};
|
|
303
303
|
EINCLUDETARGET: {
|
|
304
304
|
id: string;
|
package/dist/markdown.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { createRequire as $createRequire } from "node:module";
|
|
|
2
2
|
|
|
3
3
|
const require = $createRequire(import.meta.url);
|
|
4
4
|
|
|
5
|
-
export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-
|
|
6
|
-
import './vendor-
|
|
5
|
+
export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-D5LtM0yF.mjs';
|
|
6
|
+
import './vendor-B6t9njJr.mjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'fs';
|
|
@@ -1970,8 +1970,9 @@ var motdProxy = {
|
|
|
1970
1970
|
return Boolean(window[motdSymbol]);
|
|
1971
1971
|
},
|
|
1972
1972
|
showMessage(...args) {
|
|
1973
|
-
|
|
1974
|
-
|
|
1973
|
+
const api = window[motdSymbol];
|
|
1974
|
+
if (api) {
|
|
1975
|
+
api.showMessage(...args);
|
|
1975
1976
|
} else {
|
|
1976
1977
|
throw new Error(
|
|
1977
1978
|
"motdProcessor(..) not enabled, cannot call showMessage(..)!"
|