@kortix/ui 0.15.7 → 0.15.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.
- package/README.md +7 -7
- package/dist/_vendor/kortix-shared.js +36 -1
- package/dist/_vendor/shared/my-kortix-agent.d.ts +7 -0
- package/dist/_vendor/shared/pixel-mark.d.ts +18 -0
- package/dist/customize/connectors/catalog/connector-categories.d.ts +2 -2
- package/dist/customize/connectors/catalog/connector-categories.js +2 -2
- package/dist/customize/connectors/detail/connector-modal.js +1 -1
- package/dist/customize/sections/gateway-view.d.ts +1 -1
- package/dist/customize/sections/gateway-view.js +1 -1
- package/dist/customize/sections/view/account-secret-resources-panel.js +4 -2
- package/dist/customize/sections/view/agent-editor-basics-fields.js +1 -1
- package/dist/customize/sections/view/gateway/gateway-logs.d.ts +1 -1
- package/dist/customize/sections/view/git-view.js +1 -1
- package/dist/customize/sections/view/permission-editor.js +1 -1
- package/dist/customize/sections/view/subscription-usage.d.ts +3 -32
- package/dist/customize/sections/view/subscription-usage.js +2 -86
- package/dist/customize/shared/entity/entity-modal.js +8 -10
- package/dist/files/project/components/drive-toolbar.d.ts +1 -1
- package/dist/files/project/components/drive-toolbar.js +1 -1
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/renderers/shared/scroll-area-compat.d.ts +6 -6
- package/dist/files/renderers/shared/scroll-area-compat.js +7 -9
- package/dist/files/renderers/shared/select-compat.js +3 -7
- package/dist/files/viewer/file-preview-modal.d.ts +10 -11
- package/dist/files/viewer/file-preview-modal.js +17 -18
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +7 -4
- package/dist/index.js +1 -1
- package/dist/internal/account-hub/account-hub-location.js +2 -2
- package/dist/internal/account-hub/use-account-members.d.ts +28 -1
- package/dist/internal/account-hub/use-account-members.js +27 -10
- package/dist/internal/components/agent-mark.d.ts +1 -8
- package/dist/internal/components/agent-mark.js +2 -19
- package/dist/internal/lib/navigation/modified-click.js +2 -2
- package/dist/internal/lib/pixel-mark.d.ts +3 -20
- package/dist/internal/lib/pixel-mark.js +3 -34
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-hover-store.d.ts +1 -1
- package/dist/internal/stores/session-hover-store.js +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +1 -1
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.d.ts +149 -0
- package/dist/lib/base-ui-compat.js +339 -0
- package/dist/lib/portal-container.d.ts +3 -7
- package/dist/lib/portal-container.js +5 -3
- package/dist/lib/z-stack.d.ts +4 -4
- package/dist/lib/z-stack.js +5 -5
- package/dist/primitives/accordion.d.ts +36 -5
- package/dist/primitives/accordion.js +41 -8
- package/dist/primitives/alert-dialog.d.ts +33 -11
- package/dist/primitives/alert-dialog.js +41 -19
- package/dist/primitives/avatar.d.ts +5 -2
- package/dist/primitives/avatar.js +3 -3
- package/dist/primitives/badge.js +1 -1
- package/dist/primitives/breadcrumb.js +1 -1
- package/dist/primitives/button-group.js +3 -3
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox.d.ts +14 -5
- package/dist/primitives/checkbox.js +24 -9
- package/dist/primitives/collapsible.d.ts +16 -4
- package/dist/primitives/collapsible.js +18 -7
- package/dist/primitives/command-core.d.ts +121 -0
- package/dist/primitives/command-core.js +642 -0
- package/dist/primitives/command.d.ts +38 -4
- package/dist/primitives/command.js +22 -13
- package/dist/primitives/context-menu.d.ts +61 -31
- package/dist/primitives/context-menu.js +40 -53
- package/dist/primitives/dialog.d.ts +48 -10
- package/dist/primitives/dialog.js +48 -19
- package/dist/primitives/disclosure.d.ts +1 -1
- package/dist/primitives/disclosure.js +2 -2
- package/dist/primitives/drawer.d.ts +28 -9
- package/dist/primitives/drawer.js +42 -18
- package/dist/primitives/dropdown-menu.d.ts +55 -33
- package/dist/primitives/dropdown-menu.js +46 -82
- package/dist/primitives/faded-scroll-area.js +2 -1
- package/dist/primitives/hint.js +3 -3
- package/dist/primitives/hover-card.d.ts +17 -5
- package/dist/primitives/hover-card.js +45 -8
- package/dist/primitives/item.js +2 -2
- package/dist/primitives/label.d.ts +5 -2
- package/dist/primitives/label.js +10 -3
- package/dist/primitives/menu-base.d.ts +150 -0
- package/dist/primitives/menu-base.js +171 -0
- package/dist/primitives/menu-recipe.d.ts +1 -1
- package/dist/primitives/menu-recipe.js +2 -7
- package/dist/primitives/modal.d.ts +19 -52
- package/dist/primitives/modal.js +24 -28
- package/dist/primitives/navigation-menu.d.ts +36 -11
- package/dist/primitives/navigation-menu.js +31 -12
- package/dist/primitives/popover.d.ts +31 -6
- package/dist/primitives/popover.js +79 -12
- package/dist/primitives/preview-image.d.ts +18 -7
- package/dist/primitives/preview-image.js +14 -11
- package/dist/primitives/progress.d.ts +4 -2
- package/dist/primitives/progress.js +4 -3
- package/dist/primitives/project-icon-picker.js +2 -2
- package/dist/primitives/radio-group.d.ts +28 -5
- package/dist/primitives/radio-group.js +18 -10
- package/dist/primitives/scroll-area.d.ts +2 -2
- package/dist/primitives/scroll-area.js +8 -3
- package/dist/primitives/select.d.ts +55 -12
- package/dist/primitives/select.js +93 -36
- package/dist/primitives/separator.d.ts +6 -2
- package/dist/primitives/separator.js +10 -2
- package/dist/primitives/sheet.d.ts +17 -10
- package/dist/primitives/sheet.js +19 -22
- package/dist/primitives/sidebar-menu-primitives.js +8 -8
- package/dist/primitives/slider-native.d.ts +2 -2
- package/dist/primitives/slider-native.js +11 -9
- package/dist/primitives/slider.d.ts +24 -6
- package/dist/primitives/slider.js +26 -24
- package/dist/primitives/slot.d.ts +6 -0
- package/dist/primitives/slot.js +7 -0
- package/dist/primitives/split-sheet.js +1 -1
- package/dist/primitives/stepper.js +1 -1
- package/dist/primitives/switch.d.ts +16 -3
- package/dist/primitives/switch.js +7 -6
- package/dist/primitives/tabs.d.ts +36 -20
- package/dist/primitives/tabs.js +131 -102
- package/dist/primitives/toggle.d.ts +16 -3
- package/dist/primitives/toggle.js +8 -3
- package/dist/primitives/tooltip.d.ts +24 -5
- package/dist/primitives/tooltip.js +32 -10
- package/dist/primitives/type-to-confirm-dialog.d.ts +1 -1
- package/dist/primitives/type-to-confirm-dialog.js +1 -1
- package/dist/session/composer/animated-placeholder.js +1 -1
- package/dist/session/composer/chat-input/chat-input-control.js +3 -3
- package/dist/session/composer/editor/composer-editor.js +1 -1
- package/dist/session/composer/menus/menu-shell.d.ts +1 -1
- package/dist/session/composer/menus/menu-shell.js +1 -1
- package/dist/session/composer/menus/mount.js +1 -1
- package/dist/session/composer/reasoning-effort-selector.js +1 -1
- package/dist/session/header/session-site-header.js +2 -2
- package/dist/session/header/subagent-hover-card.js +2 -2
- package/dist/session/media/image-preview.js +1 -1
- package/dist/session/models/model-selector.d.ts +1 -1
- package/dist/session/models/model-selector.js +18 -12
- package/dist/session/models/subscription-switcher.d.ts +37 -0
- package/dist/session/models/subscription-switcher.js +97 -0
- package/dist/session/models/subscription-windows.d.ts +40 -0
- package/dist/session/models/subscription-windows.js +86 -0
- package/dist/session/overrides/session-overrides-control.js +3 -3
- package/dist/session/panel/diff-dialog.js +1 -1
- package/dist/session/panel/easy/detail-view.js +3 -3
- package/dist/session/panel/mobile-tool-drawer.js +2 -2
- package/dist/session/panel/panel-fallback.js +1 -1
- package/dist/session/panel/session-files-explorer.d.ts +1 -1
- package/dist/session/panel/session-files-explorer.js +1 -1
- package/dist/session/thread/session-chat.js +2 -2
- package/dist/session/thread/session-context-message-explorer.js +1 -1
- package/dist/session/thread/turn-share.js +3 -4
- package/dist/session/tool/shared/show-helpers.js +1 -1
- package/dist/session/turn/message-time-label.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +3 -0
- package/dist/workspace/projects/modal/project-icon-field.js +9 -23
- package/dist/workspace/review/review-center.js +1 -1
- package/dist/workspace/sessions/session-row.js +1 -1
- package/dist/workspace/sidebar/project-session-list.js +2 -2
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +1 -1
- package/dist/workspace/sidebar/session-brief-hover-card.js +3 -3
- package/dist/workspace/sidebar/session-title.d.ts +2 -2
- package/dist/workspace/sidebar/session-title.js +2 -2
- package/dist/workspace/sidebar/workspace-menu-section.js +1 -1
- package/dist/workspace/spaces/space-links.js +1 -1
- package/dist/workspace/spaces/space-threads-tab.js +1 -1
- package/package.json +16 -35
- package/skills/kortix-ui/SKILL.md +1 -1
- package/skills/kortix-ui/references/custom-dashboard.md +1 -1
|
@@ -148,6 +148,9 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
148
148
|
providerKeys: string;
|
|
149
149
|
chooseSharedKeys: string;
|
|
150
150
|
sessionKeyPool: string;
|
|
151
|
+
subscriptionSwitcher: string;
|
|
152
|
+
subscriptionSwitcherDefault: string;
|
|
153
|
+
subscriptionSwitcherUse: string;
|
|
151
154
|
sharedSessionKeys: string;
|
|
152
155
|
promptedSessionKeys: string;
|
|
153
156
|
noPersonSessionKeys: string;
|
|
@@ -63,10 +63,9 @@ export function ProjectIconField({ value, onChange, onGlyphChange, onClear, disa
|
|
|
63
63
|
const [open, setOpen] = useState(false);
|
|
64
64
|
const reduceMotion = useReducedMotion();
|
|
65
65
|
// Adjusting state during render: React's documented alternative to an effect
|
|
66
|
-
// for "reset state when a prop changes".
|
|
67
|
-
//
|
|
68
|
-
// re-render
|
|
69
|
-
// from setValue. So the `open && !disabled` guard below would close the
|
|
66
|
+
// for "reset state when a prop changes". The popover root fires
|
|
67
|
+
// `onOpenChange` only for changes it makes itself; a CONTROLLED `open` that
|
|
68
|
+
// changes on re-render fires nothing. So the `open && !disabled` guard below would close the
|
|
70
69
|
// popover when `disabled` goes true without ever telling us, leaving local
|
|
71
70
|
// `open` stuck at true; the next time `disabled` went false the guard would
|
|
72
71
|
// re-evaluate to true and the picker would reopen with no user action. Task 7
|
|
@@ -88,26 +87,13 @@ export function ProjectIconField({ value, onChange, onGlyphChange, onClear, disa
|
|
|
88
87
|
// Button already stops a click reaching us (a disabled button fires none,
|
|
89
88
|
// and button.tsx adds disabled:pointer-events-none).
|
|
90
89
|
//
|
|
91
|
-
// `modal` is what makes the picker scrollable with a wheel or trackpad.
|
|
92
90
|
// In workspace Settings this field renders inside `CustomizeSectionWrapper`
|
|
93
|
-
// -> `customize-panel.tsx`'s `Modal
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
// to document.body, so it is in neither: the picker's own overflow-y-auto
|
|
100
|
-
// viewport never received the scroll. Dragging its scrollbar still worked,
|
|
101
|
-
// which is what made the bug read as "only the scrollbar responds" — a
|
|
102
|
-
// scrollbar drag is a pointer gesture, not a wheel event.
|
|
103
|
-
//
|
|
104
|
-
// `modal` makes Radix wrap THIS popover's content in its own RemoveScroll
|
|
105
|
-
// (react-popover dist/index.mjs:134). react-remove-scroll keeps one
|
|
106
|
-
// module-level `lockStack`, and its `shouldPrevent` returns early for any
|
|
107
|
-
// lock that is not the last one pushed — so while the picker is open the
|
|
108
|
-
// dialog's lock stands down and the picker's own lock takes over, with the
|
|
109
|
-
// popover content as its container. Its boundary logic then walks into the
|
|
110
|
-
// emoji viewport, finds scroll left to give, and lets the wheel through.
|
|
91
|
+
// -> `customize-panel.tsx`'s `Modal`. The picker must scroll with a wheel
|
|
92
|
+
// or trackpad there. The modal locks page scroll with `overflow: hidden`
|
|
93
|
+
// on the document and cancels no wheel event, so the picker's own
|
|
94
|
+
// overflow-y-auto viewport receives the wheel. `modal` on the popover
|
|
95
|
+
// traps focus in the picker and blocks pointer input outside it while it
|
|
96
|
+
// is open.
|
|
111
97
|
//
|
|
112
98
|
// Rejected alternative: portalling the popover into the dialog's content
|
|
113
99
|
// element (PopoverContent already accepts `container`). ModalContent is
|
|
@@ -145,7 +145,7 @@ function ItemRow({ item, idx, focused, active, fresh, sessionLabel, onOpen, onAs
|
|
|
145
145
|
// for the whole of select mode. Nothing shifts.
|
|
146
146
|
const tile = (_jsx(RowTile, { item: item, className: cn(selectable && !selecting && 'group-focus-within:hidden group-hover:hidden') }));
|
|
147
147
|
const leading = !selectable || !selection ? (tile) : (_jsx("span", { className: "flex size-8 shrink-0 items-center justify-center", children: selecting ? (_jsx(Checkbox, { checked: selection.checked, tabIndex: -1, "aria-hidden": true, className: "pointer-events-none" })) : (_jsxs(_Fragment, { children: [tile, _jsx(Checkbox, { checked: false, "aria-label": tBulk('selectRow', { title: item.title }), onClick: (e) => {
|
|
148
|
-
// The row's own state decides;
|
|
148
|
+
// The row's own state decides; the checkbox skips its toggle.
|
|
149
149
|
e.preventDefault();
|
|
150
150
|
selection.onToggle(e.shiftKey);
|
|
151
151
|
}, className: "hidden group-focus-within:flex group-hover:flex" })] })) }));
|
|
@@ -122,7 +122,7 @@ function SessionRowImpl({ session, time, open, onToggleOpen, selectMode, selecte
|
|
|
122
122
|
if (selectMode) {
|
|
123
123
|
return (
|
|
124
124
|
// A label, not a button: the row wraps a real Checkbox, and nesting a
|
|
125
|
-
// button (
|
|
125
|
+
// button (the Checkbox renders one) inside a button is invalid.
|
|
126
126
|
_jsxs("label", { className: cn('hover:bg-muted/40 flex h-11 w-full cursor-pointer items-center gap-3 rounded-md px-3 text-left', 'transition-none', 'has-disabled:pointer-events-none has-disabled:opacity-50', selected && 'bg-primary/[0.06]'), children: [_jsx(Checkbox, { checked: selected, disabled: isDeleted, onCheckedChange: () => onToggleSelect(session.session_id), "aria-label": title,
|
|
127
127
|
// This redesign removes the blue accent: the black variant.
|
|
128
128
|
variant: "black" }), identity, relativeLabel ? (_jsx("time", { className: SESSION_RELATIVE_TIME_CLASS, dateTime: time.exact, title: tI18nComplete('texta680491a9229', { value0: time.exact }), children: relativeLabel })) : null] }));
|
|
@@ -469,10 +469,10 @@ function SessionListSection({ section, projectId, sessions, reviewCountBySession
|
|
|
469
469
|
* Hover-revealed via `group/section-header` on the header row only (not the
|
|
470
470
|
* whole `group/section` disclosure), so hovering a row inside the section
|
|
471
471
|
* doesn't also fade in the header's `⋯`; stays visible while its own menu is
|
|
472
|
-
* open via `data-[state=open]`, which
|
|
472
|
+
* open via `data-[state=open]`, which the menu stamps on this trigger directly
|
|
473
473
|
* (not the group). Both the click AND keydown (Enter/Space) handlers stop
|
|
474
474
|
* propagation so opening the menu — by pointer or keyboard — never also
|
|
475
|
-
* toggles the disclosure, which
|
|
475
|
+
* toggles the disclosure, which the menu's press-to-open would otherwise
|
|
476
476
|
* race against the header's `onKeyDown`-driven `toggle()` — same pattern as
|
|
477
477
|
* the row-level `⋯` in `ProjectSessionRow`. The hit area extends past the
|
|
478
478
|
* visible button with `before:absolute before:-inset-1` instead of growing
|
|
@@ -26,7 +26,7 @@ interface SessionBriefInteractionProps {
|
|
|
26
26
|
* row renders its brief into this host's slot (`SessionBriefCard`), and the
|
|
27
27
|
* host lines up with that row. Moving to the next row therefore moves the same
|
|
28
28
|
* card, with a 150ms glide, instead of unmounting one card and mounting another
|
|
29
|
-
* at a new place.
|
|
29
|
+
* at a new place. `HoverCard` cannot do this: it has no anchor part, so a
|
|
30
30
|
* single instance cannot follow the pointer between triggers.
|
|
31
31
|
*
|
|
32
32
|
* The first open fades in over 100ms and does not move: the card opens to the
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
3
3
|
import { useFeatureFlag, useSessionGoal } from '@kortix/sdk/react';
|
|
4
4
|
import { ArrowsSplitIcon, GitDiffIcon, RobotIcon, TargetIcon } from '@phosphor-icons/react';
|
|
5
5
|
import { formatDistanceToNowStrict } from 'date-fns';
|
|
6
|
-
import { Slot } from '
|
|
6
|
+
import { Slot } from '../../lib/base-ui-compat.js';
|
|
7
7
|
import { useEffect, useLayoutEffect, useRef } from 'react';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import { useTranslations } from '../../i18n/index.js';
|
|
@@ -114,7 +114,7 @@ const CARD_EDGE_PX = 8;
|
|
|
114
114
|
* row renders its brief into this host's slot (`SessionBriefCard`), and the
|
|
115
115
|
* host lines up with that row. Moving to the next row therefore moves the same
|
|
116
116
|
* card, with a 150ms glide, instead of unmounting one card and mounting another
|
|
117
|
-
* at a new place.
|
|
117
|
+
* at a new place. `HoverCard` cannot do this: it has no anchor part, so a
|
|
118
118
|
* single instance cannot follow the pointer between triggers.
|
|
119
119
|
*
|
|
120
120
|
* The first open fades in over 100ms and does not move: the card opens to the
|
|
@@ -231,7 +231,7 @@ function SessionBriefCard({ id, children, content, }) {
|
|
|
231
231
|
store.dismiss();
|
|
232
232
|
store.release(id);
|
|
233
233
|
}, [id]);
|
|
234
|
-
return (_jsxs(_Fragment, { children: [_jsx(Slot
|
|
234
|
+
return (_jsxs(_Fragment, { children: [_jsx(Slot, { "data-state": open ? 'open' : 'closed', ...sessionRowHoverHandlers(id), children: children }), open && slot ? createPortal(content, slot) : null] }));
|
|
235
235
|
}
|
|
236
236
|
export function SessionBriefHoverCard({ sessionId, children, ...brief }) {
|
|
237
237
|
const dismiss = useSessionHoverStore((state) => state.dismiss);
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* says "something is happening here" a second time, in a place that cannot
|
|
15
15
|
* say WHAT — so the two indicators competed and neither read cleanly.
|
|
16
16
|
*
|
|
17
|
-
* No `title` attribute either. The native tooltip it produced fought the
|
|
18
|
-
*
|
|
17
|
+
* No `title` attribute either. The native tooltip it produced fought the
|
|
18
|
+
* `Tooltip`s the row already uses: different delay, different placement, different
|
|
19
19
|
* paint, and it fired over the whole row instead of over one control.
|
|
20
20
|
*/
|
|
21
21
|
export declare function SessionTitle({ title, className }: {
|
|
@@ -17,8 +17,8 @@ import { cn } from '../../internal/lib/utils.js';
|
|
|
17
17
|
* says "something is happening here" a second time, in a place that cannot
|
|
18
18
|
* say WHAT — so the two indicators competed and neither read cleanly.
|
|
19
19
|
*
|
|
20
|
-
* No `title` attribute either. The native tooltip it produced fought the
|
|
21
|
-
*
|
|
20
|
+
* No `title` attribute either. The native tooltip it produced fought the
|
|
21
|
+
* `Tooltip`s the row already uses: different delay, different placement, different
|
|
22
22
|
* paint, and it fired over the whole row instead of over one control.
|
|
23
23
|
*/
|
|
24
24
|
export function SessionTitle({ title, className }) {
|
|
@@ -66,7 +66,7 @@ export function WorkspaceMenuSection({ actions, }) {
|
|
|
66
66
|
setSelectedAccountId(row.accountId);
|
|
67
67
|
};
|
|
68
68
|
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "p-0.5", children: _jsxs("div", { className: "relative", children: [_jsx(MagnifyingGlassIcon, { className: "text-muted-foreground pointer-events-none absolute top-1/2 left-2 size-4 -translate-y-1/2" }), _jsx(Input, { value: query, onChange: (e) => setQuery(e.target.value), placeholder: t('find'), "aria-label": t('find'),
|
|
69
|
-
// A
|
|
69
|
+
// A menu runs typeahead on printable keys and moves focus off
|
|
70
70
|
// the field. Stopping propagation keeps the keystrokes here.
|
|
71
71
|
onKeyDown: (e) => e.stopPropagation(), className: "h-8 pr-2 pl-8 text-sm" })] }) }), _jsx(InvitationsMenuGroup, {}), _jsxs("div", { className: "max-h-[640px] [scrollbar-width:none] overflow-y-auto [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", "data-testid": "switcher-workspaces", children: [directory.loading ? (_jsx("div", { className: "space-y-1 p-1", children: Array.from({ length: 3 }, (_, i) => (_jsx(Skeleton, { className: "h-7 rounded-md" }, i))) })) : visible.length === 0 && query.trim() ? (_jsx("div", { className: "text-muted-foreground px-2 py-3 text-xs", children: t('noMatches') })) : (_jsx(DropdownMenuGroup, { className: "p-0.5", children: visible.map((row) => {
|
|
72
72
|
if (row.state !== 'active') {
|
|
@@ -35,7 +35,7 @@ const URL_MAX = 2048;
|
|
|
35
35
|
const TITLE_MAX = 200;
|
|
36
36
|
/** The URL keys of the search and the filters. */
|
|
37
37
|
const FILTER_PARAMS = ['q', 'pinned', 'by', 'added'];
|
|
38
|
-
/** The radio value of a facet's "Any" row (
|
|
38
|
+
/** The radio value of a facet's "Any" row (a radio item needs a non-empty value). */
|
|
39
39
|
const ANY = 'any';
|
|
40
40
|
/** "example.com/x" becomes "https://example.com/x"; a value with a scheme is kept as typed. */
|
|
41
41
|
function withScheme(value) {
|
|
@@ -24,7 +24,7 @@ const SEARCH_DEBOUNCE_MS = 250;
|
|
|
24
24
|
const SEARCH_MIN_CHARS = 2;
|
|
25
25
|
/** The URL keys of the search and the filters. */
|
|
26
26
|
const FILTER_PARAMS = ['q', 'status', 'by', 'agent', 'active'];
|
|
27
|
-
/** The radio value of a facet's "Any" row (
|
|
27
|
+
/** The radio value of a facet's "Any" row (a radio item needs a non-empty value). */
|
|
28
28
|
const ANY = 'any';
|
|
29
29
|
/** The session list's mark for each Status value, so a row and its filter look the same. */
|
|
30
30
|
const STATUS_MARK = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kortix/ui",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"description": "Kortix UI: the shared React component library for apps/web, Kortix Apps and SDK hosts. Tailwind v4 classes, themed by CSS variables.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Elastic-2.0",
|
|
@@ -1857,6 +1857,10 @@
|
|
|
1857
1857
|
"types": "./dist/primitives/sliding-tab-indicator.d.ts",
|
|
1858
1858
|
"import": "./dist/primitives/sliding-tab-indicator.js"
|
|
1859
1859
|
},
|
|
1860
|
+
"./slot": {
|
|
1861
|
+
"types": "./dist/primitives/slot.d.ts",
|
|
1862
|
+
"import": "./dist/primitives/slot.js"
|
|
1863
|
+
},
|
|
1860
1864
|
"./split-sheet": {
|
|
1861
1865
|
"types": "./dist/primitives/split-sheet.d.ts",
|
|
1862
1866
|
"import": "./dist/primitives/split-sheet.js"
|
|
@@ -2176,6 +2180,7 @@
|
|
|
2176
2180
|
"smoke:install": "node scripts/smoke-install.mjs"
|
|
2177
2181
|
},
|
|
2178
2182
|
"dependencies": {
|
|
2183
|
+
"@base-ui/react": "1.9.0",
|
|
2179
2184
|
"@codemirror/commands": "^6.10.3",
|
|
2180
2185
|
"@codemirror/lint": "^6.9.5",
|
|
2181
2186
|
"@codemirror/state": "^6.6.0",
|
|
@@ -2197,38 +2202,20 @@
|
|
|
2197
2202
|
"@extend-ai/react-docx": "^0.7.5",
|
|
2198
2203
|
"@extend-ai/react-xlsx": "0.13.4",
|
|
2199
2204
|
"@glideapps/glide-data-grid": "6.0.4-alpha24",
|
|
2200
|
-
"@kortix/llm-catalog": "0.15.
|
|
2205
|
+
"@kortix/llm-catalog": "0.15.8",
|
|
2201
2206
|
"@lezer/highlight": "1.2.3",
|
|
2202
2207
|
"@paper-design/shaders-react": "^0.0.76",
|
|
2203
2208
|
"@phosphor-icons/react": "2.1.10",
|
|
2204
2209
|
"@pierre/diffs": "1.1.22",
|
|
2205
|
-
"@radix-ui/react-accordion": "^1.2.11",
|
|
2206
|
-
"@radix-ui/react-alert-dialog": "^1.1.11",
|
|
2207
|
-
"@radix-ui/react-checkbox": "^1.3.3",
|
|
2208
|
-
"@radix-ui/react-collapsible": "^1.1.12",
|
|
2209
|
-
"@radix-ui/react-context-menu": "^2.2.16",
|
|
2210
|
-
"@radix-ui/react-dialog": "^1.1.15",
|
|
2211
|
-
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
2212
|
-
"@radix-ui/react-label": "^2.1.7",
|
|
2213
|
-
"@radix-ui/react-popover": "^1.1.7",
|
|
2214
|
-
"@radix-ui/react-portal": "1.1.17",
|
|
2215
|
-
"@radix-ui/react-progress": "^1.1.7",
|
|
2216
|
-
"@radix-ui/react-scroll-area": "^1.2.4",
|
|
2217
|
-
"@radix-ui/react-select": "^2.2.6",
|
|
2218
|
-
"@radix-ui/react-separator": "^1.1.7",
|
|
2219
|
-
"@radix-ui/react-slider": "^1.3.2",
|
|
2220
|
-
"@radix-ui/react-slot": "^1.2.3",
|
|
2221
|
-
"@radix-ui/react-switch": "^1.2.6",
|
|
2222
|
-
"@radix-ui/react-tabs": "^1.1.8",
|
|
2223
|
-
"@radix-ui/react-toggle": "^1.1.10",
|
|
2224
|
-
"@radix-ui/react-tooltip": "^1.2.8",
|
|
2225
|
-
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
2226
2210
|
"@tanstack/react-virtual": "^3.13.12",
|
|
2227
2211
|
"@tiptap/core": "3.30.5",
|
|
2228
2212
|
"@tiptap/extension-bubble-menu": "3.30.5",
|
|
2213
|
+
"@tiptap/extension-code": "3.30.5",
|
|
2214
|
+
"@tiptap/extension-code-block": "3.30.5",
|
|
2229
2215
|
"@tiptap/extension-document": "3.30.5",
|
|
2230
2216
|
"@tiptap/extension-floating-menu": "3.30.5",
|
|
2231
2217
|
"@tiptap/extension-hard-break": "3.30.5",
|
|
2218
|
+
"@tiptap/extension-image": "3.30.5",
|
|
2232
2219
|
"@tiptap/extension-list": "3.30.5",
|
|
2233
2220
|
"@tiptap/extension-paragraph": "3.30.5",
|
|
2234
2221
|
"@tiptap/extension-placeholder": "3.30.5",
|
|
@@ -2249,7 +2236,6 @@
|
|
|
2249
2236
|
"ag-grid-react": "^35.1.0",
|
|
2250
2237
|
"class-variance-authority": "^0.7.1",
|
|
2251
2238
|
"clsx": "^2.1.1",
|
|
2252
|
-
"cmdk": "^0.2.1",
|
|
2253
2239
|
"color-bits": "^1.1.0",
|
|
2254
2240
|
"date-fns": "^3.6.0",
|
|
2255
2241
|
"diff": "^8.0.3",
|
|
@@ -2259,12 +2245,12 @@
|
|
|
2259
2245
|
"jszip": "^3.10.1",
|
|
2260
2246
|
"katex": "^0.18.7",
|
|
2261
2247
|
"maplibre-gl": "6.12.0",
|
|
2248
|
+
"marked": "^16.4.2",
|
|
2262
2249
|
"mermaid": "^11.12.0",
|
|
2263
2250
|
"motion": "^12.40.0",
|
|
2264
2251
|
"papaparse": "^5.5.2",
|
|
2265
2252
|
"pdf-lib": "^1.17.1",
|
|
2266
2253
|
"pptx-react-viewer": "^1.15.0",
|
|
2267
|
-
"radix-ui": "^1.6.0",
|
|
2268
2254
|
"react-day-picker": "^8.10.1",
|
|
2269
2255
|
"react-i18next": "^17.0.9",
|
|
2270
2256
|
"react-markdown": "^10.1.0",
|
|
@@ -2282,21 +2268,16 @@
|
|
|
2282
2268
|
"sql.js": "^1.14.1",
|
|
2283
2269
|
"streamdown": "^1.6.11",
|
|
2284
2270
|
"tailwind-merge": "^3.6.0",
|
|
2271
|
+
"turndown": "^7.2.1",
|
|
2272
|
+
"turndown-plugin-gfm": "^1.0.2",
|
|
2285
2273
|
"unified": "^11.0.5",
|
|
2286
2274
|
"uqr": "0.1.3",
|
|
2287
2275
|
"use-intl": "^4.13.4",
|
|
2288
|
-
"
|
|
2289
|
-
"zustand": "^5.0.3"
|
|
2290
|
-
"@tiptap/extension-code": "3.30.5",
|
|
2291
|
-
"@tiptap/extension-code-block": "3.30.5",
|
|
2292
|
-
"@tiptap/extension-image": "3.30.5",
|
|
2293
|
-
"marked": "^16.4.2",
|
|
2294
|
-
"turndown": "^7.2.1",
|
|
2295
|
-
"turndown-plugin-gfm": "^1.0.2",
|
|
2296
|
-
"yaml": "^2.8.2"
|
|
2276
|
+
"yaml": "^2.8.2",
|
|
2277
|
+
"zustand": "^5.0.3"
|
|
2297
2278
|
},
|
|
2298
2279
|
"peerDependencies": {
|
|
2299
|
-
"@kortix/sdk": "^0.15.
|
|
2280
|
+
"@kortix/sdk": "^0.15.8",
|
|
2300
2281
|
"@tanstack/react-query": "^5.75.2",
|
|
2301
2282
|
"@types/react": ">=18",
|
|
2302
2283
|
"react": ">=19",
|
|
@@ -51,7 +51,7 @@ A new primitive is the last step: tokens only, a small API, and a section on `/d
|
|
|
51
51
|
| A hand-rolled chip `<span>` or a colored banner | `Badge`, `Alert` |
|
|
52
52
|
| `SectionCard`, `List` / `ListRow` | `Card`, `<ul className="space-y-2">` rows |
|
|
53
53
|
| `lucide-react` or another icon set | `@phosphor-icons/react`, `*Icon` names, no `weight` prop (only `weight="fill"` for solid status glyphs) |
|
|
54
|
-
| A fork
|
|
54
|
+
| A fork of a component, or `@base-ui/react`, `@radix-ui/*`, `cmdk`, `vaul` in a host | the component as it ships, themed with tokens (section 6); `asChild` on its parts, `Slot` from `@kortix/ui/slot` |
|
|
55
55
|
|
|
56
56
|
## 4. Tokens only
|
|
57
57
|
|
|
@@ -32,7 +32,7 @@ npm i tw-animate-css tailwind-scrollbar tailwind-scrollbar-hide # Tailwind v4
|
|
|
32
32
|
The module entries this guide uses (`session`, `workspace`, `files`, `theme`) need 0.14.4 or later.
|
|
33
33
|
Inside `kortix-ai/CompanyOS`, use `"workspace:*"`.
|
|
34
34
|
Without `@openuidev/lang-core`, `vite build` fails with `Missing export` in `@kortix/sdk/dist/genui`.
|
|
35
|
-
Name `react@19 react-dom@19`:
|
|
35
|
+
Name `react@19 react-dom@19`: `@kortix/ui` needs React 19.
|
|
36
36
|
|
|
37
37
|
Server rendering: the entries that render sessions or files (`session`, `composer`, `session-panel`,
|
|
38
38
|
`workspace`, `files`, `file-viewer`, `markdown`, `genui`, `customize`) import CSS (KaTeX and others)
|