@vitejs/devtools 0.0.0-alpha.31 → 0.0.0-alpha.33

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 (29) hide show
  1. package/dist/{DockIcon-BfVdt_M0.js → DockIcon-BxTh1m5v.js} +11 -14
  2. package/dist/{ViewBuiltinLogs-C8wFxIxg.js → ViewBuiltinLogs-BwyIDX5w.js} +3 -5
  3. package/dist/{ViewBuiltinTerminals-CrBOq_Ni.js → ViewBuiltinTerminals-yFL0jGW0.js} +5 -11
  4. package/dist/cli-commands-BRi5CDUR.js +94 -0
  5. package/dist/cli-commands.js +3 -67
  6. package/dist/cli.js +3 -5
  7. package/dist/client/inject.js +6 -9
  8. package/dist/client/standalone/assets/ViewBuiltinLogs-B6YocKEt.js +1 -0
  9. package/dist/client/standalone/assets/{ViewBuiltinTerminals-B9l9XmES.js → ViewBuiltinTerminals-BoJR1xWn.js} +2 -2
  10. package/dist/client/standalone/assets/_plugin-vue_export-helper-DCOpKI5t.js +1 -0
  11. package/dist/client/standalone/assets/index-7t5UlDkF.css +1 -0
  12. package/dist/client/standalone/assets/index-BmL7atlP.js +3 -0
  13. package/dist/client/standalone/index.html +3 -2
  14. package/dist/client/webcomponents.d.ts +4 -4
  15. package/dist/client/webcomponents.js +163 -80
  16. package/dist/config.js +1 -3
  17. package/dist/dirs.js +1 -3
  18. package/dist/{dist-BpFPAu5f.js → dist-C5wFunwn.js} +11 -50
  19. package/dist/{docks-CYaKLVhQ.js → docks-YFmtkjZj.js} +2 -6
  20. package/dist/{export-helper-DjM8b2QE.js → export-helper-C1Zyf6xf.js} +1 -2
  21. package/dist/index.js +2 -3
  22. package/dist/plugins-C3h3TsXX.js +1870 -0
  23. package/dist/{vue.runtime.esm-bundler-DL0i8o0W.js → vue.runtime.esm-bundler-DL9ItCI-.js} +141 -117
  24. package/package.json +16 -16
  25. package/dist/client/standalone/assets/ViewBuiltinLogs-CYvdMq-7.js +0 -1
  26. package/dist/client/standalone/assets/index-DWC0UjCz.js +0 -2
  27. package/dist/client/standalone/assets/index-DzhHPm4X.css +0 -1
  28. package/dist/plugins-BbzqUdpu.js +0 -3038
  29. package/dist/standalone-DVh1a9tu.js +0 -34
@@ -1,8 +1,7 @@
1
- import { R as ref, a as Fragment, d as createElementBlock, f as createStaticVNode, g as defineComponent, k as watchEffect, l as createBlock, m as createVNode, s as computed, w as openBlock } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
2
- import { t as export_helper_default } from "./export-helper-DjM8b2QE.js";
3
-
4
- //#region ../../node_modules/.pnpm/dompurify@3.3.1/node_modules/dompurify/dist/purify.es.mjs
5
- /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
1
+ import { R as ref, a as Fragment, d as createElementBlock, f as createStaticVNode, g as defineComponent, k as watchEffect, l as createBlock, m as createVNode, s as computed, w as openBlock } from "./vue.runtime.esm-bundler-DL9ItCI-.js";
2
+ import { t as export_helper_default } from "./export-helper-C1Zyf6xf.js";
3
+ //#region ../../node_modules/.pnpm/dompurify@3.3.2/node_modules/dompurify/dist/purify.es.mjs
4
+ /*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */
6
5
  const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object;
7
6
  let { freeze, seal, create } = Object;
8
7
  let { apply, construct } = typeof Reflect !== "undefined" && Reflect;
