@agentiffai/design 0.1.6 → 0.1.8

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 (46) hide show
  1. package/dist/{StreamStatusIndicator-DM5n4MI1.d.cts → Window-CF5y1_Og.d.cts} +111 -106
  2. package/dist/{StreamStatusIndicator-DM5n4MI1.d.ts → Window-CF5y1_Og.d.ts} +111 -106
  3. package/dist/copilotkit/index.cjs +2486 -2276
  4. package/dist/copilotkit/index.cjs.map +1 -1
  5. package/dist/copilotkit/index.d.cts +63 -38
  6. package/dist/copilotkit/index.d.ts +63 -38
  7. package/dist/copilotkit/index.js +2484 -2275
  8. package/dist/copilotkit/index.js.map +1 -1
  9. package/dist/icons/index.cjs +68 -167
  10. package/dist/icons/index.cjs.map +1 -1
  11. package/dist/icons/index.d.cts +25 -20
  12. package/dist/icons/index.d.ts +25 -20
  13. package/dist/icons/index.js +68 -167
  14. package/dist/icons/index.js.map +1 -1
  15. package/dist/index.cjs +5848 -3645
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +332 -4
  18. package/dist/index.d.ts +332 -4
  19. package/dist/index.js +5796 -3614
  20. package/dist/index.js.map +1 -1
  21. package/dist/layout/index.cjs +1000 -525
  22. package/dist/layout/index.cjs.map +1 -1
  23. package/dist/layout/index.d.cts +70 -8
  24. package/dist/layout/index.d.ts +70 -8
  25. package/dist/layout/index.js +997 -523
  26. package/dist/layout/index.js.map +1 -1
  27. package/dist/theme/index.cjs +345 -24
  28. package/dist/theme/index.cjs.map +1 -1
  29. package/dist/theme/index.d.cts +524 -65
  30. package/dist/theme/index.d.ts +524 -65
  31. package/dist/theme/index.js +345 -24
  32. package/dist/theme/index.js.map +1 -1
  33. package/dist/workflow/index.cjs +870 -575
  34. package/dist/workflow/index.cjs.map +1 -1
  35. package/dist/workflow/index.d.cts +93 -57
  36. package/dist/workflow/index.d.ts +93 -57
  37. package/dist/workflow/index.js +866 -572
  38. package/dist/workflow/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/public/assets/icon-set/Icon-contacts-fill.svg +3 -0
  41. package/public/assets/icon-set/Icon-mail-open-fill.svg +3 -0
  42. package/public/assets/icon-set/Icon-p2p-fill.svg +3 -0
  43. package/public/assets/icon-set/Icon-robot-2-fill.svg +3 -0
  44. package/public/assets/icon-set/Icon-send-plane-fill.svg +3 -0
  45. package/public/assets/icon-set/Notion.svg +41 -0
  46. package/public/assets/icon-set/Postiz.svg +1 -0
@@ -1,7 +1,61 @@
1
+ import React__default, { ImgHTMLAttributes, ReactNode } from 'react';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ImgHTMLAttributes, ReactNode } from 'react';
3
3
  import { AriaButtonProps } from '@react-types/button';
4
4
 
