@salesforce/webapp-template-app-react-template-b2x-experimental 1.52.0 → 1.53.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.
Files changed (31) hide show
  1. package/dist/CHANGELOG.md +16 -0
  2. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/alerts/status-alert.tsx +1 -1
  3. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/forms/auth-form.tsx +1 -1
  4. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/forms/submit-button.tsx +2 -2
  5. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/form.tsx +9 -4
  6. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/card-layout.tsx +7 -1
  7. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/card-skeleton.tsx +2 -2
  8. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{layouts → auth/layouts}/AuthAppLayout.tsx +2 -2
  9. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth/layouts}/authenticationRouteLayout.tsx +1 -1
  10. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth/layouts}/privateRouteLayout.tsx +1 -1
  11. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ChangePassword.tsx +4 -4
  12. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ForgotPassword.tsx +3 -3
  13. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Login.tsx +4 -4
  14. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Profile.tsx +5 -5
  15. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Register.tsx +4 -9
  16. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ResetPassword.tsx +6 -6
  17. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/SessionTimeoutValidator.tsx +6 -6
  18. package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/routes.tsx +4 -4
  19. package/dist/package.json +1 -1
  20. package/package.json +2 -2
  21. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/authHelpers.ts +0 -0
  22. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/authenticationConfig.ts +0 -0
  23. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{context → auth/context}/AuthContext.tsx +0 -0
  24. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/footers/footer-link.tsx +0 -0
  25. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/useCountdownTimer.ts +0 -0
  26. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/useRetryWithBackoff.ts +0 -0
  27. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/centered-page-layout.tsx +0 -0
  28. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{lib → auth/lib}/data-sdk.ts +0 -0
  29. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/sessionTimeService.ts +0 -0
  30. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/sessionTimeoutConfig.ts +0 -0
  31. /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{utils → auth/utils}/helpers.ts +0 -0
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.52.1...v1.53.0) (2026-02-24)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.52.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.52.0...v1.52.1) (2026-02-24)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.52.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.51.0...v1.52.0) (2026-02-24)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
@@ -1,6 +1,6 @@
1
1
  import { cva, type VariantProps } from "class-variance-authority";
2
2
  import { AlertCircleIcon, CheckCircle2Icon } from "lucide-react";
3
- import { Alert, AlertDescription } from "../ui/alert";
3
+ import { Alert, AlertDescription } from "../../components/ui/alert";
4
4
  import { useId } from "react";
5
5
 
