@forsakringskassan/docs-live-example 1.5.6 → 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.
@@ -121,9 +121,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
121
121
  type: PropType<"vue" | "html">;
122
122
  required: true;
123
123
  };
124
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
125
- expandable: HTMLDivElement;
126
- }, any>;
124
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
127
125
  LiveVueCode: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
128
126
  template: {
129
127
  type: StringConstructor;
@@ -31,7 +31,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  type: PropType<"vue" | "html">;
32
32
  required: true;
33
33
  };
34
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
35
- expandable: HTMLDivElement;
36
- }, any>;
34
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
35
  export default _default;
package/dist/cjs/index.js CHANGED
@@ -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
@@ -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.6",
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": {