@vue/compat 3.3.11 → 3.3.12

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.cjs.js CHANGED
@@ -270,7 +270,7 @@ const isKnownHtmlAttr = /* @__PURE__ */ makeMap(
270
270
  `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`
271
271
  );
272
272
  const isKnownSvgAttr = /* @__PURE__ */ makeMap(
273
- `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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
273
+ `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`
274
274
  );
275
275
 
276
276
  const escapeRE = /["'&<>]/;
@@ -861,17 +861,19 @@ class MutableReactiveHandler extends BaseReactiveHandler {
861
861
  }
862
862
  set(target, key, value, receiver) {
863
863
  let oldValue = target[key];
864
- if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
865
- return false;
866
- }
867
864
  if (!this._shallow) {
865
+ const isOldValueReadonly = isReadonly(oldValue);
868
866
  if (!isShallow(value) && !isReadonly(value)) {
869
867
  oldValue = toRaw(oldValue);
870
868
  value = toRaw(value);
871
869
  }
872
870
  if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
873
- oldValue.value = value;
874
- return true;
871
+ if (isOldValueReadonly) {
872
+ return false;
873
+ } else {
874
+ oldValue.value = value;
875
+ return true;
876
+ }
875
877
  }
876
878
  }
877
879
  const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
@@ -3428,7 +3430,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3428
3430
  timeout: typeof timeout === "number" ? timeout : -1,
3429
3431
  activeBranch: null,
3430
3432
  pendingBranch: null,
3431
- isInFallback: true,
3433
+ isInFallback: !isHydrating,
3432
3434
  isHydrating,
3433
3435
  isUnmounted: false,
3434
3436
  effects: [],
@@ -6391,7 +6393,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6391
6393
  return vm;
6392
6394
  }
6393
6395
  }
6394
- Vue.version = `2.6.14-compat:${"3.3.11"}`;
6396
+ Vue.version = `2.6.14-compat:${"3.3.12"}`;
6395
6397
  Vue.config = singletonApp.config;
6396
6398
  Vue.use = (p, ...options) => {
6397
6399
  if (p && isFunction(p.install)) {
@@ -7873,6 +7875,16 @@ function createHydrationFunctions(rendererInternals) {
7873
7875
  if (dirs) {
7874
7876
  invokeDirectiveHook(vnode, null, parentComponent, "created");
7875
7877
  }
7878
+ let needCallTransitionHooks = false;
7879
+ if (isTemplateNode(el)) {
7880
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
7881
+ const content = el.content.firstChild;
7882
+ if (needCallTransitionHooks) {
7883
+ transition.beforeEnter(content);
7884
+ }
7885
+ replaceNode(content, el, parentComponent);
7886
+ vnode.el = el = content;
7887
+ }
7876
7888
  if (props) {
7877
7889
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
7878
7890
  for (const key in props) {
@@ -7905,16 +7917,6 @@ function createHydrationFunctions(rendererInternals) {
7905
7917
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
7906
7918
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
7907
7919
  }
7908
- let needCallTransitionHooks = false;
7909
- if (isTemplateNode(el)) {
7910
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
7911
- const content = el.content.firstChild;
7912
- if (needCallTransitionHooks) {
7913
- transition.beforeEnter(content);
7914
- }
7915
- replaceNode(content, el, parentComponent);
7916
- vnode.el = el = content;
7917
- }
7918
7920
  if (dirs) {
7919
7921
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
7920
7922
  }
@@ -10996,7 +10998,7 @@ function isMemoSame(cached, memo) {
10996
10998
  return true;
10997
10999
  }
10998
11000
 
10999
- const version = "3.3.11";
11001
+ const version = "3.3.12";
11000
11002
  const _ssrUtils = {
11001
11003
  createComponentInstance,
11002
11004
  setupComponent,
@@ -11450,6 +11452,11 @@ function initVShowForSSR() {
11450
11452
  };
11451
11453
  }
11452
11454
 
11455
+ const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
11456
+ function useCssVars(getter) {
11457
+ return;
11458
+ }
11459
+
11453
11460
  function patchStyle(el, prev, next) {
11454
11461
  const style = el.style;
11455
11462
  const isCssString = isString(next);
@@ -11468,6 +11475,10 @@ function patchStyle(el, prev, next) {
11468
11475
  const currentDisplay = style.display;
11469
11476
  if (isCssString) {
11470
11477
  if (prev !== next) {
11478
+ const cssVarText = style[CSS_VAR_TEXT];
11479
+ if (cssVarText) {
11480
+ next += ";" + cssVarText;
11481
+ }
11471
11482
  style.cssText = next;
11472
11483
  }
11473
11484
  } else if (prev) {
@@ -12017,10 +12028,6 @@ function useCssModule(name = "$style") {
12017
12028
  }
12018
12029
  }
12019
12030
 
12020
- function useCssVars(getter) {
12021
- return;
12022
- }
12023
-
12024
12031
  const positionMap = /* @__PURE__ */ new WeakMap();
12025
12032
  const newPositionMap = /* @__PURE__ */ new WeakMap();
12026
12033
  const moveCbKey = Symbol("_moveCb");
@@ -207,7 +207,7 @@ const isKnownHtmlAttr = /* @__PURE__ */ makeMap(
207
207
  `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`
208
208
  );
209
209
  const isKnownSvgAttr = /* @__PURE__ */ makeMap(
210
- `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,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
210
+ `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`
211
211
  );
