@vgabriel45/demo-sdk 2.2.0 → 2.4.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/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -76,7 +76,13 @@ export function greetDisplayName(name = "") {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/** Prefix a greeting with custom label text for UI banners. */
|
|
79
|
-
export function greetWithPrefix(prefix = "Welcome", name = "world", options = {}) {
|
|
79
|
+
export function greetWithPrefix(prefix = "Welcome ...", name = "world", options = {}) {
|
|
80
80
|
const cleanPrefix = String(prefix ?? "").trim() || "Welcome";
|
|
81
81
|
return `${cleanPrefix}: ${greet(name, options)}`;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/** Build a multi-line welcome banner for onboarding screens. */
|
|
85
|
+
export function welcomeBanner(name = "world", { title = "Welcome" } = {}) {
|
|
86
|
+
const heading = String(title ?? "").trim() || "Welcome";
|
|
87
|
+
return `${heading}\n${greet(name)}`;
|
|
88
|
+
}
|