@elmethis/vue 0.4.0 → 0.4.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.
@@ -10,10 +10,9 @@
10
10
  console.error("vite-plugin-css-injected-by-js", e);
11
11
  }
12
12
  })();
13
- import { defineComponent, useCssModule, ref, computed, watch, createElementBlock, openBlock, normalizeClass, createBlock, resolveDynamicComponent, h } from "vue";
13
+ import { defineComponent, defineAsyncComponent, useCssModule, ref, computed, watch, createElementBlock, openBlock, normalizeClass, createBlock, resolveDynamicComponent, h } from "vue";
14
14
  import ElmInlineText from "../typography/ElmInlineText.vue.mjs";
15
15
  import ElmKatex from "../code/ElmKatex.vue.mjs";
16
- import ElmMermaid from "../code/ElmMermaid.vue.mjs";
17
16
  import ElmInlineIcon from "../icon/ElmInlineIcon.vue.mjs";
18
17
  import ElmHeading from "../typography/ElmHeading.vue.mjs";
19
18
  import ElmParagraph from "../typography/ElmParagraph.vue.mjs";
@@ -33,6 +32,7 @@ import _sfc_main$1 from "../table/ElmTableBody.vue.mjs";
33
32
  import ElmTableRow from "../table/ElmTableRow.vue.mjs";
34
33
  import ElmTableCell from "../table/ElmTableCell.vue.mjs";
35
34
  import ElmUnsupportedBlock from "../fallback/ElmUnsupportedBlock.vue.mjs";
35
+ import ElmBlockFallback from "../fallback/ElmBlockFallback.vue.mjs";
36
36
  import { kebabCase } from "lodash-es";
37
37
  const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  __name: "ElmJsonComponentRenderer",
@@ -40,6 +40,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  jsonComponents: {}
41
41
  },
42
42
  setup(__props) {
43
+ const ElmMermaid = defineAsyncComponent({
44
+ loader: async () => (await import("../code/ElmMermaid.vue.mjs")).default,
45
+ loadingComponent: ElmBlockFallback
46
+ });
43
47
  const props = __props;
44
48
  const style = useCssModule();
45
49
  const convertInlineComponentsToPlainText = (inlineComponents) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/vue",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,13 +32,13 @@
32
32
  "mermaid": "^11.12.3",
33
33
  "nanoid": "^5.1.6",
34
34
  "polished": "^4.3.1",
35
- "shiki": "^3.22.0"
35
+ "shiki": "^4.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@ag-ui/core": "^0.0.45",
39
- "@notionhq/client": "^5.9.0",
40
- "@storybook/addon-docs": "^10.2.10",
41
- "@storybook/vue3-vite": "10.2.10",
38
+ "@ag-ui/core": "^0.0.46",
39
+ "@notionhq/client": "^5.11.0",
40
+ "@storybook/addon-docs": "^10.2.13",
41
+ "@storybook/vue3-vite": "10.2.13",
42
42
  "@types/json-schema": "^7.0.15",
43
43
  "@types/katex": "^0.16.8",
44
44
  "@types/lodash-es": "^4.17.12",
@@ -51,10 +51,10 @@
51
51
  "postcss": "^8.5.6",
52
52
  "postcss-preset-env": "^11.2.0",
53
53
  "sass": "^1.97.3",
54
- "storybook": "^10.2.10",
54
+ "storybook": "^10.2.13",
55
55
  "typescript": "^5.9.3",
56
56
  "vite": "^7.3.1",
57
- "vite-plugin-css-injected-by-js": "^3.5.2",
57
+ "vite-plugin-css-injected-by-js": "^4.0.1",
58
58
  "vite-plugin-dts": "^4.5.4",
59
59
  "vue-tsc": "^3.2.5"
60
60
  },