Skip to content

Commit 0686a1a

Browse files
authored
Merge pull request #199 from sharetribe/update-v9.0.0-from-upstream
New release v11.0.0 (Update v9.0.0 from upstream aka FTW-hourly)
2 parents 097f4d6 + fc832a4 commit 0686a1a

File tree

136 files changed

+7115
-8646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+7115
-8646
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
format:
44
docker:
5-
- image: circleci/node:12.20
5+
- image: cimg/node:14.19
66
steps:
77
- checkout
88
- restore_cache:
@@ -25,7 +25,7 @@ jobs:
2525
command: yarn run format-ci
2626
test:
2727
docker:
28-
- image: circleci/node:12.20
28+
- image: cimg/node:14.19
2929
steps:
3030
- checkout
3131
- restore_cache:
@@ -48,7 +48,7 @@ jobs:
4848
command: yarn run test-ci
4949
build:
5050
docker:
51-
- image: circleci/node:12.20
51+
- image: cimg/node:14.19
5252
steps:
5353
- checkout
5454
- restore_cache:
@@ -71,7 +71,7 @@ jobs:
7171
command: yarn run build
7272
audit:
7373
docker:
74-
- image: circleci/node:12.20
74+
- image: cimg/node:14.19
7575
steps:
7676
- checkout
7777
- restore_cache:

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ src/components/index.js
66
src/containers/index.js
77
src/forms/index.js
88
src/routeConfiguration.js
9+
src/components/ImageCarousel/image-gallery.css

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@ https://github.com/sharetribe/flex-template-web/
1717

1818
## Upcoming version 2022-XX-XX
1919

