@salesforce/ui-bundle-features 13.0.0 → 13.1.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/features.json +127 -0
- package/package.json +1 -1
package/dist/features.json
CHANGED
|
@@ -759,6 +759,133 @@
|
|
|
759
759
|
"AgentforceConversationClient - Vue component that embeds an Agentforce agent over Lightning Out"
|
|
760
760
|
]
|
|
761
761
|
},
|
|
762
|
+
"vue-authentication": {
|
|
763
|
+
"name": "Vue Authentication",
|
|
764
|
+
"package": "@salesforce/ui-bundle-template-feature-vue-authentication",
|
|
765
|
+
"shortDescription": "Complete user authentication system for Vue UI Bundles with login, registration, and password management",
|
|
766
|
+
"longDescription": "Complete user authentication system for Vue UI Bundles with login, registration, and password reset flows. Includes protected route guards, session management, and an authentication context provided via Vue's provide/inject. Handles user state across the application and automatic session-timeout handling. Built with Vue 3 <script setup> single-file components and @tanstack/vue-form + zod for form state and validation. Features include: an auth context (provideAuth / useAuth / useUser) for managing auth state, PrivateRouteLayout for protecting authenticated-only pages, AuthAppLayout wiring session-timeout validation, authentication pages (Login, Register, Profile, Forgot Password, Reset Password, Change Password), and backend Apex classes for authentication handling.",
|
|
767
|
+
"keywords": [
|
|
768
|
+
"vue",
|
|
769
|
+
"login",
|
|
770
|
+
"register",
|
|
771
|
+
"password reset",
|
|
772
|
+
"protected routes",
|
|
773
|
+
"auth",
|
|
774
|
+
"session",
|
|
775
|
+
"user management"
|
|
776
|
+
],
|
|
777
|
+
"featureDependencies": [],
|
|
778
|
+
"packageDependencies": {
|
|
779
|
+
"@salesforce/platform-sdk": "^4.0.0",
|
|
780
|
+
"@salesforce/ui-bundle": "^4.0.0",
|
|
781
|
+
"@tanstack/vue-form": "^1.33.5",
|
|
782
|
+
"zod": "^4.3.6",
|
|
783
|
+
"vue": "^3.5.13",
|
|
784
|
+
"vue-router": "^4.5.0"
|
|
785
|
+
},
|
|
786
|
+
"copy": [
|
|
787
|
+
{
|
|
788
|
+
"from": "force-app/main/default/classes",
|
|
789
|
+
"to": "<sfdxRoot>/classes",
|
|
790
|
+
"description": "Apex authentication handler classes"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"from": "force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication",
|
|
794
|
+
"to": "<uiBundleDir>/src/features/authentication",
|
|
795
|
+
"description": "Authentication components, composables, context, and pages"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"from": "force-app/main/default/uiBundles/feature-vue-authentication/src/router.ts",
|
|
799
|
+
"to": "<uiBundleDir>/src/features/authentication/__example__authentication-routes.ts",
|
|
800
|
+
"description": "Example route file wiring the authentication routes — merged into your app's route file by the patches route-merger",
|
|
801
|
+
"integrationTarget": "src/router.ts"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"features": [
|
|
805
|
+
"Checks authentication status via UI API GraphQL (uiapi.currentUser)",
|
|
806
|
+
"Protects routes with automatic redirect to login",
|
|
807
|
+
"Supports return URL (startUrl) query parameter for post-login navigation",
|
|
808
|
+
"Session timeout with configurable duration",
|
|
809
|
+
"Password strength validation",
|
|
810
|
+
"Forgot password and reset password flows",
|
|
811
|
+
"User profile display and editing",
|
|
812
|
+
"Change password functionality"
|
|
813
|
+
],
|
|
814
|
+
"components": [
|
|
815
|
+
"provideAuth / useAuth / useUser - Vue provide/inject auth state",
|
|
816
|
+
"AuthMenu - Composable authentication menu with login/logout dropdown",
|
|
817
|
+
"PrivateRouteLayout - Route protection for authenticated-only pages",
|
|
818
|
+
"AuthAppLayout - App layout that wires session-timeout validation",
|
|
819
|
+
"Login - Login page component",
|
|
820
|
+
"Register - Registration page component",
|
|
821
|
+
"Profile - User profile page",
|
|
822
|
+
"ForgotPassword - Password recovery flow",
|
|
823
|
+
"ResetPassword - Password reset page",
|
|
824
|
+
"ChangePassword - Password change page"
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"vue-language-switcher": {
|
|
828
|
+
"name": "Vue Language Switcher",
|
|
829
|
+
"package": "@salesforce/ui-bundle-template-feature-vue-language-switcher",
|
|
830
|
+
"shortDescription": "B2X language switcher for Vue that rewrites the URL language segment and reloads the page",
|
|
831
|
+
"longDescription": "A drop-in <LanguageSwitcher /> Vue component for public B2X (Experience) apps. It renders a labeled <select> of the site's supported languages; selecting one rewrites the current URL so the chosen language becomes the first path segment after basePath, then reloads the page at that new URL. A full reload lets the platform serve the correctly localized content — the feature owns only URL rewriting, not translation loading or i18n state. The current language is read from globalThis.SFDC_ENV.language, falling back to a default when absent or unrecognized. The list of available languages is hardcoded (in languages.ts) and manually kept in sync with the site's digitalExperiences/site/<siteName>/sfdc_cms__languageSettings/content.json, since there is no runtime API to read language settings on a published site. For LOCAL DEVELOPMENT, the feature integrates with the site entry of @salesforce/vite-plugin-ui-bundle: switch your vite.config.ts to import @salesforce/vite-plugin-ui-bundle/site and pass the supported LANGUAGES, and the dev server will inject SFDC_ENV.language and a language-prefixed basePath per request (mirroring production) so switching works locally without a server restart. This feature is intended for B2X apps only; B2E (internal) apps derive language from the logged-in user's profile and have no language URL segment.",
|
|
832
|
+
"keywords": [
|
|
833
|
+
"vue",
|
|
834
|
+
"language",
|
|
835
|
+
"language switcher",
|
|
836
|
+
"locale",
|
|
837
|
+
"localization",
|
|
838
|
+
"i18n",
|
|
839
|
+
"b2x",
|
|
840
|
+
"url"
|
|
841
|
+
],
|
|
842
|
+
"featureDependencies": [],
|
|
843
|
+
"packageDependencies": {
|
|
844
|
+
"vue": "^3.5.13",
|
|
845
|
+
"vue-router": "^4.5.0"
|
|
846
|
+
},
|
|
847
|
+
"copy": [
|
|
848
|
+
{
|
|
849
|
+
"from": "force-app/main/default/uiBundles/feature-vue-language-switcher/src/features/language-switcher",
|
|
850
|
+
"to": "<uiBundleDir>/src/features/language-switcher",
|
|
851
|
+
"description": "Language switcher library: <LanguageSwitcher /> component, hardcoded language list, and the pure buildLanguageUrl URL-rewriting utility"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"from": "force-app/main/default/uiBundles/feature-vue-language-switcher/src/types/globals.d.ts",
|
|
855
|
+
"to": "<uiBundleDir>/src/types/language-switcher-globals.d.ts",
|
|
856
|
+
"description": "Ambient augmentation adding the optional SFDC_ENV.language field the switcher reads"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"from": "force-app/main/default/uiBundles/feature-vue-language-switcher/src/features/language-switcher/__examples__/language-switcher-example.vue",
|
|
860
|
+
"to": "<uiBundleDir>/src/features/language-switcher/__examples__/language-switcher-example.vue",
|
|
861
|
+
"description": "Example showing how to mount <LanguageSwitcher /> in an app header/layout",
|
|
862
|
+
"integrationTarget": "src/appLayout.vue"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"from": "force-app/main/default/uiBundles/feature-vue-language-switcher/src/features/language-switcher/__examples__/vite-config-site-example.ts",
|
|
866
|
+
"to": "<uiBundleDir>/src/features/language-switcher/__examples__/vite-config-site-example.ts",
|
|
867
|
+
"description": "Example showing how to switch vite.config.ts to the @salesforce/vite-plugin-ui-bundle/site entry so language switching works in local dev (inject SFDC_ENV.language + language-prefixed basePath)",
|
|
868
|
+
"integrationTarget": "vite.config.ts"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
"features": [
|
|
872
|
+
"Rewrites the URL so the chosen language is the first path segment after basePath, then reloads",
|
|
873
|
+
"Replaces an existing known language segment instead of stacking a new one",
|
|
874
|
+
"Serves the default language un-prefixed: switching to it removes the language segment",
|
|
875
|
+
"Preserves the rest of the path, the query string, and the hash when rewriting",
|
|
876
|
+
"Reads the current language from SFDC_ENV.language with a safe default fallback",
|
|
877
|
+
"Hardcoded language list kept in sync with the site's sfdc_cms__languageSettings content.json",
|
|
878
|
+
"No-ops when the selected language already matches the current one",
|
|
879
|
+
"Local dev: integrates with @salesforce/vite-plugin-ui-bundle/site to inject SFDC_ENV.language + a language-prefixed basePath per request, so switching works locally without a server restart"
|
|
880
|
+
],
|
|
881
|
+
"components": [
|
|
882
|
+
"LanguageSwitcher - Drop-in labeled <select> that switches language via URL rewrite + reload",
|
|
883
|
+
"buildLanguageUrl - Pure helper that inserts/replaces/removes the leading language path segment",
|
|
884
|
+
"getCurrentLanguage - Resolves the active language from SFDC_ENV with default fallback",
|
|
885
|
+
"LANGUAGES - Typed list of supported languages ({ code, label })",
|
|
886
|
+
"DEFAULT_LANGUAGE - Default language code used when SFDC_ENV.language is missing/unknown"
|
|
887
|
+
]
|
|
888
|
+
},
|
|
762
889
|
"vue-search": {
|
|
763
890
|
"name": "Vue Search (Beta)",
|
|
764
891
|
"package": "@salesforce/ui-bundle-template-feature-vue-search",
|
package/package.json
CHANGED