@@ -854,7 +853,7 @@ const _createHooksMap = function _createHooksMap() {
854
853
  function createDOMPurify() {
855
854
  let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
856
855
  const DOMPurify = (root) => createDOMPurify(root);
857
- DOMPurify.version = "3.3.1";
856
+ DOMPurify.version = "3.3.2";
858
857
  DOMPurify.removed = [];
859
858
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
860
859
  DOMPurify.isSupported = false;
@@ -1095,7 +1094,7 @@ function createDOMPurify() {
1095
1094
  if (RETURN_DOM_FRAGMENT) RETURN_DOM = true;
1096
1095
  if (USE_PROFILES) {
1097
1096
  ALLOWED_TAGS = addToSet({}, text);
1098
- ALLOWED_ATTR = [];
1097
+ ALLOWED_ATTR = create(null);
1099
1098
  if (USE_PROFILES.html === true) {
1100
1099
  addToSet(ALLOWED_TAGS, html$1);
1101
1100
  addToSet(ALLOWED_ATTR, html);
@@ -1116,6 +1115,8 @@ function createDOMPurify() {
1116
1115
  addToSet(ALLOWED_ATTR, xml);
1117
1116
  }
1118
1117
  }
1118
+ if (!objectHasOwnProperty(cfg, "ADD_TAGS")) EXTRA_ELEMENT_HANDLING.tagCheck = null;
1119
+ if (!objectHasOwnProperty(cfg, "ADD_ATTR")) EXTRA_ELEMENT_HANDLING.attributeCheck = null;
1119
1120
  if (cfg.ADD_TAGS) if (typeof cfg.ADD_TAGS === "function") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
1120
1121
  else {
1121
1122
  if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);
@@ -1384,6 +1385,7 @@ function createDOMPurify() {
1384
1385
  * @return Returns true if `value` is valid, otherwise false.
1385
1386
  */
1386
1387
  const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
1388
+ if (FORBID_ATTR[lcName]) return false;
1387
1389
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
1388
1390
  if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName));
1389
1391
  else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName));
@@ -1445,7 +1447,7 @@ function createDOMPurify() {
1445
1447
  _removeAttribute(name, currentNode);
1446
1448
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
1447
1449
  }
1448
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
1450
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
1449
1451
  _removeAttribute(name, currentNode);
1450
1452
  continue;
1451
1453
  }
@@ -1602,7 +1604,6 @@ function createDOMPurify() {
1602
1604
  return DOMPurify;
1603
1605
  }
1604
1606
  var purify$1 = createDOMPurify();
1605
-
1606
1607
  //#endregion
1607
1608
  //#region src/client/webcomponents/utils/iconify.ts
1608
1609
  const getIconifySvgMap = /* @__PURE__ */ new Map();
@@ -1622,7 +1623,6 @@ async function getIconifySvg(collection, icon) {
1622
1623
  return purify.sanitize(svg);
1623
1624
  }
1624
1625
  }
1625
-
1626
1626
  //#endregion
1627
1627
  //#region src/client/webcomponents/components/IconifyIcon.vue
1628
1628
  const _hoisted_1$2 = ["innerHTML"];
@@ -1663,7 +1663,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1663
1663
  };
1664
1664
  }
1665
1665
  });
1666
-
1667
1666
  //#endregion
1668
1667
  //#region src/client/webcomponents/components/icons/VitePlusCore.vue
1669
1668
  const _sfc_main$1 = {};