6
6
  const statusAlertVariants = cva("", {
@@ -1,4 +1,4 @@
1
- import { FieldGroup } from "../ui/field";
1
+ import { FieldGroup } from "../../components/ui/field";
2
2
  import { StatusAlert } from "../alerts/status-alert";
3
3
  import { FooterLink } from "../footers/footer-link";
4
4
  import { SubmitButton } from "./submit-button";
@@ -1,5 +1,5 @@
1
- import { Button } from "../ui/button";
2
- import { Spinner } from "../ui/spinner";
1
+ import { Button } from "../../components/ui/button";
2
+ import { Spinner } from "../../components/ui/spinner";
3
3
  import { cn } from "../../lib/utils";
4
4
  import { useFormContext } from "../../hooks/form";
5
5
 
@@ -1,9 +1,14 @@
1
1
  import { useId } from "react";
2
2
  import { createFormHookContexts, createFormHook } from "@tanstack/react-form";
3
- import { Field, FieldDescription, FieldError, FieldLabel } from "../components/ui/field";
4
- import { Input } from "../components/ui/input";
5
- import { cn } from "../lib/utils";
6
- import { AUTH_PLACEHOLDERS } from "../components/auth/authenticationConfig";
3
+ import {
4
+ Field,
5
+ FieldDescription,
6
+ FieldError,
7
+ FieldLabel,
8
+ } from "../../components/ui/field";
9
+ import { Input } from "../../components/ui/input";
10
+ import { cn } from "../../lib/utils";
11
+ import { AUTH_PLACEHOLDERS } from "../authenticationConfig";
7
12
 
8
13
  // Create form hook contexts
9
14
  export const { fieldContext, formContext, useFieldContext, useFormContext } =
@@ -1,4 +1,10 @@
1
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "../ui/card";
1
+ import {
2
+ Card,
3
+ CardContent,
4
+ CardDescription,
5
+ CardHeader,
6
+ CardTitle,
7
+ } from "../../components/ui/card";
2
8
 
3
9
  interface CardLayoutProps {
4
10
  title: string;
@@ -1,6 +1,6 @@
1
1
  import { CenteredPageLayout } from "./centered-page-layout";
2
- import { Card, CardContent, CardHeader } from "../ui/card";
3
- import { Skeleton } from "../ui/skeleton";
2
+ import { Card, CardContent, CardHeader } from "../../components/ui/card";
3
+ import { Skeleton } from "../../components/ui/skeleton";
4
4
 
5
5
  interface CardSkeletonProps {
6
6
  /**
@@ -1,6 +1,6 @@
1
- import SessionTimeoutValidator from "../components/auth/sessionTimeout/SessionTimeoutValidator";
1
+ import SessionTimeoutValidator from "../sessionTimeout/SessionTimeoutValidator";
2
2
  import { AuthProvider } from "../context/AuthContext";
3
- import AppLayout from "../appLayout";
3
+ import AppLayout from "../../appLayout";
4
4
 
5
5
  export default function AuthAppLayout() {
6
6
  return (
@@ -1,6 +1,6 @@
1
1
  import { Navigate, Outlet, useSearchParams } from "react-router";
2
2
  import { useAuth } from "../../context/AuthContext";
3
- import { getStartUrl } from "./authHelpers";
3
+ import { getStartUrl } from "../authHelpers";
4
4
  import { CardSkeleton } from "../layout/card-skeleton";
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { Navigate, Outlet, useLocation } from "react-router";
2
2
  import { useAuth } from "../../context/AuthContext";
3
- import { AUTH_REDIRECT_PARAM, ROUTES } from "./authenticationConfig";
3
+ import { AUTH_REDIRECT_PARAM, ROUTES } from "../authenticationConfig";
4
4
  import { CardSkeleton } from "../layout/card-skeleton";
5
5
 
6
6
  /**
@@ -1,12 +1,12 @@
1
1
  import { useState } from "react";
2
2
  import { Link } from "react-router";
3
3
  import { z } from "zod";
4
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
5
- import { AuthForm } from "../components/forms/auth-form";
4
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
5
+ import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
7
  import { getDataSDK } from "../lib/data-sdk";
8
- import { ROUTES, AUTH_PLACEHOLDERS } from "../components/auth/authenticationConfig";
9
- import { newPasswordSchema } from "../components/auth/authHelpers";
8
+ import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
9
+ import { newPasswordSchema } from "../authHelpers";
10
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
11
11
 
12
12
  const changePasswordSchema = z
@@ -1,10 +1,10 @@
1
1
  import { useState } from "react";
2
2
  import { z } from "zod";
3
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
4
- import { AuthForm } from "../components/forms/auth-form";
3
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
4
+ import { AuthForm } from "../forms/auth-form";
5
5
  import { useAppForm } from "../hooks/form";
6
6
  import { getDataSDK } from "../lib/data-sdk";
7
- import { ROUTES, AUTH_PLACEHOLDERS } from "../components/auth/authenticationConfig";
7
+ import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
8
8
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
9
9
 
10
10
  const forgotPasswordSchema = z.object({
@@ -1,12 +1,12 @@
1
1
  import { useState } from "react";
2
2
  import { useNavigate, useSearchParams, Link } from "react-router";
3
3
  import { z } from "zod";
4
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
5
- import { AuthForm } from "../components/forms/auth-form";
4
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
5
+ import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
7
  import { getDataSDK } from "../lib/data-sdk";
8
- import { ROUTES } from "../components/auth/authenticationConfig";
9
- import { emailSchema, getStartUrl, type AuthResponse } from "../components/auth/authHelpers";
8
+ import { ROUTES } from "../authenticationConfig";
9
+ import { emailSchema, getStartUrl, type AuthResponse } from "../authHelpers";
10
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
11
11
 
12
12
  const loginSchema = z.object({
@@ -3,12 +3,12 @@ import { z } from "zod";
3
3
 
4
4
  import { executeGraphQL } from "@salesforce/webapp-experimental/api";
5
5
 
6
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
7
- import { CardSkeleton } from "../components/layout/card-skeleton";
8
- import { AuthForm } from "../components/forms/auth-form";
6
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
7
+ import { CardSkeleton } from "../layout/card-skeleton";
8
+ import { AuthForm } from "../forms/auth-form";
9
9
  import { useAppForm } from "../hooks/form";
10
- import { ROUTES } from "../components/auth/authenticationConfig";
11
- import { emailSchema } from "../components/auth/authHelpers";
10
+ import { ROUTES } from "../authenticationConfig";
11
+ import { emailSchema } from "../authHelpers";
12
12
  import { flattenGraphQLRecord, getErrorMessage } from "../utils/helpers";
13
13
  import { getUser } from "../context/AuthContext";
14
14
 
@@ -1,17 +1,12 @@
1
1
  import { useState } from "react";
2
2
  import { useNavigate, useSearchParams } from "react-router";
3
3
  import { z } from "zod";
4
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
5
- import { AuthForm } from "../components/forms/auth-form";
4
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
5
+ import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
7
  import { getDataSDK } from "../lib/data-sdk";
8
- import { ROUTES, AUTH_PLACEHOLDERS } from "../components/auth/authenticationConfig";
9
- import {
10
- emailSchema,
11
- passwordSchema,
12
- getStartUrl,
13
- type AuthResponse,
14
- } from "../components/auth/authHelpers";
8
+ import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
9
+ import { emailSchema, passwordSchema, getStartUrl, type AuthResponse } from "../authHelpers";
15
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
16
11
 
17
12
  const registerSchema = z
@@ -1,13 +1,13 @@
1
1
  import { useState } from "react";
2
2
  import { Link, useSearchParams } from "react-router";
3
- import { CardLayout } from "../components/layout/card-layout";
4
- import { CenteredPageLayout } from "../components/layout/centered-page-layout";
5
- import { AuthForm } from "../components/forms/auth-form";
6
- import { StatusAlert } from "../components/alerts/status-alert";
3
+ import { CardLayout } from "../layout/card-layout";
4
+ import { CenteredPageLayout } from "../layout/centered-page-layout";
5
+ import { AuthForm } from "../forms/auth-form";
6
+ import { StatusAlert } from "../alerts/status-alert";
7
7
  import { useAppForm } from "../hooks/form";
8
8
  import { getDataSDK } from "../lib/data-sdk";
9
- import { ROUTES, AUTH_PLACEHOLDERS } from "../components/auth/authenticationConfig";
10
- import { newPasswordSchema } from "../components/auth/authHelpers";
9
+ import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
10
+ import { newPasswordSchema } from "../authHelpers";
11
11
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
12
12
 
13
13
  export default function ResetPassword() {
@@ -6,12 +6,12 @@
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 "../../../context/AuthContext";
9
+ import { useAuth } from "../../context/AuthContext";
10
10
  import { pollSessionTimeServlet, extendSessionTime } from "./sessionTimeService";
11
- import { useCountdownTimer } from "../../../hooks/useCountdownTimer";
12
- import { useRetryWithBackoff } from "../../../hooks/useRetryWithBackoff";
13
- import { Alert, AlertTitle, AlertDescription } from "../../ui/alert";
14
- import { Button } from "../../ui/button";
11
+ import { useCountdownTimer } from "../../hooks/useCountdownTimer";
12
+ import { useRetryWithBackoff } from "../../hooks/useRetryWithBackoff";
13
+ import { Alert, AlertTitle, AlertDescription } from "../../components/ui/alert";
14
+ import { Button } from "../../components/ui/button";
15
15
  import {
16
16
  Dialog,
17
17
  DialogContent,
@@ -19,7 +19,7 @@ import {
19
19
  DialogTitle,
20
20
  DialogDescription,
21
21
  DialogFooter,
22
- } from "../../ui/dialog";
22
+ } from "../../components/ui/dialog";
23
23
  import {
24
24
  STORAGE_KEYS,
25
25
  LABELS,
@@ -1,21 +1,21 @@
1
1
  import type { RouteObject } from 'react-router';
2
2
  import Home from './pages/Home';
3
3
  import NotFound from './pages/NotFound';
4
+ import AuthAppLayout from "./auth/layouts/AuthAppLayout";
4
5
  import Login from "./pages/Login";
5
6
  import Register from "./pages/Register";
6
7
  import ForgotPassword from "./pages/ForgotPassword";
7
8
  import ResetPassword from "./pages/ResetPassword";
8
9
  import Profile from "./pages/Profile";
9
- import ChangePassword from "./pages/ChangePassword";
10
- import AuthenticationRoute from "./components/auth/authenticationRouteLayout";
10
+ import ChangePassword from "./components/auth/pages/ChangePassword";
11
+ import AuthenticationRoute from "./components/auth/layouts/authenticationRouteLayout";
11
12
  import PrivateRoute from "./components/auth/privateRouteLayout";
12
13
  import { ROUTES } from "./components/auth/authenticationConfig";
13
- import AppLayout from "./appLayout";
14
14
 
15
15
  export const routes: RouteObject[] = [
16
16
  {
17
17
  path: "/",
18
- element: <AppLayout />,
18
+ element: <AuthAppLayout />,
19
19
  children: [
20
20
  {
21
21
  index: true,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-app-react-template-b2x-experimental",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
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": "ca188815c4810100fe2029d791105091cd78067f"
40
+ "gitHead": "ecdad417f3e8de0f911ff1113ff9fe7fb1360f22"
41
41
  }