druxt 0.24.1-dev.20260921024946 → 0.25.0-dev.20260921034536

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,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <slot v-bind="{ ...$parent.$attrs }" />
3
+ <slot v-bind="slotAttrs" />
4
4
  </div>
5
5
  </template>
6
6
 
@@ -10,6 +10,31 @@
10
10
  * Placeholder component for the Druxt Wrapper theming system.
11
11
  */
12
12
  export default {
13
- name: 'DruxtWrapper'
13
+ name: 'DruxtWrapper',
14
+
15
+ // A module hands its wrapper the module's own attributes and every propsData
16
+ // key the wrapper does not declare, so the wrapper can read them. Rendering
17
+ // them here as well would repeat the module's attributes on a second element
18
+ // and write objects into the markup as [object Object]. They stay readable
19
+ // in $attrs either way.
20
+ inheritAttrs: false,
21
+
22
+ computed: {
23
+ /**
24
+ * The module's attributes, for the default slot.
25
+ *
26
+ * A module renders its fields through this slot, and hands each one these
27
+ * attributes, so whatever is here reaches every module below. `id` names
28
+ * one element, so it is left out rather than repeated on each of them.
29
+ * DruxtModule withholds `data-fetch-key` for the same reason.
30
+ *
31
+ * @type {object}
32
+ */
33
+ slotAttrs() {
34
+ const attrs = { ...(this.$parent || {}).$attrs }
35
+ delete attrs.id
36
+ return attrs
37
+ }
38
+ }
14
39
  }
15
40
  </script>
package/dist/druxt.esm.js CHANGED
@@ -263,7 +263,7 @@ class DruxtClient {
263
263
  }
264
264
 
265
265
  var name = "druxt";
266
- var version = "0.24.1-dev.20260921024946";
266
+ var version = "0.25.0-dev.20260921034536";
267
267
  var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
268
268
  var keywords = [
269
269
  "cms",
@@ -322,7 +322,7 @@ var dependencies = {
322
322
  };
323
323
  var devDependencies = {
324
324
  "@storybook/addon-docs": "^6.5.16",
325
- "druxt-test-utils": "^0.2.15"
325
+ "druxt-test-utils": "1.0.0-dev.20260921034536"
326
326
  };
327
327
  var peerDependencies = {
328
328
  axios: "0.28.0",
package/dist/druxt.ssr.js CHANGED
@@ -276,7 +276,7 @@ class DruxtClient {
276
276
  }
277
277
 
278
278
  var name = "druxt";
279
- var version = "0.24.1-dev.20260921024946";
279
+ var version = "0.25.0-dev.20260921034536";
280
280
  var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
281
281
  var keywords = [
282
282
  "cms",
@@ -335,7 +335,7 @@ var dependencies = {
335
335
  };
336
336
  var devDependencies = {
337
337
  "@storybook/addon-docs": "^6.5.16",
338
- "druxt-test-utils": "^0.2.15"
338
+ "druxt-test-utils": "1.0.0-dev.20260921034536"
339
339
  };
340
340
  var peerDependencies = {
341
341
  axios: "0.28.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt",
3
- "version": "0.24.1-dev.20260921024946",
3
+ "version": "0.25.0-dev.20260921034536",
4
4
  "description": "The Fully Decoupled Drupal Framework for Nuxt.js.",
5
5
  "keywords": [
6
6
  "cms",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@storybook/addon-docs": "^6.5.16",
62
- "druxt-test-utils": "^0.2.15"
62
+ "druxt-test-utils": "1.0.0-dev.20260921034536"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "axios": "0.28.0",