@intlayer/design-system 8.4.5 → 8.4.6

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 (31) hide show
  1. package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
  2. package/dist/esm/components/IDE/CodeBlockShiki.mjs +12 -0
  3. package/dist/esm/components/IDE/CodeBlockShiki.mjs.map +1 -1
  4. package/dist/esm/components/TextArea/AutocompleteTextArea.mjs +60 -225
  5. package/dist/esm/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
  6. package/dist/esm/components/TextArea/ContentEditableTextArea.mjs +444 -0
  7. package/dist/esm/components/TextArea/ContentEditableTextArea.mjs.map +1 -0
  8. package/dist/esm/components/TextArea/index.mjs +3 -2
  9. package/dist/esm/components/index.mjs +3 -2
  10. package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
  11. package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
  12. package/dist/types/components/Badge/index.d.ts +2 -2
  13. package/dist/types/components/Button/Button.d.ts +4 -4
  14. package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
  15. package/dist/types/components/Container/index.d.ts +4 -4
  16. package/dist/types/components/IDE/CodeBlockShiki.d.ts.map +1 -1
  17. package/dist/types/components/Input/Checkbox.d.ts +2 -2
  18. package/dist/types/components/Input/Input.d.ts +1 -1
  19. package/dist/types/components/Input/OTPInput.d.ts +1 -1
  20. package/dist/types/components/Link/Link.d.ts +4 -4
  21. package/dist/types/components/Pagination/Pagination.d.ts +2 -2
  22. package/dist/types/components/SwitchSelector/index.d.ts +2 -2
  23. package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
  24. package/dist/types/components/Tag/index.d.ts +3 -3
  25. package/dist/types/components/TextArea/AutocompleteTextArea.d.ts +14 -120
  26. package/dist/types/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
  27. package/dist/types/components/TextArea/ContentEditableTextArea.d.ts +65 -0
  28. package/dist/types/components/TextArea/ContentEditableTextArea.d.ts.map +1 -0
  29. package/dist/types/components/TextArea/index.d.ts +3 -2
  30. package/dist/types/components/index.d.ts +3 -2
  31. package/package.json +17 -17
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
5
5
  //#region src/components/Input/Checkbox.d.ts
6
6
  declare const checkboxVariants: (props?: {
7
7
  variant?: "default";
8
- size?: "xs" | "sm" | "md" | "lg";
9
- color?: "error" | "success" | "text" | "custom" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark";
8
+ size?: "lg" | "sm" | "md" | "xs";
9
+ color?: "error" | "success" | "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "custom";
10
10
  validationStyleEnabled?: "enabled" | "disabled";
11
11
  } & class_variance_authority_types0.ClassProp) => string;
