@forsakringskassan/docs-generator 3.0.3 → 3.1.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/README.md +2 -0
- package/dist/{create-markdown-renderer-B2sP7UDF.mjs → create-markdown-renderer-castrIfY.mjs} +6 -6
- package/dist/{create-markdown-renderer-B2sP7UDF.mjs.map → create-markdown-renderer-castrIfY.mjs.map} +1 -1
- package/dist/{format-code.worker-DHkJESkS.mjs → format-code.worker-Cs0VeEOX.mjs} +2 -2
- package/dist/{format-code.worker-DHkJESkS.mjs.map → format-code.worker-Cs0VeEOX.mjs.map} +1 -1
- package/dist/index.d.mts +30 -1
- package/dist/index.mjs +128 -47
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +3 -3
- package/dist/processors/selectable-version.mjs +15 -2
- package/dist/runtime.mjs +442 -392
- package/dist/style/core.css +5 -5
- package/dist/style/index.css +7 -7
- package/dist/style/site.css +2 -2
- package/dist/{vendor-DLyCCfC4.mjs → vendor-DO1GigtJ.mjs} +125 -55
- package/dist/{vendor-DLyCCfC4.mjs.map → vendor-DO1GigtJ.mjs.map} +1 -1
- package/dist/{vue3-RC792pPN.mjs → vue3-CnvFixWY.mjs} +15 -3
- package/dist/{vue3-RC792pPN.mjs.map → vue3-CnvFixWY.mjs.map} +1 -1
- package/dist/{worker-CVWE4d_P.mjs → worker-DO8E5WXF.mjs} +2 -2
- package/dist/{worker-CVWE4d_P.mjs.map → worker-DO8E5WXF.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/base.template.html +0 -9
- package/templates/partials/search-preload.html +8 -0
|
@@ -1807,8 +1807,14 @@ ${lines.join("\n")}`,
|
|
|
1807
1807
|
});
|
|
1808
1808
|
return compiledStyle.code;
|
|
1809
1809
|
}).join("\n");
|
|
1810
|
-
let sourcecode =
|
|
1810
|
+
let sourcecode = ``;
|
|
1811
|
+
if (setupPath) {
|
|
1812
|
+
sourcecode += `import { setup } from "${setupPath}";
|
|
1811
1813
|
`;
|
|
1814
|
+
} else {
|
|
1815
|
+
sourcecode += `import { createApp } from "vue"
|
|
1816
|
+
`;
|
|
1817
|
+
}
|
|
1812
1818
|
let bindings = void 0;
|
|
1813
1819
|
if (descriptor.script || descriptor.scriptSetup) {
|
|
1814
1820
|
const script = compileScript(descriptor, {
|
|
@@ -1865,12 +1871,18 @@ ${lines.join("\n")}`,
|
|
|
1865
1871
|
sourcecode += `exampleComponent.__scopeId = "${scopeId}";
|
|
1866
1872
|
`;
|
|
1867
1873
|
}
|
|
1868
|
-
|
|
1874
|
+
if (setupPath) {
|
|
1875
|
+
sourcecode += `
|
|
1869
1876
|
setup({
|
|
1870
1877
|
rootComponent: exampleComponent,
|
|
1871
1878
|
selector: "${selector}"
|
|
1872
1879
|
});
|
|
1873
1880
|
`;
|
|
1881
|
+
} else {
|
|
1882
|
+
sourcecode += `
|
|
1883
|
+
createApp(exampleComponent).mount(selector);
|
|
1884
|
+
`;
|
|
1885
|
+
}
|
|
1874
1886
|
const markup = (
|
|
1875
1887
|
/* HTML */
|
|
1876
1888
|
`
|
|
@@ -1892,4 +1904,4 @@ setup({
|
|
|
1892
1904
|
var export_vuePlugin = import_esbuild_plugin_vue3.default;
|
|
1893
1905
|
|
|
1894
1906
|
export { export_vuePlugin as e, generateCode as g };
|
|
1895
|
-
//# sourceMappingURL=vue3-
|
|
1907
|
+
//# sourceMappingURL=vue3-CnvFixWY.mjs.map
|