@skaldapp/monaco-sfc 1.1.52 → 1.1.54
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/vue.worker.js +150 -70
- package/package.json +8 -8
package/dist/vue.worker.js
CHANGED
|
@@ -9870,7 +9870,7 @@ var shared_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
9870
9870
|
toTypeString: () => toTypeString
|
|
9871
9871
|
});
|
|
9872
9872
|
/**
|
|
9873
|
-
* @vue/shared v3.5.
|
|
9873
|
+
* @vue/shared v3.5.40
|
|
9874
9874
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9875
9875
|
* @license MIT
|
|
9876
9876
|
**/
|
|
@@ -10022,7 +10022,12 @@ function escapeHtml(string) {
|
|
|
10022
10022
|
return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
|
|
10023
10023
|
}
|
|
10024
10024
|
function escapeHtmlComment(src) {
|
|
10025
|
-
|
|
10025
|
+
let prev;
|
|
10026
|
+
do {
|
|
10027
|
+
prev = src;
|
|
10028
|
+
src = src.replace(commentStripRE, "");
|
|
10029
|
+
} while (src !== prev);
|
|
10030
|
+
return src;
|
|
10026
10031
|
}
|
|
10027
10032
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
10028
10033
|
return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
|
|
@@ -10258,7 +10263,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10258
10263
|
isKnownSvgAttr = /* @__PURE__ */ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);
|
|
10259
10264
|
isKnownMathMLAttr = /* @__PURE__ */ makeMap(`accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`);
|
|
10260
10265
|
escapeRE = /["'&<>]/;
|
|
10261
|
-
commentStripRE =
|
|
10266
|
+
commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
|
|
10262
10267
|
cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
10263
10268
|
isRef = (val) => {
|
|
10264
10269
|
return !!(val && val["__v_isRef"] === true);
|
|
@@ -10285,7 +10290,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10285
10290
|
//#endregion
|
|
10286
10291
|
//#region node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
|
|
10287
10292
|
/**
|
|
10288
|
-
* @vue/compiler-core v3.5.
|
|
10293
|
+
* @vue/compiler-core v3.5.40
|
|
10289
10294
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10290
10295
|
* @license MIT
|
|
10291
10296
|
**/
|
|
@@ -10688,6 +10693,7 @@ function getUnnormalizedProps(props, callPath = []) {
|
|
|
10688
10693
|
return [props, callPath];
|
|
10689
10694
|
}
|
|
10690
10695
|
function injectProp(node, prop, context) {
|
|
10696
|
+
if (node.type !== 13 && injectSlotKey(node, prop)) return;
|
|
10691
10697
|
let propsWithInjection;
|
|
10692
10698
|
let props = node.type === 13 ? node.props : node.arguments[2];
|
|
10693
10699
|
let callPath = [];
|
|
@@ -10718,6 +10724,20 @@ function injectProp(node, prop, context) {
|
|
|
10718
10724
|
else if (parentCall) parentCall.arguments[0] = propsWithInjection;
|
|
10719
10725
|
else node.arguments[2] = propsWithInjection;
|
|
10720
10726
|
}
|
|
10727
|
+
function injectSlotKey(node, prop) {
|
|
10728
|
+
var _a, _b, _c;
|
|
10729
|
+
if (prop.key.type !== 4 || prop.key.content !== "key") return false;
|
|
10730
|
+
const props = node.arguments[2];
|
|
10731
|
+
if (props && !isString$1(props)) {
|
|
10732
|
+
const [unnormalizedProps] = getUnnormalizedProps(props);
|
|
10733
|
+
if (unnormalizedProps && !isString$1(unnormalizedProps) && unnormalizedProps.type === 15 && hasProp(prop, unnormalizedProps)) return true;
|
|
10734
|
+
}
|
|
10735
|
+
(_a = node.arguments)[2] || (_a[2] = "{}");
|
|
10736
|
+
(_b = node.arguments)[3] || (_b[3] = "undefined");
|
|
10737
|
+
(_c = node.arguments)[4] || (_c[4] = "undefined");
|
|
10738
|
+
node.arguments[5] = prop.value;
|
|
10739
|
+
return true;
|
|
10740
|
+
}
|
|
10721
10741
|
function hasProp(prop, props) {
|
|
10722
10742
|
let result = false;
|
|
10723
10743
|
if (prop.key.type === 4) {
|
|
@@ -14592,7 +14612,7 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
14592
14612
|
warnDeprecation: () => warnDeprecation
|
|
14593
14613
|
});
|
|
14594
14614
|
/**
|
|
14595
|
-
* @vue/compiler-dom v3.5.
|
|
14615
|
+
* @vue/compiler-dom v3.5.40
|
|
14596
14616
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14597
14617
|
* @license MIT
|
|
14598
14618
|
**/
|
|
@@ -18062,8 +18082,11 @@ var require_elementEvents = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18062
18082
|
const scope = ctx.scope();
|
|
18063
18083
|
scope.declare("$event");
|
|
18064
18084
|
yield* ctx.generateConditionGuards();
|
|
18065
|
-
if (isSingleExpression(options.typescript, ast))
|
|
18066
|
-
|
|
18085
|
+
if (isSingleExpression(options.typescript, ast)) {
|
|
18086
|
+
yield `return (`;
|
|
18087
|
+
yield* interpolation;
|
|
18088
|
+
yield `)`;
|
|
18089
|
+
} else yield* interpolation;
|
|
18067
18090
|
yield utils_2.endOfLine;
|
|
18068
18091
|
yield* scope.end();
|
|
18069
18092
|
yield `}`;
|
|
@@ -18521,9 +18544,53 @@ var require_escaped = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18521
18544
|
//#endregion
|
|
18522
18545
|
//#region node_modules/@vue/language-core/lib/codegen/template/styleScopedClasses.js
|
|
18523
18546
|
var require_styleScopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
18547
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
18548
|
+
if (k2 === void 0) k2 = k;
|
|
18549
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18550
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
18551
|
+
enumerable: true,
|
|
18552
|
+
get: function() {
|
|
18553
|
+
return m[k];
|
|
18554
|
+
}
|
|
18555
|
+
};
|
|
18556
|
+
Object.defineProperty(o, k2, desc);
|
|
18557
|
+
}) : (function(o, m, k, k2) {
|
|
18558
|
+
if (k2 === void 0) k2 = k;
|
|
18559
|
+
o[k2] = m[k];
|
|
18560
|
+
}));
|
|
18561
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
18562
|
+
Object.defineProperty(o, "default", {
|
|
18563
|
+
enumerable: true,
|
|
18564
|
+
value: v
|
|
18565
|
+
});
|
|
18566
|
+
}) : function(o, v) {
|
|
18567
|
+
o["default"] = v;
|
|
18568
|
+
});
|
|
18569
|
+
var __importStar = exports && exports.__importStar || (function() {
|
|
18570
|
+
var ownKeys = function(o) {
|
|
18571
|
+
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
18572
|
+
var ar = [];
|
|
18573
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
18574
|
+
return ar;
|
|
18575
|
+
};
|
|
18576
|
+
return ownKeys(o);
|
|
18577
|
+
};
|
|
18578
|
+
return function(mod) {
|
|
18579
|
+
if (mod && mod.__esModule) return mod;
|
|
18580
|
+
var result = {};
|
|
18581
|
+
if (mod != null) {
|
|
18582
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
18583
|
+
}
|
|
18584
|
+
__setModuleDefault(result, mod);
|
|
18585
|
+
return result;
|
|
18586
|
+
};
|
|
18587
|
+
})();
|
|
18524
18588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18525
18589
|
exports.references = void 0;
|
|
18590
|
+
exports.generateStyleScopedClassReferences = generateStyleScopedClassReferences;
|
|
18526
18591
|
exports.generateStyleScopedClassReference = generateStyleScopedClassReference;
|
|
18592
|
+
var CompilerDOM = __importStar((init_compiler_dom_esm_bundler(), __toCommonJS(compiler_dom_esm_bundler_exports)));
|
|
18593
|
+
var shared_1 = require_shared$1();
|
|
18527
18594
|
var codeFeatures_1 = require_codeFeatures();
|
|
18528
18595
|
var names_1 = require_names();
|
|
18529
18596
|
var utils_1 = require_utils$5();
|
|
@@ -18531,6 +18598,57 @@ var require_styleScopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18531
18598
|
var escaped_1 = require_escaped();
|
|
18532
18599
|
var classNameEscapeRE = /([\\'])/;
|
|
18533
18600
|
exports.references = /* @__PURE__ */ new WeakMap();
|
|
18601
|
+
function* generateStyleScopedClassReferences({ template, typescript: ts }, node) {
|
|
18602
|
+
for (const prop of node.props) if (prop.type === CompilerDOM.NodeTypes.ATTRIBUTE && prop.name === "class" && prop.value) {
|
|
18603
|
+
const [text, start] = (0, shared_1.normalizeAttributeValue)(prop.value);
|
|
18604
|
+
for (const [className, offset] of forEachClassName(text)) yield* generateStyleScopedClassReference(template, className, start + offset);
|
|
18605
|
+
} else if (prop.type === CompilerDOM.NodeTypes.DIRECTIVE && prop.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.exp?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.arg.content === "class") {
|
|
18606
|
+
const content = "(" + prop.exp.content + ")";
|
|
18607
|
+
const startOffset = prop.exp.loc.start.offset - 1;
|
|
18608
|
+
const ast = (0, utils_1.getTypeScriptAST)(ts, template, content);
|
|
18609
|
+
const literals = [];
|
|
18610
|
+
for (const node of (0, utils_1.forEachNode)(ts, ast)) {
|
|
18611
|
+
if (!ts.isExpressionStatement(node) || !ts.isParenthesizedExpression(node.expression)) continue;
|
|
18612
|
+
const { expression } = node.expression;
|
|
18613
|
+
if (ts.isStringLiteralLike(expression)) literals.push(expression);
|
|
18614
|
+
else if (ts.isArrayLiteralExpression(expression)) yield* walkArrayLiteral(expression);
|
|
18615
|
+
else if (ts.isObjectLiteralExpression(expression)) yield* walkObjectLiteral(expression);
|
|
18616
|
+
}
|
|
18617
|
+
for (const literal of literals) {
|
|
18618
|
+
const start = literal.end - literal.text.length - 1 + startOffset;
|
|
18619
|
+
for (const [className, offset] of forEachClassName(literal.text)) yield* generateStyleScopedClassReference(template, className, start + offset);
|
|
18620
|
+
}
|
|
18621
|
+
function* walkArrayLiteral(node) {
|
|
18622
|
+
const { elements } = node;
|
|
18623
|
+
for (const element of elements) if (ts.isStringLiteralLike(element)) literals.push(element);
|
|
18624
|
+
else if (ts.isObjectLiteralExpression(element)) yield* walkObjectLiteral(element);
|
|
18625
|
+
}
|
|
18626
|
+
function* walkObjectLiteral(node) {
|
|
18627
|
+
const { properties } = node;
|
|
18628
|
+
for (const property of properties) if (ts.isPropertyAssignment(property)) {
|
|
18629
|
+
const { name } = property;
|
|
18630
|
+
if (ts.isIdentifier(name)) {
|
|
18631
|
+
const text = (0, shared_1.getNodeText)(ts, name, ast);
|
|
18632
|
+
yield* generateStyleScopedClassReference(template, text, name.end - text.length + startOffset);
|
|
18633
|
+
} else if (ts.isStringLiteral(name)) literals.push(name);
|
|
18634
|
+
else if (ts.isComputedPropertyName(name)) {
|
|
18635
|
+
const { expression } = name;
|
|
18636
|
+
if (ts.isStringLiteralLike(expression)) literals.push(expression);
|
|
18637
|
+
}
|
|
18638
|
+
} else if (ts.isShorthandPropertyAssignment(property)) {
|
|
18639
|
+
const text = (0, shared_1.getNodeText)(ts, property.name, ast);
|
|
18640
|
+
yield* generateStyleScopedClassReference(template, text, property.name.end - text.length + startOffset);
|
|
18641
|
+
}
|
|
18642
|
+
}
|
|
18643
|
+
}
|
|
18644
|
+
}
|
|
18645
|
+
function* forEachClassName(content) {
|
|
18646
|
+
let offset = 0;
|
|
18647
|
+
for (const className of content.split(" ")) {
|
|
18648
|
+
yield [className, offset];
|
|
18649
|
+
offset += className.length + 1;
|
|
18650
|
+
}
|
|
18651
|
+
}
|
|
18534
18652
|
function* generateStyleScopedClassReference(block, className, offset, fullStart = offset) {
|
|
18535
18653
|
if (!className) {
|
|
18536
18654
|
yield `/** @type {${names_1.names.StyleScopedClasses}['`;
|
|
@@ -18908,7 +19026,7 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18908
19026
|
yield `var ${restsVar} = ${names_1.names.omit}(${getPropsVar()}, {\n${propsStr}})${utils_1.endOfLine}`;
|
|
18909
19027
|
ctx.inheritedAttrVars.add(restsVar);
|
|
18910
19028
|
} else ctx.inheritedAttrVars.add(getPropsVar());
|
|
18911
|
-
yield* generateStyleScopedClassReferences(options, node);
|
|
19029
|
+
yield* (0, styleScopedClasses_1.generateStyleScopedClassReferences)(options, node);
|
|
18912
19030
|
const slotDir = node.props.find(CompilerDOM.isVSlot);
|
|
18913
19031
|
if (slotDir || node.children.length) yield* (0, vSlot_1.generateVSlot)(options, ctx, node, slotDir, getCtxVar());
|
|
18914
19032
|
if (isCtxVarUsed) yield `var ${ctxVar}!: ${names_1.names.ExtractComponentContext}<typeof ${componentVar}, typeof ${vnodeVar}>${utils_1.endOfLine}`;
|
|
@@ -18942,7 +19060,7 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18942
19060
|
}
|
|
18943
19061
|
if (ctx.singleRootNodes.has(node)) ctx.singleRootElTypes.add(`${names_1.names.Elements}['${node.tag}']`);
|
|
18944
19062
|
if (hasVBindAttrs(options, ctx, node)) ctx.inheritedAttrVars.add(`${names_1.names.intrinsics}.${node.tag}`);
|
|
18945
|
-
yield* generateStyleScopedClassReferences(options, node);
|
|
19063
|
+
yield* (0, styleScopedClasses_1.generateStyleScopedClassReferences)(options, node);
|
|
18946
19064
|
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child);
|
|
18947
19065
|
}
|
|
18948
19066
|
function* generateFragment(options, ctx, node) {
|
|
@@ -18958,57 +19076,6 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18958
19076
|
}
|
|
18959
19077
|
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child);
|
|
18960
19078
|
}
|
|
18961
|
-
function* generateStyleScopedClassReferences({ template, typescript: ts }, node) {
|
|
18962
|
-
for (const prop of node.props) if (prop.type === CompilerDOM.NodeTypes.ATTRIBUTE && prop.name === "class" && prop.value) {
|
|
18963
|
-
const [text, start] = (0, shared_2.normalizeAttributeValue)(prop.value);
|
|
18964
|
-
for (const [className, offset] of forEachClassName(text)) yield* (0, styleScopedClasses_1.generateStyleScopedClassReference)(template, className, start + offset);
|
|
18965
|
-
} else if (prop.type === CompilerDOM.NodeTypes.DIRECTIVE && prop.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.exp?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && prop.arg.content === "class") {
|
|
18966
|
-
const content = "(" + prop.exp.content + ")";
|
|
18967
|
-
const startOffset = prop.exp.loc.start.offset - 1;
|
|
18968
|
-
const ast = (0, utils_1.getTypeScriptAST)(ts, template, content);
|
|
18969
|
-
const literals = [];
|
|
18970
|
-
for (const node of (0, utils_1.forEachNode)(ts, ast)) {
|
|
18971
|
-
if (!ts.isExpressionStatement(node) || !ts.isParenthesizedExpression(node.expression)) continue;
|
|
18972
|
-
const { expression } = node.expression;
|
|
18973
|
-
if (ts.isStringLiteralLike(expression)) literals.push(expression);
|
|
18974
|
-
else if (ts.isArrayLiteralExpression(expression)) yield* walkArrayLiteral(expression);
|
|
18975
|
-
else if (ts.isObjectLiteralExpression(expression)) yield* walkObjectLiteral(expression);
|
|
18976
|
-
}
|
|
18977
|
-
for (const literal of literals) {
|
|
18978
|
-
const start = literal.end - literal.text.length - 1 + startOffset;
|
|
18979
|
-
for (const [className, offset] of forEachClassName(literal.text)) yield* (0, styleScopedClasses_1.generateStyleScopedClassReference)(template, className, start + offset);
|
|
18980
|
-
}
|
|
18981
|
-
function* walkArrayLiteral(node) {
|
|
18982
|
-
const { elements } = node;
|
|
18983
|
-
for (const element of elements) if (ts.isStringLiteralLike(element)) literals.push(element);
|
|
18984
|
-
else if (ts.isObjectLiteralExpression(element)) yield* walkObjectLiteral(element);
|
|
18985
|
-
}
|
|
18986
|
-
function* walkObjectLiteral(node) {
|
|
18987
|
-
const { properties } = node;
|
|
18988
|
-
for (const property of properties) if (ts.isPropertyAssignment(property)) {
|
|
18989
|
-
const { name } = property;
|
|
18990
|
-
if (ts.isIdentifier(name)) {
|
|
18991
|
-
const text = (0, shared_2.getNodeText)(ts, name, ast);
|
|
18992
|
-
yield* (0, styleScopedClasses_1.generateStyleScopedClassReference)(template, text, name.end - text.length + startOffset);
|
|
18993
|
-
} else if (ts.isStringLiteral(name)) literals.push(name);
|
|
18994
|
-
else if (ts.isComputedPropertyName(name)) {
|
|
18995
|
-
const { expression } = name;
|
|
18996
|
-
if (ts.isStringLiteralLike(expression)) literals.push(expression);
|
|
18997
|
-
}
|
|
18998
|
-
} else if (ts.isShorthandPropertyAssignment(property)) {
|
|
18999
|
-
const text = (0, shared_2.getNodeText)(ts, property.name, ast);
|
|
19000
|
-
yield* (0, styleScopedClasses_1.generateStyleScopedClassReference)(template, text, property.name.end - text.length + startOffset);
|
|
19001
|
-
}
|
|
19002
|
-
}
|
|
19003
|
-
}
|
|
19004
|
-
}
|
|
19005
|
-
function* forEachClassName(content) {
|
|
19006
|
-
let offset = 0;
|
|
19007
|
-
for (const className of content.split(" ")) {
|
|
19008
|
-
yield [className, offset];
|
|
19009
|
-
offset += className.length + 1;
|
|
19010
|
-
}
|
|
19011
|
-
}
|
|
19012
19079
|
function* generateFailedExpressions(options, ctx, failedPropExps) {
|
|
19013
19080
|
for (const { node, prefix, suffix } of failedPropExps) {
|
|
19014
19081
|
yield* (0, interpolation_1.generateInterpolation)(options, ctx, options.template, codeFeatures_1.codeFeatures.all, node.loc.source, node.loc.start.offset, prefix, suffix);
|
|
@@ -22606,7 +22673,7 @@ var require_modules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22606
22673
|
var names_1 = require_names();
|
|
22607
22674
|
var utils_1 = require_utils$5();
|
|
22608
22675
|
var common_1 = require_common$2();
|
|
22609
|
-
function* generateStyleModules({
|
|
22676
|
+
function* generateStyleModules({ vueCompilerOptions, styles }, ctx) {
|
|
22610
22677
|
const styleModules = styles.filter((style) => style.module);
|
|
22611
22678
|
if (!styleModules.length) return;
|
|
22612
22679
|
ctx.generatedTypes.add(names_1.names.StyleModules);
|
|
@@ -22641,23 +22708,24 @@ var require_scopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22641
22708
|
var styleScopedClasses_1 = require_styleScopedClasses();
|
|
22642
22709
|
var utils_1 = require_utils$5();
|
|
22643
22710
|
var common_1 = require_common$2();
|
|
22644
|
-
function* generateStyleScopedClasses({ vueCompilerOptions, styles }) {
|
|
22711
|
+
function* generateStyleScopedClasses({ vueCompilerOptions, styles }, ctx) {
|
|
22645
22712
|
const { resolveStyleClassNames, resolveStyleImports } = vueCompilerOptions;
|
|
22646
22713
|
if (!resolveStyleClassNames) return;
|
|
22647
22714
|
const scopedStyles = styles.filter((style) => resolveStyleClassNames === true || style.scoped);
|
|
22648
22715
|
if (!scopedStyles.length) return;
|
|
22716
|
+
ctx.generatedTypes.add(names_1.names.StyleScopedClasses);
|
|
22649
22717
|
const visited = /* @__PURE__ */ new Set();
|
|
22650
|
-
const
|
|
22718
|
+
const deferredGenerates = [];
|
|
22651
22719
|
yield `type ${names_1.names.StyleScopedClasses} = {}`;
|
|
22652
22720
|
for (const style of scopedStyles) {
|
|
22653
22721
|
if (resolveStyleImports) yield* (0, common_1.generateStyleImports)(style);
|
|
22654
22722
|
for (const className of style.classNames) if (!visited.has(className.text)) {
|
|
22655
22723
|
visited.add(className.text);
|
|
22656
22724
|
yield* (0, common_1.generateClassProperty)(style.name, className.text, className.offset, "boolean");
|
|
22657
|
-
} else
|
|
22725
|
+
} else deferredGenerates.push((0, styleScopedClasses_1.generateStyleScopedClassReference)(style, className.text.slice(1), className.offset + 1));
|
|
22658
22726
|
}
|
|
22659
22727
|
yield utils_1.endOfLine;
|
|
22660
|
-
for (const generate of
|
|
22728
|
+
for (const generate of deferredGenerates) yield* generate;
|
|
22661
22729
|
}
|
|
22662
22730
|
}));
|
|
22663
22731
|
//#endregion
|
|
@@ -22687,7 +22755,7 @@ var require_style = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22687
22755
|
function* generateWorker(options, ctx) {
|
|
22688
22756
|
const scope = ctx.scope();
|
|
22689
22757
|
scope.declare(...options.setupConsts);
|
|
22690
|
-
yield* (0, scopedClasses_1.generateStyleScopedClasses)(options);
|
|
22758
|
+
yield* (0, scopedClasses_1.generateStyleScopedClasses)(options, ctx);
|
|
22691
22759
|
yield* (0, modules_1.generateStyleModules)(options, ctx);
|
|
22692
22760
|
yield* generateCssVars(options, ctx);
|
|
22693
22761
|
yield* scope.end();
|
|
@@ -36213,7 +36281,9 @@ var init_cssNodes = __esmMin((() => {
|
|
|
36213
36281
|
return NodeType.RatioValue;
|
|
36214
36282
|
}
|
|
36215
36283
|
};
|
|
36216
|
-
_dot = ".".charCodeAt(0)
|
|
36284
|
+
_dot = ".".charCodeAt(0);
|
|
36285
|
+
_0$1 = "0".charCodeAt(0);
|
|
36286
|
+
_9$1 = "9".charCodeAt(0);
|
|
36217
36287
|
NumericValue = class extends Node$1 {
|
|
36218
36288
|
constructor(offset, length) {
|
|
36219
36289
|
super(offset, length);
|
|
@@ -115408,7 +115478,8 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
115408
115478
|
const globalKinds = /* @__PURE__ */ new Set([
|
|
115409
115479
|
"var",
|
|
115410
115480
|
"function",
|
|
115411
|
-
"module"
|
|
115481
|
+
"module",
|
|
115482
|
+
"const"
|
|
115412
115483
|
]);
|
|
115413
115484
|
const globalsOrKeywords = ts.Completions.SortText.GlobalsOrKeywords;
|
|
115414
115485
|
const sortTexts = /* @__PURE__ */ new Set([
|
|
@@ -271922,7 +271993,9 @@ var import_directiveComment = require_directiveComment();
|
|
|
271922
271993
|
var import_semantic = require_semantic();
|
|
271923
271994
|
var import_api = require_api();
|
|
271924
271995
|
init_esm();
|
|
271925
|
-
var ctime = Date.now()
|
|
271996
|
+
var ctime = Date.now();
|
|
271997
|
+
var global$1 = "skaldapp";
|
|
271998
|
+
var globalDeclarations = `declare global {
|
|
271926
271999
|
interface Window {
|
|
271927
272000
|
__vue_app__: import("vue").App;
|
|
271928
272001
|
}
|
|
@@ -271935,7 +272008,14 @@ declare module 'vue' {
|
|
|
271935
272008
|
$id: string;
|
|
271936
272009
|
}
|
|
271937
272010
|
}
|
|
271938
|
-
export {}
|
|
272011
|
+
export {};`;
|
|
272012
|
+
var mtime = ctime;
|
|
272013
|
+
var npmFileSystem = (0, import_jsdelivr.createNpmFileSystem)();
|
|
272014
|
+
var semanticPlugin = (0, import_semantic.create)(import_typescript.default);
|
|
272015
|
+
var size = globalDeclarations.length;
|
|
272016
|
+
var type = 1;
|
|
272017
|
+
var vueCompilerOptions = (0, import_language_core.getDefaultCompilerOptions)();
|
|
272018
|
+
var workspaceFolders = [URI$2.file("/")];
|
|
271939
272019
|
var asFileName = ({ path }) => path, asUri = (fileName) => URI$2.file(fileName), create = (context) => {
|
|
271940
272020
|
const pluginInstance = semanticPlugin.create(context), languageService = pluginInstance.provide["typescript/languageService"](), proxy = (0, import_common.postprocessLanguageService)(import_typescript.default, context.language, languageService, vueCompilerOptions, asUri), getCodeFixesAtPosition = proxy.getCodeFixesAtPosition.bind(proxy), getCompletionEntryDetails = proxy.getCompletionEntryDetails.bind(proxy), getCompletionsAtPosition = proxy.getCompletionsAtPosition.bind(proxy), getDefinitionAndBoundSpan = proxy.getDefinitionAndBoundSpan.bind(proxy), getQuickInfoAtPosition = proxy.getQuickInfoAtPosition.bind(proxy);
|
|
271941
272021
|
pluginInstance.provide["typescript/languageService"] = () => ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@skaldapp/monaco-sfc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.54",
|
|
5
5
|
"description": "A Monaco Editor language server for Vue Single File Components (SFC) providing syntax highlighting, IntelliSense, error detection, and more",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@remote-dom/polyfill": "^1.5.1",
|
|
55
55
|
"@volar/jsdelivr": "^2.4.28",
|
|
56
56
|
"@volar/monaco": "^2.4.28",
|
|
57
|
-
"@vue/language-core": "^3.3.
|
|
58
|
-
"@vue/language-service": "^3.3.
|
|
59
|
-
"@vue/typescript-plugin": "^3.3.
|
|
57
|
+
"@vue/language-core": "^3.3.7",
|
|
58
|
+
"@vue/language-service": "^3.3.7",
|
|
59
|
+
"@vue/typescript-plugin": "^3.3.7",
|
|
60
60
|
"monaco-editor": "0.52.2",
|
|
61
61
|
"typescript": "^6.0.3",
|
|
62
62
|
"volar-service-typescript": "^0.0.71",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
68
|
-
"@skaldapp/configs": "^1.4.
|
|
68
|
+
"@skaldapp/configs": "^1.4.8",
|
|
69
69
|
"@types/markdown-it": "^14.1.2",
|
|
70
|
-
"@types/node": "^26.1.
|
|
71
|
-
"eslint": "^10.
|
|
70
|
+
"@types/node": "^26.1.1",
|
|
71
|
+
"eslint": "^10.7.0",
|
|
72
72
|
"jsonc-parser": "^3.3.1",
|
|
73
73
|
"path-browserify": "^1.0.1",
|
|
74
|
-
"vite": "^8.1.
|
|
74
|
+
"vite": "^8.1.5"
|
|
75
75
|
}
|
|
76
76
|
}
|