wealth-alpha-chat-widget 2.0.6 → 2.0.7
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/index.cjs +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -770,15 +770,12 @@ function AuthGate({ brandName, loginUrl, onLoginClick }) {
|
|
|
770
770
|
] });
|
|
771
771
|
}
|
|
772
772
|
var HOME_ICON = '<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/>';
|
|
773
|
-
var
|
|
774
|
-
var NEXT_ICON = '<polyline points="9 18 15 12 9 6"/>';
|
|
773
|
+
var BACK_ICON = '<line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/>';
|
|
775
774
|
var EMOJI_RE = /[\u{1F000}-\u{1FAFF}\u{2190}-\u{21FF}\u{2300}-\u{27BF}\u{2B00}-\u{2BFF}\u{FE00}-\u{FE0F}\u{1F1E6}-\u{1F1FF}\u{20E3}]/gu;
|
|
776
775
|
var stripEmoji = (s) => s.replace(EMOJI_RE, "").replace(/\s{2,}/g, " ").trim();
|
|
777
776
|
function navIconFor(chip) {
|
|
778
777
|
if (chip.id === "__root__") return HOME_ICON;
|
|
779
|
-
if (chip.
|
|
780
|
-
return /prev/i.test(chip.label) ? PREV_ICON : NEXT_ICON;
|
|
781
|
-
}
|
|
778
|
+
if (chip.label.trim() === "Back") return BACK_ICON;
|
|
782
779
|
return null;
|
|
783
780
|
}
|
|
784
781
|
function Chip({ chip, disabled, active, onClick }) {
|