@nuxt/devtools 1.0.8 → 1.1.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 (169) hide show
  1. package/dist/chunks/module-main.mjs +53 -34
  2. package/dist/chunks/vite-inspect.mjs +1 -1
  3. package/dist/chunks/vscode.mjs +1 -1
  4. package/dist/chunks/vue-devtools.mjs +30 -0
  5. package/dist/client/200.html +35 -35
  6. package/dist/client/404.html +35 -35
  7. package/dist/client/_nuxt/3oGDMuFq.js +1 -0
  8. package/dist/client/_nuxt/6jtm0BF9.js +1 -0
  9. package/dist/client/_nuxt/7hiTR5PB.js +1 -0
  10. package/dist/client/_nuxt/A1WiD9SJ.js +1 -0
  11. package/dist/client/_nuxt/B5zbF1Ns.js +1 -0
  12. package/dist/client/_nuxt/{error.U9HBYLgA.js → B6I8sub5.js} +1 -1
  13. package/dist/client/_nuxt/BC8B3cgI.js +1 -0
  14. package/dist/client/_nuxt/BEahU4zN.js +1 -0
  15. package/dist/client/_nuxt/BF8Kd9Mz.js +1 -0
  16. package/dist/client/_nuxt/BGDH87KL.js +1 -0
  17. package/dist/client/_nuxt/{modules.7QVx6VBW.js → BH7H7KuD.js} +2 -2
  18. package/dist/client/_nuxt/BSuPiGtT.js +1 -0
  19. package/dist/client/_nuxt/BUvXV4QM.js +1 -0
  20. package/dist/client/_nuxt/BV6PKaGl.js +1 -0
  21. package/dist/client/_nuxt/BVD70z6r.js +1 -0
  22. package/dist/client/_nuxt/BVYGtwfP.js +982 -0
  23. package/dist/client/_nuxt/BVYSsK7b.js +1 -0
  24. package/dist/client/_nuxt/{components.bafJJWkk.js → BVujVKxG.js} +1 -1
  25. package/dist/client/_nuxt/BajVyxOZ.js +16 -0
  26. package/dist/client/_nuxt/Bcl6uqaN.js +1 -0
  27. package/dist/client/_nuxt/BcogkuZh.js +1 -0
  28. package/dist/client/_nuxt/BkBsf4fV.js +1 -0
  29. package/dist/client/_nuxt/Blr6EMNg.js +16 -0
  30. package/dist/client/_nuxt/BrmerHXk.js +105 -0
  31. package/dist/client/_nuxt/{open-graph.ibydGna7.js → BrtgKGBY.js} +2 -2
  32. package/dist/client/_nuxt/C5gCGmDW.js +200 -0
  33. package/dist/client/_nuxt/CBSPSh67.js +1 -0
  34. package/dist/client/_nuxt/{terminals.WAexfEk0.js → CDDcSnPK.js} +1 -1
  35. package/dist/client/_nuxt/CFm3KZee.js +1 -0
  36. package/dist/client/_nuxt/CIkrQBKj.js +48 -0
  37. package/dist/client/_nuxt/CJ5q8Tg7.js +1 -0
  38. package/dist/client/_nuxt/CTFc8btY.js +1 -0
  39. package/dist/client/_nuxt/CbViG2Xw.js +74 -0
  40. package/dist/client/_nuxt/{css.a-KJtBLB.js → CbYhyuC0.js} +347 -347
  41. package/dist/client/_nuxt/CblUgwwa.js +1 -0
  42. package/dist/client/_nuxt/{vue.c6DnC5ch.js → Cd6DbZRp.js} +1518 -1518
  43. package/dist/client/_nuxt/CdS8XaBJ.js +1 -0
  44. package/dist/client/_nuxt/Ci1dPZGg.js +1 -0
  45. package/dist/client/_nuxt/Cjc4f2ev.js +1 -0
  46. package/dist/client/_nuxt/CkT2yc6U.js +1 -0
  47. package/dist/client/_nuxt/Coo6pmwX.js +1 -0
  48. package/dist/client/_nuxt/{onig.mBJmD8D5.js → CsTmP73Z.js} +1 -1
  49. package/dist/client/_nuxt/CupVZNk8.js +25 -0
  50. package/dist/client/_nuxt/CzWzoIFD.js +1 -0
  51. package/dist/client/_nuxt/D2q6OHSI.js +1 -0
  52. package/dist/client/_nuxt/D7YqW8lP.js +1 -0
  53. package/dist/client/_nuxt/{typescript.b1Nw_bQe.js → DC8MraHL.js} +489 -489
  54. package/dist/client/_nuxt/DOpbjCYu.js +1 -0
  55. package/dist/client/_nuxt/DPQLghlB.js +1 -0
  56. package/dist/client/_nuxt/DSo8oaHs.js +1 -0
  57. package/dist/client/_nuxt/DV66A8GP.js +1 -0
  58. package/dist/client/_nuxt/DXVvxk8K.js +1 -0
  59. package/dist/client/_nuxt/Dc1Hsvcx.js +1 -0
  60. package/dist/client/_nuxt/{javascript.Of8SnKfU.js → Dch3xQiY.js} +509 -509
  61. package/dist/client/_nuxt/DfFJQbG4.js +8 -0
  62. package/dist/client/_nuxt/DggdVF2v.js +1 -0
  63. package/dist/client/_nuxt/DhaiECBd.js +1 -0
  64. package/dist/client/_nuxt/DjUutLiq.js +1 -0
  65. package/dist/client/_nuxt/DmbtNPqq.js +1 -0
  66. package/dist/client/_nuxt/DnNA5yXt.js +1 -0
  67. package/dist/client/_nuxt/Dt7Jhe5U.js +1 -0
  68. package/dist/client/_nuxt/Dw-ZU76y.js +2 -0
  69. package/dist/client/_nuxt/Dw1fJENz.js +1 -0
  70. package/dist/client/_nuxt/Dx8eINec.js +1 -0
  71. package/dist/client/_nuxt/DyLVKLu8.js +1 -0
  72. package/dist/client/_nuxt/Wx9V_rRD.js +1 -0
  73. package/dist/client/_nuxt/XUyCDlLU.js +1 -0
  74. package/dist/client/_nuxt/builds/latest.json +1 -1
  75. package/dist/client/_nuxt/builds/meta/34470db4-655e-46f1-a42f-a96f6eee9135.json +1 -0
  76. package/dist/client/_nuxt/entry.C4Fmc-BV.css +1 -0
  77. package/dist/client/_nuxt/k_A0nJhK.js +30 -0
  78. package/dist/client/_nuxt/pinia.BBoKCg80.css +1 -0
  79. package/dist/client/_nuxt/tdLlBApQ.js +9 -0
  80. package/dist/client/_nuxt/wFhhlbUq.js +1 -0
  81. package/dist/client/_nuxt/xLS-vzkA.js +1 -0
  82. package/dist/client/_nuxt/yRzYTuKL.js +2 -0
  83. package/dist/client/_nuxt/z_0T7nNf.js +1 -0
  84. package/dist/client/_nuxt/z_5JL1Zh.js +4 -0
  85. package/dist/client/index.html +35 -35
  86. package/dist/module.json +1 -1
  87. package/dist/module.mjs +1 -1
  88. package/dist/runtime/plugins/view/FrameBox.vue +26 -25
  89. package/dist/runtime/plugins/view/client.mjs +1 -5
  90. package/dist/runtime/vue-devtools/overlay.d.mts +1 -0
  91. package/dist/runtime/vue-devtools/overlay.mjs +6 -0
  92. package/dist/shared/{devtools.fc176ede.mjs → devtools.68e43ed6.mjs} +10 -0
  93. package/package.json +45 -41
  94. package/dist/client/_nuxt/CodeDiff.vue.yvGsYwMX.js +0 -3
  95. package/dist/client/_nuxt/ComposableItem.vue.T22_QMe3.js +0 -1
  96. package/dist/client/_nuxt/DataSchemaButton.vue.kfghTUAM.js +0 -1
  97. package/dist/client/_nuxt/DataSchemaDrawer.pFnTVL_R.js +0 -1000
  98. package/dist/client/_nuxt/DurationDisplay.vue.zHxKl3h_.js +0 -1
  99. package/dist/client/_nuxt/FilepathItem.vue.e1n0RyHZ.js +0 -1
  100. package/dist/client/_nuxt/HelpFab.vue.9P-8iMDH.js +0 -1
  101. package/dist/client/_nuxt/LaunchPage.vue.Mrnd5FUf.js +0 -1
  102. package/dist/client/_nuxt/NBadge.02P0N0hm.js +0 -1
  103. package/dist/client/_nuxt/NCheckbox.vue.m1__cenQ.js +0 -1
  104. package/dist/client/_nuxt/NCodeBlock.vue.D7jhLEjr.js +0 -2
  105. package/dist/client/_nuxt/NDrawer.vue.biTr62KW.js +0 -1
  106. package/dist/client/_nuxt/NDropdown.vue.sigVLPdp.js +0 -1
  107. package/dist/client/_nuxt/NIconTitle.vue.B_Ui7cce.js +0 -1
  108. package/dist/client/_nuxt/NLink.vue.Bj0qXc3J.js +0 -1
  109. package/dist/client/_nuxt/NMarkdown.vue.Ej8wmZFm.js +0 -1
  110. package/dist/client/_nuxt/NNavbar.vue.VnwEajb6.js +0 -1
  111. package/dist/client/_nuxt/NSectionBlock.vAf-kGVD.js +0 -1
  112. package/dist/client/_nuxt/NSelect.vue.zI1gfDpy.js +0 -1
  113. package/dist/client/_nuxt/NSelectTabs.vue.AydEyuDp.js +0 -1
  114. package/dist/client/_nuxt/NSwitch.vue.b9xL28U5.js +0 -1
  115. package/dist/client/_nuxt/StacktraceList.vue.K3UX7GrW.js +0 -1
  116. package/dist/client/_nuxt/StateEditor.vue.XC13TBO8.js +0 -1
  117. package/dist/client/_nuxt/__blank.4nEfHodO.js +0 -1
  118. package/dist/client/_nuxt/analyze-build.PnmanOmc.js +0 -1
  119. package/dist/client/_nuxt/assets.4NpI16LC.js +0 -16
  120. package/dist/client/_nuxt/builds/meta/6a0559dc-da71-46a5-8a3c-8d631ecd5320.json +0 -1
  121. package/dist/client/_nuxt/client.UdRQ7dYn.js +0 -1
  122. package/dist/client/_nuxt/custom-_name_.i-QCiHcq.js +0 -1
  123. package/dist/client/_nuxt/default.64CCr6pQ.js +0 -1
  124. package/dist/client/_nuxt/entry.AC_HBPW1.css +0 -1
  125. package/dist/client/_nuxt/entry.Li7bMdxw.js +0 -48
  126. package/dist/client/_nuxt/error-404.uYSk40lm.js +0 -1
  127. package/dist/client/_nuxt/error-500._o_7fJYd.js +0 -1
  128. package/dist/client/_nuxt/full.WnKVk-q6.js +0 -1
  129. package/dist/client/_nuxt/hooks.5KumR8Qp.js +0 -1
  130. package/dist/client/_nuxt/html.0DSFJ4KV.js +0 -74
  131. package/dist/client/_nuxt/imports.-jRZwNS0.js +0 -1
  132. package/dist/client/_nuxt/index.9SQHhWq3.js +0 -16
  133. package/dist/client/_nuxt/index._ARgFaAV.js +0 -1
  134. package/dist/client/_nuxt/json-editor-vue.qZEps2wJ.js +0 -105
  135. package/dist/client/_nuxt/json.t1qiHl76.js +0 -25
  136. package/dist/client/_nuxt/none.du_ft3bP.js +0 -1
  137. package/dist/client/_nuxt/overview.Vfo3spsD.js +0 -1
  138. package/dist/client/_nuxt/pages.OsyANSwf.js +0 -1
  139. package/dist/client/_nuxt/payload.LvslHyQ-.js +0 -1
  140. package/dist/client/_nuxt/plugins.-waaP_qB.js +0 -1
  141. package/dist/client/_nuxt/runtime-configs.6C1y42GJ.js +0 -1
  142. package/dist/client/_nuxt/server-routes.8nS5VL6V.js +0 -9
  143. package/dist/client/_nuxt/settings.Aj2LNb0U.js +0 -1
  144. package/dist/client/_nuxt/shellscript.h1L64xId.js +0 -4
  145. package/dist/client/_nuxt/state-components.PdQ1tKRe.js +0 -1
  146. package/dist/client/_nuxt/state-modules.ZsAhN2-A.js +0 -1
  147. package/dist/client/_nuxt/storage-options.-PhoDnIp.js +0 -1
  148. package/dist/client/_nuxt/storage.4TsT27Mw.js +0 -1
  149. package/dist/client/_nuxt/timeline.M76ZIEAr.js +0 -30
  150. package/dist/client/_nuxt/unocss-runtime.PEXBUXPL.js +0 -2
  151. package/dist/client/_nuxt/vanilla-picker-NKbIFE8h.vtyeXros.js +0 -8
  152. package/dist/client/_nuxt/virtual-files.NKByCwiv.js +0 -1
  153. package/dist/client/_nuxt/vitesse-dark.5VceXvs6.js +0 -1
  154. package/dist/client/_nuxt/vitesse-light.HOMMxGxw.js +0 -1
  155. package/dist/client/_nuxt/vue-html.KfgsLQjp.js +0 -1
  156. package/dist/client/_nuxt/yaml.FtfhlYqU.js +0 -200
  157. /package/dist/client/_nuxt/{constants.jFgWOlQV.js → BcJws1i5.js} +0 -0
  158. /package/dist/client/_nuxt/{nuxt-docs.83FO1Cbd.js → D5r6TWiw.js} +0 -0
  159. /package/dist/client/_nuxt/{diff.-l9-nN5b.js → DvyTQcux.js} +0 -0
  160. /package/dist/client/_nuxt/{HelpFab.x07F_IqA.css → HelpFab.DHTsX8io.css} +0 -0
  161. /package/dist/client/_nuxt/{NCodeBlock.XH4dGkTz.css → NCodeBlock.Bcfh0aRP.css} +0 -0
  162. /package/dist/client/_nuxt/{NSectionBlock.a3MwpCxg.css → NSectionBlock.BrczCkLG.css} +0 -0
  163. /package/dist/client/_nuxt/{assets.xk970LH3.css → assets.DGT3vQsf.css} +0 -0
  164. /package/dist/client/_nuxt/{error-404.m36D2jj-.css → error-404.CbfoPaOP.css} +0 -0
  165. /package/dist/client/_nuxt/{error-500.oAiyMzGs.css → error-500.CgCLIzMa.css} +0 -0
  166. /package/dist/client/_nuxt/{open-graph.PgUMoob_.css → open-graph.-BQyihv8.css} +0 -0
  167. /package/dist/client/_nuxt/{terminals.GzwV8rXv.css → terminals.bPBXyte9.css} +0 -0
  168. /package/dist/client/_nuxt/{timeline.7wyW2pbe.css → timeline.DvDJbalt.css} +0 -0
  169. /package/dist/client/_nuxt/{virtual-files.lmRDNyeH.css → virtual-files.CWZEM3J4.css} +0 -0
