mirror of
https://github.com/spartan-ng/spartan.git
synced 2026-09-22 16:41:38 +08:00
74baa469d7
* feat(message-scroller): add Brain and Helm chat transcript scroller Port shadcn message-scroller behavior (auto-follow, scroll anchors, prepend preserve, overflow signals) with CLI generator, registry CSS, docs previews, and Storybook stories. * fix(message-scroller): pin CLI brain peer to 1.3.1 Match the rest of supported-ui-libraries.json and libs/brain so generators do not install an older Brain that lacks the message-scroller entrypoint. * fix(message-scroller): rebuild visibility observer on margin changes IntersectionObserver rootMargin is fixed at construction. Recreate the observer when scrollMargin or scrollPreviousItemPeek change while visibility tracking is active so visible ids stay aligned with geometry. * fix(message-scroller): polish demos and harden configure/destroy * style(message-scroller): apply prettier formatting * fix(message-scroller): move stable layout to Helm and Brain attrs Keep theme CSS for sizing/visual knobs only; host data-direction and first-frame hide on Brain so Helm stays styling-only. * fix(message-scroller): move Helm styles out of theme CSS Keep scrollbar width stable during autoScroll, put Tailwind classes on Helm so the CLI does not drop non-@apply rules, and center the jump button with start-1/2. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(message-scroller): move scroller content gap into styles * docs: add message scroller nav item * chore: update tailwind 4.3 for scrollbar-* utils * feat(message-scroller): add data-autoscrolling classes to viewport * feat(message-scroller): update scroller button classes --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Marc Stammerjohann <8985933+marcjulian@users.noreply.github.com>
86 lines
1.4 KiB
JavaScript
86 lines
1.4 KiB
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'body-leading-blank': [2, 'always'],
|
|
'footer-leading-blank': [2, 'always'],
|
|
'scope-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'accordion',
|
|
'alert',
|
|
'alert-dialog',
|
|
'aspect-ratio',
|
|
'attachment',
|
|
'autocomplete',
|
|
'avatar',
|
|
'badge',
|
|
'breadcrumb',
|
|
'bubble',
|
|
'button',
|
|
'button-group',
|
|
'calendar',
|
|
'card',
|
|
'carousel',
|
|
'chart',
|
|
'checkbox',
|
|
'cli',
|
|
'collapsible',
|
|
'combobox',
|
|
'command',
|
|
'context-menu',
|
|
'data-table',
|
|
'date-picker',
|
|
'dialog',
|
|
'drawer',
|
|
'dropdown-menu',
|
|
'empty',
|
|
'field',
|
|
'hover-card',
|
|
'input',
|
|
'input-group',
|
|
'input-otp',
|
|
'item',
|
|
'kbd',
|
|
'label',
|
|
'marker',
|
|
'mcp',
|
|
'menubar',
|
|
'message',
|
|
'message-scroller',
|
|
'native-select',
|
|
'navigation-menu',
|
|
'pagination',
|
|
'popover',
|
|
'progress',
|
|
'questionnaire',
|
|
'radio-group',
|
|
'resizable',
|
|
'scroll-area',
|
|
'select',
|
|
'separator',
|
|
'sheet',
|
|
'sidebar',
|
|
'skeleton',
|
|
'slider',
|
|
'sonner',
|
|
'spinner',
|
|
'switch',
|
|
'table',
|
|
'tabs',
|
|
'textarea',
|
|
'toggle',
|
|
'toggle-group',
|
|
'tooltip',
|
|
'trpc',
|
|
'typography',
|
|
'nx',
|
|
'repo',
|
|
// semantic-release stamps the release commit as `chore(release): <version>`.
|
|
'release',
|
|
],
|
|
],
|
|
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']],
|
|
},
|
|
};
|