vite-plugin-vue-devtools 1.0.0-rc.8 → 7.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.
Files changed (96) hide show
  1. package/README.md +8 -172
  2. package/dist/client/assets/css-a-KJtBLB.js +505 -0
  3. package/dist/client/assets/diff--l9-nN5b.js +1 -0
  4. package/dist/client/assets/html-5-AIf93y.js +74 -0
  5. package/dist/client/assets/index-NNrCE7Vx.css +1 -0
  6. package/dist/client/assets/index-U-H6nGkn.js +1080 -0
  7. package/dist/client/assets/javascript-Of8SnKfU.js +699 -0
  8. package/dist/client/assets/json-t1qiHl76.js +25 -0
  9. package/dist/client/assets/onig-mBJmD8D5.js +1 -0
  10. package/dist/client/assets/shellscript-h1L64xId.js +4 -0
  11. package/dist/client/assets/typescript-b1Nw_bQe.js +666 -0
  12. package/dist/client/assets/unocss-runtime-kftsoZPE.js +2 -0
  13. package/dist/client/assets/vitesse-dark-5VceXvs6.js +1 -0
  14. package/dist/client/assets/vitesse-light-HOMMxGxw.js +1 -0
  15. package/dist/client/assets/vue-apis-Nh9IahXf.js +1 -0
  16. package/dist/client/assets/vue-html-eJ6eRCYJ.js +1 -0
  17. package/dist/client/assets/vue-nOwTje1i.js +2002 -0
  18. package/dist/client/assets/yaml-FtfhlYqU.js +200 -0
  19. package/dist/client/color-scheme.js +6 -0
  20. package/dist/client/css-hXHVOlj5.js +511 -0
  21. package/dist/client/devtools-panel.css +1 -0
  22. package/dist/client/devtools-panel.js +77722 -0
  23. package/dist/client/diff-nydZCsp5.js +7 -0
  24. package/dist/client/html-r4dic7N6.js +84 -0
  25. package/dist/client/index.html +13 -21
  26. package/dist/client/javascript-iu2g-HpL.js +705 -0
  27. package/dist/client/json-6ED1Ntns.js +31 -0
  28. package/dist/client/onig-NuJRzyUz.js +4 -0
  29. package/dist/client/shellscript-lFevXvOp.js +10 -0
  30. package/dist/client/typescript-SzFP_hYV.js +672 -0
  31. package/dist/client/unocss-runtime-c8-Zzj4C.js +1974 -0
  32. package/dist/client/vitesse-dark-Q3b2Vb5y.js +683 -0
  33. package/dist/client/vitesse-light-T_UJmsth.js +681 -0
  34. package/dist/client/vue-apis-j7ljdRbm.js +1127 -0
  35. package/dist/client/vue-html-IdJrwrVJ.js +16 -0
  36. package/dist/client/vue-vFbCUJfs.js +2118 -0
  37. package/dist/client/yaml-n_HyS7lr.js +206 -0
  38. package/dist/vite.cjs +116 -13794
  39. package/dist/vite.d.cts +6 -9
  40. package/dist/vite.d.mts +6 -9
  41. package/dist/vite.d.ts +6 -9
  42. package/dist/vite.mjs +113 -13774
  43. package/package.json +18 -19
  44. package/src/overlay/devtools-overlay.css +1 -0
  45. package/src/overlay/devtools-overlay.js +4 -0
  46. package/src/overlay.js +77 -0
  47. package/README.zh-CN.md +0 -186
  48. package/client.d.ts +0 -63
  49. package/dist/client/assets/DrawerRight.vue_vue_type_script_setup_true_lang-99688d1e.js +0 -81
  50. package/dist/client/assets/IconButton.vue_vue_type_script_setup_true_lang-48a6bea2.js +0 -26
  51. package/dist/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-adb17252.js +0 -30
  52. package/dist/client/assets/IframeView.vue_vue_type_script_setup_true_lang-4ccdbf42.js +0 -96
  53. package/dist/client/assets/PanelGrids-664603ce.js +0 -15
  54. package/dist/client/assets/SectionBlock-0024395a.css +0 -18
  55. package/dist/client/assets/SectionBlock-04b7ab1e.js +0 -109
  56. package/dist/client/assets/StateFields.vue_vue_type_script_setup_true_lang-48cf50ad.js +0 -381
  57. package/dist/client/assets/Switch.vue_vue_type_script_setup_true_lang-d74bf986.js +0 -87
  58. package/dist/client/assets/TextInput.vue_vue_type_script_setup_true_lang-65c09c69.js +0 -38
  59. package/dist/client/assets/__eyedropper-7bbec9b2.js +0 -149
  60. package/dist/client/assets/_commonjsHelpers-7e83dbf2.js +0 -34
  61. package/dist/client/assets/assets-641818bf.js +0 -1597
  62. package/dist/client/assets/component-docs-7bd37475.js +0 -195
  63. package/dist/client/assets/components-b0181ea4.js +0 -790
  64. package/dist/client/assets/data-8729d21a.js +0 -399
  65. package/dist/client/assets/dayjs.min-f03ccd82.js +0 -13
  66. package/dist/client/assets/documentations-7cba8670.js +0 -276
  67. package/dist/client/assets/fuse.esm-c317b696.js +0 -1782
  68. package/dist/client/assets/graph-edf83976.js +0 -52092
  69. package/dist/client/assets/index-77d53487.js +0 -18551
  70. package/dist/client/assets/index-b5475fe0.css +0 -482
  71. package/dist/client/assets/inspect-d17224a9.js +0 -20
  72. package/dist/client/assets/jse-theme-dark-333a4654.js +0 -1565
  73. package/dist/client/assets/jse-theme-dark-351d62d5.css +0 -114
  74. package/dist/client/assets/npm-076ecb7c.js +0 -550
  75. package/dist/client/assets/npm-832f3f2c.css +0 -209
  76. package/dist/client/assets/overview-d99e7f18.js +0 -303
  77. package/dist/client/assets/pages-fca7d8d3.js +0 -561
  78. package/dist/client/assets/pinia-3f5b6c57.js +0 -108
  79. package/dist/client/assets/pinia-7ed2c830.svg +0 -1
  80. package/dist/client/assets/rerender-trace-3afd48a1.css +0 -14
  81. package/dist/client/assets/rerender-trace-5fc6fb22.js +0 -436
  82. package/dist/client/assets/routes-9567a43f.js +0 -132
  83. package/dist/client/assets/settings-5a2e184c.js +0 -9652
  84. package/dist/client/assets/settings-7bce89ae.css +0 -11
  85. package/dist/client/assets/splitpanes.es-26cdc434.js +0 -343
  86. package/dist/client/assets/timeline-20d79e43.js +0 -1480
  87. package/dist/client/assets/timeline-b315b2e0.css +0 -1
  88. package/dist/client/assets/vue-5d4e674c.svg +0 -1
  89. package/dist/client/assets/vueuse-995374f6.svg +0 -1
  90. package/src/app.js +0 -4
  91. package/src/views/ComponentInspector.vue +0 -68
  92. package/src/views/FrameBox.vue +0 -231
  93. package/src/views/Main.vue +0 -435
  94. package/src/views/RerenderIndicator.vue +0 -37
  95. package/src/views/composables.ts +0 -630
  96. package/src/views/utils.ts +0 -241