@@ -57,10 +57,8 @@ useEventListener(window, 'mousedown', (e: MouseEvent) => {
57
57
  state.value.open = false
58
58
  })
59
59
 
60
- useEventListener(window, 'mousemove', (e: MouseEvent) => {
61
- if (!isResizing.value)
62
- return
63
- if (!state.value.open)
60
+ function handleResize(e: MouseEvent | TouchEvent) {
61
+ if (!isResizing.value || !state.value.open)
64
62
  return
65
63
 
66
64
  const iframe = props.client.getIframe()
@@ -69,36 +67,31 @@ useEventListener(window, 'mousemove', (e: MouseEvent) => {
69
67
 
70
68
  const box = iframe.getBoundingClientRect()
71
69
 
70
+ let widthPx: number, heightPx: number
72
71
  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))
72
+ widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : e.touches[0].clientX - (box?.left || 0))
73
+ state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
76
74
  }
77
75
  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))
76
+ widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0].clientX))
77
+ state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
81
78
  }
82
79
 
83
80
  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))
81
+ heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0].clientY))
82
+ state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
87
83
  }
88
84
  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))
85
+ heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : e.touches[0].clientY - (box?.top || 0))
86
+ state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
92
87
  }
93
- })
94
-
95
- useEventListener(window, 'mouseup', () => {
96
- isResizing.value = false
97
- })
88
+ }
98
89
 
