@forsakringskassan/docs-generator 3.10.1 → 3.11.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-CXtEyRCU.mjs → create-markdown-renderer-C7-7Tads.mjs} +3 -3
- package/dist/{create-markdown-renderer-CXtEyRCU.mjs.map → create-markdown-renderer-C7-7Tads.mjs.map} +1 -1
- package/dist/{format-code.worker-BsG38cNK.mjs → format-code.worker-CoZR-v_f.mjs} +2 -2
- package/dist/{format-code.worker-BsG38cNK.mjs.map → format-code.worker-CoZR-v_f.mjs.map} +1 -1
- package/dist/index.mjs +57 -41
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -2
- package/dist/processors/cookie.mjs +23 -22
- package/dist/processors/search.mjs +1 -2
- package/dist/processors/selectable-version.mjs +2 -4
- package/dist/runtime-internal.mjs +2954 -9818
- package/dist/style/core.css +4 -4
- package/dist/style/index.css +15 -6
- package/dist/style/site.css +11 -3
- package/dist/{vendor-DPuGyhL4.mjs → vendor-BesEHnwj.mjs} +174 -174
- package/dist/{vendor-DPuGyhL4.mjs.map → vendor-BesEHnwj.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/macro/scm-info.njk.html +2 -2
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-
|
|
6
|
-
import './vendor-
|
|
5
|
+
export { S as SoftError, c as createMarkdownRenderer } from './create-markdown-renderer-C7-7Tads.mjs';
|
|
6
|
+
import './vendor-BesEHnwj.mjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'fs';
|
|
@@ -27,27 +27,28 @@ onContentReady(() => {
|
|
|
27
27
|
if (!el) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
30
|
+
if (hasCookie("doc-hide-cookie-warning")) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
showCookieWarning(el);
|
|
34
|
+
const consentAllButton = document.querySelector(
|
|
35
|
+
"#consent-all-button"
|
|
36
|
+
);
|
|
37
|
+
if (consentAllButton) {
|
|
38
|
+
consentAllButton.addEventListener("click", () => {
|
|
39
|
+
setCookie("doc-hide-cookie-warning");
|
|
40
|
+
setCookie("doc-cookie-consent");
|
|
41
|
+
hideCookieWarning(el);
|
|
42
|
+
window.dispatchEvent(new Event("doc-cookie-consent"));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const consentFunctionalButton = document.querySelector(
|
|
46
|
+
"#consent-functional-button"
|
|
47
|
+
);
|
|
48
|
+
if (consentFunctionalButton) {
|
|
49
|
+
consentFunctionalButton.addEventListener("click", () => {
|
|
50
|
+
setCookie("doc-hide-cookie-warning");
|
|
51
|
+
hideCookieWarning(el);
|
|
52
|
+
});
|
|
52
53
|
}
|
|
53
54
|
});
|
|
@@ -2156,8 +2156,7 @@ function updateVersionList(element, versions) {
|
|
|
2156
2156
|
a.textContent = version;
|
|
2157
2157
|
ul.append(item);
|
|
2158
2158
|
}
|
|
2159
|
-
element.replaceChildren();
|
|
2160
|
-
element.append(ul);
|
|
2159
|
+
element.replaceChildren(ul);
|
|
2161
2160
|
}
|
|
2162
2161
|
function setErrorMessage(element) {
|
|
2163
2162
|
if (!element) {
|
|
@@ -2165,8 +2164,7 @@ function setErrorMessage(element) {
|
|
|
2165
2164
|
}
|
|
2166
2165
|
const p = document.createElement("p");
|
|
2167
2166
|
p.textContent = "Det gick inte att hitta n\xE5gra tidigare versioner!";
|
|
2168
|
-
element.replaceChildren();
|
|
2169
|
-
element.append(p);
|
|
2167
|
+
element.replaceChildren(p);
|
|
2170
2168
|
}
|
|
2171
2169
|
window.addEventListener("docs:navigation", () => {
|
|
2172
2170
|
void initVersionProcessor();
|