vite-plugin-vue-devtools 1.0.0-alpha.2 → 1.0.0-beta.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.
Files changed (41) hide show
  1. package/README.md +29 -11
  2. package/README.zh-CN.md +185 -0
  3. package/dist/client/assets/{Icon.vue_vue_type_script_setup_true_lang-9344440e.js → Icon.vue_vue_type_script_setup_true_lang-7b574e17.js} +1 -1
  4. package/dist/client/assets/{IconButton.vue_vue_type_script_setup_true_lang-f308a32e.js → IconButton.vue_vue_type_script_setup_true_lang-df1aed4a.js} +2 -2
  5. package/dist/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-4cf300a8.js → IconTitle.vue_vue_type_script_setup_true_lang-340f9637.js} +1 -1
  6. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-a998c802.js → IframeView.vue_vue_type_script_setup_true_lang-26b984e0.js} +1 -1
  7. package/dist/client/assets/{PanelGrids-bf67e36d.js → PanelGrids-79045561.js} +1 -1
  8. package/dist/client/assets/{SectionBlock-30cd0db7.js → SectionBlock-d6546a5c.js} +3 -3
  9. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-f232f911.js → StateFields.vue_vue_type_script_setup_true_lang-87cd4432.js} +4 -4
  10. package/dist/client/assets/{Switch.vue_vue_type_script_setup_true_lang-ff441d43.js → Switch.vue_vue_type_script_setup_true_lang-e9fc0dc8.js} +2 -2
  11. package/dist/client/assets/{TextInput.vue_vue_type_script_setup_true_lang-49fa3d66.js → TextInput.vue_vue_type_script_setup_true_lang-c719d9ea.js} +2 -2
  12. package/dist/client/assets/{__eyedropper-04974bae.js → __eyedropper-9c607201.js} +3 -3
  13. package/dist/client/assets/{assets-103b7b87.js → assets-6d3c029f.js} +16 -20
  14. package/dist/client/assets/{component-docs-c0980d29.js → component-docs-a9751a4b.js} +4 -4
  15. package/dist/client/assets/{components-4ea0f479.js → components-b5374f38.js} +8 -400
  16. package/dist/client/assets/data-8705dbff.js +396 -0
  17. package/dist/client/assets/dayjs.min-52f29994.js +13 -0
  18. package/dist/client/assets/{documentations-81489cc3.js → documentations-c72e57d5.js} +2 -2
  19. package/dist/client/assets/{graph-3ab96556.js → graph-28ffd27f.js} +81 -46
  20. package/dist/client/assets/index-43ac0c1e.js +70738 -0
  21. package/dist/client/assets/{index-d3dcbe9e.css → index-b16c49d4.css} +2 -1
  22. package/dist/client/assets/{index-cc695468.js → index-cdabf7ff.js} +1 -1
  23. package/dist/client/assets/{inspect-a4a1ccce.js → inspect-ce9eb51a.js} +2 -2
  24. package/dist/client/assets/{npm-d82cc33a.js → npm-307e966b.js} +5 -6
  25. package/dist/client/assets/{overview-62088e28.js → overview-5ce230b6.js} +4 -4
  26. package/dist/client/assets/{pages-b69a68f5.js → pages-ce469168.js} +5 -5
  27. package/dist/client/assets/{pinia-f806031f.js → pinia-309a64ad.js} +6 -6
  28. package/dist/client/assets/rerender-trace-6c5229c1.css +14 -0
  29. package/dist/client/assets/rerender-trace-b0a16930.js +369 -0
  30. package/dist/client/assets/{routes-06a1de65.js → routes-fef0d125.js} +7 -7
  31. package/dist/client/assets/{settings-a01dd288.js → settings-d650aa71.js} +6 -7
  32. package/dist/client/assets/{splitpanes.es-87d8571e.js → splitpanes.es-a1996dda.js} +1 -1
  33. package/dist/client/assets/{timeline-4af72c7c.js → timeline-881ae377.js} +8 -18
  34. package/dist/client/index.html +2 -2
  35. package/dist/vite.cjs +18 -7
  36. package/dist/vite.d.ts +10 -0
  37. package/dist/vite.mjs +19 -8
  38. package/package.json +2 -2
  39. package/src/views/composables.ts +2 -3
  40. package/dist/client/assets/_commonjsHelpers-65004790.js +0 -37
  41. package/dist/client/assets/index-773a455a.js +0 -18422