@@ -1676,7 +1675,6 @@ function _sfc_render(_ctx, _cache) {
1676
1675
  return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createStaticVNode("<g clip-path=\"url(#clip0_2_2)\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#6254FE\"></path><mask id=\"mask0_2_2\" style=\"mask-type:alpha;\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"1\" width=\"22\" height=\"20\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#833BFF\"></path></mask><g mask=\"url(#mask0_2_2)\"><g filter=\"url(#filter0_f_2_2)\"><path d=\"M11.4271 17.1119C11.4313 18.412 8.62134 19.475 5.1508 19.4863C1.68026 19.4975 -1.13659 18.4528 -1.14081 17.1527C-1.14503 15.8526 1.66497 14.7896 5.13551 14.7783C8.60605 14.767 11.4229 15.8118 11.4271 17.1119Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter1_f_2_2)\"><path d=\"M9.48364 9.06048C9.49161 11.5148 3.78614 13.523 -3.25987 13.5459C-10.3059 13.5688 -16.0243 11.5977 -16.0322 9.14332C-16.0402 6.68898 -10.3347 4.6808 -3.28872 4.65792C3.75729 4.63505 9.47567 6.60614 9.48364 9.06048Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter2_f_2_2)\"><path d=\"M9.53104 8.43813C9.53526 9.7382 3.70543 10.8111 -3.49025 10.8344C-10.6859 10.8578 -16.5226 9.82279 -16.5268 8.52272C-16.531 7.22265 -10.7012 6.1498 -3.50554 6.12644C3.69014 6.10308 9.52682 7.13806 9.53104 8.43813Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter3_f_2_2)\"><path d=\"M11.5916 16.1293C11.5958 17.4293 5.74448 18.5022 -1.47775 18.5256C-8.69997 18.549 -14.5582 17.5141 -14.5624 16.214C-14.5666 14.9139 -8.71523 13.841 -1.493 13.8176C5.72923 13.7942 11.5874 14.8292 11.5916 16.1293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter4_f_2_2)\"><path d=\"M12.2473 16.6206C12.2515 17.9206 6.40021 18.9935 -0.821978 19.017C-8.04417 19.0404 -13.9023 18.0055 -13.9066 16.7055C-13.9108 15.4054 -8.05945 14.3325 -0.837261 14.309C6.38493 14.2856 12.2431 15.3205 12.2473 16.6206Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter5_f_2_2)\"><path d=\"M14.047 5.7039C14.2411 2.38813 18.6158 -0.0529585 23.8183 0.251568C29.0207 0.556095 33.0808 3.49092 32.8867 6.80669C32.6926 10.1225 28.3179 12.5635 23.1154 12.259C17.913 11.9545 13.8529 9.01966 14.047 5.7039Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter6_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter7_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter8_f_2_2)\"><path d=\"M-6.98848 14.7616C-6.18615 15.4233 -1.99229 11.6626 2.37876 6.362C6.74982 1.06138 9.64283 -3.77199 8.84049 -4.43362C8.03816 -5.09525 3.8443 -1.3346 -0.526755 3.96602C-4.89781 9.26665 -7.79082 14.1 -6.98848 14.7616Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter9_f_2_2)\"><path d=\"M13.4305 8.5449C14.2512 9.18361 18.3372 5.30605 22.5568 -0.115883C26.7764 -5.53781 29.5318 -10.4509 28.7111 -11.0896C27.8904 -11.7284 23.8044 -7.8508 19.5848 -2.42887C15.3651 2.99306 12.6098 7.90619 13.4305 8.5449Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter10_f_2_2)\"><path d=\"M14.9501 9.73878C16.4926 10.9392 19.2111 10.026 21.0221 7.69897C22.8331 5.37198 23.0507 2.51245 21.5083 1.31202C19.9658 0.111596 17.2473 1.02485 15.4363 3.35184C13.6253 5.67882 13.4077 8.53835 14.9501 9.73878Z\" fill=\"#2BFDD2\"></path></g><g filter=\"url(#filter11_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter12_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter13_f_2_2)\"><path d=\"M8.26366 23.8563C9.13579 24.535 13.2635 20.6899 17.4831 15.268C21.7028 9.84604 24.4165 4.90047 23.5443 4.22173C22.6722 3.54299 18.5445 7.38811 14.3249 12.81C10.1052 18.232 7.39153 23.1775 8.26366 23.8563Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter14_f_2_2)\"><path d=\"M12.2866 22.5389C13.7846 23.7047 17.4746 21.4689 20.5284 17.5449C23.5822 13.621 24.8434 9.49495 23.3454 8.32912C21.8474 7.16329 18.1574 9.39917 15.1036 13.3231C12.0498 17.247 10.7886 21.3731 12.2866 22.5389Z\" fill=\"#2BFDD2\"></path></g></g></g><defs><filter id=\"filter0_f_2_2\" x=\"-7.68682\" y=\"8.2322\" width=\"25.6599\" height=\"17.8002\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter1_f_2_2\" x=\"-22.5782\" y=\"-1.88827\" width=\"38.6079\" height=\"21.9804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter2_f_2_2\" x=\"-20.4548\" y=\"2.19805\" width=\"33.9139\" height=\"12.5647\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter3_f_2_2\" x=\"-18.4904\" y=\"9.88925\" width=\"34.01\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter4_f_2_2\" x=\"-17.8346\" y=\"10.3806\" width=\"34.0099\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter5_f_2_2\" x=\"7.4943\" y=\"-6.32009\" width=\"31.9451\" height=\"25.1508\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter6_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter7_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter8_f_2_2\" x=\"-11.0501\" y=\"-8.43711\" width=\"23.9523\" height=\"27.2022\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter9_f_2_2\" x=\"9.35783\" y=\"-15.0865\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter10_f_2_2\" x=\"9.99386\" y=\"-3.14457\" width=\"16.4707\" height=\"17.3399\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter11_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter12_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter13_f_2_2\" x=\"4.17262\" y=\"0.216058\" width=\"23.4628\" height=\"27.6459\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter14_f_2_2\" x=\"7.72776\" y=\"4.09222\" width=\"20.1765\" height=\"22.6836\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><clipPath id=\"clip0_2_2\"><rect width=\"22\" height=\"22\" fill=\"white\"></rect></clipPath></defs>", 2)])]);