12
12
  declare enum CheckboxSize {
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
5
5
  //#region src/components/Input/Input.d.ts
6
6
  declare const inputVariants: (props?: {
7
7
  variant?: "default" | "invisible";
8
- size?: "sm" | "md" | "lg";
8
+ size?: "lg" | "sm" | "md";
9
9
  validationStyleEnabled?: "enabled" | "disabled";
10
10
  } & class_variance_authority_types0.ClassProp) => string;
11
11
  declare enum InputVariant {
@@ -57,7 +57,7 @@ declare const OTPInputContext: react.Context<RenderProps>;
57
57
  declare const OTPInput: FC<OTPInputProps>;
58
58
  type InputOTPProps = Omit<ComponentProps<typeof OTPInput>, 'children'>;
59
59
  declare const inputSlotVariants: (props?: {
60
- size?: "sm" | "md" | "lg" | "xl";
60
+ size?: "lg" | "sm" | "md" | "xl";
61
61
  } & class_variance_authority_types0.ClassProp) => string;
62
62
  declare const InputOTP: FC<InputOTPProps>;
63
63
  declare const InputOTPGroup: ({
@@ -53,10 +53,10 @@ declare enum LinkUnderlined {
53
53
  FALSE = "false"
54
54
  }
55
55
  declare const linkVariants: (props?: {
56
- variant?: "default" | "hoverable" | "invisible-link" | "button" | "button-outlined";
57
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
58
- color?: "text" | "error" | "custom" | "primary" | "success" | "neutral" | "secondary" | "destructive" | "light" | "dark" | "text-inverse";
59
- size?: "sm" | "md" | "lg" | "xl" | "custom";
56
+ variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
57
+ roundedSize?: "none" | "lg" | "sm" | "md" | "xl" | "2xl" | "3xl" | "full";
58
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text-inverse" | "error" | "success" | "custom";
59
+ size?: "lg" | "sm" | "md" | "xl" | "custom";
60
60
  underlined?: boolean | LinkUnderlined.DEFAULT;
61
61
  } & class_variance_authority_types0.ClassProp) => string;
62
62
  type LinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & VariantProps<typeof linkVariants> & {
@@ -4,8 +4,8 @@ import { VariantProps } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/Pagination/Pagination.d.ts
6
6
  declare const paginationVariants: (props?: {
7
- size?: "sm" | "md" | "lg";
8
- color?: "text" | "primary" | "secondary" | "neutral" | "destructive";
7
+ size?: "lg" | "sm" | "md";
8
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral";
9
9
  variant?: "default" | "bordered" | "ghost";
10
10
  } & class_variance_authority_types0.ClassProp) => string;
11
11
  declare enum PaginationSize {
@@ -29,7 +29,7 @@ declare enum SwitchSelectorColor {
29
29
  TEXT = "text"
30
30
  }
31
31
  declare const switchSelectorVariant: (props?: {
32
- color?: "text" | "primary" | "neutral" | "secondary" | "destructive" | "light" | "dark";
32
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark";
33
33
  disabled?: boolean;
34
34
  } & class_variance_authority_types0.ClassProp) => string;
35
35
  declare enum SwitchSelectorSize {
@@ -38,7 +38,7 @@ declare enum SwitchSelectorSize {
38
38
  LG = "lg"
39
39
  }
40
40
  declare const choiceVariant: (props?: {
41
- size?: "sm" | "md" | "lg";
41
+ size?: "lg" | "sm" | "md";
42
42
  } & class_variance_authority_types0.ClassProp) => string;
43
43
  /**
44
44
  *
@@ -15,7 +15,7 @@ declare enum TabSelectorColor {
15
15
  TEXT = "text"
16
16
  }
17
17
  declare const tabSelectorVariant: (props?: {
18
- color?: "text" | "primary" | "secondary" | "neutral" | "destructive" | "light" | "dark";
18
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark";
19
19
  } & class_variance_authority_types0.ClassProp) => string;
20
20
  type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
21
21
  key: string | number;
@@ -185,9 +185,9 @@ declare enum TagBackground {
185
185
  WITH = "with"
186
186
  }
187
187
  declare const containerVariants: (props?: {
188
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
189
- color?: "text" | "error" | "primary" | "success" | "warning" | "neutral" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
190
- size?: "xs" | "sm" | "md" | "lg" | "xl";
188
+ roundedSize?: "none" | "lg" | "sm" | "md" | "xl" | "2xl" | "3xl" | "full";
189
+ color?: "text" | "primary" | "neutral" | "error" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
190
+ size?: "lg" | "sm" | "md" | "xl" | "xs";
191
191
  border?: "none" | "with";
192
192
  background?: "none" | "with";
193
193
  } & class_variance_authority_types0.ClassProp) => string;
@@ -2,155 +2,49 @@ import { AutoSizedTextAreaProps } from "./AutoSizeTextArea.js";
2
2
  import { FC } from "react";
3
3
 
4
4
  //#region src/components/TextArea/AutocompleteTextArea.d.ts
5
- /**
6
- * Custom hook for debouncing values to prevent excessive API calls.
7
- *
8
- * Delays updating the returned value until the input value has stopped changing
9
- * for the specified delay period.
10
- *
11
- * @param value - The value to debounce
12
- * @param delay - Delay in milliseconds before updating the debounced value
13
- * @returns The debounced value that only updates after the delay period
14
- *
15
- * @example
16
- * ```tsx
17
- * const [searchTerm, setSearchTerm] = useState('');
18
- * const debouncedSearchTerm = useDebounce(searchTerm, 300);
19
- *
20
- * useEffect(() => {
21
- * if (debouncedSearchTerm) {
22
- * performSearch(debouncedSearchTerm);
23
- * }
24
- * }, [debouncedSearchTerm]);
25
- * ```
26
- */
27
- declare const useDebounce: <T>(value: T, delay: number) => T;
28
5
  /**
29
6
  * Props for the AutocompleteTextArea component.
30
7
  *
31
- * Extends AutoSizedTextAreaProps with AI-powered autocomplete functionality.
8
+ * Extends AutoSizedTextAreaProps with inline autocomplete functionality
9
+ * using a contentEditable-based textarea.
32
10
  *
33
11
  * @example
34
12
  * ```tsx
35
- * // AI-powered autocomplete textarea
36
13
  * <AutoCompleteTextarea
37
- * placeholder="Start typing for AI suggestions..."
14
+ * placeholder="Start typing..."
38
15
  * isActive={true}
39
16
  * autoSize={true}
40
17
  * maxRows={10}
41
18
  * />
42
- *
43
- * // Manual suggestion mode
44
- * <AutoCompleteTextarea
45
- * value={content}
46
- * onChange={handleChange}
47
- * suggestion="Consider adding more details about..."
48
- * isActive={false}
49
- * />
50
- *
51
- * // Disabled autocomplete for sensitive content
52
- * <AutoCompleteTextarea
53
- * placeholder="Private notes (no AI assistance)"
54
- * isActive={false}
55
- * autoSize={true}
56
- * />
57
19
  * ```
58
20
  */
59
21
  type AutocompleteTextAreaProps = AutoSizedTextAreaProps & {
60
- /** Whether AI autocomplete is active and should fetch suggestions */isActive?: boolean; /** Manual suggestion text to display (overrides AI suggestions) */
22
+ /** Whether inline autocomplete ghost text is active */isActive?: boolean; /** Manual suggestion text to display as ghost text after the cursor */
61
23
  suggestion?: string;
62
24
  };
63
25
  /**
64
26
  * AutoCompleteTextarea Component
65
27
  *
66
- * An intelligent textarea that provides AI-powered autocomplete suggestions as users type,
67
- * combining auto-sizing functionality with contextual text completion.
68
- *
69
- * ## Features
70
- * - **AI-Powered Suggestions**: Context-aware autocomplete using configured AI models
71
- * - **Debounced API Calls**: Efficient suggestion fetching with 200ms debounce
72
- * - **Visual Suggestions**: Inline preview of suggested completions
73
- * - **Keyboard Navigation**: Tab key to accept suggestions
74
- * - **Context Analysis**: Uses surrounding text for better suggestions
75
- * - **Auto-Sizing**: Inherits all AutoSizedTextArea capabilities
76
- * - **Performance Optimized**: Smart caching and minimal re-renders
77
- *
78
- * ## Technical Implementation
79
- * - **Debounce Strategy**: 200ms delay before fetching suggestions
80
- * - **Context Window**: 5 lines before/after cursor for context
81
- * - **Minimum Trigger**: Requires 3+ characters before suggesting
82
- * - **Position Tracking**: Ghost layer for accurate suggestion positioning
83
- * - **Cursor Management**: Tracks cursor position during suggestion fetch
28
+ * A textarea with inline autocomplete ghost text, built on a contentEditable div
29
+ * instead of a native `<textarea>`. Ghost text (suggestions) is rendered inline
30
+ * at the cursor position and can be accepted with the Tab key.
84
31
  *
85
- * ## AI Integration
86
- * - Uses configured AI model (OpenAI, Anthropic, etc.)
87
- * - Sends context-aware prompts for relevant suggestions
88
- * - Respects temperature and model settings from configuration
89
- * - Handles API errors gracefully without interrupting user flow
90
- *
91
- * ## Use Cases
92
- * - **Content Creation**: Blog posts, articles, documentation
93
- * - **Code Comments**: Intelligent code documentation assistance
94
- * - **Email Composition**: Professional email writing assistance
95
- * - **Creative Writing**: Story and narrative completion
96
- * - **Technical Documentation**: API docs, README files
97
- * - **Social Media**: Post creation with engagement optimization
32
+ * The component wraps `ContentEditableTextArea` and manages suggestion state.
33
+ * When `suggestion` prop is provided it is shown as ghost text at the end of the
34
+ * current text. When `isActive` is false, ghost text is hidden.
98
35
  *
99
36
  * @example
100
37
  * ```tsx
101
- * // Blog writing assistant
102
- * const [blogPost, setBlogPost] = useState('');
103
- * const [isAiEnabled, setIsAiEnabled] = useState(true);
104
- *
105
- * <div className="space-y-4">
106
- * <div className="flex items-center gap-2">
107
- * <Switch
108
- * checked={isAiEnabled}
109
- * onChange={setIsAiEnabled}
110
- * />
111
- * <label>AI Writing Assistant</label>
112
- * </div>
113
- *
114
- * <AutoCompleteTextarea
115
- * value={blogPost}
116
- * onChange={(e) => setBlogPost(e.target.value)}
117
- * placeholder="Start writing your blog post..."
118
- * isActive={isAiEnabled}
119
- * autoSize={true}
120
- * maxRows={15}
121
- * className="min-h-[200px] font-serif text-lg leading-relaxed"
122
- * />
123
- * </div>
124
- *
125
- * // Code documentation assistant
126
38
  * <AutoCompleteTextarea
127
- * value={docComment}
128
- * onChange={handleDocChange}
129
- * placeholder="/** Describe this function... *\/"
130
- * isActive={true}
131
- * autoSize={true}
132
- * maxRows={8}
133
- * className="font-mono text-sm"
134
- * />
135
- *
136
- * // Email composition with templates
137
- * <AutoCompleteTextarea
138
- * defaultValue="Dear "
139
- * placeholder="AI will help complete your email..."
39
+ * value={content}
40
+ * onChange={handleChange}
41
+ * suggestion="suggested completion..."
140
42
  * isActive={true}
141
43
  * autoSize={true}
142
- * maxRows={12}
143
- * variant={InputVariant.DEFAULT}
144
44
  * />
145
45
  * ```
146
- *
147
- * ## Accessibility
148
- * - Ghost layer is properly hidden from screen readers
149
- * - Maintains focus management during suggestion acceptance
150
- * - Preserves keyboard navigation patterns
151
- * - Respects reduced motion preferences
152
46
  */
153
47
  declare const AutoCompleteTextarea: FC<AutocompleteTextAreaProps>;
154
48
  //#endregion
155
- export { AutoCompleteTextarea, AutocompleteTextAreaProps, useDebounce };
49
+ export { AutoCompleteTextarea, AutocompleteTextAreaProps };
156
50
  //# sourceMappingURL=AutocompleteTextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteTextArea.d.ts","names":[],"sources":["../../../../src/components/TextArea/AutocompleteTextArea.tsx"],"mappings":";;;;;;AAiCA;;;;;;;;;;;AA8CA;;;;;;;;;cA9Ca,WAAA,MAAmB,KAAA,EAAO,CAAA,EAAG,KAAA,aAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8C9C,yBAAA,GAA4B,sBAAA;uEAEtC,QAAA;EAEA,UAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6FW,oBAAA,EAAsB,EAAA,CAAG,yBAAA"}
1
+ {"version":3,"file":"AutocompleteTextArea.d.ts","names":[],"sources":["../../../../src/components/TextArea/AutocompleteTextArea.tsx"],"mappings":";;;;;;AAgCA;;;;;;;;;AA6BA;;;;;KA7BY,yBAAA,GAA4B,sBAAA;yDAEtC,QAAA;EAEA,UAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;cAyBW,oBAAA,EAAsB,EAAA,CAAG,yBAAA"}
@@ -0,0 +1,65 @@
1
+ import { InputVariant, inputVariants } from "../Input/Input.js";
2
+ import * as react from "react";
3
+ import { ClipboardEvent, DragEvent, FC, FormEvent, HTMLAttributes, KeyboardEvent, Ref } from "react";
4
+ import { VariantProps } from "class-variance-authority";
5
+
6
+ //#region src/components/TextArea/ContentEditableTextArea.d.ts
7
+ type CaretPosition = {
8
+ line: number;
9
+ offset: number;
10
+ };
11
+ type UseContentEditableOptions = {
12
+ value?: string;
13
+ defaultValue?: string;
14
+ onChange?: (value: string) => void;
15
+ disabled?: boolean;
16
+ };
17
+ declare const useContentEditable: ({
18
+ value,
19
+ defaultValue,
20
+ onChange,
21
+ disabled
22
+ }: UseContentEditableOptions) => {
23
+ lines: string[];
24
+ containerRef: react.RefObject<HTMLDivElement>;
25
+ getText: () => string;
26
+ handleInput: () => void;
27
+ handleBeforeInput: (e: FormEvent<HTMLDivElement>) => void;
28
+ handleKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
29
+ handleCut: (e: ClipboardEvent<HTMLDivElement>) => void;
30
+ handlePaste: (e: ClipboardEvent<HTMLDivElement>) => void;
31
+ handleDrop: (e: DragEvent<HTMLDivElement>) => void;
32
+ handleDragOver: (e: DragEvent<HTMLDivElement>) => void;
33
+ getCaretPosition: () => CaretPosition | null;
34
+ setCaretPosition: (pos: CaretPosition) => void;
35
+ getCursorOffset: () => number;
36
+ caretFromFlatOffset: (flat: number, targetLines: string[]) => CaretPosition;
37
+ };
38
+ type ContentEditableTextAreaHandle = {
39
+ getContainer: () => HTMLDivElement | null;
40
+ getText: () => string;
41
+ focus: () => void;
42
+ getCursorOffset: () => number;
43
+ setCursorAtOffset: (offset: number) => void;
44
+ };
45
+ type ContentEditableTextAreaProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> & {
46
+ value?: string;
47
+ defaultValue?: string;
48
+ onChange?: (value: string) => void;
49
+ placeholder?: string;
50
+ disabled?: boolean;
51
+ minRows?: number;
52
+ maxRows?: number;
53
+ autoSize?: boolean;
54
+ validationStyleEnabled?: boolean;
55
+ variant?: InputVariant | `${InputVariant}`;
56
+ ghostText?: string;
57
+ ghostLine?: number;
58
+ ghostOffset?: number;
59
+ ref?: Ref<ContentEditableTextAreaHandle>;
60
+ dir?: 'ltr' | 'rtl' | 'auto';
61
+ } & Omit<VariantProps<typeof inputVariants>, 'validationStyleEnabled' | 'variant'>;
62
+ declare const ContentEditableTextArea: FC<ContentEditableTextAreaProps>;
63
+ //#endregion
64
+ export { ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, useContentEditable };
65
+ //# sourceMappingURL=ContentEditableTextArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentEditableTextArea.d.ts","names":[],"sources":["../../../../src/components/TextArea/ContentEditableTextArea.tsx"],"mappings":";;;;;;KAoBK,aAAA;EACH,IAAA;EACA,MAAA;AAAA;AAAA,KAGG,yBAAA;EACH,KAAA;EACA,YAAA;EACA,QAAA,IAAY,KAAA;EACZ,QAAA;AAAA;AAAA,cAoIW,kBAAA;EAAsB,KAAA;EAAA,YAAA;EAAA,QAAA;EAAA;AAAA,GAKhC,yBAAA;;;;;yBA0S6B,SAAA,CAAU,cAAA;qBApId,aAAA,CAAc,cAAA;iBAyFlB,cAAA,CAAe,cAAA;mBAsBb,cAAA,CAAe,cAAA;kBAoGhB,SAAA,CAAU,cAAA;sBAKN,SAAA,CAAU,cAAA;0BA3WR,aAAA;0BAuDE,aAAA;;sCA+CjB,WAAA,eAEX,aAAA;AAAA;AAAA,KAgTO,6BAAA;EACV,YAAA,QAAoB,cAAA;EACpB,OAAA;EACA,KAAA;EACA,eAAA;EACA,iBAAA,GAAoB,MAAA;AAAA;AAAA,KAGV,4BAAA,GAA+B,IAAA,CACzC,cAAA,CAAe,cAAA;EAGf,KAAA;EACA,YAAA;EACA,QAAA,IAAY,KAAA;EACZ,WAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA,QAAA;EACA,sBAAA;EACA,OAAA,GAAU,YAAA,MAAkB,YAAA;EAC5B,SAAA;EACA,SAAA;EACA,WAAA;EACA,GAAA,GAAM,GAAA,CAAI,6BAAA;EACV,GAAA;AAAA,IACE,IAAA,CACA,YAAA,QAAoB,aAAA;AAAA,cAOX,uBAAA,EAAyB,EAAA,CAAG,4BAAA"}
@@ -1,4 +1,5 @@
1
1
  import { TextArea, TextAreaProps } from "./TextArea.js";
2
2
  import { AutoSizedTextArea, AutoSizedTextAreaProps } from "./AutoSizeTextArea.js";
3
- import { AutoCompleteTextarea, AutocompleteTextAreaProps, useDebounce } from "./AutocompleteTextArea.js";
4
- export { AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, TextArea, TextAreaProps, useDebounce };
3
+ import { AutoCompleteTextarea, AutocompleteTextAreaProps } from "./AutocompleteTextArea.js";
4
+ import { ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, useContentEditable } from "./ContentEditableTextArea.js";
5
+ export { AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, TextArea, TextAreaProps, useContentEditable };
@@ -17,7 +17,8 @@ import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlo
17
17
  import { SearchInput } from "./Input/SearchInput.js";
18
18
  import { TextArea, TextAreaProps } from "./TextArea/TextArea.js";
19
19
  import { AutoSizedTextArea, AutoSizedTextAreaProps } from "./TextArea/AutoSizeTextArea.js";
20
- import { AutoCompleteTextarea, AutocompleteTextAreaProps, useDebounce } from "./TextArea/AutocompleteTextArea.js";
20
+ import { AutoCompleteTextarea, AutocompleteTextAreaProps } from "./TextArea/AutocompleteTextArea.js";
21
+ import { ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, useContentEditable } from "./TextArea/ContentEditableTextArea.js";
21
22
  import { ContentSelector } from "./ContentSelector/ContentSelector.js";
22
23
  import { CopyButton } from "./CopyButton/index.js";
23
24
  import { CopyToClipboard, CopyToClipboardProps, useCopyToClipboard } from "./CopyToClipboard/index.js";
@@ -101,4 +102,4 @@ import { Toaster } from "./Toaster/Toaster.js";
101
102
  import { reducer, toast, useToast } from "./Toaster/useToast.js";
102
103
  import { WithResizer } from "./WithResizer/index.js";
103
104
  import { MarkdownRenderer, baseMarkdownComponents, getIntlayerMarkdownOptions } from "./MarkDownRender/MarkDownRender.js";
104
- export { Accordion, AccordionProps, AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, Avatar, AvatarProps, Badge, BadgeColor, BadgeProps, BadgeSize, BadgeVariant, BadgeVariantProps, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Browser, BrowserProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonTextAlign, ButtonVariant, Carousel, Checkbox, CheckboxColor, CheckboxProps, CheckboxSize, ClickOutsideDiv, ClickOutsideDivProps, Code, CodeBlock, CodeBlockProps, CodeCompAttributes, CodeDefault, CodeLanguage, CollapsibleTable, CollapsibleTableProps, Command, CommandRoot, Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerProps, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, ContentEditor, ContentSelector, CopyButton, CopyToClipboard, CopyToClipboardProps, DesktopThemeSwitcher, Detail, DetailProps, DictionaryCreationForm, DictionaryEditor, DictionaryFieldEditor, DiscordLogo, DotPattern, DropDown, DropDownAlign, DropDownProps, DropDownType, DropDownYAlign, EditableFieldInput, EditableFieldTextArea, ExpandCollapse, ExpandCollapseProps, FacebookLogo, FileList, FileListProps, Flag, flags_d_exports as Flags, Footer, FooterLink, Form, GridPattern, H1, H2, H3, H4, H5, H6, HTMLRenderer, HeadingProps, HeightResizer, HideShow, HideShowProps, IDE, IDEProps, InformationTag, Input, InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputProps, InputSize, InputVariant, InstagramLogo, KeyList, KeyPathBreadcrumb, KeyboardScreenAdapter, KeyboardShortcut, KeyboardShortcutProps, KeyboardShortcutType, Label, LabelProps, LanguageBackground, LanguageSection, Link, LinkColor, LinkGroup, LinkProps, LinkRoundedSize, LinkSize, LinkUnderlined, LinkVariant, LinkedInLogo, Loader, LoaderProps, LocaleSwitcher, LocaleSwitcherContent, LocaleSwitcherContentProps, LocaleSwitcherContentProvider, LocaleSwitcherProps, Logo, LogoTextOnly, LogoWithText, LogoWithTextBelow, MarkdownRenderer, MaxHeightSmoother, MaxWidthSmoother, MobileThemeSwitcher, Modal, ModalSize, Modes, MultiSelect, Navbar, NumberItemsSelector, NumberItemsSelectorProps, OTPInput, OTPInputContext, OTPInputProps, Pagination, PaginationProps, PaginationSize, PaginationVariant, PanelProps, Popover, PopoverProps, PopoverStatic, PopoverType, PopoverXAlign, PopoverYAlign, PressableSpan, ProductHuntLogo, RenderProps, RightDrawer, SaveForm, SearchInput, Select, SelectContent, SelectContentPosition, SelectLabel, SelectSeparator, ShowingResultsNumberItems, ShowingResultsNumberItemsProps, SlotProps, SocialNetworks, Spotlight, SwitchSelector, SwitchSelectorChoice, SwitchSelectorChoices, SwitchSelectorColor, SwitchSelectorProps, SwitchSelectorSize, Tab, TabItemProps, TabProps, TabSelector, TabSelectorColor, TabSelectorItemProps, TabSelectorProps, Table, Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize, Terminal, TerminalProps, TextArea, TextAreaProps, TextEditor, TextEditorContainer, TextEditorProps, TiktokLogo, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TriggerProps, VersionSwitcher, VersionSwitcherProps, VersionSwitcherProvider, WithResizer, XLogo, YoutubeLogo, badgeVariants, baseMarkdownComponents, buttonVariants, checkIsExternalLink, checkboxVariants, containerVariants, drawerManager, getCapitals, getIntlayerHTMLOptions, getIntlayerMarkdownOptions, inputSlotVariants, inputVariants, isTextChildren, linkVariants, paginationVariants, reducer, toast, traceKeys, useCopyToClipboard, useDebounce, useForm, useFormField, useLocaleSwitcherContent, usePasswordManagerBadge, usePrevious, useRightDrawer, useToast, useVersionSwitcher };
105
+ export { Accordion, AccordionProps, AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, Avatar, AvatarProps, Badge, BadgeColor, BadgeProps, BadgeSize, BadgeVariant, BadgeVariantProps, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Browser, BrowserProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonTextAlign, ButtonVariant, Carousel, Checkbox, CheckboxColor, CheckboxProps, CheckboxSize, ClickOutsideDiv, ClickOutsideDivProps, Code, CodeBlock, CodeBlockProps, CodeCompAttributes, CodeDefault, CodeLanguage, CollapsibleTable, CollapsibleTableProps, Command, CommandRoot, Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerProps, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, ContentEditor, ContentSelector, CopyButton, CopyToClipboard, CopyToClipboardProps, DesktopThemeSwitcher, Detail, DetailProps, DictionaryCreationForm, DictionaryEditor, DictionaryFieldEditor, DiscordLogo, DotPattern, DropDown, DropDownAlign, DropDownProps, DropDownType, DropDownYAlign, EditableFieldInput, EditableFieldTextArea, ExpandCollapse, ExpandCollapseProps, FacebookLogo, FileList, FileListProps, Flag, flags_d_exports as Flags, Footer, FooterLink, Form, GridPattern, H1, H2, H3, H4, H5, H6, HTMLRenderer, HeadingProps, HeightResizer, HideShow, HideShowProps, IDE, IDEProps, InformationTag, Input, InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputProps, InputSize, InputVariant, InstagramLogo, KeyList, KeyPathBreadcrumb, KeyboardScreenAdapter, KeyboardShortcut, KeyboardShortcutProps, KeyboardShortcutType, Label, LabelProps, LanguageBackground, LanguageSection, Link, LinkColor, LinkGroup, LinkProps, LinkRoundedSize, LinkSize, LinkUnderlined, LinkVariant, LinkedInLogo, Loader, LoaderProps, LocaleSwitcher, LocaleSwitcherContent, LocaleSwitcherContentProps, LocaleSwitcherContentProvider, LocaleSwitcherProps, Logo, LogoTextOnly, LogoWithText, LogoWithTextBelow, MarkdownRenderer, MaxHeightSmoother, MaxWidthSmoother, MobileThemeSwitcher, Modal, ModalSize, Modes, MultiSelect, Navbar, NumberItemsSelector, NumberItemsSelectorProps, OTPInput, OTPInputContext, OTPInputProps, Pagination, PaginationProps, PaginationSize, PaginationVariant, PanelProps, Popover, PopoverProps, PopoverStatic, PopoverType, PopoverXAlign, PopoverYAlign, PressableSpan, ProductHuntLogo, RenderProps, RightDrawer, SaveForm, SearchInput, Select, SelectContent, SelectContentPosition, SelectLabel, SelectSeparator, ShowingResultsNumberItems, ShowingResultsNumberItemsProps, SlotProps, SocialNetworks, Spotlight, SwitchSelector, SwitchSelectorChoice, SwitchSelectorChoices, SwitchSelectorColor, SwitchSelectorProps, SwitchSelectorSize, Tab, TabItemProps, TabProps, TabSelector, TabSelectorColor, TabSelectorItemProps, TabSelectorProps, Table, Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize, Terminal, TerminalProps, TextArea, TextAreaProps, TextEditor, TextEditorContainer, TextEditorProps, TiktokLogo, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TriggerProps, VersionSwitcher, VersionSwitcherProps, VersionSwitcherProvider, WithResizer, XLogo, YoutubeLogo, badgeVariants, baseMarkdownComponents, buttonVariants, checkIsExternalLink, checkboxVariants, containerVariants, drawerManager, getCapitals, getIntlayerHTMLOptions, getIntlayerMarkdownOptions, inputSlotVariants, inputVariants, isTextChildren, linkVariants, paginationVariants, reducer, toast, traceKeys, useContentEditable, useCopyToClipboard, useForm, useFormField, useLocaleSwitcherContent, usePasswordManagerBadge, usePrevious, useRightDrawer, useToast, useVersionSwitcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/design-system",
3
- "version": "8.4.5",
3
+ "version": "8.4.6",
4
4
  "private": false,
5
5
  "description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
6
6
  "keywords": [
@@ -106,12 +106,12 @@
106
106
  "dependencies": {
107
107
  "@better-auth/passkey": "1.5.5",
108
108
  "@better-auth/sso": "1.5.5",
109
- "@intlayer/api": "8.4.5",
110
- "@intlayer/config": "8.4.5",
111
- "@intlayer/core": "8.4.5",
112
- "@intlayer/dictionaries-entry": "8.4.5",
113
- "@intlayer/editor-react": "8.4.5",
114
- "@intlayer/types": "8.4.5",
109
+ "@intlayer/api": "8.4.6",
110
+ "@intlayer/config": "8.4.6",
111
+ "@intlayer/core": "8.4.6",
112
+ "@intlayer/dictionaries-entry": "8.4.6",
113
+ "@intlayer/editor-react": "8.4.6",
114
+ "@intlayer/types": "8.4.6",
115
115
  "@radix-ui/react-dialog": "1.1.15",
116
116
  "@radix-ui/react-select": "2.2.6",
117
117
  "@radix-ui/react-slot": "1.2.4",
@@ -120,12 +120,12 @@
120
120
  "better-auth": "1.5.5",
121
121
  "class-variance-authority": "0.7.1",
122
122
  "cmdk": "1.1.1",
123
- "react-intlayer": "8.4.5",
123
+ "react-intlayer": "8.4.6",
124
124
  "rollup-preserve-directives": "1.1.3",
125
125
  "zod": "4.3.6"
126
126
  },
127
127
  "devDependencies": {
128
- "@intlayer/backend": "8.4.5",
128
+ "@intlayer/backend": "8.4.6",
129
129
  "@shikijs/transformers": "4.0.2",
130
130
  "@storybook/addon-a11y": "8.6.14",
131
131
  "@storybook/addon-essentials": "8.6.14",
@@ -143,7 +143,7 @@
143
143
  "@svgr/core": "8.1.0",
144
144
  "@svgr/rollup": "8.1.0",
145
145
  "@tailwindcss/cli": "4.2.1",
146
- "@tailwindcss/vite": "4.2.1",
146
+ "@tailwindcss/vite": "4.2.2",
147
147
  "@testing-library/jest-dom": "6.9.1",
148
148
  "@testing-library/react": "16.3.2",
149
149
  "@testing-library/user-event": "14.6.1",
@@ -154,14 +154,14 @@
154
154
  "@utils/ts-config": "1.0.4",
155
155
  "@utils/ts-config-types": "1.0.4",
156
156
  "fast-glob": "3.3.3",
157
- "intlayer": "8.4.5",
157
+ "intlayer": "8.4.6",
158
158
  "rimraf": "6.1.3",
159
159
  "shiki": "4.0.2",
160
160
  "storybook": "8.6.17",
161
161
  "tsdown": "0.21.4",
162
162
  "typescript": "5.9.3",
163
- "vite": "8.0.0",
164
- "vite-intlayer": "8.4.5",
163
+ "vite": "8.0.1",
164
+ "vite-intlayer": "8.4.6",
165
165
  "vite-plugin-dts": "4.5.4",
166
166
  "vite-tsconfig-paths": "6.1.1",
167
167
  "vitest": "4.1.0"
@@ -169,20 +169,20 @@
169
169
  "peerDependencies": {
170
170
  "@better-fetch/fetch": "1.1.21",
171
171
  "@hookform/resolvers": "5.2.2",
172
- "@intlayer/backend": "8.4.5",
172
+ "@intlayer/backend": "8.4.6",
173
173
  "@monaco-editor/react": "4.7.0",
174
174
  "@shikijs/transformers": "4.0.2",
175
- "@tanstack/react-query": "5.91.0",
175
+ "@tanstack/react-query": "5.91.3",
176
176
  "@tanstack/react-query-devtools": "5.91.3",
177
177
  "clsx": "2.1.1",
178
178
  "framer-motion": "12.38.0",
179
179
  "fuse.js": "7.1.0",
180
- "intlayer": "8.4.5",
180
+ "intlayer": "8.4.6",
181
181
  "lucide-react": "0.577.0",
182
182
  "react": ">=16.0.0",
183
183
  "react-dom": ">=16.0.0",
184
184
  "react-hook-form": "7.71.2",
185
- "react-intlayer": "8.4.5",
185
+ "react-intlayer": "8.4.6",
186
186
  "shiki": "4.0.2",
187
187
  "tailwind-merge": "3.5.0",
188
188
  "tailwindcss": "4.2.1"