package/README.md CHANGED
@@ -5,16 +5,19 @@
5
5
  Vue DevTools <sup>Preview</sup>
6
6
  </h1>
7
7
 
8
+ <p align="center">
9
+ English | <a href="./README.zh-CN.md">简体中文</a>
10
+ </p>
8
11
 
9
12
  <p align="center">
10
13
  <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/v/vite-plugin-vue-devtools" alt="NPM Version" /></a>
11
14
  <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/dt/vite-plugin-vue-devtools" alt="NPM Downloads" /></a>
12
- <a href="https://github.comhttps://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
15
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
13
16
  </p>
14
17
 
15
18
  <p align="center">
16
- <a href="https://github.comhttps://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
17
- <a href="https://github.comhttps://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a>
19
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 Ideas & Suggestions</a> |
20
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ Project Roadmap</a>
18
21
  </p>
19
22
 
20
23
  <p align="center">
@@ -24,7 +27,7 @@ Vue DevTools <sup>Preview</sup>
24
27
 
25
28
  ## 📖 Introduction
26
29
 
27
- `vite-plugin-vue-devtools` is a Vite plugin designed to enhance the Vue developer experience.
30
+ `vite-plugin-vue-devtools` is a `Vite` plugin designed to enhance the `Vue` developer experience.
28
31
 
29
32
 
30
33
 
