@sybilion/uilib 1.4.27 → 1.4.29
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/assets/globals.css +4 -4
- package/dist/agent-glossary/content-prompt.generated.ts +8 -2
- package/dist/agent-glossary/content.generated.ts +8 -2
- package/dist/agent-glossary/content.md +8 -2
- package/dist/agent-glossary/content.prompt.md +8 -2
- package/dist/agent-glossary/workspace.generated.ts +3 -9
- package/dist/agent-glossary/workspace.index.md +3 -9
- package/dist/agent-glossary/workspace.md +3 -9
- package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
- package/dist/esm/src/components/ui/Chat/ChatPrompt/useChatPromptEditor.js +7 -4
- package/dist/esm/src/components/ui/Page/PageFooter/PageFooter.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.js +16 -5
- package/dist/esm/types/src/docs/pages/PageEmptyCanvasPage.d.ts +1 -0
- package/dist/esm/types/tests/sidebarMenuButton.test.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/ui/Chat/AGENT.md +18 -0
- package/src/components/ui/Chat/ChatChrome/AGENT.md +55 -0
- package/src/components/ui/Chat/ChatPrompt/useChatPromptEditor.ts +7 -4
- package/src/{docs/agent-guidance/chat-sheet.md → components/ui/Chat/ChatSheet/AGENT.md} +2 -2
- package/src/components/ui/Page/AGENT.md +8 -2
- package/src/components/ui/Page/PageEmptyCanvas/AGENT.md +17 -0
- package/src/components/ui/Page/PageFooter/PageFooter.styl +8 -2
- package/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.tsx +37 -23
- package/src/docs/pages/ChatAttachmentsDropzonePage.tsx +41 -39
- package/src/docs/pages/ChatComposerPrefillPage.tsx +31 -29
- package/src/docs/pages/ChatPage.styl +1 -1
- package/src/docs/pages/ChatSheetPage.tsx +2 -2
- package/src/docs/pages/ChatSlashCommandsPage.tsx +32 -30
- package/src/docs/pages/ChatUserCsvAttachmentPage.tsx +30 -28
- package/src/docs/pages/PageColumnsPage.tsx +1 -1
- package/src/docs/pages/PageEmptyCanvasPage.tsx +86 -0
- package/src/docs/pages/PageFooterPage.tsx +21 -2
- package/src/docs/pages/PagePage.tsx +1 -1
- package/src/docs/pages/PageTabsPage.tsx +1 -1
- package/src/docs/registry.ts +6 -0
- package/src/docs/agent-guidance/chat-attachments-dropzone.md +0 -15
- package/src/docs/agent-guidance/chat-composer-prefill.md +0 -15
- package/src/docs/agent-guidance/chat-slash-commands.md +0 -15
- package/src/docs/agent-guidance/chat-user-csv-attachment.md +0 -14
- package/src/docs/agent-guidance/page-columns.md +0 -19
- package/src/docs/agent-guidance/page-footer.md +0 -15
- package/src/docs/agent-guidance/page-tabs.md +0 -19
- package/src/docs/agent-guidance/page.md +0 -15
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
The chat composer supports a slash command palette built on TipTap mentions: typing / at the start of a line or after a space opens a picker, and choosing an item inserts an inline mention chip. Supply items through slashCommandItems; optional className and color style each chip.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To expose a small set of named commands users can invoke from the composer.
|
|
6
|
-
- When commands should read as part of the message, such as /generate-report.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For long or hierarchical command sets; the palette works best with a handful of items.
|
|
11
|
-
- For primary actions that deserve a visible button outside the composer.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Keep command ids stable, since plain-text sends fall back to the item id.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
User messages can carry downloadable text file attachments via userTextFileAttachments: the bubble shows the message text with a separate file row beneath it, matching the dashboard preset pattern. Users can download the attached file from that row.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- When a preset or automated flow sends data, such as a CSV extract, on the user’s behalf.
|
|
6
|
-
- To keep generated file context visible and retrievable in the conversation history.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For user-initiated uploads; use the attachments dropzone instead.
|
|
11
|
-
|
|
12
|
-
## Do
|
|
13
|
-
|
|
14
|
-
- Give each attachment a readable displayName so the file row makes sense out of context.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
PageColumns lays out a responsive row of columns inside a page section. Omit fill for equal columns; use left or right for main-plus-aside layouts on wide viewports.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To place two or more content blocks side by side within a PageContentSection.
|
|
6
|
-
- For main-plus-aside layouts where one column should grow and the other stays at a fixed width.
|
|
7
|
-
- For 3- or 4-column equal dashboards (metrics rows, panel groups) without fill.
|
|
8
|
-
|
|
9
|
-
## When not to use
|
|
10
|
-
|
|
11
|
-
- For card or tile grids; use GridLayout instead.
|
|
12
|
-
- For arbitrary flex layouts inside a component; PageColumns is a page-structure primitive.
|
|
13
|
-
|
|
14
|
-
## Do
|
|
15
|
-
|
|
16
|
-
- For 3 or 4 equal columns, omit fill (default); do not use left/right.
|
|
17
|
-
- Use fill=
|
|
18
|
-
- or fill=
|
|
19
|
-
- to keep a sidebar column at the default fixed width on wide screens (2 columns only).
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
PageFooter renders the page-level footer with copyright, a version label, and an optional row of links that wrap on narrow viewports. Links accept an icon and label and open external destinations.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- At the bottom of an application shell to show copyright, version, and support links.
|
|
6
|
-
- When you need a consistent set of external links, such as website, email, or community channels.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- For page actions or navigation within the app; keep those in the header or sidebar.
|
|
11
|
-
- Inside individual sections or cards; the footer belongs to the page shell.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Keep the link list short so it remains scannable when it wraps on mobile.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
PageTabs renders a page-scoped tab bar with optional panels. The tab strip scrolls horizontally when triggers overflow the container, and an outline variant is available for muted surfaces.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- To divide a page into a few parallel views that share the same context.
|
|
6
|
-
- When the tab row may overflow on narrow viewports and needs built-in horizontal scrolling.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- Inside a PageContentSection; PageTabs is a page-structure primitive and must sit alongside sections.
|
|
11
|
-
- For sequential steps in a flow; use a wizard or stepper pattern instead.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Wrap each tab’s content in its own PageContentSection so padding stays consistent.
|
|
16
|
-
|
|
17
|
-
## Don't
|
|
18
|
-
|
|
19
|
-
- Don’t nest PageTabs inside another PageTabs or a PageContentSection.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
PageContent and PageContentSection are the structural building blocks of a page body. PageContent wraps the whole body and applies the page width cap, while each PageContentSection forms a vertical section that owns the horizontal page padding.
|
|
2
|
-
|
|
3
|
-
## When to use
|
|
4
|
-
|
|
5
|
-
- On every authenticated page, directly below the page header, to structure the body.
|
|
6
|
-
- To split a page into vertical sections with consistent spacing and padding.
|
|
7
|
-
|
|
8
|
-
## When not to use
|
|
9
|
-
|
|
10
|
-
- Inside cards or other components; sections are page-level structure, not generic containers.
|
|
11
|
-
- Nested within another PageContentSection.
|
|
12
|
-
|
|
13
|
-
## Do
|
|
14
|
-
|
|
15
|
-
- Place all body content inside at least one PageContentSection so page padding stays consistent.
|