@simonbackx/vue-app-navigation 2.15.0 → 2.16.0

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/index.js CHANGED
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { inject, proxyRefs, markRaw, ref, reactive, getCurrentInstance, provide, computed, unref, onActivated, onMounted, queuePostFlushCb, onBeforeUnmount, onBeforeMount, onUpdated, warn, h, setTransitionHooks, callWithAsyncErrorHandling, ErrorCodes, shallowRef, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, defineComponent, Transition, withCtx, createBlock, createCommentVNode, customRef, onScopeDispose, TransitionGroup, Fragment, renderList, isRef, onDeactivated, normalizeClass, normalizeStyle } from "vue";
7
+ import { inject, proxyRefs, markRaw, ref, reactive, defineComponent, getCurrentInstance, provide, computed, unref, onActivated, onMounted, queuePostFlushCb, onBeforeUnmount, onBeforeMount, onUpdated, warn, h, setTransitionHooks, callWithAsyncErrorHandling, ErrorCodes, shallowRef, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, mergeProps, Transition, withCtx, createBlock, createCommentVNode, customRef, onScopeDispose, TransitionGroup, Fragment, renderList, isRef, onDeactivated, normalizeClass, normalizeStyle } from "vue";
8
8
  const _UrlHelper = class _UrlHelper {
9
9
  constructor(url, localFixedPrefix) {
10
10
  __publicField(this, "url");
@@ -945,7 +945,7 @@ function makeProvidesParentReactive(instance) {
945
945
  instance.provides = Object.create(proxyProvider);
946
946
  return reactiveInstance;
947
947
  }
948
- const ComponentWithPropertiesInstance = {
948
+ const ComponentWithPropertiesInstance = defineComponent({
949
949
  name: "ComponentWithPropertiesInstance",
950
950
  props: {
951
951
  component: {
@@ -959,7 +959,7 @@ const ComponentWithPropertiesInstance = {
959
959
  }
960
960
  },
961
961
  __isKeepAlive: true,
962
- setup(props) {
962
+ setup(props, context) {
963
963
  const instance = getCurrentInstance();
964
964
  const sharedContext = instance.ctx;
965
965
  const reactiveInstance = makeProvidesParentReactive(instance);
@@ -1114,7 +1114,7 @@ const ComponentWithPropertiesInstance = {
1114
1114
  return null;
1115
1115
  }
1116
1116
  props.component.component.inheritAttrs = false;
1117
- const vnode = h(props.component.component, props.component.properties);
1117
+ const vnode = h(props.component.component, { ...props.component.properties, ...context.attrs });
1118
1118
  const comp = vnode.type;
1119
1119
  const key = vnode.key == null ? comp : vnode.key;
1120
1120
  pendingCacheKey = key;
@@ -1138,7 +1138,7 @@ const ComponentWithPropertiesInstance = {
1138
1138
  return vnode;
1139
1139
  };
1140
1140
  }
1141
- };
1141
+ });
1142
1142
  const _sfc_main$5 = {
1143
1143
  name: "FramedComponent",
1144
1144
  components: {
@@ -1172,7 +1172,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
1172
1172
  const _component_ComponentWithPropertiesInstance = resolveComponent("ComponentWithPropertiesInstance");
1173
1173
  return openBlock(), createElementBlock("div", null, [
1174
1174
  createElementVNode("div", null, [
1175
- createVNode(_component_ComponentWithPropertiesInstance, { component: $props.root }, null, 8, ["component"])
1175
+ createVNode(_component_ComponentWithPropertiesInstance, mergeProps({ component: $props.root }, _ctx.$attrs), null, 16, ["component"])
1176
1176
  ])
1177
1177
  ]);
1178
1178
  }
@@ -74,8 +74,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
74
74
  default: null;
75
75
  };
76
76
  }>> & Readonly<{}>, {
77
- root: ComponentWithProperties | null;
78
77
  customProvide: Record<string, any>;
78
+ root: ComponentWithProperties | null;
79
79
  initialComponents: ComponentWithProperties[] | null;
80
80
  animationType: string;
81
81
  }, {}, {
@@ -119,8 +119,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
119
119
  default: null;
120
120
  };
121
121
  }>> & Readonly<{}>, {
122
- root: ComponentWithProperties | null;
123
122
  customProvide: Record<string, any>;
123
+ root: ComponentWithProperties | null;
124
124
  initialComponents: ComponentWithProperties[] | null;
125
125
  animationType: string;
126
126
  }, {}, {
@@ -445,8 +445,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
445
445
  default: null;
446
446
  };
447
447
  }>> & Readonly<{}>, {
448
- root: ComponentWithProperties | null;
449
448
  customProvide: Record<string, any>;
449
+ root: ComponentWithProperties | null;
450
450
  initialComponents: ComponentWithProperties[] | null;
451
451
  animationType: string;
452
452
  }, {}, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@simonbackx/vue-app-navigation",
3
3
  "main": "./dist/index.js",
4
4
  "types": "./dist/index.d.ts",
5
- "version": "2.15.0",
5
+ "version": "2.16.0",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/index.js",