@forsakringskassan/docs-generator 2.31.0 → 2.32.1
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-B1VQVruU.mjs → create-markdown-renderer-0hibqqhZ.mjs} +2 -2
- package/dist/{create-markdown-renderer-B1VQVruU.mjs.map → create-markdown-renderer-0hibqqhZ.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/markdown.mjs +2 -2
- package/dist/runtime.mjs +123 -113
- package/dist/style/core.css +2 -4
- package/dist/style/index.css +4 -4
- package/dist/style/site.css +2 -0
- package/dist/style/theme/fkui.css +9 -0
- package/dist/{vendor-0oN9XFM9.mjs → vendor-BYLZFg6n.mjs} +55 -19
- package/dist/vendor-BYLZFg6n.mjs.map +1 -0
- package/package.json +3 -2
- package/dist/vendor-0oN9XFM9.mjs.map +0 -1
package/dist/style/core.css
CHANGED
|
@@ -1014,10 +1014,9 @@ h6 code {
|
|
|
1014
1014
|
|
|
1015
1015
|
/* Page header - inverted */
|
|
1016
1016
|
header .page-header {
|
|
1017
|
-
background-color:
|
|
1017
|
+
background-color: var(--docs-header-background-color);
|
|
1018
1018
|
padding: 0.5rem 1.2rem;
|
|
1019
|
-
border-bottom: 1px solid
|
|
1020
|
-
flex-wrap: wrap;
|
|
1019
|
+
border-bottom: 1px solid var(--docs-header-border-color);
|
|
1021
1020
|
}
|
|
1022
1021
|
|
|
1023
1022
|
header .page-header__logo--small {
|
|
@@ -1269,7 +1268,6 @@ kbd {
|
|
|
1269
1268
|
border: 1px solid #bbbbbd;
|
|
1270
1269
|
color: #5f6165;
|
|
1271
1270
|
padding: 0.1rem 0.5rem;
|
|
1272
|
-
margin-left: 0.5rem;
|
|
1273
1271
|
border-radius: 6px;
|
|
1274
1272
|
font-family: var(--docs-font-family);
|
|
1275
1273
|
}
|
package/dist/style/index.css
CHANGED
|
@@ -1014,10 +1014,9 @@ h6 code {
|
|
|
1014
1014
|
|
|
1015
1015
|
/* Page header - inverted */
|
|
1016
1016
|
header .page-header {
|
|
1017
|
-
background-color:
|
|
1017
|
+
background-color: var(--docs-header-background-color);
|
|
1018
1018
|
padding: 0.5rem 1.2rem;
|
|
1019
|
-
border-bottom: 1px solid
|
|
1020
|
-
flex-wrap: wrap;
|
|
1019
|
+
border-bottom: 1px solid var(--docs-header-border-color);
|
|
1021
1020
|
}
|
|
1022
1021
|
|
|
1023
1022
|
header .page-header__logo--small {
|
|
@@ -1269,7 +1268,6 @@ kbd {
|
|
|
1269
1268
|
border: 1px solid #bbbbbd;
|
|
1270
1269
|
color: #5f6165;
|
|
1271
1270
|
padding: 0.1rem 0.5rem;
|
|
1272
|
-
margin-left: 0.5rem;
|
|
1273
1271
|
border-radius: 6px;
|
|
1274
1272
|
font-family: var(--docs-font-family);
|
|
1275
1273
|
}
|
|
@@ -1362,6 +1360,8 @@ kbd {
|
|
|
1362
1360
|
--docs-heading-line-height: 1.4;
|
|
1363
1361
|
--docs-header-text-color-default: #1b1e23;
|
|
1364
1362
|
--docs-header-text-color-discrete: #5f6165;
|
|
1363
|
+
--docs-header-background-color: #ffffff;
|
|
1364
|
+
--docs-header-border-color: #ddddde;
|
|
1365
1365
|
--docs-menu-width-expanded: 230px;
|
|
1366
1366
|
--docs-messagebox-details-border: #bbbbbd;
|
|
1367
1367
|
--docs-messagebox-details-background: #f4f4f4;
|
package/dist/style/site.css
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
--docs-heading-line-height: 1.4;
|
|
25
25
|
--docs-header-text-color-default: #1b1e23;
|
|
26
26
|
--docs-header-text-color-discrete: #5f6165;
|
|
27
|
+
--docs-header-background-color: #ffffff;
|
|
28
|
+
--docs-header-border-color: #ddddde;
|
|
27
29
|
--docs-menu-width-expanded: 230px;
|
|
28
30
|
--docs-messagebox-details-border: #bbbbbd;
|
|
29
31
|
--docs-messagebox-details-background: #f4f4f4;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Re map Docs variables to FKUI theme variable
|
|
3
|
+
https://designsystem.forsakringskassan.se/latest/styles/colors.html
|
|
4
|
+
*/
|
|
5
|
+
:root {
|
|
6
|
+
--docs-color-text-primary: var(--fkds-color-text-primary);
|
|
7
|
+
--docs-header-background-color: var(--fkds-color-background-primary);
|
|
8
|
+
--docs-header-border-color: var(--fkds-color-border-weak);
|
|
9
|
+
}
|
|
@@ -8794,21 +8794,35 @@ const parseClass = (glob, position) => {
|
|
|
8794
8794
|
/**
|
|
8795
8795
|
* Un-escape a string that has been escaped with {@link escape}.
|
|
8796
8796
|
*
|
|
8797
|
-
* If the {@link windowsPathsNoEscape} option is used, then
|
|
8798
|
-
* escapes are removed, but not backslash escapes.
|
|
8799
|
-
* the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
|
|
8800
|
-
* becuase `\` is a path separator in `windowsPathsNoEscape` mode.
|
|
8797
|
+
* If the {@link MinimatchOptions.windowsPathsNoEscape} option is used, then
|
|
8798
|
+
* square-bracket escapes are removed, but not backslash escapes.
|
|
8801
8799
|
*
|
|
8802
|
-
*
|
|
8800
|
+
* For example, it will turn the string `'[*]'` into `*`, but it will not
|
|
8801
|
+
* turn `'\\*'` into `'*'`, because `\` is a path separator in
|
|
8802
|
+
* `windowsPathsNoEscape` mode.
|
|
8803
|
+
*
|
|
8804
|
+
* When `windowsPathsNoEscape` is not set, then both square-bracket escapes and
|
|
8803
8805
|
* backslash escapes are removed.
|
|
8804
8806
|
*
|
|
8805
8807
|
* Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
|
|
8806
8808
|
* or unescaped.
|
|
8809
|
+
*
|
|
8810
|
+
* When `magicalBraces` is not set, escapes of braces (`{` and `}`) will not be
|
|
8811
|
+
* unescaped.
|
|
8807
8812
|
*/
|
|
8808
|
-
const unescape$1 = (s, { windowsPathsNoEscape = false, } = {}) => {
|
|
8813
|
+
const unescape$1 = (s, { windowsPathsNoEscape = false, magicalBraces = true, } = {}) => {
|
|
8814
|
+
if (magicalBraces) {
|
|
8815
|
+
return windowsPathsNoEscape
|
|
8816
|
+
? s.replace(/\[([^\/\\])\]/g, '$1')
|
|
8817
|
+
: s
|
|
8818
|
+
.replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2')
|
|
8819
|
+
.replace(/\\([^\/])/g, '$1');
|
|
8820
|
+
}
|
|
8809
8821
|
return windowsPathsNoEscape
|
|
8810
|
-
? s.replace(/\[([^\/\\])\]/g, '$1')
|
|
8811
|
-
: s
|
|
8822
|
+
? s.replace(/\[([^\/\\{}])\]/g, '$1')
|
|
8823
|
+
: s
|
|
8824
|
+
.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, '$1$2')
|
|
8825
|
+
.replace(/\\([^\/{}])/g, '$1');
|
|
8812
8826
|
};
|
|
8813
8827
|
|
|
8814
8828
|
// parse a single path portion
|
|
@@ -9223,7 +9237,9 @@ class AST {
|
|
|
9223
9237
|
if (this.#root === this)
|
|
9224
9238
|
this.#fillNegs();
|
|
9225
9239
|
if (!this.type) {
|
|
9226
|
-
const noEmpty = this.isStart() &&
|
|
9240
|
+
const noEmpty = this.isStart() &&
|
|
9241
|
+
this.isEnd() &&
|
|
9242
|
+
!this.#parts.some(s => typeof s !== 'string');
|
|
9227
9243
|
const src = this.#parts
|
|
9228
9244
|
.map(p => {
|
|
9229
9245
|
const [re, _, hasMagic, uflag] = typeof p === 'string'
|
|
@@ -9379,10 +9395,7 @@ class AST {
|
|
|
9379
9395
|
}
|
|
9380
9396
|
}
|
|
9381
9397
|
if (c === '*') {
|
|
9382
|
-
|
|
9383
|
-
re += starNoEmpty;
|
|
9384
|
-
else
|
|
9385
|
-
re += star$1;
|
|
9398
|
+
re += noEmpty && glob === '*' ? starNoEmpty : star$1;
|
|
9386
9399
|
hasMagic = true;
|
|
9387
9400
|
continue;
|
|
9388
9401
|
}
|
|
@@ -9400,16 +9413,24 @@ class AST {
|
|
|
9400
9413
|
/**
|
|
9401
9414
|
* Escape all magic characters in a glob pattern.
|
|
9402
9415
|
*
|
|
9403
|
-
* If the {@link
|
|
9416
|
+
* If the {@link MinimatchOptions.windowsPathsNoEscape}
|
|
9404
9417
|
* option is used, then characters are escaped by wrapping in `[]`, because
|
|
9405
9418
|
* a magic character wrapped in a character class can only be satisfied by
|
|
9406
9419
|
* that exact character. In this mode, `\` is _not_ escaped, because it is
|
|
9407
9420
|
* not interpreted as a magic character, but instead as a path separator.
|
|
9421
|
+
*
|
|
9422
|
+
* If the {@link MinimatchOptions.magicalBraces} option is used,
|
|
9423
|
+
* then braces (`{` and `}`) will be escaped.
|
|
9408
9424
|
*/
|
|
9409
|
-
const escape$2 = (s, { windowsPathsNoEscape = false, } = {}) => {
|
|
9425
|
+
const escape$2 = (s, { windowsPathsNoEscape = false, magicalBraces = false, } = {}) => {
|
|
9410
9426
|
// don't need to escape +@! because we escape the parens
|
|
9411
9427
|
// that make those magic, and escaping ! as [!] isn't valid,
|
|
9412
9428
|
// because [!]] is a valid glob class meaning not ']'.
|
|
9429
|
+
if (magicalBraces) {
|
|
9430
|
+
return windowsPathsNoEscape
|
|
9431
|
+
? s.replace(/[?*()[\]{}]/g, '[$&]')
|
|
9432
|
+
: s.replace(/[?*()[\]\\{}]/g, '\\$&');
|
|
9433
|
+
}
|
|
9413
9434
|
return windowsPathsNoEscape
|
|
9414
9435
|
? s.replace(/[?*()[\]]/g, '[$&]')
|
|
9415
9436
|
: s.replace(/[?*()[\]\\]/g, '\\$&');
|
|
@@ -10043,7 +10064,7 @@ class Minimatch {
|
|
|
10043
10064
|
}
|
|
10044
10065
|
}
|
|
10045
10066
|
// resolve and reduce . and .. portions in the file as well.
|
|
10046
|
-
//
|
|
10067
|
+
// don't need to do the second phase, because it's only one string[]
|
|
10047
10068
|
const { optimizationLevel = 1 } = this.options;
|
|
10048
10069
|
if (optimizationLevel >= 2) {
|
|
10049
10070
|
file = this.levelTwoFileOptimize(file);
|
|
@@ -10296,14 +10317,25 @@ class Minimatch {
|
|
|
10296
10317
|
}
|
|
10297
10318
|
}
|
|
10298
10319
|
else if (next === undefined) {
|
|
10299
|
-
pp[i - 1] = prev + '(
|
|
10320
|
+
pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + ')?';
|
|
10300
10321
|
}
|
|
10301
10322
|
else if (next !== GLOBSTAR) {
|
|
10302
10323
|
pp[i - 1] = prev + '(?:\\/|\\/' + twoStar + '\\/)' + next;
|
|
10303
10324
|
pp[i + 1] = GLOBSTAR;
|
|
10304
10325
|
}
|
|
10305
10326
|
});
|
|
10306
|
-
|
|
10327
|
+
const filtered = pp.filter(p => p !== GLOBSTAR);
|
|
10328
|
+
// For partial matches, we need to make the pattern match
|
|
10329
|
+
// any prefix of the full path. We do this by generating
|
|
10330
|
+
// alternative patterns that match progressively longer prefixes.
|
|
10331
|
+
if (this.partial && filtered.length >= 1) {
|
|
10332
|
+
const prefixes = [];
|
|
10333
|
+
for (let i = 1; i <= filtered.length; i++) {
|
|
10334
|
+
prefixes.push(filtered.slice(0, i).join('/'));
|
|
10335
|
+
}
|
|
10336
|
+
return '(?:' + prefixes.join('|') + ')';
|
|
10337
|
+
}
|
|
10338
|
+
return filtered.join('/');
|
|
10307
10339
|
})
|
|
10308
10340
|
.join('|');
|
|
10309
10341
|
// need to wrap in parens if we had more than one thing with |,
|
|
@@ -10312,6 +10344,10 @@ class Minimatch {
|
|
|
10312
10344
|
// must match entire pattern
|
|
10313
10345
|
// ending in a * or ** will make it less strict.
|
|
10314
10346
|
re = '^' + open + re + close + '$';
|
|
10347
|
+
// In partial mode, '/' should always match as it's a valid prefix for any pattern
|
|
10348
|
+
if (this.partial) {
|
|
10349
|
+
re = '^(?:\\/|' + open + re.slice(1, -1) + close + ')$';
|
|
10350
|
+
}
|
|
10315
10351
|
// can match anything, as long as it's not this.
|
|
10316
10352
|
if (this.negate)
|
|
10317
10353
|
re = '^(?!' + re + ').+$';
|
|
@@ -56222,4 +56258,4 @@ var srcExports = requireSrc();
|
|
|
56222
56258
|
var tinylr = /*@__PURE__*/getDefaultExportFromCjs(srcExports);
|
|
56223
56259
|
|
|
56224
56260
|
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 };
|
|
56225
|
-
//# sourceMappingURL=vendor-
|
|
56261
|
+
//# sourceMappingURL=vendor-BYLZFg6n.mjs.map
|