@melt-js/libs-core-vue2 2026.11.15 → 2026.11.16

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 CHANGED
@@ -1,21 +1,23 @@
1
- # @melt-js/libs-core-vue2
2
-
3
- vue2 的远程组件 UI 适配。地址协议、缓存、请求串行与加载状态来自 libs-core;本包只负责组件生命周期、props/事件/插槽透传、加载展示和渲染错误兜底。
4
-
5
- ```js
6
- import { defineHelComponent, preloadHelLibs } from '@melt-js/libs-core-vue2'
7
-
8
- const Chart = defineHelComponent({
9
- type: 'github',
10
- dep: '@example/comps-charts',
11
- exportName: 'Chart',
12
- })
13
- ```
14
-
15
- 预加载与懒加载共用 `{ type, base }` 地址协议:unpkg 保留原始包名与 scope;GitHub 从 `@scope` 推导组织域名,无 scope 时需传 `base`。公共库不默认补任何组织名。以上包名用于说明 API;须先部署对应模块。组件挂载时才发起加载。高频模块继续用 preloadHelLibs 后动态导入业务入口;低频模块用 defineHelComponent。
16
-
17
- 默认展示加载提示;下载失败、导出缺失或子组件渲染错误时展示错误和“重试”按钮。没有自动重试或内置超时。可传 loadingComponent / errorComponent 自定义 UI,错误组件接收 error 与 retry;onError 可报告错误。
18
-
19
- 有宿主运行时注入步骤时,可用 loader: async () => moduleObject 替代 dep;推荐 loader 内调用核心 loadHelLib,以复用预加载缓存。
20
-
21
- 包以原生 ESM 和声明文件交付,无构建产物步骤。发布顺序:libs-core → 本适配包 → 消费方;将 workspace:* 换为包含这些 API 的已发布版本即可独立安装。
1
+ # @melt-js/libs-core-vue2
2
+
3
+ vue2 的远程组件 UI 适配。地址协议、缓存、请求串行与加载状态来自 libs-core;本包只负责组件生命周期、props/事件/插槽透传、加载展示和渲染错误兜底。
4
+
5
+ ```js
6
+ import { defineHelComponent, preloadHelLibs } from '@melt-js/libs-core-vue2'
7
+
8
+ const Chart = defineHelComponent({
9
+ type: 'github',
10
+ dep: '@example/comps-charts',
11
+ exportName: 'Chart',
12
+ })
13
+ ```
14
+
15
+ 预加载与懒加载共用 `{ type, base }` 地址协议:unpkg 保留原始包名与 scope;GitHub 从 `@scope` 推导组织域名,无 scope 时需传 `base`。公共库不默认补任何组织名。以上包名用于说明 API;须先部署对应模块。组件挂载时才发起加载。高频模块继续用 preloadHelLibs 后动态导入业务入口;低频模块用 defineHelComponent。
16
+
17
+ 启动预加载的全屏 loading 默认关闭。缺少启动 loading 的宿主显式配置 `preloadHelLibs({ deps, loading: true, loadApp: () => import('./loadApp') })`;`loading: { text, background?, color? }` 自定义文字和颜色,`false` 关闭。已有覆盖预加载的 loading 时继续沿用。`loadApp` 回调完成或失败后自动清理,异步挂载需返回相应 Promise。`showHelLoading` 也从本包转出,供手动控制并在 finally 中清理。
18
+
19
+ 懒加载组件默认展示加载提示;下载失败、导出缺失或子组件渲染错误时展示错误和“重试”按钮。没有自动重试或内置超时。可传 loadingComponent / errorComponent 自定义 UI,错误组件接收 error 与 retry;onError 可报告错误。
20
+
21
+ 有宿主运行时注入步骤时,可用 loader: async () => moduleObject 替代 dep;推荐 loader 内调用核心 loadHelLib,以复用预加载缓存。
22
+
23
+ 执行 `pnpm build` 生成经过压缩和混淆的 ESM、声明及 CDN 产物;`pnpm pack` 会通过 prepack 自动构建。workspace 入口保留 `src` 以支持联调,发布入口通过 `publishConfig` 指向 `dist`,npm 只交付 `dist` 和 README。`pnpm publish:stage --dry-run` 只打包验收;不带该参数会上传到 npm stage。发布顺序:libs-core → 本适配包 → 消费方;将 workspace:* 换为包含这些 API 的已发布版本即可独立安装。
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@melt-js/libs-core-vue2 · ESM</title><style>body{font:16px/1.6 system-ui;margin:32px}pre{padding:16px;background:#f3f4f6;white-space:pre-wrap;overflow-wrap:anywhere}</style><script>window.addEventListener('error',event=>{window.__helCdnError=event.message||(event.target&&event.target.src)||'CDN resource failed'},true)</script><script src="https://unpkg.com/vue@2.7.16/dist/vue.min.js"></script><script type="importmap">{"imports":{"@melt-js/libs-core":"https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/browser.mjs","@melt-js/libs-core/browser":"https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/browser.mjs","@melt-js/libs-core/demo":"https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/demo/browser.mjs","@melt-js/libs-core/demo/browser":"https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/demo/browser.mjs","@melt-js/libs-core-vue2":"https://unpkg.com/@melt-js/libs-core-vue2@2026.11.16/dist/index.mjs","vue":"data:text/javascript,const%20frame%3Dwindow.Vue%3Bexport%20default%20frame%3Bconst%20value0%3Dframe%5B%22util%22%5D%3Bexport%20%7Bvalue0%20as%20util%7D%3Bconst%20value1%3Dframe%5B%22set%22%5D%3Bexport%20%7Bvalue1%20as%20set%7D%3Bconst%20value2%3Dframe%5B%22delete%22%5D%3Bexport%20%7Bvalue2%20as%20delete%7D%3Bconst%20value3%3Dframe%5B%22nextTick%22%5D%3Bexport%20%7Bvalue3%20as%20nextTick%7D%3Bconst%20value4%3Dframe%5B%22observable%22%5D%3Bexport%20%7Bvalue4%20as%20observable%7D%3Bconst%20value5%3Dframe%5B%22options%22%5D%3Bexport%20%7Bvalue5%20as%20options%7D%3Bconst%20value6%3Dframe%5B%22use%22%5D%3Bexport%20%7Bvalue6%20as%20use%7D%3Bconst%20value7%3Dframe%5B%22mixin%22%5D%3Bexport%20%7Bvalue7%20as%20mixin%7D%3Bconst%20value8%3Dframe%5B%22cid%22%5D%3Bexport%20%7Bvalue8%20as%20cid%7D%3Bconst%20value9%3Dframe%5B%22extend%22%5D%3Bexport%20%7Bvalue9%20as%20extend%7D%3Bconst%20value10%3Dframe%5B%22component%22%5D%3Bexport%20%7Bvalue10%20as%20component%7D%3Bconst%20value11%3Dframe%5B%22directive%22%5D%3Bexport%20%7Bvalue11%20as%20directive%7D%3Bconst%20value12%3Dframe%5B%22filter%22%5D%3Bexport%20%7Bvalue12%20as%20filter%7D%3Bconst%20value13%3Dframe%5B%22version%22%5D%3Bexport%20%7Bvalue13%20as%20version%7D%3Bconst%20value14%3Dframe%5B%22defineComponent%22%5D%3Bexport%20%7Bvalue14%20as%20defineComponent%7D%3Bconst%20value15%3Dframe%5B%22ref%22%5D%3Bexport%20%7Bvalue15%20as%20ref%7D%3Bconst%20value16%3Dframe%5B%22shallowRef%22%5D%3Bexport%20%7Bvalue16%20as%20shallowRef%7D%3Bconst%20value17%3Dframe%5B%22isRef%22%5D%3Bexport%20%7Bvalue17%20as%20isRef%7D%3Bconst%20value18%3Dframe%5B%22toRef%22%5D%3Bexport%20%7Bvalue18%20as%20toRef%7D%3Bconst%20value19%3Dframe%5B%22toRefs%22%5D%3Bexport%20%7Bvalue19%20as%20toRefs%7D%3Bconst%20value20%3Dframe%5B%22unref%22%5D%3Bexport%20%7Bvalue20%20as%20unref%7D%3Bconst%20value21%3Dframe%5B%22proxyRefs%22%5D%3Bexport%20%7Bvalue21%20as%20proxyRefs%7D%3Bconst%20value22%3Dframe%5B%22customRef%22%5D%3Bexport%20%7Bvalue22%20as%20customRef%7D%3Bconst%20value23%3Dframe%5B%22triggerRef%22%5D%3Bexport%20%7Bvalue23%20as%20triggerRef%7D%3Bconst%20value24%3Dframe%5B%22reactive%22%5D%3Bexport%20%7Bvalue24%20as%20reactive%7D%3Bconst%20value25%3Dframe%5B%22isReactive%22%5D%3Bexport%20%7Bvalue25%20as%20isReactive%7D%3Bconst%20value26%3Dframe%5B%22isReadonly%22%5D%3Bexport%20%7Bvalue26%20as%20isReadonly%7D%3Bconst%20value27%3Dframe%5B%22isShallow%22%5D%3Bexport%20%7Bvalue27%20as%20isShallow%7D%3Bconst%20value28%3Dframe%5B%22isProxy%22%5D%3Bexport%20%7Bvalue28%20as%20isProxy%7D%3Bconst%20value29%3Dframe%5B%22shallowReactive%22%5D%3Bexport%20%7Bvalue29%20as%20shallowReactive%7D%3Bconst%20value30%3Dframe%5B%22markRaw%22%5D%3Bexport%20%7Bvalue30%20as%20markRaw%7D%3Bconst%20value31%3Dframe%5B%22toRaw%22%5D%3Bexport%20%7Bvalue31%20as%20toRaw%7D%3Bconst%20value32%3Dframe%5B%22readonly%22%5D%3Bexport%20%7Bvalue32%20as%20readonly%7D%3Bconst%20value33%3Dframe%5B%22shallowReadonly%22%5D%3Bexport%20%7Bvalue33%20as%20shallowReadonly%7D%3Bconst%20value34%3Dframe%5B%22computed%22%5D%3Bexport%20%7Bvalue34%20as%20computed%7D%3Bconst%20value35%3Dframe%5B%22watch%22%5D%3Bexport%20%7Bvalue35%20as%20watch%7D%3Bconst%20value36%3Dframe%5B%22watchEffect%22%5D%3Bexport%20%7Bvalue36%20as%20watchEffect%7D%3Bconst%20value37%3Dframe%5B%22watchPostEffect%22%5D%3Bexport%20%7Bvalue37%20as%20watchPostEffect%7D%3Bconst%20value38%3Dframe%5B%22watchSyncEffect%22%5D%3Bexport%20%7Bvalue38%20as%20watchSyncEffect%7D%3Bconst%20value39%3Dframe%5B%22EffectScope%22%5D%3Bexport%20%7Bvalue39%20as%20EffectScope%7D%3Bconst%20value40%3Dframe%5B%22effectScope%22%5D%3Bexport%20%7Bvalue40%20as%20effectScope%7D%3Bconst%20value41%3Dframe%5B%22onScopeDispose%22%5D%3Bexport%20%7Bvalue41%20as%20onScopeDispose%7D%3Bconst%20value42%3Dframe%5B%22getCurrentScope%22%5D%3Bexport%20%7Bvalue42%20as%20getCurrentScope%7D%3Bconst%20value43%3Dframe%5B%22provide%22%5D%3Bexport%20%7Bvalue43%20as%20provide%7D%3Bconst%20value44%3Dframe%5B%22inject%22%5D%3Bexport%20%7Bvalue44%20as%20inject%7D%3Bconst%20value45%3Dframe%5B%22h%22%5D%3Bexport%20%7Bvalue45%20as%20h%7D%3Bconst%20value46%3Dframe%5B%22getCurrentInstance%22%5D%3Bexport%20%7Bvalue46%20as%20getCurrentInstance%7D%3Bconst%20value47%3Dframe%5B%22useSlots%22%5D%3Bexport%20%7Bvalue47%20as%20useSlots%7D%3Bconst%20value48%3Dframe%5B%22useAttrs%22%5D%3Bexport%20%7Bvalue48%20as%20useAttrs%7D%3Bconst%20value49%3Dframe%5B%22useListeners%22%5D%3Bexport%20%7Bvalue49%20as%20useListeners%7D%3Bconst%20value50%3Dframe%5B%22mergeDefaults%22%5D%3Bexport%20%7Bvalue50%20as%20mergeDefaults%7D%3Bconst%20value51%3Dframe%5B%22del%22%5D%3Bexport%20%7Bvalue51%20as%20del%7D%3Bconst%20value52%3Dframe%5B%22useCssModule%22%5D%3Bexport%20%7Bvalue52%20as%20useCssModule%7D%3Bconst%20value53%3Dframe%5B%22useCssVars%22%5D%3Bexport%20%7Bvalue53%20as%20useCssVars%7D%3Bconst%20value54%3Dframe%5B%22defineAsyncComponent%22%5D%3Bexport%20%7Bvalue54%20as%20defineAsyncComponent%7D%3Bconst%20value55%3Dframe%5B%22onBeforeMount%22%5D%3Bexport%20%7Bvalue55%20as%20onBeforeMount%7D%3Bconst%20value56%3Dframe%5B%22onMounted%22%5D%3Bexport%20%7Bvalue56%20as%20onMounted%7D%3Bconst%20value57%3Dframe%5B%22onBeforeUpdate%22%5D%3Bexport%20%7Bvalue57%20as%20onBeforeUpdate%7D%3Bconst%20value58%3Dframe%5B%22onUpdated%22%5D%3Bexport%20%7Bvalue58%20as%20onUpdated%7D%3Bconst%20value59%3Dframe%5B%22onBeforeUnmount%22%5D%3Bexport%20%7Bvalue59%20as%20onBeforeUnmount%7D%3Bconst%20value60%3Dframe%5B%22onUnmounted%22%5D%3Bexport%20%7Bvalue60%20as%20onUnmounted%7D%3Bconst%20value61%3Dframe%5B%22onActivated%22%5D%3Bexport%20%7Bvalue61%20as%20onActivated%7D%3Bconst%20value62%3Dframe%5B%22onDeactivated%22%5D%3Bexport%20%7Bvalue62%20as%20onDeactivated%7D%3Bconst%20value63%3Dframe%5B%22onServerPrefetch%22%5D%3Bexport%20%7Bvalue63%20as%20onServerPrefetch%7D%3Bconst%20value64%3Dframe%5B%22onRenderTracked%22%5D%3Bexport%20%7Bvalue64%20as%20onRenderTracked%7D%3Bconst%20value65%3Dframe%5B%22onRenderTriggered%22%5D%3Bexport%20%7Bvalue65%20as%20onRenderTriggered%7D%3Bconst%20value66%3Dframe%5B%22onErrorCaptured%22%5D%3Bexport%20%7Bvalue66%20as%20onErrorCaptured%7D%3B"}}</script></head><body><h1>@melt-js/libs-core-vue2 · ESM</h1><p>联网加载 CDN。业务实现已构建,框架与宿主共享。</p><pre id="result">正在加载…</pre><div id="app"></div><script type="module">const result=document.getElementById('result');function fail(error){result.textContent='FAIL: '+String(error);console.error(error)};window.addEventListener('error',event=>fail(event.message));window.addEventListener('unhandledrejection',event=>fail(event.reason));if(window.__helCdnError){fail(window.__helCdnError);throw Error(window.__helCdnError)};try{const lib=await import("../index.mjs");result.textContent='PASS: '+"@melt-js/libs-core-vue2"+'\n'+Object.keys(lib).join(', ');window.libraryExample=lib;}catch(error){fail(error)}</script></body></html>
@@ -0,0 +1 @@
1
+ <!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>@melt-js/libs-core-vue2 · UMD</title><style>body{font:16px/1.6 system-ui;margin:32px}pre{padding:16px;background:#f3f4f6;white-space:pre-wrap;overflow-wrap:anywhere}</style><script>window.addEventListener('error',event=>{window.__helCdnError=event.message||(event.target&&event.target.src)||'CDN resource failed'},true)</script><script src="https://unpkg.com/vue@2.7.16/dist/vue.min.js"></script><script src="https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/cdn/vendor.umd.cjs"></script><script src="https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/cdn/index.umd.cjs"></script><script src="./vendor.umd.cjs"></script><script src="./index.umd.cjs"></script></head><body><h1>@melt-js/libs-core-vue2 · UMD</h1><p>联网加载 CDN。业务实现已构建,框架与宿主共享。</p><pre id="result">正在加载…</pre><div id="app"></div><script>const result=document.getElementById('result');function fail(error){result.textContent='FAIL: '+String(error);console.error(error)};window.addEventListener('error',event=>fail(event.message));window.addEventListener('unhandledrejection',event=>fail(event.reason));if(window.__helCdnError){fail(window.__helCdnError);throw Error(window.__helCdnError)};try{const lib=window.MeltPackages["@melt-js/libs-core-vue2"];result.textContent='PASS: '+"@melt-js/libs-core-vue2"+'\n'+Object.keys(lib).join(', ');window.libraryExample=lib;}catch(error){fail(error)}</script></body></html>
@@ -0,0 +1,2 @@
1
+ (function(){function _0x31a8(){const _0x3a806e=['nJi5mtaWmev3uwnmBW','B2u5BeqXtfL0yq','nMWRqZu2swW1n1vLnwXvmJvSsw41EsTwntvZtZC3wue','zMLSztOVlY8','AMHUu0iZCLO','CMvZB2X2zuHLBerLChm','AxnizwXnzxrHsg9ZDa','qg1LBhqTANmVBgLICY1JB3jLlxz1zti','odeZodGWoxnyzKvkqW','C2D2u3vnDLrcm3jmCti5venNovv6DZuW','BgvUz3rO','EMDmwKnNovP6Cq','yMLUzfjLywn0uNvUDgLTzq','qg1LBhqTANmVBgLICY1JB3jLl2nKBI9PBMrLEc51BwqUy2PZ','ogv2CMHUAa','zNvUy3rPB24','ENHQwuiZAMrcmJfxqJi1tejoCq','qg1LBhqTANmVBgLICY1JB3jL','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','Aw5KzxHpzG','Bxr1wM5AsZjVzKHiqMHishnH','ote2u2DPBuzu','B2jQzwn0','C2XPy2u','Bxr5mg5ABvPTtgzurhDMnNDH','CMvWBgfJzufSBa','twvSDenKBLzLBMrVCNm','C2HPzNq','qZnYserODLO','zgvMyxvSDa','C2D2u3rNouH6z0XvELC','ywjJzgvMz2HPAMTSBw5VChfYC3r1DND4ExPbqKneruzhseLks0XntK9quvjtvfvwv1HzwJaXmJm0nty3odKRlZ0','CMvZB2X2zuHLBeHVC3q','Bg9HzeHLBenVBxbVBMvUDa','zgvMAw5LsgvSq29TCg9Uzw50','BvPPng1KEvLUD2PmCuXYwxLx','C2HVD0HLBeXVywrPBMC','ExDytenoCq','ENHQwuiZAq','Bg9HzenKBLjLC291CMnLCW','z2v0tgLI','EK1MuejH','y3vYCMvUDfnJCMLWDa','nZmWn2PgwLvZua','B2rHmg5KEtrem3PKqwC5yG','sevmx0jbu0vt','zxHWB3nLtgLI','zgvWma','ChjLBg9HzeHLBeXPyNm','q012menosW','ChvZAa','B0TcBLbK','y3jLyxrL','zM9YrwfJAa','sgvStg9HzevYCM9Y','twvSDfbHy2THz2vZ','mta5ntvZzMP2rvm','mZC5nJC1oefvwNn6vG','Bxz2BxvnEJvbvW','yMLUzfz1zvj1BNrPBwu','zxHWB3j0CW','CMvZB2X2zuHLBerLCa','BNr1mM90AtvbzNPqDeTima','wwnqBNnT','re1Mu0r3DLO','mJzvuK9iu0O','ENHimhP3nuS','A2v5CW','qMC5shPH','Eu52merNovu','q012veiZCKX1m3jirgD1','zNjVBunOyxjdB2rL','yxnZzxj0sgvSrxHWB3j0CW','AMDMmerOALO','C3jJ','B2rTwg5kBtrUmNO0CZfeuxPX','BK1uEhv3muT0vW','y2HHCKnVzgvbDa','y3jLyxrLsgvStg9HzgvY','nveYsJv6wu81EvfhnMWYotzSk0m1nKLSntDvztvSvti0t2nn','EdjitejMAKXdmJKXq01Uta','qMC5shPNtfv6vW','qMC5shPNtfv6mg5wqNHIvKjnDLveyq','sgvStg9HzgLUzW','lI92zw5KB3iUDw1KlMnQCW','y2HHCKf0','C2D2u3j4ALLcm2K','Bg9HzeHLBeXPyNntzxjPywW','Dg9tDhjPBMC','AMDyuemZCKXctxzzq1C','zgvMAw5LuhjVCgvYDhK','sgvSrxjYB3i','ntm3nZaXotbYA01mwwW','vgrWz1vM','Bxrhww5AEtnUsMj2DgHUwKvlzq','zNjLzxPL','AMHUsKiZyKX6zM5tqJnYwG','nda0mtuXm1jOvwP6EG','EMDmmG','qJjQuxP3BJa','yw1K','z2v0','EK1yserH','Eti5venNovv6DZuW','q012shPOsW','y3jLyxrLsgvSq29TCg9Uzw50uMvZB3vYy2u','Bg9HzeHLBeXPyG'];_0x31a8=function(){return _0x3a806e;};return _0x31a8();}function _0x331f(_0x33aa5e,_0x45a37b){_0x33aa5e=_0x33aa5e-0x16d;const _0x31a8d7=_0x31a8();let _0x331f55=_0x31a8d7[_0x33aa5e];if(_0x331f['EdOTaJ']===undefined){var _0x2079ec=function(_0x1c67a5){const _0x14c437='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f88ba='',_0x10cf4d='';for(let _0x3d527f=0x0,_0x870a73,_0x104ac6,_0x20ecae=0x0;_0x104ac6=_0x1c67a5['charAt'](_0x20ecae++);~_0x104ac6&&(_0x870a73=_0x3d527f%0x4?_0x870a73*0x40+_0x104ac6:_0x104ac6,_0x3d527f++%0x4)?_0x3f88ba+=String['fromCharCode'](0xff&_0x870a73>>(-0x2*_0x3d527f&0x6)):0x0){_0x104ac6=_0x14c437['indexOf'](_0x104ac6);}for(let _0x583965=0x0,_0x4ab561=_0x3f88ba['length'];_0x583965<_0x4ab561;_0x583965++){_0x10cf4d+='%'+('00'+_0x3f88ba['charCodeAt'](_0x583965)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10cf4d);};_0x331f['GuBfrS']=_0x2079ec,_0x331f['vgJYDh']={},_0x331f['EdOTaJ']=!![];}const _0x219ef2=_0x31a8d7[0x0],_0x311ee5=_0x33aa5e+_0x219ef2,_0x2ada3b=_0x331f['vgJYDh'][_0x311ee5];return!_0x2ada3b?(_0x331f55=_0x331f['GuBfrS'](_0x331f55),_0x331f['vgJYDh'][_0x311ee5]=_0x331f55):_0x331f55=_0x2ada3b,_0x331f55;}(function(_0x431099,_0xb3527a){const _0x1d163a=_0x331f,_0x52cb8a=_0x431099();while(!![]){try{const _0x39c84d=-parseInt(_0x1d163a(0x171))/0x1*(parseInt(_0x1d163a(0x187))/0x2)+-parseInt(_0x1d163a(0x17f))/0x3+parseInt(_0x1d163a(0x1c6))/0x4*(-parseInt(_0x1d163a(0x17e))/0x5)+-parseInt(_0x1d163a(0x1b1))/0x6+-parseInt(_0x1d163a(0x1b9))/0x7+parseInt(_0x1d163a(0x1bf))/0x8*(-parseInt(_0x1d163a(0x1a7))/0x9)+parseInt(_0x1d163a(0x1a2))/0xa;if(_0x39c84d===_0xb3527a)break;else _0x52cb8a['push'](_0x52cb8a['shift']());}catch(_0x48d408){_0x52cb8a['push'](_0x52cb8a['shift']());}}}(_0x31a8,0xd09bb),function(_0x3f88ba,_0x10cf4d){const _0x2e4d7c=_0x331f;typeof exports==_0x2e4d7c(0x1c7)&&typeof module<'u'?_0x10cf4d(exports,require('./vendor.umd.cjs'),require('@melt-js/libs-core/cdn/index.umd.cjs')):typeof define==_0x2e4d7c(0x1c0)&&define[_0x2e4d7c(0x1aa)]?define([_0x2e4d7c(0x182),_0x2e4d7c(0x19a),_0x2e4d7c(0x1be)],_0x10cf4d):(_0x3f88ba=typeof globalThis<'u'?globalThis:_0x3f88ba||self,_0x10cf4d((_0x3f88ba[_0x2e4d7c(0x17d)]=_0x3f88ba[_0x2e4d7c(0x17d)]||{},_0x3f88ba[_0x2e4d7c(0x17d)][_0x2e4d7c(0x1b8)]={}),_0x3f88ba[_0x2e4d7c(0x1cb)][_0x2e4d7c(0x1b8)],_0x3f88ba[_0x2e4d7c(0x17d)][_0x2e4d7c(0x1c2)]));}(this,function(_0x3d527f,_0x870a73,_0x104ac6){'use strict';const _0x2b1f0b=_0x331f;var _0x20ecae=typeof document<'u'&&document[_0x2b1f0b(0x170)]?document[_0x2b1f0b(0x170)][_0x2b1f0b(0x190)]:typeof __filename<'u'?_0x2b1f0b(0x1b4)+__filename[_0x2b1f0b(0x1ca)]('\x5c','/'):_0x2b1f0b(0x1b4);function _0x583965(_0x4923dc){const _0x19cbf0=_0x331f;var _0x3f446e=Object[_0x19cbf0(0x17a)](null);return _0x4923dc&&Object[_0x19cbf0(0x189)](_0x4923dc)[_0x19cbf0(0x17b)](function(_0x4e0ed8){const _0x24aebb=_0x331f;if(_0x4e0ed8!==_0x24aebb(0x1ce)){var _0x1dd350=Object[_0x24aebb(0x1c3)](_0x4923dc,_0x4e0ed8);Object[_0x24aebb(0x1a0)](_0x3f446e,_0x4e0ed8,_0x1dd350[_0x24aebb(0x1ab)]?_0x1dd350:{'enumerable':!0x0,'get':function(){return _0x4923dc[_0x4e0ed8];}});}}),_0x3f446e[_0x19cbf0(0x1ce)]=_0x4923dc,Object[_0x19cbf0(0x1a5)](_0x3f446e);}var _0x4ab561=_0x583965(_0x104ac6),_0xfc89d2=_0x870a73[_0x2b1f0b(0x175)][_0x2b1f0b(0x1ce)];const _0x4e7812=_0x4ab561[_0x2b1f0b(0x1af)],_0x6ccc46=_0x4ab561[_0x2b1f0b(0x173)],_0x412aab=_0x4ab561[_0x2b1f0b(0x17c)],_0x386080=_0x4ab561[_0x2b1f0b(0x18e)],_0x267cf3=_0x4ab561[_0x2b1f0b(0x1bd)],_0x38be37=_0x4ab561[_0x2b1f0b(0x181)],_0x3f2e02=_0x4ab561[_0x2b1f0b(0x194)],_0x1ddf23=_0x4ab561[_0x2b1f0b(0x174)],_0x8d5637=_0x4ab561[_0x2b1f0b(0x16e)],_0x3817a4=_0x4ab561[_0x2b1f0b(0x1b7)],_0x4a6ea8=_0x4ab561[_0x2b1f0b(0x16d)],_0x36922d=_0x4ab561[_0x2b1f0b(0x1d2)],_0x3cbea2=_0x4ab561[_0x2b1f0b(0x1b0)],_0x1b55f5=_0x4ab561[_0x2b1f0b(0x19d)],_0x40596a=_0x4ab561[_0x2b1f0b(0x176)],_0x119a70=_0x4ab561[_0x2b1f0b(0x183)],_0x3d291c=_0x4ab561[_0x2b1f0b(0x1b6)],_0x764abc=_0x4ab561[_0x2b1f0b(0x1d1)],_0x184243=_0x4ab561[_0x2b1f0b(0x1d5)];function _0x1d3277(_0x2bed79,_0x48f470){const _0x1171aa=_0x331f;_0x2bed79=_0x2bed79-0x6a;const _0x740d1d=_0x3358e0();let _0xcc96d2=_0x740d1d[_0x2bed79];if(_0x1d3277[_0x1171aa(0x179)]===void 0x0){var _0x4b56b9=function(_0x2e4f69){const _0x58a123=_0x331f,_0x5b21e7=_0x58a123(0x1d0);let _0x2377ba='',_0x106e03='';for(let _0x3352e5=0x0,_0x59eeb0,_0x2ef616,_0x1455ef=0x0;_0x2ef616=_0x2e4f69[_0x58a123(0x19b)](_0x1455ef++);~_0x2ef616&&(_0x59eeb0=_0x3352e5%0x4?_0x59eeb0*0x40+_0x2ef616:_0x2ef616,_0x3352e5++%0x4)?_0x2377ba+=String[_0x58a123(0x18d)](0xff&_0x59eeb0>>(-0x2*_0x3352e5&0x6)):0x0)_0x2ef616=_0x5b21e7[_0x58a123(0x1c4)](_0x2ef616);for(let _0x4254a8=0x0,_0x525e87=_0x2377ba[_0x58a123(0x1bb)];_0x4254a8<_0x525e87;_0x4254a8++)_0x106e03+='%'+('00'+_0x2377ba[_0x58a123(0x193)](_0x4254a8)[_0x58a123(0x19e)](0x10))[_0x58a123(0x1c8)](-0x2);return decodeURIComponent(_0x106e03);};_0x1d3277[_0x1171aa(0x1a3)]=_0x4b56b9,_0x1d3277[_0x1171aa(0x185)]={},_0x1d3277[_0x1171aa(0x179)]=!0x0;}const _0x46ea0b=_0x740d1d[0x0],_0x57c849=_0x2bed79+_0x46ea0b,_0x10f510=_0x1d3277[_0x1171aa(0x185)][_0x57c849];return _0x10f510?_0xcc96d2=_0x10f510:(_0xcc96d2=_0x1d3277[_0x1171aa(0x1a3)](_0xcc96d2),_0x1d3277[_0x1171aa(0x185)][_0x57c849]=_0xcc96d2),_0xcc96d2;}const _0x10cc7e=_0x1d3277;(function(_0x597167,_0x5be6fa){const _0x5a2198=_0x331f,_0x3863f5=_0x1d3277,_0x3a87cf=_0x597167();for(;;)try{if(-parseInt(_0x3863f5(0x8e))/0x1*(-parseInt(_0x3863f5(0x6e))/0x2)+parseInt(_0x3863f5(0x7f))/0x3*(-parseInt(_0x3863f5(0x79))/0x4)+-parseInt(_0x3863f5(0x81))/0x5+-parseInt(_0x3863f5(0x90))/0x6*(-parseInt(_0x3863f5(0x86))/0x7)+-parseInt(_0x3863f5(0x87))/0x8+-parseInt(_0x3863f5(0x7c))/0x9+parseInt(_0x3863f5(0x72))/0xa===_0x5be6fa)break;_0x3a87cf[_0x5a2198(0x178)](_0x3a87cf[_0x5a2198(0x1cc)]());}catch{_0x3a87cf[_0x5a2198(0x178)](_0x3a87cf[_0x5a2198(0x1cc)]());}}(_0x3358e0,0x97fe6));function _0x3358e0(){const _0xbe699f=_0x331f,_0x5ab09c=[_0xbe699f(0x186),_0xbe699f(0x1b2),_0xbe699f(0x1d6),_0xbe699f(0x195),_0xbe699f(0x191),_0xbe699f(0x1bc),_0xbe699f(0x1d7),_0xbe699f(0x184),_0xbe699f(0x19c),_0xbe699f(0x1d4),_0xbe699f(0x1b5),_0xbe699f(0x1cf),_0xbe699f(0x188),_0xbe699f(0x18c),_0xbe699f(0x172),_0xbe699f(0x1c5),_0xbe699f(0x1a9),_0xbe699f(0x1a6),_0xbe699f(0x19f),_0xbe699f(0x196),_0xbe699f(0x1ac),_0xbe699f(0x1ba),_0xbe699f(0x180),_0xbe699f(0x1ae),_0xbe699f(0x192),_0xbe699f(0x198),_0xbe699f(0x16f),_0xbe699f(0x1b3),_0xbe699f(0x1ad),_0xbe699f(0x1c9),_0xbe699f(0x18f),_0xbe699f(0x1cd),_0xbe699f(0x197),_0xbe699f(0x1a4),_0xbe699f(0x1c1),_0xbe699f(0x18a),_0xbe699f(0x1a8),_0xbe699f(0x18b),_0xbe699f(0x177)];return _0x3358e0=function(){return _0x5ab09c;},_0x3358e0();}const _0x3e6f24=_0xfc89d2[_0x10cc7e(0x84)]({'name':_0x10cc7e(0x83),'render'(_0x4af997){const _0xf37569=_0x1d3277;return _0x4af997('p',{'attrs':{'role':_0xf37569(0x70)}},_0xf37569(0x7b));}}),_0x4792ae=_0xfc89d2[_0x10cc7e(0x84)]({'name':_0x10cc7e(0x80),'props':[_0x10cc7e(0x7e),_0x10cc7e(0x77)],'render'(_0x156f43){const _0x1d9787=_0x1d3277;return _0x156f43(_0x1d9787(0x75),{'attrs':{'role':_0x1d9787(0x7a)}},[_0x156f43('p',_0x1d9787(0x6c)+String(this[_0x1d9787(0x7e)])),_0x156f43(_0x1d9787(0x76),{'attrs':{'type':_0x1d9787(0x76)},'on':{'click':this[_0x1d9787(0x77)]}},'重试')]);}});function _0x59ffe8(_0x200fbb){const _0x3997ad=_0x1d3277;return _0xfc89d2[_0x3997ad(0x84)]({'name':_0x3997ad(0x8d),'inheritAttrs':!0x1,'data'(){return{'remoteState':{'status':_0x1d3277(0x71),'component':null,'error':null}};},'created'(){const _0x3cb4b8=_0x1d3277;this[_0x3cb4b8(0x8b)]=_0x4e7812(_0x200fbb,_0x65f719=>{const _0x30201a=_0x1d3277;this[_0x30201a(0x85)]=_0x65f719[_0x30201a(0x70)]===_0x30201a(0x8f)&&typeof _0x65f719[_0x30201a(0x6d)]==_0x30201a(0x88)?{..._0x65f719,'component':_0xfc89d2[_0x30201a(0x84)](_0x65f719[_0x30201a(0x6d)])}:_0x65f719;}),this[_0x3cb4b8(0x8b)][_0x3cb4b8(0x74)]();},'beforeDestroy'(){const _0xb278e1=_0x1d3277;this[_0xb278e1(0x8b)][_0xb278e1(0x7d)]();},'errorCaptured'(_0x327818){const _0x522129=_0x1d3277;if(this[_0x522129(0x85)][_0x522129(0x70)]!==_0x522129(0x7e))return this[_0x522129(0x8b)][_0x522129(0x6b)](_0x327818),!0x1;},'render'(_0x2562f3){const _0x1f4370=_0x1d3277,_0x2afbd1=this[_0x1f4370(0x85)];return _0x2afbd1[_0x1f4370(0x70)]===_0x1f4370(0x7e)?_0x2562f3(_0x200fbb[_0x1f4370(0x73)]||_0x4792ae,{'props':{'error':_0x2afbd1[_0x1f4370(0x7e)],'retry':this[_0x1f4370(0x8b)][_0x1f4370(0x77)]}}):_0x2afbd1[_0x1f4370(0x70)]!==_0x1f4370(0x8f)?_0x2562f3(_0x200fbb[_0x1f4370(0x6a)]||_0x3e6f24):_0x2562f3(_0x2afbd1[_0x1f4370(0x6d)],{'attrs':this[_0x1f4370(0x6f)],'props':this[_0x1f4370(0x6f)],'on':this[_0x1f4370(0x8a)],'scopedSlots':this[_0x1f4370(0x89)]},Object[_0x1f4370(0x78)](this[_0x1f4370(0x82)])[_0x1f4370(0x8c)]());}});}_0x3d527f[_0x2b1f0b(0x173)]=_0x6ccc46,_0x3d527f[_0x2b1f0b(0x1a1)]=_0x4792ae,_0x3d527f[_0x2b1f0b(0x17c)]=_0x412aab,_0x3d527f[_0x2b1f0b(0x199)]=_0x3e6f24,_0x3d527f[_0x2b1f0b(0x18e)]=_0x386080,_0x3d527f[_0x2b1f0b(0x1bd)]=_0x267cf3,_0x3d527f[_0x2b1f0b(0x181)]=_0x38be37,_0x3d527f[_0x2b1f0b(0x1af)]=_0x4e7812,_0x3d527f[_0x2b1f0b(0x194)]=_0x3f2e02,_0x3d527f[_0x2b1f0b(0x1d3)]=_0x59ffe8,_0x3d527f[_0x2b1f0b(0x174)]=_0x1ddf23,_0x3d527f[_0x2b1f0b(0x16e)]=_0x8d5637,_0x3d527f[_0x2b1f0b(0x1b7)]=_0x3817a4,_0x3d527f[_0x2b1f0b(0x16d)]=_0x4a6ea8,_0x3d527f[_0x2b1f0b(0x1d2)]=_0x36922d,_0x3d527f[_0x2b1f0b(0x1b0)]=_0x3cbea2,_0x3d527f[_0x2b1f0b(0x19d)]=_0x1b55f5,_0x3d527f[_0x2b1f0b(0x176)]=_0x40596a,_0x3d527f[_0x2b1f0b(0x183)]=_0x119a70,_0x3d527f[_0x2b1f0b(0x1b6)]=_0x3d291c,_0x3d527f[_0x2b1f0b(0x1d1)]=_0x764abc,_0x3d527f[_0x2b1f0b(0x1d5)]=_0x184243;}));
2
+ }).call(typeof globalThis!=='undefined'?globalThis:this);
Binary file
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@melt-js/libs-core-vue2",
3
+ "version": "2026.11.16",
4
+ "entries": {
5
+ "@melt-js/libs-core-vue2": {
6
+ "specifier": "@melt-js/libs-core-vue2",
7
+ "esm": "dist/index.mjs",
8
+ "umd": "dist/cdn/index.umd.cjs",
9
+ "exports": [
10
+ "HEL_BASES",
11
+ "HelError",
12
+ "HelLoadError",
13
+ "HelLoading",
14
+ "assertHelExports",
15
+ "bindReactRuntime",
16
+ "bindVueRuntime",
17
+ "createHelComponentResource",
18
+ "createHelLoader",
19
+ "defineHelComponent",
20
+ "exposeLib",
21
+ "getLib",
22
+ "isHelMetaHost",
23
+ "loadCdnResources",
24
+ "loadHelComponent",
25
+ "loadHelLib",
26
+ "loadHelLibsSerial",
27
+ "preloadHelLibs",
28
+ "resolveHelDep",
29
+ "resolveHelDeps",
30
+ "resolveHelHost",
31
+ "showHelLoading"
32
+ ]
33
+ }
34
+ },
35
+ "resources": [
36
+ {
37
+ "specifier": "@melt-js/libs-core",
38
+ "esm": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/browser.mjs",
39
+ "umd": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/cdn/index.umd.cjs",
40
+ "vendor": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/cdn/vendor.umd.cjs"
41
+ }
42
+ ],
43
+ "imports": {
44
+ "@melt-js/libs-core": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/browser.mjs",
45
+ "@melt-js/libs-core/browser": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/browser.mjs",
46
+ "@melt-js/libs-core/demo": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/demo/browser.mjs",
47
+ "@melt-js/libs-core/demo/browser": "https://unpkg.com/@melt-js/libs-core@2026.11.16-1/dist/demo/browser.mjs",
48
+ "@melt-js/libs-core-vue2": "https://unpkg.com/@melt-js/libs-core-vue2@2026.11.16/dist/index.mjs",
49
+ "vue": "data:text/javascript,const%20frame%3Dwindow.Vue%3Bexport%20default%20frame%3Bconst%20value0%3Dframe%5B%22util%22%5D%3Bexport%20%7Bvalue0%20as%20util%7D%3Bconst%20value1%3Dframe%5B%22set%22%5D%3Bexport%20%7Bvalue1%20as%20set%7D%3Bconst%20value2%3Dframe%5B%22delete%22%5D%3Bexport%20%7Bvalue2%20as%20delete%7D%3Bconst%20value3%3Dframe%5B%22nextTick%22%5D%3Bexport%20%7Bvalue3%20as%20nextTick%7D%3Bconst%20value4%3Dframe%5B%22observable%22%5D%3Bexport%20%7Bvalue4%20as%20observable%7D%3Bconst%20value5%3Dframe%5B%22options%22%5D%3Bexport%20%7Bvalue5%20as%20options%7D%3Bconst%20value6%3Dframe%5B%22use%22%5D%3Bexport%20%7Bvalue6%20as%20use%7D%3Bconst%20value7%3Dframe%5B%22mixin%22%5D%3Bexport%20%7Bvalue7%20as%20mixin%7D%3Bconst%20value8%3Dframe%5B%22cid%22%5D%3Bexport%20%7Bvalue8%20as%20cid%7D%3Bconst%20value9%3Dframe%5B%22extend%22%5D%3Bexport%20%7Bvalue9%20as%20extend%7D%3Bconst%20value10%3Dframe%5B%22component%22%5D%3Bexport%20%7Bvalue10%20as%20component%7D%3Bconst%20value11%3Dframe%5B%22directive%22%5D%3Bexport%20%7Bvalue11%20as%20directive%7D%3Bconst%20value12%3Dframe%5B%22filter%22%5D%3Bexport%20%7Bvalue12%20as%20filter%7D%3Bconst%20value13%3Dframe%5B%22version%22%5D%3Bexport%20%7Bvalue13%20as%20version%7D%3Bconst%20value14%3Dframe%5B%22defineComponent%22%5D%3Bexport%20%7Bvalue14%20as%20defineComponent%7D%3Bconst%20value15%3Dframe%5B%22ref%22%5D%3Bexport%20%7Bvalue15%20as%20ref%7D%3Bconst%20value16%3Dframe%5B%22shallowRef%22%5D%3Bexport%20%7Bvalue16%20as%20shallowRef%7D%3Bconst%20value17%3Dframe%5B%22isRef%22%5D%3Bexport%20%7Bvalue17%20as%20isRef%7D%3Bconst%20value18%3Dframe%5B%22toRef%22%5D%3Bexport%20%7Bvalue18%20as%20toRef%7D%3Bconst%20value19%3Dframe%5B%22toRefs%22%5D%3Bexport%20%7Bvalue19%20as%20toRefs%7D%3Bconst%20value20%3Dframe%5B%22unref%22%5D%3Bexport%20%7Bvalue20%20as%20unref%7D%3Bconst%20value21%3Dframe%5B%22proxyRefs%22%5D%3Bexport%20%7Bvalue21%20as%20proxyRefs%7D%3Bconst%20value22%3Dframe%5B%22customRef%22%5D%3Bexport%20%7Bvalue22%20as%20customRef%7D%3Bconst%20value23%3Dframe%5B%22triggerRef%22%5D%3Bexport%20%7Bvalue23%20as%20triggerRef%7D%3Bconst%20value24%3Dframe%5B%22reactive%22%5D%3Bexport%20%7Bvalue24%20as%20reactive%7D%3Bconst%20value25%3Dframe%5B%22isReactive%22%5D%3Bexport%20%7Bvalue25%20as%20isReactive%7D%3Bconst%20value26%3Dframe%5B%22isReadonly%22%5D%3Bexport%20%7Bvalue26%20as%20isReadonly%7D%3Bconst%20value27%3Dframe%5B%22isShallow%22%5D%3Bexport%20%7Bvalue27%20as%20isShallow%7D%3Bconst%20value28%3Dframe%5B%22isProxy%22%5D%3Bexport%20%7Bvalue28%20as%20isProxy%7D%3Bconst%20value29%3Dframe%5B%22shallowReactive%22%5D%3Bexport%20%7Bvalue29%20as%20shallowReactive%7D%3Bconst%20value30%3Dframe%5B%22markRaw%22%5D%3Bexport%20%7Bvalue30%20as%20markRaw%7D%3Bconst%20value31%3Dframe%5B%22toRaw%22%5D%3Bexport%20%7Bvalue31%20as%20toRaw%7D%3Bconst%20value32%3Dframe%5B%22readonly%22%5D%3Bexport%20%7Bvalue32%20as%20readonly%7D%3Bconst%20value33%3Dframe%5B%22shallowReadonly%22%5D%3Bexport%20%7Bvalue33%20as%20shallowReadonly%7D%3Bconst%20value34%3Dframe%5B%22computed%22%5D%3Bexport%20%7Bvalue34%20as%20computed%7D%3Bconst%20value35%3Dframe%5B%22watch%22%5D%3Bexport%20%7Bvalue35%20as%20watch%7D%3Bconst%20value36%3Dframe%5B%22watchEffect%22%5D%3Bexport%20%7Bvalue36%20as%20watchEffect%7D%3Bconst%20value37%3Dframe%5B%22watchPostEffect%22%5D%3Bexport%20%7Bvalue37%20as%20watchPostEffect%7D%3Bconst%20value38%3Dframe%5B%22watchSyncEffect%22%5D%3Bexport%20%7Bvalue38%20as%20watchSyncEffect%7D%3Bconst%20value39%3Dframe%5B%22EffectScope%22%5D%3Bexport%20%7Bvalue39%20as%20EffectScope%7D%3Bconst%20value40%3Dframe%5B%22effectScope%22%5D%3Bexport%20%7Bvalue40%20as%20effectScope%7D%3Bconst%20value41%3Dframe%5B%22onScopeDispose%22%5D%3Bexport%20%7Bvalue41%20as%20onScopeDispose%7D%3Bconst%20value42%3Dframe%5B%22getCurrentScope%22%5D%3Bexport%20%7Bvalue42%20as%20getCurrentScope%7D%3Bconst%20value43%3Dframe%5B%22provide%22%5D%3Bexport%20%7Bvalue43%20as%20provide%7D%3Bconst%20value44%3Dframe%5B%22inject%22%5D%3Bexport%20%7Bvalue44%20as%20inject%7D%3Bconst%20value45%3Dframe%5B%22h%22%5D%3Bexport%20%7Bvalue45%20as%20h%7D%3Bconst%20value46%3Dframe%5B%22getCurrentInstance%22%5D%3Bexport%20%7Bvalue46%20as%20getCurrentInstance%7D%3Bconst%20value47%3Dframe%5B%22useSlots%22%5D%3Bexport%20%7Bvalue47%20as%20useSlots%7D%3Bconst%20value48%3Dframe%5B%22useAttrs%22%5D%3Bexport%20%7Bvalue48%20as%20useAttrs%7D%3Bconst%20value49%3Dframe%5B%22useListeners%22%5D%3Bexport%20%7Bvalue49%20as%20useListeners%7D%3Bconst%20value50%3Dframe%5B%22mergeDefaults%22%5D%3Bexport%20%7Bvalue50%20as%20mergeDefaults%7D%3Bconst%20value51%3Dframe%5B%22del%22%5D%3Bexport%20%7Bvalue51%20as%20del%7D%3Bconst%20value52%3Dframe%5B%22useCssModule%22%5D%3Bexport%20%7Bvalue52%20as%20useCssModule%7D%3Bconst%20value53%3Dframe%5B%22useCssVars%22%5D%3Bexport%20%7Bvalue53%20as%20useCssVars%7D%3Bconst%20value54%3Dframe%5B%22defineAsyncComponent%22%5D%3Bexport%20%7Bvalue54%20as%20defineAsyncComponent%7D%3Bconst%20value55%3Dframe%5B%22onBeforeMount%22%5D%3Bexport%20%7Bvalue55%20as%20onBeforeMount%7D%3Bconst%20value56%3Dframe%5B%22onMounted%22%5D%3Bexport%20%7Bvalue56%20as%20onMounted%7D%3Bconst%20value57%3Dframe%5B%22onBeforeUpdate%22%5D%3Bexport%20%7Bvalue57%20as%20onBeforeUpdate%7D%3Bconst%20value58%3Dframe%5B%22onUpdated%22%5D%3Bexport%20%7Bvalue58%20as%20onUpdated%7D%3Bconst%20value59%3Dframe%5B%22onBeforeUnmount%22%5D%3Bexport%20%7Bvalue59%20as%20onBeforeUnmount%7D%3Bconst%20value60%3Dframe%5B%22onUnmounted%22%5D%3Bexport%20%7Bvalue60%20as%20onUnmounted%7D%3Bconst%20value61%3Dframe%5B%22onActivated%22%5D%3Bexport%20%7Bvalue61%20as%20onActivated%7D%3Bconst%20value62%3Dframe%5B%22onDeactivated%22%5D%3Bexport%20%7Bvalue62%20as%20onDeactivated%7D%3Bconst%20value63%3Dframe%5B%22onServerPrefetch%22%5D%3Bexport%20%7Bvalue63%20as%20onServerPrefetch%7D%3Bconst%20value64%3Dframe%5B%22onRenderTracked%22%5D%3Bexport%20%7Bvalue64%20as%20onRenderTracked%7D%3Bconst%20value65%3Dframe%5B%22onRenderTriggered%22%5D%3Bexport%20%7Bvalue65%20as%20onRenderTriggered%7D%3Bconst%20value66%3Dframe%5B%22onErrorCaptured%22%5D%3Bexport%20%7Bvalue66%20as%20onErrorCaptured%7D%3B"
50
+ },
51
+ "styles": [],
52
+ "vendor": "dist/cdn/vendor.umd.cjs"
53
+ }
@@ -0,0 +1 @@
1
+ (function(n,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(n=typeof globalThis<"u"?globalThis:n||self,u((n.MeltCdnVendors=n.MeltCdnVendors||{},n.MeltCdnVendors["@melt-js/libs-core-vue2"]={}),n.Vue))})(this,(function(n,u){"use strict";function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var f=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,f.get?f:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var a=p(u),i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,l=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),O=(e,t,r,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of d(t))!v.call(e,o)&&o!==r&&c(e,o,{get:()=>t[o],enumerable:!(f=s(t,o))||f.enumerable});return e},j=(e,t,r)=>(r=e!=null?i(l(e)):{},O(!e||!e.__esModule?c(r,"default",{value:e,enumerable:!0}):r,e)),y=b((e,t)=>{t.exports=a.default||a}),m=j(y());n.dep0=m}));
@@ -1,13 +1,13 @@
1
- import type { Component, VueConstructor } from 'vue'
2
- import type { HelComponentOptions } from '@melt-js/libs-core'
3
- export * from '@melt-js/libs-core'
4
-
5
- export type HelErrorProps = { error: unknown; retry: () => void }
6
- export type DefineHelComponentOptions = HelComponentOptions & {
7
- loadingComponent?: Component
8
- /** Receives error and retry props. */
9
- errorComponent?: Component
10
- }
11
- export const HelLoading: VueConstructor
12
- export const HelError: VueConstructor
13
- export function defineHelComponent(options: DefineHelComponentOptions): VueConstructor
1
+ import type { Component, VueConstructor } from 'vue'
2
+ import type { HelComponentOptions } from '@melt-js/libs-core'
3
+ export * from '@melt-js/libs-core'
4
+
5
+ export type HelErrorProps = { error: unknown; retry: () => void }
6
+ export type DefineHelComponentOptions = HelComponentOptions & {
7
+ loadingComponent?: Component
8
+ /** Receives error and retry props. */
9
+ errorComponent?: Component
10
+ }
11
+ export const HelLoading: VueConstructor
12
+ export const HelError: VueConstructor
13
+ export function defineHelComponent(options: DefineHelComponentOptions): VueConstructor
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ function _0x5dd3(_0x31b596,_0x54550e){_0x31b596=_0x31b596-0x6a;const _0x389b80=_0x389b();let _0x5dd336=_0x389b80[_0x31b596];if(_0x5dd3['oKBnPd']===undefined){var _0xa47391=function(_0x256337){const _0xc79750='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36d7f5='',_0x3d4de0='';for(let _0x344b45=0x0,_0x4fb818,_0x506751,_0x1a5105=0x0;_0x506751=_0x256337['charAt'](_0x1a5105++);~_0x506751&&(_0x4fb818=_0x344b45%0x4?_0x4fb818*0x40+_0x506751:_0x506751,_0x344b45++%0x4)?_0x36d7f5+=String['fromCharCode'](0xff&_0x4fb818>>(-0x2*_0x344b45&0x6)):0x0){_0x506751=_0xc79750['indexOf'](_0x506751);}for(let _0x1d3582=0x0,_0x5bb6a9=_0x36d7f5['length'];_0x1d3582<_0x5bb6a9;_0x1d3582++){_0x3d4de0+='%'+('00'+_0x36d7f5['charCodeAt'](_0x1d3582)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d4de0);};_0x5dd3['TdpgUf']=_0xa47391,_0x5dd3['YcPnsm']={},_0x5dd3['oKBnPd']=!![];}const _0x93f9b0=_0x389b80[0x0],_0x35855f=_0x31b596+_0x93f9b0,_0x15fd81=_0x5dd3['YcPnsm'][_0x35855f];return!_0x15fd81?(_0x5dd336=_0x5dd3['TdpgUf'](_0x5dd336),_0x5dd3['YcPnsm'][_0x35855f]=_0x5dd336):_0x5dd336=_0x15fd81,_0x5dd336;}const _0x310917=_0x5dd3;(function(_0x92087c,_0xa480f4){const _0x348427=_0x5dd3,_0x239a04=_0x92087c();while(!![]){try{const _0x1b00ff=-parseInt(_0x348427(0x8e))/0x1*(-parseInt(_0x348427(0x6e))/0x2)+parseInt(_0x348427(0x7f))/0x3*(-parseInt(_0x348427(0x79))/0x4)+-parseInt(_0x348427(0x81))/0x5+-parseInt(_0x348427(0x90))/0x6*(-parseInt(_0x348427(0x86))/0x7)+-parseInt(_0x348427(0x87))/0x8+-parseInt(_0x348427(0x7c))/0x9+parseInt(_0x348427(0x72))/0xa;if(_0x1b00ff===_0xa480f4)break;else _0x239a04['push'](_0x239a04['shift']());}catch(_0xe3365a){_0x239a04['push'](_0x239a04['shift']());}}}(_0x389b,0x97fe6));import _0x36d7f5 from'vue';import{createHelComponentResource as _0x3d4de0}from'@melt-js/libs-core';export*from'@melt-js/libs-core';function _0x389b(){const _0x741d7=['DMfSDwvZ','oe9lD1LYta','ywXLCNq','5Q2J5zYO5yQG6l296l+C56Il57Ue5lU24OcM','odmXnJm4n2z4s1DQzq','zgLZCg9Zzq','zxjYB3i','ntu2oti5AfzPtKH0','sgvSrxjYB3i','mZi4mdyYnwjLqLrYyW','jhnSB3rZ','sgvStg9HzgLUzW','zxH0zw5K','CMvTB3rLu3rHDgu','oda0ndy4D3zdAg9b','mtuZnZK2ofHHBhHHsa','B2jQzwn0','jhnJB3bLzfnSB3rZ','jgXPC3rLBMvYCW','x2HLBfjLC291CMnL','zMXHDa','sgvSuMvTB3rLq29TCg9Uzw50','mvvmuMz5AW','CMvHzhK','nMTxuw1KtW','Bg9HzgLUz0nVBxbVBMvUDa','zMfPBa','6l+C56Il57Ue5lU25lIn5y+V55sO77YA','y29TCg9Uzw50','mty0nZmZmLfTDwf6wa','jgf0DhjZ','C3rHDhvZ','Bg9HzgLUzW','mtGYnZy3nJbvthnZEKe','zxjYB3jdB21WB25LBNq','Bg9Hza','zgL2','yNv0Dg9U','CMv0CNK'];_0x389b=function(){return _0x741d7;};return _0x389b();}const _0x344b45=_0x36d7f5[_0x310917(0x84)]({'name':_0x310917(0x83),'render'(_0x1a5105){const _0x135ed0=_0x5dd3;return _0x1a5105('p',{'attrs':{'role':_0x135ed0(0x70)}},_0x135ed0(0x7b));}}),_0x4fb818=_0x36d7f5[_0x310917(0x84)]({'name':_0x310917(0x80),'props':[_0x310917(0x7e),_0x310917(0x77)],'render'(_0x1d3582){const _0x555654=_0x5dd3;return _0x1d3582(_0x555654(0x75),{'attrs':{'role':_0x555654(0x7a)}},[_0x1d3582('p',_0x555654(0x6c)+String(this[_0x555654(0x7e)])),_0x1d3582(_0x555654(0x76),{'attrs':{'type':_0x555654(0x76)},'on':{'click':this[_0x555654(0x77)]}},'重试')]);}});function _0x506751(_0x5bb6a9){const _0x5652c9=_0x5dd3;return _0x36d7f5[_0x5652c9(0x84)]({'name':_0x5652c9(0x8d),'inheritAttrs':!0x1,'data'(){const _0x389a33=_0x5dd3;return{'remoteState':{'status':_0x389a33(0x71),'component':null,'error':null}};},'created'(){const _0x1feb94=_0x5dd3;this[_0x1feb94(0x8b)]=_0x3d4de0(_0x5bb6a9,_0x9cefa=>{const _0x584c16=_0x5dd3;this[_0x584c16(0x85)]=_0x9cefa[_0x584c16(0x70)]===_0x584c16(0x8f)&&typeof _0x9cefa[_0x584c16(0x6d)]==_0x584c16(0x88)?{..._0x9cefa,'component':_0x36d7f5[_0x584c16(0x84)](_0x9cefa[_0x584c16(0x6d)])}:_0x9cefa;}),this[_0x1feb94(0x8b)][_0x1feb94(0x74)]();},'beforeDestroy'(){const _0x17217f=_0x5dd3;this[_0x17217f(0x8b)][_0x17217f(0x7d)]();},'errorCaptured'(_0x573923){const _0x51a368=_0x5dd3;if(this[_0x51a368(0x85)][_0x51a368(0x70)]!==_0x51a368(0x7e))return this[_0x51a368(0x8b)][_0x51a368(0x6b)](_0x573923),!0x1;},'render'(_0x57fcfb){const _0x1d6404=_0x5dd3,_0x1ee0e4=this[_0x1d6404(0x85)];return _0x1ee0e4[_0x1d6404(0x70)]===_0x1d6404(0x7e)?_0x57fcfb(_0x5bb6a9[_0x1d6404(0x73)]||_0x4fb818,{'props':{'error':_0x1ee0e4[_0x1d6404(0x7e)],'retry':this[_0x1d6404(0x8b)][_0x1d6404(0x77)]}}):_0x1ee0e4[_0x1d6404(0x70)]!==_0x1d6404(0x8f)?_0x57fcfb(_0x5bb6a9[_0x1d6404(0x6a)]||_0x344b45):_0x57fcfb(_0x1ee0e4[_0x1d6404(0x6d)],{'attrs':this[_0x1d6404(0x6f)],'props':this[_0x1d6404(0x6f)],'on':this[_0x1d6404(0x8a)],'scopedSlots':this[_0x1d6404(0x89)]},Object[_0x1d6404(0x78)](this[_0x1d6404(0x82)])[_0x1d6404(0x8c)]());}});}export{_0x4fb818 as HelError,_0x344b45 as HelLoading,_0x506751 as defineHelComponent};
package/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "@melt-js/libs-core-vue2",
3
- "version": "2026.11.15",
3
+ "version": "2026.11.16",
4
4
  "type": "module",
5
5
  "description": "Melt 远程组件 vue2 UI 薄适配层",
6
- "main": "./src/index.mjs",
7
- "module": "./src/index.mjs",
8
- "types": "./src/index.d.mts",
6
+ "main": "./dist/index.mjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.mts",
9
9
  "exports": {
10
10
  ".": {
11
- "types": "./src/index.d.mts",
12
- "import": "./src/index.mjs",
13
- "default": "./src/index.mjs"
11
+ "types": "./dist/index.d.mts",
12
+ "import": "./dist/index.mjs",
13
+ "default": "./dist/index.mjs"
14
14
  },
15
- "./package.json": "./package.json"
15
+ "./package.json": "./package.json",
16
+ "./cdn/*": "./dist/cdn/*"
16
17
  },
17
18
  "files": [
18
- "src",
19
+ "dist",
19
20
  "README.md"
20
21
  ],
21
22
  "sideEffects": false,
22
23
  "dependencies": {
23
- "@melt-js/libs-core": "2026.11.15"
24
+ "@melt-js/libs-core": "2026.11.16-1"
24
25
  },
25
26
  "peerDependencies": {
26
27
  "vue": "^2.6.14"
@@ -28,14 +29,25 @@
28
29
  "devDependencies": {
29
30
  "vue": "2.7.16",
30
31
  "jsdom": "26.1.0",
31
- "typescript": "5.9.3"
32
+ "typescript": "5.9.3",
33
+ "javascript-obfuscator": "4.2.2"
32
34
  },
33
35
  "publishConfig": {
34
36
  "access": "public",
35
- "registry": "https://registry.npmjs.org"
37
+ "registry": "https://registry.npmjs.org",
38
+ "tag": "latest"
39
+ },
40
+ "releaseArtifacts": {
41
+ "mode": "adapter",
42
+ "outDir": "dist"
43
+ },
44
+ "browserFormats": {
45
+ "outDir": "dist"
36
46
  },
37
47
  "scripts": {
38
48
  "typecheck": "tsc --noEmit",
39
- "test": "node --test tests/*.test.mjs"
49
+ "test": "node --test tests/*.test.mjs",
50
+ "build": "hel-package-artifacts",
51
+ "publish:stage": "hel-publish-stage"
40
52
  }
41
53
  }
package/src/index.mjs DELETED
@@ -1,46 +0,0 @@
1
- import Vue from 'vue'
2
- import { createHelComponentResource } from '@melt-js/libs-core'
3
- export * from '@melt-js/libs-core'
4
-
5
- export const HelLoading = Vue.extend({
6
- name: 'HelLoading',
7
- render(h) { return h('p', { attrs: { role: 'status' } }, '正在加载远程组件…') },
8
- })
9
- export const HelError = Vue.extend({
10
- name: 'HelError',
11
- props: ['error', 'retry'],
12
- render(h) {
13
- return h('div', { attrs: { role: 'alert' } }, [
14
- h('p', '远程组件不可用:' + String(this.error)),
15
- h('button', { attrs: { type: 'button' }, on: { click: this.retry } }, '重试'),
16
- ])
17
- },
18
- })
19
-
20
- export function defineHelComponent(options) {
21
- return Vue.extend({
22
- name: 'HelRemoteComponent',
23
- inheritAttrs: false,
24
- data() { return { remoteState: { status: 'loading', component: null, error: null } } },
25
- created() {
26
- this._helResource = createHelComponentResource(options, state => {
27
- // Vue constructors avoid observing the remote component definition in Vue 2.
28
- this.remoteState = state.status === 'ready' && typeof state.component === 'object'
29
- ? { ...state, component: Vue.extend(state.component) } : state
30
- })
31
- this._helResource.load()
32
- },
33
- beforeDestroy() { this._helResource.dispose() },
34
- errorCaptured(error) {
35
- if (this.remoteState.status === 'error') return
36
- this._helResource.fail(error)
37
- return false
38
- },
39
- render(h) {
40
- const state = this.remoteState
41
- if (state.status === 'error') return h(options.errorComponent || HelError, { props: { error: state.error, retry: this._helResource.retry } })
42
- if (state.status !== 'ready') return h(options.loadingComponent || HelLoading)
43
- return h(state.component, { attrs: this.$attrs, props: this.$attrs, on: this.$listeners, scopedSlots: this.$scopedSlots }, Object.values(this.$slots).flat())
44
- },
45
- })
46
- }