1677
1676
  }
1678
1677
  var VitePlusCore_default = /* @__PURE__ */ export_helper_default(_sfc_main$1, [["render", _sfc_render]]);
1679
-
1680
1678
  //#endregion
1681
1679
  //#region src/client/webcomponents/components/DockIcon.vue
1682
1680
  const _hoisted_1 = { key: 1 };
@@ -1712,6 +1710,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1712
1710
  };
1713
1711
  }
1714
1712
  });
1715
-
1716
1713
  //#endregion
1717
- export { VitePlusCore_default as n, _sfc_main as t };
1714
+ export { VitePlusCore_default as n, _sfc_main as t };
@@ -1,12 +1,10 @@
1
- import { d as createElementBlock, w as openBlock } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
2
- import { t as export_helper_default } from "./export-helper-DjM8b2QE.js";
3
-
1
+ import { d as createElementBlock, w as openBlock } from "./vue.runtime.esm-bundler-DL9ItCI-.js";
2
+ import { t as export_helper_default } from "./export-helper-C1Zyf6xf.js";
4
3
  //#region src/client/webcomponents/components/ViewBuiltinLogs.vue
5
4
  const _sfc_main = {};
6
5
  function _sfc_render(_ctx, _cache) {
7
6
  return openBlock(), createElementBlock("div", null, " Logs // TODO: ");
8
7
  }
9
8
  var ViewBuiltinLogs_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
10
-
11
9
  //#endregion
