tfy-web-components 0.0.21 → 0.0.22

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 (92) hide show
  1. package/dist/components/atoms/Accordion.d.ts +10 -18
  2. package/dist/components/atoms/Switch.d.ts +1 -5
  3. package/dist/components/atoms/Tooltip.d.ts +3 -5
  4. package/dist/components/molecules/Markdown/ChatFileDownload.d.ts +17 -0
  5. package/dist/components/molecules/Markdown/ExpandableMarkdown.d.ts +13 -0
  6. package/dist/components/molecules/Markdown/LimitedLinesMarkdown.d.ts +10 -0
  7. package/dist/components/molecules/Markdown/Markdown.d.ts +23 -0
  8. package/dist/components/molecules/Markdown/Markdown.utils.d.ts +8 -0
  9. package/dist/components/molecules/Markdown/MarkdownLazy.d.ts +16 -0
  10. package/dist/components/molecules/Markdown/MarkdownWithOpenUI.d.ts +31 -0
  11. package/dist/components/molecules/Markdown/OpenUiFenceBlock.d.ts +9 -0
  12. package/dist/components/molecules/Markdown/SandboxArtifactsFenceBlock.d.ts +9 -0
  13. package/dist/components/molecules/Markdown/codeFencing.d.ts +50 -0
  14. package/dist/components/molecules/Markdown/components.d.ts +59 -0
  15. package/dist/components/molecules/Markdown/index.d.ts +7 -0
  16. package/dist/components/molecules/Markdown/parseSandboxArtifacts.d.ts +15 -0
  17. package/dist/components/molecules/agent-chat/AskUserQuestionCard.d.ts +36 -0
  18. package/dist/components/molecules/agent-chat/AssistantMessage.d.ts +9 -0
  19. package/dist/components/molecules/agent-chat/McpAuthCard.d.ts +16 -0
  20. package/dist/components/molecules/agent-chat/ReasoningCard.d.ts +16 -0
  21. package/dist/components/molecules/agent-chat/SandboxToolCall.d.ts +15 -0
  22. package/dist/components/molecules/agent-chat/StatusDot.d.ts +7 -0
  23. package/dist/components/molecules/agent-chat/SubAgentCard.d.ts +18 -0
  24. package/dist/components/molecules/agent-chat/ToolApprovalBlock.d.ts +36 -0
  25. package/dist/components/molecules/agent-chat/ToolCallCard.d.ts +22 -0
  26. package/dist/components/molecules/agent-chat/ToolCallContentBlock.d.ts +17 -0
  27. package/dist/components/molecules/agent-chat/index.d.ts +22 -0
  28. package/dist/components/molecules/monacoEditorCore/MonacoEditorCore.d.ts +15 -0
  29. package/dist/components/molecules/monacoEditorCore/useFontReady.d.ts +1 -0
  30. package/dist/contexts/RootFontSizeContext.d.ts +7 -0
  31. package/dist/hooks/useContainerDimensions.d.ts +3 -0
  32. package/dist/index.d.ts +6 -0
  33. package/dist/tailwindPreset.d.ts +144 -140
  34. package/dist/types/enum.d.ts +7 -0
  35. package/dist/utils/classNames.d.ts +2 -0
  36. package/dist/utils/conversions.d.ts +1 -0
  37. package/dist/utils/getRootFontSize.d.ts +2 -0
  38. package/dist/utils/index.d.ts +5 -0
  39. package/package.json +1 -1
  40. package/dist/..d.ts +0 -77
  41. package/dist/Accordion.d.ts +0 -57
  42. package/dist/Alert.d.ts +0 -73
  43. package/dist/AudioPlayer.d.ts +0 -10
  44. package/dist/Avatar.d.ts +0 -19
  45. package/dist/Badge.d.ts +0 -47
  46. package/dist/Button.d.ts +0 -64
  47. package/dist/CopyField.d.ts +0 -82
  48. package/dist/CustomDrawer.d.ts +0 -37
  49. package/dist/Dialog.d.ts +0 -18
  50. package/dist/DropdownMenu.d.ts +0 -25
  51. package/dist/IconButton.d.ts +0 -17
  52. package/dist/IconProvider.d.ts +0 -41
  53. package/dist/ImagesPreview.d.ts +0 -12
  54. package/dist/Input.d.ts +0 -27
  55. package/dist/Markdown.d.ts +0 -103
  56. package/dist/Modal.d.ts +0 -12
  57. package/dist/Notification.d.ts +0 -12
  58. package/dist/Notify.d.ts +0 -4
  59. package/dist/OutlinedRadio.d.ts +0 -9
  60. package/dist/SimpleCodeEditor.d.ts +0 -63
  61. package/dist/Skeleton.d.ts +0 -7
  62. package/dist/Spinner.d.ts +0 -15
  63. package/dist/Switch.d.ts +0 -20
  64. package/dist/TabButton.d.ts +0 -20
  65. package/dist/TabPanel.d.ts +0 -14
  66. package/dist/ThumbsFeedback.d.ts +0 -18
  67. package/dist/ToggleButton.d.ts +0 -42
  68. package/dist/Tooltip.d.ts +0 -32
  69. package/dist/UserMessage.d.ts +0 -15
  70. package/dist/UserMessageEdit.d.ts +0 -16
  71. package/dist/agent-chat.d.ts +0 -222
  72. package/dist/animation.d.ts +0 -6
  73. package/dist/backgroundColor.d.ts +0 -5
  74. package/dist/backgroundImage.d.ts +0 -10
  75. package/dist/borderWidth.d.ts +0 -6
  76. package/dist/colors.d.ts +0 -195
  77. package/dist/components/molecules/Markdown.d.ts +0 -1
  78. package/dist/components/molecules/agent-chat.d.ts +0 -1
  79. package/dist/cursor.d.ts +0 -5
  80. package/dist/dropShadow.d.ts +0 -5
  81. package/dist/flexGrow.d.ts +0 -5
  82. package/dist/fontSize.d.ts +0 -8
  83. package/dist/height.d.ts +0 -8
  84. package/dist/keyframes.d.ts +0 -20
  85. package/dist/lightColorPlugin.d.ts +0 -3
  86. package/dist/maxHeight.d.ts +0 -6
  87. package/dist/screens.d.ts +0 -8
  88. package/dist/theme.d.ts +0 -58
  89. package/dist/transitionProperty.d.ts +0 -6
  90. package/dist/useTheme.d.ts +0 -32
  91. package/dist/utils.d.ts +0 -79
  92. package/dist/zIndex.d.ts +0 -5
