@indigoai/indigo-design-system 0.10.15 → 0.10.16

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.
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { AtomQuickRepliesInputProps } from './types';
3
+
4
+ export declare const AtomQuickRepliesInput: React.ForwardRefExoticComponent<AtomQuickRepliesInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { AtomQuickRepliesInput } from './atom-quick-replies-input';
3
+ import { AtomQuickRepliesInputProps } from './types';
4
+
5
+ declare const _default: import('@storybook/csf').ComponentAnnotations<import('@storybook/react/dist/types-a5624094').R, AtomQuickRepliesInputProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof AtomQuickRepliesInput>;
8
+ export declare const Template: Story;
@@ -0,0 +1,2 @@
1
+ export { AtomQuickRepliesInput } from './atom-quick-replies-input';
2
+ export type { AtomQuickRepliesInputProps } from './types';
@@ -0,0 +1,8 @@
1
+ import { AiDropdownProps } from '../dropdown/ai-dropdown/ai-dropdown';
2
+
3
+ export type AtomQuickRepliesInputProps = {
4
+ buttonLabel: string;
5
+ setButtonLabel: (label: string) => void;
6
+ buttonLabelMaxLength?: number;
7
+ selectorProps: AiDropdownProps;
8
+ };
@@ -0,0 +1,2 @@
1
+ export { UploadBlock } from './upload-block';
2
+ export type { UploadBlockProps } from './types';
@@ -0,0 +1,19 @@
1
+ import { BlockProps } from '../../block-builders/block/types';
2
+ import { SelectProps } from '../../input/select';
3
+ import { AiDropdownProps } from '../../dropdown/ai-dropdown/ai-dropdown';
4
+
5
+ export type UploadBlockProps = {
6
+ isCaption: boolean;
7
+ setIsCaption: (value: boolean) => void;
8
+ limitFileSize: boolean;
9
+ setLimitFileSize: (value: boolean) => void;
10
+ isMandatory: boolean;
11
+ setIsMandatory: (value: boolean) => void;
12
+ optionalMessageText: string;
13
+ setOptionalMessageText: (text: string) => void;
14
+ fileVariableNameSelectorProps: SelectProps;
15
+ skipButtonLabel: string;
16
+ setSkipButtonLabel: (label: string) => void;
17
+ skipButtonLabelMaxLength?: number;
18
+ skipButtonSelectorProps: AiDropdownProps;
19
+ } & BlockProps;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { UploadBlockProps } from './types';
3
+
4
+ export declare const UploadBlock: React.ForwardRefExoticComponent<Omit<UploadBlockProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { UploadBlock } from './upload-block';
3
+ import { UploadBlockProps } from './types';
4
+
5
+ declare const _default: import('@storybook/csf').ComponentAnnotations<import('@storybook/react/dist/types-a5624094').R, Omit<UploadBlockProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ export default _default;
7
+ type Story = StoryObj<typeof UploadBlock>;
8
+ export declare const Template: Story;
@@ -17,10 +17,10 @@ export type DocumentDropdownTriggerProps = {
17
17
  };
18
18
  export type DocumentDropdownContentProps = {
19
19
  documentTags: DocumentDropDownItem[];
20
- selectedTags: string[];
20
+ selectedTags: string[] | string;
21
21
  variables: DocumentDropDownItem[];
22
- selectedVariables: string[];
23
- onConfirmSelection: (tags: string[], variables: string[]) => void;
22
+ selectedVariables: string[] | string;
23
+ onConfirmSelection: (tags: string[] | string, variables: string[] | string) => void;
24
24
  variablesContainer?: ReactElement;
25
25
  searchProps?: InputTextFieldProps;
26
26
  closeDelay?: number;
package/dist/index.d.ts CHANGED
@@ -25,6 +25,8 @@ export { BuilderBlockToolbar, BuilderBlockToolbarContext } from './components/bu
25
25
  export type { ToolbarSection, BuilderBlockToolbarProps, DraggedToolbarBlock, BlockNames, Blocks, ToolbarBlocks, } from './components/builder-block-toolbar';
26
26
  export { Button } from './components/button';
27
27
  export type { ButtonProps } from './components/button';
28
+ export { AtomQuickRepliesInput } from './components/atom-quick-replies-input';
29
+ export type { AtomQuickRepliesInputProps } from './components/atom-quick-replies-input';
28
30
  export { Caption } from './components/caption';
29
31
  export type { CaptionProps } from './components/caption';
30
32
  export { ChatRoot, ChatContainer, ChatTrigger, ChatHeader, ChatContent } from './components/ai-chat';
@@ -50,6 +52,8 @@ export { Modal, ModalContent, ModalTrigger } from './components/modal';
50
52
  export type { ModalContentProps } from './components/modal';
51
53
  export { MailBlock } from './components/blocks/mail-block';
52
54
  export type { MailBlockProps } from './components/blocks/mail-block';
55
+ export { UploadBlock } from './components/blocks/upload-block';
56
+ export type { UploadBlockProps } from './components/blocks/upload-block';
53
57
  export { MultipleValues } from './components/input/multiple-values';
54
58
  export type { MultipleValuesProps } from './components/input/multiple-values';
55
59
  export { NotesBlock } from './components/blocks/notes-block';