@forsakringskassan/docs-generator 2.11.4 → 2.12.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/compile-example.js +2 -2
- package/dist/{create-markdown-renderer-B1v_YUfy.js → create-markdown-renderer-D5z4jt-T.js} +1 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +188 -49
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +2 -2
- package/dist/runtime.js +16045 -15097
- package/dist/{vendor-WsR_tA03.js → vendor-CJBsNZrh.js} +64 -0
- package/dist/{vue3-CGUitvvB.js → vue3-rkJOanAd.js} +1 -1
- package/package.json +1 -1
|
@@ -16307,6 +16307,69 @@ const glob = Object.assign(glob_, {
|
|
|
16307
16307
|
});
|
|
16308
16308
|
glob.glob = glob;
|
|
16309
16309
|
|
|
16310
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16311
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16312
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16313
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16314
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16315
|
+
const dedent = createDedent({});
|
|
16316
|
+
function createDedent(options) {
|
|
16317
|
+
dedent.withOptions = newOptions => createDedent(_objectSpread(_objectSpread({}, options), newOptions));
|
|
16318
|
+
return dedent;
|
|
16319
|
+
function dedent(strings, ...values) {
|
|
16320
|
+
const raw = typeof strings === "string" ? [strings] : strings.raw;
|
|
16321
|
+
const {
|
|
16322
|
+
escapeSpecialCharacters = Array.isArray(strings)
|
|
16323
|
+
} = options;
|
|
16324
|
+
|
|
16325
|
+
// first, perform interpolation
|
|
16326
|
+
let result = "";
|
|
16327
|
+
for (let i = 0; i < raw.length; i++) {
|
|
16328
|
+
let next = raw[i];
|
|
16329
|
+
if (escapeSpecialCharacters) {
|
|
16330
|
+
// handle escaped newlines, backticks, and interpolation characters
|
|
16331
|
+
next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{");
|
|
16332
|
+
}
|
|
16333
|
+
result += next;
|
|
16334
|
+
if (i < values.length) {
|
|
16335
|
+
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
|
16336
|
+
result += values[i];
|
|
16337
|
+
}
|
|
16338
|
+
}
|
|
16339
|
+
|
|
16340
|
+
// now strip indentation
|
|
16341
|
+
const lines = result.split("\n");
|
|
16342
|
+
let mindent = null;
|
|
16343
|
+
for (const l of lines) {
|
|
16344
|
+
const m = l.match(/^(\s+)\S+/);
|
|
16345
|
+
if (m) {
|
|
16346
|
+
const indent = m[1].length;
|
|
16347
|
+
if (!mindent) {
|
|
16348
|
+
// this is the first indented line
|
|
16349
|
+
mindent = indent;
|
|
16350
|
+
} else {
|
|
16351
|
+
mindent = Math.min(mindent, indent);
|
|
16352
|
+
}
|
|
16353
|
+
}
|
|
16354
|
+
}
|
|
16355
|
+
if (mindent !== null) {
|
|
16356
|
+
const m = mindent; // appease TypeScript
|
|
16357
|
+
result = lines
|
|
16358
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/7140
|
|
16359
|
+
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
16360
|
+
.map(l => l[0] === " " || l[0] === "\t" ? l.slice(m) : l).join("\n");
|
|
16361
|
+
}
|
|
16362
|
+
|
|
16363
|
+
// dedent eats leading and trailing whitespace too
|
|
16364
|
+
result = result.trim();
|
|
16365
|
+
if (escapeSpecialCharacters) {
|
|
16366
|
+
// handle escaped newlines at the end to ensure they don't get stripped too
|
|
16367
|
+
result = result.replace(/\\n/g, "\n");
|
|
16368
|
+
}
|
|
16369
|
+
return result;
|
|
16370
|
+
}
|
|
16371
|
+
}
|
|
16372
|
+
|
|
16310
16373
|
var frontMatter = {exports: {}};
|
|
16311
16374
|
|
|
16312
16375
|
var jsYaml$1 = {};
|
|
@@ -51636,6 +51699,7 @@ var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
|
51636
51699
|
exports.HighlightJS = HighlightJS;
|
|
51637
51700
|
exports.MarkdownIt = MarkdownIt;
|
|
51638
51701
|
exports.cliProgress = cliProgress;
|
|
51702
|
+
exports.dedent = dedent;
|
|
51639
51703
|
exports.deflist_plugin = deflist_plugin;
|
|
51640
51704
|
exports.fm = fm;
|
|
51641
51705
|
exports.fse = fse;
|