12
- export { ViewBuiltinLogs_default as default };
10
+ export { ViewBuiltinLogs_default as default };
@@ -1,7 +1,6 @@
1
- import { C as onUnmounted, I as reactive, K as toDisplayString, O as watch, P as markRaw, R as ref, S as onMounted, T as renderList, U as unref, W as normalizeClass, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, l as createBlock, m as createVNode, u as createCommentVNode, w as openBlock, x as nextTick, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
2
- import { l as watchImmediate, r as useEventListener } from "./dist-BpFPAu5f.js";
3
- import { t as _sfc_main$2 } from "./DockIcon-BfVdt_M0.js";
4
-
1
+ import { C as onUnmounted, I as reactive, K as toDisplayString, O as watch, P as markRaw, R as ref, S as onMounted, T as renderList, U as unref, W as normalizeClass, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, l as createBlock, m as createVNode, u as createCommentVNode, w as openBlock, x as nextTick, z as shallowRef } from "./vue.runtime.esm-bundler-DL9ItCI-.js";
2
+ import { l as watchImmediate, r as useEventListener } from "./dist-C5wFunwn.js";
3
+ import { t as _sfc_main$2 } from "./DockIcon-BxTh1m5v.js";
5
4
  //#region src/client/webcomponents/state/terminals.ts
6
5
  let _terminalsMap;
7
6
  function useTerminals(context) {
@@ -43,7 +42,6 @@ function useTerminals(context) {
43
42
  updateTerminals();
44
43
  return map;
45
44
  }
46
-
47
45
  //#endregion
48
46
  //#region ../../node_modules/.pnpm/@xterm+addon-fit@0.11.0/node_modules/@xterm/addon-fit/lib/addon-fit.mjs
49
47
  /**
@@ -85,7 +83,6 @@ var h = 2, _ = 1, o = class {
85
83
  };
86
84
  }
87
85
  };
88
-
89
86
  //#endregion
90
87
  //#region ../../node_modules/.pnpm/@xterm+xterm@6.0.0/node_modules/@xterm/xterm/lib/xterm.mjs
91
88
  /**
@@ -5183,7 +5180,7 @@ function ws(s, t) {
5183
5180
  if (s.start.y > s.end.y) throw new Error(`Buffer range end (${s.end.x}, ${s.end.y}) cannot be before start (${s.start.x}, ${s.start.y})`);
5184
5181
  return t * (s.end.y - s.start.y) + (s.end.x - s.start.x + 1);
5185
5182
  }
5186
- var Ds = 50, Ya = 15, ja = 50, Xa = 500, Ja = new RegExp("\xA0", "g");
5183
+ var Ds = 50, Ya = 15, ja = 50, Xa = 500, Ja = /* @__PURE__ */ new RegExp("\xA0", "g");
5187
5184
  var ei = class extends D {
5188
5185
  constructor(e, i, r, n, o, l, a, u, h) {
5189
5186
  super();
@@ -10317,7 +10314,6 @@ var Ic = ["cols", "rows"], Ue = 0, Dl = class extends D {
10317
10314
  for (Ue of t) if (Ue && (Ue === Infinity || isNaN(Ue) || Ue % 1 !== 0 || Ue < 0)) throw new Error("This API only accepts positive integers");
10318
10315
  }
10319
10316
  };
10320
-
10321
10317
  //#endregion
10322
10318
  //#region src/client/webcomponents/components/ViewBuiltinTerminalPanel.vue
10323
10319
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -10371,7 +10367,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10371
10367
  };
10372
10368
  }
10373
10369
  });
10374
-
10375
10370
  //#endregion
10376
10371
  //#region src/client/webcomponents/components/ViewBuiltinTerminals.vue
10377
10372
  const _hoisted_1 = { class: "w-full h-full grid grid-rows-[max-content_1fr]" };
@@ -10409,6 +10404,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10409
10404
  };
10410
10405
  }
10411
10406
  });
10412
-
10413
10407
  //#endregion