@@ -114,6 +117,13 @@ export default defineConfig({
114
117
  ### Options
115
118
 
116
119
  ```ts
120
+ interface AnalyzeOptions {
121
+ /**
122
+ * @default true
123
+ */
124
+ rerenderTrace: boolean
125
+ }
126
+
117
127
  interface VitePluginVueDevToolsOptions {
118
128
  /**
119
129
  * append an import to the module id ending with `appendTo` instead of adding a script into body
@@ -122,16 +132,24 @@ interface VitePluginVueDevToolsOptions {
122
132
  * WARNING: only set this if you know exactly what it does.
123
133
  */
124
134
  appendTo?: string | RegExp
135
+ /**
136
+ * Enable Vue DevTools to analyze the codebase by using Babel
137
+ * @default
138
+ * {
139
+ * rerenderTrace: true, // enable rerenderTrace feature
140
+ * }
141
+ */
142
+ analyze?: Partial<AnalyzeOptions>
125
143
  }
126
144
  ```
127
145
 
128
146
  ## 💡 Notice
129
147
 
130
- - Only available in development mode.
131
- - Only support Vue3.0+.
132
- - Currently only supports single-instance Vue applications (multi-instance support is coming soon).
133
- - Doesn't support SSR (If you're using Nuxt, use [nuxt/devtools](https://github.com/nuxt/devtools) directly).
134
- - The plugin follows Vue's DevTools configuration, so if you have configured the `hide` option, it will also be applied in this plugin. e.g.
148
+ - Only available in `development mode`.
149
+ - Only support `Vue3.0+` .
150
+ - Only supports single-instance `Vue` applications.
151
+ - Doesn't support `SSR` (If you're using `Nuxt`, use [nuxt/devtools](https://github.com/nuxt/devtools) directly).
152
+ - The plugin follows `Vue's DevTools` configuration, so if you have configured the `hide` option, it will also be applied in this plugin. e.g.
135
153
 
136
154
  ```js
137
155
  // This Vue instance will be ignored by the plugin.
@@ -149,14 +167,14 @@ interface VitePluginVueDevToolsOptions {
149
167
 
150
168
  ## 🌸 Credits
151
169
 
152
- - This project is highly inspired by [nuxt/devtools](https://github.com/nuxt/devtools). Kudos to Anthony Fu and Nuxt team for the awesome work!
170
+ - This project is highly inspired by [nuxt/devtools](https://github.com/nuxt/devtools). Kudos to [Anthony Fu](https://github.com/antfu) and `Nuxt` team for the awesome work!
153
171
 
154
172
  - [vuejs/devtools](https://github.com/vuejs/devtools)
155
173
 
156
174
 
157
175
  ## 👨‍💻 Contributors
158
176
 
159
- <a href="https://github.comhttps://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
177
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
160
178
  <img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
161
179
  </a>
162
180
 
@@ -0,0 +1,185 @@
1
+ <p align="center">
2
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/bg.png" />
3
+ </p>
4
+ <h1 align="center">
5
+ Vue DevTools <sup>预览</sup>
6
+ </h1>
7
+
8
+ <p align="center">
9
+ <a href="./README.md">English</a> | 简体中文
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/v/vite-plugin-vue-devtools" alt="NPM Version" /></a>
14
+ <a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/dt/vite-plugin-vue-devtools" alt="NPM Downloads" /></a>
15
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/1">💡 想法 & 建议</a> |
20
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/discussions/2">🗺️ 项目路线图</a>
21
+ </p>
22
+
23
+ <p align="center">
24
+ <a href="https://stackblitz.com/edit/vitejs-vite-oxbwzk?file=vite.config.ts&view=preview"><img src="https://developer.stackblitz.com/img/open_in_stackblitz.svg" alt=""></a>
25
+ </p>
26
+
27
+
28
+ ## 📖 介绍
29
+
30
+ `vite-plugin-vue-devtools` 是一个旨在增强 `Vue` 开发者体验的 `Vite` 插件。
31
+
32
+
33
+
34
+ ## 🎉 特性
35
+
36
+ ### Pages
37
+
38
+ `Pages` 选项卡显示您当前的页面路由并提供快速导航的方法。对于动态路由,它还提供了一个表单来交互式地填写每个参数。您还可以使用文本框来测试每个路由的匹配情况。
39
+
40
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pages.png" />
41
+
42
+
43
+ ### Components
44
+
45
+ `Components` 选项卡显示您应用程序的所有组件树,您还可以选择它们来查看组件的详细信息(例如数据、属性)。
46
+
47
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/components.png" />
48
+
49
+ ### Assets
50
+
51
+ `Assets` 选项卡显示所有静态资源及其信息,您可以在浏览器中打开或下载它。
52
+
53
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/assets.png" />
54
+
55
+ ### Timeline
56
+
57
+ `Timeline` 选项卡包含三个类别:性能、路由导航和 Pinia,您可以在它们之间切换以查看状态变化和时间线。
58
+
59
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/timeline.png" />
60
+
61
+ ### Routes
62
+
63
+ `Routes` 选项卡是与 [Vue Router](https://github.com/vuejs/router) 集成的功能,允许您查看注册的路由及其详细信息。
64
+
65
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/routes.png" />
66
+
67
+ ### Pinia
68
+
69
+ `Pinia` 选项卡是与 [Pinia](https://github.com/vuejs/pinia) 集成的功能,允许您查看注册的模块及其详细信息。
70
+
71
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/pinia.png" />
72
+
73
+ ### Graph
74
+
75
+ `Graph` 选项卡提供了显示组件依赖关系的视图。
76
+
77
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/graph.png" />
78
+
79
+ ### Inspect
80
+
81
+ `Inspect` 公开 [vite-plugin-inspect](https://github.com/antfu/vite-plugin-inspect) 集成,允许您检查 Vite 的转换步骤,了解每个插件如何改变您的代码并发现潜在问题可能会有所帮助。
82
+
83
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspect.png" />
84
+
85
+ ### Inspector
86
+
87
+ 您还可以使用 `Inspector` 功能来检查 `DOM` 树并查看哪个组件正在渲染它,单击可转到特定行的编辑器,使更改变得更加容易,而无需彻底了解项目结构。 (该功能基于 [vite-plugin-vue-inspector](https://github.com/webfansplz/vite-plugin-vue-inspector))
88
+
89
+ <img src="https://github.com/webfansplz/vite-plugin-vue-devtools/raw/main/screenshots/inspector.png" height=450 />
90
+
91
+ ## 📦 安装
92
+
93
+ ```
94
+
95
+ # vite-plugin-vue-devtools
96
+
97
+ pnpm install vite-plugin-vue-devtools -D
98
+
99
+ ```
100
+
101
+ ## 🦄 示例
102
+
103
+ ### Vite 配置
104
+
105
+ ```ts
106
+ import { defineConfig } from 'vite'
107
+ import VueDevTools from 'vite-plugin-vue-devtools'
108
+
109
+ export default defineConfig({
110
+ plugins: [
111
+ VueDevTools(),
112
+ vue(),
113
+ ],
114
+ })
115
+ ```
116
+
117
+ ### 选项
118
+
119
+ ```ts
120
+ interface AnalyzeOptions {
121
+ /**
122
+ * @default true
123
+ */
124
+ rerenderTrace: boolean
125
+ }
126
+
127
+ interface VitePluginVueDevToolsOptions {
128
+ /**
129
+ * append an import to the module id ending with `appendTo` instead of adding a script into body
130
+ * useful for projects that do not use html file as an entry
131
+ *
132
+ * WARNING: only set this if you know exactly what it does.
133
+ */
134
+ appendTo?: string | RegExp
135
+
136
+ /**
137
+ * Enable Vue DevTools to analyze the codebase by using Babel
138
+ * @default
139
+ * {
140
+ * rerenderTrace: true, // enable rerenderTrace feature
141
+ * }
142
+ */
143
+ analyze?: Partial<AnalyzeOptions>
144
+ }
145
+ ```
146
+
147
+ ## 💡 注意
148
+
149
+ - 仅在 `开发模式` 下可用。
150
+ - 仅支持 `Vue3.0+` 。
151
+ - 仅支持单实例 `Vue` 应用程序。
152
+ - 不支持 `SSR` (如果您使用 `Nuxt` ,请使用 [nuxt/devtools](https://github.com/nuxt/devtools))。
153
+ - 该插件遵循 `Vue` 的 `DevTools` 配置,因此如果您配置了 `hide` 选项,它也将应用于该插件。例如
154
+
155
+ ```js
156
+ // This Vue instance will be ignored by the plugin.
157
+ createApp({
158
+ render: () => h(App),
159
+ devtools: {
160
+ hide: true,
161
+ },
162
+ })
163
+ ```
164
+
165
+ ## 📖 博客
166
+
167
+ - [介绍 Vue DevTools (Vite 插件)](https://gist.github.com/webfansplz/bc90a773a0dd474a34e043ab2d2a37a4)
168
+
169
+ ## 🌸 致谢
170
+
171
+ - 该项目深受 [nuxt/devtools](https://github.com/nuxt/devtools) 的启发,感谢 [Anthony Fu](https://github.com/antfu) 和 `Nuxt` 团队的出色工作
172
+
173
+ - [vuejs/devtools](https://github.com/vuejs/devtools)
174
+
175
+
176
+ ## 👨‍💻 贡献者
177
+
178
+ <a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
179
+ <img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
180
+ </a>
181
+
182
+ ## 📄 License
183
+
184
+ [MIT LICENSE](./LICENSE)
185
+
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-773a455a.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-43ac0c1e.js';
2
2
 
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Icon",
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-773a455a.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-43ac0c1e.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "IconButton",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-773a455a.js';
1
+ import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-43ac0c1e.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  flex: "~ gap-3",
@@ -1,4 +1,4 @@
1
- import { v as defineComponent, cn as useColorMode, a$ as ref, a1 as computed, aZ as reactive, co as useElementBounding, aP as onMounted, n as nextTick, bz as watchEffect, aU as onUnmounted, o as openBlock, e as createElementBlock, z as unref, g as createCommentVNode, x as createBaseVNode } from './index-773a455a.js';
1
+ import { v as defineComponent, cs as useColorMode, a$ as ref, a1 as computed, aZ as reactive, ct as useElementBounding, aP as onMounted, n as nextTick, bz as watchEffect, aU as onUnmounted, o as openBlock, e as createElementBlock, z as unref, g as createCommentVNode, x as createBaseVNode } from './index-43ac0c1e.js';
2
2
 
3
3
  const _hoisted_1 = {
4
4
  key: 0,
@@ -1,4 +1,4 @@
1
- import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-773a455a.js';
1
+ import { bM as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-43ac0c1e.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = {};
4
4
 
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$1 } from './IconTitle.vue_vue_type_script_setup_true_lang-4cf300a8.js';
2
- import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
3
- import { v as defineComponent, bK as useVModel, b as resolveDirective, o as openBlock, e as createElementBlock, x as createBaseVNode, q as normalizeClass, u as createVNode, h as withCtx, f as renderSlot, g as createCommentVNode, c as createBlock, z as unref, d as withDirectives, F as Fragment, a9 as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, bJ as _export_sfc } from './index-773a455a.js';
1
+ import { _ as _sfc_main$1 } from './IconTitle.vue_vue_type_script_setup_true_lang-340f9637.js';
2
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
3
+ import { v as defineComponent, bN as useVModel, b as resolveDirective, o as openBlock, e as createElementBlock, x as createBaseVNode, q as normalizeClass, u as createVNode, h as withCtx, f as renderSlot, g as createCommentVNode, c as createBlock, z as unref, d as withDirectives, F as Fragment, a9 as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, bM as _export_sfc } from './index-43ac0c1e.js';
4
4
 
5
5
  const _withScopeId = (n) => (pushScopeId("data-v-e966339e"), n = n(), popScopeId(), n);
6
6
  const _hoisted_1 = ["open"];
@@ -1,7 +1,7 @@
1
- import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cs as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, ct as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cu as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-773a455a.js';
3
- import { a as isComputed, b as isArray, c as isMap, d as isSet, e as isRegExp, t as toRawType, f as isPlainObject, g as escape } from './index-cc695468.js';
4
- import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-f308a32e.js';
1
+ import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cx as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cy as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cz as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-43ac0c1e.js';
3
+ import { a as isComputed, b as isArray, c as isMap, d as isSet, e as isRegExp, t as toRawType, f as isPlainObject, g as escape } from './index-cdabf7ff.js';
4
+ import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-df1aed4a.js';
5
5
 
6
6
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7
7
  __name: "ExpandIcon",
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
2
- import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, bt as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, aC as isRef, c as createBlock, bq as vModelCheckbox, bE as withKeys } from './index-773a455a.js';
1
+ import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
2
+ import { v as defineComponent, bN as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, bt as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, aC as isRef, c as createBlock, bq as vModelCheckbox, bE as withKeys } from './index-43ac0c1e.js';
3
3
 
4
4
  const _hoisted_1$1 = { class: "n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base" };
5
5
  const _hoisted_2$1 = ["disabled"];
@@ -1,5 +1,5 @@
1
- import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
2
- import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, br as vModelDynamic, z as unref, x as createBaseVNode, k as mergeProps, aC as isRef, c as createBlock, g as createCommentVNode } from './index-773a455a.js';
1
+ import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
2
+ import { v as defineComponent, bN as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, br as vModelDynamic, z as unref, x as createBaseVNode, k as mergeProps, aC as isRef, c as createBlock, g as createCommentVNode } from './index-43ac0c1e.js';
3
3
 
4
4
  const _hoisted_1 = { class: "n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base" };
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
- import { _ as __unplugin_components_0 } from './PanelGrids-bf67e36d.js';
2
- import { v as defineComponent, cB as useRouter, a$ as ref, a1 as computed, cs as useCopy, cc as useEventListener, aP as onMounted, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, z as unref, e as createElementBlock, l as normalizeStyle, a9 as createTextVNode, y as toDisplayString, cl as useDevToolsClient, bX as useFrameState, u as createVNode } from './index-773a455a.js';
3
- import { h as checkIsSecurityContext } from './index-cc695468.js';
1
+ import { _ as __unplugin_components_0 } from './PanelGrids-79045561.js';
2
+ import { v as defineComponent, cG as useRouter, a$ as ref, a1 as computed, cx as useCopy, ci as useEventListener, aP as onMounted, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, z as unref, e as createElementBlock, l as normalizeStyle, a9 as createTextVNode, y as toDisplayString, c8 as useDevToolsClient, b_ as useFrameState, u as createVNode } from './index-43ac0c1e.js';
3
+ import { h as checkIsSecurityContext } from './index-cdabf7ff.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0
@@ -1,11 +1,11 @@
1
- import { _ as __unplugin_components_0 } from './PanelGrids-bf67e36d.js';
2
- import { v as defineComponent, a$ as ref, cv as useElementSize, cw as onClickOutside, o as openBlock, c as createBlock, h as withCtx, e as createElementBlock, u as createVNode, x as createBaseVNode, f as renderSlot, k as mergeProps, z as unref, g as createCommentVNode, P as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, cx as useStyleTag, l as normalizeStyle, cy as computedAsync, cs as useCopy, cz as useTimeAgo, F as Fragment, a9 as createTextVNode, c9 as rpc, cl as useDevToolsClient, bL as _sfc_main$a, cA as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-773a455a.js';
3
- import { _ as _sfc_main$9 } from './IconButton.vue_vue_type_script_setup_true_lang-f308a32e.js';
4
- import { _ as __unplugin_components_3 } from './SectionBlock-30cd0db7.js';
5
- import { _ as _sfc_main$b } from './TextInput.vue_vue_type_script_setup_true_lang-49fa3d66.js';
6
- import { _ as _sfc_main$c } from './Icon.vue_vue_type_script_setup_true_lang-9344440e.js';
1
+ import { _ as __unplugin_components_0 } from './PanelGrids-79045561.js';
2
+ import { v as defineComponent, a$ as ref, cA as useElementSize, cB as onClickOutside, o as openBlock, c as createBlock, h as withCtx, e as createElementBlock, u as createVNode, x as createBaseVNode, f as renderSlot, k as mergeProps, z as unref, g as createCommentVNode, P as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, cC as useStyleTag, l as normalizeStyle, cD as computedAsync, cx as useCopy, cE as useTimeAgo, F as Fragment, a9 as createTextVNode, cf as rpc, c8 as useDevToolsClient, bO as _sfc_main$a, cF as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-43ac0c1e.js';
3
+ import { _ as _sfc_main$9 } from './IconButton.vue_vue_type_script_setup_true_lang-df1aed4a.js';
4
+ import { _ as __unplugin_components_3 } from './SectionBlock-d6546a5c.js';
5
+ import { _ as _sfc_main$b } from './TextInput.vue_vue_type_script_setup_true_lang-c719d9ea.js';
6
+ import { _ as _sfc_main$c } from './Icon.vue_vue_type_script_setup_true_lang-7b574e17.js';
7
7
  import { F as Fuse } from './fuse.esm-c317b696.js';
8
- import './IconTitle.vue_vue_type_script_setup_true_lang-4cf300a8.js';
8
+ import './IconTitle.vue_vue_type_script_setup_true_lang-340f9637.js';
9
9
 
10
10
  const _hoisted_1$7 = {
11
11
  relative: "",
@@ -1077,19 +1077,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1077
1077
  setup(__props) {
1078
1078
  const props = __props;
1079
1079
  const icon = computed(() => {
1080
- if (props.asset.type === "image")
1081
- return "i-carbon-image";
1082
- if (props.asset.type === "video")
1083
- return "i-carbon-video";
1084
- if (props.asset.type === "audio")
1085
- return "i-carbon-volume-up";
1086
- if (props.asset.type === "font")
1087
- return "i-carbon-text-small-caps";
1088
- if (props.asset.type === "text")
1089
- return "i-carbon-document";
1090
- if (props.asset.type === "json")
1091
- return "i-carbon-json";
1092
- return "i-carbon-document-blank";
1080
+ const assets = {
1081
+ image: "i-carbon-image",
1082
+ video: "i-carbon-video",
1083
+ audio: "i-carbon-volume-up",
1084
+ font: "i-carbon-text-small-caps",
1085
+ text: "i-carbon-document",
1086
+ json: "i-carbon-json"
1087
+ };
1088
+ return assets[props.asset.type] ?? "i-carbon-document-blank";
1093
1089
  });
1094
1090
  return (_ctx, _cache) => {
1095
1091
  return openBlock(), createElementBlock("button", _hoisted_1$3, [