@forsakringskassan/docs-live-example 1.5.5 → 2.0.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/dist/cjs/index.js CHANGED
@@ -918,7 +918,7 @@ var require_core = __commonJS({
918
918
  }
919
919
  return mode;
920
920
  }
921
- var version = "11.11.0";
921
+ var version = "11.11.1";
922
922
  var HTMLInjectionError = class extends Error {
923
923
  constructor(reason, html) {
924
924
  super(reason);
@@ -1721,8 +1721,8 @@ function generateId(template) {
1721
1721
  }
1722
1722
 
1723
1723
  // src/utils/highlight.ts
1724
- var import_standalone = __toESM(require("prettier/standalone"));
1725
- var import_parser_html = __toESM(require("prettier/parser-html"));
1724
+ var import_standalone = require("prettier/standalone");
1725
+ var import_html = __toESM(require("prettier/plugins/html"));
1726
1726
 
1727
1727
  // node_modules/highlight.js/es/core.js
1728
1728
  var import_core = __toESM(require_core(), 1);
@@ -1958,14 +1958,14 @@ function xml(hljs) {
1958
1958
  core_default.registerLanguage("html", xml);
1959
1959
  var prettierConfig = {
1960
1960
  parser: "html",
1961
- plugins: [import_parser_html.default],
1961
+ plugins: [import_html.default],
1962
1962
  singleQuote: false,
1963
1963
  arrowParens: "always",
1964
1964
  tabWidth: 4,
1965
1965
  printWidth: 80
1966
1966
  };
1967
1967
  async function highlight(code) {
1968
- const formatted = await import_standalone.default.format(code, prettierConfig);
1968
+ const formatted = await (0, import_standalone.format)(code, prettierConfig);
1969
1969
  const { value } = core_default.highlight(formatted, { language: "html" });
1970
1970
  return `<code class="hljs lang-html" tabindex="0">${value}</code>`;
1971
1971
  }
package/dist/esm/index.js CHANGED
@@ -912,7 +912,7 @@ var require_core = __commonJS({
912
912
  }
913
913
  return mode;
914
914
  }
915
- var version = "11.11.0";
915
+ var version = "11.11.1";
916
916
  var HTMLInjectionError = class extends Error {
917
917
  constructor(reason, html) {
918
918
  super(reason);
@@ -1707,8 +1707,8 @@ function generateId(template) {
1707
1707
  }
1708
1708
 
1709
1709
  // src/utils/highlight.ts
1710
- import prettier from "prettier/standalone";
1711
- import htmlPlugin from "prettier/parser-html";
1710
+ import { format } from "prettier/standalone";
1711
+ import htmlPlugin from "prettier/plugins/html";
1712
1712
 
1713
1713
  // node_modules/highlight.js/es/core.js
1714
1714
  var import_core = __toESM(require_core(), 1);
@@ -1951,7 +1951,7 @@ var prettierConfig = {
1951
1951
  printWidth: 80
1952
1952
  };
1953
1953
  async function highlight(code) {
1954
- const formatted = await prettier.format(code, prettierConfig);
1954
+ const formatted = await format(code, prettierConfig);
1955
1955
  const { value } = core_default.highlight(formatted, { language: "html" });
1956
1956
  return `<code class="hljs lang-html" tabindex="0">${value}</code>`;
1957
1957
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-live-example",
3
- "version": "1.5.5",
3
+ "version": "2.0.0",
4
4
  "description": "Components used for live examples",
5
5
  "keywords": [
6
6
  "documentation"
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "peerDependencies": {
37
37
  "html-validate": ">= 7.9.0",
38
- "prettier": "^2.3 || ^3",
38
+ "prettier": "^3.0.0",
39
39
  "vue": "^3.4.15"
40
40
  },
41
41
  "peerDependenciesMeta": {