@landtrustinc/design-system 1.2.46-beta.0 → 1.2.46-beta.2
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.d.ts +9 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1510,6 +1510,14 @@ type CtaCardProps = {
|
|
|
1510
1510
|
className?: string;
|
|
1511
1511
|
};
|
|
1512
1512
|
|
|
1513
|
+
/**
|
|
1514
|
+
* CtaCard - A promotional card component for displaying CTAs
|
|
1515
|
+
*
|
|
1516
|
+
* Used to display contextual promotions like LandTrust+ benefits.
|
|
1517
|
+
* Content is driven by props (no hardcoded variants).
|
|
1518
|
+
*/
|
|
1519
|
+
declare const CtaCard: FC<CtaCardProps>;
|
|
1520
|
+
|
|
1513
1521
|
type DividerProps = React__default.HTMLAttributes<HTMLHRElement> & SpaceProps & {
|
|
1514
1522
|
/**
|
|
1515
1523
|
* Additional CSS class names
|
|
@@ -2882,4 +2890,4 @@ declare const Widget: React__default.FC<WidgetProps> & {
|
|
|
2882
2890
|
}>;
|
|
2883
2891
|
};
|
|
2884
2892
|
|
|
2885
|
-
export { AIResponse, type AIResponseProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, AddOnBlock, type AddOnBlockProps, AvailabilityBadge, type AvailabilityBadgeProps, type AvailabilityBadgeVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarType, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, BytescaleImage, type BytescaleImageProps, type CarouselPositions, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, ContactLandownerButton, type ContactLandownerButtonProps, Container, type CtaCardProps, Divider, type DividerProps, type DotsColors, type EarlyAccessTimerConfig, type FeatureItem, FeatureList, FeatureListItem, type FeatureListItemProps, type FeatureListProps, type FeatureListSection, FieldNoteCard, type FieldNoteCardProps, FormField, type FormFieldProps, GlobalStyle, Grid, type GridBreakpoint, GridContainer, type GridContainerProps, type GridProps, Heading, type HeadingProps, HuntCard, type HuntCardProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, IconSizeMap, type IconVariantTypes$1 as IconVariantTypes, type ImageGalleryItem, ImageGalleryModal, ImageGalleryModal as ImageGalleryModalComponent, type ImageGalleryModalProps, InfoBox, type InfoBoxProps, Input, type InputProps, type InputSize, type InputVariant, LandownerProfile, type LandownerProfileProps, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MarkdownContent, type MarkdownContentProps, MessageBubble, type MessageBubbleProps, Modal, Modal as ModalComponent, type ModalProps, type ModalSize, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardBadge, type PackageCardProps, PackageHeader, type PackageHeaderProps, ProgressBar, type ProgressBarProps, type ResponsiveValue, ReviewCard, type ReviewCardProps, Reviews, type ReviewsProps, ReviewsShowcase, ScrollingCarousel, type ScrollingCarouselProps, ScrollingCarouselStep, type ScrollingCarouselStepProps, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, StarRating, type StarRatingProps, type SuggestedPrompt, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, type TimeLeft, Timer, type TimerProps, Tooltip, type TooltipPosition, type TooltipProps, TopMatchingFieldNote, type TopMatchingFieldNoteProps, TopMatchingReview, type TopMatchingReviewProps, UserCard, type UserCardProps, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };
|
|
2893
|
+
export { AIResponse, type AIResponseProps, ActionMenu, type ActionMenuItem, type ActionMenuProps, AddOnBlock, type AddOnBlockProps, AvailabilityBadge, type AvailabilityBadgeProps, type AvailabilityBadgeVariant, Avatar, type AvatarProps, type AvatarSize, type AvatarType, type BaseInputProps, Box, type BoxProps, Button, type ButtonProps, type ButtonVariants, BytescaleImage, type BytescaleImageProps, type CarouselPositions, ChatWidget, type ChatWidgetMessage, type ChatWidgetProps, Column, type ColumnProps, ContactLandownerButton, type ContactLandownerButtonProps, Container, CtaCard, type CtaCardProps, Divider, type DividerProps, type DotsColors, type EarlyAccessTimerConfig, type FeatureItem, FeatureList, FeatureListItem, type FeatureListItemProps, type FeatureListProps, type FeatureListSection, FieldNoteCard, type FieldNoteCardProps, FormField, type FormFieldProps, GlobalStyle, Grid, type GridBreakpoint, GridContainer, type GridContainerProps, type GridProps, Heading, type HeadingProps, HuntCard, type HuntCardProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, IconSizeMap, type IconVariantTypes$1 as IconVariantTypes, type ImageGalleryItem, ImageGalleryModal, ImageGalleryModal as ImageGalleryModalComponent, type ImageGalleryModalProps, InfoBox, type InfoBoxProps, Input, type InputProps, type InputSize, type InputVariant, LandownerProfile, type LandownerProfileProps, LayoutTokens, ListingChat, type ListingChatProps, Logo, type LogoProps, type LogoTheme, type LogoVariant, MarkdownContent, type MarkdownContentProps, MessageBubble, type MessageBubbleProps, Modal, Modal as ModalComponent, type ModalProps, type ModalSize, type NavLink, Navigation, type NavigationProps, PackageCard, type PackageCardBadge, type PackageCardProps, PackageHeader, type PackageHeaderProps, ProgressBar, type ProgressBarProps, type ResponsiveValue, ReviewCard, type ReviewCardProps, Reviews, type ReviewsProps, ReviewsShowcase, ScrollingCarousel, type ScrollingCarouselProps, ScrollingCarouselStep, type ScrollingCarouselStepProps, Select, type SelectOption, type SelectProps, Spinner, type SpinnerProps, StarRating, type StarRatingProps, type SuggestedPrompt, type TFontWeight, type THeadingSize, type TTextAlign, type TTextSize, type TTextWrap, TagChip, type TagChipProps, type TagChipVariant, Text, TextArea, type TextProps, type TextareaProps, ThemeTokens, type TimeLeft, Timer, type TimerProps, Tooltip, type TooltipPosition, type TooltipProps, TopMatchingFieldNote, type TopMatchingFieldNoteProps, TopMatchingReview, type TopMatchingReviewProps, UserCard, type UserCardProps, Widget, WidgetPanel, type WidgetPanelProps, type WidgetProps, WidgetTrigger, type WidgetTriggerProps, globalStyles, styles };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
Column: () => Column_default,
|
|
43
43
|
ContactLandownerButton: () => ContactLandownerButton,
|
|
44
44
|
Container: () => Container_default,
|
|
45
|
+
CtaCard: () => CtaCard_default,
|
|
45
46
|
Divider: () => Divider_default,
|
|
46
47
|
FeatureList: () => FeatureList_default,
|
|
47
48
|
FeatureListItem: () => FeatureListItem_default,
|
|
@@ -6604,6 +6605,7 @@ var ChatWidget = ({
|
|
|
6604
6605
|
const scrollRef = (0, import_react36.useRef)(null);
|
|
6605
6606
|
const savedScrollPosition = (0, import_react36.useRef)(0);
|
|
6606
6607
|
const previousMessagesLength = (0, import_react36.useRef)(messages.length);
|
|
6608
|
+
const previousMessagesRef = (0, import_react36.useRef)(messages);
|
|
6607
6609
|
const isControlled = typeof expanded === "boolean";
|
|
6608
6610
|
const [internalExpanded, setInternalExpanded] = (0, import_react36.useState)(defaultExpanded);
|
|
6609
6611
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
@@ -6632,9 +6634,11 @@ var ChatWidget = ({
|
|
|
6632
6634
|
const el = scrollRef.current;
|
|
6633
6635
|
if (!el || !isExpanded)
|
|
6634
6636
|
return;
|
|
6635
|
-
const
|
|
6637
|
+
const messagesLengthChanged = messages.length !== previousMessagesLength.current;
|
|
6638
|
+
const messagesContentChanged = messages !== previousMessagesRef.current;
|
|
6636
6639
|
previousMessagesLength.current = messages.length;
|
|
6637
|
-
|
|
6640
|
+
previousMessagesRef.current = messages;
|
|
6641
|
+
if (messagesLengthChanged || messagesContentChanged || isThinking) {
|
|
6638
6642
|
requestAnimationFrame(() => {
|
|
6639
6643
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
6640
6644
|
savedScrollPosition.current = el.scrollHeight;
|
|
@@ -6849,6 +6853,7 @@ var CtaCard = ({
|
|
|
6849
6853
|
] });
|
|
6850
6854
|
};
|
|
6851
6855
|
CtaCard.displayName = "CtaCard";
|
|
6856
|
+
var CtaCard_default = CtaCard;
|
|
6852
6857
|
|
|
6853
6858
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
6854
6859
|
var import_react39 = require("@emotion/react");
|
|
@@ -10710,6 +10715,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10710
10715
|
Column,
|
|
10711
10716
|
ContactLandownerButton,
|
|
10712
10717
|
Container,
|
|
10718
|
+
CtaCard,
|
|
10713
10719
|
Divider,
|
|
10714
10720
|
FeatureList,
|
|
10715
10721
|
FeatureListItem,
|