@akropolys/kiku 1.7.26 → 1.8.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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse } from '@akropolys/sdk';
2
+ import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse, Scout } from '@akropolys/sdk';
3
3
 
4
4
  interface SearchBarProps {
5
5
  placeholder?: string;
@@ -130,6 +130,26 @@ interface VisualSearchProps {
130
130
  */
131
131
  declare function VisualSearch({ onResults, onError, categoryHint, className, disabled, }: VisualSearchProps): React.JSX.Element;
132
132
 
133
+ interface ScoutRailProps {
134
+ className?: string;
135
+ themeAttr?: string;
136
+ onAsk?: (scout: Scout) => void;
137
+ onNew?: (avatar: string) => void;
138
+ open?: boolean;
139
+ onOpenChange?: (open: boolean) => void;
140
+ }
141
+ declare function ScoutRail({ className, themeAttr, onAsk, onNew, open: openProp, onOpenChange }: ScoutRailProps): React.JSX.Element;
142
+
143
+ type ScoutMood = 'watching' | 'resting' | 'struck' | 'gone';
144
+ interface ScoutCharacterProps {
145
+ scoutId: string;
146
+ avatar?: string;
147
+ mood?: ScoutMood;
148
+ size?: number;
149
+ layer?: 'all' | 'body';
150
+ }
151
+ declare function ScoutCharacter({ scoutId, avatar, mood, size, layer }: ScoutCharacterProps): React.JSX.Element;
152
+
133
153
  interface ShopifyProduct {
134
154
  id?: number | string;
135
155
  title?: string;
@@ -219,4 +239,4 @@ declare function shopifyAddToCart(items: ChatSource[]): Promise<any>;
219
239
  declare function shopifyGetCart(): Promise<any>;
220
240
  declare function initKiku(customConfig?: StandaloneConfig): void;
221
241
 
222
- export { ChatWidget, type ChatWidgetProps, KikuButton, type KikuButtonProps, ChatWidget as KikuChat, type ChatWidgetProps as KikuChatProps, SearchBar, type SearchBarProps, type ShopifyProduct, Sparkle, type StandaloneConfig, VisualSearch, type VisualSearchProps, VoiceButton, type VoiceButtonProps, initKiku, normalizeShopifyProduct, shopifyAddToCart, shopifyGetCart };
242
+ export { ChatWidget, type ChatWidgetProps, KikuButton, type KikuButtonProps, ChatWidget as KikuChat, type ChatWidgetProps as KikuChatProps, ScoutCharacter, type ScoutCharacterProps, ScoutRail, type ScoutRailProps, SearchBar, type SearchBarProps, type ShopifyProduct, Sparkle, type StandaloneConfig, VisualSearch, type VisualSearchProps, VoiceButton, type VoiceButtonProps, initKiku, normalizeShopifyProduct, shopifyAddToCart, shopifyGetCart };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse } from '@akropolys/sdk';
2
+ import { SearchResult, AkropolysTheme, ChatSource, Product, VisualSearchResponse, Scout } from '@akropolys/sdk';
3
3
 
4
4
  interface SearchBarProps {
5
5
  placeholder?: string;
@@ -130,6 +130,26 @@ interface VisualSearchProps {
130
130
  */
131
131
  declare function VisualSearch({ onResults, onError, categoryHint, className, disabled, }: VisualSearchProps): React.JSX.Element;
132
132
 
133
+ interface ScoutRailProps {
134
+ className?: string;
135
+ themeAttr?: string;
136
+ onAsk?: (scout: Scout) => void;
137
+ onNew?: (avatar: string) => void;
138
+ open?: boolean;
139
+ onOpenChange?: (open: boolean) => void;
140
+ }
141
+ declare function ScoutRail({ className, themeAttr, onAsk, onNew, open: openProp, onOpenChange }: ScoutRailProps): React.JSX.Element;
142
+
143
+ type ScoutMood = 'watching' | 'resting' | 'struck' | 'gone';
144
+ interface ScoutCharacterProps {
145
+ scoutId: string;
146
+ avatar?: string;
147
+ mood?: ScoutMood;
148
+ size?: number;
149
+ layer?: 'all' | 'body';
150
+ }
151
+ declare function ScoutCharacter({ scoutId, avatar, mood, size, layer }: ScoutCharacterProps): React.JSX.Element;
152
+
133
153
  interface ShopifyProduct {
134
154
  id?: number | string;
135
155
  title?: string;
@@ -219,4 +239,4 @@ declare function shopifyAddToCart(items: ChatSource[]): Promise<any>;
219
239
  declare function shopifyGetCart(): Promise<any>;
220
240
  declare function initKiku(customConfig?: StandaloneConfig): void;
221
241
 
222
- export { ChatWidget, type ChatWidgetProps, KikuButton, type KikuButtonProps, ChatWidget as KikuChat, type ChatWidgetProps as KikuChatProps, SearchBar, type SearchBarProps, type ShopifyProduct, Sparkle, type StandaloneConfig, VisualSearch, type VisualSearchProps, VoiceButton, type VoiceButtonProps, initKiku, normalizeShopifyProduct, shopifyAddToCart, shopifyGetCart };
242
+ export { ChatWidget, type ChatWidgetProps, KikuButton, type KikuButtonProps, ChatWidget as KikuChat, type ChatWidgetProps as KikuChatProps, ScoutCharacter, type ScoutCharacterProps, ScoutRail, type ScoutRailProps, SearchBar, type SearchBarProps, type ShopifyProduct, Sparkle, type StandaloneConfig, VisualSearch, type VisualSearchProps, VoiceButton, type VoiceButtonProps, initKiku, normalizeShopifyProduct, shopifyAddToCart, shopifyGetCart };