@@ -1 +0,0 @@
1
- .vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:flex}.vue-recycle-scroller__slot{flex:auto 0 0}.vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}
@@ -1 +0,0 @@
1
- <svg version="1.1" viewBox="0 0 261.76 226.69" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1.3333 0 0 -1.3333 -76.311 313.34)"><g transform="translate(178.06 235.01)"><path d="m0 0-22.669-39.264-22.669 39.264h-75.491l98.16-170.02 98.16 170.02z" fill="#41b883"/></g><g transform="translate(178.06 235.01)"><path d="m0 0-22.669-39.264-22.669 39.264h-36.227l58.896-102.01 58.896 102.01z" fill="#34495e"/></g></g></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><style>.a{fill:#35495e;}.b{fill:#41b883;}</style></defs><path class="a" d="M735.07,67.05V531.58c0,129.83-105.24,235.07-235.07,235.07S264.93,661.41,264.93,531.58V67.05h166.3V531.58a68.77,68.77,0,1,0,137.54,0V67.05Z"/><path class="b" d="M901.36,67.05V531.58C901.36,753.25,721.67,933,500,933S98.64,753.25,98.64,531.58V67.05H264.93V531.58c0,129.83,105.25,235.07,235.07,235.07S735.07,661.41,735.07,531.58V67.05Z"/></svg>
package/src/app.js DELETED
@@ -1,4 +0,0 @@
1
- import { createDevToolsContainer } from '@vite-plugin-vue-devtools/core'
2
- import App from 'virtual:vue-devtools-path:views/Main.vue'
3
-
4
- createDevToolsContainer(App)
@@ -1,68 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed } from 'vue'
3
-
4
- const props = defineProps<{
5
- bounds: {
6
- width: number
7
- height: number
8
- top: number
9
- left: number
10
- }
11
- name: string
12
- }>()
13
-
14
- const inspectorStyle = computed(() => {
15
- const { width, height, top, left } = props.bounds
16
- return {
17
- width: `${Math.round(width)}px`,
18
- height: `${Math.round(height)}px`,
19
- top: `${Math.round(top)}px`,
20
- left: `${Math.round(left)}px`,
21
- }
22
- })
23
- const inspectorCardStyle = computed(() => ({ top: props.bounds.top < 35 ? 0 : '-35px' }))
24
- </script>
25
-
26
- <template>
27
- <div v-show="bounds.width || bounds.height" class="vue-devtools-component-inspector" :style="inspectorStyle">
28
- <span class="vue-devtools-component-inspector-card" :style="inspectorCardStyle">
29
- &lt;{{ name }}&gt;
30
- <i>{{ Math.round(bounds.width * 100) / 100 }} x {{ Math.round(bounds.height * 100) / 100 }}</i>
31
- <slot name="header-extra" />
32
- </span>
33
- </div>
34
- </template>
35
-
36
- <style scoped>
37
- .vue-devtools-component-inspector {
38
- z-index: 2147483640;
39
- position: fixed;
40
- background-color:#42b88325;
41
- border: 1px solid #42b88350;
42
- border-radius: 5px;
43
- transition: all 0.1s ease-in;
44
- pointer-events: none;
45
- }
46
-
47
- .vue-devtools-component-inspector-card {
48
- font-family: Arial, Helvetica, sans-serif;
49
- padding: 5px 8px;
50
- border-radius: 4px;
51
- text-align: left;
52
- position: absolute;
53
- left: 0;
54
- color:#e9e9e9;
55
- font-size: 14px;
56
- font-weight: 600;
57
- line-height: 24px;
58
- background-color:#42b883;
59
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
60
- }
61
-
62
- .vue-devtools-component-inspector-card i {
63
- font-weight: 400;
64
- font-style: normal;
65
- font-size: 12px;
66
- opacity: 0.7;
67
- }
68
- </style>
@@ -1,231 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, ref, watchEffect } from 'vue'
3
- import { PANEL_MAX, PANEL_MIN, popupWindow, state } from './composables'
4
- import { useWindowEventListener } from './utils'
5
-
6
- const props = defineProps<{
7
- isDragging: boolean
8
-
9
- client: {
10
- close: () => void
11
- getIFrame: () => HTMLIFrameElement
12
- inspector: {
13
- isEnabled: Ref<boolean>
14
- disable: () => void
15
- } | undefined
16
- }
17
- viewMode: 'xs' | 'default' | 'fullscreen'
18
- }>()
19
-
20
- const container = ref<HTMLElement>()
21
- const isResizing = ref<false | { top?: boolean; left?: boolean; right?: boolean; bottom?: boolean }>(false)
22
-
23
- watchEffect(() => {
24
- if (!container.value)
25
- return
26
- if (state.value.open) {
27
- const iframe = props.client.getIFrame()
28
- iframe.style.pointerEvents = (isResizing.value || props.isDragging) ? 'none' : 'auto'
29
-
30
- if (!popupWindow.value) {
31
- if (Array.from(container.value.children).every(el => el !== iframe))
32
- container.value.appendChild(iframe)
33
- }
34
- }
35
- })
36
-
37
- useWindowEventListener('keydown', (e) => {
38
- if (e.key === 'Escape' && props.client.inspector?.isEnabled.value) {
39
- e.preventDefault()
40
- props.client.inspector?.disable()
41
- props.client.close()
42
- }
43
- })
44
-
45
- useWindowEventListener('mousedown', (e: MouseEvent) => {
46
- if (!state.value.closeOnOutsideClick)
47
- return
48
- if (popupWindow.value)
49
- return
50
- if (!state.value.open || isResizing.value || props.client.inspector?.isEnabled.value)
51
- return
52
-
53
- const matched = e.composedPath().find((_el) => {
54
- const el = _el as HTMLElement
55
- return Array.from(el.classList || []).some(c => c.startsWith('vue-devtools-'))
56
- || el.tagName?.toLowerCase() === 'iframe'
57
- })
58
-
59
- if (!matched)
60
- state.value.open = false
61
- })
62
-
63
- useWindowEventListener('mousemove', (e) => {
64
- if (!isResizing.value)
65
- return
66
- if (!state.value.open)
67
- return
68
-
69
- const iframe = props.client.getIFrame()
70
- const box = iframe.getBoundingClientRect()
71
-
72
- if (isResizing.value.right) {
73
- const widthPx = Math.abs(e.clientX - (box?.left || 0))
74
- const width = widthPx / window.innerWidth * 100
75
- state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
76
- }
77
- else if (isResizing.value.left) {
78
- const widthPx = Math.abs((box?.right || 0) - e.clientX)
79
- const width = widthPx / window.innerWidth * 100
80
- state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
81
- }
82
-
83
- if (isResizing.value.top) {
84
- const heightPx = Math.abs((box?.bottom || 0) - e.clientY)
85
- const height = heightPx / window.innerHeight * 100
86
- state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
87
- }
88
- else if (isResizing.value.bottom) {
89
- const heightPx = Math.abs(e.clientY - (box?.top || 0))
90
- const height = heightPx / window.innerHeight * 100
91
- state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
92
- }
93
- })
94
-
95
- useWindowEventListener('mouseup', () => {
96
- isResizing.value = false
97
- })
98
-
99
- useWindowEventListener('mouseleave', () => {
100
- isResizing.value = false
101
- })
102
-
103
- const viewModeClass = computed(() => {
104
- if (props.viewMode === 'xs')
105
- return 'view-mode-xs'
106
- if (props.viewMode === 'fullscreen')
107
- return 'view-mode-fullscreen'
108
- return ''
109
- })
110
- </script>
111
-
112
- <template>
113
- <div
114
- v-show="state.open && !client.inspector?.isEnabled.value && !popupWindow"
115
- ref="container"
116
- class="vue-devtools-frame"
117
- :class="viewModeClass"
118
- >
119
- <!-- Handlers -->
120
- <div
121
- v-show="state.position !== 'top'"
122
- class="vue-devtools-resize-handle vue-devtools-resize-handle-horizontal"
123
- :style="{ top: 0 }"
124
- @mousedown.prevent="() => isResizing = { top: true }"
125
- />
126
- <div
127
- v-show="state.position !== 'bottom'"
128
- class="vue-devtools-resize-handle vue-devtools-resize-handle-horizontal"
129
- :style="{ bottom: 0 }"
130
- @mousedown.prevent="() => isResizing = { bottom: true }"
131
- />
132
- <div
133
- v-show="state.position !== 'left'"
134
- class="vue-devtools-resize-handle vue-devtools-resize-handle-vertical"
135
- :style="{ left: 0 }"
136
- @mousedown.prevent="() => isResizing = { left: true }"
137
- />
138
- <div
139
- v-show="state.position !== 'right'"
140
- class="vue-devtools-resize-handle vue-devtools-resize-handle-vertical"
141
- :style="{ right: 0 }"
142
- @mousedown.prevent="() => isResizing = { right: true }"
143
- />
144
- <div
145
- v-show="state.position !== 'top' && state.position !== 'left'"
146
- class="vue-devtools-resize-handle vue-devtools-resize-handle-corner"
147
- :style="{ top: 0, left: 0, cursor: 'nwse-resize' }"
148
- @mousedown.prevent="() => isResizing = { top: true, left: true }"
149
- />
150
- <div
151
- v-show="state.position !== 'top' && state.position !== 'right'"
152
- class="vue-devtools-resize-handle vue-devtools-resize-handle-corner"
153
- :style="{ top: 0, right: 0, cursor: 'nesw-resize' }"
154
- @mousedown.prevent="() => isResizing = { top: true, right: true }"
155
- />
156
- <div
157
- v-show="state.position !== 'bottom' && state.position !== 'left'"
158
- class="vue-devtools-resize-handle vue-devtools-resize-handle-corner"
159
- :style="{ bottom: 0, left: 0, cursor: 'nesw-resize' }"
160
- @mousedown.prevent="() => isResizing = { bottom: true, left: true }"
161
- />
162
- <div
163
- v-show="state.position !== 'bottom' && state.position !== 'right'"
164
- class="vue-devtools-resize-handle vue-devtools-resize-handle-corner"
165
- :style="{ bottom: 0, right: 0, cursor: 'nwse-resize' }"
166
- @mousedown.prevent="() => isResizing = { bottom: true, right: true }"
167
- />
168
- </div>
169
- </template>
170
-
171
- <style scoped>
172
- .vue-devtools-frame {
173
- position: fixed;
174
- z-index: 2147483645;
175
- }
176
-
177
- .vue-devtools-frame :deep(iframe) {
178
- width: 100%;
179
- height: 100%;
180
- outline: none;
181
- background: var(--vue-devtools-widget-bg);
182
- border: 1px solid rgba(125,125,125,0.2);
183
- border-radius: 10px;
184
- }
185
-
186
- .vue-devtools-resize-handle-horizontal {
187
- position: absolute;
188
- left: 6px;
189
- right: 6px;
190
- height: 10px;
191
- margin: -5px 0;
192
- cursor: ns-resize;
193
- border-radius: 5px;
194
- }
195
- .vue-devtools-resize-handle-vertical {
196
- position: absolute;
197
- top: 6px;
198
- bottom: 0;
199
- width: 10px;
200
- margin: 0 -5px;
201
- cursor: ew-resize;
202
- border-radius: 5px;
203
- }
204
- .vue-devtools-resize-handle-corner {
205
- position: absolute;
206
- width: 14px;
207
- height: 14px;
208
- margin: -6px;
209
- border-radius: 6px;
210
- }
211
- .vue-devtools-resize-handle:hover {
212
- background: rgba(125,125,125,0.1);
213
- }
214
-
215
- .vue-devtools-frame.view-mode-xs {
216
- width: 400px !important;
217
- height: 80px !important;
218
- }
219
-
220
- .vue-devtools-frame.view-mode-fullscreen {
221
- width: 100vw !important;
222
- height: 100vh !important;
223
- z-index: 1 !important;
224
- bottom: 0 !important;
225
- transform: none !important;
226
- }
227
-
228
- .vue-devtools-frame.view-mode-fullscreen :deep(iframe) {
229
- border-radius: 0 !important;
230
- }
231
- </style>