@forsakringskassan/docs-generator 2.29.1 → 2.29.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/dist/{create-markdown-renderer-xNUEILpa.mjs → create-markdown-renderer-Bqm7kdpQ.mjs} +2 -2
- package/dist/{create-markdown-renderer-xNUEILpa.mjs.map → create-markdown-renderer-Bqm7kdpQ.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime.mjs +102672 -101215
- package/dist/{vendor-CUZpvssc.mjs → vendor-COMHgwYY.mjs} +38 -10
- package/dist/vendor-COMHgwYY.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/vendor-CUZpvssc.mjs.map +0 -1
|
@@ -16271,6 +16271,7 @@ function createDedent(options) {
|
|
|
16271
16271
|
function dedent(strings, ...values) {
|
|
16272
16272
|
const raw = typeof strings === "string" ? [strings] : strings.raw;
|
|
16273
16273
|
const {
|
|
16274
|
+
alignValues = false,
|
|
16274
16275
|
escapeSpecialCharacters = Array.isArray(strings),
|
|
16275
16276
|
trimWhitespace = true
|
|
16276
16277
|
} = options;
|
|
@@ -16285,8 +16286,10 @@ function createDedent(options) {
|
|
|
16285
16286
|
}
|
|
16286
16287
|
result += next;
|
|
16287
16288
|
if (i < values.length) {
|
|
16289
|
+
const value = alignValues ? alignValue(values[i], result) : values[i];
|
|
16290
|
+
|
|
16288
16291
|
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
16289
|
-
result +=
|
|
16292
|
+
result += value;
|
|
16290
16293
|
}
|
|
16291
16294
|
}
|
|
16292
16295
|
|
|
@@ -16326,6 +16329,22 @@ function createDedent(options) {
|
|
|
16326
16329
|
}
|
|
16327
16330
|
}
|
|
16328
16331
|
|
|
16332
|
+
/**
|
|
16333
|
+
* Adjusts the indentation of a multi-line interpolated value to match the current line.
|
|
16334
|
+
*/
|
|
16335
|
+
function alignValue(value, precedingText) {
|
|
16336
|
+
if (typeof value !== "string" || !value.includes("\n")) {
|
|
16337
|
+
return value;
|
|
16338
|
+
}
|
|
16339
|
+
const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
|
|
16340
|
+
const indentMatch = currentLine.match(/^(\s+)/);
|
|
16341
|
+
if (indentMatch) {
|
|
16342
|
+
const indent = indentMatch[1];
|
|
16343
|
+
return value.replace(/\n/g, `\n${indent}`);
|
|
16344
|
+
}
|
|
16345
|
+
return value;
|
|
16346
|
+
}
|
|
16347
|
+
|
|
16329
16348
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16330
16349
|
|
|
16331
16350
|
function getDefaultExportFromCjs (x) {
|
|
@@ -24448,12 +24467,15 @@ class Translator extends EventEmitter {
|
|
|
24448
24467
|
if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
24449
24468
|
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
24450
24469
|
}
|
|
24451
|
-
if (typeof
|
|
24470
|
+
if (typeof opt === 'object') opt = {
|
|
24452
24471
|
...opt
|
|
24453
24472
|
};
|
|
24454
24473
|
if (!opt) opt = {};
|
|
24455
24474
|
if (keys == null) return '';
|
|
24456
|
-
if (typeof keys === 'function') keys = keysFromSelector(keys,
|
|
24475
|
+
if (typeof keys === 'function') keys = keysFromSelector(keys, {
|
|
24476
|
+
...this.options,
|
|
24477
|
+
...opt
|
|
24478
|
+
});
|
|
24457
24479
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
24458
24480
|
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
24459
24481
|
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
@@ -25945,11 +25967,17 @@ class I18n extends EventEmitter {
|
|
|
25945
25967
|
let resultKey;
|
|
25946
25968
|
if (o.keyPrefix && Array.isArray(key)) {
|
|
25947
25969
|
resultKey = key.map(k => {
|
|
25948
|
-
if (typeof k === 'function') k = keysFromSelector(k,
|
|
25970
|
+
if (typeof k === 'function') k = keysFromSelector(k, {
|
|
25971
|
+
...this.options,
|
|
25972
|
+
...opts
|
|
25973
|
+
});
|
|
25949
25974
|
return `${o.keyPrefix}${keySeparator}${k}`;
|
|
25950
25975
|
});
|
|
25951
25976
|
} else {
|
|
25952
|
-
if (typeof key === 'function') key = keysFromSelector(key,
|
|
25977
|
+
if (typeof key === 'function') key = keysFromSelector(key, {
|
|
25978
|
+
...this.options,
|
|
25979
|
+
...opts
|
|
25980
|
+
});
|
|
25953
25981
|
resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
|
|
25954
25982
|
}
|
|
25955
25983
|
return this.t(resultKey, o);
|
|
@@ -27365,11 +27393,11 @@ function requireFormatter () {
|
|
|
27365
27393
|
return formatter;
|
|
27366
27394
|
}
|
|
27367
27395
|
|
|
27368
|
-
var options
|
|
27396
|
+
var options;
|
|
27369
27397
|
var hasRequiredOptions;
|
|
27370
27398
|
|
|
27371
27399
|
function requireOptions () {
|
|
27372
|
-
if (hasRequiredOptions) return options
|
|
27400
|
+
if (hasRequiredOptions) return options;
|
|
27373
27401
|
hasRequiredOptions = 1;
|
|
27374
27402
|
// utility to merge defaults
|
|
27375
27403
|
function mergeOption(v, defaultValue){
|
|
@@ -27380,7 +27408,7 @@ function requireOptions () {
|
|
|
27380
27408
|
}
|
|
27381
27409
|
}
|
|
27382
27410
|
|
|
27383
|
-
options
|
|
27411
|
+
options = {
|
|
27384
27412
|
// set global options
|
|
27385
27413
|
parse: function parse(rawOptions, preset){
|
|
27386
27414
|
|
|
@@ -27481,7 +27509,7 @@ function requireOptions () {
|
|
|
27481
27509
|
return options;
|
|
27482
27510
|
}
|
|
27483
27511
|
};
|
|
27484
|
-
return options
|
|
27512
|
+
return options;
|
|
27485
27513
|
}
|
|
27486
27514
|
|
|
27487
27515
|
var genericBar;
|
|
@@ -56142,4 +56170,4 @@ var srcExports = requireSrc();
|
|
|
56142
56170
|
var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
56143
56171
|
|
|
56144
56172
|
export { HighlightJS as H, MarkdownIt as M, deflist_plugin as a, closest as b, createTwoFilesPatch as c, dedent as d, distance as e, fm as f, globSync as g, glob as h, isCI as i, moduleImporter as j, cliProgress as k, createInstance as l, minimatch as m, fse as n, tinylr as t, watch$1 as w };
|
|
56145
|
-
//# sourceMappingURL=vendor-
|
|
56173
|
+
//# sourceMappingURL=vendor-COMHgwYY.mjs.map
|