@conduction/nextcloud-vue 1.0.0-beta.19 → 1.0.0-beta.20

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.
@@ -110134,13 +110134,28 @@ var script$4 = {
110134
110134
  return component
110135
110135
  },
110136
110136
  /**
110137
- * Props forwarded to the dispatched page component. Spreads the
110138
- * page's `config` object so manifest authors can supply whatever
110139
- * shape the target page expects. Intentionally genericper-type
110140
- * prop validation lives on the target components themselves.
110137
+ * Props forwarded to the dispatched page component. Merges:
110138
+ *
110139
+ * 1. The page's static `config` objectmanifest-authored data
110140
+ * shared across every visit to this route.
110141
+ * 2. The router's `$route.params` — dynamic placeholders captured
110142
+ * from the URL (e.g. `/meetings/:id/live` → `{ id: '...' }`).
110143
+ * Without this merge, children that declare a route-derived
110144
+ * prop (`props: { id: { type: String, required: true } }`)
110145
+ * receive `undefined` even when the URL clearly contains the
110146
+ * value, because the generated route definition's `props: true`
110147
+ * only binds params to `CnPageRenderer` itself, not the
110148
+ * dispatched child component. Params take precedence over
110149
+ * `config` collisions so URL truth wins; config keeps acting
110150
+ * as a default-overrides layer.
110151
+ *
110152
+ * Per-type prop validation lives on the target components.
110141
110153
  */
110142
110154
  resolvedProps() {
110143
- return this.currentPage?.config ?? {}
110155
+ return {
110156
+ ...(this.currentPage?.config ?? {}),
110157
+ ...(this.$route?.params ?? {}),
110158
+ }
110144
110159
  },
110145
110160
  /**
110146
110161
  * Combined slot-override map for the dispatched page component.