10414
- export { _sfc_main as default };
10408
+ export { _sfc_main as default };
@@ -0,0 +1,94 @@
1
+ import { a as ansis_default, i as createDevToolsContext, n as createDevToolsMiddleware, r as getPort, t as DevTools } from "./plugins-C3h3TsXX.js";
2
+ import { dirClientStandalone } from "./dirs.js";
3
+ import { resolveConfig } from "vite";
4
+ import { join, relative, resolve } from "pathe";
5
+ import { existsSync } from "node:fs";
6
+ import process from "node:process";
7
+ import sirv from "sirv";
8
+ import { createApp, eventHandler, fromNodeMiddleware, sendRedirect, toNodeListener } from "h3";
9
+ import fs$1 from "node:fs/promises";
10
+ import { createServer } from "node:http";
11
+ import open from "open";
12
+ //#region src/node/standalone.ts
13
+ async function startStandaloneDevTools(options = {}) {
14
+ const { cwd = process.cwd(), command = "build", mode = "production" } = options;
15
+ const resolved = await resolveConfig({
16
+ configFile: options.config,
17
+ root: cwd,
18
+ plugins: [DevTools()]
19
+ }, command, mode);
20
+ dedupeVitePlugins(resolved.plugins, (plugin) => plugin.name?.startsWith("vite:devtools"));
21
+ return {
22
+ config: resolved,
23
+ context: await createDevToolsContext(resolved)
24
+ };
25
+ }
26
+ function dedupeVitePlugins(plugins, include) {
27
+ const toDelete = [];
28
+ const map = /* @__PURE__ */ new Map();
29
+ for (let i = 0; i < plugins.length; i++) {
30
+ const plugin = plugins[i];
31
+ if (!plugin || !include(plugin)) continue;
32
+ if (map.has(plugin.name)) toDelete.push(i);
33
+ else map.set(plugin.name, plugin);
34
+ }
35
+ toDelete.sort((a, b) => b - a);
36
+ for (const i of toDelete) plugins.splice(i, 1);
37
+ return plugins;
38
+ }
39
+ //#endregion
40
+ //#region src/node/cli-commands.ts
41
+ async function start(options) {
42
+ const { host } = options;
43
+ const port = await getPort({
44
+ host,
45
+ port: options.port == null ? void 0 : +options.port,
46
+ portRange: [9999, 15e3]
47
+ });
48
+ const devtools = await startStandaloneDevTools({ cwd: options.root });
49
+ const { h3 } = await createDevToolsMiddleware({
50
+ cwd: devtools.config.root,
51
+ hostWebSocket: host,
52
+ context: devtools.context
53
+ });
54
+ const app = createApp();
55
+ for (const { baseUrl, distDir } of devtools.context.views.buildStaticDirs) app.use(baseUrl, fromNodeMiddleware(sirv(distDir, {
56
+ dev: true,
57
+ single: true
58
+ })));
59
+ app.use("/.devtools/", h3.handler);
60
+ app.use("/", eventHandler(async (event) => {
61
+ if (event.node.req.url === "/") return sendRedirect(event, "/.devtools/");
62
+ }));
63
+ createServer(toNodeListener(app)).listen(port, host, async () => {
64
+ console.log(ansis_default.green`${"⬢"} Vite DevTools started at`, ansis_default.green(`http://${host === "127.0.0.1" ? "localhost" : host}:${port}`), "\n");
65
+ if (options.open) await open(`http://${host === "127.0.0.1" ? "localhost" : host}:${port}`);
66
+ });
67
+ }
68
+ async function build(options) {
69
+ console.log(ansis_default.cyan`${"⬢"} Building static Vite DevTools...`);
70
+ const devtools = await startStandaloneDevTools({
71
+ cwd: options.root,
72
+ config: options.config
73
+ });
74
+ const outDir = resolve(devtools.config.root, options.outDir);
75
+ if (existsSync(outDir)) await fs$1.rm(outDir, { recursive: true });
76
+ const devToolsRoot = join(outDir, ".devtools");
77
+ await fs$1.mkdir(devToolsRoot, { recursive: true });
78
+ await fs$1.cp(dirClientStandalone, devToolsRoot, { recursive: true });
79
+ for (const { baseUrl, distDir } of devtools.context.views.buildStaticDirs) {
80
+ console.log(ansis_default.cyan`${"⬢"} Copying static files from ${distDir} to ${join(outDir, baseUrl)}`);
81
+ await fs$1.mkdir(join(outDir, baseUrl), { recursive: true });
82
+ await fs$1.cp(distDir, join(outDir, baseUrl), { recursive: true });
83
+ }
84
+ await fs$1.mkdir(resolve(devToolsRoot, "api"), { recursive: true });
85
+ await fs$1.writeFile(resolve(devToolsRoot, ".vdt-connection.json"), JSON.stringify({ backend: "static" }, null, 2), "utf-8");
86
+ console.log(ansis_default.cyan`${"⬢"} Writing RPC dump to ${resolve(devToolsRoot, ".vdt-rpc-dump.json")}`);
87
+ const dump = {};
88
+ for (const [key, value] of Object.entries(devtools.context.rpc.functions)) if (value.type === "static") dump[key] = await value.handler?.();
89
+ await fs$1.writeFile(resolve(devToolsRoot, ".vdt-rpc-dump.json"), JSON.stringify(dump, null, 2), "utf-8");
90
+ console.log(ansis_default.green`${"⬢"} Built to ${relative(devtools.config.root, outDir)}`);
91
+ throw new Error("[Vite DevTools] Build mode of Vite DevTools is not yet complete");
92
+ }
93
+ //#endregion
94
+ export { start as n, build as t };
@@ -1,67 +1,3 @@
1
- import { i as getPort, n as createDevToolsMiddleware, o as ansis_default, r as MARK_NODE } from "./plugins-BbzqUdpu.js";
2
- import { dirClientStandalone } from "./dirs.js";
3
- import { t as startStandaloneDevTools } from "./standalone-DVh1a9tu.js";
4
- import { join, relative, resolve } from "pathe";
5
- import { existsSync } from "node:fs";
6
- import sirv from "sirv";
7
- import { createApp, eventHandler, fromNodeMiddleware, sendRedirect, toNodeListener } from "h3";
8
- import fs$1 from "node:fs/promises";
9
- import { createServer } from "node:http";
10
- import open from "open";
11
-
12
- //#region src/node/cli-commands.ts
13
- async function start(options) {
14
- const { host } = options;
15
- const port = await getPort({
16
- host,
17
- port: options.port == null ? void 0 : +options.port,
18
- portRange: [9999, 15e3]
19
- });
20
- const devtools = await startStandaloneDevTools({ cwd: options.root });
21
- const { h3 } = await createDevToolsMiddleware({
22
- cwd: devtools.config.root,
23
- hostWebSocket: host,
24
- context: devtools.context
25
- });
26
- const app = createApp();
27
- for (const { baseUrl, distDir } of devtools.context.views.buildStaticDirs) app.use(baseUrl, fromNodeMiddleware(sirv(distDir, {
28
- dev: true,
29
- single: true
30
- })));
31
- app.use("/.devtools/", h3.handler);
32
- app.use("/", eventHandler(async (event) => {
33
- if (event.node.req.url === "/") return sendRedirect(event, "/.devtools/");
34
- }));
35
- createServer(toNodeListener(app)).listen(port, host, async () => {
36
- console.log(ansis_default.green`${MARK_NODE} Vite DevTools started at`, ansis_default.green(`http://${host === "127.0.0.1" ? "localhost" : host}:${port}`), "\n");
37
- if (options.open) await open(`http://${host === "127.0.0.1" ? "localhost" : host}:${port}`);
38
- });
39
- }
40
- async function build(options) {
41
- console.log(ansis_default.cyan`${MARK_NODE} Building static Vite DevTools...`);
42
- const devtools = await startStandaloneDevTools({
43
- cwd: options.root,
44
- config: options.config
45
- });
46
- const outDir = resolve(devtools.config.root, options.outDir);
47
- if (existsSync(outDir)) await fs$1.rm(outDir, { recursive: true });
48
- const devToolsRoot = join(outDir, ".devtools");
49
- await fs$1.mkdir(devToolsRoot, { recursive: true });
50
- await fs$1.cp(dirClientStandalone, devToolsRoot, { recursive: true });
51
- for (const { baseUrl, distDir } of devtools.context.views.buildStaticDirs) {
52
- console.log(ansis_default.cyan`${MARK_NODE} Copying static files from ${distDir} to ${join(outDir, baseUrl)}`);
53
- await fs$1.mkdir(join(outDir, baseUrl), { recursive: true });
54
- await fs$1.cp(distDir, join(outDir, baseUrl), { recursive: true });
55
- }
56
- await fs$1.mkdir(resolve(devToolsRoot, "api"), { recursive: true });
57
- await fs$1.writeFile(resolve(devToolsRoot, ".vdt-connection.json"), JSON.stringify({ backend: "static" }, null, 2), "utf-8");
58
- console.log(ansis_default.cyan`${MARK_NODE} Writing RPC dump to ${resolve(devToolsRoot, ".vdt-rpc-dump.json")}`);
59
- const dump = {};
60
- for (const [key, value] of Object.entries(devtools.context.rpc.functions)) if (value.type === "static") dump[key] = await value.handler?.();
61
- await fs$1.writeFile(resolve(devToolsRoot, ".vdt-rpc-dump.json"), JSON.stringify(dump, null, 2), "utf-8");
62
- console.log(ansis_default.green`${MARK_NODE} Built to ${relative(devtools.config.root, outDir)}`);
63
- throw new Error("[Vite DevTools] Build mode of Vite DevTools is not yet complete");
64
- }
65
-
66
- //#endregion
67
- export { build, start };
1
+ import "./plugins-C3h3TsXX.js";
2
+ import { n as start, t as build } from "./cli-commands-BRi5CDUR.js";
3
+ export { build, start };
package/dist/cli.js CHANGED
@@ -1,8 +1,7 @@
1
- import "./plugins-BbzqUdpu.js";
2
- import { build, start } from "./cli-commands.js";
1
+ import "./plugins-C3h3TsXX.js";
2
+ import { n as start, t as build } from "./cli-commands-BRi5CDUR.js";
3
3
  import process from "node:process";
