@agimon-ai/po-native-components 0.0.0-alpha.159 → 0.0.0-alpha.160
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/dist/components/ToolResultImage.d.mts +9 -0
- package/dist/components/ToolResultImage.d.mts.map +1 -1
- package/dist/components/ToolResultImage.mjs +26 -17
- package/dist/components/ToolResultImage.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { ImageProps } from "react-native";
|
|
2
2
|
import { WebPluginSlotProps } from "@agimon-ai/po-core/native";
|
|
3
3
|
//#region src/components/ToolResultImage.d.ts
|
|
4
|
+
interface ImageSource {
|
|
5
|
+
sessionId: string;
|
|
6
|
+
data: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
title: string;
|
|
9
|
+
}
|
|
4
10
|
export interface ToolResultImageProps extends Omit<ImageProps, 'source'> {
|
|
5
11
|
host: Pick<WebPluginSlotProps, 'sessionId' | 'slotData' | 'openTransientTab' | 'openTab'>;
|
|
6
12
|
data: string;
|
|
7
13
|
mimeType: string;
|
|
8
14
|
}
|
|
15
|
+
/** With Author installed, opens a picture in its feedback canvas; undefined without Author or a session. */
|
|
16
|
+
export declare function authorImageOpener(host: ToolResultImageProps['host']): ((image: Omit<ImageSource, "sessionId">) => Promise<void>) | undefined;
|
|
9
17
|
/** Keeps the thumbnail's appearance; with Author installed, a tap opens its feedback canvas. */
|
|
10
18
|
export declare function ToolResultImage({ host, data, mimeType, accessibilityLabel, ...props }: ToolResultImageProps): import("react").JSX.Element;
|
|
11
19
|
//#endregion
|
|
20
|
+
export {};
|
|
12
21
|
//# sourceMappingURL=ToolResultImage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolResultImage.d.mts","names":[],"sources":["../../src/components/ToolResultImage.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ToolResultImage.d.mts","names":[],"sources":["../../src/components/ToolResultImage.tsx"],"mappings":";;;UAIU;EACR;EACA;EACA;EACA;;iBAiBe,6BAA6B,KAAK;EACjD,MAAM,KAAK;EACX;EACA;;;wBAIc,kBAAkB,MAAM,iCAA4B,OAI7C,KAAK,8BAAyB;;wBAYrC,kBACd,MACA,MACA,UACA,uBACG,SACF,uCAAoB,IAAA"}
|
|
@@ -12,37 +12,46 @@ const authorImages = {
|
|
|
12
12
|
return action.version === 1 && typeof action.createImageTab === "function" ? action : null;
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
+
/** With Author installed, opens a picture in its feedback canvas; undefined without Author or a session. */
|
|
16
|
+
function authorImageOpener(host) {
|
|
17
|
+
const { sessionId } = host;
|
|
18
|
+
const action = sessionId === null ? void 0 : host.slotData?.(authorImages)[0]?.data;
|
|
19
|
+
if (sessionId === null || action === void 0) return void 0;
|
|
20
|
+
return async (image) => {
|
|
21
|
+
try {
|
|
22
|
+
const tab = await action.createImageTab({
|
|
23
|
+
sessionId,
|
|
24
|
+
...image
|
|
25
|
+
});
|
|
26
|
+
host.openTransientTab(tab);
|
|
27
|
+
host.openTab(tab.id);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
Alert.alert("Couldn't open this image", error instanceof Error ? error.message : String(error));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
15
33
|
/** Keeps the thumbnail's appearance; with Author installed, a tap opens its feedback canvas. */
|
|
16
34
|
function ToolResultImage({ host, data, mimeType, accessibilityLabel = "Image", ...props }) {
|
|
17
|
-
const
|
|
35
|
+
const open = authorImageOpener(host);
|
|
18
36
|
const image = /* @__PURE__ */ jsx(Image, {
|
|
19
37
|
...props,
|
|
20
38
|
source: { uri: `data:${mimeType};base64,${data}` },
|
|
21
39
|
accessibilityLabel
|
|
22
40
|
});
|
|
23
|
-
if (
|
|
41
|
+
if (open === void 0) return image;
|
|
24
42
|
return /* @__PURE__ */ jsx(Pressable, {
|
|
25
43
|
accessibilityRole: "button",
|
|
26
44
|
accessibilityLabel: `Open ${accessibilityLabel} in Author`,
|
|
27
45
|
accessibilityHint: "View full size and give feedback",
|
|
28
|
-
onPress:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
mimeType,
|
|
34
|
-
title: accessibilityLabel
|
|
35
|
-
});
|
|
36
|
-
host.openTransientTab(tab);
|
|
37
|
-
host.openTab(tab.id);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
Alert.alert("Couldn't open this image", error instanceof Error ? error.message : String(error));
|
|
40
|
-
}
|
|
41
|
-
},
|
|
46
|
+
onPress: () => open({
|
|
47
|
+
data,
|
|
48
|
+
mimeType,
|
|
49
|
+
title: accessibilityLabel
|
|
50
|
+
}),
|
|
42
51
|
children: image
|
|
43
52
|
});
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
//#endregion
|
|
47
|
-
export { ToolResultImage };
|
|
56
|
+
export { ToolResultImage, authorImageOpener };
|
|
48
57
|
//# sourceMappingURL=ToolResultImage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolResultImage.mjs","names":["SlotDeclaration","WebPluginSlotProps","TransientTab","Alert","ImageProps","ImageSource","sessionId","data","mimeType","title","authorImages","createImageTab","input","Promise","slot","parse","action","version","ToolResultImageProps","Omit","host","Pick","
|
|
1
|
+
{"version":3,"file":"ToolResultImage.mjs","names":["SlotDeclaration","WebPluginSlotProps","TransientTab","Alert","ImageProps","ImageSource","sessionId","data","mimeType","title","authorImages","createImageTab","input","Promise","slot","parse","action","version","ToolResultImageProps","Omit","host","Pick","authorImageOpener","undefined","slotData","image","tab","openTransientTab","openTab","id","error","alert","Error","message","String","ToolResultImage","accessibilityLabel","props","open","uri"],"sources":["../../src/components/ToolResultImage.tsx"],"sourcesContent":["import type { SlotDeclaration, WebPluginSlotProps } from '@agimon-ai/po-core/native';\nimport type { TransientTab } from '@agimon-ai/po-core/web';\nimport { Alert, Image, Pressable, type ImageProps } from 'react-native';\n\ninterface ImageSource {\n sessionId: string;\n data: string;\n mimeType: string;\n title: string;\n}\n\n// Duck-typed like the artifact browser: shared UI never imports an optional mode.\nconst authorImages: SlotDeclaration<{\n createImageTab(input: ImageSource): Promise<TransientTab>;\n}> = {\n slot: 'author.open-source',\n parse(input) {\n if (typeof input !== 'object' || input === null) return null;\n const action = input as { version?: unknown; createImageTab?: unknown };\n return action.version === 1 && typeof action.createImageTab === 'function'\n ? (action as { createImageTab(input: ImageSource): Promise<TransientTab> })\n : null;\n },\n};\n\nexport interface ToolResultImageProps extends Omit<ImageProps, 'source'> {\n host: Pick<WebPluginSlotProps, 'sessionId' | 'slotData' | 'openTransientTab' | 'openTab'>;\n data: string;\n mimeType: string;\n}\n\n/** With Author installed, opens a picture in its feedback canvas; undefined without Author or a session. */\nexport function authorImageOpener(host: ToolResultImageProps['host']) {\n const { sessionId } = host;\n const action = sessionId === null ? undefined : host.slotData?.(authorImages)[0]?.data;\n if (sessionId === null || action === undefined) return undefined;\n return async (image: Omit<ImageSource, 'sessionId'>) => {\n try {\n const tab = await action.createImageTab({ sessionId, ...image });\n host.openTransientTab(tab);\n host.openTab(tab.id);\n } catch (error) {\n Alert.alert(\"Couldn't open this image\", error instanceof Error ? error.message : String(error));\n }\n };\n}\n\n/** Keeps the thumbnail's appearance; with Author installed, a tap opens its feedback canvas. */\nexport function ToolResultImage({\n host,\n data,\n mimeType,\n accessibilityLabel = 'Image',\n ...props\n}: ToolResultImageProps) {\n const open = authorImageOpener(host);\n const image = (\n <Image {...props} source={{ uri: `data:${mimeType};base64,${data}` }} accessibilityLabel={accessibilityLabel} />\n );\n if (open === undefined) return image;\n return (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={`Open ${accessibilityLabel} in Author`}\n accessibilityHint=\"View full size and give feedback\"\n onPress={() => open({ data, mimeType, title: accessibilityLabel })}\n >\n {image}\n </Pressable>\n );\n}\n"],"mappings":";;;;;;AAYA,MAAMU,eAED;CACHI,MAAM;CACNC,MAAMH,OAAO;EACX,IAAI,OAAOA,UAAU,YAAYA,UAAU,MAAM,OAAO;EACxD,MAAMI,SAASJ;EACf,OAAOI,OAAOC,YAAY,KAAK,OAAOD,OAAOL,mBAAmB,aAC3DK,SACD;CACN;AACF;;AASA,SAAgBM,kBAAkBF,MAAoC;CACpE,MAAM,EAAEd,cAAcc;CACtB,MAAMJ,SAASV,cAAc,OAAOiB,SAAYH,KAAKI,WAAWd,YAAY,CAAC,CAAC,EAAE,EAAEH;CAClF,IAAID,cAAc,QAAQU,WAAWO,QAAW,OAAOA;CACvD,OAAO,OAAOE,UAA0C;EACtD,IAAI;GACF,MAAMC,MAAM,MAAMV,OAAOL,eAAe;IAAEL;IAAW,GAAGmB;GAAM,CAAC;GAC/DL,KAAKO,iBAAiBD,GAAG;GACzBN,KAAKQ,QAAQF,IAAIG,EAAE;EACrB,SAASC,OAAO;GACd3B,MAAM4B,MAAM,4BAA4BD,iBAAiBE,QAAQF,MAAMG,UAAUC,OAAOJ,KAAK,CAAC;EAChG;CACF;AACF;;AAGA,SAAgBK,gBAAgB,EAC9Bf,MACAb,MACAC,UACA4B,qBAAqB,SACrB,GAAGC,SACoB;CACvB,MAAMC,OAAOhB,kBAAkBF,IAAI;CACnC,MAAMK,QACJ,oBAAC,OAAD;EAAO,GAAIY;EAAO,QAAQ,EAAEE,KAAK,QAAQ/B,SAAQ,UAAWD,OAAO;EAAuB6B;CAAmB;CAE/G,IAAIE,SAASf,QAAW,OAAOE;CAC/B,OACE,oBAAC,WAAD;EACE,mBAAkB;EAClB,oBAAoB,QAAQW,mBAAkB;EAC9C,mBAAkB;EAClB,eAAeE,KAAK;GAAE/B;GAAMC;GAAUC,OAAO2B;EAAmB,CAAC;YAEhEX;CACQ;AAEf"}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnnotationMark, AnnotationSurface, AnnotationSurfaceProps } from "./com
|
|
|
3
3
|
import { Badge, BadgeProps, BadgeSize, BadgeTone } from "./components/Badge.mjs";
|
|
4
4
|
import { Button, ButtonProps, ButtonSize, ButtonVariant } from "./components/Button.mjs";
|
|
5
5
|
import { CodeBlock, CodeBlockProps } from "./components/CodeBlock.mjs";
|
|
6
|
-
import { ToolResultImage, ToolResultImageProps } from "./components/ToolResultImage.mjs";
|
|
6
|
+
import { ToolResultImage, ToolResultImageProps, authorImageOpener } from "./components/ToolResultImage.mjs";
|
|
7
7
|
import { CopyButton, CopyButtonProps } from "./components/CopyButton.mjs";
|
|
8
8
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogFooterProps, DialogFooterVariant, DialogHeader, DialogHeaderProps, DialogPartProps, DialogProps, DialogTitle, DialogTrigger, DialogWidth } from "./components/Dialog.mjs";
|
|
9
9
|
import { ComputerRow, ComputerRowProps, ComputerStatus } from "./components/ComputerRow.mjs";
|
|
@@ -43,4 +43,4 @@ import { HostTag } from "./components/HostTag.mjs";
|
|
|
43
43
|
import { InfoStrip } from "./components/InfoStrip.mjs";
|
|
44
44
|
import { AnsiSpan, BoundedFileSource, FileFilters, FileItem, FileKind, FileLayout, FileModified, FileRangeLoader, FileSort, FileSortDirection, FileStatus, FileStatusFilter, FileTextPreview, FileTreeRow, PresentedLine, ReviewComment, ageLabel, ansiSpans, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, hashlineBody, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, sizeLabel, sortFiles } from "@agimon-ai/po-web-components/text";
|
|
45
45
|
import { IconColorContext, LiveDuration, LiveDurationProps, LiveDurationReading, PoNativeProvider, PoNativeProviderProps, sheetsYielded, yieldSheets } from "@agimon-ai/po-native-components/shell";
|
|
46
|
-
export { ActivityIcon, AgentAvatar, type AgentState, AlertIcon, type AnnotationMark, AnnotationSurface, type AnnotationSurfaceProps, type AnsiSpan, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BoundedFileSource, BoxIcon, BranchIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CodeBlock, type CodeBlockProps, ComputerRow, type ComputerRowProps, type ComputerStatus, CopyButton, type CopyButtonProps, CopyIcon, CountBadge, type CountBadgeProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, type DialogFooterVariant, DialogHeader, type DialogHeaderProps, type DialogPartProps, type DialogProps, DialogTitle, DialogTrigger, type DialogWidth, Dot, type DotProps, type DotSize, type DotTone, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuItemVariant, DropdownMenuLabel, type DropdownMenuPartProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, EditIcon, EmptyState, type EmptyStateProps, EraserIcon, type FieldSize, type FieldVariant, type FileBrowserControls, type FileFilters, FileIcon, type FileItem, type FileKind, type FileLayout, type FileLinkHandler, FileList, type FileListProps, type FileModified, FilePathStrip, FilePreview, type FilePreviewProps, type FileRangeLoader, type FileSort, type FileSortDirection, type FileStatus, type FileStatusFilter, type FileTextPreview, type FileTreeRow, FileViewer, FileViewerHeader, type FileViewerProps, FitIcon, FolderIcon, ForkIcon, GearIcon, GlobeIcon, HandIcon, HashlineLines, type HashlineLinesProps, HighlighterIcon, HomeIcon, HostFilter, type HostFilterProps, HostTag, IconColorContext, type IconName, type IconProps, ImageIcon, InfoStrip, Input, type InputProps, KebabIcon, Label, type LabelProps, LightbulbIcon, List, type ListProps, ListRow, type ListRowProps, LiveDuration, type LiveDurationProps, type LiveDurationReading, LockIcon, Markdown, type MarkdownImageLoader, type MarkdownProps, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, type MessageItemHeaderProps, type MessageItemPartProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, MicIcon, MinusIcon, MonitorIcon, PaletteIcon, Panel, PanelBody, PanelHeader, type PanelPartProps, PinIcon, PlayCircleIcon, PlusIcon, PoNativeProvider, type PoNativeProviderProps, type PresentedLine, RedoIcon, type ReviewComment, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, SearchIcon, SectionLabel, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, type SelectOption, type SelectProps, SendIcon, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetList, type SheetListProps, type SheetPartProps, type SheetProps, SheetTitle, SheetTrigger, ShieldIcon, ShowMore, type ShowMoreProps, SlidersIcon, SparklesIcon, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, type StatusTone, StopIcon, Switch, type SwitchProps, SyntaxLine, type SyntaxLineProps, TabBadge, type TabBadgeProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TaskIcon, TerminalIcon, Textarea, type TextareaProps, ToolPathLink, type ToolPathLinkProps, ToolResultImage, type ToolResultImageProps, TrashIcon, UndoIcon, UserIcon, UsersIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, fontOf, hashlineBody, impactLight, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, selectionTick, sheetsYielded, sizeLabel, sortFiles, toolTone, useMessageItem, useSyntaxLines, yieldSheets };
|
|
46
|
+
export { ActivityIcon, AgentAvatar, type AgentState, AlertIcon, type AnnotationMark, AnnotationSurface, type AnnotationSurfaceProps, type AnsiSpan, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BoundedFileSource, BoxIcon, BranchIcon, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CodeBlock, type CodeBlockProps, ComputerRow, type ComputerRowProps, type ComputerStatus, CopyButton, type CopyButtonProps, CopyIcon, CountBadge, type CountBadgeProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, type DialogFooterVariant, DialogHeader, type DialogHeaderProps, type DialogPartProps, type DialogProps, DialogTitle, DialogTrigger, type DialogWidth, Dot, type DotProps, type DotSize, type DotTone, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, type DropdownMenuItemVariant, DropdownMenuLabel, type DropdownMenuPartProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, EditIcon, EmptyState, type EmptyStateProps, EraserIcon, type FieldSize, type FieldVariant, type FileBrowserControls, type FileFilters, FileIcon, type FileItem, type FileKind, type FileLayout, type FileLinkHandler, FileList, type FileListProps, type FileModified, FilePathStrip, FilePreview, type FilePreviewProps, type FileRangeLoader, type FileSort, type FileSortDirection, type FileStatus, type FileStatusFilter, type FileTextPreview, type FileTreeRow, FileViewer, FileViewerHeader, type FileViewerProps, FitIcon, FolderIcon, ForkIcon, GearIcon, GlobeIcon, HandIcon, HashlineLines, type HashlineLinesProps, HighlighterIcon, HomeIcon, HostFilter, type HostFilterProps, HostTag, IconColorContext, type IconName, type IconProps, ImageIcon, InfoStrip, Input, type InputProps, KebabIcon, Label, type LabelProps, LightbulbIcon, List, type ListProps, ListRow, type ListRowProps, LiveDuration, type LiveDurationProps, type LiveDurationReading, LockIcon, Markdown, type MarkdownImageLoader, type MarkdownProps, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, type MessageItemHeaderProps, type MessageItemPartProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, MicIcon, MinusIcon, MonitorIcon, PaletteIcon, Panel, PanelBody, PanelHeader, type PanelPartProps, PinIcon, PlayCircleIcon, PlusIcon, PoNativeProvider, type PoNativeProviderProps, type PresentedLine, RedoIcon, type ReviewComment, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, SearchIcon, SectionLabel, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, type SelectOption, type SelectProps, SendIcon, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetList, type SheetListProps, type SheetPartProps, type SheetProps, SheetTitle, SheetTrigger, ShieldIcon, ShowMore, type ShowMoreProps, SlidersIcon, SparklesIcon, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, type StatusTone, StopIcon, Switch, type SwitchProps, SyntaxLine, type SyntaxLineProps, TabBadge, type TabBadgeProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TaskIcon, TerminalIcon, Textarea, type TextareaProps, ToolPathLink, type ToolPathLinkProps, ToolResultImage, type ToolResultImageProps, TrashIcon, UndoIcon, UserIcon, UsersIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, authorImageOpener, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, fontOf, hashlineBody, impactLight, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, selectionTick, sheetsYielded, sizeLabel, sortFiles, toolTone, useMessageItem, useSyntaxLines, yieldSheets };
|
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { ActivityIcon, AlertIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIc
|
|
|
10
10
|
import { CopyButton } from "./components/CopyButton.mjs";
|
|
11
11
|
import { ShowMore } from "./components/ShowMore.mjs";
|
|
12
12
|
import { CodeBlock } from "./components/CodeBlock.mjs";
|
|
13
|
-
import { ToolResultImage } from "./components/ToolResultImage.mjs";
|
|
13
|
+
import { ToolResultImage, authorImageOpener } from "./components/ToolResultImage.mjs";
|
|
14
14
|
import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/Dialog.mjs";
|
|
15
15
|
import { List, ListRow } from "./components/List.mjs";
|
|
16
16
|
import { ComputerRow } from "./components/ComputerRow.mjs";
|
|
@@ -43,4 +43,4 @@ import { InfoStrip } from "./components/InfoStrip.mjs";
|
|
|
43
43
|
import { ageLabel, ansiSpans, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, hashlineBody, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, sizeLabel, sortFiles } from "@agimon-ai/po-web-components/text";
|
|
44
44
|
import { IconColorContext, LiveDuration, PoNativeProvider, sheetsYielded, yieldSheets } from "@agimon-ai/po-native-components/shell";
|
|
45
45
|
|
|
46
|
-
export { ActivityIcon, AgentAvatar, AlertIcon, AnnotationSurface, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Badge, BoxIcon, BranchIcon, Button, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CodeBlock, ComputerRow, CopyButton, CopyIcon, CountBadge, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Dot, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, EditIcon, EmptyState, EraserIcon, FileIcon, FileList, FilePathStrip, FilePreview, FileViewer, FileViewerHeader, FitIcon, FolderIcon, ForkIcon, GearIcon, GlobeIcon, HandIcon, HashlineLines, HighlighterIcon, HomeIcon, HostFilter, HostTag, IconColorContext, ImageIcon, InfoStrip, Input, KebabIcon, Label, LightbulbIcon, List, ListRow, LiveDuration, LockIcon, Markdown, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, MessageItemHeader, MessageItemStatus, MicIcon, MinusIcon, MonitorIcon, PaletteIcon, Panel, PanelBody, PanelHeader, PinIcon, PlayCircleIcon, PlusIcon, PoNativeProvider, RedoIcon, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, SearchIcon, SectionLabel, SegmentedControl, Select, SendIcon, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetList, SheetTitle, SheetTrigger, ShieldIcon, ShowMore, SlidersIcon, SparklesIcon, Spinner, StatusBadge, StopIcon, Switch, SyntaxLine, TabBadge, Tabs, TabsContent, TabsList, TabsTrigger, TaskIcon, TerminalIcon, Textarea, ToolPathLink, ToolResultImage, TrashIcon, UndoIcon, UserIcon, UsersIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, fontOf, hashlineBody, impactLight, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, selectionTick, sheetsYielded, sizeLabel, sortFiles, toolTone, useMessageItem, useSyntaxLines, yieldSheets };
|
|
46
|
+
export { ActivityIcon, AgentAvatar, AlertIcon, AnnotationSurface, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Badge, BoxIcon, BranchIcon, Button, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CodeBlock, ComputerRow, CopyButton, CopyIcon, CountBadge, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Dot, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, EditIcon, EmptyState, EraserIcon, FileIcon, FileList, FilePathStrip, FilePreview, FileViewer, FileViewerHeader, FitIcon, FolderIcon, ForkIcon, GearIcon, GlobeIcon, HandIcon, HashlineLines, HighlighterIcon, HomeIcon, HostFilter, HostTag, IconColorContext, ImageIcon, InfoStrip, Input, KebabIcon, Label, LightbulbIcon, List, ListRow, LiveDuration, LockIcon, Markdown, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, MessageItemHeader, MessageItemStatus, MicIcon, MinusIcon, MonitorIcon, PaletteIcon, Panel, PanelBody, PanelHeader, PinIcon, PlayCircleIcon, PlusIcon, PoNativeProvider, RedoIcon, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, SearchIcon, SectionLabel, SegmentedControl, Select, SendIcon, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetList, SheetTitle, SheetTrigger, ShieldIcon, ShowMore, SlidersIcon, SparklesIcon, Spinner, StatusBadge, StopIcon, Switch, SyntaxLine, TabBadge, Tabs, TabsContent, TabsList, TabsTrigger, TaskIcon, TerminalIcon, Textarea, ToolPathLink, ToolResultImage, TrashIcon, UndoIcon, UserIcon, UsersIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, authorImageOpener, boundedFileSource, buildReviewPrompt, collapseLines, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, fontOf, hashlineBody, impactLight, isFileLayout, modifiedLabel, newestFiles, readMediaBytes, resultTextLines, selectionTick, sheetsYielded, sizeLabel, sortFiles, toolTone, useMessageItem, useSyntaxLines, yieldSheets };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-native-components",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.160",
|
|
4
4
|
"description": "Shared React Native components for Po and its native plugins: the web component library's look and API on native parts, tuned to the Po palette.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.
|
|
52
|
+
"@agimon-ai/po-web-components": "0.0.0-alpha.160"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
56
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
57
|
-
"@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.
|
|
55
|
+
"@agimon-ai/po-build": "0.0.0-alpha.160",
|
|
56
|
+
"@agimon-ai/po-core": "0.0.0-alpha.160",
|
|
57
|
+
"@agimon-ai/vibe-lint-plugin-po-web": "0.0.0-alpha.160",
|
|
58
58
|
"@babel/core": "7.29.7",
|
|
59
59
|
"@expo/vector-icons": "15.1.1",
|
|
60
60
|
"@fontsource-variable/ibm-plex-sans": "5.3.0",
|