@vitejs/devtools 0.0.0-alpha.32 → 0.0.0-alpha.34
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.
- package/dist/{DockIcon-DC06YRV1.js → DockIcon-LqhTiyo7.js} +11 -14
- package/dist/DockStandalone-D15T7P8h.js +82 -0
- package/dist/FloatingElements-DiZY-fXn.js +988 -0
- package/dist/{ViewBuiltinLogs-BpU8wNYx.js → ViewBuiltinLogs-DAC3EpNy.js} +3 -5
- package/dist/{ViewBuiltinTerminals-1w0Jz6t0.js → ViewBuiltinTerminals-CaCzY10v.js} +5 -11
- package/dist/cli-commands-B8AbW52w.js +178 -0
- package/dist/cli-commands.js +3 -67
- package/dist/cli.js +3 -5
- package/dist/client/inject.js +40 -19
- package/dist/client/standalone/assets/DockStandalone-Be2ebLC6.js +8 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-gqCacjSC.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-BfkQ4Bsj.js → ViewBuiltinTerminals-EMrVQ_he.js} +2 -2
- package/dist/client/standalone/assets/_plugin-vue_export-helper-DdUndd8v.js +1 -0
- package/dist/client/standalone/assets/index-CkMgpkZF.css +1 -0
- package/dist/client/standalone/assets/index-xigFHEkA.js +4 -0
- package/dist/client/standalone/index.html +3 -2
- package/dist/client/webcomponents.d.ts +20329 -145
- package/dist/client/webcomponents.js +79 -985
- package/dist/config.js +2 -8
- package/dist/dirs.js +1 -3
- package/dist/{dist-B1eLoAag.js → dist-CnHQWaMb.js} +11 -50
- package/dist/{export-helper-DjM8b2QE.js → export-helper-DOmNQzh6.js} +1 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -3
- package/dist/plugins-tIIgS7bh.js +1911 -0
- package/dist/popup-CqYAUdYG.js +366 -0
- package/dist/utils--qjmgani.js +6 -0
- package/dist/{vue.runtime.esm-bundler-CHmRsJSH.js → vue.runtime.esm-bundler-Bou7Nbd4.js} +135 -115
- package/package.json +34 -16
- package/dist/client/standalone/assets/ViewBuiltinLogs-D_1j1vpl.js +0 -1
- package/dist/client/standalone/assets/index-DWcF5wcd.js +0 -2
- package/dist/client/standalone/assets/index-DzhHPm4X.css +0 -1
- package/dist/docks-BVWse3rL.js +0 -131
- package/dist/plugins-CM-4geJK.js +0 -3040
- package/dist/standalone-CfUW6ZhV.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-
|
|
2
|
-
import { t as export_helper_default } from "./export-helper-
|
|
3
|
-
|
|
4
|
-
|
|
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-Bou7Nbd4.js";
|
|
2
|
+
import { t as export_helper_default } from "./export-helper-DOmNQzh6.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.
|
|
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 };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { A as withCtx, D as useTemplateRef, O as watch, P as markRaw, R as ref, U as unref, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, l as createBlock, m as createVNode, s as computed, t as defineCustomElement, u as createCommentVNode, w as openBlock } from "./vue.runtime.esm-bundler-Bou7Nbd4.js";
|
|
2
|
+
import { n as filterPopupDockEntry, r as isDockPopupEntryVisible } from "./popup-CqYAUdYG.js";
|
|
3
|
+
import { i as VitePlus_default, n as _sfc_main$3, o as PersistedDomViewsManager, r as _sfc_main$1, s as _sfc_main$2, t as _sfc_main$4, u as css_default } from "./FloatingElements-DiZY-fXn.js";
|
|
4
|
+
import "./DockIcon-LqhTiyo7.js";
|
|
5
|
+
//#region src/client/webcomponents/components/DockStandalone.vue
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "h-screen w-screen of-hidden"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "h-screen w-screen of-hidden grid cols-[max-content_1fr]"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { class: "border-r border-base flex flex-col" };
|
|
15
|
+
const _hoisted_4 = { class: "p2 border-b border-base flex" };
|
|
16
|
+
const _hoisted_5 = { class: "transition duration-200 p2" };
|
|
17
|
+
const DockStandalone = defineCustomElement(/* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "DockStandalone",
|
|
19
|
+
props: { context: {} },
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const context = __props.context;
|
|
22
|
+
const viewsContainer = useTemplateRef("viewsContainer");
|
|
23
|
+
const persistedDoms = markRaw(new PersistedDomViewsManager(viewsContainer));
|
|
24
|
+
const isRpcTrusted = ref(context.rpc.isTrusted);
|
|
25
|
+
context.rpc.events.on("rpc:is-trusted:updated", (isTrusted) => {
|
|
26
|
+
isRpcTrusted.value = isTrusted;
|
|
27
|
+
});
|
|
28
|
+
watch(() => context.docks.entries, () => {
|
|
29
|
+
context.docks.selectedId ||= context.docks.entries[0]?.id ?? null;
|
|
30
|
+
}, { immediate: true });
|
|
31
|
+
const groupedEntries = computed(() => {
|
|
32
|
+
if (isDockPopupEntryVisible()) return context.docks.groupedEntries;
|
|
33
|
+
return filterPopupDockEntry(context.docks.groupedEntries);
|
|
34
|
+
});
|
|
35
|
+
function switchEntry(id) {
|
|
36
|
+
if (id) context.docks.switchEntry(id);
|
|
37
|
+
}
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock(Fragment, null, [!isRpcTrusted.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_sfc_main$1, { context: unref(context) }, null, 8, ["context"])])) : (openBlock(), createElementBlock("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [createVNode(VitePlus_default, { class: "w-7 h-7 ma" })]), createBaseVNode("div", _hoisted_5, [createVNode(_sfc_main$2, {
|
|
40
|
+
context: unref(context),
|
|
41
|
+
groups: groupedEntries.value,
|
|
42
|
+
"is-vertical": false,
|
|
43
|
+
selected: unref(context).docks.selected,
|
|
44
|
+
onSelect: _cache[0] || (_cache[0] = (e) => switchEntry(e?.id))
|
|
45
|
+
}, {
|
|
46
|
+
separator: withCtx(() => [..._cache[1] || (_cache[1] = [createBaseVNode("div", { class: "border-base border-b w-full my-2" }, null, -1)])]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, [
|
|
49
|
+
"context",
|
|
50
|
+
"groups",
|
|
51
|
+
"selected"
|
|
52
|
+
])])]), createBaseVNode("div", null, [createBaseVNode("div", {
|
|
53
|
+
id: "vite-devtools-views-container",
|
|
54
|
+
ref_key: "viewsContainer",
|
|
55
|
+
ref: viewsContainer,
|
|
56
|
+
class: "pointer-events-auto"
|
|
57
|
+
}, null, 512), unref(context).docks.selected && viewsContainer.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
58
|
+
key: unref(context).docks.selected.id,
|
|
59
|
+
entry: unref(context).docks.selected,
|
|
60
|
+
context: unref(context),
|
|
61
|
+
"persisted-doms": unref(persistedDoms)
|
|
62
|
+
}, null, 8, [
|
|
63
|
+
"entry",
|
|
64
|
+
"context",
|
|
65
|
+
"persisted-doms"
|
|
66
|
+
])) : createCommentVNode("v-if", true)])])), createVNode(_sfc_main$4)], 64);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}), {
|
|
70
|
+
shadowRoot: true,
|
|
71
|
+
styles: [css_default, `
|
|
72
|
+
:host([data-vite-devtools-color-mode='dark']) {
|
|
73
|
+
color-scheme: dark;
|
|
74
|
+
}
|
|
75
|
+
:host([data-vite-devtools-color-mode='light']) {
|
|
76
|
+
color-scheme: light;
|
|
77
|
+
}
|
|
78
|
+
`]
|
|
79
|
+
});
|
|
80
|
+
if (!customElements.get("vite-devtools-dock-standalone")) customElements.define("vite-devtools-dock-standalone", DockStandalone);
|
|
81
|
+
//#endregion
|
|
82
|
+
export { DockStandalone };
|