99
- useEventListener(window, 'mouseleave', () => {
100
- isResizing.value = false
101
- })
90
+ useEventListener(window, 'mousemove', handleResize)
91
+ useEventListener(window, 'touchmove', handleResize)
92
+ useEventListener(window, 'mouseup', () => isResizing.value = false)
93
+ useEventListener(window, 'touchend', () => isResizing.value = false)
94
+ useEventListener(window, 'mouseleave', () => isResizing.value = false)
102
95
  </script>
103
96
 
104
97
  <template>
@@ -112,49 +105,57 @@ useEventListener(window, 'mouseleave', () => {
112
105
  v-show="state.position !== 'top'"
113
106
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
114
107
  :style="{ top: 0 }"
115
- @mousedown.prevent="() => isResizing = { top: true }"
108
+ @mousedown.prevent="isResizing = { top: true }"
109
+ @touchstart="() => isResizing = { top: true }"
116
110
  />
117
111
  <div
118
112
  v-show="state.position !== 'bottom'"
119
113
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
120
114
  :style="{ bottom: 0 }"
121
115
  @mousedown.prevent="() => isResizing = { bottom: true }"
116
+ @touchstart="() => isResizing = { bottom: true }"
122
117
  />
123
118
  <div
124
119
  v-show="state.position !== 'left'"
125
120
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
126
121
  :style="{ left: 0 }"
127
122
  @mousedown.prevent="() => isResizing = { left: true }"
123
+ @touchstart="() => isResizing = { left: true }"
128
124
  />
129
125
  <div
130
126
  v-show="state.position !== 'right'"
131
127
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
132
128
  :style="{ right: 0 }"
133
129
  @mousedown.prevent="() => isResizing = { right: true }"
130
+ @touchstart="() => isResizing = { right: true }"
134
131
  />
135
132
  <div
136
133
  v-show="state.position !== 'top' && state.position !== 'left'"
137
134
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
138
135
  :style="{ top: 0, left: 0, cursor: 'nwse-resize' }"
139
136
  @mousedown.prevent="() => isResizing = { top: true, left: true }"
137
+ @touchstart="() => isResizing = { top: true, left: true }"
140
138
  />
141
139
  <div
142
140
  v-show="state.position !== 'top' && state.position !== 'right'"
143
141
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
144
142
  :style="{ top: 0, right: 0, cursor: 'nesw-resize' }"
145
143
  @mousedown.prevent="() => isResizing = { top: true, right: true }"
144
+ @touchstart="() => isResizing = { top: true, right: true }"
146
145
  />
147
146
  <div
148
147
  v-show="state.position !== 'bottom' && state.position !== 'left'"
149
148
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
150
149
  :style="{ bottom: 0, left: 0, cursor: 'nesw-resize' }"
151
150
  @mousedown.prevent="() => isResizing = { bottom: true, left: true }"
151
+ @touchstart="() => isResizing = { bottom: true, left: true }"
152
152
  />
153
153
  <div
154
154
  v-show="state.position !== 'bottom' && state.position !== 'right'"
155
155
  class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
156
156
  :style="{ bottom: 0, right: 0, cursor: 'nwse-resize' }"
157
157
  @mousedown.prevent="() => isResizing = { bottom: true, right: true }"
158
+ @touchstart="() => isResizing = { bottom: true, right: true }"
158
159
  />
159
160
  </div>
160
161
  </template>
@@ -1,4 +1,4 @@
1
- import { computed, createApp, h, markRaw, nextTick, ref, shallowReactive, shallowRef, watch } from "vue";
1
+ import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, watch } from "vue";
2
2
  import { createHooks } from "hookable";
3
3
  import { debounce } from "perfect-debounce";
4
4
  import { initTimelineMetrics } from "../../function-metrics-helpers.mjs";
@@ -45,9 +45,6 @@ export async function setupDevToolsClient({
45
45
  if (state.value.open)
46
46
  return;
47
47
  state.value.open = true;
48
- return nextTick(() => {
49
- client.syncClient();
50
- });
51
48
  },
52
49
  async navigate(path) {
53
50
  if (!state.value.open)
@@ -217,7 +214,6 @@ export async function setupDevToolsClient({
217
214
  });
218
215
  };
219
216
  }
220
- client.syncClient();
221
217
  const holder = document.createElement("div");
222
218
  holder.id = "nuxt-devtools-container";
223
219
  holder.setAttribute("data-v-inspector-ignore", "true");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { devtools } from '@vue/devtools-kit'
2
+ import { initAppSeparateWindow } from '@vue/devtools-core'
3
+
4
+ devtools.init()
5
+
6
+ initAppSeparateWindow()
@@ -51,6 +51,16 @@ const defaultTabOptions = {
51
51
  },
52
52
  sendFrom: "app"
53
53
  },