4
4
  import cac from "cac";
5
-
6
5
  //#region src/node/cli.ts
7
6
  const cli = cac("vite-devtools");
8
7
  process.on("SIGINT", () => {
@@ -12,5 +11,4 @@ cli.command("build", "Build devtools with current config file for static hosting
12
11
  cli.command("", "Start devtools").option("--root <root>", "Root directory", { default: process.cwd() }).option("--config <config>", "Vite config file").option("--host <host>", "Host", { default: process.env.HOST || "127.0.0.1" }).option("--port <port>", "Port", { default: process.env.PORT || 9999 }).option("--open", "Open browser", { default: true }).action(start);
13
12
  cli.help();
14
13
  cli.parse();
15
-
16
- //#endregion
14
+ //#endregion
@@ -1,9 +1,8 @@
1
- import { I as reactive, P as markRaw, R as ref, V as toRefs, k as watchEffect, s as computed } from "../vue.runtime.esm-bundler-DL0i8o0W.js";
2
- import { i as useLocalStorage } from "../dist-BpFPAu5f.js";
3
- import { a as docksGroupByCategories, i as useDocksEntries, n as createDockEntryState, s as BUILTIN_ENTRIES, t as DEFAULT_DOCK_PANEL_STORE } from "../docks-CYaKLVhQ.js";
1
+ import { I as reactive, P as markRaw, R as ref, V as toRefs, k as watchEffect, s as computed } from "../vue.runtime.esm-bundler-DL9ItCI-.js";
2
+ import { i as useLocalStorage } from "../dist-C5wFunwn.js";
3
+ import { a as docksGroupByCategories, i as useDocksEntries, n as createDockEntryState, r as sharedStateToRef, s as BUILTIN_ENTRIES, t as DEFAULT_DOCK_PANEL_STORE } from "../docks-YFmtkjZj.js";
4
4
  import { DEFAULT_STATE_USER_SETTINGS } from "@vitejs/devtools-kit/constants";
5
5
  import { getDevToolsRpcClient } from "@vitejs/devtools-kit/client";
6
-
7
6
  //#region src/client/webcomponents/state/setup-script.ts
8
7
  function _executeSetupScript(entry, context) {
9
8
  const id = `${entry.type}:${entry.id}`;
@@ -26,7 +25,6 @@ function executeSetupScript(entry, context) {
26
25
  _setupPromises.set(entry.id, promise);
27
26
  return promise;
28
27
  }
29
-
30
28
  //#endregion
31
29
  //#region src/client/webcomponents/state/context.ts
32
30
  let _docksContext;
@@ -79,8 +77,9 @@ async function createDocksContext(clientType, rpc, panelStore) {
79
77
  return _settingsStorePromise;
80
78
  };
81
79
  const settingsStore = markRaw(await getSettingsStore());
80
+ const settings = sharedStateToRef(settingsStore);
82
81
  const groupedEntries = computed(() => {
83
- return docksGroupByCategories(dockEntries.value, settingsStore.value());
82
+ return docksGroupByCategories(dockEntries.value, settings.value);
84
83
  });
85
84
  _docksContext = reactive({
86
85
  panel: {
@@ -105,7 +104,6 @@ async function createDocksContext(clientType, rpc, panelStore) {
105
104
  });
106
105
  return _docksContext;
107
106
  }
108
-
109
107
  //#endregion
110
108
  //#region src/client/inject/index.ts
111
109
  async function init() {
@@ -125,6 +123,5 @@ async function init() {
125
123
  }
126
124
  if (window.parent !== window) console.log("[VITE DEVTOOLS] Skipping in iframe");
127
125
  else init();
128
-
129
126
  //#endregion
130
- export { init };
127
+ export { init };
@@ -0,0 +1 @@
1
+ import{b as e,l as t,t as n}from"./_plugin-vue_export-helper-DCOpKI5t.js";var r={};function i(n,r){return e(),t(`div`,null,` Logs // TODO: `)}var a=n(r,[[`render`,i]]);export{a as default};