-
Notifications
You must be signed in to change notification settings - Fork 42
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
Bump Auth/Account to 1.0.3 and Order to 1.0.4 #293
Changes from 11 commits
3144e7d
e467b77
921097f
6eac795
dfbd8d9
887a090
1f9b4a8
28211e4
957b485
8dcd231
1bfb4dc
7c5f66d
f56e51d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,6 +187,31 @@ export default async function decorate(block) { | |
|
||
block.appendChild(checkoutFragment); | ||
|
||
const authPrivacyPolicyConsentSlot = { | ||
PrivacyPolicyConsent: async (ctx) => { | ||
const wrapper = document.createElement('span'); | ||
Object.assign(wrapper.style, { | ||
color: 'var(--color-neutral-700)', | ||
font: 'var(--type-details-caption-2-font)', | ||
display: 'block', | ||
marginBottom: 'var(--spacing-medium)', | ||
}); | ||
|
||
const link = document.createElement('a'); | ||
link.href = '/privacy-policy'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are defined in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to |
||
link.target = '_blank'; | ||
link.textContent = 'Privacy Policy'; | ||
|
||
wrapper.append( | ||
'By creating an account, you acknowledge that you have read and agree to our ', | ||
link, | ||
', which outlines how we collect, use, and protect your personal data.', | ||
); | ||
|
||
ctx.appendChild(wrapper); | ||
}, | ||
}; | ||
|
||
// Global state | ||
let initialized = false; | ||
|
||
|
@@ -250,7 +275,11 @@ export default async function decorate(block) { | |
displayOverlaySpinner(); | ||
}, | ||
}, | ||
signUpFormConfig: {}, | ||
signUpFormConfig: { | ||
slots: { | ||
...authPrivacyPolicyConsentSlot, | ||
}, | ||
}, | ||
resetPasswordFormConfig: {}, | ||
})(signInForm); | ||
|
||
|
@@ -738,6 +767,9 @@ export default async function decorate(block) { | |
routeRedirectOnEmailConfirmationClose: () => '/customer/account', | ||
inputsDefaultValueSet, | ||
addressesData, | ||
slots: { | ||
...authPrivacyPolicyConsentSlot, | ||
}, | ||
})(signUpForm); | ||
|
||
await showModal(signUpForm); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare const getAddressButtonAriaLabel: (defaultShipping?: boolean, defaultBilling?: boolean, translations?: Record<string, string>, type?: 'removeButton' | 'editButton') => string; | ||
//# sourceMappingURL=getAddressButtonAriaLabel.d.ts.map |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be same content used in
commerce-create-account.js
. Can you dedupe?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to
scripts/constants.js
👍