54
+ serverTasks: {
55
+ enabled: false,
56
+ selectedTask: null,
57
+ view: "list",
58
+ inputDefaults: {
59
+ query: [],
60
+ body: [],
61
+ headers: [{ active: true, key: "Content-Type", value: "application/json", type: "string" }]
62
+ }
63
+ },
54
64
  assets: {
55
65
  view: "grid"
56
66
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.1.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com",
7
7
  "repository": {
@@ -35,83 +35,87 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@antfu/utils": "^0.7.7",
38
- "@nuxt/kit": "^3.9.1",
39
- "birpc": "^0.2.14",
38
+ "@nuxt/kit": "^3.11.1",
39
+ "@vue/devtools-applet": "^7.0.19",
40
+ "@vue/devtools-core": "^7.0.19",
41
+ "@vue/devtools-kit": "^7.0.19",
42
+ "birpc": "^0.2.17",
40
43
  "consola": "^3.2.3",
41
- "destr": "^2.0.2",
44
+ "cronstrue": "^2.48.0",
45
+ "destr": "^2.0.3",
42
46
  "error-stack-parser-es": "^0.1.1",
43
47
  "execa": "^7.2.0",
44
48
  "fast-glob": "^3.3.2",
45
- "flatted": "^3.2.9",
49
+ "flatted": "^3.3.1",
46
50
  "get-port-please": "^3.1.2",
47
51
  "hookable": "^5.5.3",
48
52
  "image-meta": "^0.2.0",
49
53
  "is-installed-globally": "^1.0.0",
50
54
  "launch-editor": "^2.6.1",
51
55
  "local-pkg": "^0.5.0",
52
- "magicast": "^0.3.2",
53
- "nypm": "^0.3.4",
56
+ "magicast": "^0.3.3",
57
+ "nypm": "^0.3.8",
54
58
  "ohash": "^1.1.3",
55
- "pacote": "^17.0.5",
59
+ "pacote": "^17.0.6",
56
60
  "pathe": "^1.1.2",
57
61
  "perfect-debounce": "^1.0.0",
58
62
  "pkg-types": "^1.0.3",
59
63
  "rc9": "^2.1.1",
60
- "scule": "^1.2.0",
61
- "semver": "^7.5.4",
62
- "simple-git": "^3.22.0",
64
+ "scule": "^1.3.0",
65
+ "semver": "^7.6.0",
66
+ "simple-git": "^3.23.0",
63
67
  "sirv": "^2.0.4",
64
68
  "unimport": "^3.7.1",
65
- "vite-plugin-inspect": "^0.8.1",
69
+ "vite-plugin-inspect": "^0.8.3",
66
70
  "vite-plugin-vue-inspector": "^4.0.2",
67
71
  "which": "^3.0.1",
68
72
  "ws": "^8.16.0",
69
- "@nuxt/devtools-kit": "1.0.8",
70
- "@nuxt/devtools-wizard": "1.0.8"
73
+ "@nuxt/devtools-kit": "1.1.0",
74
+ "@nuxt/devtools-wizard": "1.1.0"
71
75
  },
72
76
  "devDependencies": {
73
77
  "@iconify-json/bxl": "^1.1.10",
74
- "@iconify-json/carbon": "^1.1.27",
78
+ "@iconify-json/carbon": "^1.1.31",
75
79
  "@iconify-json/logos": "^1.1.42",
76
- "@iconify-json/ri": "^1.1.18",
77
- "@iconify-json/simple-icons": "^1.1.87",
78
- "@iconify-json/tabler": "^1.1.103",
79
- "@nuxt/content": "^2.10.0",
80
+ "@iconify-json/ri": "^1.1.20",
81
+ "@iconify-json/simple-icons": "^1.1.96",
82
+ "@iconify-json/tabler": "^1.1.109",
83
+ "@nuxt/content": "^2.12.1",
80
84
  "@nuxt/test-utils": "3.9.0",
81
- "@nuxtjs/color-mode": "^3.3.2",
82
- "@parcel/watcher": "^2.3.0",
85
+ "@nuxtjs/color-mode": "^3.3.3",
86
+ "@parcel/watcher": "^2.4.1",
83
87
  "@types/markdown-it-link-attributes": "^3.0.4",
84
88
  "@types/ua-parser-js": "^0.7.39",
85
- "@unocss/nuxt": "^0.58.3",
86
- "@unocss/preset-icons": "^0.58.3",
87
- "@unocss/preset-uno": "^0.58.3",
88
- "@unocss/runtime": "^0.58.3",
89
- "@vitest/ui": "^1.1.3",
90
- "@vueuse/nuxt": "^10.7.1",
91
- "esno": "^4.0.0",
89
+ "@unocss/nuxt": "^0.58.6",
90
+ "@unocss/preset-icons": "^0.58.6",
91
+ "@unocss/preset-uno": "^0.58.6",
92
+ "@unocss/runtime": "^0.58.6",
93
+ "@vitest/ui": "^1.4.0",
94
+ "@vueuse/nuxt": "^10.9.0",
95
+ "esno": "^4.7.0",
92
96
  "floating-vue": "5.0.2",
93
97
  "fuse.js": "^7.0.0",
94
- "json-editor-vue": "^0.11.2",
95
- "markdown-it": "^14.0.0",
98
+ "json-editor-vue": "^0.12.0",
99
+ "markdown-it": "^14.1.0",
96
100
  "markdown-it-link-attributes": "^4.0.1",
97
- "nanoid": "^5.0.4",
98
- "nitropack": "^2.8.1",
99
- "nuxt": "^3.9.1",
101
+ "nanoid": "^5.0.6",
102
+ "nitropack": "^2.9.4",
103
+ "nuxt": "^3.11.1",
100
104
  "ofetch": "^1.3.3",
101
- "quicktype-core": "^23.0.81",
102
- "shikiji": "^0.9.18",
103
- "theme-vitesse": "^0.7.5",
105
+ "quicktype-core": "^23.0.107",
106
+ "shiki": "^1.2.0",
107
+ "theme-vitesse": "^0.7.7",
104
108
  "ua-parser-js": "^1.0.37",
105
- "unocss": "^0.58.3",
106
- "unplugin-vue-markdown": "^0.25.2",
107
- "vanilla-jsoneditor": "^0.21.2",
109
+ "unocss": "^0.58.6",
110
+ "unplugin-vue-markdown": "^0.26.0",
111
+ "vanilla-jsoneditor": "^0.23.0",
108
112
  "vis-data": "^7.1.9",
109
113
  "vis-network": "^9.1.9",
110
- "vue-tsc": "^1.8.27",
114
+ "vue-tsc": "^2.0.7",
111
115
  "vue-virtual-scroller": "2.0.0-beta.8",
112
116
  "xterm": "^5.3.0",
113
117
  "xterm-addon-fit": "^0.8.0",
114
- "@nuxt/devtools": "1.0.8"
118
+ "@nuxt/devtools": "1.1.0"
115
119
  },
116
120
  "scripts": {
117
121
  "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
@@ -1,3 +0,0 @@
1
- import{_ as R}from"./NCodeBlock.vue.D7jhLEjr.js";import{d as _,a as N,r as F,an as W,bG as A,o as B,h as J,f as V}from"./entry.Li7bMdxw.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=G(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function G(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function Z(n,e,t){return D.diff(n,e,t)}var k=new m;k.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=Z(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
2
- `);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
3
- `)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
@@ -1 +0,0 @@
1
- import{_ as I}from"./NMarkdown.vue.Ej8wmZFm.js";import{d as V,e as D,ac as U,a as c,ap as $,o as s,h as r,j as i,n as l,f as e,v as u,i as j,p as o,F as v,t as h,m as E,l as _,G as F,_ as S}from"./entry.Li7bMdxw.js";import{_ as z}from"./FilepathItem.vue.e1n0RyHZ.js";import{C as x}from"./constants.jFgWOlQV.js";const G={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},q={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(k){const t=k,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return x.nuxt[t.item.name];if(t.item.from==="vue")return x.vue[t.item.name]});return(a,p)=>{const w=I,f=S,N=z,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[j(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m),"imports-name"))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(s(),_(v,{key:0},[o("div",q,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,E(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",G,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
@@ -1 +0,0 @@
1
- import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./entry.Li7bMdxw.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};