@sybilion/uilib 1.4.41 → 1.4.42

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.
package/README.md CHANGED
@@ -53,6 +53,7 @@ The package `[exports](./package.json)` entry `.` resolves to Rollup output and
53
53
 
54
54
  ```ts
55
55
  import { Button } from '@sybilion/uilib';
56
+ import { ChatProvider, ChatSheet } from '@sybilion/uilib/chat';
56
57
 
57
58
  // or, with alias: import { Button } from 'uilib';
58
59
  ```
@@ -116,7 +117,7 @@ runs `yarn build` before `npm publish`. `dist/` is build output only (not commit
116
117
 
117
118
  These areas expect the **app** to supply behavior or data (not vendored from product code):
118
119
 
119
- - **Chat** — `ChatContext` exports types and hooks only. Implement `ChatContext.Provider` with `ChatContextType` in the app. Use `renderMessageChart` (or equivalent props) where charts appear inside messages.
120
+ - **Chat** — import from `@sybilion/uilib/chat` (`Chat`, `ChatSheet`, `ChatProvider`, slash-mention, chat-api types). Not on the main barrel. `ChatContext` exports types and hooks only. Implement `ChatContext.Provider` with `ChatContextType` in the app. Use `renderMessageChart` (or equivalent props) where charts appear inside messages.
120
121
  - **ChartAreaInteractive** — pass legend/overlay controls such as `toggleLegendSeries`, `ensureAnalysisSeriesVisible`, `hiddenSeries`, and `overlayForecastData` (use an empty object only if quantiles are entirely prop-driven).
121
122
  - **PageFooter** — `versionLink` (empty string hides the version badge), `versionLabel`, and optional `children` between the logo block and copyright (debug UI, forms, etc. stay in the app).
122
123
  - **Breadcrumbs** / **PageHeader** — `clientLogo`, `companyName`, and breadcrumb item data.
@@ -0,0 +1,18 @@
1
+ export { ChatContext, ChatProvider, isChatEmpty, outboundPendingKey, useChat, useChatOutboundPending, useChats, useChatsForDataset, useChatsForScopeId, useCurrentChat, useIsChatLoading, useSyncChatPanelBusy } from './contexts/chat-context.js';
2
+ export { DEFAULT_CHAT_SLASH_ITEMS, filterSlashItems } from './tiptap/slash-mention/defaultChatSlashItems.js';
3
+ export { createSlashMentionExtension, slashMentionSuggestionRender } from './tiptap/slash-mention/createSlashMentionExtension.js';
4
+ export { Chat } from './components/ui/Chat/Chat.js';
5
+ export { formatChatTranscript, usedPresetIdsFromMessages } from './components/ui/Chat/chat-preset-utils.js';
6
+ export { ChatChrome } from './components/ui/Chat/ChatChrome/ChatChrome.js';
7
+ export { TEXT_ATTACHMENT_ACCEPT_PARTS, filterToTextAttachments } from './components/ui/Chat/chatAttachmentAccept.js';
8
+ export { buildChatSendMessagePayload, displayTextFromSendPayload, normalizeUserTextFileAttachments } from './components/ui/Chat/buildChatSendMessagePayload.js';
9
+ export { sanitizeAttachmentFilename } from './components/ui/Chat/sanitizeAttachmentFilename.js';
10
+ export { ChatSelector } from './components/ui/Chat/ChatSheet/ChatSelector.js';
11
+ export { ChatSheet } from './components/ui/Chat/ChatSheet/ChatSheet.js';
12
+ export { useChatPanelChromeModel } from './components/ui/Chat/ChatSheet/useChatPanelChromeModel.js';
13
+ export { ChatMessage } from './components/ui/Chat/ChatMessage/ChatMessage.js';
14
+ export { ChatPrompt } from './components/ui/Chat/ChatPrompt/ChatPrompt.js';
15
+ export { CHAT_PROMPT_COMMAND_CHIP_CLASS, chatPromptChipHtml, createChatPromptComposerHandle, getChatPromptTokenRangeBeforePos, insertChatPromptContentAtCaret } from './components/ui/Chat/ChatPrompt/chatPromptComposerInsert.js';
16
+ export { ChatPresets } from './components/ui/Chat/ChatPresets/ChatPresets.js';
17
+ export { MessageRole } from './components/ui/Chat/Chat.types.js';
18
+ export { CsvIcon } from './components/icons/CsvIcon/CsvIcon.js';
@@ -6,9 +6,6 @@ export { DEFAULT_THEME_ACTIVE_COLOR } from './docs/lib/theme.js';
6
6
  export { SybilionAuthProvider, createSybilionApiFetch, getSybilionApiOriginFromSdk, sybilionApiFetch, useSybilionApiFetch, useSybilionAuth } from './sybilion-auth/SybilionAuthProvider.js';
7
7
  export { SYBILION_AUTH_LOGIN_PATH, normalizeApiBaseUrl } from './sybilion-auth/authPaths.js';
8
8
  export { exchangeAuth0AccessTokenForSybilionJwt } from './sybilion-auth/exchangeSybilionToken.js';
9
- export { ChatContext, ChatProvider, isChatEmpty, outboundPendingKey, useChat, useChatOutboundPending, useChats, useChatsForDataset, useChatsForScopeId, useCurrentChat, useIsChatLoading, useSyncChatPanelBusy } from './contexts/chat-context.js';
10
- export { DEFAULT_CHAT_SLASH_ITEMS, filterSlashItems } from './tiptap/slash-mention/defaultChatSlashItems.js';
11
- export { createSlashMentionExtension, slashMentionSuggestionRender } from './tiptap/slash-mention/createSlashMentionExtension.js';
12
9
  export { AnalysesSelector } from './components/ui/AnalysesSelector/AnalysesSelector.js';
13
10
  export { AnalysisLineIcon } from './components/ui/AnalysisLineIcon/AnalysisLineIcon.js';
14
11
  export { AppHeaderHost, AppHeaderPortal } from './components/ui/AppHeader/AppHeader.js';
@@ -30,21 +27,6 @@ export { DRAG_TIME_RANGE_PREFIX, encodeDragTimeRange, filterDataForTimeRange, fi
30
27
  export { ChartLines, FORECAST_COLORS_MAP, FORECAST_LINE_COLORS, getForecastColor, getForecastQuantileBandColor, resolveQuantileBandFillForForecastLine } from './components/ui/ChartAreaInteractive/ChartLines.js';
31
28
  export { DonutChart } from './components/ui/DonutChart/DonutChart.js';
32
29
  export { BarChart } from './components/ui/BarChart/BarChart.js';
33
- export { Chat } from './components/ui/Chat/Chat.js';
34
- export { formatChatTranscript, usedPresetIdsFromMessages } from './components/ui/Chat/chat-preset-utils.js';
35
- export { ChatChrome } from './components/ui/Chat/ChatChrome/ChatChrome.js';
36
- export { TEXT_ATTACHMENT_ACCEPT_PARTS, filterToTextAttachments } from './components/ui/Chat/chatAttachmentAccept.js';
37
- export { buildChatSendMessagePayload, displayTextFromSendPayload, normalizeUserTextFileAttachments } from './components/ui/Chat/buildChatSendMessagePayload.js';
38
- export { sanitizeAttachmentFilename } from './components/ui/Chat/sanitizeAttachmentFilename.js';
39
- export { ChatSelector } from './components/ui/Chat/ChatSheet/ChatSelector.js';
40
- export { ChatSheet } from './components/ui/Chat/ChatSheet/ChatSheet.js';
41
- export { useChatPanelChromeModel } from './components/ui/Chat/ChatSheet/useChatPanelChromeModel.js';
42
- export { ChatMessage } from './components/ui/Chat/ChatMessage/ChatMessage.js';
43
- export { ChatPrompt } from './components/ui/Chat/ChatPrompt/ChatPrompt.js';
44
- export { CHAT_PROMPT_COMMAND_CHIP_CLASS, chatPromptChipHtml, createChatPromptComposerHandle, getChatPromptTokenRangeBeforePos, insertChatPromptContentAtCaret } from './components/ui/Chat/ChatPrompt/chatPromptComposerInsert.js';
45
- export { ChatPresets } from './components/ui/Chat/ChatPresets/ChatPresets.js';
46
- export { MessageRole } from './components/ui/Chat/Chat.types.js';
47
- export { CsvIcon } from './components/icons/CsvIcon/CsvIcon.js';
48
30
  export { Checkbox } from './components/ui/Checkbox/Checkbox.js';
49
31
  export { Confirm } from './components/ui/Confirm/Confirm.js';
50
32
  export { Calendar } from './components/ui/DatePicker/Calendar.js';
@@ -0,0 +1,5 @@
1
+ export * from './contexts/chat-context';
2
+ export * from './tiptap/slash-mention';
3
+ export * from './types/chat-api.types';
4
+ export * from './components/ui/Chat';
5
+ export type { ChatPreset } from './components/ui/Chat/Chat.types';
@@ -3,7 +3,7 @@ declare const Input: React.ForwardRefExoticComponent<(Omit<Omit<React.DetailedHT
3
3
  type?: React.ComponentProps<"input">["type"];
4
4
  size?: "sm" | "md" | "lg";
5
5
  variant?: "default" | "clean";
6
- }, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "type" | "size"> & {
6
+ }, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "size" | "type"> & {
7
7
  type: "textarea";
8
8
  size?: "sm" | "md" | "lg";
9
9
  variant?: "default" | "clean";
@@ -5,9 +5,6 @@ export * from './contexts/theme-context';
5
5
  export { DEFAULT_THEME_ACTIVE_COLOR } from './docs/lib/theme';
6
6
  export * from './sybilion-auth';
7
7
  export * from './types/sybilionDatasetSnapshots';
8
- export * from './contexts/chat-context';
9
- export * from './tiptap/slash-mention';
10
- export * from './types/chat-api.types';
11
8
  export * from './components/ui/AnalysesSelector';
12
9
  export * from './components/ui/AnalysisLineIcon';
13
10
  export * from './components/ui/AppHeader';
@@ -25,7 +22,6 @@ export * from './components/ui/Chart';
25
22
  export * from './components/ui/ChartAreaInteractive';
26
23
  export * from './components/ui/DonutChart';
27
24
  export * from './components/ui/BarChart';
28
- export * from './components/ui/Chat';
29
25
  export * from './components/ui/Checkbox';
30
26
  export * from './components/ui/Confirm';
31
27
  export * from './components/ui/DatePicker';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.4.41",
3
+ "version": "1.4.42",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -24,11 +24,21 @@
24
24
  "import": "./dist/esm/src/index.js",
25
25
  "default": "./dist/esm/src/index.js"
26
26
  },
27
+ "./chat": {
28
+ "types": "./dist/esm/types/src/chat.d.ts",
29
+ "import": "./dist/esm/src/chat.js",
30
+ "default": "./dist/esm/src/chat.js"
31
+ },
27
32
  "./src": {
28
33
  "types": "./src/index.ts",
29
34
  "import": "./src/index.ts",
30
35
  "default": "./src/index.ts"
31
36
  },
37
+ "./src/chat": {
38
+ "types": "./src/chat.ts",
39
+ "import": "./src/chat.ts",
40
+ "default": "./src/chat.ts"
41
+ },
32
42
  "./hooks": {
33
43
  "types": "./dist/esm/types/src/hooks/index.d.ts",
34
44
  "import": "./dist/esm/src/hooks/index.js",
package/src/chat.ts ADDED
@@ -0,0 +1,5 @@
1
+ export * from './contexts/chat-context';
2
+ export * from './tiptap/slash-mention';
3
+ export * from './types/chat-api.types';
4
+ export * from './components/ui/Chat';
5
+ export type { ChatPreset } from './components/ui/Chat/Chat.types';
@@ -1,34 +1,34 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'clear': string;
5
- 'darker': string;
6
- 'fadeIn': string;
7
- 'fadeOut': string;
8
- 'searchable': string;
9
- 'selectContent': string;
10
- 'selectContentPopper': string;
11
- 'selectEmpty': string;
12
- 'selectIcon': string;
13
- 'selectItem': string;
14
- 'selectItemIndicator': string;
15
- 'selectItemIndicatorContainer': string;
16
- 'selectItemText': string;
17
- 'selectLabel': string;
18
- 'selectScrollButton': string;
19
- 'selectScrollIcon': string;
20
- 'selectSeparator': string;
21
- 'selectTrigger': string;
22
- 'selectTriggerInput': string;
23
- 'selectViewport': string;
24
- 'selectViewportPopper': string;
25
- 'selected': string;
26
- 'slideInFromBottom': string;
27
- 'slideInFromLeft': string;
28
- 'slideInFromRight': string;
29
- 'slideInFromTop': string;
30
- 'zoomIn': string;
31
- 'zoomOut': string;
4
+ clear: string;
5
+ darker: string;
6
+ fadeIn: string;
7
+ fadeOut: string;
8
+ searchable: string;
9
+ selectContent: string;
10
+ selectContentPopper: string;
11
+ selectEmpty: string;
12
+ selectIcon: string;
13
+ selectItem: string;
14
+ selectItemIndicator: string;
15
+ selectItemIndicatorContainer: string;
16
+ selectItemText: string;
17
+ selectLabel: string;
18
+ selectScrollButton: string;
19
+ selectScrollIcon: string;
20
+ selectSeparator: string;
21
+ selectTrigger: string;
22
+ selectTriggerInput: string;
23
+ selectViewport: string;
24
+ selectViewportPopper: string;
25
+ selected: string;
26
+ slideInFromBottom: string;
27
+ slideInFromLeft: string;
28
+ slideInFromRight: string;
29
+ slideInFromTop: string;
30
+ zoomIn: string;
31
+ zoomOut: string;
32
32
  }
33
33
  export const cssExports: CssExports;
34
34
  export default cssExports;
@@ -1,25 +1,25 @@
1
1
  // This file is automatically generated.
2
2
  // Please do not change this file!
3
3
  interface CssExports {
4
- 'action': string;
5
- 'baseCanvas': string;
6
- 'canvas': string;
7
- 'cluster': string;
8
- 'dimmed': string;
9
- 'disclosure': string;
10
- 'empty': string;
11
- 'fill': string;
12
- 'hint': string;
13
- 'inspection': string;
14
- 'kicker': string;
15
- 'label': string;
16
- 'marker': string;
17
- 'node': string;
18
- 'overlay': string;
19
- 'primary': string;
20
- 'root': string;
21
- 'selected': string;
22
- 'zoom': string;
4
+ action: string;
5
+ baseCanvas: string;
6
+ canvas: string;
7
+ cluster: string;
8
+ dimmed: string;
9
+ disclosure: string;
10
+ empty: string;
11
+ fill: string;
12
+ hint: string;
13
+ inspection: string;
14
+ kicker: string;
15
+ label: string;
16
+ marker: string;
17
+ node: string;
18
+ overlay: string;
19
+ primary: string;
20
+ root: string;
21
+ selected: string;
22
+ zoom: string;
23
23
  }
24
24
  export const cssExports: CssExports;
25
25
  export default cssExports;
package/src/index.ts CHANGED
@@ -10,9 +10,6 @@ export * from './contexts/theme-context';
10
10
  export { DEFAULT_THEME_ACTIVE_COLOR } from './docs/lib/theme';
11
11
  export * from './sybilion-auth';
12
12
  export * from './types/sybilionDatasetSnapshots';
13
- export * from './contexts/chat-context';
14
- export * from './tiptap/slash-mention';
15
- export * from './types/chat-api.types';
16
13
  export * from './components/ui/AnalysesSelector';
17
14
  export * from './components/ui/AnalysisLineIcon';
18
15
  export * from './components/ui/AppHeader';
@@ -30,7 +27,6 @@ export * from './components/ui/Chart';
30
27
  export * from './components/ui/ChartAreaInteractive';
31
28
  export * from './components/ui/DonutChart';
32
29
  export * from './components/ui/BarChart';
33
- export * from './components/ui/Chat';
34
30
  export * from './components/ui/Checkbox';
35
31
  export * from './components/ui/Confirm';
36
32
  export * from './components/ui/DatePicker';