diff --git a/package.json b/package.json index acd61e40..d8771cec 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@radix-ui/react-radio-group": "^1.1.3", "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-tooltip": "^1.0.7", - "@zenuml/core": "3.23.26", + "@zenuml/core": "^3.24.2", "clsx": "^2.0.0", "code-blast-codemirror": "chinchang/code-blast-codemirror#web-maker", "codemirror": "^5.65.16", diff --git a/src/utils.js b/src/utils.js index 895e1c3d..3b537f80 100644 --- a/src/utils.js +++ b/src/utils.js @@ -3,6 +3,7 @@ import { trackEvent } from './analytics'; import { computeHtml, computeCss, computeJs } from './computes'; import { JsModes } from './codeModes'; import { deferred } from './deferred'; +import zenuml from '!!file-loader!@zenuml/core/dist/zenuml'; const esprima = require('esprima'); // window.Store = Store; @@ -277,7 +278,7 @@ export function getCompleteHtml(html, css, js, item) { html + '\n'; - contents += ''; + contents += ''; if (item.jsMode === JsModes.ES6) { contents += diff --git a/yarn.lock b/yarn.lock index 13b69bb4..7e3b20e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3031,7 +3031,7 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -"@vue/compat@^3.4.27": +"@vue/compat@^3.2.45": version "3.4.30" resolved "https://registry.yarnpkg.com/@vue/compat/-/compat-3.4.30.tgz#6f348f760b1ce3dd7f357eb30fe18a1417bafde7" integrity sha512-XjeL+8og3nVsBZ3pd9fLX/X6UpSMSqU5F+ot1TixcgYGqXCQn0q7z4X2iHPQXvcUHs3oYnMii/vjI9vsWjBe/w== @@ -3050,17 +3050,6 @@ estree-walker "^2.0.2" source-map-js "^1.0.2" -"@vue/compiler-core@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.4.30.tgz#a554978f68199a0f254ad5159e9665370c8c1250" - integrity sha512-ZL8y4Xxdh8O6PSwfdZ1IpQ24PjTAieOz3jXb/MDTfDtANcKBMxg1KLm6OX2jofsaQGYfIVzd3BAG22i56/cF1w== - dependencies: - "@babel/parser" "^7.24.7" - "@vue/shared" "3.4.30" - entities "^4.5.0" - estree-walker "^2.0.2" - source-map-js "^1.2.0" - "@vue/compiler-dom@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz#f56e09b5f4d7dc350f981784de9713d823341151" @@ -3069,14 +3058,6 @@ "@vue/compiler-core" "3.3.4" "@vue/shared" "3.3.4" -"@vue/compiler-dom@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.4.30.tgz#5af9a5f6f0752f7882d4eba0795e4d00525006dc" - integrity sha512-+16Sd8lYr5j/owCbr9dowcNfrHd+pz+w2/b5Lt26Oz/kB90C9yNbxQ3bYOvt7rI2bxk0nqda39hVcwDFw85c2Q== - dependencies: - "@vue/compiler-core" "3.4.30" - "@vue/shared" "3.4.30" - "@vue/compiler-sfc@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz#b19d942c71938893535b46226d602720593001df" @@ -3093,21 +3074,6 @@ postcss "^8.1.10" source-map-js "^1.0.2" -"@vue/compiler-sfc@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.4.30.tgz#6a3cc86c20349f8c1976c968a8c80dd7cfef2430" - integrity sha512-8vElKklHn/UY8+FgUFlQrYAPbtiSB2zcgeRKW7HkpSRn/JjMRmZvuOtwDx036D1aqKNSTtXkWRfqx53Qb+HmMg== - dependencies: - "@babel/parser" "^7.24.7" - "@vue/compiler-core" "3.4.30" - "@vue/compiler-dom" "3.4.30" - "@vue/compiler-ssr" "3.4.30" - "@vue/shared" "3.4.30" - estree-walker "^2.0.2" - magic-string "^0.30.10" - postcss "^8.4.38" - source-map-js "^1.2.0" - "@vue/compiler-ssr@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz#9d1379abffa4f2b0cd844174ceec4a9721138777" @@ -3116,14 +3082,6 @@ "@vue/compiler-dom" "3.3.4" "@vue/shared" "3.3.4" -"@vue/compiler-ssr@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.4.30.tgz#7938b51f17d62b883d2a61ae42ec4f8398115b1d" - integrity sha512-ZJ56YZGXJDd6jky4mmM0rNaNP6kIbQu9LTKZDhcpddGe/3QIalB1WHHmZ6iZfFNyj5mSypTa4+qDJa5VIuxMSg== - dependencies: - "@vue/compiler-dom" "3.4.30" - "@vue/shared" "3.4.30" - "@vue/devtools-api@^6.0.0-beta.11": version "6.5.1" resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.5.1.tgz#7f71f31e40973eeee65b9a64382b13593fdbd697" @@ -3147,13 +3105,6 @@ dependencies: "@vue/shared" "3.3.4" -"@vue/reactivity@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.4.30.tgz#6849e293eab7feed7d307446feaf1e3d759d5c45" - integrity sha512-bVJurnCe3LS0JII8PPoAA63Zd2MBzcKrEzwdQl92eHCcxtIbxD2fhNwJpa+KkM3Y/A4T5FUnmdhgKwOf6BfbcA== - dependencies: - "@vue/shared" "3.4.30" - "@vue/runtime-core@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.3.4.tgz#4bb33872bbb583721b340f3088888394195967d1" @@ -3162,14 +3113,6 @@ "@vue/reactivity" "3.3.4" "@vue/shared" "3.3.4" -"@vue/runtime-core@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.4.30.tgz#6db949b273af0b988b4f13fecb034f9c9439c41e" - integrity sha512-qaFEbnNpGz+tlnkaualomogzN8vBLkgzK55uuWjYXbYn039eOBZrWxyXWq/7qh9Bz2FPifZqGjVDl/FXiq9L2g== - dependencies: - "@vue/reactivity" "3.4.30" - "@vue/shared" "3.4.30" - "@vue/runtime-dom@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz#992f2579d0ed6ce961f47bbe9bfe4b6791251566" @@ -3179,16 +3122,6 @@ "@vue/shared" "3.3.4" csstype "^3.1.1" -"@vue/runtime-dom@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.4.30.tgz#49f399adc300a000419cb57a20b4481c98f523a4" - integrity sha512-tV6B4YiZRj5QsaJgw2THCy5C1H+2UeywO9tqgWEc21tn85qHEERndHN/CxlyXvSBFrpmlexCIdnqPuR9RM9thw== - dependencies: - "@vue/reactivity" "3.4.30" - "@vue/runtime-core" "3.4.30" - "@vue/shared" "3.4.30" - csstype "^3.1.3" - "@vue/server-renderer@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.3.4.tgz#ea46594b795d1536f29bc592dd0f6655f7ea4c4c" @@ -3197,24 +3130,11 @@ "@vue/compiler-ssr" "3.3.4" "@vue/shared" "3.3.4" -"@vue/server-renderer@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.4.30.tgz#41f117cec12b5fbb9d7c741f59e7a0b515e9b607" - integrity sha512-TBD3eqR1DeDc0cMrXS/vEs/PWzq1uXxnvjoqQuDGFIEHFIwuDTX/KWAQKIBjyMWLFHEeTDGYVsYci85z2UbTDg== - dependencies: - "@vue/compiler-ssr" "3.4.30" - "@vue/shared" "3.4.30" - "@vue/shared@3.3.4": version "3.3.4" resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.3.4.tgz#06e83c5027f464eef861c329be81454bc8b70780" integrity sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ== -"@vue/shared@3.4.30": - version "3.4.30" - resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.4.30.tgz#72acfe8df65139dcf298e965fb2ab1cff419e400" - integrity sha512-CLg+f8RQCHQnKvuHY9adMsMaQOcqclh6Z5V9TaoMgy0ut0tz848joZ7/CYFFyF/yZ5i2yaw7Fn498C+CNZVHIg== - "@webassemblyjs/ast@1.9.0": version "1.9.0" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.9.0.tgz#bd850604b4042459a5a41cd7d338cbed695ed964" @@ -3370,17 +3290,17 @@ resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== -"@zenuml/core@3.23.26": - version "3.23.26" - resolved "https://registry.yarnpkg.com/@zenuml/core/-/core-3.23.26.tgz#0d3fda033fcae1b073b0e227c068adb8a84ff412" - integrity sha512-J36Ui08Bsvu7RvVfj45t4bMxb2xS3Kt4d0fkrJlR1B8Mny1Gxc8vi9Rx9xC9nhrpdwuJOEErIio7VaI886QCWw== +"@zenuml/core@^3.24.2": + version "3.24.2" + resolved "https://registry.yarnpkg.com/@zenuml/core/-/core-3.24.2.tgz#d292e12ba4f2487664aa14984b5063dab7f3812c" + integrity sha512-yJKDAe7exo4lFwi0qvMncCyn2zrKrKKHG5f7TbYy/n1wy+/TUUdUvLrY4Qu8EbsIV4bqYyHWIjoTMqdktk+y2A== dependencies: "@headlessui-float/vue" "^0.14.0" "@headlessui/tailwindcss" "^0.2.0" "@headlessui/vue" "^1.7.16" "@types/assert" "^1.5.6" "@types/ramda" "^0.28.20" - "@vue/compat" "^3.4.27" + "@vue/compat" "^3.2.45" antlr4 "~4.11.0" color-string "^1.5.5" dom-to-image-more "^2.13.0" @@ -3394,7 +3314,7 @@ postcss "^8.4.31" ramda "^0.28.0" tailwindcss "^3.2.4" - vue "^3.4.27" + vue "^3.2.45" vuex "^4.1.0" abab@^2.0.0: @@ -6160,11 +6080,6 @@ csstype@^3.1.1: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.2.tgz#1d4bf9d572f11c14031f0436e1c10bc1f571f50b" integrity sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ== -csstype@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" - integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== - csv-parse@^5.0.4: version "5.5.2" resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.5.2.tgz#ab525e642093dccff7c5cca5c7b71fd3e99fe8f2" @@ -6804,11 +6719,6 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== -entities@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" - integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== - entities@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/entities/-/entities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5" @@ -11512,13 +11422,6 @@ magic-string@^0.30.0: dependencies: "@jridgewell/sourcemap-codec" "^1.4.15" -magic-string@^0.30.10: - version "0.30.10" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.10.tgz#123d9c41a0cb5640c892b041d4cfb3bd0aa4b39e" - integrity sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.15" - make-dir@^2.0.0, make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -13775,7 +13678,7 @@ postcss@^8.1.10, postcss@^8.4.13, postcss@^8.4.23, postcss@^8.4.31: picocolors "^1.0.0" source-map-js "^1.0.2" -postcss@^8.2.1, postcss@^8.2.15, postcss@^8.4.38: +postcss@^8.2.1, postcss@^8.2.15: version "8.4.38" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== @@ -17519,17 +17422,6 @@ vue@^3.2.45: "@vue/server-renderer" "3.3.4" "@vue/shared" "3.3.4" -vue@^3.4.27: - version "3.4.30" - resolved "https://registry.yarnpkg.com/vue/-/vue-3.4.30.tgz#02c75c63a21e305c38a937866d8ee2269b62bbb4" - integrity sha512-NcxtKCwkdf1zPsr7Y8+QlDBCGqxvjLXF2EX+yi76rV5rrz90Y6gK1cq0olIhdWGgrlhs9ElHuhi9t3+W5sG5Xw== - dependencies: - "@vue/compiler-dom" "3.4.30" - "@vue/compiler-sfc" "3.4.30" - "@vue/runtime-dom" "3.4.30" - "@vue/server-renderer" "3.4.30" - "@vue/shared" "3.4.30" - vuex@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/vuex/-/vuex-4.1.0.tgz#aa1b3ea5c7385812b074c86faeeec2217872e36c"