5
+ /**
6
+ * CategoryNav Component
7
+ *
8
+ * Vertical navigation bar displaying categories with expandable sub-items.
9
+ * Generic component that can be used for any category-based navigation.
10
+ */
11
+
12
+ /**
13
+ * Represents a sub-item within a category
14
+ */
15
+ interface CategorySubItem {
16
+ /** Unique identifier */
17
+ id: string;
18
+ /** Display name */
19
+ name: string;
20
+ /** Icon element or image path */
21
+ icon: React__default.ReactNode | string;
22
+ }
23
+ /**
24
+ * Represents a category in the navigation
25
+ */
26
+ interface CategoryItem<T extends string = string> {
27
+ /** Unique identifier */
28
+ id: T;
29
+ /** Display label */
30
+ label: string;
31
+ /** Icon path (SVG) */
32
+ iconPath: string;
33
+ /** Sub-items within this category */
34
+ subItems?: CategorySubItem[];
35
+ }
36
+ interface CategoryNavProps<T extends string = string> {
37
+ /** List of categories to display */
38
+ categories: CategoryItem<T>[];
39
+ /** Currently selected category (null = none) */
40
+ selectedCategory: T | null;
41
+ /** Currently selected sub-item within category (null = all in category) */
42
+ selectedSubItem: string | null;
43
+ /** Callback when category is selected */
44
+ onCategorySelect: (category: T | null) => void;
45
+ /** Callback when sub-item is selected */
46
+ onSubItemSelect: (subItem: string | null) => void;
47
+ /** Optional counts per category */
48
+ categoryCounts?: Record<T, number>;
49
+ /** Optional set of enabled categories (if provided, hides categories not in set) */
50
+ enabledCategories?: Set<T>;
51
+ /** Test ID prefix for testing */
52
+ testIdPrefix?: string;
53
+ }
54
+ declare function CategoryNav<T extends string = string>({ categories, selectedCategory, selectedSubItem, onCategorySelect, onSubItemSelect, categoryCounts, enabledCategories, testIdPrefix, }: CategoryNavProps<T>): React__default.ReactElement;
55
+ declare namespace CategoryNav {
56
+ var displayName: string;
57
+ }
58
+
5
59
  declare const IconNames: {
6
60
  readonly MIC: "mic-fill";
7
61
  readonly MIC_OFF: "mic-off-fill";
@@ -33,13 +87,15 @@ declare namespace Icon {
33
87
 
34
88
  interface LayoutProps {
35
89
  mainPaneSlot: ReactNode;
90
+ /** Background content rendered behind MainPane, visible when MainPane slides away */
91
+ backgroundSlot?: ReactNode;
36
92
  navVerticalSlot?: ReactNode;
37
93
  navHorizontalUserSlot?: ReactNode;
38
94
  navHorizontalActionsSlot?: ReactNode;
39
95
  onNavBackClick?: () => void;
40
96
  className?: string;
41
97
  }
42
- declare function Layout({ mainPaneSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
98
+ declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
43
99
  declare namespace Layout {
44
100
  var displayName: string;
45
101
  }
@@ -106,7 +162,12 @@ interface RunItem {
106
162
  name: string;
107
163
  status: 'completed' | 'running' | 'failed';
108
164
  details: string;
109
- category: 'scheduled' | 'completed' | 'issues';
165
+ /** @deprecated Use 'executing' | 'completed' | 'failed' instead. 'scheduled' maps to 'executing', 'issues' maps to 'failed' */
166
+ category: 'scheduled' | 'completed' | 'issues' | 'executing' | 'failed';
167
+ /** Workflow name for grouping executions under their parent workflow */
168
+ workflowName?: string;
169
+ /** Workflow ID for grouping */
170
+ workflowId?: string;
110
171
  icon?: 'loader' | 'radioButton' | 'shieldCheck' | 'shieldCross' | 'bell' | 'file' | 'link' | 'chat' | 'warning';
111
172
  logs?: ActionLog[];
112
173
  customContent?: React.ReactNode;
@@ -119,8 +180,8 @@ interface OAuthConnectionData {
119
180
  scopes?: string[];
120
181
  }
121
182
  interface PaneMenusProps {
122
- activeTab?: 'runs' | 'usage' | 'connections';
123
- onTabChange?: (tab: 'runs' | 'usage' | 'connections') => void;
183
+ activeTab?: 'workflows' | 'runs' | 'usage' | 'connections';
184
+ onTabChange?: (tab: 'workflows' | 'runs' | 'usage' | 'connections') => void;
124
185
  runs?: RunItem[];
125
186
  onRunSelect?: (runId: string) => void;
126
187
  currentUsage?: number;
@@ -133,9 +194,10 @@ interface PaneMenusProps {
133
194
  onOAuthDisconnect?: (connectionId: string) => void;
134
195
  isOAuthConnecting?: boolean;
135
196
  isOAuthLoading?: boolean;
136
- onBrowseAutomations?: () => void;
197
+ connectionsSlot?: React.ReactNode;
198
+ workflowsSlot?: React.ReactNode;
137
199
  }
138
- declare function PaneMenus({ activeTab, onTabChange, runs, onRunSelect, currentUsage, maxUsage, isGoogleConnected, onGoogleConnect, onGoogleDisconnect, oauthConnections, onOAuthConnect, onOAuthDisconnect, isOAuthConnecting, isOAuthLoading, onBrowseAutomations, }: PaneMenusProps): react_jsx_runtime.JSX.Element;
200
+ declare function PaneMenus({ activeTab, onTabChange, runs, onRunSelect, currentUsage, maxUsage, isGoogleConnected, onGoogleConnect, onGoogleDisconnect, oauthConnections, onOAuthConnect, onOAuthDisconnect, isOAuthConnecting, isOAuthLoading, connectionsSlot, workflowsSlot, }: PaneMenusProps): react_jsx_runtime.JSX.Element;
139
201
 
140
202
  type BrandType = 'Google' | 'Microsoft' | 'Slack' | 'YouTube';
141
203
  interface PaneSectionHeaderProps {
@@ -222,4 +284,4 @@ declare namespace ServiceIcon {
222
284
  var displayName: string;
223
285
  }
224
286
 
225
- export { ActionButtons, type ActionButtonsProps, type BrandType, Icon, type IconName, IconNames, type IconProps, Layout, type LayoutProps, NavHorizontal, type NavHorizontalProps, NavVertical, type NavVerticalProps, type OAuthConnectionData, PaneMenus, type PaneMenusProps, PaneSectionHeader, type PaneSectionHeaderProps, type ServiceBrand, ServiceIcon, type ServiceIconProps, WorkflowStatusCard, type WorkflowStatusCardProps };
287
+ export { ActionButtons, type ActionButtonsProps, type BrandType, type CategoryItem, CategoryNav, type CategoryNavProps, type CategorySubItem, Icon, type IconName, IconNames, type IconProps, Layout, type LayoutProps, NavHorizontal, type NavHorizontalProps, NavVertical, type NavVerticalProps, type OAuthConnectionData, PaneMenus, type PaneMenusProps, PaneSectionHeader, type PaneSectionHeaderProps, type ServiceBrand, ServiceIcon, type ServiceIconProps, WorkflowStatusCard, type WorkflowStatusCardProps };
@@ -1,7 +1,61 @@
1
+ import React__default, { ImgHTMLAttributes, ReactNode } from 'react';
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ImgHTMLAttributes, ReactNode } from 'react';
3
3
  import { AriaButtonProps } from '@react-types/button';
4
4
 
5
+ /**
6
+ * CategoryNav Component
7
+ *
8
+ * Vertical navigation bar displaying categories with expandable sub-items.
9
+ * Generic component that can be used for any category-based navigation.
10
+ */
11
+
12
+ /**
13
+ * Represents a sub-item within a category
14
+ */
15
+ interface CategorySubItem {
16
+ /** Unique identifier */
17
+ id: string;
18
+ /** Display name */
19
+ name: string;
20
+ /** Icon element or image path */
21
+ icon: React__default.ReactNode | string;
22
+ }
23
+ /**
24
+ * Represents a category in the navigation
25
+ */
26
+ interface CategoryItem<T extends string = string> {
27
+ /** Unique identifier */
28
+ id: T;
29
+ /** Display label */
30
+ label: string;
31
+ /** Icon path (SVG) */
32
+ iconPath: string;
33
+ /** Sub-items within this category */
34
+ subItems?: CategorySubItem[];
35
+ }
36
+ interface CategoryNavProps<T extends string = string> {
37
+ /** List of categories to display */
38
+ categories: CategoryItem<T>[];
39
+ /** Currently selected category (null = none) */
40
+ selectedCategory: T | null;
41
+ /** Currently selected sub-item within category (null = all in category) */
42
+ selectedSubItem: string | null;
43
+ /** Callback when category is selected */
44
+ onCategorySelect: (category: T | null) => void;
45
+ /** Callback when sub-item is selected */
46
+ onSubItemSelect: (subItem: string | null) => void;
47
+ /** Optional counts per category */
48
+ categoryCounts?: Record<T, number>;
49
+ /** Optional set of enabled categories (if provided, hides categories not in set) */
50
+ enabledCategories?: Set<T>;
51
+ /** Test ID prefix for testing */
52
+ testIdPrefix?: string;
53
+ }
54
+ declare function CategoryNav<T extends string = string>({ categories, selectedCategory, selectedSubItem, onCategorySelect, onSubItemSelect, categoryCounts, enabledCategories, testIdPrefix, }: CategoryNavProps<T>): React__default.ReactElement;
55
+ declare namespace CategoryNav {
56
+ var displayName: string;
57
+ }
58
+
5
59
  declare const IconNames: {
6
60
  readonly MIC: "mic-fill";
7
61
  readonly MIC_OFF: "mic-off-fill";
@@ -33,13 +87,15 @@ declare namespace Icon {
33
87
 
34
88
  interface LayoutProps {
35
89
  mainPaneSlot: ReactNode;
90
+ /** Background content rendered behind MainPane, visible when MainPane slides away */
91
+ backgroundSlot?: ReactNode;
36
92
  navVerticalSlot?: ReactNode;
37
93
  navHorizontalUserSlot?: ReactNode;
38
94
  navHorizontalActionsSlot?: ReactNode;
39
95
  onNavBackClick?: () => void;
40
96
  className?: string;
41
97
  }
42
- declare function Layout({ mainPaneSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
98
+ declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
43
99
  declare namespace Layout {
44
100
  var displayName: string;
45
101
  }
@@ -106,7 +162,12 @@ interface RunItem {
106
162
  name: string;
107
163
  status: 'completed' | 'running' | 'failed';
108
164
  details: string;
109
- category: 'scheduled' | 'completed' | 'issues';
165
+ /** @deprecated Use 'executing' | 'completed' | 'failed' instead. 'scheduled' maps to 'executing', 'issues' maps to 'failed' */
166
+ category: 'scheduled' | 'completed' | 'issues' | 'executing' | 'failed';
167
+ /** Workflow name for grouping executions under their parent workflow */
168
+ workflowName?: string;
169
+ /** Workflow ID for grouping */
170
+ workflowId?: string;
110
171
  icon?: 'loader' | 'radioButton' | 'shieldCheck' | 'shieldCross' | 'bell' | 'file' | 'link' | 'chat' | 'warning';
111
172
  logs?: ActionLog[];
112
173
  customContent?: React.ReactNode;
@@ -119,8 +180,8 @@ interface OAuthConnectionData {
119
180
  scopes?: string[];
120
181
  }
121
182
  interface PaneMenusProps {
122
- activeTab?: 'runs' | 'usage' | 'connections';
123
- onTabChange?: (tab: 'runs' | 'usage' | 'connections') => void;
183
+ activeTab?: 'workflows' | 'runs' | 'usage' | 'connections';
184
+ onTabChange?: (tab: 'workflows' | 'runs' | 'usage' | 'connections') => void;
124
185
  runs?: RunItem[];
125
186
  onRunSelect?: (runId: string) => void;
126
187
  currentUsage?: number;
@@ -133,9 +194,10 @@ interface PaneMenusProps {
133
194
  onOAuthDisconnect?: (connectionId: string) => void;
134
195
  isOAuthConnecting?: boolean;
135
196
  isOAuthLoading?: boolean;
136
- onBrowseAutomations?: () => void;
197
+ connectionsSlot?: React.ReactNode;
198
+ workflowsSlot?: React.ReactNode;
137
199
  }
138
- declare function PaneMenus({ activeTab, onTabChange, runs, onRunSelect, currentUsage, maxUsage, isGoogleConnected, onGoogleConnect, onGoogleDisconnect, oauthConnections, onOAuthConnect, onOAuthDisconnect, isOAuthConnecting, isOAuthLoading, onBrowseAutomations, }: PaneMenusProps): react_jsx_runtime.JSX.Element;
200
+ declare function PaneMenus({ activeTab, onTabChange, runs, onRunSelect, currentUsage, maxUsage, isGoogleConnected, onGoogleConnect, onGoogleDisconnect, oauthConnections, onOAuthConnect, onOAuthDisconnect, isOAuthConnecting, isOAuthLoading, connectionsSlot, workflowsSlot, }: PaneMenusProps): react_jsx_runtime.JSX.Element;
139
201
 
140
202
  type BrandType = 'Google' | 'Microsoft' | 'Slack' | 'YouTube';
141
203
  interface PaneSectionHeaderProps {
@@ -222,4 +284,4 @@ declare namespace ServiceIcon {
222
284
  var displayName: string;
223
285
  }
224
286
 
225
- export { ActionButtons, type ActionButtonsProps, type BrandType, Icon, type IconName, IconNames, type IconProps, Layout, type LayoutProps, NavHorizontal, type NavHorizontalProps, NavVertical, type NavVerticalProps, type OAuthConnectionData, PaneMenus, type PaneMenusProps, PaneSectionHeader, type PaneSectionHeaderProps, type ServiceBrand, ServiceIcon, type ServiceIconProps, WorkflowStatusCard, type WorkflowStatusCardProps };
287
+ export { ActionButtons, type ActionButtonsProps, type BrandType, type CategoryItem, CategoryNav, type CategoryNavProps, type CategorySubItem, Icon, type IconName, IconNames, type IconProps, Layout, type LayoutProps, NavHorizontal, type NavHorizontalProps, NavVertical, type NavVerticalProps, type OAuthConnectionData, PaneMenus, type PaneMenusProps, PaneSectionHeader, type PaneSectionHeaderProps, type ServiceBrand, ServiceIcon, type ServiceIconProps, WorkflowStatusCard, type WorkflowStatusCardProps };