cortex-react-components 2.0.5 → 2.0.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 (154) hide show
  1. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  2. package/dist/{chunk-GIL2SMPM.mjs → chunk-2EC6ZHJE.mjs} +1 -1
  3. package/dist/{chunk-GH3F4DKW.mjs → chunk-4FOM4XM6.mjs} +1 -1
  4. package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
  5. package/dist/{chunk-S5BLSQXV.mjs → chunk-5JQAH3EN.mjs} +1 -1
  6. package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
  7. package/dist/{chunk-WDZOGIT2.mjs → chunk-7WTM3LJ4.mjs} +1 -1
  8. package/dist/{chunk-JLUX7EHB.mjs → chunk-AHJIHY2A.mjs} +1 -1
  9. package/dist/{chunk-PRK2XFAZ.mjs → chunk-AWMFKQHJ.mjs} +1 -1
  10. package/dist/{chunk-IV5HRCWW.mjs → chunk-BDDEMCAH.mjs} +1 -1
  11. package/dist/{chunk-75WE6ZXB.mjs → chunk-CLGBBNRB.mjs} +1 -1
  12. package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
  13. package/dist/{chunk-T36QUKC6.mjs → chunk-EB2UGKCE.mjs} +1 -1
  14. package/dist/{chunk-KEOMDWUC.mjs → chunk-EHSOO47V.mjs} +1 -1
  15. package/dist/{chunk-RVDQVN5C.mjs → chunk-ERURPIHS.mjs} +1 -1
  16. package/dist/{chunk-M74BIPBM.mjs → chunk-FATHLUEL.mjs} +1 -1
  17. package/dist/{chunk-TCXAETN2.mjs → chunk-FHJ4MHLT.mjs} +1 -1
  18. package/dist/{chunk-BN747TQM.mjs → chunk-GEFCIPUN.mjs} +1 -1
  19. package/dist/{chunk-45DDMEV4.mjs → chunk-GGXCPUR2.mjs} +1 -1
  20. package/dist/{chunk-2GZQYAN3.mjs → chunk-GWAEXG22.mjs} +1 -1
  21. package/dist/{chunk-FOISWNF5.mjs → chunk-HHYHENVF.mjs} +1 -1
  22. package/dist/{chunk-FXTFE74U.mjs → chunk-HKM6FA5J.mjs} +1 -1
  23. package/dist/{chunk-F4UGWCXY.mjs → chunk-IQQ7ZWCP.mjs} +1 -1
  24. package/dist/{chunk-IDG2O4B7.mjs → chunk-ISBVFNWD.mjs} +1 -1
  25. package/dist/{chunk-NXG2Y4N4.mjs → chunk-L3SSJ5A3.mjs} +1 -1
  26. package/dist/{chunk-IPV2NFB6.mjs → chunk-L7W3JS7W.mjs} +1 -1
  27. package/dist/{chunk-CVLUVZR3.mjs → chunk-LLED3RQS.mjs} +1 -1
  28. package/dist/{chunk-RK2CAIEF.mjs → chunk-M527EJIX.mjs} +1 -1
  29. package/dist/{chunk-UA76VX54.mjs → chunk-MMOATE43.mjs} +1 -1
  30. package/dist/{chunk-JT65KF7C.mjs → chunk-N2336R53.mjs} +1 -1
  31. package/dist/{chunk-Y62OBV2E.mjs → chunk-NC7WGIM5.mjs} +1 -1
  32. package/dist/{chunk-SNZ5BAQQ.mjs → chunk-NHFCO6RG.mjs} +1 -1
  33. package/dist/{chunk-OB5WMODY.mjs → chunk-O3ORC6HS.mjs} +1 -1
  34. package/dist/{chunk-V5W32NJ4.mjs → chunk-OEFXIEY3.mjs} +1 -1
  35. package/dist/{chunk-5KS3DITB.mjs → chunk-OJZQH57M.mjs} +1 -1
  36. package/dist/chunk-PE3RX2EM.mjs +4 -0
  37. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  38. package/dist/{chunk-TRFGSHZW.mjs → chunk-RMIGFWKK.mjs} +1 -1
  39. package/dist/{chunk-BDNY6OKE.mjs → chunk-TEL4MSNV.mjs} +1 -1
  40. package/dist/{chunk-I4LKRX2X.mjs → chunk-UENDC4U4.mjs} +1 -1
  41. package/dist/{chunk-ZZ6VZFRV.mjs → chunk-WOSN4OLA.mjs} +1 -1
  42. package/dist/{chunk-BGADMIWV.mjs → chunk-WYHDFQVL.mjs} +1 -1
  43. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  44. package/dist/{chunk-GTK2SGS5.mjs → chunk-XBCYPOFD.mjs} +1 -1
  45. package/dist/{chunk-66ODXUVL.mjs → chunk-XEZD3D7C.mjs} +1 -1
  46. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  47. package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
  48. package/dist/{chunk-NBWEIVGC.mjs → chunk-Y7XREGJN.mjs} +1 -1
  49. package/dist/components/AdvancedComponents/index.mjs +1 -1
  50. package/dist/components/Blocks/Banner.mjs +1 -1
  51. package/dist/components/Blocks/CallToAction.mjs +1 -1
  52. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  53. package/dist/components/Blocks/Content.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  55. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  56. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  57. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  58. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  59. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  60. package/dist/components/Blocks/index.mjs +1 -1
  61. package/dist/components/CRM/CogeBoard.mjs +1 -1
  62. package/dist/components/CRM/DealDetails.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  64. package/dist/components/CRM/NewDealForm.mjs +1 -1
  65. package/dist/components/CRM/index.mjs +1 -1
  66. package/dist/components/Cards/ContentCard.mjs +1 -1
  67. package/dist/components/Cards/FeatureCard.mjs +1 -1
  68. package/dist/components/Cards/index.mjs +1 -1
  69. package/dist/components/Chat/ChatInterface.mjs +1 -1
  70. package/dist/components/Chat/CopilotInterface.d.ts +5 -1
  71. package/dist/components/Chat/CopilotInterface.js +1 -1
  72. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  73. package/dist/components/Chat/README-AI-Integration.js +140 -0
  74. package/dist/components/Chat/README-AI-Integration.mjs +140 -0
  75. package/dist/components/Chat/demo.js +1 -1
  76. package/dist/components/Chat/demo.mjs +1 -1
  77. package/dist/components/Chat/example-usage.js +1 -1
  78. package/dist/components/Chat/example-usage.mjs +1 -1
  79. package/dist/components/Chat/example-with-vercel-ai.css +1 -0
  80. package/dist/components/Chat/example-with-vercel-ai.d.ts +43 -0
  81. package/dist/components/Chat/example-with-vercel-ai.js +5 -0
  82. package/dist/components/Chat/example-with-vercel-ai.mjs +2 -0
  83. package/dist/components/Chat/index.js +2 -2
  84. package/dist/components/Chat/index.mjs +1 -1
  85. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  86. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  87. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  88. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  89. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  90. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  91. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  92. package/dist/components/HeaderFooter/Header.mjs +1 -1
  93. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  94. package/dist/components/HeaderFooter/index.mjs +1 -1
  95. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  96. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  97. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  98. package/dist/components/Heros/PostHero/index.mjs +1 -1
  99. package/dist/components/Heros/RenderHero.mjs +1 -1
  100. package/dist/components/Heros/index.mjs +1 -1
  101. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  102. package/dist/components/Holidays/index.mjs +1 -1
  103. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  104. package/dist/components/Layouts/Print.mjs +1 -1
  105. package/dist/components/Layouts/SlideShow.mjs +1 -1
  106. package/dist/components/Layouts/index.mjs +1 -1
  107. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  108. package/dist/components/Menus/SidebarRight.mjs +1 -1
  109. package/dist/components/Menus/index.mjs +1 -1
  110. package/dist/components/Payload/Card/index.mjs +1 -1
  111. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  112. package/dist/components/Payload/Media/index.mjs +1 -1
  113. package/dist/components/Payload/RichText/index.mjs +1 -1
  114. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  115. package/dist/components/Payload/index.mjs +1 -1
  116. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  117. package/dist/components/Projects/ProjectPage.mjs +1 -1
  118. package/dist/components/Projects/ProjectView.mjs +1 -1
  119. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  120. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  121. package/dist/components/dc-temp/index.mjs +1 -1
  122. package/dist/components/dc-temp/knowledge-search.mjs +1 -1
  123. package/dist/components/index.js +9 -9
  124. package/dist/components/index.mjs +1 -1
  125. package/dist/components/ui/index.mjs +1 -1
  126. package/dist/components/ui/sidebar.mjs +1 -1
  127. package/dist/index.js +14 -14
  128. package/dist/index.mjs +1 -1
  129. package/dist/metafile-cjs.json +1 -1
  130. package/dist/metafile-esm.json +1 -1
  131. package/dist/pages/Blog.mjs +1 -1
  132. package/dist/pages/Documentation.mjs +1 -1
  133. package/dist/pages/IndexPage.mjs +1 -1
  134. package/dist/pages/Intranet.mjs +1 -1
  135. package/dist/pages/LandingPage.mjs +1 -1
  136. package/dist/pages/Page.mjs +1 -1
  137. package/dist/pages/Publish.mjs +1 -1
  138. package/dist/pages/Website.mjs +1 -1
  139. package/dist/sections/AboutSection.mjs +1 -1
  140. package/dist/sections/BlogDetail.mjs +1 -1
  141. package/dist/sections/BlogList.mjs +1 -1
  142. package/dist/sections/BlogListSection.mjs +1 -1
  143. package/dist/sections/ContactSection.mjs +1 -1
  144. package/dist/sections/PageSections.mjs +1 -1
  145. package/dist/sections/PricingSection.mjs +1 -1
  146. package/dist/sections/ServiceDetail.mjs +1 -1
  147. package/dist/sections/ServiceDetailSection.mjs +1 -1
  148. package/dist/sections/ServiceSection.mjs +1 -1
  149. package/dist/sections/index.mjs +1 -1
  150. package/dist/test-useChat-api.d.ts +1 -0
  151. package/dist/test-useChat-api.js +1 -0
  152. package/dist/test-useChat-api.mjs +1 -0
  153. package/package.json +1 -1
  154. package/dist/chunk-ZCEVYZEO.mjs +0 -4
