@kortix/ui 0.14.14 → 0.14.15

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 (37) hide show
  1. package/dist/customize/agents/agent-tabs.d.ts +1 -0
  2. package/dist/customize/agents/agent-tabs.js +1 -0
  3. package/dist/customize/shared/capability-library.js +7 -2
  4. package/dist/files/drives/drive-storage.d.ts +47 -0
  5. package/dist/files/drives/drive-storage.js +144 -0
  6. package/dist/files/drives/session-drives-chip.js +20 -2
  7. package/dist/files/index.d.ts +1 -0
  8. package/dist/files/index.js +1 -0
  9. package/dist/files/project/components/drive-explorer.js +13 -5
  10. package/dist/files/project/components/drive-upload-tray.js +1 -1
  11. package/dist/files/project/upload-batch.d.ts +3 -1
  12. package/dist/files/project/upload-batch.js +5 -2
  13. package/dist/i18n/en.d.ts +32 -12
  14. package/dist/i18n/en.js +33 -13
  15. package/dist/internal/chrome/use-chrome-offered.d.ts +14 -5
  16. package/dist/internal/chrome/use-chrome-offered.js +15 -6
  17. package/dist/session/composer/context-usage.d.ts +2 -0
  18. package/dist/session/composer/context-usage.js +7 -0
  19. package/dist/session/header/compact-modal.js +5 -2
  20. package/dist/session/header/session-site-header.js +5 -2
  21. package/dist/session/thread/transcript.js +2 -2
  22. package/dist/session/tool/tools/kortix-tool-card.js +1 -1
  23. package/dist/session/turn/burst-step-body.js +2 -2
  24. package/dist/session/turn/compaction-card.d.ts +23 -1
  25. package/dist/session/turn/compaction-card.js +20 -8
  26. package/dist/styles.css +1 -1
  27. package/dist/workspace/sidebar/project-nav-items.d.ts +0 -11
  28. package/dist/workspace/sidebar/project-nav-items.js +10 -77
  29. package/dist/workspace/sidebar/project-sidebar.js +4 -3
  30. package/package.json +3 -7
  31. package/skills/kortix-ui/references/modules.md +1 -1
  32. package/dist/internal/stores/sidebar-nav-store.d.ts +0 -78
  33. package/dist/internal/stores/sidebar-nav-store.js +0 -125
  34. package/dist/workspace/sidebar/customize-sidebar-modal.d.ts +0 -9
  35. package/dist/workspace/sidebar/customize-sidebar-modal.js +0 -198
  36. package/dist/workspace/sidebar/nav-row-meta.d.ts +0 -14
  37. package/dist/workspace/sidebar/nav-row-meta.js +0 -94
@@ -1,14 +0,0 @@
1
- import type { SidebarNavItemId } from '../../internal/stores/sidebar-nav-store.js';
2
- import { type ReactNode } from 'react';
3
- export interface NavRowMeta {
4
- label: string;
5
- icon: ReactNode;
6
- href: string;
7
- }
8
- /**
9
- * Label, glyph, destination and availability of every customizable nav row,
10
- * read through the same gates the sidebar rows use. A row this project does
11
- * not offer (flag off, permission denied) is absent from the result, so the
12
- * Customize sidebar modal and the More menu never list a dead row.
13
- */
14
- export declare function useNavRowMeta(projectId: string): Partial<Record<SidebarNavItemId, NavRowMeta>>;
@@ -1,94 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { uiRoutes } from '../../lib/routes.js';
4
- import { capabilityTabHref } from '../../internal/lib/capability-tab-routes.js';
5
- import { useAppsRowVisible } from './footer/project-apps-nav.js';
6
- import { useGoalsRowVisible } from './footer/project-goals-nav.js';
7
- import { useArtifactsRowVisible } from './footer/project-artifacts-nav.js';
8
- import { useRoomsRowVisible } from './footer/project-rooms-nav.js';
9
- import { filesRow } from '../../internal/layout/files-nav-label.js';
10
- import { CustomizeGlyph, useProjectNavRows, } from '../../internal/layout/project-settings-nav.js';
11
- import { useTranslations } from '../../i18n/index.js';
12
- import { AppWindowIcon, CardsThreeIcon, ChatsTeardropIcon, FoldersIcon, HardDrivesIcon, TargetIcon } from '@phosphor-icons/react';
13
- import { useMemo } from 'react';
14
- /**
15
- * Label, glyph, destination and availability of every customizable nav row,
16
- * read through the same gates the sidebar rows use. A row this project does
17
- * not offer (flag off, permission denied) is absent from the result, so the
18
- * Customize sidebar modal and the More menu never list a dead row.
19
- */
20
- export function useNavRowMeta(projectId) {
21
- const t = useTranslations('sidebar');
22
- const tI18nComplete = useTranslations('hardcodedUi.i18nComplete');
23
- const { customize: customizeTab, files: filesTarget } = useProjectNavRows(projectId);
24
- const appsVisible = useAppsRowVisible(projectId);
25
- const roomsVisible = useRoomsRowVisible(projectId);
26
- const goalsVisible = useGoalsRowVisible(projectId);
27
- const artifactsVisible = useArtifactsRowVisible(projectId);
28
- // Memoized on the gates, not rebuilt per render: the Customize sidebar
29
- // modal memoizes its rows on this object, and a fresh one per render would
30
- // re-render every row on every drag frame.
31
- return useMemo(() => {
32
- const appsHref = uiRoutes().apps(projectId);
33
- const roomsHref = uiRoutes().rooms(projectId);
34
- const goalsHref = uiRoutes().goals(projectId);
35
- const artifactsHref = uiRoutes().artifacts(projectId);
36
- const files = filesTarget ? filesRow(projectId, filesTarget) : null;
37
- return {
38
- ...(customizeTab
39
- ? {
40
- customize: {
41
- label: t('customize'),
42
- icon: _jsx(CustomizeGlyph, {}),
43
- href: capabilityTabHref(projectId, customizeTab),
44
- },
45
- }
46
- : {}),
47
- ...(appsVisible && appsHref
48
- ? {
49
- apps: {
50
- label: tI18nComplete.raw('text89dd748442c1'),
51
- icon: _jsx(AppWindowIcon, {}),
52
- href: appsHref,
53
- },
54
- }
55
- : {}),
56
- ...(roomsVisible && roomsHref
57
- ? {
58
- rooms: {
59
- label: t('rooms'),
60
- icon: _jsx(ChatsTeardropIcon, {}),
61
- href: roomsHref,
62
- },
63
- }
64
- : {}),
65
- ...(goalsVisible && goalsHref
66
- ? {
67
- goals: {
68
- label: t('goals'),
69
- icon: _jsx(TargetIcon, {}),
70
- href: goalsHref,
71
- },
72
- }
73
- : {}),
74
- ...(artifactsVisible && artifactsHref
75
- ? {
76
- artifacts: {
77
- label: t('artifacts'),
78
- icon: _jsx(CardsThreeIcon, {}),
79
- href: artifactsHref,
80
- },
81
- }
82
- : {}),
83
- ...(files
84
- ? {
85
- files: {
86
- label: t(files.label),
87
- icon: files.label === 'drive' ? _jsx(HardDrivesIcon, {}) : _jsx(FoldersIcon, {}),
88
- href: files.href,
89
- },
90
- }
91
- : {}),
92
- };
93
- }, [t, tI18nComplete, projectId, customizeTab, appsVisible, roomsVisible, goalsVisible, artifactsVisible, filesTarget]);
94
- }