@cabloy/vue-runtime-core 3.5.16 → 3.5.17

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.
@@ -4049,13 +4049,6 @@ function hasInjectionContext() {
4049
4049
  return !!(currentInstance || currentRenderingInstance || currentApp);
4050
4050
  }
4051
4051
 
4052
- function shouldSkipAttrPatch(key, instance) {
4053
- if (["slots", "controllerRef"].includes(key)) {
4054
- return true;
4055
- }
4056
- return false;
4057
- }
4058
-
4059
4052
  const internalObjectProto = {};
4060
4053
  const createInternalObject = () => Object.create(internalObjectProto);
4061
4054
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -4131,7 +4124,6 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4131
4124
  );
4132
4125
  }
4133
4126
  } else {
4134
- if (shouldSkipAttrPatch(key)) continue;
4135
4127
  if (value !== attrs[key]) {
4136
4128
  attrs[key] = value;
4137
4129
  hasAttrsChanged = true;
@@ -4201,7 +4193,6 @@ function setFullProps(instance, rawProps, props, attrs) {
4201
4193
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
4202
4194
  }
4203
4195
  } else if (!isEmitListener(instance.emitsOptions, key)) {
4204
- if (shouldSkipAttrPatch(key)) continue;
4205
4196
  if (!(key in attrs) || value !== attrs[key]) {
4206
4197
  attrs[key] = value;
4207
4198
  hasAttrsChanged = true;
@@ -6562,6 +6553,7 @@ function renderComponentRoot(instance) {
6562
6553
  [root, setRoot] = getChildRoot(result);
6563
6554
  }
6564
6555
  if (fallthroughAttrs && inheritAttrs !== false) {
6556
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
6565
6557
  const keys = Object.keys(fallthroughAttrs);
6566
6558
  const { shapeFlag } = root;
6567
6559
  if (keys.length) {
@@ -6687,6 +6679,15 @@ const filterModelListeners = (attrs, props) => {
6687
6679
  }
6688
6680
  return res;
6689
6681
  };
6682
+ const filterZovaAttrs = (attrs) => {
6683
+ const res = {};
6684
+ for (const key in attrs) {
6685
+ if (!["slots", "controllerRef"].includes(key)) {
6686
+ res[key] = attrs[key];
6687
+ }
6688
+ }
6689
+ return res;
6690
+ };
6690
6691
  const isElementRoot = (vnode) => {
6691
6692
  return vnode.shapeFlag & (6 | 1) || vnode.type === Comment;
6692
6693
  };
@@ -3082,13 +3082,6 @@ function hasInjectionContext() {
3082
3082
  return !!(currentInstance || currentRenderingInstance || currentApp);
3083
3083
  }
3084
3084
 
3085
- function shouldSkipAttrPatch(key, instance) {
3086
- if (["slots", "controllerRef"].includes(key)) {
3087
- return true;
3088
- }
3089
- return false;
3090
- }
3091
-
3092
3085
  const internalObjectProto = {};
3093
3086
  const createInternalObject = () => Object.create(internalObjectProto);
3094
3087
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -3155,7 +3148,6 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
3155
3148
  );
3156
3149
  }
3157
3150
  } else {
3158
- if (shouldSkipAttrPatch(key)) continue;
3159
3151
  if (value !== attrs[key]) {
3160
3152
  attrs[key] = value;
3161
3153
  hasAttrsChanged = true;
@@ -3222,7 +3214,6 @@ function setFullProps(instance, rawProps, props, attrs) {
3222
3214
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
3223
3215
  }
3224
3216
  } else if (!isEmitListener(instance.emitsOptions, key)) {
3225
- if (shouldSkipAttrPatch(key)) continue;
3226
3217
  if (!(key in attrs) || value !== attrs[key]) {
3227
3218
  attrs[key] = value;
3228
3219
  hasAttrsChanged = true;
@@ -5176,6 +5167,7 @@ function renderComponentRoot(instance) {
5176
5167
  }
5177
5168
  let root = result;
5178
5169
  if (fallthroughAttrs && inheritAttrs !== false) {
5170
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
5179
5171
  const keys = Object.keys(fallthroughAttrs);
5180
5172
  const { shapeFlag } = root;
5181
5173
  if (keys.length) {
@@ -5239,6 +5231,15 @@ const filterModelListeners = (attrs, props) => {
5239
5231
  }
5240
5232
  return res;
5241
5233
  };
5234
+ const filterZovaAttrs = (attrs) => {
5235
+ const res = {};
5236
+ for (const key in attrs) {
5237
+ if (!["slots", "controllerRef"].includes(key)) {
5238
+ res[key] = attrs[key];
5239
+ }
5240
+ }
5241
+ return res;
5242
+ };
5242
5243
  function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
5243
5244
  const { props: prevProps, children: prevChildren, component } = prevVNode;
5244
5245
  const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
@@ -4068,13 +4068,6 @@ function hasInjectionContext() {
4068
4068
  return !!(currentInstance || currentRenderingInstance || currentApp);
4069
4069
  }
4070
4070
 
4071
- function shouldSkipAttrPatch(key, instance) {
4072
- if (["slots", "controllerRef"].includes(key)) {
4073
- return true;
4074
- }
4075
- return false;
4076
- }
4077
-
4078
4071
  const internalObjectProto = {};
4079
4072
  const createInternalObject = () => Object.create(internalObjectProto);
4080
4073
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
@@ -4150,7 +4143,6 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
4150
4143
  );
4151
4144
  }
4152
4145
  } else {
4153
- if (shouldSkipAttrPatch(key)) continue;
4154
4146
  if (value !== attrs[key]) {
4155
4147
  attrs[key] = value;
4156
4148
  hasAttrsChanged = true;
@@ -4220,7 +4212,6 @@ function setFullProps(instance, rawProps, props, attrs) {
4220
4212
  (rawCastValues || (rawCastValues = {}))[camelKey] = value;
4221
4213
  }
4222
4214
  } else if (!isEmitListener(instance.emitsOptions, key)) {
4223
- if (shouldSkipAttrPatch(key)) continue;
4224
4215
  if (!(key in attrs) || value !== attrs[key]) {
4225
4216
  attrs[key] = value;
4226
4217
  hasAttrsChanged = true;
@@ -6619,6 +6610,7 @@ function renderComponentRoot(instance) {
6619
6610
  [root, setRoot] = getChildRoot(result);
6620
6611
  }
6621
6612
  if (fallthroughAttrs && inheritAttrs !== false) {
6613
+ fallthroughAttrs = filterZovaAttrs(fallthroughAttrs);
6622
6614
  const keys = Object.keys(fallthroughAttrs);
6623
6615
  const { shapeFlag } = root;
6624
6616
  if (keys.length) {
@@ -6744,6 +6736,15 @@ const filterModelListeners = (attrs, props) => {
6744
6736
  }
6745
6737
  return res;
6746
6738
  };
6739
+ const filterZovaAttrs = (attrs) => {
6740
+ const res = {};
6741
+ for (const key in attrs) {
6742
+ if (!["slots", "controllerRef"].includes(key)) {
6743
+ res[key] = attrs[key];
6744
+ }
6745
+ }
6746
+ return res;
6747
+ };
6747
6748
  const isElementRoot = (vnode) => {
6748
6749
  return vnode.shapeFlag & (6 | 1) || vnode.type === Comment;
6749
6750
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/vue-runtime-core",
3
- "version": "3.5.16",
3
+ "version": "3.5.17",
4
4
  "description": "@vue/runtime-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/runtime-core.esm-bundler.js",