@@ -0,0 +1,140 @@
1
+ var i=`# CopilotInterface with Built-in AI Integration
2
+
3
+ ## Overview
4
+
5
+ The \`CopilotInterface\` component now has AI functionality built-in by default, powered by the Vercel AI SDK. It automatically handles AI conversations while maintaining full flexibility for customization and testing.
6
+
7
+ ## Key Features
8
+
9
+ ### 1. AI by Default
10
+ - AI functionality is enabled by default
11
+ - No complex setup required
12
+ - Just provide AI configuration if needed
13
+
14
+ ### 2. Flexible Configuration
15
+ - \`aiConfig\` - Configure the AI behavior
16
+ - \`enableAI\` - Toggle AI on/off
17
+ - \`useCustomChat\` - Override with your own chat instance
18
+
19
+ ### 3. Backward Compatible
20
+ - Works with static messages when AI is disabled
21
+ - Perfect for development and testing
22
+
23
+ ## Usage Examples
24
+
25
+ ### 1. Simplest Usage (AI Enabled by Default)
26
+
27
+ \`\`\`tsx
28
+ <CopilotInterface
29
+ businessUnits={businessUnits}
30
+ capabilities={capabilities}
31
+ // ... other props
32
+ // AI is automatically enabled!
33
+ />
34
+ \`\`\`
35
+
36
+ ### 2. With Custom AI Configuration
37
+
38
+ \`\`\`tsx
39
+ <CopilotInterface
40
+ aiConfig={{
41
+ onError: (error) => console.error('AI Error:', error),
42
+ // Add other useChat options here
43
+ }}
44
+ businessUnits={businessUnits}
45
+ capabilities={capabilities}
46
+ // ... other props
47
+ />
48
+ \`\`\`
49
+
50
+ ### 3. Disable AI for Testing/Demo
51
+
52
+ \`\`\`tsx
53
+ <CopilotInterface
54
+ enableAI={false}
55
+ messages={staticDemoMessages}
56
+ businessUnits={businessUnits}
57
+ capabilities={capabilities}
58
+ // ... other props
59
+ />
60
+ \`\`\`
61
+
62
+ ### 4. Advanced: Custom Chat Management
63
+
64
+ \`\`\`tsx
65
+ function MyComponent() {
66
+ const customChat = useChat({
67
+ // Your custom configuration
68
+ onError: (error) => console.error('Custom error:', error),
69
+ })
70
+
71
+ return (
72
+ <CopilotInterface
73
+ useCustomChat={customChat}
74
+ businessUnits={businessUnits}
75
+ capabilities={capabilities}
76
+ // ... other props
77
+ />
78
+ )
79
+ }
80
+ \`\`\`
81
+
82
+ ## Props Reference
83
+
84
+ \`\`\`tsx
85
+ interface CopilotInterfaceProps {
86
+ // AI Integration
87
+ aiConfig?: Parameters<typeof useChat>[0] // AI configuration options
88
+ useCustomChat?: ReturnType<typeof useChat> // Override with custom chat instance
89
+ enableAI?: boolean // Enable/disable AI (default: true)
90
+
91
+ // Fallback for when AI is disabled
92
+ messages?: UIMessage[]
93
+
94
+ // ... all other existing props
95
+ }
96
+ \`\`\`
97
+
98
+ ## Architecture Benefits
99
+
100
+ ### Why Built-in vs Props?
101
+
102
+ **\u2705 Built-in Approach (Current):**
103
+ - **Simpler API**: Just works out of the box
104
+ - **Better DX**: Less setup, more intuitive
105
+ - **Flexible**: Still allows customization when needed
106
+ - **Testable**: Can easily disable for testing
107
+
108
+ **\u274C Props Approach (Previous):**
109
+ - More complex API
110
+ - Required wrapping hooks in functions
111
+ - More setup required for basic usage
112
+
113
+ ## Migration from Previous Version
114
+
115
+ **Before:**
116
+ \`\`\`tsx
117
+ const createUseChat = () => useChat({ /* config */ })
118
+
119
+ <CopilotInterface useChat={createUseChat} {...props} />
120
+ \`\`\`
121
+
122
+ **After:**
123
+ \`\`\`tsx
124
+ <CopilotInterface aiConfig={{ /* config */ }} {...props} />
125
+ \`\`\`
126
+
127
+ ## Files Modified
128
+
129
+ 1. **\`CopilotInterface.tsx\`** - Built-in AI integration
130
+ 2. **\`CopilotInterface.stories.tsx\`** - Updated stories
131
+ 3. **\`example-with-vercel-ai.tsx\`** - Multiple usage patterns
132
+ 4. **\`README-AI-Integration.md\`** - Updated documentation
133
+
134
+ ## Storybook Stories
135
+
136
+ - **Default**: Traditional usage (AI enabled by default)
137
+ - **With AI Integration**: Shows AI configuration
138
+ - **AI Disabled**: Demo mode with static messages
139
+ - All team-focused stories work as before
140
+ `;
@@ -0,0 +1,140 @@
1
+ import"../../chunk-YEKQJ4YC.mjs";var i=`# CopilotInterface with Built-in AI Integration
2
+
3
+ ## Overview
4
+
5
+ The \`CopilotInterface\` component now has AI functionality built-in by default, powered by the Vercel AI SDK. It automatically handles AI conversations while maintaining full flexibility for customization and testing.
6
+
7
+ ## Key Features
8
+
9
+ ### 1. AI by Default
10
+ - AI functionality is enabled by default
11
+ - No complex setup required
12
+ - Just provide AI configuration if needed
13
+
14
+ ### 2. Flexible Configuration
15
+ - \`aiConfig\` - Configure the AI behavior
16
+ - \`enableAI\` - Toggle AI on/off
17
+ - \`useCustomChat\` - Override with your own chat instance
18
+
19
+ ### 3. Backward Compatible
20
+ - Works with static messages when AI is disabled
21
+ - Perfect for development and testing
22
+
23
+ ## Usage Examples
24
+
25
+ ### 1. Simplest Usage (AI Enabled by Default)
26
+
27
+ \`\`\`tsx
28
+ <CopilotInterface
29
+ businessUnits={businessUnits}
30
+ capabilities={capabilities}
31
+ // ... other props
32
+ // AI is automatically enabled!
33
+ />
34
+ \`\`\`
35
+
36
+ ### 2. With Custom AI Configuration
37
+
38
+ \`\`\`tsx
39
+ <CopilotInterface
40
+ aiConfig={{
41
+ onError: (error) => console.error('AI Error:', error),
42
+ // Add other useChat options here
43
+ }}
44
+ businessUnits={businessUnits}
45
+ capabilities={capabilities}
46
+ // ... other props
47
+ />
48
+ \`\`\`
49
+
50
+ ### 3. Disable AI for Testing/Demo
51
+
52
+ \`\`\`tsx
53
+ <CopilotInterface
54
+ enableAI={false}
55
+ messages={staticDemoMessages}
56
+ businessUnits={businessUnits}
57
+ capabilities={capabilities}
58
+ // ... other props
59
+ />
60
+ \`\`\`
61
+
62
+ ### 4. Advanced: Custom Chat Management
63
+
64
+ \`\`\`tsx
65
+ function MyComponent() {
66
+ const customChat = useChat({
67
+ // Your custom configuration
68
+ onError: (error) => console.error('Custom error:', error),
69
+ })
70
+
71
+ return (
72
+ <CopilotInterface
73
+ useCustomChat={customChat}
74
+ businessUnits={businessUnits}
75
+ capabilities={capabilities}
76
+ // ... other props
77
+ />
78
+ )
79
+ }
80
+ \`\`\`
81
+
82
+ ## Props Reference
83
+
84
+ \`\`\`tsx
85
+ interface CopilotInterfaceProps {
86
+ // AI Integration
87
+ aiConfig?: Parameters<typeof useChat>[0] // AI configuration options
88
+ useCustomChat?: ReturnType<typeof useChat> // Override with custom chat instance
89
+ enableAI?: boolean // Enable/disable AI (default: true)
90
+
91
+ // Fallback for when AI is disabled
92
+ messages?: UIMessage[]
93
+
94
+ // ... all other existing props
95
+ }
96
+ \`\`\`
97
+
98
+ ## Architecture Benefits
99
+
100
+ ### Why Built-in vs Props?
101
+
102
+ **\u2705 Built-in Approach (Current):**
103
+ - **Simpler API**: Just works out of the box
104
+ - **Better DX**: Less setup, more intuitive
105
+ - **Flexible**: Still allows customization when needed
106
+ - **Testable**: Can easily disable for testing
107
+
108
+ **\u274C Props Approach (Previous):**
109
+ - More complex API
110
+ - Required wrapping hooks in functions
111
+ - More setup required for basic usage
112
+
113
+ ## Migration from Previous Version
114
+
115
+ **Before:**
116
+ \`\`\`tsx
117
+ const createUseChat = () => useChat({ /* config */ })
118
+
119
+ <CopilotInterface useChat={createUseChat} {...props} />
120
+ \`\`\`
121
+
122
+ **After:**
123
+ \`\`\`tsx
124
+ <CopilotInterface aiConfig={{ /* config */ }} {...props} />
125
+ \`\`\`
126
+
127
+ ## Files Modified
128
+
129
+ 1. **\`CopilotInterface.tsx\`** - Built-in AI integration
130
+ 2. **\`CopilotInterface.stories.tsx\`** - Updated stories
131
+ 3. **\`example-with-vercel-ai.tsx\`** - Multiple usage patterns
132
+ 4. **\`README-AI-Integration.md\`** - Updated documentation
133
+
134
+ ## Storybook Stories
135
+
136
+ - **Default**: Traditional usage (AI enabled by default)
137
+ - **With AI Integration**: Shows AI configuration
138
+ - **AI Disabled**: Demo mode with static messages
139
+ - All team-focused stories work as before
140
+ `;export{i as default};