@vitejs/devtools 0.0.0-alpha.26 → 0.0.0-alpha.28
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-guXN-Dg1.js → DockIcon-BfVdt_M0.js} +28 -30
- package/dist/{ViewBuiltinLogs-CSFcoXHM.js → ViewBuiltinLogs-C8wFxIxg.js} +2 -2
- package/dist/{ViewBuiltinTerminals-Cojpb-fR.js → ViewBuiltinTerminals-CrBOq_Ni.js} +609 -613
- package/dist/cli-commands.js +65 -2
- package/dist/cli.js +2 -2
- package/dist/client/inject.js +3 -3
- package/dist/client/standalone/assets/ViewBuiltinLogs-CYvdMq-7.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-C2zjH4Eh.js → ViewBuiltinTerminals-B9l9XmES.js} +3 -3
- package/dist/client/standalone/assets/index-DWC0UjCz.js +2 -0
- package/dist/client/standalone/assets/index-DzhHPm4X.css +1 -0
- package/dist/client/standalone/index.html +2 -2
- package/dist/client/webcomponents.d.ts +1447 -2
- package/dist/client/webcomponents.js +38 -56
- package/dist/dirs.js +7 -1
- package/dist/{dist-DMSdRXqd.js → dist-BpFPAu5f.js} +5 -6
- package/dist/{docks-DMCIffwx.js → docks-CYaKLVhQ.js} +1 -1
- package/dist/index.d.ts +168 -17
- package/dist/index.js +1 -1
- package/dist/plugins-BbzqUdpu.js +3038 -0
- package/dist/standalone-DVh1a9tu.js +34 -0
- package/dist/{vue.runtime.esm-bundler-fEVOOaBD.js → vue.runtime.esm-bundler-DL0i8o0W.js} +199 -189
- package/package.json +14 -15
- package/dist/cli-commands-DTrA5QU8.js +0 -97
- package/dist/client/standalone/assets/ViewBuiltinLogs-C4iyfEw1.js +0 -1
- package/dist/client/standalone/assets/index-BlqhxxEb.js +0 -2
- package/dist/client/standalone/assets/index-DR7GNsjy.css +0 -1
- package/dist/dirs-C0s1Ghvy.js +0 -9
- package/dist/index-DqO60P8I.d.ts +0 -576
- package/dist/plugins-CJzaRd9B.js +0 -2373
- /package/dist/{export-helper-Dw-qygE5.js → export-helper-DjM8b2QE.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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
3
|
|
|
4
4
|
//#region ../../node_modules/.pnpm/dompurify@3.3.1/node_modules/dompurify/dist/purify.es.mjs
|
|
5
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 */
|
|
@@ -1044,7 +1044,7 @@ function createDOMPurify() {
|
|
|
1044
1044
|
let transformCaseFunc = null;
|
|
1045
1045
|
let CONFIG = null;
|
|
1046
1046
|
const formElement = document.createElement("form");
|
|
1047
|
-
const isRegexOrFunction = function isRegexOrFunction
|
|
1047
|
+
const isRegexOrFunction = function isRegexOrFunction(testValue) {
|
|
1048
1048
|
return testValue instanceof RegExp || testValue instanceof Function;
|
|
1049
1049
|
};
|
|
1050
1050
|
/**
|
|
@@ -1052,7 +1052,7 @@ function createDOMPurify() {
|
|
|
1052
1052
|
*
|
|
1053
1053
|
* @param cfg optional config literal
|
|
1054
1054
|
*/
|
|
1055
|
-
const _parseConfig = function _parseConfig
|
|
1055
|
+
const _parseConfig = function _parseConfig() {
|
|
1056
1056
|
let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1057
1057
|
if (CONFIG && CONFIG === cfg) return;
|
|
1058
1058
|
if (!cfg || typeof cfg !== "object") cfg = {};
|
|
@@ -1169,7 +1169,7 @@ function createDOMPurify() {
|
|
|
1169
1169
|
* namespace that a spec-compliant parser would never
|
|
1170
1170
|
* return. Return true otherwise.
|
|
1171
1171
|
*/
|
|
1172
|
-
const _checkValidNamespace = function _checkValidNamespace
|
|
1172
|
+
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
1173
1173
|
let parent = getParentNode(element);
|
|
1174
1174
|
if (!parent || !parent.tagName) parent = {
|
|
1175
1175
|
namespaceURI: NAMESPACE,
|
|
@@ -1201,7 +1201,7 @@ function createDOMPurify() {
|
|
|
1201
1201
|
*
|
|
1202
1202
|
* @param node a DOM node
|
|
1203
1203
|
*/
|
|
1204
|
-
const _forceRemove = function _forceRemove
|
|
1204
|
+
const _forceRemove = function _forceRemove(node) {
|
|
1205
1205
|
arrayPush(DOMPurify.removed, { element: node });
|
|
1206
1206
|
try {
|
|
1207
1207
|
getParentNode(node).removeChild(node);
|
|
@@ -1215,7 +1215,7 @@ function createDOMPurify() {
|
|
|
1215
1215
|
* @param name an Attribute name
|
|
1216
1216
|
* @param element a DOM node
|
|
1217
1217
|
*/
|
|
1218
|
-
const _removeAttribute = function _removeAttribute
|
|
1218
|
+
const _removeAttribute = function _removeAttribute(name, element) {
|
|
1219
1219
|
try {
|
|
1220
1220
|
arrayPush(DOMPurify.removed, {
|
|
1221
1221
|
attribute: element.getAttributeNode(name),
|
|
@@ -1241,7 +1241,7 @@ function createDOMPurify() {
|
|
|
1241
1241
|
* @param dirty - a string of dirty markup
|
|
1242
1242
|
* @return a DOM, filled with the dirty markup
|
|
1243
1243
|
*/
|
|
1244
|
-
const _initDocument = function _initDocument
|
|
1244
|
+
const _initDocument = function _initDocument(dirty) {
|
|
1245
1245
|
let doc = null;
|
|
1246
1246
|
let leadingWhitespace = null;
|
|
1247
1247
|
if (FORCE_BODY) dirty = "<remove></remove>" + dirty;
|
|
@@ -1271,7 +1271,7 @@ function createDOMPurify() {
|
|
|
1271
1271
|
* @param root The root element or node to start traversing on.
|
|
1272
1272
|
* @return The created NodeIterator
|
|
1273
1273
|
*/
|
|
1274
|
-
const _createNodeIterator = function _createNodeIterator
|
|
1274
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
1275
1275
|
return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
1276
1276
|
};
|
|
1277
1277
|
/**
|
|
@@ -1280,7 +1280,7 @@ function createDOMPurify() {
|
|
|
1280
1280
|
* @param element element to check for clobbering attacks
|
|
1281
1281
|
* @return true if clobbered, false if safe
|
|
1282
1282
|
*/
|
|
1283
|
-
const _isClobbered = function _isClobbered
|
|
1283
|
+
const _isClobbered = function _isClobbered(element) {
|
|
1284
1284
|
return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
|
|
1285
1285
|
};
|
|
1286
1286
|
/**
|
|
@@ -1289,11 +1289,11 @@ function createDOMPurify() {
|
|
|
1289
1289
|
* @param value object to check whether it's a DOM node
|
|
1290
1290
|
* @return true is object is a DOM node
|
|
1291
1291
|
*/
|
|
1292
|
-
const _isNode = function _isNode
|
|
1292
|
+
const _isNode = function _isNode(value) {
|
|
1293
1293
|
return typeof Node === "function" && value instanceof Node;
|
|
1294
1294
|
};
|
|
1295
|
-
function _executeHooks(hooks
|
|
1296
|
-
arrayForEach(hooks
|
|
1295
|
+
function _executeHooks(hooks, currentNode, data) {
|
|
1296
|
+
arrayForEach(hooks, (hook) => {
|
|
1297
1297
|
hook.call(DOMPurify, currentNode, data, CONFIG);
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
@@ -1306,7 +1306,7 @@ function createDOMPurify() {
|
|
|
1306
1306
|
* @param currentNode to check for permission to exist
|
|
1307
1307
|
* @return true if node was killed, false if left alive
|
|
1308
1308
|
*/
|
|
1309
|
-
const _sanitizeElements = function _sanitizeElements
|
|
1309
|
+
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
1310
1310
|
let content = null;
|
|
1311
1311
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
1312
1312
|
if (_isClobbered(currentNode)) {
|
|
@@ -1383,7 +1383,7 @@ function createDOMPurify() {
|
|
|
1383
1383
|
* @param value Attribute value.
|
|
1384
1384
|
* @return Returns true if `value` is valid, otherwise false.
|
|
1385
1385
|
*/
|
|
1386
|
-
const _isValidAttribute = function _isValidAttribute
|
|
1386
|
+
const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
|
|
1387
1387
|
if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document || value in formElement)) return false;
|
|
1388
1388
|
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName));
|
|
1389
1389
|
else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName));
|
|
@@ -1405,7 +1405,7 @@ function createDOMPurify() {
|
|
|
1405
1405
|
* @param tagName name of the tag of the node to sanitize
|
|
1406
1406
|
* @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
1407
1407
|
*/
|
|
1408
|
-
const _isBasicCustomElement = function _isBasicCustomElement
|
|
1408
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
1409
1409
|
return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT);
|
|
1410
1410
|
};
|
|
1411
1411
|
/**
|
|
@@ -1418,7 +1418,7 @@ function createDOMPurify() {
|
|
|
1418
1418
|
*
|
|
1419
1419
|
* @param currentNode to sanitize
|
|
1420
1420
|
*/
|
|
1421
|
-
const _sanitizeAttributes = function _sanitizeAttributes
|
|
1421
|
+
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
1422
1422
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
1423
1423
|
const { attributes } = currentNode;
|
|
1424
1424
|
if (!attributes || _isClobbered(currentNode)) return;
|
|
@@ -1499,7 +1499,7 @@ function createDOMPurify() {
|
|
|
1499
1499
|
*
|
|
1500
1500
|
* @param fragment to iterate over recursively
|
|
1501
1501
|
*/
|
|
1502
|
-
const _sanitizeShadowDOM = function _sanitizeShadowDOM
|
|
1502
|
+
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
1503
1503
|
let shadowNode = null;
|
|
1504
1504
|
const shadowIterator = _createNodeIterator(fragment);
|
|
1505
1505
|
_executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
|
|
@@ -1507,7 +1507,7 @@ function createDOMPurify() {
|
|
|
1507
1507
|
_executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
|
|
1508
1508
|
_sanitizeElements(shadowNode);
|
|
1509
1509
|
_sanitizeAttributes(shadowNode);
|
|
1510
|
-
if (shadowNode.content instanceof DocumentFragment) _sanitizeShadowDOM
|
|
1510
|
+
if (shadowNode.content instanceof DocumentFragment) _sanitizeShadowDOM(shadowNode.content);
|
|
1511
1511
|
}
|
|
1512
1512
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
1513
1513
|
};
|
|
@@ -1610,16 +1610,16 @@ const purify = purify$1();
|
|
|
1610
1610
|
async function getIconifySvg(collection, icon) {
|
|
1611
1611
|
const id = `${collection}:${icon}`;
|
|
1612
1612
|
if (getIconifySvgMap.has(id)) return getIconifySvgMap.get(id);
|
|
1613
|
-
const promise = _get().then((svg
|
|
1614
|
-
getIconifySvgMap.set(id, svg
|
|
1615
|
-
return svg
|
|
1613
|
+
const promise = _get().then((svg) => {
|
|
1614
|
+
getIconifySvgMap.set(id, svg);
|
|
1615
|
+
return svg;
|
|
1616
1616
|
});
|
|
1617
1617
|
getIconifySvgMap.set(id, promise);
|
|
1618
1618
|
return promise;
|
|
1619
1619
|
async function _get() {
|
|
1620
1620
|
const url = `https://api.iconify.design/${collection}/${icon}.svg?color=currentColor&width=100%`;
|
|
1621
|
-
const svg
|
|
1622
|
-
return purify.sanitize(svg
|
|
1621
|
+
const svg = await fetch(url).then((res) => res.text());
|
|
1622
|
+
return purify.sanitize(svg);
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
@@ -1663,7 +1663,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1663
1663
|
};
|
|
1664
1664
|
}
|
|
1665
1665
|
});
|
|
1666
|
-
var IconifyIcon_default = _sfc_main$2;
|
|
1667
1666
|
|
|
1668
1667
|
//#endregion
|
|
1669
1668
|
//#region src/client/webcomponents/components/icons/VitePlusCore.vue
|
|
@@ -1697,15 +1696,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1697
1696
|
return props.icon;
|
|
1698
1697
|
});
|
|
1699
1698
|
return (_ctx, _cache) => {
|
|
1700
|
-
return icon.value.light === "builtin:vite-plus-core" ? (openBlock(), createBlock(VitePlusCore_default, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [icon.value.light === icon.value.dark ? (openBlock(), createBlock(
|
|
1699
|
+
return icon.value.light === "builtin:vite-plus-core" ? (openBlock(), createBlock(VitePlusCore_default, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [icon.value.light === icon.value.dark ? (openBlock(), createBlock(_sfc_main$2, {
|
|
1701
1700
|
key: 0,
|
|
1702
1701
|
icon: icon.value.light,
|
|
1703
1702
|
title: __props.title
|
|
1704
|
-
}, null, 8, ["icon", "title"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(
|
|
1703
|
+
}, null, 8, ["icon", "title"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$2, {
|
|
1705
1704
|
class: "dark-hidden",
|
|
1706
1705
|
icon: icon.value.light,
|
|
1707
1706
|
title: __props.title
|
|
1708
|
-
}, null, 8, ["icon", "title"]), createVNode(
|
|
1707
|
+
}, null, 8, ["icon", "title"]), createVNode(_sfc_main$2, {
|
|
1709
1708
|
class: "light-hidden",
|
|
1710
1709
|
icon: icon.value.dark,
|
|
1711
1710
|
title: __props.title
|
|
@@ -1713,7 +1712,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1713
1712
|
};
|
|
1714
1713
|
}
|
|
1715
1714
|
});
|
|
1716
|
-
var DockIcon_default = _sfc_main;
|
|
1717
1715
|
|
|
1718
1716
|
//#endregion
|
|
1719
|
-
export { VitePlusCore_default as n,
|
|
1717
|
+
export { VitePlusCore_default as n, _sfc_main as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as createElementBlock, w as openBlock } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as export_helper_default } from "./export-helper-
|
|
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
3
|
|
|
4
4
|
//#region src/client/webcomponents/components/ViewBuiltinLogs.vue
|
|
5
5
|
const _sfc_main = {};
|