@mjhls/mjh-framework 1.0.30 → 1.0.31

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
@@ -1,170 +1,170 @@
1
- # mjh-framework v. 1.0.24
2
-
3
- > Foundation Framework
4
-
5
- [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install --save @mjhls/mjh-framework
11
- ```
12
-
13
- ## Usage
14
-
15
- ```jsx
16
- import React, { Component } from 'react'
17
-
18
- import { NavMagazine, DeckQueue } from 'mjh-framework'
19
-
20
- export default class App extends Component {
21
- render() {
22
- return (
23
- <div>
24
- <NavMagazine />
25
- <DeckQueue />
26
- </div>
27
- )
28
- }
29
- }
30
- ```
31
-
32
- ## Publish new updates to the npm registry
33
-
34
- ```bash
35
- npm publish
36
- ```
37
-
38
- ## For getting updates in the template without publishing each time a change is made in the framework
39
-
40
- Link react and react-dom of the template repo, so that it can be used by the framework.
41
- This is to avoid the error arising due to multiple instances of React.
42
-
43
- ```bash
44
- cd ../mjh-template/node_modules/react
45
-
46
- yarn link
47
-
48
- cd ../react-dom
49
-
50
- yarn link
51
-
52
- cd ../../../mjh-framework
53
-
54
- yarn link react && yarn link react-dom
55
- ```
56
-
57
- Link the framework repo so that it can be used in the template
58
-
59
- ```bash
60
- npm link
61
-
62
- cd ../mjh-template
63
-
64
- npm link @mjhls/mjh-framework
65
- ```
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
167
-
168
- ## License
169
-
170
- MIT © [mjh-framework](https://github.com/mjh-framework)
1
+ # mjh-framework v. 1.0.24
2
+
3
+ > Foundation Framework
4
+
5
+ [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --save @mjhls/mjh-framework
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```jsx
16
+ import React, { Component } from 'react'
17
+
18
+ import { NavMagazine, DeckQueue } from 'mjh-framework'
19
+
20
+ export default class App extends Component {
21
+ render() {
22
+ return (
23
+ <div>
24
+ <NavMagazine />
25
+ <DeckQueue />
26
+ </div>
27
+ )
28
+ }
29
+ }
30
+ ```
31
+
32
+ ## Publish new updates to the npm registry
33
+
34
+ ```bash
35
+ npm publish
36
+ ```
37
+
38
+ ## For getting updates in the template without publishing each time a change is made in the framework
39
+
40
+ Link react and react-dom of the template repo, so that it can be used by the framework.
41
+ This is to avoid the error arising due to multiple instances of React.
42
+
43
+ ```bash
44
+ cd ../mjh-template/node_modules/react
45
+
46
+ yarn link
47
+
48
+ cd ../react-dom
49
+
50
+ yarn link
51
+
52
+ cd ../../../mjh-framework
53
+
54
+ yarn link react && yarn link react-dom
55
+ ```
56
+
57
+ Link the framework repo so that it can be used in the template
58
+
59
+ ```bash
60
+ npm link
61
+
62
+ cd ../mjh-template
63
+
64
+ npm link @mjhls/mjh-framework
65
+ ```
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
167
+
168
+ ## License
169
+
170
+ MIT © [mjh-framework](https://github.com/mjh-framework)
package/dist/index.es.js CHANGED
@@ -2244,6 +2244,8 @@ var TaxonomyCard = function TaxonomyCard(props) {
2244
2244
  };
2245
2245
 
2246
2246
  var Column1 = function Column1(props) {
2247
+ var title = props.title;
2248
+
2247
2249
  return React__default.createElement(
2248
2250
  'section',
2249
2251
  null,
@@ -2252,11 +2254,11 @@ var Column1 = function Column1(props) {
2252
2254
  { className: 'justify-content-md-center' },
2253
2255
  React__default.createElement(
2254
2256
  Col,
2255
- { className: 'middleCol', style: { marginTop: !props.title && '10px' } },
2256
- props.title && React__default.createElement(
2257
+ { className: 'middleCol', style: { marginTop: !title && '10px' } },
2258
+ title && React__default.createElement(
2257
2259
  'h1',
2258
2260
  null,
2259
- props.title
2261
+ title
2260
2262
  ),
2261
2263
  props.children
2262
2264
  )
@@ -2265,7 +2267,8 @@ var Column1 = function Column1(props) {
2265
2267
  };
2266
2268
 
2267
2269
  var Column2 = function Column2(props) {
2268
- var rightItems = props.rightItems;
2270
+ var rightItems = props.rightItems,
2271
+ title = props.title;
2269
2272
 
2270
2273
 
2271
2274
  return React__default.createElement(
@@ -2276,11 +2279,11 @@ var Column2 = function Column2(props) {
2276
2279
  { className: 'justify-content-md-center' },
2277
2280
  React__default.createElement(
2278
2281
  Col,
2279
- { md: true, className: 'middleCol', style: { marginTop: !props.title && '10px' } },
2280
- props.title && React__default.createElement(
2282
+ { md: true, className: 'middleCol', style: { marginTop: !title && '10px' } },
2283
+ title && React__default.createElement(
2281
2284
  'h1',
2282
2285
  null,
2283
- props.title
2286
+ title
2284
2287
  ),
2285
2288
  props.children
2286
2289
  ),
@@ -2371,8 +2374,8 @@ var LeftNav = function LeftNav(props) {
2371
2374
 
2372
2375
  var Column3 = function Column3(props) {
2373
2376
  var leftItems = props.leftItems,
2374
- rightItems = props.rightItems;
2375
-
2377
+ rightItems = props.rightItems,
2378
+ title = props.title;
2376
2379
 
2377
2380
  return React__default.createElement(
2378
2381
  'section',
@@ -2387,11 +2390,11 @@ var Column3 = function Column3(props) {
2387
2390
  ),
2388
2391
  React__default.createElement(
2389
2392
  Col,
2390
- { md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !props.title && '10px' } },
2391
- props.title && React__default.createElement(
2393
+ { md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !title && '10px' } },
2394
+ title && React__default.createElement(
2392
2395
  'h1',
2393
2396
  null,
2394
- props.title
2397
+ title
2395
2398
  ),
2396
2399
  props.children
2397
2400
  ),
@@ -4739,8 +4742,7 @@ var TemplateNormal = function TemplateNormal(props) {
4739
4742
  keywords = props.keywords,
4740
4743
  description = props.description,
4741
4744
  website = props.website,
4742
- horizontalAD = props.config.horizontalAD,
4743
- onSearch = props.onSearch;
4745
+ horizontalAD = props.config.horizontalAD;
4744
4746
 
4745
4747
 
4746
4748
  var navigation = function navigation() {
@@ -4786,7 +4788,7 @@ var TemplateNormal = function TemplateNormal(props) {
4786
4788
  return React__default.createElement(
4787
4789
  'section',
4788
4790
  null,
4789
- React__default.createElement(Header, { title: title, keyword: keywords, description: description }),
4791
+ React__default.createElement(Header, { title: title + ' | ' + website.title, keyword: keywords, description: description }),
4790
4792
  navigation(),
4791
4793
  horizontalAD && horizontalAD.networkID && horizontalAD.adUnit && React__default.createElement(
4792
4794
  Container,