Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sharetribe-scripts v5.0.1 -> v6.0.0 #1531

Merged
merged 105 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
2f4f939
Update package.json
Gnito Jul 7, 2022
f3d52d5
run 'yarn upgrade redux' to fix @babel/runtime version in yarn.lock file
Gnito Jul 7, 2022
9387b75
Update dontenv and dotenv-expand (to be in sync with CRA)
Gnito Jul 7, 2022
4b515d9
Update .circleci/config.yml
Gnito Jul 7, 2022
520cec0
Update src/store.js (due to opinionated approach on version v4.2.0)
Gnito Jul 7, 2022
9fc613b
propertySets.css: fix syntax
Gnito Jul 4, 2022
1d47646
src/index.js: refactor module import (marketplaceDefaults.css should …
Gnito Jul 4, 2022
1582d18
@import customMediaQueries to all the files that use it.
Gnito Jul 4, 2022
9c43be2
marketplaceDefaults.css: convert (most) postcss-apply rules as global…
Gnito Jul 6, 2022
3e6124d
ActivityFeed: remove import of propertySets.css
Gnito Jul 7, 2022
cda9a0a
BookingBreakdown: remove import of propertySets.css
Gnito Jul 7, 2022
cacdfd1
BookingPanel: remove import of propertySets.css
Gnito Jul 7, 2022
694bfc8
Button and ButtonExample: remove the import of propertySets.css
Gnito Jul 7, 2022
cf18529
CookieConsent: remove the import of propertySets.css
Gnito Jul 7, 2022
5dced15
EditListingPhotosPanel: remove the import of propertySets.css
Gnito Jul 7, 2022
d226875
EditListingWizard: remove the import of propertySets.css
Gnito Jul 7, 2022
db1582e
FieldCheckbox: remove the import of propertySets.css
Gnito Jul 7, 2022
71f5037
FieldDateInput: remove the import of propertySets.css
Gnito Jul 7, 2022
9b96c31
FieldDateRangeController: remove the import of propertySets.css
Gnito Jul 7, 2022
9eb7042
FieldDateRangeInput and DateRangeInput: remove the import of property…
Gnito Jul 7, 2022
b74d922
FieldRadioButton: remove the import of propertySets.css
Gnito Jul 7, 2022
f47416e
FieldReviewRating: remove the import of propertySets.css
Gnito Jul 7, 2022
b7c3af6
FilterPlain: remove the import of propertySets.css
Gnito Jul 7, 2022
af5be39
FilterPopup: remove the import of propertySets.css
Gnito Jul 7, 2022
b042161
Footer: remove the import of propertySets.css
Gnito Jul 7, 2022
ae3aaf1
ImageCarousel: remove the import of propertySets.css
Gnito Jul 7, 2022
bd6257b
KeywordFilter: remove the import of propertySets.css
Gnito Jul 7, 2022
4cc8b21
ListingCard: remove the import of propertySets.css
Gnito Jul 7, 2022
089cca1
LoadableComponentErrorBoundary: remove the import of propertySets.css
Gnito Jul 7, 2022
65fb256
LocationAutocompleteInput: remove the import of propertySets.css
Gnito Jul 7, 2022
9bce256
ManageListingCard and Overlay: remove the import of propertySets.css
Gnito Jul 7, 2022
5cfb372
Modal: remove the import of propertySets.css
Gnito Jul 7, 2022
ed76d94
ModalInMobile: remove the import of propertySets.css
Gnito Jul 7, 2022
ac4eebb
ModalMissingInformation: remove the import of propertySets.css
Gnito Jul 7, 2022
f484eed
NotificationBadge: remove the import of propertySets.css
Gnito Jul 7, 2022
7268575
PriceFilterPlain: remove the import of propertySets.css
Gnito Jul 7, 2022
c670590
PriceFilterPpup: remove the import of propertySets.css
Gnito Jul 7, 2022
f271c6d
PrivacyPolicy: remove the import of propertySets.css
Gnito Jul 7, 2022
dc74228
PropertyGroup: remove the import of propertySets.css
Gnito Jul 7, 2022
da3f91b
ResponsiveImage: remove the import of propertySets.css
Gnito Jul 7, 2022
aa3d8ea
ReviewModal: remove the import of propertySets.css
Gnito Jul 7, 2022
9457443
Reviews: remove the import of propertySets.css
Gnito Jul 7, 2022
728a7af
SavedCardDetails: remove the import of propertySets.css
Gnito Jul 7, 2022
4c1a649
SearchFiltersMobile: remove the import of propertySets.css
Gnito Jul 7, 2022
388fe8c
SearchFiltersPrimary: remove the import of propertySets.css
Gnito Jul 7, 2022
c22709e
SearchFiltersSecondary: remove the import of propertySets.css
Gnito Jul 7, 2022
0d3441c
SearchMapGroupLabel: remove the import of propertySets.css
Gnito Jul 7, 2022
5c3ff89
SearchMapInfoCard: remove the import of propertySets.css
Gnito Jul 7, 2022
71bfcbe
SearchMapPricelabel: remove the import of propertySets.css
Gnito Jul 7, 2022
85c3478
SectionHero: remove the import of propertySets.css
Gnito Jul 7, 2022
475de58
SectionHowItworks:remove the import of propertySets.css
Gnito Jul 7, 2022
9282502
SectionLocations: remove the import of propertySets.css
Gnito Jul 7, 2022
abd3848
SectionThumbnailLinks: remove the import of propertySets.css
Gnito Jul 7, 2022
cd5db74
SelectMultipleFilter: remove the import of propertySets.css
Gnito Jul 7, 2022
6e50f39
SelectSingleFilterPlain: remove the import of propertySets.css
Gnito Jul 7, 2022
63b979d
SelectSingleFilterPopup: remove the import of propertySets.css
Gnito Jul 7, 2022
0e6c203
SortByPlain: remove the import of propertySets.css
Gnito Jul 7, 2022
405e36b
SortByPopup: remove the import of propertySets.css
Gnito Jul 7, 2022
4006f40
StripeConnectAccountStatusBox: remove the import of propertySets.css
Gnito Jul 7, 2022
e30763d
TabNav: remove the import of propertySets.css
Gnito Jul 7, 2022
9f84fc3
TabNavHorizontal: remove the import of propertySets.css
Gnito Jul 7, 2022
8573d6a
TermsOfService: remove the import of propertySets.css
Gnito Jul 7, 2022
caf248e
Topbar: remove the import of propertySets.css
Gnito Jul 7, 2022
f356c88
TopbarDesktop: remove the import of propertySets.css
Gnito Jul 7, 2022
ae28624
TopbarMobileMenu: remove the import of propertySets.css
Gnito Jul 7, 2022
6e63abb
TransactionPanel: remove the import of propertySets.css
Gnito Jul 7, 2022
6ca9af0
UserCard: remove the import of propertySets.css
Gnito Jul 7, 2022
8446b28
ValidationError: remove the import of propertySets.css
Gnito Jul 7, 2022
7bb832c
AboutPage: remove the import of propertySets.css
Gnito Jul 7, 2022
33ec015
AuthenticationPage: remove the import of propertySets.css
Gnito Jul 7, 2022
ab713ef
CheckoutPage: remove the import of propertySets.css
Gnito Jul 7, 2022
0a2de93
EmailVerificationPage: remove the import of propertySets.css
Gnito Jul 7, 2022
da93271
InboxPage: remove the import of propertySets.css
Gnito Jul 7, 2022
b2a0099
ListingPage: remove the import of propertySets.css
Gnito Jul 7, 2022
69ada8d
ListingPage/SectionRulesMaybe: remove the import of propertySets.css
Gnito Jul 7, 2022
69521f4
NotFoundPage: remove the import of propertySets.css
Gnito Jul 7, 2022
f3db5d8
PasswordRecoveryPage: remove the import of propertySets.css
Gnito Jul 7, 2022
fdd1582
PasswordResetPage: remove the import of propertySets.css
Gnito Jul 7, 2022
a9d4521
ProfilePage: remove the import of propertySets.css
Gnito Jul 7, 2022
8777e13
ProfileSettingsPage: remove the import of propertySets.css
Gnito Jul 7, 2022
5058529
SearchPage: remove the import of propertySets.css
Gnito Jul 7, 2022
19ad942
StyleguidePage: remove the import of propertySets.css
Gnito Jul 7, 2022
00372b3
BookingDatesForm: remove the import of propertySets.css
Gnito Jul 7, 2022
ce14bf3
ConfirmSignupForm: remove the import of propertySets.css
Gnito Jul 7, 2022
25cb795
ContactDetailsForm: remove the import of propertySets.css
Gnito Jul 7, 2022
a0e613b
ManageAvailabilityCalendar: remove the import of propertySets.css
Gnito Jul 7, 2022
30de89a
EmailVerificationForm: remove the import of propertySets.css
Gnito Jul 7, 2022
298f27f
EmailVerificationForm: remove the import of propertySets.css
Gnito Jul 7, 2022
83a95b6
EnquiryForm: remove the import of propertySets.css
Gnito Jul 7, 2022
456637b
FilterForm: remove the import of propertySets.css
Gnito Jul 7, 2022
acc9c5a
PasswordChangeForm: remove the import of propertySets.css
Gnito Jul 7, 2022
0deef3c
LoginForm: remove the import of propertySets.css
Gnito Jul 7, 2022
3409bd6
PasswordRecoveryForm: remove the import of propertySets.css
Gnito Jul 7, 2022
7d15c8a
PasswordResetForm: remove the import of propertySets.css
Gnito Jul 7, 2022
09ba634
PaymentMethodsForm: remove the import of propertySets.css
Gnito Jul 7, 2022
5aab1f2
PayoutDetailsForm: remove the import of propertySets.css
Gnito Jul 7, 2022
1c08eab
PriceFilterForm: remove the import of propertySets.css
Gnito Jul 7, 2022
524d63f
ProfileSettingsForm: remove the import of propertySets.css
Gnito Jul 7, 2022
c13b679
SendMessageForm: remove the import of propertySets.css
Gnito Jul 7, 2022
ac4742d
SignupForm: remove the import of propertySets.css
Gnito Jul 7, 2022
9b0fc43
StripeConnectAccountForm: remove the import of propertySets.css
Gnito Jul 7, 2022
3d1680c
StripePaymentForm: remove the import of propertySets.css
Gnito Jul 7, 2022
12ba36d
TopbarSearchForm: remove the import of propertySets.css
Gnito Jul 7, 2022
28ec5ab
Remove propertySets.css file completely
Gnito Jul 7, 2022
5be89bc
Update changelog
Gnito Jul 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
format:
docker:
- image: circleci/node:12.20
- image: cimg/node:14.19
steps:
- checkout
- restore_cache:
Expand All @@ -25,7 +25,7 @@ jobs:
command: yarn run format-ci
test:
docker:
- image: circleci/node:12.20
- image: cimg/node:14.19
steps:
- checkout
- restore_cache:
Expand All @@ -48,7 +48,7 @@ jobs:
command: yarn run test-ci
build:
docker:
- image: circleci/node:12.20
- image: cimg/node:14.19
steps:
- checkout
- restore_cache:
Expand All @@ -71,7 +71,7 @@ jobs:
command: yarn run build
audit:
docker:
- image: circleci/node:12.20
- image: cimg/node:14.19
steps:
- checkout
- restore_cache:
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ way to update this template, but currently, we follow a pattern:

## Upcoming version 2022-XX-XX

- [change] ImageCarousel uses react-image-gallery. It renders all the images early on and supports touch swipes.
[#1529](https://github.com/sharetribe/ftw-daily/pull/1529)
- [change] sharetribe-scripts is updated to v6.0.0. This causes a new major release for FTW
templates. Because most of the CSS files need to be updated!
[#1531](https://github.com/sharetribe/ftw-daily/pull/1531)

- [change] ImageCarousel uses react-image-gallery. It renders all the images early on and supports
touch swipes. [#1529](https://github.com/sharetribe/ftw-daily/pull/1529)
- [fix] Fixing a small typo. [#1518](https://github.com/sharetribe/ftw-daily/pull/1518)

## [v8.6.2] 2022-05-19
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.17.9",
"@loadable/component": "^5.14.1",
"@loadable/server": "^5.14.2",
"@loadable/component": "^5.15.2",
"@loadable/server": "^5.15.2",
"@mapbox/polyline": "^1.1.1",
"@sentry/browser": "^6.19.7",
"@sentry/node": "^6.19.7",
Expand All @@ -21,8 +21,8 @@
"core-js": "^3.22.5",
"cors": "^2.8.5",
"decimal.js": "^10.3.1",
"dotenv": "8.2.0",
"dotenv-expand": "5.1.0",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"express": "^4.18.1",
"express-enforces-ssl": "^1.1.0",
"express-sitemap": "^1.8.0",
Expand Down Expand Up @@ -55,11 +55,11 @@
"react-redux": "^7.2.8",
"react-router-dom": "^5.3.2",
"react-with-direction": "^1.4.0",
"redux": "^4.1.2",
"redux": "^4.2.0",
"redux-thunk": "^2.4.1",
"seedrandom": "^3.0.5",
"sharetribe-flex-sdk": "^1.17.0",
"sharetribe-scripts": "5.0.1",
"sharetribe-scripts": "6.0.0",
"smoothscroll-polyfill": "^0.4.0",
"source-map-support": "^0.5.21",
"url": "^0.11.0"
Expand Down Expand Up @@ -120,7 +120,7 @@
]
},
"engines": {
"node": "^12.19.0 || >=14.15.0 <17"
"node": ">=14.15.0"
},
"prettier": {
"singleQuote": true,
Expand Down
20 changes: 10 additions & 10 deletions src/components/ActivityFeed/ActivityFeed.module.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
@import '../../styles/propertySets.css';
@import '../../styles/customMediaQueries.css';

.root {
margin: 0;

/* Clearfix */
@apply --clearfix;
composes: clearfix from global;
}

.messageItem {
margin-bottom: 20px;

/* Clearfix */
@apply --clearfix;
composes: clearfix from global;

@media (--viewportMedium) {
margin-bottom: 17px;
Expand Down Expand Up @@ -48,12 +48,12 @@
}

.ownMessageContentWrapper {
@apply --clearfix;
composes: clearfix from global;
}

.messageContent,
.ownMessageContent {
@apply --marketplaceMessageFontStyles;
composes: marketplaceMessageFontStyles from global;

display: inline-block;
margin: 0;
Expand All @@ -79,7 +79,7 @@

.messageDate,
.ownMessageDate {
@apply --marketplaceMessageDateFontStyles;
composes: marketplaceMessageDateFontStyles from global;

margin: 11px 0 0 0;
color: var(--matterColorAnti);
Expand All @@ -97,7 +97,7 @@
margin-bottom: 18px;

/* Clearfix */
@apply --clearfix;
composes: clearfix from global;

@media (--viewportMedium) {
margin-bottom: 16px;
Expand All @@ -119,12 +119,12 @@
}

.transitionContent {
@apply --marketplaceTxTransitionFontStyles;
composes: marketplaceTxTransitionFontStyles from global;
margin: 0;
}

.transitionDate {
@apply --marketplaceMessageDateFontStyles;
composes: marketplaceMessageDateFontStyles from global;
color: var(--matterColorAnti);
margin: 7px 0 0 0;

Expand All @@ -138,7 +138,7 @@
}

.reviewContent {
@apply --marketplaceH4FontStyles;
composes: h4 from global;
font-style: italic;
white-space: pre-line;
margin: 8px 0 0 0;
Expand Down
30 changes: 19 additions & 11 deletions src/components/BookingBreakdown/BookingBreakdown.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../styles/propertySets.css';
@import '../../styles/customMediaQueries.css';

.root {
display: flex;
Expand All @@ -10,7 +10,7 @@
}

.lineItem {
@apply --marketplaceH4FontStyles;
composes: h4 from global;
margin: 0;

@media (--viewportMedium) {
Expand Down Expand Up @@ -40,7 +40,7 @@
}

.dayLabel {
@apply --marketplaceH5FontStyles;
composes: h5 from global;
margin: 0;
color: var(--matterColorAnti);
line-height: 24px;
Expand All @@ -54,11 +54,11 @@
}

.dayInfo {
@apply --marketplaceButtonFontStyles;
composes: buttonFont from global;
}

.subTotalLineItem {
@apply --marketplaceH4FontStyles;
composes: h4 from global;
font-weight: var(--fontWeightBold);
margin: 0;
padding: 5px 0 1px 0;
Expand All @@ -73,7 +73,7 @@
}

.lineItemTotal {
@apply --marketplaceH4FontStyles;
composes: h4 from global;
margin: 0;
padding-top: 6px;
padding-bottom: 6px;
Expand All @@ -87,13 +87,21 @@
padding-bottom: 2px;
}
}

.smallFontStyles {
font-family: var(--fontFamily);
font-weight: var(--fontWeightMedium);
font-size: 14px;
line-height: 24px;
}

.itemLabel {
@apply --marketplaceSmallFontStyles;
composes: smallFontStyles;
flex: 1;
}

.itemValue {
@apply --marketplaceSmallFontStyles;
composes: smallFontStyles;
margin: 0 0 0 10px;
}

Expand All @@ -112,17 +120,17 @@
}

.totalLabel {
@apply --marketplaceSmallFontStyles;
composes: smallFontStyles;
}

.totalPrice {
@apply --marketplaceButtonFontStyles;
composes: buttonFont from global;
margin: 0 0 0 10px;
padding-top: 0px;
}

.feeInfo {
@apply --marketplaceTinyFontStyles;
composes: marketplaceTinyFontStyles from global;
flex-shrink: 0;
margin: 0;
color: var(--matterColorAnti);
Expand Down
15 changes: 7 additions & 8 deletions src/components/BookingPanel/BookingPanel.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import '../../styles/propertySets.css';
@import '../../styles/customMediaQueries.css';

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

height: 100vh;

Expand Down Expand Up @@ -40,7 +40,6 @@

.title {
/* Font */
@apply --marketplaceH1FontStyles;
color: var(--matterColor);

/* Layout */
Expand All @@ -55,7 +54,7 @@

.author {
width: 100%;
@apply --marketplaceH4FontStyles;
composes: h4 from global;
margin-top: 7px;
margin-bottom: 0;

Expand Down Expand Up @@ -84,8 +83,8 @@
}

.bookingHelp {
composes: h5 from global;
display: none;
@apply --marketplaceH5FontStyles;

@media (--viewportMedium) {
color: var(--matterColor);
Expand Down Expand Up @@ -165,7 +164,7 @@

.priceValue {
/* Font */
@apply --marketplaceH2FontStyles;
composes: h2 from global;
color: var(--matterColor);

margin-top: 0;
Expand All @@ -178,7 +177,7 @@

.perUnit {
/* Font */
@apply --marketplaceTinyFontStyles;
composes: marketplaceTinyFontStyles from global;
color: var(--matterColor);

margin-top: 0;
Expand All @@ -190,7 +189,7 @@
}

.bookButton {
@apply --marketplaceButtonStylesPrimary;
composes: button buttonFont buttonText buttonBorders buttonColorsPrimary from global;

/* Clear padding that is set for link elements looking like buttons */
padding: 0;
Expand Down
17 changes: 10 additions & 7 deletions src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@import '../../styles/propertySets.css';
@import '../../styles/customMediaQueries.css';

.root {
@apply --marketplaceButtonStyles;
composes: button buttonFont buttonText buttonBorders buttonColors from global;

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

.primaryButtonRoot {
@apply --marketplaceButtonStylesPrimary;
composes: button buttonFont buttonText buttonBorders buttonColorsPrimary from global;

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

.secondaryButtonRoot {
@apply --marketplaceButtonStylesSecondary;
composes: button buttonFont buttonText buttonBordersSecondary buttonColorsSecondary from global;

/* We must lift up the text from the center since it looks better with
the button border. Also clears the top padding set for link
Expand All @@ -24,7 +24,7 @@
}

.inlineTextButtonRoot {
@apply --marketplaceLinkStyles;
composes: a from global;
}

.primaryButton {
Expand Down Expand Up @@ -110,11 +110,13 @@
/* Social logins && SSO buttons */

.socialButtonRoot {
@apply --marketplaceButtonStyles;
composes: button buttonFont buttonText from global;

min-height: 48px;
background-color: var(--matterColorLight);

background-color: var(--matterColorLight);
color: var(--matterColorDark);

font-weight: var(--fontWeightMedium);
font-size: 14px;

Expand All @@ -134,6 +136,7 @@
}
&:disabled {
background-color: var(--matterColorNegative);
color: var(--matterColorLight);
}
}

Expand Down
Loading