@mjhls/mjh-framework 1.0.826 → 1.0.827
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 +1 -1
- package/dist/cjs/DeckQueue.js +8 -2
- package/dist/esm/DeckQueue.js +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.827
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
package/dist/cjs/DeckQueue.js
CHANGED
|
@@ -95,7 +95,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
95
95
|
|
|
96
96
|
var params = _extends._extends({}, _this.params, { from: from, to: to
|
|
97
97
|
// const queryUpdated = query.replace('$from', params.from).replace('$to', params.to)
|
|
98
|
-
});client.fetch(query, params).then(function (dataArr) {
|
|
98
|
+
});_this.client.fetch(query, params).then(function (dataArr) {
|
|
99
99
|
if (_this.pointer && _this.pointerArray) {
|
|
100
100
|
var pointer = _this.pointer;
|
|
101
101
|
dataArr = dataArr[_this.pointerArray][pointer];
|
|
@@ -121,7 +121,13 @@ var DeckQueue = function (_React$Component) {
|
|
|
121
121
|
});
|
|
122
122
|
}, _this.renderCardImage = function (row) {
|
|
123
123
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
124
|
-
var url = urlFor({
|
|
124
|
+
var url = urlFor({
|
|
125
|
+
client: _this.client,
|
|
126
|
+
source: row.thumbnail,
|
|
127
|
+
imageHeight: _this.imageHeight || null,
|
|
128
|
+
imageWidth: _this.props.imageWidth || null,
|
|
129
|
+
imageFit: _this.props.imageFit || null
|
|
130
|
+
});
|
|
125
131
|
return url;
|
|
126
132
|
} else {
|
|
127
133
|
return _this.defaultImage;
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -85,7 +85,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
85
85
|
|
|
86
86
|
var params = _extends({}, _this.params, { from: from, to: to
|
|
87
87
|
// const queryUpdated = query.replace('$from', params.from).replace('$to', params.to)
|
|
88
|
-
});client.fetch(query, params).then(function (dataArr) {
|
|
88
|
+
});_this.client.fetch(query, params).then(function (dataArr) {
|
|
89
89
|
if (_this.pointer && _this.pointerArray) {
|
|
90
90
|
var pointer = _this.pointer;
|
|
91
91
|
dataArr = dataArr[_this.pointerArray][pointer];
|
|
@@ -111,7 +111,13 @@ var DeckQueue = function (_React$Component) {
|
|
|
111
111
|
});
|
|
112
112
|
}, _this.renderCardImage = function (row) {
|
|
113
113
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
114
|
-
var url = urlFor({
|
|
114
|
+
var url = urlFor({
|
|
115
|
+
client: _this.client,
|
|
116
|
+
source: row.thumbnail,
|
|
117
|
+
imageHeight: _this.imageHeight || null,
|
|
118
|
+
imageWidth: _this.props.imageWidth || null,
|
|
119
|
+
imageFit: _this.props.imageFit || null
|
|
120
|
+
});
|
|
115
121
|
return url;
|
|
116
122
|
} else {
|
|
117
123
|
return _this.defaultImage;
|