@silexlabs/silex-dashboard 1.0.45 → 1.0.47

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 v3.4.23
2
+ * vue v3.4.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,7 @@
7
7
  // @__NO_SIDE_EFFECTS__
8
8
  function makeMap(str, expectsLowerCase) {
9
9
  const set = new Set(str.split(","));
10
- return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
10
+ return (val) => set.has(val);
11
11
  }
12
12
 
13
13
  const EMPTY_OBJ = Object.freeze({}) ;
@@ -81,10 +81,11 @@ const invokeArrayFns = (fns, arg) => {
81
81
  fns[i](arg);
82
82
  }
83
83
  };
84
- const def = (obj, key, value) => {
84
+ const def = (obj, key, value, writable = false) => {
85
85
  Object.defineProperty(obj, key, {
86
86
  configurable: true,
87
87
  enumerable: false,
88
+ writable,
88
89
  value
89
90
  });
90
91
  };
@@ -476,11 +477,10 @@ class ReactiveEffect {
476
477
  }
477
478
  }
478
479
  stop() {
479
- var _a;
480
480
  if (this.active) {
481
481
  preCleanupEffect(this);
482
482
  postCleanupEffect(this);
483
- (_a = this.onStop) == null ? void 0 : _a.call(this);
483
+ this.onStop && this.onStop();
484
484
  this.active = false;
485
485
  }
486
486
  }
@@ -693,8 +693,8 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
693
693
  resetScheduling();
694
694
  }
695
695
  function getDepFromReactive(object, key) {
696
- var _a;
697
- return (_a = targetMap.get(object)) == null ? void 0 : _a.get(key);
696
+ const depsMap = targetMap.get(object);
697
+ return depsMap && depsMap.get(key);
698
698
  }
699
699
 
700
700
  const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
@@ -2356,21 +2356,21 @@ function renderComponentRoot(instance) {
2356
2356
  vnode,
2357
2357
  proxy,
2358
2358
  withProxy,
2359
- props,
2360
2359
  propsOptions: [propsOptions],
2361
2360
  slots,
2362
2361
  attrs,
2363
2362
  emit,
2364
2363
  render,
2365
2364
  renderCache,
2365
+ props,
2366
2366
  data,
2367
2367
  setupState,
2368
2368
  ctx,
2369
2369
  inheritAttrs
2370
2370
  } = instance;
2371
+ const prev = setCurrentRenderingInstance(instance);
2371
2372
  let result;
2372
2373
  let fallthroughAttrs;
2373
- const prev = setCurrentRenderingInstance(instance);
2374
2374
  {
2375
2375
  accessedAttrs = false;
2376
2376
  }
@@ -2392,7 +2392,7 @@ function renderComponentRoot(instance) {
2392
2392
  thisProxy,
2393
2393
  proxyToUse,
2394
2394
  renderCache,
2395
- props,
2395
+ true ? shallowReadonly(props) : props,
2396
2396
  setupState,
2397
2397
  data,
2398
2398
  ctx
@@ -2406,19 +2406,18 @@ function renderComponentRoot(instance) {
2406
2406
  }
2407
2407
  result = normalizeVNode(
2408
2408
  render2.length > 1 ? render2(
2409
- props,
2409
+ true ? shallowReadonly(props) : props,
2410
2410
  true ? {
2411
2411
  get attrs() {
2412
2412
  markAttrsAccessed();
2413
- return attrs;
2413
+ return shallowReadonly(attrs);
2414
2414
  },
2415
2415
  slots,
2416
2416
  emit
2417
2417
  } : { attrs, slots, emit }
2418
2418
  ) : render2(
2419
- props,
2419
+ true ? shallowReadonly(props) : props,
2420
2420
  null
2421
- /* we know it doesn't need it */
2422
2421
  )
2423
2422
  );
2424
2423
  fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
@@ -2444,7 +2443,7 @@ function renderComponentRoot(instance) {
2444
2443
  propsOptions
2445
2444
  );
2446
2445
  }
2447
- root = cloneVNode(root, fallthroughAttrs);
2446
+ root = cloneVNode(root, fallthroughAttrs, false, true);
2448
2447
  } else if (!accessedAttrs && root.type !== Comment) {
2449
2448
  const allAttrs = Object.keys(attrs);
2450
2449
  const eventAttrs = [];
@@ -2478,7 +2477,7 @@ function renderComponentRoot(instance) {
2478
2477
  `Runtime directive used on component with non-element root node. The directives will not function as intended.`
2479
2478
  );
2480
2479
  }
