@forsakringskassan/docs-generator 2.38.4 → 2.38.6
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-Da-vQQCp.mjs → create-markdown-renderer-B7yrXROV.mjs} +5 -5
- package/dist/create-markdown-renderer-B7yrXROV.mjs.map +1 -0
- package/dist/{format-code.worker-i_fzVsDn.mjs → format-code.worker-346miAdg.mjs} +2 -2
- package/dist/{format-code.worker-i_fzVsDn.mjs.map → format-code.worker-346miAdg.mjs.map} +1 -1
- package/dist/index.d.mts +0 -7
- package/dist/index.mjs +40 -27
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -2
- package/dist/processors/selectable-version.mjs +3 -0
- package/dist/runtime.mjs +33 -22
- package/dist/style/core.css +32 -180
- package/dist/style/index.css +280 -180
- package/dist/style/site.css +248 -0
- package/dist/style/theme/fkui.css +4 -0
- package/dist/{vendor-BnFYrp5U.mjs → vendor-DgbU8VP_.mjs} +119 -2521
- package/dist/{vendor-BnFYrp5U.mjs.map → vendor-DgbU8VP_.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/partials/cookie-warning.html +12 -12
- package/templates/partials/search-dialog.html +31 -21
- package/templates/partials/selectable-version.html +1 -22
- package/templates/partials/version-modal.html +20 -0
- package/dist/create-markdown-renderer-Da-vQQCp.mjs.map +0 -1
- package/templates/partials/theme-render-blocker.html +0 -11
- package/templates/partials/theme-select.html +0 -49
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 { t as ts,
|
|
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 filePath, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-
|
|
7
|
+
import { t as ts, M as MarkdownIt, d as dedent, g as closest, h as distance, i as fm, j as isCI, Z as Ze, m as moduleImporter, k as cliProgress, l as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-DgbU8VP_.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 filePath, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-B7yrXROV.mjs';
|
|
9
9
|
import path__default from 'node:path';
|
|
10
10
|
import crypto from 'node:crypto';
|
|
11
11
|
import { exec, execSync } from 'node:child_process';
|
|
@@ -110,7 +110,9 @@ function fileMatcher(patterns) {
|
|
|
110
110
|
ignore: "**/node_modules/**"
|
|
111
111
|
});
|
|
112
112
|
return memoize((filename, context) => {
|
|
113
|
-
const matches =
|
|
113
|
+
const matches = fileList.filter((file) => {
|
|
114
|
+
return path__default.matchesGlob(file, `**/${filename}`);
|
|
115
|
+
});
|
|
114
116
|
if (matches.length === 0) {
|
|
115
117
|
const additionalInfo = context ? ` (${context})` : "";
|
|
116
118
|
const message = `No files matched pattern "${filename}"${additionalInfo}`;
|
|
@@ -565,28 +567,6 @@ const versionBannerProcessor = util.deprecate(
|
|
|
565
567
|
"versionBannerProcessor() is deprecated, use motdProcessor() instead"
|
|
566
568
|
);
|
|
567
569
|
|
|
568
|
-
function themeSelectProcessor() {
|
|
569
|
-
return {
|
|
570
|
-
name: "theme-select-processor",
|
|
571
|
-
after: "generate-docs",
|
|
572
|
-
handler(context) {
|
|
573
|
-
const sessionKey = "fkds-theme";
|
|
574
|
-
const data = {
|
|
575
|
-
defaultTheme: "exp",
|
|
576
|
-
sessionKey
|
|
577
|
-
};
|
|
578
|
-
context.addTemplateBlock("head", "theme-render-blocker", {
|
|
579
|
-
filename: "partials/theme-render-blocker.html",
|
|
580
|
-
data
|
|
581
|
-
});
|
|
582
|
-
context.addTemplateBlock("toolbar", "theme-select", {
|
|
583
|
-
filename: "partials/theme-select.html",
|
|
584
|
-
data
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
|
|
590
570
|
function dump(value) {
|
|
591
571
|
return `<pre>${JSON.stringify(value, null, 2)}</pre>`;
|
|
592
572
|
}
|
|
@@ -765,6 +745,10 @@ function selectableVersionProcessor(pkg, container, options) {
|
|
|
765
745
|
filename: "partials/selectable-version.html",
|
|
766
746
|
data: { pkg }
|
|
767
747
|
});
|
|
748
|
+
context.addTemplateBlock("body:end", "version-modal", {
|
|
749
|
+
filename: "partials/version-modal.html",
|
|
750
|
+
data: { pkg }
|
|
751
|
+
});
|
|
768
752
|
}
|
|
769
753
|
};
|
|
770
754
|
}
|
|
@@ -942,7 +926,6 @@ const availableProcessors = [
|
|
|
942
926
|
motdProcessor({ message: "" }),
|
|
943
927
|
selectableVersionProcessor({ name: "", version: "" }, ""),
|
|
944
928
|
sourceUrlProcessor({ urlFormat: "" }),
|
|
945
|
-
themeSelectProcessor(),
|
|
946
929
|
topnavProcessor("", ""),
|
|
947
930
|
versionProcessor({ name: "", version: "", homepage: "" }, "")
|
|
948
931
|
];
|
|
@@ -2160,9 +2143,24 @@ var translation$1 = {
|
|
|
2160
2143
|
component: "Component",
|
|
2161
2144
|
status: "Status"
|
|
2162
2145
|
},
|
|
2146
|
+
"cookie-warning": {
|
|
2147
|
+
title: "Cookies on this website",
|
|
2148
|
+
"consent-all": "Yes, I accept all cookies",
|
|
2149
|
+
"consent-functional": "No, I only accept necessary cookies",
|
|
2150
|
+
message: "We use cookies to make this website work as well as possible for you.<br />We also use cookies for web analytics to improve the website.",
|
|
2151
|
+
accept: "Do you also accept cookies for web analytics?"
|
|
2152
|
+
},
|
|
2153
|
+
modal: {
|
|
2154
|
+
close: "Close"
|
|
2155
|
+
},
|
|
2163
2156
|
outline: {
|
|
2164
2157
|
"in-this-article": "In this article"
|
|
2165
2158
|
},
|
|
2159
|
+
"selectable-version": {
|
|
2160
|
+
button: "Switch version",
|
|
2161
|
+
title: "Select version",
|
|
2162
|
+
loading: "Please wait, loading version data..."
|
|
2163
|
+
},
|
|
2166
2164
|
search: {
|
|
2167
2165
|
button: "Search",
|
|
2168
2166
|
instructions: "<kbd>Esc</kbd> to close <kbd>Arrow up/down</kbd> to navigate <kbd>Enter</kbd> to select",
|
|
@@ -2179,9 +2177,24 @@ var translation = {
|
|
|
2179
2177
|
component: "Komponent",
|
|
2180
2178
|
status: "Status"
|
|
2181
2179
|
},
|
|
2180
|
+
"cookie-warning": {
|
|
2181
|
+
title: "Kakor på webbplatsen",
|
|
2182
|
+
"consent-all": "Ja, jag godkänner alla kakor",
|
|
2183
|
+
"consent-functional": "Nej, jag godkänner bara nödvändiga kakor",
|
|
2184
|
+
message: "Vi använder kakor (cookies) för att webbplatsen ska fungera så bra som möjligt för dig.<br />Vi använder också kakor för webbanalys för att göra webbplatsen bättre.",
|
|
2185
|
+
accept: "Godkänner du att vi också använder kakor för webbanalys?"
|
|
2186
|
+
},
|
|
2187
|
+
modal: {
|
|
2188
|
+
close: "Stäng"
|
|
2189
|
+
},
|
|
2182
2190
|
outline: {
|
|
2183
2191
|
"in-this-article": "Innehåll"
|
|
2184
2192
|
},
|
|
2193
|
+
"selectable-version": {
|
|
2194
|
+
button: "Byt version",
|
|
2195
|
+
title: "Välj version",
|
|
2196
|
+
loading: "Var god vänta, laddar versionsdata..."
|
|
2197
|
+
},
|
|
2185
2198
|
search: {
|
|
2186
2199
|
button: "Sök",
|
|
2187
2200
|
instructions: "<kbd>Esc</kbd> för att stänga <kbd>Pil upp/ner</kbd> för att navigera <kbd>Enter</kbd> för att välja",
|
|
@@ -3581,5 +3594,5 @@ function searchProcessor() {
|
|
|
3581
3594
|
};
|
|
3582
3595
|
}
|
|
3583
3596
|
|
|
3584
|
-
export { Generator, availableProcessors, cookieProcessor, defineSources, extractExamplesProcessor, frontMatterFileReader, htmlRedirectProcessor, isRelease, livereloadProcessor, manifestProcessor, matomoProcessor, motdProcessor, navigationFileReader, processorRuntimeName, redirectFileProcessor, searchProcessor, selectableVersionProcessor, sourceUrlProcessor,
|
|
3597
|
+
export { Generator, availableProcessors, cookieProcessor, defineSources, extractExamplesProcessor, frontMatterFileReader, htmlRedirectProcessor, isRelease, livereloadProcessor, manifestProcessor, matomoProcessor, motdProcessor, navigationFileReader, processorRuntimeName, redirectFileProcessor, searchProcessor, selectableVersionProcessor, sourceUrlProcessor, topnavProcessor, versionBannerProcessor, versionProcessor, vueFileReader };
|
|
3585
3598
|
//# sourceMappingURL=index.mjs.map
|