package/dist/theme.d.ts DELETED
@@ -1,58 +0,0 @@
1
- /**
2
- * Apply theme mode to DOM without persisting to localStorage
3
- * @param theme - 'light' or 'dark'
4
- */
5
- export declare const applyThemeMode: (theme: ThemeMode) => void;
6
-
7
- export declare const colors: any;
8
-
9
- export declare const ensureThemeTokens: () => void;
10
-
11
- /**
12
- * Get system theme preference
13
- * @returns 'light' or 'dark' based on system preference
14
- */
15
- export declare const getSystemTheme: () => ThemeMode;
16
-
17
- export declare const getTailwindColors: () => any;
18
-
19
- export declare const getThemeMode: (tenantPrefered?: ThemeModePreference) => ThemeMode;
20
-
21
- /**
22
- * Initialize theme based on user preference
23
- * Call this once when your app starts
24
- * @param userPreference - User's theme preference from backend (defaults to 'system')
25
- */
26
- export declare const initializeTheme: (userPreference?: ThemeModePreference) => ThemeMode;
27
-
28
- export declare const injectThemes: (lightTheme: any, darkTheme: any) => void;
29
-
30
- /**
31
- * Check if current theme is dark mode
32
- */
33
- export declare const isDarkMode: () => boolean;
34
-
35
- /**
36
- * Resolve theme preference to actual theme mode
37
- * @param preference - 'light', 'dark', or 'system'
38
- * @returns 'light' or 'dark'
39
- */
40
- export declare const resolveThemeMode: (preference: ThemeModePreference) => ThemeMode;
41
-
42
- /**
43
- * Set theme mode (with localStorage persistence)
44
- * @param theme - 'light' or 'dark'
45
- * @deprecated Use applyThemeMode for backend-managed themes
46
- */
47
- export declare const setThemeMode: (theme: ThemeMode) => void;
48
-
49
- export declare type ThemeMode = 'light' | 'dark';
50
-
51
- export declare type ThemeModePreference = ThemeMode | 'system';
52
-
53
- /**
54
- * Toggle between light and dark themes
55
- */
56
- export declare const toggleThemeMode: () => ThemeMode;
57
-
58
- export { }
@@ -1,6 +0,0 @@
1
- export declare const transitionProperty: {
2
- position: string;
3
- textColor: string;
4
- };
5
-
6
- export { }
@@ -1,32 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- declare type ThemeMode = 'light' | 'dark';
4
-
5
- declare type ThemeModePreference = ThemeMode | 'system';
6
-
7
- export declare const ThemeProvider: React.FC<ThemeProviderProps>;
8
-
9
- declare interface ThemeProviderProps {
10
- children: ReactNode;
11
- /**
12
- * Controlled theme. When provided, the consumer owns the source of truth:
13
- * this provider reflects the value without persisting a preference or
14
- * listening to system-theme changes. When omitted, it uses the stored
15
- * preference and system preference as its fallback owner behavior.
16
- */
17
- theme?: ThemeMode;
18
- }
19
-
20
- declare const useTheme: () => UseThemeReturn;
21
- export default useTheme;
22
- export { useTheme }
23
-
24
- export declare interface UseThemeReturn {
25
- mode: ThemeMode;
26
- preference: ThemeModePreference;
27
- isDark: boolean;
28
- setTheme: (preference: ThemeModePreference) => void;
29
- toggleTheme: (theme: ThemeModePreference) => void;
30
- }
31
-
32
- export { }
package/dist/utils.d.ts DELETED
@@ -1,79 +0,0 @@
1
- export declare function extendCustomTheme(customTheme: Record<string, any>): {
2
- fontSize: {
3
- 'base-lg': string;
4
- 'sm-base': string;
5
- '2xs': string;
6
- '3xs': string;
7
- };
8
- screens: {
9
- '2xl': string;
10
- '3xl': string;
11
- '4xl': string;
12
- '5xl': string;
13
- };
14
- borderWidth: {
15
- DEFAULT: string;
16
- 1: string;
17
- };
18
- dropShadow: (theme: (path: string) => string | undefined) => {
19
- xl: string[];
20
- };
21
- backgroundImage: (theme: (path: string) => string | undefined) => {
22
- 'blue-red-gradient': string;
23
- 'white-indigo-gradient': string;
24
- 'chat-template': string;
25
- 'blue-linear-gradient': string;
26
- 'new-deployment-gradient': string;
27
- 'new-deployment-gradient-text': string;
28
- };
29
- backgroundColor: (theme: (path: string) => string | undefined) => {
30
- app: string | undefined;
31
- };
32
- zIndex: {
33
- '-1': string;
34
- };
35
- flexGrow: {
36
- 5: string;
37
- };
38
- height: {
39
- 'screen-50': string;
40
- 'screen-60': string;
41
- 'screen-70': string;
42
- 'screen-75': string;
43
- };
44
- maxHeight: {
45
- 'screen-menu': string;
46
- modal: string;
47
- };
48
- transitionProperty: {
49
- position: string;
50
- textColor: string;
51
- };
52
- keyframes: {
53
- fadeOut: {
54
- from: {
55
- opacity: string;
56
- };
57
- to: {
58
- opacity: string;
59
- };
60
- };
61
- fadeIn: {
62
- from: {
63
- opacity: string;
64
- };
65
- to: {
66
- opacity: string;
67
- };
68
- };
69
- };
70
- animation: {
71
- fadeOut: string;
72
- fadeIn: string;
73
- };
74
- cursor: {
75
- drag: string;
76
- };
77
- } & Record<string, any>;
78
-
79
- export { }
package/dist/zIndex.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare const zIndex: {
2
- '-1': string;
3
- };
4
-
5
- export { }