gatsby-theme-q3 3.4.11 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.5.0](https://github.com/3merge/q/compare/v3.4.17...v3.5.0) (2022-05-10)
7
+
8
+ **Note:** Version bump only for package gatsby-theme-q3
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.4.16](https://github.com/3merge/q/compare/v3.4.15...v3.4.16) (2022-04-28)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * small repeater bugs ([#398](https://github.com/3merge/q/issues/398)) ([55bfcb8](https://github.com/3merge/q/commit/55bfcb85bdd51476c49fee5a2d79fc68538f0520))
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.4.15](https://github.com/3merge/q/compare/v3.4.14...v3.4.15) (2022-04-12)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * segments and forced tenancy ([#397](https://github.com/3merge/q/issues/397)) ([82e1802](https://github.com/3merge/q/commit/82e1802fe1cde096b442e294896e0ad2dd9530a7))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [3.4.11](https://github.com/3merge/q/compare/v3.4.10...v3.4.11) (2022-04-05)
7
37
 
8
38
  **Note:** Version bump only for package gatsby-theme-q3
package/gatsby-browser.js CHANGED
@@ -26,7 +26,10 @@ export const onClientEntry = async () => {
26
26
  const offset = str.includes('localhost') ? -1 : -2;
27
27
  const parts = str.split('.').slice(0, offset).join('.');
28
28
 
29
- if (size(parts))
29
+ if (process.env.GATSBY_APP_TENANT_FORCE) {
30
+ axios.defaults.headers['X-Session-Tenant'] =
31
+ process.env.GATSBY_APP_TENANT_FORCE;
32
+ } else if (size(parts))
30
33
  axios.defaults.headers['X-Session-Tenant'] =
31
34
  process.env.GATSBY_APP_TENANT || parts;
32
35
 
@@ -24,15 +24,21 @@ var _useSiteMetaData = _interopRequireDefault(require("./useSiteMetaData"));
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
26
26
  const useStyle = (0, _core.makeStyles)(theme => ({
27
- logo: {
28
- height: 95,
29
- width: 180,
30
- display: 'block',
31
- '& img': {
32
- objectFit: 'contain',
33
- height: '100%',
34
- width: '100%'
35
- }
27
+ logo: ({
28
+ invertLogo = false
29
+ }) => {
30
+ const output = {
31
+ height: 95,
32
+ width: 180,
33
+ display: 'block',
34
+ '& img': {
35
+ objectFit: 'contain',
36
+ height: '100%',
37
+ width: '100%'
38
+ }
39
+ };
40
+ if (theme.palette.type === 'dark' && invertLogo) output.filter = 'invert(1) grayscale(100%)';
41
+ return output;
36
42
  },
37
43
  container: {
38
44
  maxWidth: '85vw',
@@ -94,12 +100,14 @@ const PublicTemplate = ({
94
100
  brand,
95
101
  cancellation,
96
102
  logo,
103
+ invertLogo,
97
104
  terms,
98
105
  privacy,
99
106
  photo
100
107
  } = (0, _useSiteMetaData.default)();
101
108
  const cls = useStyle({
102
- photo
109
+ photo,
110
+ invertLogo
103
111
  });
104
112
  return /*#__PURE__*/_react.default.createElement(_AdminPublicGateway.default, rest, /*#__PURE__*/_react.default.createElement(_core.Box, {
105
113
  alignItems: "center",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-theme-q3",
3
- "version": "3.4.11",
3
+ "version": "3.5.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -28,13 +28,13 @@
28
28
  "gatsby-plugin-robots-txt": "^1.6.14",
29
29
  "gatsby-plugin-sharp": "^4.2.0",
30
30
  "gatsby-plugin-sitemap": "^5.2.0",
31
- "gatsby-theme-q3-mui": "^3.4.11",
31
+ "gatsby-theme-q3-mui": "^3.5.0",
32
32
  "gatsby-transformer-sharp": "^4.2.0",
33
33
  "lodash": "^4.17.20",
34
34
  "process": "^0.11.10",
35
35
  "prop-types": "^15.7.2",
36
- "q3-ui-helpers": "^3.4.9",
37
- "q3-ui-locale": "^3.4.11",
36
+ "q3-ui-helpers": "^3.4.16",
37
+ "q3-ui-locale": "^3.4.16",
38
38
  "query-string": "^7.0.1",
39
39
  "react-helmet": "^6.1.0",
40
40
  "react-share": "^4.3.1",
@@ -42,5 +42,5 @@
42
42
  "transform-loader": "^0.2.4",
43
43
  "yarn": "^1.22.17"
44
44
  },
45
- "gitHead": "147726d168e215ddd159f7011f731a89ab0b8ae8"
45
+ "gitHead": "30474e41cab96b0b7954e910fbeb52c628e4df51"
46
46
  }
@@ -15,16 +15,23 @@ import AdminPublicGateway from './AdminPublicGateway';
15
15
  import useSiteMetaData from './useSiteMetaData';
16
16
 
17
17
  const useStyle = makeStyles((theme) => ({
18
- logo: {
19
- height: 95,
20
- width: 180,
21
- display: 'block',
22
-
23
- '& img': {
24
- objectFit: 'contain',
25
- height: '100%',
26
- width: '100%',
27
- },
18
+ logo: ({ invertLogo = false }) => {
19
+ const output = {
20
+ height: 95,
21
+ width: 180,
22
+ display: 'block',
23
+
24
+ '& img': {
25
+ objectFit: 'contain',
26
+ height: '100%',
27
+ width: '100%',
28
+ },
29
+ };
30
+
31
+ if (theme.palette.type === 'dark' && invertLogo)
32
+ output.filter = 'invert(1) grayscale(100%)';
33
+
34
+ return output;
28
35
  },
29
36
  container: {
30
37
  maxWidth: '85vw',
@@ -81,12 +88,15 @@ const PublicTemplate = ({ children, ...rest }) => {
81
88
  brand,
82
89
  cancellation,
83
90
  logo,
91
+ invertLogo,
84
92
  terms,
85
93
  privacy,
86
94
  photo,
87
95
  } = useSiteMetaData();
96
+
88
97
  const cls = useStyle({
89
98
  photo,
99
+ invertLogo,
90
100
  });
91
101
 
92
102
  return (
@@ -1,309 +0,0 @@
1
- {
2
- "json": {
3
- "data": {},
4
- "content": [
5
- {
6
- "data": {},
7
- "content": [
8
- {
9
- "data": {},
10
- "marks": [],
11
- "value": "One",
12
- "nodeType": "text"
13
- }
14
- ],
15
- "nodeType": "heading-1"
16
- },
17
- {
18
- "data": {},
19
- "content": [
20
- {
21
- "data": {},
22
- "marks": [],
23
- "value": "Two",
24
- "nodeType": "text"
25
- }
26
- ],
27
- "nodeType": "heading-2"
28
- },
29
- {
30
- "data": {},
31
- "content": [
32
- {
33
- "data": {},
34
- "marks": [],
35
- "value": "Three",
36
- "nodeType": "text"
37
- }
38
- ],
39
- "nodeType": "heading-3"
40
- },
41
- {
42
- "data": {},
43
- "content": [
44
- {
45
- "data": {},
46
- "marks": [],
47
- "value": "Four",
48
- "nodeType": "text"
49
- }
50
- ],
51
- "nodeType": "heading-4"
52
- },
53
- {
54
- "data": {},
55
- "content": [
56
- {
57
- "data": {},
58
- "marks": [],
59
- "value": "Five",
60
- "nodeType": "text"
61
- }
62
- ],
63
- "nodeType": "heading-5"
64
- },
65
- {
66
- "data": {},
67
- "content": [
68
- {
69
- "data": {},
70
- "marks": [],
71
- "value": "Six",
72
- "nodeType": "text"
73
- }
74
- ],
75
- "nodeType": "heading-6"
76
- },
77
- {
78
- "data": {},
79
- "content": [
80
- {
81
- "data": {},
82
- "marks": [
83
- {
84
- "type": "bold"
85
- }
86
- ],
87
- "value": "Bold",
88
- "nodeType": "text"
89
- }
90
- ],
91
- "nodeType": "paragraph"
92
- },
93
- {
94
- "data": {},
95
- "content": [
96
- {
97
- "data": {},
98
- "marks": [
99
- {
100
- "type": "italic"
101
- }
102
- ],
103
- "value": "Italics",
104
- "nodeType": "text"
105
- }
106
- ],
107
- "nodeType": "paragraph"
108
- },
109
- {
110
- "data": {},
111
- "content": [
112
- {
113
- "data": {},
114
- "marks": [
115
- {
116
- "type": "underline"
117
- }
118
- ],
119
- "value": "Underline",
120
- "nodeType": "text"
121
- }
122
- ],
123
- "nodeType": "paragraph"
124
- },
125
- {
126
- "data": {},
127
- "content": [
128
- {
129
- "data": {},
130
- "content": [
131
- {
132
- "data": {},
133
- "content": [
134
- {
135
- "data": {},
136
- "marks": [],
137
- "value": "Hi",
138
- "nodeType": "text"
139
- }
140
- ],
141
- "nodeType": "paragraph"
142
- }
143
- ],
144
- "nodeType": "list-item"
145
- },
146
- {
147
- "data": {},
148
- "content": [
149
- {
150
- "data": {},
151
- "content": [
152
- {
153
- "data": {},
154
- "marks": [],
155
- "value": "There",
156
- "nodeType": "text"
157
- }
158
- ],
159
- "nodeType": "paragraph"
160
- }
161
- ],
162
- "nodeType": "list-item"
163
- },
164
- {
165
- "data": {},
166
- "content": [
167
- {
168
- "data": {},
169
- "content": [
170
- {
171
- "data": {},
172
- "marks": [],
173
- "value": "",
174
- "nodeType": "text"
175
- },
176
- {
177
- "data": {
178
- "uri": "https://www.google.ca"
179
- },
180
- "content": [
181
- {
182
- "data": {},
183
- "marks": [],
184
- "value": "Link",
185
- "nodeType": "text"
186
- }
187
- ],
188
- "nodeType": "hyperlink"
189
- },
190
- {
191
- "data": {},
192
- "marks": [],
193
- "value": "",
194
- "nodeType": "text"
195
- }
196
- ],
197
- "nodeType": "paragraph"
198
- }
199
- ],
200
- "nodeType": "list-item"
201
- }
202
- ],
203
- "nodeType": "unordered-list"
204
- },
205
- {
206
- "data": {},
207
- "content": [
208
- {
209
- "data": {},
210
- "marks": [],
211
- "value": "Being agile enables us to react to new opportunities; it provides us with more touch points for you to get involved. We recognize that businesses change, so you need a partner who can adapt today and re-focus for the best product tomorrow.",
212
- "nodeType": "text"
213
- }
214
- ],
215
- "nodeType": "paragraph"
216
- },
217
- {
218
- "data": {},
219
- "content": [],
220
- "nodeType": "hr"
221
- },
222
- {
223
- "data": {},
224
- "content": [
225
- {
226
- "data": {},
227
- "marks": [],
228
- "value": "A special quote",
229
- "nodeType": "text"
230
- }
231
- ],
232
- "nodeType": "paragraph"
233
- },
234
- {
235
- "data": {
236
- "target": {
237
- "sys": {
238
- "space": {
239
- "sys": {
240
- "type": "Link",
241
- "linkType": "Space",
242
- "id": "nrb6h720sp8g"
243
- }
244
- },
245
- "id": "GgtmFvOAi28sPraqRhrN0",
246
- "type": "Asset",
247
- "createdAt": "2019-10-08T03:02:30.215Z",
248
- "updatedAt": "2019-10-08T03:02:30.215Z",
249
- "environment": {
250
- "sys": {
251
- "id": "master",
252
- "type": "Link",
253
- "linkType": "Environment"
254
- }
255
- },
256
- "revision": 1
257
- },
258
- "fields": {
259
- "title": {
260
- "en-CA": "glasses"
261
- },
262
- "file": {
263
- "en-CA": {
264
- "url": "//images.ctfassets.net/nrb6h720sp8g/GgtmFvOAi28sPraqRhrN0/131897aafbc9c16ee8bc622b474e64ba/glasses.svg",
265
- "details": {
266
- "size": 740,
267
- "image": {
268
- "width": 93,
269
- "height": 48
270
- }
271
- },
272
- "fileName": "glasses.svg",
273
- "contentType": "image/svg+xml"
274
- }
275
- }
276
- }
277
- }
278
- },
279
- "content": [],
280
- "nodeType": "embedded-asset-block"
281
- },
282
- {
283
- "data": {},
284
- "content": [
285
- {
286
- "data": {},
287
- "marks": [],
288
- "value": "",
289
- "nodeType": "text"
290
- }
291
- ],
292
- "nodeType": "paragraph"
293
- },
294
- {
295
- "data": {},
296
- "content": [
297
- {
298
- "data": {},
299
- "marks": [],
300
- "value": "",
301
- "nodeType": "text"
302
- }
303
- ],
304
- "nodeType": "paragraph"
305
- }
306
- ],
307
- "nodeType": "document"
308
- }
309
- }
@@ -1,309 +0,0 @@
1
- {
2
- "json": {
3
- "data": {},
4
- "content": [
5
- {
6
- "data": {},
7
- "content": [
8
- {
9
- "data": {},
10
- "marks": [],
11
- "value": "One",
12
- "nodeType": "text"
13
- }
14
- ],
15
- "nodeType": "heading-1"
16
- },
17
- {
18
- "data": {},
19
- "content": [
20
- {
21
- "data": {},
22
- "marks": [],
23
- "value": "Two",
24
- "nodeType": "text"
25
- }
26
- ],
27
- "nodeType": "heading-2"
28
- },
29
- {
30
- "data": {},
31
- "content": [
32
- {
33
- "data": {},
34
- "marks": [],
35
- "value": "Three",
36
- "nodeType": "text"
37
- }
38
- ],
39
- "nodeType": "heading-3"
40
- },
41
- {
42
- "data": {},
43
- "content": [
44
- {
45
- "data": {},
46
- "marks": [],
47
- "value": "Four",
48
- "nodeType": "text"
49
- }
50
- ],
51
- "nodeType": "heading-4"
52
- },
53
- {
54
- "data": {},
55
- "content": [
56
- {
57
- "data": {},
58
- "marks": [],
59
- "value": "Five",
60
- "nodeType": "text"
61
- }
62
- ],
63
- "nodeType": "heading-5"
64
- },
65
- {
66
- "data": {},
67
- "content": [
68
- {
69
- "data": {},
70
- "marks": [],
71
- "value": "Six",
72
- "nodeType": "text"
73
- }
74
- ],
75
- "nodeType": "heading-6"
76
- },
77
- {
78
- "data": {},
79
- "content": [
80
- {
81
- "data": {},
82
- "marks": [
83
- {
84
- "type": "bold"
85
- }
86
- ],
87
- "value": "Bold",
88
- "nodeType": "text"
89
- }
90
- ],
91
- "nodeType": "paragraph"
92
- },
93
- {
94
- "data": {},
95
- "content": [
96
- {
97
- "data": {},
98
- "marks": [
99
- {
100
- "type": "italic"
101
- }
102
- ],
103
- "value": "Italics",
104
- "nodeType": "text"
105
- }
106
- ],
107
- "nodeType": "paragraph"
108
- },
109
- {
110
- "data": {},
111
- "content": [
112
- {
113
- "data": {},
114
- "marks": [
115
- {
116
- "type": "underline"
117
- }
118
- ],
119
- "value": "Underline",
120
- "nodeType": "text"
121
- }
122
- ],
123
- "nodeType": "paragraph"
124
- },
125
- {
126
- "data": {},
127
- "content": [
128
- {
129
- "data": {},
130
- "content": [
131
- {
132
- "data": {},
133
- "content": [
134
- {
135
- "data": {},
136
- "marks": [],
137
- "value": "Hi",
138
- "nodeType": "text"
139
- }
140
- ],
141
- "nodeType": "paragraph"
142
- }
143
- ],
144
- "nodeType": "list-item"
145
- },
146
- {
147
- "data": {},
148
- "content": [
149
- {
150
- "data": {},
151
- "content": [
152
- {
153
- "data": {},
154
- "marks": [],
155
- "value": "There",
156
- "nodeType": "text"
157
- }
158
- ],
159
- "nodeType": "paragraph"
160
- }
161
- ],
162
- "nodeType": "list-item"
163
- },
164
- {
165
- "data": {},
166
- "content": [
167
- {
168
- "data": {},
169
- "content": [
170
- {
171
- "data": {},
172
- "marks": [],
173
- "value": "",
174
- "nodeType": "text"
175
- },
176
- {
177
- "data": {
178
- "uri": "https://www.google.ca"
179
- },
180
- "content": [
181
- {
182
- "data": {},
183
- "marks": [],
184
- "value": "Link",
185
- "nodeType": "text"
186
- }
187
- ],
188
- "nodeType": "hyperlink"
189
- },
190
- {
191
- "data": {},
192
- "marks": [],
193
- "value": "",
194
- "nodeType": "text"
195
- }
196
- ],
197
- "nodeType": "paragraph"
198
- }
199
- ],
200
- "nodeType": "list-item"
201
- }
202
- ],
203
- "nodeType": "unordered-list"
204
- },
205
- {
206
- "data": {},
207
- "content": [
208
- {
209
- "data": {},
210
- "marks": [],
211
- "value": "Being agile enables us to react to new opportunities; it provides us with more touch points for you to get involved. We recognize that businesses change, so you need a partner who can adapt today and re-focus for the best product tomorrow.",
212
- "nodeType": "text"
213
- }
214
- ],
215
- "nodeType": "paragraph"
216
- },
217
- {
218
- "data": {},
219
- "content": [],
220
- "nodeType": "hr"
221
- },
222
- {
223
- "data": {},
224
- "content": [
225
- {
226
- "data": {},
227
- "marks": [],
228
- "value": "A special quote",
229
- "nodeType": "text"
230
- }
231
- ],
232
- "nodeType": "paragraph"
233
- },
234
- {
235
- "data": {
236
- "target": {
237
- "sys": {
238
- "space": {
239
- "sys": {
240
- "type": "Link",
241
- "linkType": "Space",
242
- "id": "nrb6h720sp8g"
243
- }
244
- },
245
- "id": "GgtmFvOAi28sPraqRhrN0",
246
- "type": "Asset",
247
- "createdAt": "2019-10-08T03:02:30.215Z",
248
- "updatedAt": "2019-10-08T03:02:30.215Z",
249
- "environment": {
250
- "sys": {
251
- "id": "master",
252
- "type": "Link",
253
- "linkType": "Environment"
254
- }
255
- },
256
- "revision": 1
257
- },
258
- "fields": {
259
- "title": {
260
- "en-CA": "glasses"
261
- },
262
- "file": {
263
- "en-CA": {
264
- "url": "//images.ctfassets.net/nrb6h720sp8g/GgtmFvOAi28sPraqRhrN0/131897aafbc9c16ee8bc622b474e64ba/glasses.svg",
265
- "details": {
266
- "size": 740,
267
- "image": {
268
- "width": 93,
269
- "height": 48
270
- }
271
- },
272
- "fileName": "glasses.svg",
273
- "contentType": "image/svg+xml"
274
- }
275
- }
276
- }
277
- }
278
- },
279
- "content": [],
280
- "nodeType": "embedded-asset-block"
281
- },
282
- {
283
- "data": {},
284
- "content": [
285
- {
286
- "data": {},
287
- "marks": [],
288
- "value": "",
289
- "nodeType": "text"
290
- }
291
- ],
292
- "nodeType": "paragraph"
293
- },
294
- {
295
- "data": {},
296
- "content": [
297
- {
298
- "data": {},
299
- "marks": [],
300
- "value": "",
301
- "nodeType": "text"
302
- }
303
- ],
304
- "nodeType": "paragraph"
305
- }
306
- ],
307
- "nodeType": "document"
308
- }
309
- }