20+
## [v11.0.0] 2022-07-11
21+
22+
This is a major release since it includes a major update to sharetribe-scripts aka our fork of
23+
Create React App.It includes major update to Webpack (v4 > v5) and PostCSS (v7 > v8). These caused
24+
some advanced CSS syntax to be invalid - and therefore some changes must be done to CSS files.
25+
26+
- CSS Property Sets are deprecated and the related file is removed from the codebase
27+
- Custom media queries file need to be imported in all the files, that use them.
28+
29+
Read more from PR: https://github.com/sharetribe/ftw-daily/pull/1531
30+
31+
### Updates from upstream (FTW-daily v9.0.0)
32+
33+
- [change] sharetribe-scripts is updated to v6.0.0. This causes a new major release for FTW
34+
templates. Because most of the CSS files need to be updated!
35+
[#1531](https://github.com/sharetribe/ftw-daily/pull/1531)
36+
37+
- [change] ImageCarousel uses react-image-gallery. It renders all the images early on and supports
38+
touch swipes. [#1529](https://github.com/sharetribe/ftw-daily/pull/1529)
39+
- [fix] Fixing a small typo. [#1518](https://github.com/sharetribe/ftw-daily/pull/1518)
40+
41+
[v11.0.0]: https://github.com/sharetribe/ftw-hourly/compare/v10.6.1...v11.0.0
42+
2043
## [v10.6.1] 2022-05-19
2144

2245
- [fix] undefined REACT_APP_GOOGLE_ANALYTICS_ID caused an error. There was also invalid characters

package.json

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "app",
3-
"version": "10.6.1",
3+
"version": "11.0.0",
44
"private": true,
55
"license": "Apache-2.0",
66
"dependencies": {
77
"@babel/runtime": "^7.17.9",
8-
"@loadable/component": "^5.14.1",
9-
"@loadable/server": "^5.14.2",
8+
"@loadable/component": "^5.15.2",
9+
"@loadable/server": "^5.15.2",
1010
"@mapbox/polyline": "^1.1.1",
1111
"@sentry/browser": "^6.19.7",
1212
"@sentry/node": "^6.19.7",
@@ -21,8 +21,8 @@
2121
"core-js": "^3.22.5",
2222
"cors": "^2.8.5",
2323
"decimal.js": "^10.3.1",
24-
"dotenv": "8.2.0",
25-
"dotenv-expand": "5.1.0",
24+
"dotenv": "^10.0.0",
25+
"dotenv-expand": "^5.1.0",
2626
"express": "^4.18.1",
2727
"express-enforces-ssl": "^1.1.0",
2828
"express-sitemap": "^1.8.0",
@@ -34,7 +34,7 @@
3434
"jstimezonedetect": "^1.0.7",
3535
"lodash": "^4.17.21",
3636
"mapbox-gl-multitouch": "^1.0.3",
37-
"moment": "^2.29.3",
37+
"moment": "^2.29.4",
3838
"moment-timezone": "^0.5.34",
3939
"object.entries": "^1.1.5",
4040
"object.values": "^1.1.5",
@@ -51,16 +51,17 @@
5151
"react-final-form": "^6.5.9",
5252
"react-final-form-arrays": "^3.1.3",
5353
"react-helmet-async": "^1.3.0",
54+
"react-image-gallery": "^1.0.9",
5455
"react-intl": "^5.25.1",
5556
"react-moment-proptypes": "^1.8.1",
5657
"react-redux": "^7.2.8",
5758
"react-router-dom": "^5.3.2",
5859
"react-with-direction": "^1.4.0",
59-
"redux": "^4.1.2",
60+
"redux": "^4.2.0",
6061
"redux-thunk": "^2.4.1",
6162
"seedrandom": "^3.0.5",
6263
"sharetribe-flex-sdk": "^1.17.0",
63-
"sharetribe-scripts": "5.0.1",
64+
"sharetribe-scripts": "6.0.0",
6465
"smoothscroll-polyfill": "^0.4.0",
6566
"source-map-support": "^0.5.21",
6667
"url": "^0.11.0"
@@ -122,7 +123,7 @@
122123
]
123124
},
124125
"engines": {
125-
"node": "^12.19.0 || >=14.15.0 <17"
126+
"node": ">=14.15.0"
126127
},
127128
"prettier": {
128129
"singleQuote": true,

src/components/ActivityFeed/ActivityFeed.module.css

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
@import '../../styles/propertySets.css';
1+
@import '../../styles/customMediaQueries.css';
22

33
.root {
44
margin: 0;
55

66
/* Clearfix */
7-
@apply --clearfix;
7+
composes: clearfix from global;
88
}
99

1010
.messageItem {
1111
margin-bottom: 20px;
1212

1313
/* Clearfix */
14-
@apply --clearfix;
14+
composes: clearfix from global;
1515

1616
@media (--viewportMedium) {
1717
margin-bottom: 17px;
@@ -48,12 +48,12 @@
4848
}
4949

5050
.ownMessageContentWrapper {
51-
@apply --clearfix;
51+
composes: clearfix from global;
5252
}
5353

5454
.messageContent,
5555
.ownMessageContent {
56-
@apply --marketplaceMessageFontStyles;
56+
composes: marketplaceMessageFontStyles from global;
5757

5858
display: inline-block;
5959
margin: 0;
@@ -79,7 +79,7 @@
7979

8080
.messageDate,
8181
.ownMessageDate {
82-
@apply --marketplaceMessageDateFontStyles;
82+
composes: marketplaceMessageDateFontStyles from global;
8383

8484
margin: 11px 0 0 0;
8585
color: var(--matterColorAnti);
@@ -97,7 +97,7 @@
9797
margin-bottom: 18px;
9898

9999
/* Clearfix */
100-
@apply --clearfix;
100+
composes: clearfix from global;
101101

102102
@media (--viewportMedium) {
103103
margin-bottom: 16px;
@@ -119,12 +119,12 @@
119119
}
120120

121121
.transitionContent {
122-
@apply --marketplaceTxTransitionFontStyles;
122+
composes: marketplaceTxTransitionFontStyles from global;
123123
margin: 0;
124124
}
125125

126126
.transitionDate {
127-
@apply --marketplaceMessageDateFontStyles;
127+
composes: marketplaceMessageDateFontStyles from global;
128128
color: var(--matterColorAnti);
129129
margin: 7px 0 0 0;
130130

@@ -138,7 +138,7 @@
138138
}
139139

140140
.reviewContent {
141-
@apply --marketplaceH4FontStyles;
141+
composes: h4 from global;
142142
font-style: italic;
143143
white-space: pre-line;
144144
margin: 8px 0 0 0;

src/components/BookingBreakdown/BookingBreakdown.module.css

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../styles/propertySets.css';
1+
@import '../../styles/customMediaQueries.css';
22

33
.root {
44
display: flex;
@@ -10,7 +10,7 @@
1010
}
1111

1212
.lineItem {
13-
@apply --marketplaceH4FontStyles;
13+
composes: h4 from global;
1414
margin: 0;
1515

1616
@media (--viewportMedium) {
@@ -40,7 +40,7 @@
4040
}
4141

4242
.dayLabel {
43-
@apply --marketplaceH5FontStyles;
43+
composes: h5 from global;
4444
margin: 0;
4545
color: var(--matterColorAnti);
4646
line-height: 24px;
@@ -54,11 +54,11 @@
5454
}
5555

5656
.dayInfo {
57-
@apply --marketplaceButtonFontStyles;
57+
composes: buttonFont from global;
5858
}
5959

6060
.subTotalLineItem {
61-
@apply --marketplaceH4FontStyles;
61+
composes: h4 from global;
6262
font-weight: var(--fontWeightBold);
6363
margin: 0;
6464
padding: 5px 0 1px 0;
@@ -73,7 +73,7 @@
7373
}
7474

7575
.lineItemTotal {
76-
@apply --marketplaceH4FontStyles;
76+
composes: h4 from global;
7777
margin: 0;
7878
padding-top: 6px;
7979
padding-bottom: 6px;
@@ -87,13 +87,21 @@
8787
padding-bottom: 2px;
8888
}
8989
}
90+
91+
.smallFontStyles {
92+
font-family: var(--fontFamily);
93+
font-weight: var(--fontWeightMedium);
94+
font-size: 14px;
95+
line-height: 24px;
96+
}
97+
9098
.itemLabel {
91-
@apply --marketplaceSmallFontStyles;
99+
composes: smallFontStyles;
92100
flex: 1;
93101
}
94102

95103
.itemValue {
96-
@apply --marketplaceSmallFontStyles;
104+
composes: smallFontStyles;
97105
margin: 0 0 0 10px;
98106
}
99107

@@ -112,17 +120,17 @@
112120
}
113121

114122
.totalLabel {
115-
@apply --marketplaceSmallFontStyles;
123+
composes: smallFontStyles;
116124
}
117125

118126
.totalPrice {
119-
@apply --marketplaceButtonFontStyles;
127+
composes: buttonFont from global;
120128
margin: 0 0 0 10px;
121129
padding-top: 0px;
122130
}
123131

124132
.feeInfo {
125-
@apply --marketplaceTinyFontStyles;
133+
composes: marketplaceTinyFontStyles from global;
126134
flex-shrink: 0;
127135
margin: 0;
128136
color: var(--matterColorAnti);

src/components/BookingPanel/BookingPanel.module.css

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
@import '../../styles/propertySets.css';
1+
@import '../../styles/customMediaQueries.css';
22

33
/* Booking form inside modalContainer needs special handling */
44
/* since "inMobile" breakpoint is actually --viewportLarge */
55
.modalContainer {
6-
@apply --marketplaceModalInMobileBaseStyles;
6+
composes: marketplaceModalInMobileBaseStyles from global;
77

88
height: 100vh;
99

@@ -40,7 +40,6 @@
4040

4141
.title {
4242
/* Font */
43-
@apply --marketplaceH1FontStyles;
4443
color: var(--matterColor);
4544

4645
/* Layout */
@@ -55,7 +54,7 @@
5554

5655
.author {
5756
width: 100%;
58-
@apply --marketplaceH4FontStyles;
57+
composes: h4 from global;
5958
margin-top: 7px;
6059
margin-bottom: 0;
6160

@@ -90,7 +89,7 @@
9089

9190
.desktopPriceValue {
9291
/* Font */
93-
@apply --marketplaceH2FontStyles;
92+
composes: h2 from global;
9493
color: var(--marketplaceColor);
9594

9695
@media (--viewportMedium) {
@@ -101,7 +100,7 @@
101100

102101
.desktopPerUnit {
103102
/* Font */
104-
@apply --marketplaceH5FontStyles;
103+
composes: h5 from global;
105104
color: var(--matterColor);
106105

107106
@media (--viewportMedium) {
@@ -113,16 +112,16 @@
113112

114113
.bookingTitle {
115114
/* Font */
116-
@apply --marketplaceH3FontStyles;
115+
composes: h3 from global;
117116
color: var(--matterColor);
118117

119118
margin-top: 0;
120119
margin-bottom: 2px;
121120
}
122121

123122
.bookingHelp {
123+
composes: h5 from global;
124124
display: none;
125-
@apply --marketplaceH5FontStyles;
126125

127126
@media (--viewportMedium) {
128127
color: var(--matterColor);
@@ -202,7 +201,7 @@
202201

203202
.priceValue {
204203
/* Font */
205-
@apply --marketplaceH2FontStyles;
204+
composes: h2 from global;
206205
color: var(--matterColor);
207206

208207
margin-top: 0;
@@ -215,7 +214,7 @@
215214

216215
.perUnit {
217216
/* Font */
218-
@apply --marketplaceTinyFontStyles;
217+
composes: marketplaceTinyFontStyles from global;
219218
color: var(--matterColor);
220219

221220
margin-top: 0;
@@ -227,7 +226,7 @@
227226
}
228227

229228
.bookButton {
230-
@apply --marketplaceButtonStylesPrimary;
229+
composes: button buttonFont buttonText buttonBorders buttonColorsPrimary from global;
231230

232231
/* Clear padding that is set for link elements looking like buttons */
233232
padding: 0;

0 commit comments

Comments
 (0)