@salesforce/webapp-template-app-react-template-b2x-experimental 1.52.0 → 1.52.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/src/{components → auth}/alerts/status-alert.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/forms/auth-form.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/forms/submit-button.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/form.tsx +9 -4
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/card-layout.tsx +7 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/card-skeleton.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{layouts → auth/layouts}/AuthAppLayout.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth/layouts}/authenticationRouteLayout.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth/layouts}/privateRouteLayout.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ChangePassword.tsx +4 -4
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ForgotPassword.tsx +3 -3
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Login.tsx +4 -4
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Profile.tsx +5 -5
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/Register.tsx +4 -9
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{pages → auth/pages}/ResetPassword.tsx +6 -6
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/SessionTimeoutValidator.tsx +6 -6
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/routes.tsx +4 -4
- package/dist/package.json +1 -1
- package/package.json +2 -2
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/authHelpers.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/authenticationConfig.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{context → auth/context}/AuthContext.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/footers/footer-link.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/useCountdownTimer.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{hooks → auth/hooks}/useRetryWithBackoff.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components → auth}/layout/centered-page-layout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{lib → auth/lib}/data-sdk.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/sessionTimeService.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{components/auth → auth}/sessionTimeout/sessionTimeoutConfig.ts +0 -0
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{utils → auth/utils}/helpers.ts +0 -0
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.52.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.52.0...v1.52.1) (2026-02-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [1.52.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.51.0...v1.52.0) (2026-02-24)
|
|
7
15
|
|
|
8
16
|
**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 "
|
|
3
|
+
import { Alert, AlertDescription } from "../../components/ui/alert";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
|
|
6
6
|
const statusAlertVariants = cva("", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from "
|
|
2
|
-
import { Spinner } from "
|
|
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 {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { CenteredPageLayout } from "./centered-page-layout";
|
|
2
|
-
import { Card, CardContent, CardHeader } from "
|
|
3
|
-
import { Skeleton } from "
|
|
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 "../
|
|
1
|
+
import SessionTimeoutValidator from "../sessionTimeout/SessionTimeoutValidator";
|
|
2
2
|
import { AuthProvider } from "../context/AuthContext";
|
|
3
|
-
import AppLayout from "
|
|
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 "
|
|
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 "
|
|
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 "../
|
|
5
|
-
import { AuthForm } from "../
|
|
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 "../
|
|
9
|
-
import { newPasswordSchema } from "../
|
|
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 "../
|
|
4
|
-
import { AuthForm } from "../
|
|
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 "../
|
|
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 "../
|
|
5
|
-
import { AuthForm } from "../
|
|
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 "../
|
|
9
|
-
import { emailSchema, getStartUrl, type AuthResponse } from "../
|
|
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 "../
|
|
7
|
-
import { CardSkeleton } from "../
|
|
8
|
-
import { AuthForm } from "../
|
|
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 "../
|
|
11
|
-
import { emailSchema } from "../
|
|
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 "../
|
|
5
|
-
import { AuthForm } from "../
|
|
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 "../
|
|
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 "../
|
|
4
|
-
import { CenteredPageLayout } from "../
|
|
5
|
-
import { AuthForm } from "../
|
|
6
|
-
import { StatusAlert } from "../
|
|
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 "../
|
|
10
|
-
import { newPasswordSchema } from "../
|
|
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 "
|
|
9
|
+
import { useAuth } from "../../context/AuthContext";
|
|
10
10
|
import { pollSessionTimeServlet, extendSessionTime } from "./sessionTimeService";
|
|
11
|
-
import { useCountdownTimer } from "
|
|
12
|
-
import { useRetryWithBackoff } from "
|
|
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: <
|
|
18
|
+
element: <AuthAppLayout />,
|
|
19
19
|
children: [
|
|
20
20
|
{
|
|
21
21
|
index: true,
|
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.52.
|
|
3
|
+
"version": "1.52.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": "2b681167f08acd9477adca9cd2dcc3af88dfd9de"
|
|
41
41
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|