@forsakringskassan/docs-generator 2.33.1 → 2.34.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/index.mjs CHANGED
@@ -4,8 +4,8 @@ const require = $createRequire(import.meta.url);
4
4
 
5
5
  import fs from 'node:fs/promises';
6
6
  import path from 'node:path/posix';
7
- import { g as globSync, m as minimatch, M as MarkdownIt, d as dedent, b as closest, e as distance, f as fm, i as isCI, h as glob, j as moduleImporter, k as cliProgress, t as tinylr, w as watch, l as createInstance, n as fse, o as inter } from './vendor-BAYn8diL.mjs';
8
- import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as exampleWorkerUrl, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-BaSxCpTW.mjs';
7
+ import { g as globSync, m as minimatch, M as MarkdownIt, d as dedent, b as closest, e as distance, f as fm, i as isCI, h as glob, j as moduleImporter, k as cliProgress, t as tinylr, w as watch, l as createInstance, n as fse, o as inter } from './vendor-BPf0gRBB.mjs';
8
+ import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as exampleWorkerUrl, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-C8_hQlL-.mjs';
9
9
  import path$1 from 'node:path';
10
10
  import require$$1 from 'crypto';
11
11
  import 'node:crypto';
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-BaSxCpTW.mjs';
6
- import './vendor-BAYn8diL.mjs';
5
+ export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-C8_hQlL-.mjs';
6
+ import './vendor-BPf0gRBB.mjs';
7
7
  import 'node:url';
8
8
  import 'node:path';
9
9
  import 'fs';
@@ -516,10 +516,7 @@ main {
516
516
  }
517
517
 
