vite-plugin-vue-devtools 0.4.6 → 0.4.7

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 (30) hide show
  1. package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-bda316f5.js → IframeView.vue_vue_type_script_setup_true_lang-4c77817b.js} +1 -1
  2. package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-33c7a516.js → StateFields.vue_vue_type_script_setup_true_lang-6969f024.js} +24 -23
  3. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-c5c85632.js → VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js} +1 -1
  4. package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-2ed92f4f.js → VIconButton.vue_vue_type_script_setup_true_lang-a89f6c88.js} +2 -2
  5. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-f4319120.js → VIconTitle.vue_vue_type_script_setup_true_lang-d3431291.js} +1 -1
  6. package/dist/client/assets/{VPanelGrids-a558a3a3.js → VPanelGrids-24560813.js} +1 -1
  7. package/dist/client/assets/{VSectionBlock-6ecd7b4a.js → VSectionBlock-ba31730a.js} +3 -3
  8. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-db8c1648.js → VTextInput.vue_vue_type_script_setup_true_lang-5373326c.js} +2 -2
  9. package/dist/client/assets/{__eyedropper-edc5c47f.js → __eyedropper-8e124d1e.js} +2 -2
  10. package/dist/client/assets/{assets-7a17e6c0.js → assets-136b5c5e.js} +8 -8
  11. package/dist/client/assets/{component-docs-c1ffec45.js → component-docs-49ee42b3.js} +5 -5
  12. package/dist/client/assets/{components-a32960a6.js → components-f31cfed4.js} +7 -7
  13. package/dist/client/assets/{documentations-ede56c21.js → documentations-99f74693.js} +3 -3
  14. package/dist/client/assets/{graph-af728b55.js → graph-65afb14a.js} +2 -2
  15. package/dist/client/assets/{index-fbb573b9.js → index-233a79fb.js} +14 -14
  16. package/dist/client/assets/{index-99f31726.css → index-7c5b746a.css} +1 -1
  17. package/dist/client/assets/{index-e9c72920.js → index-8d0405da.js} +1 -1
  18. package/dist/client/assets/{inspect-b7a1f859.js → inspect-4188d5cc.js} +3 -3
  19. package/dist/client/assets/{npm-c6cf8284.js → npm-6d9ce0f4.js} +6 -6
  20. package/dist/client/assets/{overview-f1a73947.js → overview-aef80b27.js} +5 -5
  21. package/dist/client/assets/{pages-ee614bad.js → pages-f80c7a3e.js} +5 -5
  22. package/dist/client/assets/{pinia-4aaa6eb6.js → pinia-8c6ed567.js} +6 -6
  23. package/dist/client/assets/{routes-3c843349.js → routes-64dbd0f9.js} +7 -7
  24. package/dist/client/assets/{rpc-2508d8e1.js → rpc-358fc96c.js} +1 -1
  25. package/dist/client/assets/{settings-4b52cfb8.js → settings-5fd1add1.js} +3 -3
  26. package/dist/client/assets/{splitpanes.es-a6339219.js → splitpanes.es-2be998f1.js} +1 -1
  27. package/dist/client/assets/{timeline-71e80367.js → timeline-0c017176.js} +7 -7
  28. package/dist/client/index.html +2 -2
  29. package/package.json +1 -1
  30. package/src/node/views/utils.ts +30 -10
