@mjhls/mjh-framework 1.0.20 → 1.0.22
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 +101 -1
- package/dist/index.es.js +7 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Link react and react-dom of the template repo, so that it can be used by the fra
|
|
|
41
41
|
This is to avoid the error arising due to multiple instances of React.
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
cd mjh-template/node_modules/react
|
|
44
|
+
cd ../mjh-template/node_modules/react
|
|
45
45
|
|
|
46
46
|
yarn link
|
|
47
47
|
|
|
@@ -64,6 +64,106 @@ cd ../mjh-template
|
|
|
64
64
|
npm link @mjhls/mjh-framework
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
## Components and "props"
|
|
68
|
+
|
|
69
|
+
### Deck Components
|
|
70
|
+
|
|
71
|
+
- #### DeckContent
|
|
72
|
+
|
|
73
|
+
##### Props
|
|
74
|
+
|
|
75
|
+
- mapping
|
|
76
|
+
- dataRecord
|
|
77
|
+
- query
|
|
78
|
+
- params
|
|
79
|
+
- pointer
|
|
80
|
+
- pointerArray
|
|
81
|
+
- defaultImage
|
|
82
|
+
|
|
83
|
+
- #### DeckQueue
|
|
84
|
+
##### Props
|
|
85
|
+
- page
|
|
86
|
+
- dataRecord
|
|
87
|
+
- query
|
|
88
|
+
- params
|
|
89
|
+
- pointer
|
|
90
|
+
- pointerArray
|
|
91
|
+
|
|
92
|
+
### Layout Components
|
|
93
|
+
|
|
94
|
+
- #### Column1
|
|
95
|
+
- #### Column2
|
|
96
|
+
##### Props
|
|
97
|
+
- rightItems
|
|
98
|
+
- #### Column3
|
|
99
|
+
##### Props
|
|
100
|
+
- leftItems
|
|
101
|
+
- rightItems
|
|
102
|
+
##### Common Props (Column1, Column2, Column3)
|
|
103
|
+
- title
|
|
104
|
+
- children
|
|
105
|
+
- #### Header
|
|
106
|
+
##### Props
|
|
107
|
+
- title
|
|
108
|
+
- keyword
|
|
109
|
+
- description
|
|
110
|
+
- #### LeftNav
|
|
111
|
+
##### Props
|
|
112
|
+
- leftItems
|
|
113
|
+
- #### AccordionPanel
|
|
114
|
+
##### Props
|
|
115
|
+
- accordionClassName
|
|
116
|
+
- data
|
|
117
|
+
|
|
118
|
+
### Navigation Components
|
|
119
|
+
|
|
120
|
+
- #### NavMagazine
|
|
121
|
+
##### Props
|
|
122
|
+
- logo
|
|
123
|
+
- dataObject
|
|
124
|
+
- #### NavNative
|
|
125
|
+
##### Props
|
|
126
|
+
- logo
|
|
127
|
+
- dataObject
|
|
128
|
+
- #### NavNormal
|
|
129
|
+
##### Props
|
|
130
|
+
- logo
|
|
131
|
+
- dataObject
|
|
132
|
+
- variant
|
|
133
|
+
- #### NavDvm
|
|
134
|
+
##### Props
|
|
135
|
+
- logo
|
|
136
|
+
- dataObject
|
|
137
|
+
- subNavHeads
|
|
138
|
+
|
|
139
|
+
### Template Components
|
|
140
|
+
|
|
141
|
+
- #### TemplateNormal
|
|
142
|
+
##### Props
|
|
143
|
+
- config
|
|
144
|
+
- title
|
|
145
|
+
- keywords
|
|
146
|
+
- description
|
|
147
|
+
- website
|
|
148
|
+
|
|
149
|
+
### Ad Components
|
|
150
|
+
|
|
151
|
+
- #### AD300x250
|
|
152
|
+
- #### AD300x250x600
|
|
153
|
+
- #### AD728x90
|
|
154
|
+
##### Common Props
|
|
155
|
+
- networkID
|
|
156
|
+
- adUnit
|
|
157
|
+
|
|
158
|
+
### Serializers
|
|
159
|
+
|
|
160
|
+
- #### getSerializers (function)
|
|
161
|
+
##### arguments
|
|
162
|
+
- client
|
|
163
|
+
##### types
|
|
164
|
+
- youtube
|
|
165
|
+
- figure
|
|
166
|
+
- slideshow
|
|
67
167
|
|
|
68
168
|
## License
|
|
69
169
|
|
package/dist/index.es.js
CHANGED
|
@@ -545,7 +545,7 @@ var DeckContent = function (_React$Component) {
|
|
|
545
545
|
args[_key] = arguments[_key];
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.state = {
|
|
548
|
+
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
549
549
|
data: _this.data,
|
|
550
550
|
per: _this.params ? _this.params.to : 2,
|
|
551
551
|
page: 1,
|
|
@@ -639,7 +639,7 @@ var DeckContent = function (_React$Component) {
|
|
|
639
639
|
React__default.createElement(
|
|
640
640
|
'a',
|
|
641
641
|
null,
|
|
642
|
-
React__default.createElement(Card.Img, { variant: 'top', src: row.thumbnail.asset.url })
|
|
642
|
+
React__default.createElement(Card.Img, { variant: 'top', src: row.thumbnail.asset ? row.thumbnail.asset.url : _this.defaultImage })
|
|
643
643
|
)
|
|
644
644
|
),
|
|
645
645
|
React__default.createElement(
|
|
@@ -1374,7 +1374,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1374
1374
|
return React__default.createElement(
|
|
1375
1375
|
NavDropdown,
|
|
1376
1376
|
{ key: index, title: row.name, id: 'basic-nav-dropdown' },
|
|
1377
|
-
row.subQuery && row.subQuery.map(function (ddRow,
|
|
1377
|
+
row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
|
|
1378
1378
|
if (ddRow.type === 'divider') {
|
|
1379
1379
|
return React__default.createElement(NavDropdown.Divider, { key: subIndex });
|
|
1380
1380
|
} else {
|
|
@@ -3361,8 +3361,7 @@ var AD = function AD(_ref) {
|
|
|
3361
3361
|
adUnit = _ref.adUnit,
|
|
3362
3362
|
sizeMapping = _ref.sizeMapping,
|
|
3363
3363
|
className = _ref.className,
|
|
3364
|
-
|
|
3365
|
-
slotId = _ref$slotId === undefined ? 'test' : _ref$slotId,
|
|
3364
|
+
slotId = _ref.slotId,
|
|
3366
3365
|
sizes = _ref.sizes,
|
|
3367
3366
|
minInViewPercent = _ref.minInViewPercent;
|
|
3368
3367
|
|
|
@@ -3382,18 +3381,16 @@ var AD = function AD(_ref) {
|
|
|
3382
3381
|
lib_3.refresh(slotId);
|
|
3383
3382
|
}
|
|
3384
3383
|
},
|
|
3385
|
-
onSlotIsViewable: function onSlotIsViewable(
|
|
3386
|
-
return console.log(slotId + ' viewable!.', dfpEventData);
|
|
3387
|
-
}
|
|
3384
|
+
onSlotIsViewable: function onSlotIsViewable() {}
|
|
3388
3385
|
})
|
|
3389
3386
|
)
|
|
3390
3387
|
);
|
|
3391
3388
|
};
|
|
3392
3389
|
|
|
3393
3390
|
AD.propTypes = {
|
|
3394
|
-
networkID: PropTypes.
|
|
3391
|
+
networkID: PropTypes.string.isRequired,
|
|
3395
3392
|
adUnit: PropTypes.string.isRequired,
|
|
3396
|
-
slotId: PropTypes.string
|
|
3393
|
+
slotId: PropTypes.string,
|
|
3397
3394
|
className: PropTypes.string,
|
|
3398
3395
|
sizeMapping: PropTypes.array,
|
|
3399
3396
|
sizes: PropTypes.array,
|