518
518
  .navigation {
519
- --active-background: #ddd;
520
- --highlight-color: #116a3e;
521
519
  --highlight-width: 4px;
522
- --hover-color: #ddd;
523
520
  display: none;
524
521
  padding: 1.5rem;
525
522
  width: var(--sidenav-width);
@@ -541,12 +538,12 @@ main {
541
538
  border-left: var(--highlight-width) solid transparent;
542
539
  }
543
540
  .navigation li.link.active {
544
- border-color: var(--highlight-color);
545
- background: var(--active-background);
541
+ border-color: var(--docs-navigation-highlight-color);
542
+ background: var(--docs-navigation-active-background);
546
543
  }
547
544
  .navigation li.link a {
548
545
  display: block;
549
- color: var(--f-text-color-default);
546
+ color: var(--docs-text-color-default);
550
547
  padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
551
548
  line-height: 1.2;
552
549
  text-decoration: none;
@@ -554,8 +551,8 @@ main {
554
551
  overflow: hidden;
555
552
  }
556
553
  .navigation li.link a:hover {
557
- background: var(--hover-color);
558
- border-color: var(--highlight-color);
554
+ background: var(--docs-navigation-hover-color);
555
+ border-color: var(--docs-navigation-highlight-color);
559
556
  }
560
557
  .navigation summary {
561
558
  cursor: pointer;
@@ -565,8 +562,8 @@ main {
565
562
  padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
566
563
  }
567
564
  .navigation summary:hover {
568
- background: var(--hover-color);
569
- border-color: var(--highlight-color);
565
+ background: var(--docs-navigation-hover-color);
566
+ border-color: var(--docs-navigation-highlight-color);
570
567
  }
571
568
  .navigation summary::after {
572
569
  content: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KPHBhdGggZD0iTTQ2Ny42NTggMTk2LjkxM0wyODMuNjU2IDM3Mi45MDdDMjc1LjkyMiAzODAuMzEzIDI2NS45NTMgMzg0IDI1NiAzODRDMjQ2LjA0NyAzODQgMjM2LjA3OCAzODAuMzEzIDIyOC4zNDQgMzcyLjkwN0w0NC4zNDIgMTk2LjkxM0MyOC4zODkgMTgxLjYzMyAyNy44MjYgMTU2LjMyMSA0My4wOTIgMTQwLjM1M0M1OC4zNzMgMTI0LjM1NCA4My42ODYgMTIzLjg1NCA5OS42NTUgMTM5LjEwM0wyNTYgMjg4LjY2TDQxMi4zNDUgMTM5LjEwM0M0MjguMzE0IDEyMy44MjIgNDUzLjYyNyAxMjQuMzg1IDQ2OC45MDggMTQwLjM1M0M0ODQuMTc0IDE1Ni4zMjEgNDgzLjYxMSAxODEuNjMzIDQ2Ny42NTggMTk2LjkxM1oiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K");
@@ -915,7 +912,7 @@ p:not(.code-preview p) {
915
912
 
916
913
  main h1:not(.code-preview h1) {
917
914
  font-size: 2.5rem;
918
- color: #1b1e23;
915
+ color: var(--docs-text-color-default);
919
916
  }
920
917
 
921
918
  main h2:not(.code-preview h2) {
@@ -931,30 +928,6 @@ main h4:not(.code-preview h4) {
931
928
  font-size: 1rem;
932
929
  }
933
930
 
934
- h1 .header-anchor {
935
- color: var(--f-text-color-heading-1);
936
- }
937
-
938
- h2 .header-anchor {
939
- color: var(--f-text-color-heading-2);
940
- }
941
-
942
- h3 .header-anchor {
943
- color: var(--f-text-color-heading-3);
944
- }
945
-
946
- h4 .header-anchor {
947
- color: var(--f-text-color-heading-4);
948
- }
949
-
950
- h5 .header-anchor {
951
- color: var(--f-text-color-heading-5);
952
- }
953
-
954
- h6 .header-anchor {
955
- color: var(--f-text-color-heading-6);
956
- }
957
-
958
931
  .header-anchor:hover {
959
932
  text-decoration: underline;
960
933
  }
@@ -981,6 +954,14 @@ h1 code {
981
954
  font-weight: 400;
982
955
  }
983
956
 
957
+ h1 .header-anchor,
958
+ h2 .header-anchor,
959
+ h3 .header-anchor,
960
+ h4 .header-anchor,
961
+ h5 .header-anchor,
962
+ h6 .header-anchor {
963
+ color: var(--docs-text-color-default);
964
+ }
984
965
  h1 code,
985
966
  h2 code,
986
967
  h3 code,
@@ -516,10 +516,7 @@ main {
516
516
  }
517
517
 
518
518
  .navigation {
519
- --active-background: #ddd;
520
- --highlight-color: #116a3e;
521
519
  --highlight-width: 4px;
522
- --hover-color: #ddd;
523
520
  display: none;
524
521
  padding: 1.5rem;
525
522
  width: var(--sidenav-width);
@@ -541,12 +538,12 @@ main {
541
538
  border-left: var(--highlight-width) solid transparent;
542
539
  }
543
540
  .navigation li.link.active {
544
- border-color: var(--highlight-color);
545
- background: var(--active-background);
541
+ border-color: var(--docs-navigation-highlight-color);
542
+ background: var(--docs-navigation-active-background);
546
543
  }
547
544
  .navigation li.link a {
548
545
  display: block;
549
- color: var(--f-text-color-default);
546
+ color: var(--docs-text-color-default);
550
547
  padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
551
548
  line-height: 1.2;
552
549
  text-decoration: none;
@@ -554,8 +551,8 @@ main {
554
551
  overflow: hidden;
555
552
  }
556
553
  .navigation li.link a:hover {
557
- background: var(--hover-color);
558
- border-color: var(--highlight-color);
554
+ background: var(--docs-navigation-hover-color);
555
+ border-color: var(--docs-navigation-highlight-color);
559
556
  }
560
557
  .navigation summary {
561
558
  cursor: pointer;
@@ -565,8 +562,8 @@ main {
565
562
  padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
566
563
  }
567
564
  .navigation summary:hover {
568
- background: var(--hover-color);
569
- border-color: var(--highlight-color);
565
+ background: var(--docs-navigation-hover-color);
566
+ border-color: var(--docs-navigation-highlight-color);
570
567
  }
571
568
  .navigation summary::after {
572
569
  content: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj4KPHBhdGggZD0iTTQ2Ny42NTggMTk2LjkxM0wyODMuNjU2IDM3Mi45MDdDMjc1LjkyMiAzODAuMzEzIDI2NS45NTMgMzg0IDI1NiAzODRDMjQ2LjA0NyAzODQgMjM2LjA3OCAzODAuMzEzIDIyOC4zNDQgMzcyLjkwN0w0NC4zNDIgMTk2LjkxM0MyOC4zODkgMTgxLjYzMyAyNy44MjYgMTU2LjMyMSA0My4wOTIgMTQwLjM1M0M1OC4zNzMgMTI0LjM1NCA4My42ODYgMTIzLjg1NCA5OS42NTUgMTM5LjEwM0wyNTYgMjg4LjY2TDQxMi4zNDUgMTM5LjEwM0M0MjguMzE0IDEyMy44MjIgNDUzLjYyNyAxMjQuMzg1IDQ2OC45MDggMTQwLjM1M0M0ODQuMTc0IDE1Ni4zMjEgNDgzLjYxMSAxODEuNjMzIDQ2Ny42NTggMTk2LjkxM1oiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K");
@@ -915,7 +912,7 @@ p:not(.code-preview p) {
915
912
 
916
913
  main h1:not(.code-preview h1) {
917
914
  font-size: 2.5rem;
918
- color: #1b1e23;
915
+ color: var(--docs-text-color-default);
919
916
  }
920
917
 
921
918
  main h2:not(.code-preview h2) {
@@ -931,30 +928,6 @@ main h4:not(.code-preview h4) {
931
928
  font-size: 1rem;
932
929
  }
933
930
 
934
- h1 .header-anchor {
935
- color: var(--f-text-color-heading-1);
936
- }
937
-
938
- h2 .header-anchor {
939
- color: var(--f-text-color-heading-2);
940
- }
941
-
942
- h3 .header-anchor {
943
- color: var(--f-text-color-heading-3);
944
- }
945
-
946
- h4 .header-anchor {
947
- color: var(--f-text-color-heading-4);
948
- }
949
-
950
- h5 .header-anchor {
951
- color: var(--f-text-color-heading-5);
952
- }
953
-
954
- h6 .header-anchor {
955
- color: var(--f-text-color-heading-6);
956
- }
957
-
958
931
  .header-anchor:hover {
959
932
  text-decoration: underline;
960
933
  }
@@ -981,6 +954,14 @@ h1 code {
981
954
  font-weight: 400;
982
955
  }
983
956
 
957
+ h1 .header-anchor,
958
+ h2 .header-anchor,
959
+ h3 .header-anchor,
960
+ h4 .header-anchor,
961
+ h5 .header-anchor,
962
+ h6 .header-anchor {
963
+ color: var(--docs-text-color-default);
964
+ }
984
965
  h1 code,
985
966
  h2 code,
986
967
  h3 code,
@@ -1437,6 +1418,9 @@ kbd {
1437
1418
  --docs-cookie-border-color: #4a52b6;
1438
1419
  --docs-code-background-color: #f4f4f4;
1439
1420
  --docs-code-optional-background-color: #e5e5e5;
1421
+ --docs-navigation-active-background: #ddd;
1422
+ --docs-navigation-highlight-color: #116a3e;
1423
+ --docs-navigation-hover-color: #ddd;
1440
1424
  }
1441
1425
 
1442
1426
  *,
@@ -75,6 +75,9 @@
75
75
  --docs-cookie-border-color: #4a52b6;
76
76
  --docs-code-background-color: #f4f4f4;
77
77
  --docs-code-optional-background-color: #e5e5e5;
78
+ --docs-navigation-active-background: #ddd;
79
+ --docs-navigation-highlight-color: #116a3e;
80
+ --docs-navigation-hover-color: #ddd;
78
81
  }
79
82
 
80
83
  *,
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.54.0"
8
+ "packageVersion": "7.55.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -13083,7 +13083,7 @@ const entToType = (s) => s.isFile() ? IFREG
13083
13083
  : s.isFIFO() ? IFIFO
13084
13084
  : UNKNOWN;
13085
13085
  // normalize unicode path names
13086
- const normalizeCache = new Map();
13086
+ const normalizeCache = new LRUCache({ max: 2 ** 12 });
13087
13087
  const normalize = (s) => {
13088
13088
  const c = normalizeCache.get(s);
13089
13089
  if (c)
@@ -13092,7 +13092,7 @@ const normalize = (s) => {
13092
13092
  normalizeCache.set(s, n);
13093
13093
  return n;
13094
13094
  };
13095
- const normalizeNocaseCache = new Map();
13095
+ const normalizeNocaseCache = new LRUCache({ max: 2 ** 12 });
13096
13096
  const normalizeNocase = (s) => {
13097
13097
  const c = normalizeNocaseCache.get(s);
13098
13098
  if (c)
@@ -13281,6 +13281,7 @@ class PathBase {
13281
13281
  get parentPath() {
13282
13282
  return (this.parent || this).fullpath();
13283
13283
  }
13284
+ /* c8 ignore start */
13284
13285
  /**
13285
13286
  * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
13286
13287
  * this property refers to the *parent* path, not the path object itself.
@@ -13290,6 +13291,7 @@ class PathBase {
13290
13291
  get path() {
13291
13292
  return this.parentPath;
13292
13293
  }
13294
+ /* c8 ignore stop */
13293
13295
  /**
13294
13296
  * Do not create new Path objects directly. They should always be accessed
13295
13297
  * via the PathScurry class or other methods on the Path class.
@@ -18083,6 +18085,22 @@ function requireLoader () {
18083
18085
  );
18084
18086
  }
18085
18087
 
18088
+ // set a property of a literal object, while protecting against prototype pollution,
18089
+ // see https://github.com/nodeca/js-yaml/issues/164 for more details
18090
+ function setProperty(object, key, value) {
18091
+ // used for this specific key only because Object.defineProperty is slow
18092
+ if (key === '__proto__') {
18093
+ Object.defineProperty(object, key, {
18094
+ configurable: true,
18095
+ enumerable: true,
18096
+ writable: true,
18097
+ value: value
18098
+ });
18099
+ } else {
18100
+ object[key] = value;
18101
+ }
18102
+ }
18103
+
18086
18104
  var simpleEscapeCheck = new Array(256); // integer, for fast access
18087
18105
  var simpleEscapeMap = new Array(256);
18088
18106
  for (var i = 0; i < 256; i++) {
@@ -18240,7 +18258,7 @@ function requireLoader () {
18240
18258
  key = sourceKeys[index];
18241
18259
 
18242
18260
  if (!_hasOwnProperty.call(destination, key)) {
18243
- destination[key] = source[key];
18261
+ setProperty(destination, key, source[key]);
18244
18262
  overridableKeys[key] = true;
18245
18263
  }
18246
18264
  }
@@ -18296,7 +18314,7 @@ function requireLoader () {
18296
18314
  state.position = startPos || state.position;
18297
18315
  throwError(state, 'duplicated mapping key');
18298
18316
  }
18299
- _result[keyNode] = valueNode;
18317
+ setProperty(_result, keyNode, valueNode);
18300
18318
  delete overridableKeys[keyNode];
18301
18319
  }
18302
18320
 
@@ -56259,4 +56277,4 @@ var srcExports = requireSrc();
56259
56277
  var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
56260
56278
 
56261
56279
  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, inter as o, tinylr as t, watch$1 as w };
56262
- //# sourceMappingURL=vendor-BAYn8diL.mjs.map
56280
+ //# sourceMappingURL=vendor-BPf0gRBB.mjs.map