@vue/runtime-dom 3.6.0-beta.1 → 3.6.0-beta.3

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.6.0-beta.1
2
+ * @vue/runtime-dom v3.6.0-beta.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.6.0-beta.1
2
+ * @vue/runtime-dom v3.6.0-beta.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.6.0-beta.1
2
+ * @vue/runtime-dom v3.6.0-beta.3
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -2378,7 +2378,6 @@ function warn$1(msg, ...args) {
2378
2378
  instance,
2379
2379
  11,
2380
2380
  [
2381
- // eslint-disable-next-line no-restricted-syntax
2382
2381
  msg + args.map((a) => {
2383
2382
  var _a, _b;
2384
2383
  return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
@@ -3003,7 +3002,6 @@ function setDevtoolsHook$1(hook, target) {
3003
3002
  // (#4815)
3004
3003
  typeof window !== "undefined" && // some envs mock window but not fully
3005
3004
  window.HTMLElement && // also exclude jsdom
3006
- // eslint-disable-next-line no-restricted-syntax
3007
3005
  !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
3008
3006
  ) {
3009
3007
  const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
@@ -4998,9 +4996,17 @@ function isMismatchAllowed(el, allowedType) {
4998
4996
  }
4999
4997
  }
5000
4998
 
5001
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
5002
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
4999
+ let requestIdleCallback;
5000
+ let cancelIdleCallback;
5001
+ function ensureIdleCallbacks() {
5002
+ if (!requestIdleCallback) {
5003
+ const g = getGlobalThis();
5004
+ requestIdleCallback = g.requestIdleCallback || ((cb) => setTimeout(cb, 1));
5005
+ cancelIdleCallback = g.cancelIdleCallback || ((id) => clearTimeout(id));
5006
+ }
5007
+ }
5003
5008
  const hydrateOnIdle = (timeout = 1e4) => (hydrate) => {
5009
+ ensureIdleCallbacks();
5004
5010
  const id = requestIdleCallback(hydrate, { timeout });
5005
5011
  return () => cancelIdleCallback(id);
5006
5012
  };
@@ -5788,9 +5794,10 @@ function createSlots(slots, dynamicSlots) {
5788
5794
 
5789
5795
  function renderSlot(slots, name, props = {}, fallback, noSlotted) {
5790
5796
  let slot = slots[name];
5791
- if (slot && slot.__vapor) {
5797
+ const vaporSlot = slot && (slot.__vs || (slot.__vapor ? slot : null));
5798
+ if (vaporSlot) {
5792
5799
  const ret = (openBlock(), createBlock(VaporSlot, props));
5793
- ret.vs = { slot, fallback };
5800
+ ret.vs = { slot: vaporSlot, fallback };
5794
5801
  return ret;
5795
5802
  }
5796
5803
  if (currentRenderingInstance && (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce)) {
@@ -5853,14 +5860,14 @@ function ensureVaporSlotFallback(vnodes, fallback) {
5853
5860
  }
5854
5861
  }
5855
5862
 
5856
- function toHandlers(obj, preserveCaseIfNecessary, needWrap) {
5863
+ function toHandlers(obj, preserveCaseIfNecessary) {
5857
5864
  const ret = {};
5858
5865
  if (!isObject(obj)) {
5859
5866
  warn$1(`v-on with no argument expects an object value.`);
5860
5867
  return ret;
5861
5868
  }
5862
5869
  for (const key in obj) {
5863
- ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = needWrap ? () => obj[key] : obj[key];
5870
+ ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];
5864
5871
  }
5865
5872
  return ret;
5866
5873
  }
@@ -10187,7 +10194,7 @@ function hydrateSuspense(node, vnode, parentComponent, parentSuspense, namespace
10187
10194
  parentSuspense,
10188
10195
  parentComponent,
10189
10196
  node.parentNode,
10190
- // eslint-disable-next-line no-restricted-globals
10197
+ // oxlint-disable-next-line no-restricted-globals
10191
10198
  document.createElement("div"),
10192
10199
  null,
10193
10200
  namespace,
@@ -10683,7 +10690,7 @@ const setCurrentInstance = (instance, scope = instance !== null ? instance.scope
10683
10690
  simpleSetCurrentInstance(instance);
10684
10691
  }
10685
10692
  };
10686
- const internalOptions = ["ce", "type"];
10693
+ const internalOptions = ["ce", "type", "uid"];
10687
10694
  const useInstanceOption = (key, silent = false) => {
10688
10695
  const instance = getCurrentGenericInstance();
10689
10696
  if (!instance) {
@@ -10703,7 +10710,7 @@ const useInstanceOption = (key, silent = false) => {
10703
10710
  return { hasInstance: true, value: instance[key] };
10704
10711
  };
10705
10712
 
10706
- const emptyAppContext = createAppContext();
10713
+ const emptyAppContext = /* @__PURE__ */ createAppContext();
10707
10714
  let uid = 0;
10708
10715
  function createComponentInstance(vnode, parent, suspense) {
10709
10716
  const type = vnode.type;
@@ -11335,7 +11342,7 @@ function isMemoSame(cached, memo) {
11335
11342
  return true;
11336
11343
  }
11337
11344
 
11338
- const version = "3.6.0-beta.1";
11345
+ const version = "3.6.0-beta.3";
11339
11346
  const warn = warn$1 ;
11340
11347
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11341
11348
  const devtools = devtools$1 ;
@@ -13347,4 +13354,4 @@ const initDirectivesForSSR = () => {
13347
13354
  }
13348
13355
  } ;
13349
13356
 
13350
- export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
13357
+ export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, VueElementBase, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useInstanceOption, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };