@agent-native/core-corpus 0.217.0 → 0.218.0
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/corpus/README.md +1 -1
- package/corpus/templates/analytics/CHANGELOG.md +2 -0
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +38 -167
- package/corpus/templates/analytics/changelog/2026-10-16-owned-and-shared-chats-appear-in-separate-history-sections.md +6 -0
- package/corpus/templates/assets/CHANGELOG.md +6 -0
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +51 -117
- package/corpus/templates/assets/changelog/2026-10-16-owned-and-shared-chats-appear-in-separate-history-sections.md +6 -0
- package/corpus/templates/brain/app/components/layout/Sidebar.tsx +34 -101
- package/corpus/templates/brain/app/routes/sources.tsx +1 -1
- package/corpus/templates/brain/vitest.config.ts +7 -0
- package/corpus/templates/calendar/CHANGELOG.md +6 -0
- package/corpus/templates/calendar/app/pages/BookingLinksPage.tsx +1 -1
- package/corpus/templates/calendar/changelog/2026-10-16-booking-links-show-localized-visibility-badges.md +6 -0
- package/corpus/templates/chat/app/components/layout/Sidebar.tsx +62 -101
- package/corpus/templates/clips/CHANGELOG.md +7 -20
- package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +20 -77
- package/corpus/templates/clips/app/components/player/share-dialog.tsx +63 -90
- package/corpus/templates/clips/app/components/sharing/share-test-support.tsx +180 -0
- package/corpus/templates/clips/app/components/sharing/share-ui.tsx +5 -584
- package/corpus/templates/clips/changelog/2026-10-16-share-dialogs-make-it-easier-to-see-who-has-access-and-manag.md +6 -0
- package/corpus/templates/clips/changelog/2026-10-21-share-panels-describe-general-access-in-a-sentence.md +6 -0
- package/corpus/templates/community/qr/package.json +1 -1
- package/corpus/templates/content/CHANGELOG.md +2 -0
- package/corpus/templates/content/app/components/editor/CommentsSidebar.tsx +119 -30
- package/corpus/templates/content/app/components/editor/DocumentEditor.tsx +56 -13
- package/corpus/templates/content/app/components/editor/SuggestionText.tsx +18 -3
- package/corpus/templates/content/app/components/editor/VisualEditor.tsx +89 -22
- package/corpus/templates/content/app/components/editor/extensions/SuggestionHighlight.ts +383 -34
- package/corpus/templates/content/app/components/editor/suggestions/draft-session.ts +31 -0
- package/corpus/templates/content/app/components/editor/suggestions/presentation-rebase.ts +82 -4
- package/corpus/templates/content/app/global.css +31 -0
- package/corpus/templates/content/changelog/2026-10-16-accepting-a-suggestion-on-a-page-that-changed-since-it-was-s.md +6 -0
- package/corpus/templates/content/changelog/2026-10-20-suggested-edits-that-add-remove-split-or-merge-paragraphs-li.md +6 -0
- package/corpus/templates/content/shared/suggestion-diff.ts +23 -6
- package/corpus/templates/content/shared/suggestion-formatting.ts +44 -14
- package/corpus/templates/content/shared/suggestion-text.ts +20 -5
- package/corpus/templates/design/CHANGELOG.md +3 -0
- package/corpus/templates/design/app/pages/DesignSystems.tsx +1 -1
- package/corpus/templates/design/app/pages/Index.tsx +18 -64
- package/corpus/templates/design/changelog/2026-10-16-design-pages-use-localized-visibility-badges-and-a-shared-ow.md +6 -0
- package/corpus/templates/dispatch/CHANGELOG.md +4 -0
- package/corpus/templates/dispatch/app/i18n-data.ts +75 -0
- package/corpus/templates/dispatch/changelog/2026-10-21-owned-and-shared-chats-appear-in-separate-history-sections.md +6 -0
- package/corpus/templates/factory/app/components/layout/Sidebar.tsx +34 -100
- package/corpus/templates/forms/app/pages/FormsListPage.tsx +1 -1
- package/corpus/templates/plan/CHANGELOG.md +6 -0
- package/corpus/templates/plan/app/components/layout/Sidebar.tsx +34 -109
- package/corpus/templates/plan/changelog/2026-10-16-owned-and-shared-chats-appear-in-separate-history-sections.md +6 -0
- package/corpus/templates/slides/CHANGELOG.md +1 -0
- package/corpus/templates/slides/app/components/deck/DeckCard.tsx +1 -1
- package/corpus/templates/slides/app/components/design-system/DesignSystemCard.tsx +1 -1
- package/corpus/templates/slides/app/pages/Index.tsx +7 -2
- package/corpus/templates/slides/changelog/2026-10-16-deck-lists-use-the-shared-ownership-filter-and-visibility-ba.md +6 -0
- package/package.json +1 -1
- package/corpus/templates/chat/app/lib/sidebar-thread-state.ts +0 -29
- package/corpus/templates/slides/app/components/deck/DeckFilterMenu.tsx +0 -83
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CreativeContextShareSheet,
|
|
4
4
|
useCreativeContextLab,
|
|
5
5
|
} from "@agent-native/creative-context/client";
|
|
6
|
-
import { VisibilityBadge } from "@agent-native/toolkit/sharing";
|
|
6
|
+
import { VisibilityBadge } from "@agent-native/toolkit/app/sharing/VisibilityBadge";
|
|
7
7
|
import {
|
|
8
8
|
IconBuildingCommunity,
|
|
9
9
|
IconDots,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useT } from "@agent-native/core/client/i18n";
|
|
2
2
|
import { ShareButton } from "@agent-native/toolkit/app/sharing";
|
|
3
|
-
import { VisibilityBadge } from "@agent-native/toolkit/sharing";
|
|
3
|
+
import { VisibilityBadge } from "@agent-native/toolkit/app/sharing/VisibilityBadge";
|
|
4
4
|
import {
|
|
5
5
|
IconBuildingCommunity,
|
|
6
6
|
IconComponents,
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
LazyChunkErrorBoundary,
|
|
31
31
|
LazyChunkRetryFallback,
|
|
32
32
|
} from "@agent-native/toolkit/app/shared";
|
|
33
|
+
import { OwnershipFilter } from "@agent-native/toolkit/app/sharing/OwnershipFilter";
|
|
33
34
|
import { appStateKeyForBrowserTab } from "@shared/app-state-tabs";
|
|
34
35
|
import { extractGoogleDocUrls } from "@shared/google-docs";
|
|
35
36
|
import {
|
|
@@ -62,7 +63,6 @@ import { toast } from "sonner";
|
|
|
62
63
|
import { z } from "zod";
|
|
63
64
|
|
|
64
65
|
import DeckCard from "@/components/deck/DeckCard";
|
|
65
|
-
import { DeckFilterMenu } from "@/components/deck/DeckFilterMenu";
|
|
66
66
|
import { DeckEditorSkeleton } from "@/components/editor/DeckEditorSkeleton";
|
|
67
67
|
import { ImportDeckButton } from "@/components/editor/ImportDeckButton";
|
|
68
68
|
import {
|
|
@@ -2928,7 +2928,12 @@ export default function Index({ active = true }: { active?: boolean }) {
|
|
|
2928
2928
|
/>
|
|
2929
2929
|
}
|
|
2930
2930
|
recentActions={
|
|
2931
|
-
<
|
|
2931
|
+
<OwnershipFilter
|
|
2932
|
+
value={deckFilter === "not-mine" ? "shared" : deckFilter}
|
|
2933
|
+
onChange={(value) =>
|
|
2934
|
+
setDeckFilter(value === "shared" ? "not-mine" : value)
|
|
2935
|
+
}
|
|
2936
|
+
/>
|
|
2932
2937
|
}
|
|
2933
2938
|
templates={<DeckTemplateLibrary enabled={isHome} />}
|
|
2934
2939
|
recent={
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ChatThreadSummary } from "@agent-native/toolkit/app/chat/agentkit-chat/index";
|
|
2
|
-
|
|
3
|
-
export function visibleChatThreads(
|
|
4
|
-
threads: ChatThreadSummary[],
|
|
5
|
-
observedThreadStarts: ReadonlyMap<string, number>,
|
|
6
|
-
): ChatThreadSummary[] {
|
|
7
|
-
const knownIds = new Set(threads.map((thread) => thread.id));
|
|
8
|
-
const optimistic: ChatThreadSummary[] = [...observedThreadStarts].flatMap(
|
|
9
|
-
([id, startedAt]) =>
|
|
10
|
-
knownIds.has(id)
|
|
11
|
-
? []
|
|
12
|
-
: [
|
|
13
|
-
{
|
|
14
|
-
id,
|
|
15
|
-
title: "",
|
|
16
|
-
preview: "",
|
|
17
|
-
messageCount: 0,
|
|
18
|
-
createdAt: startedAt,
|
|
19
|
-
updatedAt: startedAt,
|
|
20
|
-
scope: null,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
);
|
|
24
|
-
return [...threads, ...optimistic].filter(
|
|
25
|
-
(thread) =>
|
|
26
|
-
!thread.archivedAt &&
|
|
27
|
-
(thread.messageCount > 0 || observedThreadStarts.has(thread.id)),
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { useT } from "@agent-native/core/client/i18n";
|
|
2
|
-
import { IconChevronDown } from "@tabler/icons-react";
|
|
3
|
-
|
|
4
|
-
import { Button } from "@/components/ui/button";
|
|
5
|
-
import {
|
|
6
|
-
DropdownMenu,
|
|
7
|
-
DropdownMenuContent,
|
|
8
|
-
DropdownMenuRadioGroup,
|
|
9
|
-
DropdownMenuRadioItem,
|
|
10
|
-
DropdownMenuTrigger,
|
|
11
|
-
} from "@/components/ui/dropdown-menu";
|
|
12
|
-
import type { DeckFilter } from "@/lib/deck-filter";
|
|
13
|
-
|
|
14
|
-
export function DeckFilterMenu({
|
|
15
|
-
value,
|
|
16
|
-
onChange,
|
|
17
|
-
}: {
|
|
18
|
-
value: DeckFilter;
|
|
19
|
-
onChange: (value: DeckFilter) => void;
|
|
20
|
-
}) {
|
|
21
|
-
const t = useT();
|
|
22
|
-
const optionLabels: Record<DeckFilter, string> = {
|
|
23
|
-
all: t("home.ownedByAnyone"),
|
|
24
|
-
mine: t("home.ownedByMe"),
|
|
25
|
-
"not-mine": t("home.sharedWithMe"),
|
|
26
|
-
};
|
|
27
|
-
const label = optionLabels[value];
|
|
28
|
-
return (
|
|
29
|
-
<DropdownMenu>
|
|
30
|
-
<DropdownMenuTrigger asChild>
|
|
31
|
-
<Button
|
|
32
|
-
type="button"
|
|
33
|
-
variant="outline"
|
|
34
|
-
size="sm"
|
|
35
|
-
aria-label={label}
|
|
36
|
-
className="h-9 shrink-0 gap-2"
|
|
37
|
-
>
|
|
38
|
-
<span className="grid">
|
|
39
|
-
{Object.entries(optionLabels).map(([filter, option]) => (
|
|
40
|
-
<span
|
|
41
|
-
key={filter}
|
|
42
|
-
aria-hidden="true"
|
|
43
|
-
className="invisible col-start-1 row-start-1 whitespace-nowrap"
|
|
44
|
-
>
|
|
45
|
-
{option}
|
|
46
|
-
</span>
|
|
47
|
-
))}
|
|
48
|
-
<span className="col-start-1 row-start-1 whitespace-nowrap">
|
|
49
|
-
{label}
|
|
50
|
-
</span>
|
|
51
|
-
</span>
|
|
52
|
-
<IconChevronDown className="size-4" aria-hidden="true" />
|
|
53
|
-
</Button>
|
|
54
|
-
</DropdownMenuTrigger>
|
|
55
|
-
<DropdownMenuContent align="start">
|
|
56
|
-
<DropdownMenuRadioGroup
|
|
57
|
-
value={value}
|
|
58
|
-
onValueChange={(nextValue) => {
|
|
59
|
-
if (
|
|
60
|
-
nextValue === "mine" ||
|
|
61
|
-
nextValue === "all" ||
|
|
62
|
-
nextValue === "not-mine"
|
|
63
|
-
) {
|
|
64
|
-
onChange(nextValue);
|
|
65
|
-
}
|
|
66
|
-
}}
|
|
67
|
-
>
|
|
68
|
-
<DropdownMenuRadioItem value="all" indicator="check">
|
|
69
|
-
{t("home.ownedByAnyone")}
|
|
70
|
-
</DropdownMenuRadioItem>
|
|
71
|
-
<DropdownMenuRadioItem value="mine" indicator="check">
|
|
72
|
-
{t("home.ownedByMe")}
|
|
73
|
-
</DropdownMenuRadioItem>
|
|
74
|
-
<DropdownMenuRadioItem value="not-mine" indicator="check">
|
|
75
|
-
{t("home.sharedWithMe")}
|
|
76
|
-
</DropdownMenuRadioItem>
|
|
77
|
-
</DropdownMenuRadioGroup>
|
|
78
|
-
</DropdownMenuContent>
|
|
79
|
-
</DropdownMenu>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export default DeckFilterMenu;
|