@@ -1,9 +1,9 @@
1
- import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-33c7a516.js';
2
- import { g, M } from './splitpanes.es-a6339219.js';
3
- import { v as defineComponent, a1 as ref, a2 as computed, a3 as piniaStoresCategory, a4 as toRaw, a5 as piniaState, a6 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-fbb573b9.js';
4
- import { p as pick } from './index-e9c72920.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-c5c85632.js';
6
- import './VIconButton.vue_vue_type_script_setup_true_lang-2ed92f4f.js';
1
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-6969f024.js';
2
+ import { g, M } from './splitpanes.es-2be998f1.js';
3
+ import { v as defineComponent, a1 as ref, a2 as computed, a3 as piniaStoresCategory, a4 as toRaw, a5 as piniaState, a6 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-233a79fb.js';
4
+ import { p as pick } from './index-8d0405da.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js';
6
+ import './VIconButton.vue_vue_type_script_setup_true_lang-a89f6c88.js';
7
7
 
8
8
  const _hoisted_1 = {
9
9
  "h-screen": "",
@@ -1,10 +1,10 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-a558a3a3.js';
2
- import { v as defineComponent, z as unref, W as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, X as routeRecordMatcherState, Y as activeRouteRecordMatcherState, c as createBlock, V as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, Z as activeRouteRecordIndex, $ as toggleRouteRecordMatcher, P as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, a0 as __unplugin_components_1 } from './index-fbb573b9.js';
3
- import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-33c7a516.js';
4
- import { g, M } from './splitpanes.es-a6339219.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-c5c85632.js';
6
- import './index-e9c72920.js';
7
- import './VIconButton.vue_vue_type_script_setup_true_lang-2ed92f4f.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-24560813.js';
2
+ import { v as defineComponent, z as unref, W as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, X as routeRecordMatcherState, Y as activeRouteRecordMatcherState, c as createBlock, V as _sfc_main$2, _ as __unplugin_components_7, q as normalizeClass, Z as activeRouteRecordIndex, $ as toggleRouteRecordMatcher, P as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, a0 as __unplugin_components_1 } from './index-233a79fb.js';
3
+ import { _ as _sfc_main$1 } from './StateFields.vue_vue_type_script_setup_true_lang-6969f024.js';
4
+ import { g, M } from './splitpanes.es-2be998f1.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js';
6
+ import './index-8d0405da.js';
7
+ import './VIconButton.vue_vue_type_script_setup_true_lang-a89f6c88.js';
8
8
 
9
9
  const _hoisted_1 = {
10
10
  key: 0,
@@ -1,4 +1,4 @@
1
- import { aI as __vitePreload, ae as hookApi } from './index-fbb573b9.js';
1
+ import { aI as __vitePreload, ae as hookApi } from './index-233a79fb.js';
2
2
 
3
3
  async function getViteClient(base = "/", warning = true) {
4
4
  try {
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-c5c85632.js';
2
- import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, O as isInPopup, h as withCtx, P as createTextVNode, Q as useDevToolsSettings, R as useFrameState, S as _sfc_main$5, T as _sfc_main$6, U as _sfc_main$7, q as normalizeClass, V as _sfc_main$8 } from './index-fbb573b9.js';
3
- import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-f4319120.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js';
2
+ import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, O as isInPopup, h as withCtx, P as createTextVNode, Q as useDevToolsSettings, R as useFrameState, S as _sfc_main$5, T as _sfc_main$6, U as _sfc_main$7, q as normalizeClass, V as _sfc_main$8 } from './index-233a79fb.js';
3
+ import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-d3431291.js';
4
4
 
5
5
  const _hoisted_1$2 = { 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" };
6
6
  const _hoisted_2$2 = ["disabled"];
@@ -1,4 +1,4 @@
1
- import { ay as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-fbb573b9.js';
1
+ import { ay as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-233a79fb.js';
2
2
 
3
3
  const M = {
4
4
  name: "splitpanes",
@@ -1,11 +1,11 @@
1
- import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-33c7a516.js';
2
- import { _ as __unplugin_components_0 } from './VPanelGrids-a558a3a3.js';
3
- import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-fbb573b9.js';
1
+ import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-6969f024.js';
2
+ import { _ as __unplugin_components_0 } from './VPanelGrids-24560813.js';
3
+ import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-233a79fb.js';
4
4
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-c0d8ada0.js';
5
- import { g, M } from './splitpanes.es-a6339219.js';
6
- import './VIcon.vue_vue_type_script_setup_true_lang-c5c85632.js';
7
- import './index-e9c72920.js';
8
- import './VIconButton.vue_vue_type_script_setup_true_lang-2ed92f4f.js';
5
+ import { g, M } from './splitpanes.es-2be998f1.js';
6
+ import './VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js';
7
+ import './index-8d0405da.js';
8
+ import './VIconButton.vue_vue_type_script_setup_true_lang-a89f6c88.js';
9
9
 
10
10
  var dayjs_min = {exports: {}};/* Injected with object hook! */
11
11
 
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
7
7
  <title>Vue DevTools</title>
8
- <script type="module" crossorigin src="./assets/index-fbb573b9.js"></script>
9
- <link rel="stylesheet" href="./assets/index-99f31726.css">
8
+ <script type="module" crossorigin src="./assets/index-233a79fb.js"></script>
9
+ <link rel="stylesheet" href="./assets/index-7c5b746a.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vue-devtools",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "packageManager": "pnpm@8.4.0",
5
5
  "description": "A vite plugin for Vue Devtools",
6
6
  "author": "webfansplz",
@@ -31,12 +31,22 @@ export function useObjectStorage<T>(key: string, initial: T, readonly = false):
31
31
  }, { deep: true, flush: 'post' })
32
32
  }
33
33
 
34
+ const storageChanged = (newValue: string) => {
35
+ updating = true
36
+ data.value = JSON.parse(newValue)
37
+ updating = false
38
+ }
39
+
34
40
  useWindowEventListener('storage', (e: StorageEvent) => {
35
- if (e.key === key && e.newValue && e.newValue !== wrote) {
36
- updating = true
37
- data.value = JSON.parse(e.newValue)
38
- updating = false
39
- }
41
+ if (e.key === key && e.newValue && e.newValue !== wrote)
42
+ storageChanged(e.newValue)
43
+ })
44
+
45
+ // @ts-expect-error custom event
46
+ useWindowEventListener('vueuse-storage', (e: CustomEvent) => {
47
+ const event = e.detail as StorageEvent
48
+ if (event.key === key && event.newValue && event.newValue !== wrote)
49
+ storageChanged(event.newValue)
40
50
  })
41
51
 
42
52
  return data
@@ -58,12 +68,22 @@ export function useStorage<T>(key: string, initial: T, readonly = false) {
58
68
  }, { deep: true, flush: 'post' })
59
69
  }
60
70
 
71
+ const storageChanged = (newValue: string) => {
72
+ updating = true
73
+ data.value = newValue
74
+ updating = false
75
+ }
76
+
61
77
  useWindowEventListener('storage', (e: StorageEvent) => {
62
- if (e.key === key && e.newValue && e.newValue !== wrote) {
63
- updating = true
64
- data.value = e.newValue
65
- updating = false
66
- }
78
+ if (e.key === key && e.newValue && e.newValue !== wrote)
79
+ storageChanged(e.newValue)
80
+ })
81
+
82
+ // @ts-expect-error custom event
83
+ useWindowEventListener('vueuse-storage', (e: CustomEvent) => {
84
+ const event = e.detail as StorageEvent
85
+ if (event.key === key && event.newValue && event.newValue !== wrote)
86
+ storageChanged(event.newValue)
67
87
  })
68
88
 
69
89
  return data