@skaldapp/monaco-sfc 1.1.53 → 1.1.55
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 +169 -127
- package/package.json +6 -6
package/dist/vue.worker.js
CHANGED
|
@@ -9765,11 +9765,12 @@ var require_boundary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9765
9765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9766
9766
|
exports.Boundary = void 0;
|
|
9767
9767
|
exports.Boundary = class Boundary {
|
|
9768
|
-
constructor(source, features) {
|
|
9768
|
+
constructor(source, endOffset, features) {
|
|
9769
9769
|
this.source = source;
|
|
9770
|
+
this.endOffset = endOffset;
|
|
9770
9771
|
this.features = features;
|
|
9771
9772
|
}
|
|
9772
|
-
static *start(source,
|
|
9773
|
+
static *start(source, start, end, features) {
|
|
9773
9774
|
features = {
|
|
9774
9775
|
...features,
|
|
9775
9776
|
__combineToken: Symbol()
|
|
@@ -9777,16 +9778,16 @@ var require_boundary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9777
9778
|
yield [
|
|
9778
9779
|
``,
|
|
9779
9780
|
source,
|
|
9780
|
-
|
|
9781
|
+
start,
|
|
9781
9782
|
features
|
|
9782
9783
|
];
|
|
9783
|
-
return new Boundary(source, features);
|
|
9784
|
+
return new Boundary(source, end, features);
|
|
9784
9785
|
}
|
|
9785
|
-
end(
|
|
9786
|
+
end() {
|
|
9786
9787
|
return [
|
|
9787
9788
|
``,
|
|
9788
9789
|
this.source,
|
|
9789
|
-
|
|
9790
|
+
this.endOffset,
|
|
9790
9791
|
this.features
|
|
9791
9792
|
];
|
|
9792
9793
|
}
|
|
@@ -9870,7 +9871,7 @@ var shared_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
9870
9871
|
toTypeString: () => toTypeString
|
|
9871
9872
|
});
|
|
9872
9873
|
/**
|
|
9873
|
-
* @vue/shared v3.5.
|
|
9874
|
+
* @vue/shared v3.5.40
|
|
9874
9875
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9875
9876
|
* @license MIT
|
|
9876
9877
|
**/
|
|
@@ -10022,7 +10023,12 @@ function escapeHtml(string) {
|
|
|
10022
10023
|
return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
|
|
10023
10024
|
}
|
|
10024
10025
|
function escapeHtmlComment(src) {
|
|
10025
|
-
|
|
10026
|
+
let prev;
|
|
10027
|
+
do {
|
|
10028
|
+
prev = src;
|
|
10029
|
+
src = src.replace(commentStripRE, "");
|
|
10030
|
+
} while (src !== prev);
|
|
10031
|
+
return src;
|
|
10026
10032
|
}
|
|
10027
10033
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
10028
10034
|
return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
|
|
@@ -10258,7 +10264,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10258
10264
|
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
10265
|
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
10266
|
escapeRE = /["'&<>]/;
|
|
10261
|
-
commentStripRE =
|
|
10267
|
+
commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
|
|
10262
10268
|
cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
10263
10269
|
isRef = (val) => {
|
|
10264
10270
|
return !!(val && val["__v_isRef"] === true);
|
|
@@ -10285,7 +10291,7 @@ var init_shared_esm_bundler = __esmMin((() => {
|
|
|
10285
10291
|
//#endregion
|
|
10286
10292
|
//#region node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js
|
|
10287
10293
|
/**
|
|
10288
|
-
* @vue/compiler-core v3.5.
|
|
10294
|
+
* @vue/compiler-core v3.5.40
|
|
10289
10295
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10290
10296
|
* @license MIT
|
|
10291
10297
|
**/
|
|
@@ -10688,6 +10694,7 @@ function getUnnormalizedProps(props, callPath = []) {
|
|
|
10688
10694
|
return [props, callPath];
|
|
10689
10695
|
}
|
|
10690
10696
|
function injectProp(node, prop, context) {
|
|
10697
|
+
if (node.type !== 13 && injectSlotKey(node, prop)) return;
|
|
10691
10698
|
let propsWithInjection;
|
|
10692
10699
|
let props = node.type === 13 ? node.props : node.arguments[2];
|
|
10693
10700
|
let callPath = [];
|
|
@@ -10718,6 +10725,20 @@ function injectProp(node, prop, context) {
|
|
|
10718
10725
|
else if (parentCall) parentCall.arguments[0] = propsWithInjection;
|
|
10719
10726
|
else node.arguments[2] = propsWithInjection;
|
|
10720
10727
|
}
|
|
10728
|
+
function injectSlotKey(node, prop) {
|
|
10729
|
+
var _a, _b, _c;
|
|
10730
|
+
if (prop.key.type !== 4 || prop.key.content !== "key") return false;
|
|
10731
|
+
const props = node.arguments[2];
|
|
10732
|
+
if (props && !isString$1(props)) {
|
|
10733
|
+
const [unnormalizedProps] = getUnnormalizedProps(props);
|
|
10734
|
+
if (unnormalizedProps && !isString$1(unnormalizedProps) && unnormalizedProps.type === 15 && hasProp(prop, unnormalizedProps)) return true;
|
|
10735
|
+
}
|
|
10736
|
+
(_a = node.arguments)[2] || (_a[2] = "{}");
|
|
10737
|
+
(_b = node.arguments)[3] || (_b[3] = "undefined");
|
|
10738
|
+
(_c = node.arguments)[4] || (_c[4] = "undefined");
|
|
10739
|
+
node.arguments[5] = prop.value;
|
|
10740
|
+
return true;
|
|
10741
|
+
}
|
|
10721
10742
|
function hasProp(prop, props) {
|
|
10722
10743
|
let result = false;
|
|
10723
10744
|
if (prop.key.type === 4) {
|
|
@@ -14592,7 +14613,7 @@ var compiler_dom_esm_bundler_exports = /* @__PURE__ */ __exportAll({
|
|
|
14592
14613
|
warnDeprecation: () => warnDeprecation
|
|
14593
14614
|
});
|
|
14594
14615
|
/**
|
|
14595
|
-
* @vue/compiler-dom v3.5.
|
|
14616
|
+
* @vue/compiler-dom v3.5.40
|
|
14596
14617
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14597
14618
|
* @license MIT
|
|
14598
14619
|
**/
|
|
@@ -15178,9 +15199,9 @@ var require_context$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15178
15199
|
const info = stack.pop();
|
|
15179
15200
|
commentBuffer.length = 0;
|
|
15180
15201
|
if (info.expectError !== void 0) {
|
|
15181
|
-
const boundary = yield* boundary_1.Boundary.start("template", info.expectError.node.loc.start.offset, { verification: { shouldReport: () => info.expectError.token === 0 } });
|
|
15202
|
+
const boundary = yield* boundary_1.Boundary.start("template", info.expectError.node.loc.start.offset, info.expectError.node.loc.end.offset, { verification: { shouldReport: () => info.expectError.token === 0 } });
|
|
15182
15203
|
yield `// @ts-expect-error`;
|
|
15183
|
-
yield boundary.end(
|
|
15204
|
+
yield boundary.end();
|
|
15184
15205
|
yield `${utils_1.newLine}${utils_1.endOfLine}`;
|
|
15185
15206
|
}
|
|
15186
15207
|
}
|
|
@@ -15341,20 +15362,17 @@ var require_stringLiteralKey = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15341
15362
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15342
15363
|
exports.generateStringLiteralKey = generateStringLiteralKey;
|
|
15343
15364
|
var boundary_1 = require_boundary();
|
|
15344
|
-
function* generateStringLiteralKey(code, offset,
|
|
15345
|
-
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
|
|
15350
|
-
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
yield `'`;
|
|
15356
|
-
yield boundary.end(offset + code.length);
|
|
15357
|
-
}
|
|
15365
|
+
function* generateStringLiteralKey(code, offset, features) {
|
|
15366
|
+
const boundary = yield* boundary_1.Boundary.start("template", offset, offset + code.length, features);
|
|
15367
|
+
yield `'`;
|
|
15368
|
+
yield [
|
|
15369
|
+
code,
|
|
15370
|
+
"template",
|
|
15371
|
+
offset,
|
|
15372
|
+
boundary.features
|
|
15373
|
+
];
|
|
15374
|
+
yield `'`;
|
|
15375
|
+
yield boundary.end();
|
|
15358
15376
|
}
|
|
15359
15377
|
}));
|
|
15360
15378
|
//#endregion
|
|
@@ -15472,7 +15490,7 @@ var require_interpolation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15472
15490
|
];
|
|
15473
15491
|
yield `.value`;
|
|
15474
15492
|
} else {
|
|
15475
|
-
const boundary = yield* boundary_1.Boundary.start(block.name, start + offset, codeFeatures_1.codeFeatures.verification);
|
|
15493
|
+
const boundary = yield* boundary_1.Boundary.start(block.name, start + offset, start + offset + name.length, codeFeatures_1.codeFeatures.verification);
|
|
15476
15494
|
if (ctx.dollarVars.has(name)) yield names_1.names.dollars;
|
|
15477
15495
|
else {
|
|
15478
15496
|
ctx.accessVariable(block.name, name, start + offset);
|
|
@@ -15488,7 +15506,7 @@ var require_interpolation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15488
15506
|
__shorthandExpression: "js"
|
|
15489
15507
|
} : data
|
|
15490
15508
|
];
|
|
15491
|
-
yield boundary.end(
|
|
15509
|
+
yield boundary.end();
|
|
15492
15510
|
}
|
|
15493
15511
|
prevEnd = offset + name.length;
|
|
15494
15512
|
}
|
|
@@ -15588,11 +15606,11 @@ var require_objectProperty = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15588
15606
|
else yield* (0, interpolation_1.generateInterpolation)(options, ctx, options.template, features, code, offset);
|
|
15589
15607
|
else if (shouldCamelize) if (utils_1.identifierRE.test((0, shared_1.camelize)(code))) yield* (0, camelized_1.generateCamelized)(code, "template", offset, features);
|
|
15590
15608
|
else {
|
|
15591
|
-
const boundary = yield* boundary_1.Boundary.start("template", offset, features);
|
|
15609
|
+
const boundary = yield* boundary_1.Boundary.start("template", offset, offset + code.length, features);
|
|
15592
15610
|
yield `'`;
|
|
15593
15611
|
yield* (0, camelized_1.generateCamelized)(code, "template", offset, boundary.features);
|
|
15594
15612
|
yield `'`;
|
|
15595
|
-
yield boundary.end(
|
|
15613
|
+
yield boundary.end();
|
|
15596
15614
|
}
|
|
15597
15615
|
else if (utils_1.identifierRE.test(code)) yield [
|
|
15598
15616
|
code,
|
|
@@ -17827,9 +17845,9 @@ var require_unicode = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17827
17845
|
var boundary_1 = require_boundary();
|
|
17828
17846
|
function* generateUnicode(code, offset, features) {
|
|
17829
17847
|
if (needToUnicode(code)) {
|
|
17830
|
-
const boundary = yield* boundary_1.Boundary.start("template", offset, features);
|
|
17848
|
+
const boundary = yield* boundary_1.Boundary.start("template", offset, offset + code.length, features);
|
|
17831
17849
|
yield toUnicode(code);
|
|
17832
|
-
yield boundary.end(
|
|
17850
|
+
yield boundary.end();
|
|
17833
17851
|
} else yield [
|
|
17834
17852
|
code,
|
|
17835
17853
|
"template",
|
|
@@ -18039,17 +18057,16 @@ var require_elementEvents = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18039
18057
|
...options.vueCompilerOptions.checkUnknownEvents ? codeFeatures_1.codeFeatures.verification : codeFeatures_1.codeFeatures.doNotReportTs2353AndTs2561
|
|
18040
18058
|
};
|
|
18041
18059
|
if (directive.length) name = (0, shared_1.capitalize)(name);
|
|
18060
|
+
const boundary = yield* boundary_1.Boundary.start("template", start, start + name.length, features);
|
|
18042
18061
|
if (utils_2.identifierRE.test((0, shared_1.camelize)(name))) {
|
|
18043
|
-
const boundary = yield* boundary_1.Boundary.start("template", start, features);
|
|
18044
18062
|
yield directive;
|
|
18045
18063
|
yield* (0, camelized_1.generateCamelized)(name, "template", start, boundary.features);
|
|
18046
18064
|
} else {
|
|
18047
|
-
const boundary = yield* boundary_1.Boundary.start("template", start, features);
|
|
18048
18065
|
yield `'`;
|
|
18049
18066
|
yield directive;
|
|
18050
18067
|
yield* (0, camelized_1.generateCamelized)(name, "template", start, boundary.features);
|
|
18051
18068
|
yield `'`;
|
|
18052
|
-
yield boundary.end(
|
|
18069
|
+
yield boundary.end();
|
|
18053
18070
|
}
|
|
18054
18071
|
}
|
|
18055
18072
|
function* generateEventExpression(options, ctx, prop) {
|
|
@@ -18221,19 +18238,19 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18221
18238
|
const shouldCamelize = getShouldCamelize(options, node, prop, propName);
|
|
18222
18239
|
const features = getPropsCodeFeatures(checkUnknownProps);
|
|
18223
18240
|
if (shouldSpread) yield `...{ `;
|
|
18224
|
-
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18241
|
+
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, prop.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18225
18242
|
if (prop.arg) yield* (0, objectProperty_1.generateObjectProperty)(options, ctx, propName, prop.arg.loc.start.offset, features, shouldCamelize);
|
|
18226
18243
|
else {
|
|
18227
|
-
const boundary2 = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.withoutHighlightAndCompletion);
|
|
18244
|
+
const boundary2 = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, prop.loc.start.offset + 7, codeFeatures_1.codeFeatures.withoutHighlightAndCompletion);
|
|
18228
18245
|
yield propName;
|
|
18229
|
-
yield boundary2.end(
|
|
18246
|
+
yield boundary2.end();
|
|
18230
18247
|
}
|
|
18231
18248
|
yield `: `;
|
|
18232
18249
|
const argLoc = prop.arg?.loc ?? prop.loc;
|
|
18233
|
-
const boundary3 = yield* boundary_1.Boundary.start("template", argLoc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18250
|
+
const boundary3 = yield* boundary_1.Boundary.start("template", argLoc.start.offset, argLoc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18234
18251
|
yield* generatePropExp(options, ctx, prop, prop.exp);
|
|
18235
|
-
yield boundary3.end(
|
|
18236
|
-
yield boundary.end(
|
|
18252
|
+
yield boundary3.end();
|
|
18253
|
+
yield boundary.end();
|
|
18237
18254
|
if (shouldSpread) yield ` }`;
|
|
18238
18255
|
yield `,${utils_1.newLine}`;
|
|
18239
18256
|
if (isComponent && prop.name === "model" && prop.modifiers.length) {
|
|
@@ -18247,7 +18264,7 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18247
18264
|
const shouldCamelize = getShouldCamelize(options, node, prop, prop.name);
|
|
18248
18265
|
const features = getPropsCodeFeatures(checkUnknownProps);
|
|
18249
18266
|
if (shouldSpread) yield `...{ `;
|
|
18250
|
-
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18267
|
+
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, prop.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18251
18268
|
const prefix = options.template.content.slice(prop.loc.start.offset, prop.loc.start.offset + 1);
|
|
18252
18269
|
if (prefix === "." || prefix === "#") for (const char of prop.name) yield [
|
|
18253
18270
|
char,
|
|
@@ -18260,7 +18277,7 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18260
18277
|
if (prop.name === "style") yield `{}`;
|
|
18261
18278
|
else if (prop.value) yield* generateAttrValue(prop.value, codeFeatures_1.codeFeatures.withoutNavigation);
|
|
18262
18279
|
else yield `true`;
|
|
18263
|
-
yield boundary.end(
|
|
18280
|
+
yield boundary.end();
|
|
18264
18281
|
if (shouldSpread) yield ` }`;
|
|
18265
18282
|
yield `,${utils_1.newLine}`;
|
|
18266
18283
|
} else if (prop.name === "bind" && !prop.arg && prop.exp?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) if (prop.exp.loc.source === "$attrs") failedPropExps?.push({
|
|
@@ -18269,10 +18286,10 @@ var require_elementProps = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18269
18286
|
suffix: `)`
|
|
18270
18287
|
});
|
|
18271
18288
|
else {
|
|
18272
|
-
const boundary = yield* boundary_1.Boundary.start("template", prop.exp.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18289
|
+
const boundary = yield* boundary_1.Boundary.start("template", prop.exp.loc.start.offset, prop.exp.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18273
18290
|
yield `...`;
|
|
18274
18291
|
yield* generatePropExp(options, ctx, prop, prop.exp);
|
|
18275
|
-
yield boundary.end(
|
|
18292
|
+
yield boundary.end();
|
|
18276
18293
|
yield `,${utils_1.newLine}`;
|
|
18277
18294
|
}
|
|
18278
18295
|
}
|
|
@@ -18408,22 +18425,31 @@ var require_elementDirectives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18408
18425
|
function* generateElementDirectives(options, ctx, node) {
|
|
18409
18426
|
for (const prop of node.props) {
|
|
18410
18427
|
if (prop.type !== CompilerDOM.NodeTypes.DIRECTIVE || prop.name === "slot" || prop.name === "on" || prop.name === "model" || prop.name === "bind") continue;
|
|
18411
|
-
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18428
|
+
const boundary = yield* boundary_1.Boundary.start("template", prop.loc.start.offset, prop.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18429
|
+
if (options.isVapor && !(0, shared_1.isBuiltInDirective)(prop.name)) {
|
|
18430
|
+
yield* generateIdentifier(options, ctx, prop);
|
|
18431
|
+
yield `(null!, `;
|
|
18432
|
+
yield* generateValue(options, ctx, prop, false);
|
|
18433
|
+
yield* generateArg(options, ctx, prop, false);
|
|
18434
|
+
yield* generateModifiers(options, ctx, prop, "modifiers", false);
|
|
18435
|
+
yield `)`;
|
|
18436
|
+
} else {
|
|
18437
|
+
yield `${names_1.names.asFunctionalDirective}(`;
|
|
18438
|
+
yield* generateIdentifier(options, ctx, prop);
|
|
18439
|
+
yield `, {} as import('${options.vueCompilerOptions.lib}').ObjectDirective)(null!, { ...${names_1.names.directiveBindingRestFields}, `;
|
|
18440
|
+
yield* generateArg(options, ctx, prop);
|
|
18441
|
+
yield* generateModifiers(options, ctx, prop);
|
|
18442
|
+
yield* generateValue(options, ctx, prop);
|
|
18443
|
+
yield `}, null!, null!)`;
|
|
18444
|
+
}
|
|
18445
|
+
yield boundary.end();
|
|
18420
18446
|
yield utils_1.endOfLine;
|
|
18421
18447
|
}
|
|
18422
18448
|
}
|
|
18423
18449
|
function* generateIdentifier(options, ctx, prop) {
|
|
18424
18450
|
const rawName = "v-" + prop.name;
|
|
18425
18451
|
const startOffset = prop.loc.start.offset;
|
|
18426
|
-
const boundary = yield* boundary_1.Boundary.start("template", startOffset, codeFeatures_1.codeFeatures.verification);
|
|
18452
|
+
const boundary = yield* boundary_1.Boundary.start("template", startOffset, startOffset + rawName.length, codeFeatures_1.codeFeatures.verification);
|
|
18427
18453
|
yield names_1.names.directives;
|
|
18428
18454
|
yield `.`;
|
|
18429
18455
|
yield* (0, camelized_1.generateCamelized)(rawName, "template", prop.loc.start.offset, {
|
|
@@ -18431,43 +18457,56 @@ var require_elementDirectives = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18431
18457
|
verification: options.vueCompilerOptions.checkUnknownDirectives && !(0, shared_1.isBuiltInDirective)(prop.name)
|
|
18432
18458
|
});
|
|
18433
18459
|
if (!(0, shared_1.isBuiltInDirective)(prop.name)) ctx.accessVariable("template", (0, shared_1.camelize)(rawName), prop.loc.start.offset);
|
|
18434
|
-
yield boundary.end(
|
|
18460
|
+
yield boundary.end();
|
|
18435
18461
|
}
|
|
18436
|
-
function* generateArg(options, ctx, prop) {
|
|
18462
|
+
function* generateArg(options, ctx, prop, asBindingProperty = true) {
|
|
18437
18463
|
const { arg } = prop;
|
|
18438
|
-
if (arg?.type
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18464
|
+
if (arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) {
|
|
18465
|
+
const startOffset = arg.loc.start.offset + arg.loc.source.indexOf(arg.content);
|
|
18466
|
+
if (asBindingProperty) {
|
|
18467
|
+
const boundary = yield* boundary_1.Boundary.start("template", startOffset, startOffset + arg.content.length, codeFeatures_1.codeFeatures.verification);
|
|
18468
|
+
yield `arg`;
|
|
18469
|
+
yield boundary.end();
|
|
18470
|
+
yield `: `;
|
|
18471
|
+
}
|
|
18472
|
+
if (arg.isStatic) yield* (0, stringLiteralKey_1.generateStringLiteralKey)(arg.content, startOffset, codeFeatures_1.codeFeatures.all);
|
|
18473
|
+
else yield* (0, interpolation_1.generateInterpolation)(options, ctx, options.template, codeFeatures_1.codeFeatures.all, arg.content, startOffset, `(`, `)`);
|
|
18474
|
+
yield `, `;
|
|
18475
|
+
} else if (!asBindingProperty) yield `undefined, `;
|
|
18476
|
+
}
|
|
18477
|
+
function* generateModifiers(options, ctx, prop, propertyName = "modifiers", asBindingProperty = true) {
|
|
18449
18478
|
const { modifiers } = prop;
|
|
18450
|
-
if (
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18479
|
+
if (modifiers.length) {
|
|
18480
|
+
if (asBindingProperty) {
|
|
18481
|
+
const boundary = yield* boundary_1.Boundary.start("template", modifiers[0].loc.start.offset - 1, modifiers.at(-1).loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18482
|
+
yield propertyName;
|
|
18483
|
+
yield boundary.end();
|
|
18484
|
+
yield `: `;
|
|
18485
|
+
}
|
|
18486
|
+
yield `{ `;
|
|
18487
|
+
for (const mod of modifiers) {
|
|
18488
|
+
yield* (0, objectProperty_1.generateObjectProperty)(options, ctx, mod.content, mod.loc.start.offset, codeFeatures_1.codeFeatures.withoutHighlight);
|
|
18489
|
+
yield `: true, `;
|
|
18490
|
+
}
|
|
18491
|
+
yield `}, `;
|
|
18492
|
+
} else if (!asBindingProperty) yield `undefined, `;
|
|
18493
|
+
}
|
|
18494
|
+
function* generateValue(options, ctx, prop, asBindingProperty = true) {
|
|
18464
18495
|
const { exp } = prop;
|
|
18465
|
-
if (exp?.type
|
|
18466
|
-
|
|
18467
|
-
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18496
|
+
if (exp?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) {
|
|
18497
|
+
const boundary = yield* boundary_1.Boundary.start("template", exp.loc.start.offset, exp.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18498
|
+
if (asBindingProperty) {
|
|
18499
|
+
yield `value`;
|
|
18500
|
+
yield boundary.end();
|
|
18501
|
+
yield `: `;
|
|
18502
|
+
yield* (0, elementProps_1.generatePropExp)(options, ctx, prop, exp);
|
|
18503
|
+
} else {
|
|
18504
|
+
yield `() => `;
|
|
18505
|
+
yield* (0, elementProps_1.generatePropExp)(options, ctx, prop, exp);
|
|
18506
|
+
yield boundary.end();
|
|
18507
|
+
}
|
|
18508
|
+
yield `, `;
|
|
18509
|
+
} else if (!asBindingProperty) yield `undefined, `;
|
|
18471
18510
|
}
|
|
18472
18511
|
}));
|
|
18473
18512
|
//#endregion
|
|
@@ -18648,11 +18687,11 @@ var require_styleScopedClasses = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18648
18687
|
arr.push([className, offset]);
|
|
18649
18688
|
} else cache[1].push([className, offset]);
|
|
18650
18689
|
yield `/** @type {${names_1.names.StyleScopedClasses}[`;
|
|
18651
|
-
const boundary = yield* boundary_1.Boundary.start(block.name, fullStart, codeFeatures_1.codeFeatures.navigationAndCompletion);
|
|
18690
|
+
const boundary = yield* boundary_1.Boundary.start(block.name, fullStart, offset + className.length, codeFeatures_1.codeFeatures.navigationAndCompletion);
|
|
18652
18691
|
yield `'`;
|
|
18653
18692
|
yield* (0, escaped_1.generateEscaped)(className, block.name, offset, boundary.features, classNameEscapeRE);
|
|
18654
18693
|
yield `'`;
|
|
18655
|
-
yield boundary.end(
|
|
18694
|
+
yield boundary.end();
|
|
18656
18695
|
yield `]} */${utils_1.endOfLine}`;
|
|
18657
18696
|
}
|
|
18658
18697
|
}));
|
|
@@ -18719,15 +18758,15 @@ var require_vSlot = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18719
18758
|
yield `const { `;
|
|
18720
18759
|
if (slotDir.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && slotDir.arg.content) yield* (0, objectProperty_1.generateObjectProperty)(options, ctx, slotDir.arg.loc.source, slotDir.arg.loc.start.offset, slotDir.arg.isStatic ? codeFeatures_1.codeFeatures.withoutHighlight : codeFeatures_1.codeFeatures.all, false, true);
|
|
18721
18760
|
else {
|
|
18722
|
-
const boundary = yield* boundary_1.Boundary.start("template", slotDir.loc.start.offset, codeFeatures_1.codeFeatures.withoutHighlightAndCompletion);
|
|
18761
|
+
const boundary = yield* boundary_1.Boundary.start("template", slotDir.loc.start.offset, slotDir.loc.start.offset + (slotDir.rawName?.length ?? 0), codeFeatures_1.codeFeatures.withoutHighlightAndCompletion);
|
|
18723
18762
|
yield `default`;
|
|
18724
|
-
yield boundary.end(
|
|
18763
|
+
yield boundary.end();
|
|
18725
18764
|
}
|
|
18726
18765
|
} else {
|
|
18727
18766
|
yield `const { `;
|
|
18728
|
-
const boundary = yield* boundary_1.Boundary.start("template", node.loc.start.offset, codeFeatures_1.codeFeatures.navigation);
|
|
18767
|
+
const boundary = yield* boundary_1.Boundary.start("template", node.loc.start.offset, node.loc.end.offset, codeFeatures_1.codeFeatures.navigation);
|
|
18729
18768
|
yield `default`;
|
|
18730
|
-
yield boundary.end(
|
|
18769
|
+
yield boundary.end();
|
|
18731
18770
|
}
|
|
18732
18771
|
yield `: ${slotVar} } = ${ctxVar}.slots!${utils_1.endOfLine}`;
|
|
18733
18772
|
const scope = ctx.scope();
|
|
@@ -18778,7 +18817,7 @@ var require_vSlot = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18778
18817
|
yield `] = ${names_1.names.vSlot}(${slotVar}!`;
|
|
18779
18818
|
if (types.some((t) => t)) {
|
|
18780
18819
|
yield `, `;
|
|
18781
|
-
const boundary = yield* boundary_1.Boundary.start("template", exp.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
18820
|
+
const boundary = yield* boundary_1.Boundary.start("template", exp.loc.start.offset, exp.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
18782
18821
|
yield `(`;
|
|
18783
18822
|
yield* types.flatMap((type) => type ? [
|
|
18784
18823
|
`_`,
|
|
@@ -18786,7 +18825,7 @@ var require_vSlot = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18786
18825
|
`, `
|
|
18787
18826
|
] : `_, `);
|
|
18788
18827
|
yield `) => [] as any`;
|
|
18789
|
-
yield boundary.end(
|
|
18828
|
+
yield boundary.end();
|
|
18790
18829
|
}
|
|
18791
18830
|
yield `)${utils_1.endOfLine}`;
|
|
18792
18831
|
}
|
|
@@ -18952,14 +18991,14 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18952
18991
|
yield propsStr;
|
|
18953
18992
|
yield `}))${utils_1.endOfLine}`;
|
|
18954
18993
|
yield `const `;
|
|
18955
|
-
const boundary = yield* boundary_1.Boundary.start("template", node.loc.start.offset, codeFeatures_1.codeFeatures.doNotReportTs6133);
|
|
18994
|
+
const boundary = yield* boundary_1.Boundary.start("template", node.loc.start.offset, node.loc.end.offset, codeFeatures_1.codeFeatures.doNotReportTs6133);
|
|
18956
18995
|
yield vnodeVar;
|
|
18957
|
-
yield boundary.end(
|
|
18996
|
+
yield boundary.end();
|
|
18958
18997
|
yield ` = ${functionalVar}`;
|
|
18959
18998
|
const commentInfo = ctx.getCommentInfo();
|
|
18960
18999
|
if (commentInfo.generic) {
|
|
18961
19000
|
const { content, offset } = commentInfo.generic;
|
|
18962
|
-
const boundary = yield* boundary_1.Boundary.start("template", offset, codeFeatures_1.codeFeatures.verification);
|
|
19001
|
+
const boundary = yield* boundary_1.Boundary.start("template", offset, offset + content.length, codeFeatures_1.codeFeatures.verification);
|
|
18963
19002
|
yield `<`;
|
|
18964
19003
|
yield [
|
|
18965
19004
|
content,
|
|
@@ -18968,11 +19007,11 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18968
19007
|
codeFeatures_1.codeFeatures.all
|
|
18969
19008
|
];
|
|
18970
19009
|
yield `>`;
|
|
18971
|
-
yield boundary.end(
|
|
19010
|
+
yield boundary.end();
|
|
18972
19011
|
}
|
|
18973
19012
|
const shouldInheritAttrs = hasVBindAttrs(options, ctx, node);
|
|
18974
19013
|
yield `(`;
|
|
18975
|
-
const boundary2 = yield* boundary_1.Boundary.start("template", startTagOffset, shouldInheritAttrs && options.vueCompilerOptions.checkRequiredFallthroughAttributes ? {} : codeFeatures_1.codeFeatures.verification);
|
|
19014
|
+
const boundary2 = yield* boundary_1.Boundary.start("template", startTagOffset, startTagOffset + tag.length, shouldInheritAttrs && options.vueCompilerOptions.checkRequiredFallthroughAttributes ? {} : codeFeatures_1.codeFeatures.verification);
|
|
18976
19015
|
yield `{`;
|
|
18977
19016
|
yield [
|
|
18978
19017
|
``,
|
|
@@ -18983,7 +19022,7 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18983
19022
|
yield utils_1.newLine;
|
|
18984
19023
|
yield* propCodes;
|
|
18985
19024
|
yield `}`;
|
|
18986
|
-
yield boundary2.end(
|
|
19025
|
+
yield boundary2.end();
|
|
18987
19026
|
yield `, ...${names_1.names.functionalComponentArgsRest}(${functionalVar}))${utils_1.endOfLine}`;
|
|
18988
19027
|
yield* generateFailedExpressions(options, ctx, failedPropExps);
|
|
18989
19028
|
yield* (0, elementEvents_1.generateElementEvents)(options, ctx, node, componentVar, getCtxVar, getPropsVar);
|
|
@@ -19024,11 +19063,11 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19024
19063
|
yield* (0, propertyAccess_1.generatePropertyAccess)(options, ctx, node.tag, endTagOffset, codeFeatures_1.codeFeatures.withoutHighlightAndCompletion);
|
|
19025
19064
|
}
|
|
19026
19065
|
yield `)(`;
|
|
19027
|
-
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
19066
|
+
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, startTagOffset + node.tag.length, codeFeatures_1.codeFeatures.verification);
|
|
19028
19067
|
yield `{${utils_1.newLine}`;
|
|
19029
19068
|
yield* (0, elementProps_1.generateElementProps)(options, ctx, node, node.props, options.vueCompilerOptions.checkUnknownProps, failedPropExps);
|
|
19030
19069
|
yield `}`;
|
|
19031
|
-
yield boundary.end(
|
|
19070
|
+
yield boundary.end();
|
|
19032
19071
|
yield `)${utils_1.endOfLine}`;
|
|
19033
19072
|
yield* generateFailedExpressions(options, ctx, failedPropExps);
|
|
19034
19073
|
yield* (0, elementDirectives_1.generateElementDirectives)(options, ctx, node);
|
|
@@ -19047,11 +19086,11 @@ var require_element = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19047
19086
|
const [startTagOffset] = (0, shared_2.getElementTagOffsets)(node, options.template);
|
|
19048
19087
|
if (node.props.length) {
|
|
19049
19088
|
yield `__VLS_asFunctionalElement(__VLS_intrinsics.template)(`;
|
|
19050
|
-
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
19089
|
+
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, startTagOffset + node.tag.length, codeFeatures_1.codeFeatures.verification);
|
|
19051
19090
|
yield `{${utils_1.newLine}`;
|
|
19052
19091
|
yield* (0, elementProps_1.generateElementProps)(options, ctx, node, node.props, options.vueCompilerOptions.checkUnknownProps);
|
|
19053
19092
|
yield `}`;
|
|
19054
|
-
yield boundary.end(
|
|
19093
|
+
yield boundary.end();
|
|
19055
19094
|
yield `)${utils_1.endOfLine}`;
|
|
19056
19095
|
}
|
|
19057
19096
|
for (const child of node.children) yield* (0, templateChild_1.generateTemplateChild)(options, ctx, child);
|
|
@@ -19147,25 +19186,25 @@ var require_slotOutlet = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19147
19186
|
`]`
|
|
19148
19187
|
];
|
|
19149
19188
|
else codes = [`['default']`];
|
|
19150
|
-
const boundary = yield* boundary_1.Boundary.start("template", nameProp.loc.start.offset, codeFeatures_1.codeFeatures.verification);
|
|
19189
|
+
const boundary = yield* boundary_1.Boundary.start("template", nameProp.loc.start.offset, nameProp.loc.end.offset, codeFeatures_1.codeFeatures.verification);
|
|
19151
19190
|
yield options.slotsAssignName ?? names_1.names.slots;
|
|
19152
19191
|
yield* codes;
|
|
19153
|
-
yield boundary.end(
|
|
19192
|
+
yield boundary.end();
|
|
19154
19193
|
} else {
|
|
19155
|
-
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
19194
|
+
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, startTagEndOffset, codeFeatures_1.codeFeatures.verification);
|
|
19156
19195
|
yield `${options.slotsAssignName ?? names_1.names.slots}[`;
|
|
19157
|
-
const boundary2 = yield* boundary_1.Boundary.start("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
19196
|
+
const boundary2 = yield* boundary_1.Boundary.start("template", startTagOffset, startTagEndOffset, codeFeatures_1.codeFeatures.verification);
|
|
19158
19197
|
yield `'default'`;
|
|
19159
|
-
yield boundary2.end(
|
|
19198
|
+
yield boundary2.end();
|
|
19160
19199
|
yield `]`;
|
|
19161
|
-
yield boundary.end(
|
|
19200
|
+
yield boundary.end();
|
|
19162
19201
|
}
|
|
19163
19202
|
yield `)(`;
|
|
19164
|
-
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, codeFeatures_1.codeFeatures.verification);
|
|
19203
|
+
const boundary = yield* boundary_1.Boundary.start("template", startTagOffset, startTagEndOffset, codeFeatures_1.codeFeatures.verification);
|
|
19165
19204
|
yield `{${utils_1.newLine}`;
|
|
19166
19205
|
yield* (0, elementProps_1.generateElementProps)(options, ctx, node, node.props.filter((prop) => prop !== nameProp), true);
|
|
19167
19206
|
yield `}`;
|
|
19168
|
-
yield boundary.end(
|
|
19207
|
+
yield boundary.end();
|
|
19169
19208
|
yield `)${utils_1.endOfLine}`;
|
|
19170
19209
|
} else {
|
|
19171
19210
|
yield `var ${propsVar} = {${utils_1.newLine}`;
|
|
@@ -19543,9 +19582,9 @@ var require_template$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19543
19582
|
yield `${utils_1.newLine}& { `;
|
|
19544
19583
|
if (slot.name && slot.offset !== void 0) yield* (0, objectProperty_1.generateObjectProperty)(options, ctx, slot.name, slot.offset, codeFeatures_1.codeFeatures.navigation);
|
|
19545
19584
|
else {
|
|
19546
|
-
const boundary = yield* boundary_1.Boundary.start("template", slot.tagRange
|
|
19585
|
+
const boundary = yield* boundary_1.Boundary.start("template", ...slot.tagRange, codeFeatures_1.codeFeatures.navigation);
|
|
19547
19586
|
yield `default`;
|
|
19548
|
-
yield boundary.end(
|
|
19587
|
+
yield boundary.end();
|
|
19549
19588
|
}
|
|
19550
19589
|
yield `?: (props: typeof ${slot.propsVar}) => any }`;
|
|
19551
19590
|
}
|
|
@@ -19752,6 +19791,7 @@ var require_compilerOptions = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19752
19791
|
inferTemplateDollarRefs: false,
|
|
19753
19792
|
inferTemplateDollarSlots: false,
|
|
19754
19793
|
skipTemplateCodegen: false,
|
|
19794
|
+
vapor: false,
|
|
19755
19795
|
fallthroughAttributes: false,
|
|
19756
19796
|
checkRequiredFallthroughAttributes: false,
|
|
19757
19797
|
resolveStyleImports: false,
|
|
@@ -22157,9 +22197,9 @@ var require_scriptSetup$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22157
22197
|
}));
|
|
22158
22198
|
else transforms.push((0, transform_1.insert)(callExp.end, function* () {
|
|
22159
22199
|
yield ` as ${type}[`;
|
|
22160
|
-
const boundary = yield* boundary_1.Boundary.start(scriptSetup.name, exp.start, codeFeatures_1.codeFeatures.verification);
|
|
22200
|
+
const boundary = yield* boundary_1.Boundary.start(scriptSetup.name, exp.start, exp.end, codeFeatures_1.codeFeatures.verification);
|
|
22161
22201
|
yield `'$style'`;
|
|
22162
|
-
yield boundary.end(
|
|
22202
|
+
yield boundary.end();
|
|
22163
22203
|
yield `])`;
|
|
22164
22204
|
}));
|
|
22165
22205
|
}
|
|
@@ -22488,7 +22528,7 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22488
22528
|
if (src.endsWith(".ts") && !src.endsWith(".d.ts")) src = src.slice(0, -3) + ".js";
|
|
22489
22529
|
else if (src.endsWith(".tsx")) src = src.slice(0, -4) + ".jsx";
|
|
22490
22530
|
yield `import ${names_1.names.src} from `;
|
|
22491
|
-
const boundary = yield* boundary_1.Boundary.start("main", script.src.offset, {
|
|
22531
|
+
const boundary = yield* boundary_1.Boundary.start("main", script.src.offset, script.src.offset + script.src.text.length, {
|
|
22492
22532
|
...codeFeatures_1.codeFeatures.all,
|
|
22493
22533
|
...src !== script.src.text ? codeFeatures_1.codeFeatures.navigationWithoutRename : {}
|
|
22494
22534
|
});
|
|
@@ -22501,7 +22541,7 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22501
22541
|
];
|
|
22502
22542
|
yield src.slice(script.src.text.length);
|
|
22503
22543
|
yield `'`;
|
|
22504
|
-
yield boundary.end(
|
|
22544
|
+
yield boundary.end();
|
|
22505
22545
|
yield utils_1.endOfLine;
|
|
22506
22546
|
yield `export default ${names_1.names.src}${utils_1.endOfLine}`;
|
|
22507
22547
|
yield* (0, template_1.generateTemplate)(options, ctx, names_1.names.src);
|
|
@@ -22587,9 +22627,9 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22587
22627
|
}
|
|
22588
22628
|
function* generateExportDeclareEqual(block, name) {
|
|
22589
22629
|
yield `const `;
|
|
22590
|
-
const boundary = yield* boundary_1.Boundary.start(block.name, 0, codeFeatures_1.codeFeatures.doNotReportTs6133);
|
|
22630
|
+
const boundary = yield* boundary_1.Boundary.start(block.name, 0, block.content.length, codeFeatures_1.codeFeatures.doNotReportTs6133);
|
|
22591
22631
|
yield name;
|
|
22592
|
-
yield boundary.end(
|
|
22632
|
+
yield boundary.end();
|
|
22593
22633
|
yield ` = `;
|
|
22594
22634
|
}
|
|
22595
22635
|
}));
|
|
@@ -22604,7 +22644,7 @@ var require_common$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22604
22644
|
var boundary_1 = require_boundary();
|
|
22605
22645
|
function* generateClassProperty(source, classNameWithDot, offset, propertyType) {
|
|
22606
22646
|
yield `${utils_1.newLine} & { `;
|
|
22607
|
-
const boundary = yield* boundary_1.Boundary.start(source, offset, codeFeatures_1.codeFeatures.navigation);
|
|
22647
|
+
const boundary = yield* boundary_1.Boundary.start(source, offset, offset + classNameWithDot.length, codeFeatures_1.codeFeatures.navigation);
|
|
22608
22648
|
yield `'`;
|
|
22609
22649
|
yield [
|
|
22610
22650
|
classNameWithDot.slice(1),
|
|
@@ -22613,14 +22653,14 @@ var require_common$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22613
22653
|
boundary.features
|
|
22614
22654
|
];
|
|
22615
22655
|
yield `'`;
|
|
22616
|
-
yield boundary.end(
|
|
22656
|
+
yield boundary.end();
|
|
22617
22657
|
yield `: ${propertyType}`;
|
|
22618
22658
|
yield ` }`;
|
|
22619
22659
|
}
|
|
22620
22660
|
function* generateStyleImports(style) {
|
|
22621
22661
|
if (typeof style.src === "object") {
|
|
22622
22662
|
yield `${utils_1.newLine} & typeof import(`;
|
|
22623
|
-
const boundary = yield* boundary_1.Boundary.start("main", style.src.offset, codeFeatures_1.codeFeatures.navigationAndVerification);
|
|
22663
|
+
const boundary = yield* boundary_1.Boundary.start("main", style.src.offset, style.src.offset + style.src.text.length, codeFeatures_1.codeFeatures.navigationAndVerification);
|
|
22624
22664
|
yield `'`;
|
|
22625
22665
|
yield [
|
|
22626
22666
|
style.src.text,
|
|
@@ -22629,7 +22669,7 @@ var require_common$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22629
22669
|
boundary.features
|
|
22630
22670
|
];
|
|
22631
22671
|
yield `'`;
|
|
22632
|
-
yield boundary.end(
|
|
22672
|
+
yield boundary.end();
|
|
22633
22673
|
yield `).default`;
|
|
22634
22674
|
}
|
|
22635
22675
|
for (const { text, offset } of style.imports) {
|
|
@@ -23189,6 +23229,7 @@ var require_vue_tsx = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23189
23229
|
}
|
|
23190
23230
|
return vueCompilerOptions;
|
|
23191
23231
|
});
|
|
23232
|
+
const getIsVapor = (0, alien_signals_1.computed)(() => getResolvedOptions().vapor || !!(ir.scriptSetup?.attrs.vapor || ir.template?.attrs.vapor));
|
|
23192
23233
|
const getScriptRanges = (0, alien_signals_1.computed)(() => ir.script && validLangs.has(ir.script.lang) ? (0, scriptRanges_1.parseScriptRanges)(ts, ir.script.ast, getResolvedOptions()) : void 0);
|
|
23193
23234
|
const getScriptSetupRanges = (0, alien_signals_1.computed)(() => ir.scriptSetup && validLangs.has(ir.scriptSetup.lang) ? (0, scriptSetupRanges_1.parseScriptSetupRanges)(ts, ir.scriptSetup.ast, getResolvedOptions()) : void 0);
|
|
23194
23235
|
const getImportedComponents = (0, signals_1.computedSet)(() => {
|
|
@@ -23247,6 +23288,7 @@ var require_vue_tsx = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
23247
23288
|
typescript: ts,
|
|
23248
23289
|
vueCompilerOptions: getResolvedOptions(),
|
|
23249
23290
|
template: ir.template,
|
|
23291
|
+
isVapor: getIsVapor(),
|
|
23250
23292
|
componentName: getComponentName(),
|
|
23251
23293
|
setupConsts: getSetupConsts(),
|
|
23252
23294
|
setupRefs: getSetupRefs(),
|
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.55",
|
|
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.8",
|
|
58
|
+
"@vue/language-service": "^3.3.8",
|
|
59
|
+
"@vue/typescript-plugin": "^3.3.8",
|
|
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.9",
|
|
69
69
|
"@types/markdown-it": "^14.1.2",
|
|
70
70
|
"@types/node": "^26.1.1",
|
|
71
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
|
}
|