@forsakringskassan/docs-generator 1.30.8 → 1.30.10
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/runtime.js +56 -46
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
package/dist/runtime.js
CHANGED
|
@@ -203800,11 +203800,57 @@ mermaid.initialize({
|
|
|
203800
203800
|
startOnLoad: true
|
|
203801
203801
|
});
|
|
203802
203802
|
|
|
203803
|
+
// src/runtime/on-content-ready.ts
|
|
203804
|
+
function onContentReady(callback) {
|
|
203805
|
+
const { readyState } = document;
|
|
203806
|
+
if (readyState === "complete" || readyState === "interactive") {
|
|
203807
|
+
setTimeout(callback, 0);
|
|
203808
|
+
} else {
|
|
203809
|
+
document.addEventListener("DOMContentLoaded", callback);
|
|
203810
|
+
}
|
|
203811
|
+
}
|
|
203812
|
+
|
|
203813
|
+
// src/runtime/table-of-contents.ts
|
|
203814
|
+
function tableOfContents(toc, headings) {
|
|
203815
|
+
function visibilityChange(entries) {
|
|
203816
|
+
for (const { target, isIntersecting } of entries) {
|
|
203817
|
+
if (!isIntersecting) {
|
|
203818
|
+
continue;
|
|
203819
|
+
}
|
|
203820
|
+
for (const li2 of toc.querySelectorAll("li.active")) {
|
|
203821
|
+
li2.classList.remove("active");
|
|
203822
|
+
}
|
|
203823
|
+
const href = `#${target.id}`;
|
|
203824
|
+
const link2 = toc.querySelector(`a[href="${href}"]`);
|
|
203825
|
+
const li = link2?.closest("li");
|
|
203826
|
+
li?.classList.add("active");
|
|
203827
|
+
}
|
|
203828
|
+
}
|
|
203829
|
+
const options2 = {
|
|
203830
|
+
root: null,
|
|
203831
|
+
rootMargin: "0px 0px -80%",
|
|
203832
|
+
threshold: 1
|
|
203833
|
+
};
|
|
203834
|
+
const observer = new IntersectionObserver(visibilityChange, options2);
|
|
203835
|
+
for (const heading of headings) {
|
|
203836
|
+
observer.observe(heading);
|
|
203837
|
+
}
|
|
203838
|
+
}
|
|
203839
|
+
onContentReady(() => {
|
|
203840
|
+
const toc = document.querySelector("#outline");
|
|
203841
|
+
const headings = document.querySelectorAll("#content h2");
|
|
203842
|
+
if (!toc) {
|
|
203843
|
+
return;
|
|
203844
|
+
}
|
|
203845
|
+
tableOfContents(toc, headings);
|
|
203846
|
+
});
|
|
203847
|
+
|
|
203803
203848
|
// src/runtime/navigation.ts
|
|
203804
203849
|
var parser20 = new DOMParser();
|
|
203805
203850
|
var variableBlock = document.createElement("style");
|
|
203806
203851
|
var header = document.querySelector("header");
|
|
203807
203852
|
var footer = document.querySelector("footer");
|
|
203853
|
+
var previousPath = location.pathname;
|
|
203808
203854
|
function closeNested(details) {
|
|
203809
203855
|
for (const nested of details.querySelectorAll("details")) {
|
|
203810
203856
|
nested.open = false;
|
|
@@ -203854,6 +203900,11 @@ async function replaceContent(href) {
|
|
|
203854
203900
|
document.documentElement.dataset.rootUrl = rootUrl;
|
|
203855
203901
|
document.title = doc.title;
|
|
203856
203902
|
target.replaceWith(element2);
|
|
203903
|
+
const toc = document.querySelector("#outline");
|
|
203904
|
+
if (toc) {
|
|
203905
|
+
const headings = document.querySelectorAll("#content h2");
|
|
203906
|
+
tableOfContents(toc, headings);
|
|
203907
|
+
}
|
|
203857
203908
|
}
|
|
203858
203909
|
function getParentElement(el, depth) {
|
|
203859
203910
|
if (depth === 0) {
|
|
@@ -203867,6 +203918,7 @@ function replaceContentOnClick(navigation2, link2) {
|
|
|
203867
203918
|
event.preventDefault();
|
|
203868
203919
|
await replaceContent(href);
|
|
203869
203920
|
history.pushState("", "", href);
|
|
203921
|
+
previousPath = location.pathname;
|
|
203870
203922
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
203871
203923
|
const current = navigation2.querySelectorAll(".active");
|
|
203872
203924
|
for (const element2 of current) {
|
|
@@ -203933,7 +203985,10 @@ if (navigation) {
|
|
|
203933
203985
|
replaceContentOnClick(navigation, link2);
|
|
203934
203986
|
}
|
|
203935
203987
|
window.addEventListener("popstate", () => {
|
|
203936
|
-
|
|
203988
|
+
if (previousPath !== location.pathname) {
|
|
203989
|
+
replaceContent(location.href);
|
|
203990
|
+
}
|
|
203991
|
+
previousPath = location.pathname;
|
|
203937
203992
|
});
|
|
203938
203993
|
document.head.appendChild(variableBlock);
|
|
203939
203994
|
updateSidenavHeight(navigation);
|
|
@@ -204831,51 +204886,6 @@ document.addEventListener("keydown", (event) => {
|
|
|
204831
204886
|
}
|
|
204832
204887
|
});
|
|
204833
204888
|
|
|
204834
|
-
// src/runtime/on-content-ready.ts
|
|
204835
|
-
function onContentReady(callback) {
|
|
204836
|
-
const { readyState } = document;
|
|
204837
|
-
if (readyState === "complete" || readyState === "interactive") {
|
|
204838
|
-
setTimeout(callback, 0);
|
|
204839
|
-
} else {
|
|
204840
|
-
document.addEventListener("DOMContentLoaded", callback);
|
|
204841
|
-
}
|
|
204842
|
-
}
|
|
204843
|
-
|
|
204844
|
-
// src/runtime/table-of-contents.ts
|
|
204845
|
-
function tableOfContents(toc, headings) {
|
|
204846
|
-
function visibilityChange(entries) {
|
|
204847
|
-
for (const { target, isIntersecting } of entries) {
|
|
204848
|
-
if (!isIntersecting) {
|
|
204849
|
-
continue;
|
|
204850
|
-
}
|
|
204851
|
-
for (const li2 of toc.querySelectorAll("li.active")) {
|
|
204852
|
-
li2.classList.remove("active");
|
|
204853
|
-
}
|
|
204854
|
-
const href = `#${target.id}`;
|
|
204855
|
-
const link2 = toc.querySelector(`a[href="${href}"]`);
|
|
204856
|
-
const li = link2?.closest("li");
|
|
204857
|
-
li?.classList.add("active");
|
|
204858
|
-
}
|
|
204859
|
-
}
|
|
204860
|
-
const options2 = {
|
|
204861
|
-
root: null,
|
|
204862
|
-
rootMargin: "0px 0px -80%",
|
|
204863
|
-
threshold: 1
|
|
204864
|
-
};
|
|
204865
|
-
const observer = new IntersectionObserver(visibilityChange, options2);
|
|
204866
|
-
for (const heading of headings) {
|
|
204867
|
-
observer.observe(heading);
|
|
204868
|
-
}
|
|
204869
|
-
}
|
|
204870
|
-
onContentReady(() => {
|
|
204871
|
-
const toc = document.querySelector("#outline");
|
|
204872
|
-
const headings = document.querySelectorAll("#content h2");
|
|
204873
|
-
if (!toc) {
|
|
204874
|
-
return;
|
|
204875
|
-
}
|
|
204876
|
-
tableOfContents(toc, headings);
|
|
204877
|
-
});
|
|
204878
|
-
|
|
204879
204889
|
// src/runtime/select-version.ts
|
|
204880
204890
|
var import_semver = __toESM(require_semver2());
|
|
204881
204891
|
var dialog2 = document.querySelector("#version-dialog");
|
package/dist/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/docs-generator",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.10",
|
|
4
4
|
"description": "Documentation generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"livereload-js": "4.0.2",
|
|
55
55
|
"nunjucks": "3.2.4",
|
|
56
56
|
"piscina": "4.6.1",
|
|
57
|
-
"vue-docgen-api": "4.79.
|
|
57
|
+
"vue-docgen-api": "4.79.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"esbuild": "0.x",
|