2481
- root = cloneVNode(root);
2480
+ root = cloneVNode(root, null, false, true);
2482
2481
  root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
2483
2482
  }
2484
2483
  if (vnode.transition) {
@@ -2969,7 +2968,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
2969
2968
  let parentSuspenseId;
2970
2969
  const isSuspensible = isVNodeSuspensible(vnode);
2971
2970
  if (isSuspensible) {
2972
- if (parentSuspense == null ? void 0 : parentSuspense.pendingBranch) {
2971
+ if (parentSuspense && parentSuspense.pendingBranch) {
2973
2972
  parentSuspenseId = parentSuspense.pendingId;
2974
2973
  parentSuspense.deps++;
2975
2974
  }
@@ -3281,8 +3280,8 @@ function setActiveBranch(suspense, branch) {
3281
3280
  }
3282
3281
  }
3283
3282
  function isVNodeSuspensible(vnode) {
3284
- var _a;
3285
- return ((_a = vnode.props) == null ? void 0 : _a.suspensible) != null && vnode.props.suspensible !== false;
3283
+ const suspensible = vnode.props && vnode.props.suspensible;
3284
+ return suspensible != null && suspensible !== false;
3286
3285
  }
3287
3286
 
3288
3287
  const ssrContextKey = Symbol.for("v-scx");
@@ -3515,34 +3514,29 @@ function createPathGetter(ctx, path) {
3515
3514
  return cur;
3516
3515
  };
3517
3516
  }
3518
- function traverse(value, depth, currentDepth = 0, seen) {
3519
- if (!isObject(value) || value["__v_skip"]) {
3517
+ function traverse(value, depth = Infinity, seen) {
3518
+ if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
3520
3519
  return value;
3521
3520
  }
3522
- if (depth && depth > 0) {
3523
- if (currentDepth >= depth) {
3524
- return value;
3525
- }
3526
- currentDepth++;
3527
- }
3528
3521
  seen = seen || /* @__PURE__ */ new Set();
3529
3522
  if (seen.has(value)) {
3530
3523
  return value;
3531
3524
  }
3532
3525
  seen.add(value);
3526
+ depth--;
3533
3527
  if (isRef(value)) {
3534
- traverse(value.value, depth, currentDepth, seen);
3528
+ traverse(value.value, depth, seen);
3535
3529
  } else if (isArray(value)) {
3536
3530
  for (let i = 0; i < value.length; i++) {
3537
- traverse(value[i], depth, currentDepth, seen);
3531
+ traverse(value[i], depth, seen);
3538
3532
  }
3539
3533
  } else if (isSet(value) || isMap(value)) {
3540
3534
  value.forEach((v) => {
3541
- traverse(v, depth, currentDepth, seen);
3535
+ traverse(v, depth, seen);
3542
3536
  });
3543
3537
  } else if (isPlainObject(value)) {
3544
3538
  for (const key in value) {
3545
- traverse(value[key], depth, currentDepth, seen);
3539
+ traverse(value[key], depth, seen);
3546
3540
  }
3547
3541
  }
3548
3542
  return value;
@@ -3700,7 +3694,7 @@ const BaseTransitionImpl = {
3700
3694
  instance
3701
3695
  );
3702
3696
  setTransitionHooks(oldInnerChild, leavingHooks);
3703
- if (mode === "out-in") {
3697
+ if (mode === "out-in" && innerChild.type !== Comment) {
3704
3698
  state.isLeaving = true;
3705
3699
  leavingHooks.afterLeave = () => {
3706
3700
  state.isLeaving = false;
@@ -3885,11 +3879,21 @@ function emptyPlaceholder(vnode) {
3885
3879
  }
3886
3880
  }
3887
3881
  function getKeepAliveChild(vnode) {
3888
- return isKeepAlive(vnode) ? (
3889
- // #7121 ensure get the child component subtree in case
3890
- // it's been replaced during HMR
3891
- vnode.component ? vnode.component.subTree : vnode.children ? vnode.children[0] : void 0
3892
- ) : vnode;
3882
+ if (!isKeepAlive(vnode)) {
3883
+ return vnode;
3884
+ }
3885
+ if (vnode.component) {
3886
+ return vnode.component.subTree;
3887
+ }
3888
+ const { shapeFlag, children } = vnode;
3889
+ if (children) {
3890
+ if (shapeFlag & 16) {
3891
+ return children[0];
3892
+ }
3893
+ if (shapeFlag & 32 && isFunction(children.default)) {
3894
+ return children.default();
3895
+ }
3896
+ }
3893
3897
  }
3894
3898
  function setTransitionHooks(vnode, hooks) {
3895
3899
  if (vnode.shapeFlag & 6 && vnode.component) {
@@ -4205,7 +4209,7 @@ const KeepAliveImpl = {
4205
4209
  return () => {
4206
4210
  pendingCacheKey = null;
4207
4211
  if (!slots.default) {
4208
- return current = null;
4212
+ return null;
4209
4213
  }
4210
4214
  const children = slots.default();
4211
4215
  const rawVNode = children[0];
@@ -5488,7 +5492,7 @@ function hasInjectionContext() {
5488
5492
  return !!(currentInstance || currentRenderingInstance || currentApp);
5489
5493
  }
5490
5494
 
5491
- const internalObjectProto = /* @__PURE__ */ Object.create(null);
5495
+ const internalObjectProto = {};
5492
5496
  const createInternalObject = () => Object.create(internalObjectProto);
5493
5497
  const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
5494
5498
 
@@ -5941,21 +5945,17 @@ const normalizeVNodeSlots = (instance, children) => {
5941
5945
  instance.slots.default = () => normalized;
5942
5946
  };
5943
5947
  const initSlots = (instance, children) => {
5948
+ const slots = instance.slots = createInternalObject();
5944
5949
  if (instance.vnode.shapeFlag & 32) {
5945
5950
  const type = children._;
5946
5951
  if (type) {
5947
- instance.slots = toRaw(children);
5948
- def(instance.slots, "_", type);
5952
+ extend(slots, children);
5953
+ def(slots, "_", type, true);
5949
5954
  } else {
5950
- normalizeObjectSlots(
5951
- children,
5952
- instance.slots = createInternalObject());
5953
- }
5954
- } else {
5955
- instance.slots = createInternalObject();
5956
- if (children) {
5957
- normalizeVNodeSlots(instance, children);
5955
+ normalizeObjectSlots(children, slots);
5958
5956
  }
5957
+ } else if (children) {
5958
+ normalizeVNodeSlots(instance, children);
5959
5959
  }
5960
5960
  };
5961
5961
  const updateSlots = (instance, children, optimized) => {
@@ -8697,8 +8697,8 @@ function guardReactiveProps(props) {
8697
8697
  return null;
8698
8698
  return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
8699
8699
  }
8700
- function cloneVNode(vnode, extraProps, mergeRef = false) {
8701
- const { props, ref, patchFlag, children } = vnode;
8700
+ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
8701
+ const { props, ref, patchFlag, children, transition } = vnode;
8702
8702
  const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
8703
8703
  const cloned = {
8704
8704
  __v_isVNode: true,
@@ -8728,7 +8728,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
8728
8728
  dynamicChildren: vnode.dynamicChildren,
8729
8729
  appContext: vnode.appContext,
8730
8730
  dirs: vnode.dirs,
8731
- transition: vnode.transition,
8731
+ transition,
8732
8732
  // These should technically only be non-null on mounted VNodes. However,
8733
8733
  // they *should* be copied for kept-alive vnodes. So we just always copy
8734
8734
  // them since them being non-null during a mount doesn't affect the logic as
@@ -8742,6 +8742,9 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
8742
8742
  ctx: vnode.ctx,
8743
8743
  ce: vnode.ce
8744
8744
  };
8745
+ if (transition && cloneTransition) {
8746
+ cloned.transition = transition.clone(cloned);
8747
+ }
8745
8748
  return cloned;
8746
8749
  }
8747
8750
  function deepCloneVNode(vnode) {
@@ -9549,7 +9552,7 @@ function isMemoSame(cached, memo) {
9549
9552
  return true;
9550
9553
  }
9551
9554
 
9552
- const version = "3.4.23";
9555
+ const version = "3.4.26";
9553
9556
  const warn = warn$1 ;
9554
9557
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9555
9558
  const devtools = devtools$1 ;
@@ -9745,8 +9748,8 @@ function resolveTransitionProps(rawProps) {
9745
9748
  el._isLeaving = true;
9746
9749
  const resolve = () => finishLeave(el, done);
9747
9750
  addTransitionClass(el, leaveFromClass);
9748
- forceReflow();
9749
9751
  addTransitionClass(el, leaveActiveClass);
9752
+ forceReflow();
9750
9753
  nextFrame(() => {
9751
9754
  if (!el._isLeaving) {
9752
9755
  return;