212
212
 
213
213
  const escapeRE = /["'&<>]/;
@@ -773,17 +773,19 @@ class MutableReactiveHandler extends BaseReactiveHandler {
773
773
  }
774
774
  set(target, key, value, receiver) {
775
775
  let oldValue = target[key];
776
- if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
777
- return false;
778
- }
779
776
  if (!this._shallow) {
777
+ const isOldValueReadonly = isReadonly(oldValue);
780
778
  if (!isShallow(value) && !isReadonly(value)) {
781
779
  oldValue = toRaw(oldValue);
782
780
  value = toRaw(value);
783
781
  }
784
782
  if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
785
- oldValue.value = value;
786
- return true;
783
+ if (isOldValueReadonly) {
784
+ return false;
785
+ } else {
786
+ oldValue.value = value;
787
+ return true;
788
+ }
787
789
  }
788
790
  }
789
791
  const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
@@ -2503,7 +2505,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
2503
2505
  timeout: typeof timeout === "number" ? timeout : -1,
2504
2506
  activeBranch: null,
2505
2507
  pendingBranch: null,
2506
- isInFallback: true,
2508
+ isInFallback: !isHydrating,
2507
2509
  isHydrating,
2508
2510
  isUnmounted: false,
2509
2511
  effects: [],
@@ -5109,7 +5111,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5109
5111
  return vm;
5110
5112
  }
5111
5113
  }
5112
- Vue.version = `2.6.14-compat:${"3.3.11"}`;
5114
+ Vue.version = `2.6.14-compat:${"3.3.12"}`;
5113
5115
  Vue.config = singletonApp.config;
5114
5116
  Vue.use = (p, ...options) => {
5115
5117
  if (p && isFunction(p.install)) {
@@ -6295,6 +6297,16 @@ function createHydrationFunctions(rendererInternals) {
6295
6297
  if (dirs) {
6296
6298
  invokeDirectiveHook(vnode, null, parentComponent, "created");
6297
6299
  }
6300
+ let needCallTransitionHooks = false;
6301
+ if (isTemplateNode(el)) {
6302
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
6303
+ const content = el.content.firstChild;
6304
+ if (needCallTransitionHooks) {
6305
+ transition.beforeEnter(content);
6306
+ }
6307
+ replaceNode(content, el, parentComponent);
6308
+ vnode.el = el = content;
6309
+ }
6298
6310
  if (props) {
6299
6311
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
6300
6312
  for (const key in props) {
@@ -6327,16 +6339,6 @@ function createHydrationFunctions(rendererInternals) {
6327
6339
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
6328
6340
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
6329
6341
  }
6330
- let needCallTransitionHooks = false;
6331
- if (isTemplateNode(el)) {
6332
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
6333
- const content = el.content.firstChild;
6334
- if (needCallTransitionHooks) {
6335
- transition.beforeEnter(content);
6336
- }
6337
- replaceNode(content, el, parentComponent);
6338
- vnode.el = el = content;
6339
- }
6340
6342
  if (dirs) {
6341
6343
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
6342
6344
  }
@@ -8838,7 +8840,7 @@ function isMemoSame(cached, memo) {
8838
8840
  return true;
8839
8841
  }
8840
8842
 
8841
- const version = "3.3.11";
8843
+ const version = "3.3.12";
8842
8844
  const _ssrUtils = {
8843
8845
  createComponentInstance,
8844
8846
  setupComponent,
@@ -9289,6 +9291,11 @@ function initVShowForSSR() {
9289
9291
  };
9290
9292
  }
9291
9293
 
9294
+ const CSS_VAR_TEXT = Symbol("");
9295
+ function useCssVars(getter) {
9296
+ return;
9297
+ }
9298
+
9292
9299
  function patchStyle(el, prev, next) {
9293
9300
  const style = el.style;
9294
9301
  const isCssString = isString(next);
@@ -9307,6 +9314,10 @@ function patchStyle(el, prev, next) {
9307
9314
  const currentDisplay = style.display;
9308
9315
  if (isCssString) {
9309
9316
  if (prev !== next) {
9317
+ const cssVarText = style[CSS_VAR_TEXT];
9318
+ if (cssVarText) {
9319
+ next += ";" + cssVarText;
9320
+ }
9310
9321
  style.cssText = next;
9311
9322
  }
9312
9323
  } else if (prev) {
@@ -9815,10 +9826,6 @@ function useCssModule(name = "$style") {
9815
9826
  }
9816
9827
  }
9817
9828
 
9818
- function useCssVars(getter) {
9819
- return;
9820
- }
9821
-
9822
9829
  const positionMap = /* @__PURE__ */ new WeakMap();
9823
9830
  const newPositionMap = /* @__PURE__ */ new WeakMap();
9824
9831
  const moveCbKey = Symbol("_moveCb");
@@ -788,17 +788,19 @@ class MutableReactiveHandler extends BaseReactiveHandler {
788
788
  }
789
789
  set(target, key, value, receiver) {
790
790
  let oldValue = target[key];
791
- if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
792
- return false;
793
- }
794
791
  if (!this._shallow) {
792
+ const isOldValueReadonly = isReadonly(oldValue);
795
793
  if (!isShallow(value) && !isReadonly(value)) {
796
794
  oldValue = toRaw(oldValue);
797
795
  value = toRaw(value);
798
796
  }
799
797
  if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
800
- oldValue.value = value;
801
- return true;
798
+ if (isOldValueReadonly) {
799
+ return false;
800
+ } else {
801
+ oldValue.value = value;
802
+ return true;
803
+ }
802
804
  }
803
805
  }
804
806
  const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
@@ -3355,7 +3357,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
3355
3357
  timeout: typeof timeout === "number" ? timeout : -1,
3356
3358
  activeBranch: null,
3357
3359
  pendingBranch: null,
3358
- isInFallback: true,
3360
+ isInFallback: !isHydrating,
3359
3361
  isHydrating,
3360
3362
  isUnmounted: false,
3361
3363
  effects: [],
@@ -6291,7 +6293,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6291
6293
  return vm;
6292
6294
  }
6293
6295
  }
6294
- Vue.version = `2.6.14-compat:${"3.3.11"}`;
6296
+ Vue.version = `2.6.14-compat:${"3.3.12"}`;
6295
6297
  Vue.config = singletonApp.config;
6296
6298
  Vue.use = (p, ...options) => {
6297
6299
  if (p && isFunction(p.install)) {
@@ -7773,6 +7775,16 @@ function createHydrationFunctions(rendererInternals) {
7773
7775
  if (dirs) {
7774
7776
  invokeDirectiveHook(vnode, null, parentComponent, "created");
7775
7777
  }
7778
+ let needCallTransitionHooks = false;
7779
+ if (isTemplateNode(el)) {
7780
+ needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
7781
+ const content = el.content.firstChild;
7782
+ if (needCallTransitionHooks) {
7783
+ transition.beforeEnter(content);
7784
+ }
7785
+ replaceNode(content, el, parentComponent);
7786
+ vnode.el = el = content;
7787
+ }
7776
7788
  if (props) {
7777
7789
  if (forcePatch || !optimized || patchFlag & (16 | 32)) {
7778
7790
  for (const key in props) {
@@ -7805,16 +7817,6 @@ function createHydrationFunctions(rendererInternals) {
7805
7817
  if (vnodeHooks = props && props.onVnodeBeforeMount) {
7806
7818
  invokeVNodeHook(vnodeHooks, parentComponent, vnode);
7807
7819
  }
7808
- let needCallTransitionHooks = false;
7809
- if (isTemplateNode(el)) {
7810
- needCallTransitionHooks = needTransition(parentSuspense, transition) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
7811
- const content = el.content.firstChild;
7812
- if (needCallTransitionHooks) {
7813
- transition.beforeEnter(content);
7814
- }
7815
- replaceNode(content, el, parentComponent);
7816
- vnode.el = el = content;
7817
- }
7818
7820
  if (dirs) {
7819
7821
  invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
7820
7822
  }
@@ -10884,7 +10886,7 @@ function isMemoSame(cached, memo) {
10884
10886
  return true;
10885
10887
  }
10886
10888
 
10887
- const version = "3.3.11";
10889
+ const version = "3.3.12";
10888
10890
  const ssrUtils = null;
10889
10891
  const resolveFilter = resolveFilter$1 ;
10890
10892
  const _compatUtils = {
@@ -11323,6 +11325,69 @@ function setDisplay(el, value) {
11323
11325
  el.style.display = value ? el[vShowOldKey] : "none";
11324
11326
  }
11325
11327
 
11328
+ const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
11329
+ function useCssVars(getter) {
11330
+ const instance = getCurrentInstance();
11331
+ if (!instance) {
11332
+ warn(`useCssVars is called without current active component instance.`);
11333
+ return;
11334
+ }
11335
+ const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => {
11336
+ Array.from(
11337
+ document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)
11338
+ ).forEach((node) => setVarsOnNode(node, vars));
11339
+ };
11340
+ const setVars = () => {
11341
+ const vars = getter(instance.proxy);
11342
+ setVarsOnVNode(instance.subTree, vars);
11343
+ updateTeleports(vars);
11344
+ };
11345
+ watchPostEffect(setVars);
11346
+ onMounted(() => {
11347
+ const ob = new MutationObserver(setVars);
11348
+ ob.observe(instance.subTree.el.parentNode, { childList: true });
11349
+ onUnmounted(() => ob.disconnect());
11350
+ });
11351
+ }
11352
+ function setVarsOnVNode(vnode, vars) {
11353
+ if (vnode.shapeFlag & 128) {
11354
+ const suspense = vnode.suspense;
11355
+ vnode = suspense.activeBranch;
11356
+ if (suspense.pendingBranch && !suspense.isHydrating) {
11357
+ suspense.effects.push(() => {
11358
+ setVarsOnVNode(suspense.activeBranch, vars);
11359
+ });
11360
+ }
11361
+ }
11362
+ while (vnode.component) {
11363
+ vnode = vnode.component.subTree;
11364
+ }
11365
+ if (vnode.shapeFlag & 1 && vnode.el) {
11366
+ setVarsOnNode(vnode.el, vars);
11367
+ } else if (vnode.type === Fragment) {
11368
+ vnode.children.forEach((c) => setVarsOnVNode(c, vars));
11369
+ } else if (vnode.type === Static) {
11370
+ let { el, anchor } = vnode;
11371
+ while (el) {
11372
+ setVarsOnNode(el, vars);
11373
+ if (el === anchor)
11374
+ break;
11375
+ el = el.nextSibling;
11376
+ }
11377
+ }
11378
+ }
11379
+ function setVarsOnNode(el, vars) {
11380
+ if (el.nodeType === 1) {
11381
+ const style = el.style;
11382
+ let cssText = "";
11383
+ for (const key in vars) {
11384
+ style.setProperty(`--${key}`, vars[key]);
11385
+ cssText += `--${key}: ${vars[key]};`;
11386
+ }
11387
+ style[CSS_VAR_TEXT] = cssText;
11388
+ }
11389
+ }
11390
+
11326
11391
  function patchStyle(el, prev, next) {
11327
11392
  const style = el.style;
11328
11393
  const isCssString = isString(next);
@@ -11341,6 +11406,10 @@ function patchStyle(el, prev, next) {
11341
11406
  const currentDisplay = style.display;
11342
11407
  if (isCssString) {
11343
11408
  if (prev !== next) {
11409
+ const cssVarText = style[CSS_VAR_TEXT];
11410
+ if (cssVarText) {
11411
+ next += ";" + cssVarText;
11412
+ }
11344
11413
  style.cssText = next;
11345
11414
  }
11346
11415
  } else if (prev) {
@@ -11890,65 +11959,6 @@ function useCssModule(name = "$style") {
11890
11959
  }
11891
11960
  }
11892
11961
 
11893
- function useCssVars(getter) {
11894
- const instance = getCurrentInstance();
11895
- if (!instance) {
11896
- warn(`useCssVars is called without current active component instance.`);
11897
- return;
11898
- }
11899
- const updateTeleports = instance.ut = (vars = getter(instance.proxy)) => {
11900
- Array.from(
11901
- document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)
11902
- ).forEach((node) => setVarsOnNode(node, vars));
11903
- };
11904
- const setVars = () => {
11905
- const vars = getter(instance.proxy);
11906
- setVarsOnVNode(instance.subTree, vars);
11907
- updateTeleports(vars);
11908
- };
11909
- watchPostEffect(setVars);
11910
- onMounted(() => {
11911
- const ob = new MutationObserver(setVars);
11912
- ob.observe(instance.subTree.el.parentNode, { childList: true });
11913
- onUnmounted(() => ob.disconnect());
11914
- });
11915
- }
11916
- function setVarsOnVNode(vnode, vars) {
11917
- if (vnode.shapeFlag & 128) {
11918
- const suspense = vnode.suspense;
11919
- vnode = suspense.activeBranch;
11920
- if (suspense.pendingBranch && !suspense.isHydrating) {
11921
- suspense.effects.push(() => {
11922
- setVarsOnVNode(suspense.activeBranch, vars);
11923
- });
11924
- }
11925
- }
11926
- while (vnode.component) {
11927
- vnode = vnode.component.subTree;
11928
- }
11929
- if (vnode.shapeFlag & 1 && vnode.el) {
11930
- setVarsOnNode(vnode.el, vars);
11931
- } else if (vnode.type === Fragment) {
11932
- vnode.children.forEach((c) => setVarsOnVNode(c, vars));
11933
- } else if (vnode.type === Static) {
11934
- let { el, anchor } = vnode;
11935
- while (el) {
11936
- setVarsOnNode(el, vars);
11937
- if (el === anchor)
11938
- break;
11939
- el = el.nextSibling;
11940
- }
11941
- }
11942
- }
11943
- function setVarsOnNode(el, vars) {
11944
- if (el.nodeType === 1) {
11945
- const style = el.style;
11946
- for (const key in vars) {
11947
- style.setProperty(`--${key}`, vars[key]);
11948
- }
11949
- }
11950
- }
11951
-
11952
11962
  const positionMap = /* @__PURE__ */ new WeakMap();
11953
11963
  const newPositionMap = /* @__PURE__ */ new WeakMap();
11954
11964
  const moveCbKey = Symbol("_moveCb");