@talkjs/web-components 0.2.2 → 0.2.3

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.
Files changed (4) hide show
  1. package/default.cjs +98 -98
  2. package/default.d.ts +15 -0
  3. package/default.js +3350 -3325
  4. package/package.json +1 -1
package/default.d.ts CHANGED
@@ -599,6 +599,13 @@ export declare class ChatboxController {
599
599
  * Note: like the search feature, this option only works on the Growth plan and up.
600
600
  */
601
601
  setHighlightedStrings(words: string[]): void;
602
+ /**
603
+ * Sets the query used by the in-conversation search UI.
604
+ *
605
+ * @remarks
606
+ * This updates the search box value and highlighted strings at the same time.
607
+ */
608
+ setSearchQuery(query: string): void;
602
609
  /**
603
610
  * Searches for a message upwards that contains highlighted strings.
604
611
  * If a message is found, the UI will scroll that message into view.
@@ -712,6 +719,10 @@ export declare interface ChatHeaderProps {
712
719
  * The current user's permissions.
713
720
  */
714
721
  permissions: UserPermissions;
722
+ /**
723
+ * The current query used by in-conversation message search.
724
+ */
725
+ searchQuery: string;
715
726
  }
716
727
 
717
728
  /**
@@ -722,6 +733,10 @@ export declare interface ChatSearchBoxProps {
722
733
  * A collection of objects which are passed to all Chatbox theme components.
723
734
  */
724
735
  common: CommonChatboxProps;
736
+ /**
737
+ * The current query used by in-conversation message search.
738
+ */
739
+ searchQuery: string;
725
740
  }
726
741
 
727
742
  /**