@salesforce/webapp-template-app-react-template-b2x-experimental 1.93.1 → 1.94.0
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/dist/CHANGELOG.md +8 -0
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/authentication/pages/ChangePassword.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/authentication/pages/ForgotPassword.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/authentication/pages/Login.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/authentication/pages/Register.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/authentication/pages/ResetPassword.tsx +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
# [1.94.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.93.1...v1.94.0) (2026-03-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.93.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.93.0...v1.93.1) (2026-03-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
@@ -29,7 +29,7 @@ export default function ChangePassword() {
|
|
|
29
29
|
// [Dev Note] Custom Apex Endpoint: /auth/change-password
|
|
30
30
|
// You must ensure this Apex class exists in your org
|
|
31
31
|
const sdk = await getDataSDK();
|
|
32
|
-
const response = await sdk.fetch!("/
|
|
32
|
+
const response = await sdk.fetch!("/services/apexrest/auth/change-password", {
|
|
33
33
|
method: "POST",
|
|
34
34
|
body: JSON.stringify({
|
|
35
35
|
currentPassword: formFieldValues.currentPassword,
|
|
@@ -25,7 +25,7 @@ export default function ForgotPassword() {
|
|
|
25
25
|
// [Dev Note] Custom Apex Endpoint: /auth/forgot-password
|
|
26
26
|
// You must ensure this Apex class exists in your org
|
|
27
27
|
const sdk = await getDataSDK();
|
|
28
|
-
const response = await sdk.fetch!("/
|
|
28
|
+
const response = await sdk.fetch!("/services/apexrest/auth/forgot-password", {
|
|
29
29
|
method: "POST",
|
|
30
30
|
body: JSON.stringify({ username: value.username.trim() }),
|
|
31
31
|
headers: {
|
|
@@ -27,11 +27,11 @@ export default function Login() {
|
|
|
27
27
|
try {
|
|
28
28
|
// [Dev Note] Salesforce Integration:
|
|
29
29
|
// We use the Data SDK fetch to make an authenticated (or guest) call to Salesforce.
|
|
30
|
-
// "/
|
|
30
|
+
// "/services/apexrest/auth/login" refers to a custom Apex REST resource.
|
|
31
31
|
// You must ensure this Apex class exists in your org and handles the login logic
|
|
32
32
|
// (e.g., creating a session or returning a token).
|
|
33
33
|
const sdk = await getDataSDK();
|
|
34
|
-
const response = await sdk.fetch!("/
|
|
34
|
+
const response = await sdk.fetch!("/services/apexrest/auth/login", {
|
|
35
35
|
method: "POST",
|
|
36
36
|
body: JSON.stringify({
|
|
37
37
|
email: value.email.trim().toLowerCase(),
|
|
@@ -43,12 +43,12 @@ export default function Register() {
|
|
|
43
43
|
try {
|
|
44
44
|
// [Dev Note] Salesforce Integration:
|
|
45
45
|
// We use the Data SDK fetch to make an authenticated (or guest) call to Salesforce.
|
|
46
|
-
// "/
|
|
46
|
+
// "/services/apexrest/auth/register" refers to a custom Apex Class exposed as a REST resource.
|
|
47
47
|
// You must ensure this Apex class exists in your org and handles registration
|
|
48
48
|
// (e.g., duplicate checks and user creation such as Site.createExternalUser).
|
|
49
49
|
const { confirmPassword, ...request } = formFieldValues;
|
|
50
50
|
const sdk = await getDataSDK();
|
|
51
|
-
const response = await sdk.fetch!("/
|
|
51
|
+
const response = await sdk.fetch!("/services/apexrest/auth/register", {
|
|
52
52
|
method: "POST",
|
|
53
53
|
body: JSON.stringify({ request }),
|
|
54
54
|
headers: {
|
|
@@ -26,7 +26,7 @@ export default function ResetPassword() {
|
|
|
26
26
|
// [Dev Note] Custom Apex Endpoint: /auth/reset-password
|
|
27
27
|
// You must ensure this Apex class exists in your org
|
|
28
28
|
const sdk = await getDataSDK();
|
|
29
|
-
const response = await sdk.fetch!("/
|
|
29
|
+
const response = await sdk.fetch!("/services/apexrest/auth/reset-password", {
|
|
30
30
|
method: "POST",
|
|
31
31
|
body: JSON.stringify({ token, newPassword: value.newPassword }),
|
|
32
32
|
headers: {
|
package/dist/package.json
CHANGED