@salesforce/webapp-template-app-react-template-b2x-experimental 1.53.0 → 1.53.1
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/package-lock.json +3 -3
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/context/AuthContext.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/forms/auth-form.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/forms/submit-button.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/layouts/authenticationRouteLayout.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/layouts/privateRouteLayout.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/sessionTimeout/SessionTimeoutValidator.tsx +3 -3
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/routes.tsx +9 -9
- package/dist/package.json +1 -1
- package/package.json +2 -2
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.53.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.53.0...v1.53.1) (2026-02-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [1.53.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.52.1...v1.53.0) (2026-02-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
@@ -4036,9 +4036,9 @@
|
|
|
4036
4036
|
}
|
|
4037
4037
|
},
|
|
4038
4038
|
"node_modules/@modelcontextprotocol/sdk": {
|
|
4039
|
-
"version": "1.27.
|
|
4040
|
-
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.27.
|
|
4041
|
-
"integrity": "sha512-
|
|
4039
|
+
"version": "1.27.1",
|
|
4040
|
+
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.27.1.tgz",
|
|
4041
|
+
"integrity": "sha512-sr6GbP+4edBwFndLbM60gf07z0FQ79gaExpnsjMGePXqFcSSb7t6iscpjk9DhFhwd+mTEQrzNafGP8/iGGFYaA==",
|
|
4042
4042
|
"license": "MIT",
|
|
4043
4043
|
"dependencies": {
|
|
4044
4044
|
"@hono/node-server": "^1.19.9",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useState, useEffect, useCallback, type ReactNode } from "react";
|
|
2
2
|
import { getCurrentUser } from "@salesforce/webapp-experimental/api";
|
|
3
|
-
import { API_ROUTES } from "../
|
|
3
|
+
import { API_ROUTES } from "../authenticationConfig";
|
|
4
4
|
|
|
5
5
|
interface User {
|
|
6
6
|
readonly id: string;
|
package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/auth/forms/auth-form.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { StatusAlert } from "../alerts/status-alert";
|
|
|
3
3
|
import { FooterLink } from "../footers/footer-link";
|
|
4
4
|
import { SubmitButton } from "./submit-button";
|
|
5
5
|
import { CardLayout } from "../layout/card-layout";
|
|
6
|
-
import { useFormContext } from "
|
|
6
|
+
import { useFormContext } from "../hooks/form";
|
|
7
7
|
import { useId } from "react";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../../components/ui/button";
|
|
2
2
|
import { Spinner } from "../../components/ui/spinner";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
|
-
import { useFormContext } from "
|
|
4
|
+
import { useFormContext } from "../hooks/form";
|
|
5
5
|
|
|
6
6
|
interface SubmitButtonProps extends Omit<React.ComponentProps<typeof Button>, "type"> {
|
|
7
7
|
/** Button text when not submitting */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Navigate, Outlet, useSearchParams } from "react-router";
|
|
2
|
-
import { useAuth } from "
|
|
2
|
+
import { useAuth } from "../context/AuthContext";
|
|
3
3
|
import { getStartUrl } from "../authHelpers";
|
|
4
4
|
import { CardSkeleton } from "../layout/card-skeleton";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Navigate, Outlet, useLocation } from "react-router";
|
|
2
|
-
import { useAuth } from "
|
|
2
|
+
import { useAuth } from "../context/AuthContext";
|
|
3
3
|
import { AUTH_REDIRECT_PARAM, ROUTES } from "../authenticationConfig";
|
|
4
4
|
import { CardSkeleton } from "../layout/card-skeleton";
|
|
5
5
|
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { useEffect, useState, useCallback, useRef } from "react";
|
|
7
7
|
import { useLocation } from "react-router";
|
|
8
8
|
import { X } from "lucide-react";
|
|
9
|
-
import { useAuth } from "
|
|
9
|
+
import { useAuth } from "../context/AuthContext";
|
|
10
10
|
import { pollSessionTimeServlet, extendSessionTime } from "./sessionTimeService";
|
|
11
|
-
import { useCountdownTimer } from "
|
|
12
|
-
import { useRetryWithBackoff } from "
|
|
11
|
+
import { useCountdownTimer } from "../hooks/useCountdownTimer";
|
|
12
|
+
import { useRetryWithBackoff } from "../hooks/useRetryWithBackoff";
|
|
13
13
|
import { Alert, AlertTitle, AlertDescription } from "../../components/ui/alert";
|
|
14
14
|
import { Button } from "../../components/ui/button";
|
|
15
15
|
import {
|
|
@@ -2,15 +2,15 @@ import type { RouteObject } from 'react-router';
|
|
|
2
2
|
import Home from './pages/Home';
|
|
3
3
|
import NotFound from './pages/NotFound';
|
|
4
4
|
import AuthAppLayout from "./auth/layouts/AuthAppLayout";
|
|
5
|
-
import Login from "./pages/Login";
|
|
6
|
-
import Register from "./pages/Register";
|
|
7
|
-
import ForgotPassword from "./pages/ForgotPassword";
|
|
8
|
-
import ResetPassword from "./pages/ResetPassword";
|
|
9
|
-
import Profile from "./pages/Profile";
|
|
10
|
-
import ChangePassword from "./
|
|
11
|
-
import AuthenticationRoute from "./
|
|
12
|
-
import PrivateRoute from "./
|
|
13
|
-
import { ROUTES } from "./
|
|
5
|
+
import Login from "./auth/pages/Login";
|
|
6
|
+
import Register from "./auth/pages/Register";
|
|
7
|
+
import ForgotPassword from "./auth/pages/ForgotPassword";
|
|
8
|
+
import ResetPassword from "./auth/pages/ResetPassword";
|
|
9
|
+
import Profile from "./auth/pages/Profile";
|
|
10
|
+
import ChangePassword from "./auth/pages/ChangePassword";
|
|
11
|
+
import AuthenticationRoute from "./auth/layouts/authenticationRouteLayout";
|
|
12
|
+
import PrivateRoute from "./auth/layouts/privateRouteLayout";
|
|
13
|
+
import { ROUTES } from "./auth/authenticationConfig";
|
|
14
14
|
|
|
15
15
|
export const routes: RouteObject[] = [
|
|
16
16
|
{
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-app-react-template-b2x-experimental",
|
|
3
|
-
"version": "1.53.
|
|
3
|
+
"version": "1.53.1",
|
|
4
4
|
"description": "Base reference app template",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c483d93820fdddc821cdb3706c51263999cbcf1f"
|
|
41
41
|
}
|