druxt-blocks 0.18.0-dev.20261005110003 → 0.18.0-dev.20261006062438
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/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# DruxtBlocks
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/druxt-blocks)
|
|
6
|
+
[](https://www.npmjs.com/package/druxt-blocks/v/dev)
|
|
6
7
|
[](https://github.com/druxt/druxt.js/actions/workflows/ci.yml)
|
|
7
8
|
[](https://snyk.io/test/github/druxt/druxt.js?targetFile=package.json)
|
|
8
9
|
[](https://codecov.io/gh/druxt/druxt.js)
|
|
@@ -59,7 +59,9 @@ export default {
|
|
|
59
59
|
propsData: ({ $fetchState, $store, block, langcode }) => {
|
|
60
60
|
if ($fetchState.pending) return false
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
// The store may not hold the resource yet, or hold it no longer.
|
|
63
|
+
const stored = ((($store.state.druxt.resources || {})[block.type] || {})[block.id] || {})[langcode]
|
|
64
|
+
const data = (stored || {}).data
|
|
63
65
|
if (!((data || {}).attributes || {}).dependencies) return false
|
|
64
66
|
|
|
65
67
|
const parts = data.attributes.dependencies.content[0].split(':')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt-blocks",
|
|
3
|
-
"version": "0.18.0-dev.
|
|
3
|
+
"version": "0.18.0-dev.20261006062438",
|
|
4
4
|
"description": "Drupal Block and Block Region Druxt components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"block",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"axios": "0.33.0",
|
|
51
51
|
"drupal-jsonapi-params": "^2.3.2",
|
|
52
|
-
"druxt": "0.25.0-dev.
|
|
52
|
+
"druxt": "0.25.0-dev.20261006062438"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"vue": "^2.7.14",
|