@agimon-ai/po-native-components 0.0.0-alpha.13 → 0.0.0-alpha.131
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/LICENSE +149 -22
- package/dist/components/AgentAvatar.d.mts +14 -0
- package/dist/components/AgentAvatar.d.mts.map +1 -0
- package/dist/components/AgentAvatar.mjs +87 -0
- package/dist/components/AgentAvatar.mjs.map +1 -0
- package/dist/components/AnnotationSurface.d.mts +69 -0
- package/dist/components/AnnotationSurface.d.mts.map +1 -0
- package/dist/components/AnnotationSurface.mjs +426 -0
- package/dist/components/AnnotationSurface.mjs.map +1 -0
- package/dist/components/Badge.d.mts +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Button.mjs +3 -3
- package/dist/components/Button.mjs.map +1 -1
- package/dist/components/CodeBlock.d.mts +3 -1
- package/dist/components/CodeBlock.d.mts.map +1 -1
- package/dist/components/CodeBlock.mjs +35 -47
- package/dist/components/CodeBlock.mjs.map +1 -1
- package/dist/components/CopyButton.d.mts +13 -0
- package/dist/components/CopyButton.d.mts.map +1 -0
- package/dist/components/CopyButton.mjs +43 -0
- package/dist/components/CopyButton.mjs.map +1 -0
- package/dist/components/CountBadge.d.mts +15 -0
- package/dist/components/CountBadge.d.mts.map +1 -0
- package/dist/components/CountBadge.mjs +49 -0
- package/dist/components/CountBadge.mjs.map +1 -0
- package/dist/components/Dialog.d.mts.map +1 -1
- package/dist/components/Dialog.mjs +9 -8
- package/dist/components/Dialog.mjs.map +1 -1
- package/dist/components/Dot.d.mts +1 -1
- package/dist/components/Dot.mjs +2 -2
- package/dist/components/DropdownMenu.d.mts +3 -1
- package/dist/components/DropdownMenu.d.mts.map +1 -1
- package/dist/components/DropdownMenu.mjs +21 -14
- package/dist/components/DropdownMenu.mjs.map +1 -1
- package/dist/components/HashlineLines.d.mts +13 -0
- package/dist/components/HashlineLines.d.mts.map +1 -0
- package/dist/components/HashlineLines.mjs +148 -0
- package/dist/components/HashlineLines.mjs.map +1 -0
- package/dist/components/HostFilter.d.mts +17 -0
- package/dist/components/HostFilter.d.mts.map +1 -0
- package/dist/components/HostFilter.mjs +66 -0
- package/dist/components/HostFilter.mjs.map +1 -0
- package/dist/components/HostTag.d.mts +7 -0
- package/dist/components/HostTag.d.mts.map +1 -0
- package/dist/components/HostTag.mjs +47 -0
- package/dist/components/HostTag.mjs.map +1 -0
- package/dist/components/InfoStrip.d.mts +9 -0
- package/dist/components/InfoStrip.d.mts.map +1 -0
- package/dist/components/InfoStrip.mjs +53 -0
- package/dist/components/InfoStrip.mjs.map +1 -0
- package/dist/components/Input.d.mts +3 -1
- package/dist/components/Input.d.mts.map +1 -1
- package/dist/components/Input.mjs +4 -3
- package/dist/components/Input.mjs.map +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/List.d.mts.map +1 -1
- package/dist/components/List.mjs +38 -6
- package/dist/components/List.mjs.map +1 -1
- package/dist/components/LiveDuration.d.mts +30 -0
- package/dist/components/LiveDuration.d.mts.map +1 -0
- package/dist/components/LiveDuration.mjs +67 -0
- package/dist/components/LiveDuration.mjs.map +1 -0
- package/dist/components/Markdown.d.mts +10 -1
- package/dist/components/Markdown.d.mts.map +1 -1
- package/dist/components/Markdown.mjs +335 -26
- package/dist/components/Markdown.mjs.map +1 -1
- package/dist/components/MessageItem.d.mts +10 -15
- package/dist/components/MessageItem.d.mts.map +1 -1
- package/dist/components/MessageItem.mjs +72 -63
- package/dist/components/MessageItem.mjs.map +1 -1
- package/dist/components/NativeShellState.d.mts +30 -0
- package/dist/components/NativeShellState.d.mts.map +1 -0
- package/dist/components/NativeShellState.mjs +61 -0
- package/dist/components/NativeShellState.mjs.map +1 -0
- package/dist/components/SectionLabel.mjs +1 -1
- package/dist/components/Select.d.mts +33 -0
- package/dist/components/Select.d.mts.map +1 -0
- package/dist/components/Select.mjs +222 -0
- package/dist/components/Select.mjs.map +1 -0
- package/dist/components/Sheet.d.mts +9 -1
- package/dist/components/Sheet.d.mts.map +1 -1
- package/dist/components/Sheet.mjs +27 -10
- package/dist/components/Sheet.mjs.map +1 -1
- package/dist/components/SheetFrame.mjs +143 -28
- package/dist/components/SheetFrame.mjs.map +1 -1
- package/dist/components/SheetList.d.mts +14 -0
- package/dist/components/SheetList.d.mts.map +1 -0
- package/dist/components/SheetList.mjs +34 -0
- package/dist/components/SheetList.mjs.map +1 -0
- package/dist/components/ShowMore.d.mts +10 -0
- package/dist/components/ShowMore.d.mts.map +1 -0
- package/dist/components/ShowMore.mjs +44 -0
- package/dist/components/ShowMore.mjs.map +1 -0
- package/dist/components/Spinner.d.mts +1 -1
- package/dist/components/StatusBadge.d.mts +1 -1
- package/dist/components/Switch.d.mts +14 -0
- package/dist/components/Switch.d.mts.map +1 -0
- package/dist/components/Switch.mjs +37 -0
- package/dist/components/Switch.mjs.map +1 -0
- package/dist/components/SyntaxLine.d.mts +19 -0
- package/dist/components/SyntaxLine.d.mts.map +1 -0
- package/dist/components/SyntaxLine.mjs +134 -0
- package/dist/components/SyntaxLine.mjs.map +1 -0
- package/dist/components/Tabs.d.mts.map +1 -1
- package/dist/components/Tabs.mjs +8 -7
- package/dist/components/Tabs.mjs.map +1 -1
- package/dist/components/ToolPathLink.d.mts +10 -0
- package/dist/components/ToolPathLink.d.mts.map +1 -0
- package/dist/components/ToolPathLink.mjs +40 -0
- package/dist/components/ToolPathLink.mjs.map +1 -0
- package/dist/components/ToolResultImage.d.mts +12 -0
- package/dist/components/ToolResultImage.d.mts.map +1 -0
- package/dist/components/ToolResultImage.mjs +48 -0
- package/dist/components/ToolResultImage.mjs.map +1 -0
- package/dist/icons/iconGlyphs.d.mts +60 -0
- package/dist/icons/iconGlyphs.d.mts.map +1 -1
- package/dist/icons/iconGlyphs.mjs +60 -0
- package/dist/icons/iconGlyphs.mjs.map +1 -1
- package/dist/icons/icons.d.mts +61 -1
- package/dist/icons/icons.d.mts.map +1 -1
- package/dist/icons/icons.mjs +17 -2
- package/dist/icons/icons.mjs.map +1 -1
- package/dist/index.d.mts +20 -6
- package/dist/index.mjs +21 -7
- package/dist/lib/fonts.d.mts +3 -1
- package/dist/lib/fonts.d.mts.map +1 -1
- package/dist/lib/fonts.mjs +4 -2
- package/dist/lib/fonts.mjs.map +1 -1
- package/dist/lib/insideSheet.d.mts +10 -0
- package/dist/lib/insideSheet.d.mts.map +1 -0
- package/dist/lib/markdown.mjs +172 -23
- package/dist/lib/markdown.mjs.map +1 -1
- package/dist/lib/reading.mjs +60 -0
- package/dist/lib/reading.mjs.map +1 -0
- package/dist/lib/useControllable.mjs +14 -6
- package/dist/lib/useControllable.mjs.map +1 -1
- package/dist/lib/useReadingPage.mjs +33 -0
- package/dist/lib/useReadingPage.mjs.map +1 -0
- package/dist/shell.d.mts +6 -0
- package/dist/shell.mjs +7 -0
- package/package.json +37 -28
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyntaxLine.mjs","names":["detectGrammar","highlightToLines","SyntaxSpan","useEffect","useState","TextProps","StyleSheet","useSyntaxLines","text","query","path","grammar","signature","done","setDone","lines","undefined","live","controller","AbortController","signal","then","abort","SyntaxLineProps","Omit","spans","SyntaxLine","props","map","span","index","token","syntax","create","theme","comment","color","colors","faint","fontStyle","uni__dependencies","keyword","magenta","constant","violet","literal","orange","string","green","regexp","teal","operator","blue","punctuation","dim","variable","property","cyan","callable","type","yellow","tag","red","attribute","meta","heading","hi","fontWeight","link","textDecorationLine","emphasis","strong","strikethrough","invalid"],"sources":["../../src/components/SyntaxLine.tsx"],"sourcesContent":["import { detectGrammar, highlightToLines, type SyntaxSpan } from '@agimon-ai/po-web-components/text';\nimport { useEffect, useState } from 'react';\nimport { Text, type TextProps } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\n/*\n * Read-only code with the editor's colours, as the web's SyntaxText: the same\n * lezer grammars through `@agimon-ai/po-web-components/text`, and the web's\n * `PO_SYNTAX_STYLES` palette on the native theme. Highlighting is async, so the\n * plain text shows first and a result that never highlights stays plain.\n */\n\n/**\n * Colours `text` as lines of spans, or undefined while loading and for text with\n * no grammar. Pass a whole block, not one line: a line is not a parse unit.\n */\nexport function useSyntaxLines(text: string, query: { path?: string | undefined } = {}) {\n const grammar = detectGrammar({ path: query.path, text });\n const signature = `${grammar ?? ''}\\u0000${text}`;\n const [done, setDone] = useState<{ signature: string; lines: readonly (readonly SyntaxSpan[])[] }>();\n\n useEffect(() => {\n if (grammar === undefined) return;\n let live = true;\n const controller = new AbortController();\n void highlightToLines(text, grammar, controller.signal).then(\n (lines) => {\n if (live && lines !== undefined) setDone({ signature, lines });\n },\n // A grammar that fails to load leaves the plain text in place: colour is decoration.\n () => undefined,\n );\n return () => {\n live = false;\n controller.abort();\n };\n }, [text, grammar, signature]);\n\n return done?.signature === signature ? done.lines : undefined;\n}\n\nexport interface SyntaxLineProps extends Omit<TextProps, 'children'> {\n /** The line's spans from `useSyntaxLines`, or undefined to show `text` plain. */\n spans?: readonly SyntaxSpan[] | undefined;\n text: string;\n}\n\n/** One line: coloured when its spans are in, the plain text until then. */\nexport function SyntaxLine({ spans, text, ...props }: SyntaxLineProps) {\n return (\n <Text {...props}>\n {spans?.map((span, index) => (\n <Text key={index} style={span.token === undefined ? undefined : syntax[span.token]}>\n {span.text}\n </Text>\n )) ?? text}\n </Text>\n );\n}\n\n/** The web's `PO_SYNTAX_STYLES`, on the native theme's colours. */\nconst syntax = StyleSheet.create((theme) => ({\n comment: { color: theme.colors.faint, fontStyle: 'italic' },\n keyword: { color: theme.colors.magenta },\n constant: { color: theme.colors.violet },\n literal: { color: theme.colors.orange },\n string: { color: theme.colors.green },\n regexp: { color: theme.colors.teal },\n operator: { color: theme.colors.blue },\n punctuation: { color: theme.colors.dim },\n variable: { color: theme.colors.text },\n property: { color: theme.colors.cyan },\n callable: { color: theme.colors.blue },\n type: { color: theme.colors.yellow },\n tag: { color: theme.colors.red },\n attribute: { color: theme.colors.yellow },\n meta: { color: theme.colors.faint },\n heading: { color: theme.colors.hi, fontWeight: 'bold' },\n link: { color: theme.colors.cyan, textDecorationLine: 'underline' },\n emphasis: { fontStyle: 'italic' },\n strong: { fontWeight: 'bold' },\n strikethrough: { textDecorationLine: 'line-through' },\n invalid: { color: theme.colors.red },\n}));\n"],"mappings":";;;;;;;;;;;AAgBA,SAAgBO,eAAeC,MAAcC,QAAuC,CAAC,GAAG;CACtF,MAAME,UAAUX,cAAc;EAAEU,MAAMD,MAAMC;EAAMF;CAAK,CAAC;CACxD,MAAMI,YAAY,GAAGD,WAAW,GAAE,QAASH;CAC3C,MAAM,CAACK,MAAMC,WAAWV,SAA2E;CAEnGD,gBAAgB;EACd,IAAIQ,YAAYK,QAAW;EAC3B,IAAIC,OAAO;EACX,MAAMC,aAAa,IAAIC,gBAAgB;EACvC,AAAKlB,iBAAiBO,MAAMG,SAASO,WAAWE,MAAM,CAAC,CAACC,MACrDN,UAAU;GACT,IAAIE,QAAQF,UAAUC,QAAWF,QAAQ;IAAEF;IAAWG;GAAM,CAAC;EAC/D,SAEMC,MACR;EACA,aAAa;GACXC,OAAO;GACPC,WAAWI,MAAM;EACnB;CACF,GAAG;EAACd;EAAMG;EAASC;CAAS,CAAC;CAE7B,OAAOC,MAAMD,cAAcA,YAAYC,KAAKE,QAAQC;AACtD;;AASA,SAAgBU,WAAW,EAAED,OAAOjB,MAAM,GAAGmB,SAA0B;CACrE,OACE,oBAAC,MAAD;EAAM,GAAIA;YACPF,OAAOG,KAAKC,MAAMC,UACjB,oBAAC,MAAD;GAAkB,OAAOD,KAAKE,UAAUf,SAAYA,SAAYgB,OAAOH,KAAKE;aACzEF,KAAKrB;EACF,GAFKsB,KAEL,CACP,KAAKtB;CACF;AAEV;;AAGA,MAAMwB,SAAS1B,WAAW2B,QAAQC,WAAW;CAC3CC,SAAS;EAAEC,OAAOF,MAAMG,OAAOC;EAAOC,WAAW;EAAQC,mBAAA,CAAA,CAAA;CAAC;CAC1DC,SAAS;EAAEL,OAAOF,MAAMG,OAAOK;EAAOF,mBAAA,CAAA,CA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SAAS;CAChCgC,QAAQ,EAAEJ,YAAY,OAAO;CAC7BK,eAAe,EAAEH,oBAAoB,eAAe;CACpDI,SAAS;EAAErC,OAAOF,MAAMG,OAAOyB;EAAGtB,mBAAA,CAAA,CAAA;CAAC;AACrC,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.mts","names":[],"sources":["../../src/components/Tabs.tsx"],"mappings":";;;iBA8BiB,kBAAkB,KAAK;;EAEtC;EACA;EACA,iBAAiB;EACjB,WAAW;EACX,QAAQ,UAAU;;wBAGJ,OAAO,OAAO,cAAc,eAAe,UAAU,UAAU,SAAS,4BAAS,IAAA;
|
|
1
|
+
{"version":3,"file":"Tabs.d.mts","names":[],"sources":["../../src/components/Tabs.tsx"],"mappings":";;;iBA8BiB,kBAAkB,KAAK;;EAEtC;EACA;EACA,iBAAiB;EACjB,WAAW;EACX,QAAQ,UAAU;;wBAGJ,OAAO,OAAO,cAAc,eAAe,UAAU,UAAU,SAAS,4BAAS,IAAA;iBAgBhF;EACf,WAAW;EACX,QAAQ,UAAU;;;wBAIJ,WAAW,UAAU,SAAS,gCAAa,IAAA;iBAc1C;EACf;EACA;;EAEA,WAAW;EACX;EACA,QAAQ,UAAU;;wBAGJ,cAAc,OAAO,UAAkB,UAAU,oBAAoB,SAAS,mCAAgB,IAAA;iBA2B7F,yBAAyB,KAAK;EAC7C;EACA,WAAW;EACX,QAAQ,UAAU;;;wBAIJ,cAAc,OAAO,UAAU,UAAU,SAAS,mCAAgB,IAAA;iBAUjE;;EAEf;EACA,WAAW;EACX,QAAQ,UAAU;;;wBAIJ,WAAW,QAAQ,UAAU,SAAS,gCAAa,IAAA"}
|
package/dist/components/Tabs.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { fontOf } from "../lib/fonts.mjs";
|
|
2
|
-
import { wrapText } from "../lib/wrapText.mjs";
|
|
3
2
|
import { selectionTick } from "../lib/haptics.mjs";
|
|
3
|
+
import { wrapText } from "../lib/wrapText.mjs";
|
|
4
4
|
import { useControllable } from "../lib/useControllable.mjs";
|
|
5
5
|
import { View } from "react-native-unistyles/components/native/View";
|
|
6
|
-
import { StyleSheet } from "react-native-unistyles";
|
|
7
6
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
8
|
-
import {
|
|
7
|
+
import { StyleSheet } from "react-native-unistyles";
|
|
8
|
+
import { createContext, useContext, useMemo } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { Pressable } from "react-native-unistyles/components/native/Pressable";
|
|
11
11
|
import { ScrollView } from "react-native-unistyles/components/native/ScrollView";
|
|
@@ -23,11 +23,12 @@ const TabsContext = createContext({
|
|
|
23
23
|
const TabActiveContext = createContext(false);
|
|
24
24
|
function Tabs({ value, defaultValue, onValueChange, children, style, ...props }) {
|
|
25
25
|
const [current, setValue] = useControllable(value, defaultValue, onValueChange);
|
|
26
|
+
const context = useMemo(() => ({
|
|
27
|
+
value: current,
|
|
28
|
+
setValue
|
|
29
|
+
}), [current, setValue]);
|
|
26
30
|
return /* @__PURE__ */ jsx(TabsContext.Provider, {
|
|
27
|
-
value:
|
|
28
|
-
value: current,
|
|
29
|
-
setValue
|
|
30
|
-
},
|
|
31
|
+
value: context,
|
|
31
32
|
children: /* @__PURE__ */ jsx(View, {
|
|
32
33
|
style: [styles.tabs, style],
|
|
33
34
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.mjs","names":["createContext","ReactNode","useContext","StyleProp","ViewProps","ViewStyle","StyleSheet","fontOf","selectionTick","useControllable","wrapText","TAB_HEIGHT","MIN_TAP_TARGET","DISABLED_OPACITY","BADGE_SIZE","TabsState","value","setValue","TabsContext","undefined","TabActiveContext","TabsProps","Omit","defaultValue","onValueChange","children","style","Tabs","props","current","next","styles","tabs","TabsListProps","TabsList","listScroll","list","TabsTriggerProps","disabled","accessibilityLabel","TabsTrigger","active","_styles","useVariants","selected","pressed","tab","label","labelPressed","TabsContentProps","TabsContent","content","contentText","TabBadgeProps","TabBadge","inherited","_styles2","badge","badgeText","create","theme","gap","spacing","uni__dependencies","flexGrow","flexDirection","alignItems","minHeight","minWidth","borderRadius","DEFAULT","paddingHorizontal","paddingVertical","variants","true","backgroundColor","colors","false","panel","opacity","fontFamily","sans","fontSize","base","lineHeight","color","green","fontWeight","semibold","dim","medium","hi","sm","justifyContent","height","full","idle","rail"],"sources":["../../src/components/Tabs.tsx"],"sourcesContent":["import { createContext, type ReactNode, useContext } from 'react';\nimport { Pressable, ScrollView, type StyleProp, Text, View, type ViewProps, type ViewStyle } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { fontOf } from '../lib/fonts';\nimport { selectionTick } from '../lib/haptics';\nimport { useControllable } from '../lib/useControllable';\nimport { wrapText } from '../lib/wrapText';\n\n/*\n * The web Tabs on a horizontal ScrollView: a strip that scrolls when the tabs\n * outgrow the screen, the active tab in a green tint, and a selection tick on\n * each change. The panels swap in place.\n */\n\n/** `min-h-6`, padded to Apple's 44pt tap target by hitSlop. */\nconst TAB_HEIGHT = 24;\nconst MIN_TAP_TARGET = 44;\nconst DISABLED_OPACITY = 0.4;\nconst BADGE_SIZE = 15;\n\ninterface TabsState {\n value: string | undefined;\n setValue: (value: string) => void;\n}\n\nconst TabsContext = createContext<TabsState>({ value: undefined, setValue: () => undefined });\n/** Whether the enclosing trigger is active, so a TabBadge inverts without being told. */\nconst TabActiveContext = createContext(false);\n\nexport interface TabsProps extends Omit<ViewProps, 'children' | 'style'> {\n /** Controlled mode; pair with onValueChange. Omit it and the tabs keep their own state. */\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\nexport function Tabs({ value, defaultValue, onValueChange, children, style, ...props }: TabsProps) {\n const [current, setValue] = useControllable<string | undefined>(\n value,\n defaultValue,\n onValueChange as ((next: string | undefined) => void) | undefined,\n );\n return (\n <TabsContext.Provider value={{ value: current, setValue }}>\n <View style={[styles.tabs, style]} {...props}>\n {children}\n </View>\n </TabsContext.Provider>\n );\n}\n\nexport interface TabsListProps {\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The tab strip; it scrolls sideways when the tabs outgrow it. */\nexport function TabsList({ children, style }: TabsListProps) {\n return (\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n accessibilityRole=\"tablist\"\n style={styles.listScroll}\n contentContainerStyle={[styles.list, style]}\n >\n {children}\n </ScrollView>\n );\n}\n\nexport interface TabsTriggerProps {\n value: string;\n disabled?: boolean;\n /** The label; a bare string is drawn in the tab's type, and a TabBadge may follow it. */\n children?: ReactNode;\n accessibilityLabel?: string;\n style?: StyleProp<ViewStyle>;\n}\n\nexport function TabsTrigger({ value, disabled = false, children, accessibilityLabel, style }: TabsTriggerProps) {\n const tabs = useContext(TabsContext);\n const active = tabs.value === value;\n styles.useVariants({ active });\n return (\n <Pressable\n accessibilityRole=\"tab\"\n accessibilityLabel={accessibilityLabel}\n accessibilityState={{ selected: active, disabled }}\n disabled={disabled}\n hitSlop={(MIN_TAP_TARGET - TAB_HEIGHT) / 2}\n onPress={() => {\n if (active) return;\n selectionTick();\n tabs.setValue(value);\n }}\n style={({ pressed }) => [styles.tab, pressed && !active && styles.pressed, disabled && styles.disabled, style]}\n >\n {({ pressed }) => (\n <TabActiveContext.Provider value={active}>\n {wrapText(children, [styles.label, pressed && !active && styles.labelPressed])}\n </TabActiveContext.Provider>\n )}\n </Pressable>\n );\n}\n\nexport interface TabsContentProps extends Omit<ViewProps, 'children' | 'style'> {\n value: string;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The panel for one tab; only the active one renders. */\nexport function TabsContent({ value, children, style, ...props }: TabsContentProps) {\n const tabs = useContext(TabsContext);\n if (tabs.value !== value) return null;\n return (\n <View style={[styles.content, style]} {...props}>\n {wrapText(children, styles.contentText)}\n </View>\n );\n}\n\nexport interface TabBadgeProps {\n /** Defaults to the enclosing tab's state: it inverts on the active tab so it stays readable on the tint. */\n active?: boolean;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The count beside a tab's label. */\nexport function TabBadge({ active, children, style }: TabBadgeProps) {\n const inherited = useContext(TabActiveContext);\n styles.useVariants({ badge: (active ?? inherited) ? 'active' : 'idle' });\n return (\n <View style={[styles.badge, style]}>\n <Text style={styles.badgeText}>{children}</Text>\n </View>\n );\n}\n\nconst styles = StyleSheet.create((theme) => ({\n tabs: { gap: theme.spacing(2) },\n listScroll: { flexGrow: 0 },\n list: { flexDirection: 'row', alignItems: 'center', gap: theme.spacing(1) },\n tab: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.spacing(1.5),\n minHeight: TAB_HEIGHT,\n minWidth: TAB_HEIGHT,\n borderRadius: theme.borderRadius.DEFAULT,\n paddingHorizontal: theme.spacing(2),\n paddingVertical: theme.spacing(1),\n variants: {\n active: {\n true: { backgroundColor: theme.colors['tint-green'] },\n false: {},\n },\n },\n },\n pressed: { backgroundColor: theme.colors.panel },\n disabled: { opacity: DISABLED_OPACITY },\n label: {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.base,\n lineHeight: theme.lineHeight.base,\n variants: {\n active: {\n true: { color: theme.colors.green, fontWeight: theme.fontWeight.semibold },\n false: { color: theme.colors.dim, fontWeight: theme.fontWeight.medium },\n },\n },\n },\n labelPressed: { color: theme.colors.hi },\n content: { flexGrow: 1, minHeight: 0 },\n contentText: {\n color: theme.colors.dim,\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n },\n badge: {\n alignItems: 'center',\n justifyContent: 'center',\n height: BADGE_SIZE,\n minWidth: BADGE_SIZE,\n borderRadius: theme.borderRadius.full,\n paddingHorizontal: theme.spacing(1),\n variants: {\n badge: {\n active: { backgroundColor: theme.colors.green },\n idle: { backgroundColor: theme.colors.panel },\n },\n },\n },\n badgeText: {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize['2xs'],\n lineHeight: theme.lineHeight['2xs'],\n fontWeight: theme.fontWeight.semibold,\n variants: {\n badge: {\n active: { color: theme.colors.rail },\n idle: { color: theme.colors.dim },\n },\n },\n },\n}));\n"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMW,aAAa;AAEnB,MAAME,mBAAmB;AACzB,MAAMC,aAAa;AAOnB,MAAMI,cAAclB,cAAyB;CAAEgB,OAAOG;CAAWF,gBAAgBE;AAAU,CAAC;;AAE5F,MAAMC,mBAAmBpB,cAAc,KAAK;AAW5C,SAAgB2B,KAAK,EAAEX,OAAOO,cAAcC,eAAeC,UAAUC,OAAO,GAAGE,SAAoB;CACjG,MAAM,CAACC,SAASZ,YAAYR,gBAC1BO,OACAO,cACAC,aACF;CACA,OACE,oBAAC,YAAY,UAAb;EAAsB,OAAO;GAAER,OAAOa;GAASZ;EAAS;YACtD,oBAAC,MAAD;GAAM,OAAO,CAACc,OAAOC,MAAMN,KAAK;GAAG,GAAIE;GACpCH;EACG;CACc;AAE1B;;AAQA,SAAgBS,SAAS,EAAET,UAAUC,SAAwB;CAC3D,OACE,oBAAC,YAAD;EACE;EACA,gCAAgC;EAChC,mBAAkB;EAClB,OAAOK,OAAOI;EACd,uBAAuB,CAACJ,OAAOK,MAAMV,KAAK;EAEzCD;CACS;AAEhB;AAWA,SAAgBe,YAAY,EAAExB,OAAOsB,WAAW,OAAOb,UAAUc,oBAAoBb,SAA2B;CAC9G,MAAMM,OAAO9B,WAAWgB,WAAW;CACnC,MAAMuB,SAAST,KAAKhB,UAAUA;CAAM,MAAA0B,UAAAX;CAAA;EAAA,MAAAA,SAAAW,QAAAC,YACjB,EAAEF,OAAO,CAAC;EAC7B,OACE,oBAAC,WAAD;GACE,mBAAkB;GACEF;GACpB,oBAAoB;IAAEK,UAAUH;IAAQH;GAAS;GACvCA;GACV,SAAS;GACT,eAAe;IACb,IAAIG,QAAQ;IACZj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AClCW,UAAU,EACRhB,OAAO;GACLhB,QAAQ,EAAEkC,iBAAiBf,MAAMgB,OAAOU,MAAM;GAC9CU,MAAM,EAAErB,iBAAiBf,MAAMgB,OAAOE,MAAM;EAC9C,EACF;EAACf,mBAAA,CAAA,GAAA,CAAA;CACH;CACAL,WAAW;EACTsB,YAAYzE,OAAOqD,MAAMoB,WAAWC,IAAI;EACxCC,UAAUtB,MAAMsB,SAAS;EACzBE,YAAYxB,MAAMwB,WAAW;EAC7BG,YAAY3B,MAAM2B,WAAWC;EAC7Bf,UAAU,EACRhB,OAAO;GACLhB,QAAQ,EAAE4C,OAAOzB,MAAMgB,OAAOqB,KAAK;GACnCD,MAAM,EAAEX,OAAOzB,MAAMgB,OAAOa,IAAI;EAClC,EACF;EAAC1B,mBAAA,CAAA,GAAA,CAAA;CACH;AACF,EAAE"}
|
|
1
|
+
{"version":3,"file":"Tabs.mjs","names":["createContext","ReactNode","useContext","useMemo","StyleProp","ViewProps","ViewStyle","StyleSheet","fontOf","selectionTick","useControllable","wrapText","TAB_HEIGHT","MIN_TAP_TARGET","DISABLED_OPACITY","BADGE_SIZE","TabsState","value","setValue","TabsContext","undefined","TabActiveContext","TabsProps","Omit","defaultValue","onValueChange","children","style","Tabs","props","current","next","context","styles","tabs","TabsListProps","TabsList","listScroll","list","TabsTriggerProps","disabled","accessibilityLabel","TabsTrigger","active","_styles","useVariants","selected","pressed","tab","label","labelPressed","TabsContentProps","TabsContent","content","contentText","TabBadgeProps","TabBadge","inherited","_styles2","badge","badgeText","create","theme","gap","spacing","uni__dependencies","flexGrow","flexDirection","alignItems","minHeight","minWidth","borderRadius","DEFAULT","paddingHorizontal","paddingVertical","variants","true","backgroundColor","colors","false","panel","opacity","fontFamily","sans","fontSize","base","lineHeight","color","green","fontWeight","semibold","dim","medium","hi","sm","justifyContent","height","full","idle","rail"],"sources":["../../src/components/Tabs.tsx"],"sourcesContent":["import { createContext, type ReactNode, useContext, useMemo } from 'react';\nimport { Pressable, ScrollView, type StyleProp, Text, View, type ViewProps, type ViewStyle } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { fontOf } from '../lib/fonts';\nimport { selectionTick } from '../lib/haptics';\nimport { useControllable } from '../lib/useControllable';\nimport { wrapText } from '../lib/wrapText';\n\n/*\n * The web Tabs on a horizontal ScrollView: a strip that scrolls when the tabs\n * outgrow the screen, the active tab in a green tint, and a selection tick on\n * each change. The panels swap in place.\n */\n\n/** `min-h-6`, padded to Apple's 44pt tap target by hitSlop. */\nconst TAB_HEIGHT = 24;\nconst MIN_TAP_TARGET = 44;\nconst DISABLED_OPACITY = 0.4;\nconst BADGE_SIZE = 15;\n\ninterface TabsState {\n value: string | undefined;\n setValue: (value: string) => void;\n}\n\nconst TabsContext = createContext<TabsState>({ value: undefined, setValue: () => undefined });\n/** Whether the enclosing trigger is active, so a TabBadge inverts without being told. */\nconst TabActiveContext = createContext(false);\n\nexport interface TabsProps extends Omit<ViewProps, 'children' | 'style'> {\n /** Controlled mode; pair with onValueChange. Omit it and the tabs keep their own state. */\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\nexport function Tabs({ value, defaultValue, onValueChange, children, style, ...props }: TabsProps) {\n const [current, setValue] = useControllable<string | undefined>(\n value,\n defaultValue,\n onValueChange as ((next: string | undefined) => void) | undefined,\n );\n const context = useMemo(() => ({ value: current, setValue }), [current, setValue]);\n return (\n <TabsContext.Provider value={context}>\n <View style={[styles.tabs, style]} {...props}>\n {children}\n </View>\n </TabsContext.Provider>\n );\n}\n\nexport interface TabsListProps {\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The tab strip; it scrolls sideways when the tabs outgrow it. */\nexport function TabsList({ children, style }: TabsListProps) {\n return (\n <ScrollView\n horizontal\n showsHorizontalScrollIndicator={false}\n accessibilityRole=\"tablist\"\n style={styles.listScroll}\n contentContainerStyle={[styles.list, style]}\n >\n {children}\n </ScrollView>\n );\n}\n\nexport interface TabsTriggerProps {\n value: string;\n disabled?: boolean;\n /** The label; a bare string is drawn in the tab's type, and a TabBadge may follow it. */\n children?: ReactNode;\n accessibilityLabel?: string;\n style?: StyleProp<ViewStyle>;\n}\n\nexport function TabsTrigger({ value, disabled = false, children, accessibilityLabel, style }: TabsTriggerProps) {\n const tabs = useContext(TabsContext);\n const active = tabs.value === value;\n styles.useVariants({ active });\n return (\n <Pressable\n accessibilityRole=\"tab\"\n accessibilityLabel={accessibilityLabel}\n accessibilityState={{ selected: active, disabled }}\n disabled={disabled}\n hitSlop={(MIN_TAP_TARGET - TAB_HEIGHT) / 2}\n onPress={() => {\n if (active) return;\n selectionTick();\n tabs.setValue(value);\n }}\n style={({ pressed }) => [styles.tab, pressed && !active && styles.pressed, disabled && styles.disabled, style]}\n >\n {({ pressed }) => (\n <TabActiveContext.Provider value={active}>\n {wrapText(children, [styles.label, pressed && !active && styles.labelPressed])}\n </TabActiveContext.Provider>\n )}\n </Pressable>\n );\n}\n\nexport interface TabsContentProps extends Omit<ViewProps, 'children' | 'style'> {\n value: string;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The panel for one tab; only the active one renders. */\nexport function TabsContent({ value, children, style, ...props }: TabsContentProps) {\n const tabs = useContext(TabsContext);\n if (tabs.value !== value) return null;\n return (\n <View style={[styles.content, style]} {...props}>\n {wrapText(children, styles.contentText)}\n </View>\n );\n}\n\nexport interface TabBadgeProps {\n /** Defaults to the enclosing tab's state: it inverts on the active tab so it stays readable on the tint. */\n active?: boolean;\n children?: ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\n/** The count beside a tab's label. */\nexport function TabBadge({ active, children, style }: TabBadgeProps) {\n const inherited = useContext(TabActiveContext);\n styles.useVariants({ badge: (active ?? inherited) ? 'active' : 'idle' });\n return (\n <View style={[styles.badge, style]}>\n <Text style={styles.badgeText}>{children}</Text>\n </View>\n );\n}\n\nconst styles = StyleSheet.create((theme) => ({\n tabs: { gap: theme.spacing(2) },\n listScroll: { flexGrow: 0 },\n list: { flexDirection: 'row', alignItems: 'center', gap: theme.spacing(1) },\n tab: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: theme.spacing(1.5),\n minHeight: TAB_HEIGHT,\n minWidth: TAB_HEIGHT,\n borderRadius: theme.borderRadius.DEFAULT,\n paddingHorizontal: theme.spacing(2),\n paddingVertical: theme.spacing(1),\n variants: {\n active: {\n true: { backgroundColor: theme.colors['tint-green'] },\n false: {},\n },\n },\n },\n pressed: { backgroundColor: theme.colors.panel },\n disabled: { opacity: DISABLED_OPACITY },\n label: {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.base,\n lineHeight: theme.lineHeight.base,\n variants: {\n active: {\n true: { color: theme.colors.green, fontWeight: theme.fontWeight.semibold },\n false: { color: theme.colors.dim, fontWeight: theme.fontWeight.medium },\n },\n },\n },\n labelPressed: { color: theme.colors.hi },\n content: { flexGrow: 1, minHeight: 0 },\n contentText: {\n color: theme.colors.dim,\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n },\n badge: {\n alignItems: 'center',\n justifyContent: 'center',\n height: BADGE_SIZE,\n minWidth: BADGE_SIZE,\n borderRadius: theme.borderRadius.full,\n paddingHorizontal: theme.spacing(1),\n variants: {\n badge: {\n active: { backgroundColor: theme.colors.green },\n idle: { backgroundColor: theme.colors.panel },\n },\n },\n },\n badgeText: {\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize['2xs'],\n lineHeight: theme.lineHeight['2xs'],\n fontWeight: theme.fontWeight.semibold,\n variants: {\n badge: {\n active: { color: theme.colors.rail },\n idle: { color: theme.colors.dim },\n },\n },\n },\n}));\n"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMY,aAAa;AAEnB,MAAME,mBAAmB;AACzB,MAAMC,aAAa;AAOnB,MAAMI,cAAcnB,cAAyB;CAAEiB,OAAOG;CAA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UAAUtB,MAAMsB,SAAS;EACzBE,YAAYxB,MAAMwB,WAAW;EAC7BG,YAAY3B,MAAM2B,WAAWC;EAC7Bf,UAAU,EACRhB,OAAO;GACLhB,QAAQ,EAAE4C,OAAOzB,MAAMgB,OAAOqB,KAAK;GACnCD,MAAM,EAAEX,OAAOzB,MAAMgB,OAAOa,IAAI;EAClC,EACF;EAAC1B,mBAAA,CAAA,GAAA,CAAA;CACH;AACF,EAAE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextProps } from "react-native";
|
|
2
|
+
//#region src/components/ToolPathLink.d.ts
|
|
3
|
+
export interface ToolPathLinkProps extends Omit<TextProps, 'children' | 'onPress'> {
|
|
4
|
+
path: string;
|
|
5
|
+
/** Opens the file; omitted when nothing installed can show it. */
|
|
6
|
+
onOpen?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ToolPathLink({ path, onOpen, style, ...props }: ToolPathLinkProps): import("react").JSX.Element;
|
|
9
|
+
//#endregion
|
|
10
|
+
//# sourceMappingURL=ToolPathLink.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolPathLink.d.mts","names":[],"sources":["../../src/components/ToolPathLink.tsx"],"mappings":";;iBAYiB,0BAA0B,KAAK;EAC9C;;EAEA;;wBAGc,eAAe,MAAM,QAAQ,UAAU,SAAS,oCAAiB,IAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { fontOf } from "../lib/fonts.mjs";
|
|
2
|
+
import { Text } from "react-native-unistyles/components/native/Text";
|
|
3
|
+
import { StyleSheet } from "react-native-unistyles";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ToolPathLink.tsx
|
|
7
|
+
function ToolPathLink({ path, onOpen, style, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Text, {
|
|
9
|
+
numberOfLines: 1,
|
|
10
|
+
ellipsizeMode: "middle",
|
|
11
|
+
testID: "tool-path",
|
|
12
|
+
...onOpen === void 0 ? {} : {
|
|
13
|
+
accessibilityRole: "link",
|
|
14
|
+
accessibilityHint: `open ${path}`,
|
|
15
|
+
onPress: onOpen
|
|
16
|
+
},
|
|
17
|
+
style: [
|
|
18
|
+
styles.path,
|
|
19
|
+
onOpen !== void 0 && styles.link,
|
|
20
|
+
style
|
|
21
|
+
],
|
|
22
|
+
...props,
|
|
23
|
+
children: path
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const styles = StyleSheet.create((theme) => ({
|
|
27
|
+
path: {
|
|
28
|
+
flexShrink: 1,
|
|
29
|
+
color: theme.colors.text,
|
|
30
|
+
fontFamily: fontOf(theme.fontFamily.sans),
|
|
31
|
+
fontSize: theme.fontSize.base,
|
|
32
|
+
lineHeight: theme.lineHeight.base,
|
|
33
|
+
uni__dependencies: [0]
|
|
34
|
+
},
|
|
35
|
+
link: { textDecorationLine: "underline" }
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { ToolPathLink };
|
|
40
|
+
//# sourceMappingURL=ToolPathLink.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolPathLink.mjs","names":["TextProps","StyleSheet","fontOf","ToolPathLinkProps","Omit","path","onOpen","ToolPathLink","style","props","undefined","accessibilityRole","const","accessibilityHint","onPress","styles","link","create","theme","flexShrink","color","colors","text","fontFamily","sans","fontSize","base","lineHeight","uni__dependencies","textDecorationLine"],"sources":["../../src/components/ToolPathLink.tsx"],"sourcesContent":["import { Text, type TextProps } from 'react-native';\nimport { StyleSheet } from 'react-native-unistyles';\n\nimport { fontOf } from '../lib/fonts';\n\n/*\n * The file path in a tool call's header, as a link when something can open it,\n * as the web's ToolPathLink. The host decides whether the path opens and hands\n * the answer down as `onOpen`; without one the path stays plain text, because\n * a link that opens nothing is worse than no link.\n */\n\nexport interface ToolPathLinkProps extends Omit<TextProps, 'children' | 'onPress'> {\n path: string;\n /** Opens the file; omitted when nothing installed can show it. */\n onOpen?: () => void;\n}\n\nexport function ToolPathLink({ path, onOpen, style, ...props }: ToolPathLinkProps) {\n return (\n <Text\n numberOfLines={1}\n ellipsizeMode=\"middle\"\n testID=\"tool-path\"\n {...(onOpen === undefined\n ? {}\n : { accessibilityRole: 'link' as const, accessibilityHint: `open ${path}`, onPress: onOpen })}\n style={[styles.path, onOpen !== undefined && styles.link, style]}\n {...props}\n >\n {path}\n </Text>\n );\n}\n\nconst styles = StyleSheet.create((theme) => ({\n path: {\n flexShrink: 1,\n color: theme.colors.text,\n fontFamily: fontOf(theme.fontFamily.sans),\n fontSize: theme.fontSize.base,\n lineHeight: theme.lineHeight.base,\n },\n link: { textDecorationLine: 'underline' },\n}));\n"],"mappings":";;;;;;AAkBA,SAAgBO,aAAa,EAAEF,MAAMC,QAAQE,OAAO,GAAGC,SAA4B;CACjF,OACE,oBAAC,MAAD;EACE,eAAe;EACf,eAAc;EACd,QAAO;EACP,GAAKH,WAAWI,SACZ,CAAC,IACD;GAAEC,mBAAmB;GAAiBE,mBAAmB,QAAQR;GAAQS,SAASR;EAAO;EAC7F,OAAO;GAACS,OAAOV;GAAMC,WAAWI,UAAaK,OAAOC;GAAMR;EAAK;EAC/D,GAAIC;YAEHJ;CACG;AAEV;AAEA,MAAMU,SAASd,WAAWgB,QAAQC,WAAW;CAC3Cb,MAAM;EACJc,YAAY;EACZC,OAAOF,MAAMG,OAAOC;EACpBC,YAAYrB,OAAOgB,MAAMK,WAAWC,IAAI;EACxCC,UAAUP,MAAMO,SAASC;EACzBC,YAAYT,MAAMS,WAAWD;EAAIE,mBAAA,CAAA,CAAA;CACnC;CACAZ,MAAM,EAAEa,oBAAoB,YAAY;AAC1C,EAAE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImageProps } from "react-native";
|
|
2
|
+
import { WebPluginSlotProps } from "@agimon-ai/po-core/native";
|
|
3
|
+
//#region src/components/ToolResultImage.d.ts
|
|
4
|
+
export interface ToolResultImageProps extends Omit<ImageProps, 'source'> {
|
|
5
|
+
host: Pick<WebPluginSlotProps, 'sessionId' | 'slotData' | 'openTransientTab' | 'openTab'>;
|
|
6
|
+
data: string;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
}
|
|
9
|
+
/** Keeps the thumbnail's appearance; with Author installed, a tap opens its feedback canvas. */
|
|
10
|
+
export declare function ToolResultImage({ host, data, mimeType, accessibilityLabel, ...props }: ToolResultImageProps): import("react").JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=ToolResultImage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolResultImage.d.mts","names":[],"sources":["../../src/components/ToolResultImage.tsx"],"mappings":";;;iBAyBiB,6BAA6B,KAAK;EACjD,MAAM,KAAK;EACX;EACA;;;wBAIc,kBACd,MACA,MACA,UACA,uBACG,SACF,uCAAoB,IAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Alert } from "react-native";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Pressable } from "react-native-unistyles/components/native/Pressable";
|
|
4
|
+
import { Image } from "react-native-unistyles/components/native/Image";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ToolResultImage.tsx
|
|
7
|
+
const authorImages = {
|
|
8
|
+
slot: "author.open-source",
|
|
9
|
+
parse(input) {
|
|
10
|
+
if (typeof input !== "object" || input === null) return null;
|
|
11
|
+
const action = input;
|
|
12
|
+
return action.version === 1 && typeof action.createImageTab === "function" ? action : null;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
/** Keeps the thumbnail's appearance; with Author installed, a tap opens its feedback canvas. */
|
|
16
|
+
function ToolResultImage({ host, data, mimeType, accessibilityLabel = "Image", ...props }) {
|
|
17
|
+
const action = host.sessionId === null ? void 0 : host.slotData?.(authorImages)[0]?.data;
|
|
18
|
+
const image = /* @__PURE__ */ jsx(Image, {
|
|
19
|
+
...props,
|
|
20
|
+
source: { uri: `data:${mimeType};base64,${data}` },
|
|
21
|
+
accessibilityLabel
|
|
22
|
+
});
|
|
23
|
+
if (action === void 0) return image;
|
|
24
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
25
|
+
accessibilityRole: "button",
|
|
26
|
+
accessibilityLabel: `Open ${accessibilityLabel} in Author`,
|
|
27
|
+
accessibilityHint: "View full size and give feedback",
|
|
28
|
+
onPress: async () => {
|
|
29
|
+
try {
|
|
30
|
+
const tab = await action.createImageTab({
|
|
31
|
+
sessionId: host.sessionId,
|
|
32
|
+
data,
|
|
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
|
+
},
|
|
42
|
+
children: image
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ToolResultImage };
|
|
48
|
+
//# sourceMappingURL=ToolResultImage.mjs.map
|
|
@@ -0,0 +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","ToolResultImage","accessibilityLabel","props","undefined","slotData","image","uri","tab","openTransientTab","openTab","id","error","alert","Error","message","String"],"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/** 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 action = host.sessionId === null ? undefined : host.slotData?.(authorImages)[0]?.data;\n const image = (\n <Image {...props} source={{ uri: `data:${mimeType};base64,${data}` }} accessibilityLabel={accessibilityLabel} />\n );\n if (action === 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={async () => {\n try {\n const tab = await action.createImageTab({\n sessionId: host.sessionId!,\n data,\n mimeType,\n title: accessibilityLabel,\n });\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 {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,gBAAgB,EAC9BF,MACAb,MACAC,UACAe,qBAAqB,SACrB,GAAGC,SACoB;CACvB,MAAMR,SAASI,KAAKd,cAAc,OAAOmB,SAAYL,KAAKM,WAAWhB,YAAY,CAAC,CAAC,EAAE,EAAEH;CACvF,MAAMoB,QACJ,oBAAC,OAAD;EAAO,GAAIH;EAAO,QAAQ,EAAEI,KAAK,QAAQpB,SAAQ,UAAWD,OAAO;EAAuBgB;CAAmB;CAE/G,IAAIP,WAAWS,QAAW,OAAOE;CACjC,OACE,oBAAC,WAAD;EACE,mBAAkB;EAClB,oBAAoB,QAAQJ,mBAAkB;EAC9C,mBAAkB;EAClB,SAAS,YAAY;GACnB,IAAI;IACF,MAAMM,MAAM,MAAMb,OAAOL,eAAe;KACtCL,WAAWc,KAAKd;KAChBC;KACAC;KACAC,OAAOc;IACT,CAAC;IACDH,KAAKU,iBAAiBD,GAAG;IACzBT,KAAKW,QAAQF,IAAIG,EAAE;GACrB,SAASC,OAAO;IACd9B,MAAM+B,MAAM,4BAA4BD,iBAAiBE,QAAQF,MAAMG,UAAUC,OAAOJ,KAAK,CAAC;GAChG;EACF;YAECN;CACQ;AAEf"}
|
|
@@ -18,6 +18,10 @@ export declare const ICON_GLYPHS: {
|
|
|
18
18
|
readonly sf: "chevron.right";
|
|
19
19
|
readonly material: "chevron-right";
|
|
20
20
|
};
|
|
21
|
+
readonly ChevronUp: {
|
|
22
|
+
readonly sf: "chevron.up";
|
|
23
|
+
readonly material: "expand-less";
|
|
24
|
+
};
|
|
21
25
|
readonly Alert: {
|
|
22
26
|
readonly sf: "exclamationmark.circle";
|
|
23
27
|
readonly material: "error-outline";
|
|
@@ -34,6 +38,10 @@ export declare const ICON_GLYPHS: {
|
|
|
34
38
|
readonly sf: "ellipsis";
|
|
35
39
|
readonly material: "more-vert";
|
|
36
40
|
};
|
|
41
|
+
readonly Menu: {
|
|
42
|
+
readonly sf: "line.3.horizontal";
|
|
43
|
+
readonly material: "menu";
|
|
44
|
+
};
|
|
37
45
|
readonly Edit: {
|
|
38
46
|
readonly sf: "pencil";
|
|
39
47
|
readonly material: "edit";
|
|
@@ -62,14 +70,38 @@ export declare const ICON_GLYPHS: {
|
|
|
62
70
|
readonly sf: "xmark";
|
|
63
71
|
readonly material: "close";
|
|
64
72
|
};
|
|
73
|
+
readonly File: {
|
|
74
|
+
readonly sf: "doc";
|
|
75
|
+
readonly material: "insert-drive-file";
|
|
76
|
+
};
|
|
77
|
+
readonly Search: {
|
|
78
|
+
readonly sf: "magnifyingglass";
|
|
79
|
+
readonly material: "search";
|
|
80
|
+
};
|
|
81
|
+
readonly Image: {
|
|
82
|
+
readonly sf: "photo";
|
|
83
|
+
readonly material: "image";
|
|
84
|
+
};
|
|
85
|
+
readonly Sliders: {
|
|
86
|
+
readonly sf: "slider.horizontal.3";
|
|
87
|
+
readonly material: "tune";
|
|
88
|
+
};
|
|
65
89
|
readonly Folder: {
|
|
66
90
|
readonly sf: "folder";
|
|
67
91
|
readonly material: "folder";
|
|
68
92
|
};
|
|
93
|
+
readonly Globe: {
|
|
94
|
+
readonly sf: "globe";
|
|
95
|
+
readonly material: "public";
|
|
96
|
+
};
|
|
69
97
|
readonly Branch: {
|
|
70
98
|
readonly sf: "arrow.triangle.branch";
|
|
71
99
|
readonly material: "call-split";
|
|
72
100
|
};
|
|
101
|
+
readonly Fork: {
|
|
102
|
+
readonly sf: "arrow.triangle.branch";
|
|
103
|
+
readonly material: "fork-right";
|
|
104
|
+
};
|
|
73
105
|
readonly Home: {
|
|
74
106
|
readonly sf: "house";
|
|
75
107
|
readonly material: "home";
|
|
@@ -86,6 +118,10 @@ export declare const ICON_GLYPHS: {
|
|
|
86
118
|
readonly sf: "plus";
|
|
87
119
|
readonly material: "add";
|
|
88
120
|
};
|
|
121
|
+
readonly User: {
|
|
122
|
+
readonly sf: "person";
|
|
123
|
+
readonly material: "person-outline";
|
|
124
|
+
};
|
|
89
125
|
readonly Users: {
|
|
90
126
|
readonly sf: "person.2";
|
|
91
127
|
readonly material: "group";
|
|
@@ -114,6 +150,30 @@ export declare const ICON_GLYPHS: {
|
|
|
114
150
|
readonly sf: "lock";
|
|
115
151
|
readonly material: "lock-outline";
|
|
116
152
|
};
|
|
153
|
+
readonly Shield: {
|
|
154
|
+
readonly sf: "checkmark.shield";
|
|
155
|
+
readonly material: "verified-user";
|
|
156
|
+
};
|
|
157
|
+
readonly Download: {
|
|
158
|
+
readonly sf: "square.and.arrow.down";
|
|
159
|
+
readonly material: "file-download";
|
|
160
|
+
};
|
|
161
|
+
readonly Mic: {
|
|
162
|
+
readonly sf: "mic";
|
|
163
|
+
readonly material: "mic";
|
|
164
|
+
};
|
|
165
|
+
readonly Monitor: {
|
|
166
|
+
readonly sf: "laptopcomputer";
|
|
167
|
+
readonly material: "laptop";
|
|
168
|
+
};
|
|
169
|
+
readonly AudioLines: {
|
|
170
|
+
readonly sf: "waveform";
|
|
171
|
+
readonly material: "graphic-eq";
|
|
172
|
+
};
|
|
173
|
+
readonly Stop: {
|
|
174
|
+
readonly sf: "stop.fill";
|
|
175
|
+
readonly material: "stop";
|
|
176
|
+
};
|
|
117
177
|
};
|
|
118
178
|
export type IconName = keyof typeof ICON_GLYPHS;
|
|
119
179
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconGlyphs.d.mts","names":[],"sources":["../../src/icons/iconGlyphs.ts"],"mappings":";;;;;;;qBAMa
|
|
1
|
+
{"version":3,"file":"iconGlyphs.d.mts","names":[],"sources":["../../src/icons/iconGlyphs.ts"],"mappings":";;;;;;;qBAMa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+CD,wBAAwB"}
|
|
@@ -18,6 +18,10 @@ const ICON_GLYPHS = {
|
|
|
18
18
|
sf: "chevron.right",
|
|
19
19
|
material: "chevron-right"
|
|
20
20
|
},
|
|
21
|
+
ChevronUp: {
|
|
22
|
+
sf: "chevron.up",
|
|
23
|
+
material: "expand-less"
|
|
24
|
+
},
|
|
21
25
|
Alert: {
|
|
22
26
|
sf: "exclamationmark.circle",
|
|
23
27
|
material: "error-outline"
|
|
@@ -34,6 +38,10 @@ const ICON_GLYPHS = {
|
|
|
34
38
|
sf: "ellipsis",
|
|
35
39
|
material: "more-vert"
|
|
36
40
|
},
|
|
41
|
+
Menu: {
|
|
42
|
+
sf: "line.3.horizontal",
|
|
43
|
+
material: "menu"
|
|
44
|
+
},
|
|
37
45
|
Edit: {
|
|
38
46
|
sf: "pencil",
|
|
39
47
|
material: "edit"
|
|
@@ -62,14 +70,38 @@ const ICON_GLYPHS = {
|
|
|
62
70
|
sf: "xmark",
|
|
63
71
|
material: "close"
|
|
64
72
|
},
|
|
73
|
+
File: {
|
|
74
|
+
sf: "doc",
|
|
75
|
+
material: "insert-drive-file"
|
|
76
|
+
},
|
|
77
|
+
Search: {
|
|
78
|
+
sf: "magnifyingglass",
|
|
79
|
+
material: "search"
|
|
80
|
+
},
|
|
81
|
+
Image: {
|
|
82
|
+
sf: "photo",
|
|
83
|
+
material: "image"
|
|
84
|
+
},
|
|
85
|
+
Sliders: {
|
|
86
|
+
sf: "slider.horizontal.3",
|
|
87
|
+
material: "tune"
|
|
88
|
+
},
|
|
65
89
|
Folder: {
|
|
66
90
|
sf: "folder",
|
|
67
91
|
material: "folder"
|
|
68
92
|
},
|
|
93
|
+
Globe: {
|
|
94
|
+
sf: "globe",
|
|
95
|
+
material: "public"
|
|
96
|
+
},
|
|
69
97
|
Branch: {
|
|
70
98
|
sf: "arrow.triangle.branch",
|
|
71
99
|
material: "call-split"
|
|
72
100
|
},
|
|
101
|
+
Fork: {
|
|
102
|
+
sf: "arrow.triangle.branch",
|
|
103
|
+
material: "fork-right"
|
|
104
|
+
},
|
|
73
105
|
Home: {
|
|
74
106
|
sf: "house",
|
|
75
107
|
material: "home"
|
|
@@ -86,6 +118,10 @@ const ICON_GLYPHS = {
|
|
|
86
118
|
sf: "plus",
|
|
87
119
|
material: "add"
|
|
88
120
|
},
|
|
121
|
+
User: {
|
|
122
|
+
sf: "person",
|
|
123
|
+
material: "person-outline"
|
|
124
|
+
},
|
|
89
125
|
Users: {
|
|
90
126
|
sf: "person.2",
|
|
91
127
|
material: "group"
|
|
@@ -113,6 +149,30 @@ const ICON_GLYPHS = {
|
|
|
113
149
|
Lock: {
|
|
114
150
|
sf: "lock",
|
|
115
151
|
material: "lock-outline"
|
|
152
|
+
},
|
|
153
|
+
Shield: {
|
|
154
|
+
sf: "checkmark.shield",
|
|
155
|
+
material: "verified-user"
|
|
156
|
+
},
|
|
157
|
+
Download: {
|
|
158
|
+
sf: "square.and.arrow.down",
|
|
159
|
+
material: "file-download"
|
|
160
|
+
},
|
|
161
|
+
Mic: {
|
|
162
|
+
sf: "mic",
|
|
163
|
+
material: "mic"
|
|
164
|
+
},
|
|
165
|
+
Monitor: {
|
|
166
|
+
sf: "laptopcomputer",
|
|
167
|
+
material: "laptop"
|
|
168
|
+
},
|
|
169
|
+
AudioLines: {
|
|
170
|
+
sf: "waveform",
|
|
171
|
+
material: "graphic-eq"
|
|
172
|
+
},
|
|
173
|
+
Stop: {
|
|
174
|
+
sf: "stop.fill",
|
|
175
|
+
material: "stop"
|
|
116
176
|
}
|
|
117
177
|
};
|
|
118
178
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconGlyphs.mjs","names":[],"sources":["../../src/icons/iconGlyphs.ts"],"sourcesContent":["/**\n * The curated native icon set: the same names the web library re-exports from\n * lucide, each drawn with the platform's own family. iOS gets an SF Symbol,\n * Android and web get a Material Icons glyph. Kept free of React Native so a\n * unit test can check every glyph against the installed glyph map.\n */\nexport const ICON_GLYPHS = {\n Check: { sf: 'checkmark', material: 'check' },\n ChevronDown: { sf: 'chevron.down', material: 'expand-more' },\n ChevronRight: { sf: 'chevron.right', material: 'chevron-right' },\n Alert: { sf: 'exclamationmark.circle', material: 'error-outline' },\n Copy: { sf: 'doc.on.doc', material: 'content-copy' },\n Message: { sf: 'message', material: 'chat-bubble-outline' },\n // Each platform's own overflow mark: a horizontal ellipsis on iOS, vertical dots on Android.\n Kebab: { sf: 'ellipsis', material: 'more-vert' },\n Edit: { sf: 'pencil', material: 'edit' },\n Gear: { sf: 'gearshape', material: 'settings' },\n Send: { sf: 'paperplane', material: 'send' },\n Task: { sf: 'checkmark.square', material: 'check-box' },\n Trash: { sf: 'trash', material: 'delete-outline' },\n Wrench: { sf: 'wrench.and.screwdriver', material: 'build' },\n Close: { sf: 'xmark', material: 'close' },\n Folder: { sf: 'folder', material: 'folder' },\n Branch: { sf: 'arrow.triangle.branch', material: 'call-split' },\n Home: { sf: 'house', material: 'home' },\n Activity: { sf: 'waveform.path.ecg', material: 'monitor-heart' },\n ArrowRight: { sf: 'arrow.right', material: 'arrow-forward' },\n Plus: { sf: 'plus', material: 'add' },\n Users: { sf: 'person.2', material: 'group' },\n PlayCircle: { sf: 'play.circle', material: 'play-circle-outline' },\n Workflow: { sf: 'flowchart', material: 'account-tree' },\n Palette: { sf: 'paintpalette', material: 'palette' },\n Lightbulb: { sf: 'lightbulb', material: 'lightbulb-outline' },\n Sparkles: { sf: 'sparkles', material: 'auto-awesome' },\n Lock: { sf: 'lock', material: 'lock-outline' },\n} as const;\n\nexport type IconName = keyof typeof ICON_GLYPHS;\n"],"mappings":";;;;;;;AAMA,MAAa,cAAc;CACzB,OAAO;EAAE,IAAI;EAAa,UAAU;CAAQ;CAC5C,aAAa;EAAE,IAAI;EAAgB,UAAU;CAAc;CAC3D,cAAc;EAAE,IAAI;EAAiB,UAAU;CAAgB;CAC/D,OAAO;EAAE,IAAI;EAA0B,UAAU;CAAgB;CACjE,MAAM;EAAE,IAAI;EAAc,UAAU;CAAe;CACnD,SAAS;EAAE,IAAI;EAAW,UAAU;CAAsB;CAE1D,OAAO;EAAE,IAAI;EAAY,UAAU;CAAY;CAC/C,MAAM;EAAE,IAAI;EAAU,UAAU;CAAO;CACvC,MAAM;EAAE,IAAI;EAAa,UAAU;CAAW;CAC9C,MAAM;EAAE,IAAI;EAAc,UAAU;CAAO;CAC3C,MAAM;EAAE,IAAI;EAAoB,UAAU;CAAY;CACtD,OAAO;EAAE,IAAI;EAAS,UAAU;CAAiB;CACjD,QAAQ;EAAE,IAAI;EAA0B,UAAU;CAAQ;CAC1D,OAAO;EAAE,IAAI;EAAS,UAAU;CAAQ;CACxC,QAAQ;EAAE,IAAI;EAAU,UAAU;CAAS;CAC3C,QAAQ;EAAE,IAAI;EAAyB,UAAU;CAAa;
|
|
1
|
+
{"version":3,"file":"iconGlyphs.mjs","names":[],"sources":["../../src/icons/iconGlyphs.ts"],"sourcesContent":["/**\n * The curated native icon set: the same names the web library re-exports from\n * lucide, each drawn with the platform's own family. iOS gets an SF Symbol,\n * Android and web get a Material Icons glyph. Kept free of React Native so a\n * unit test can check every glyph against the installed glyph map.\n */\nexport const ICON_GLYPHS = {\n Check: { sf: 'checkmark', material: 'check' },\n ChevronDown: { sf: 'chevron.down', material: 'expand-more' },\n ChevronRight: { sf: 'chevron.right', material: 'chevron-right' },\n ChevronUp: { sf: 'chevron.up', material: 'expand-less' },\n Alert: { sf: 'exclamationmark.circle', material: 'error-outline' },\n Copy: { sf: 'doc.on.doc', material: 'content-copy' },\n Message: { sf: 'message', material: 'chat-bubble-outline' },\n // Each platform's own overflow mark: a horizontal ellipsis on iOS, vertical dots on Android.\n Kebab: { sf: 'ellipsis', material: 'more-vert' },\n Menu: { sf: 'line.3.horizontal', material: 'menu' },\n Edit: { sf: 'pencil', material: 'edit' },\n Gear: { sf: 'gearshape', material: 'settings' },\n Send: { sf: 'paperplane', material: 'send' },\n Task: { sf: 'checkmark.square', material: 'check-box' },\n Trash: { sf: 'trash', material: 'delete-outline' },\n Wrench: { sf: 'wrench.and.screwdriver', material: 'build' },\n Close: { sf: 'xmark', material: 'close' },\n File: { sf: 'doc', material: 'insert-drive-file' },\n Search: { sf: 'magnifyingglass', material: 'search' },\n Image: { sf: 'photo', material: 'image' },\n Sliders: { sf: 'slider.horizontal.3', material: 'tune' },\n Folder: { sf: 'folder', material: 'folder' },\n Globe: { sf: 'globe', material: 'public' },\n Branch: { sf: 'arrow.triangle.branch', material: 'call-split' },\n // ponytail: SF Symbols has no fork distinct from a branch, so iOS draws Fork as Branch. Swap in a custom symbol if the two must differ there.\n Fork: { sf: 'arrow.triangle.branch', material: 'fork-right' },\n Home: { sf: 'house', material: 'home' },\n Activity: { sf: 'waveform.path.ecg', material: 'monitor-heart' },\n ArrowRight: { sf: 'arrow.right', material: 'arrow-forward' },\n Plus: { sf: 'plus', material: 'add' },\n User: { sf: 'person', material: 'person-outline' },\n Users: { sf: 'person.2', material: 'group' },\n PlayCircle: { sf: 'play.circle', material: 'play-circle-outline' },\n Workflow: { sf: 'flowchart', material: 'account-tree' },\n Palette: { sf: 'paintpalette', material: 'palette' },\n Lightbulb: { sf: 'lightbulb', material: 'lightbulb-outline' },\n Sparkles: { sf: 'sparkles', material: 'auto-awesome' },\n Lock: { sf: 'lock', material: 'lock-outline' },\n Shield: { sf: 'checkmark.shield', material: 'verified-user' },\n Download: { sf: 'square.and.arrow.down', material: 'file-download' },\n Mic: { sf: 'mic', material: 'mic' },\n Monitor: { sf: 'laptopcomputer', material: 'laptop' },\n AudioLines: { sf: 'waveform', material: 'graphic-eq' },\n Stop: { sf: 'stop.fill', material: 'stop' },\n} as const;\n\nexport type IconName = keyof typeof ICON_GLYPHS;\n"],"mappings":";;;;;;;AAMA,MAAa,cAAc;CACzB,OAAO;EAAE,IAAI;EAAa,UAAU;CAAQ;CAC5C,aAAa;EAAE,IAAI;EAAgB,UAAU;CAAc;CAC3D,cAAc;EAAE,IAAI;EAAiB,UAAU;CAAgB;CAC/D,WAAW;EAAE,IAAI;EAAc,UAAU;CAAc;CACvD,OAAO;EAAE,IAAI;EAA0B,UAAU;CAAgB;CACjE,MAAM;EAAE,IAAI;EAAc,UAAU;CAAe;CAC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U;EAAE,IAAI;EAAY,UAAU;CAAe;CACrD,MAAM;EAAE,IAAI;EAAQ,UAAU;CAAe;CAC7C,QAAQ;EAAE,IAAI;EAAoB,UAAU;CAAgB;CAC5D,UAAU;EAAE,IAAI;EAAyB,UAAU;CAAgB;CACnE,KAAK;EAAE,IAAI;EAAO,UAAU;CAAM;CAClC,SAAS;EAAE,IAAI;EAAkB,UAAU;CAAS;CACpD,YAAY;EAAE,IAAI;EAAY,UAAU;CAAa;CACrD,MAAM;EAAE,IAAI;EAAa,UAAU;CAAO;AAC5C"}
|
package/dist/icons/icons.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NativeColorToken } from "@agimon-ai/po-web-components/nativeTheme";
|
|
2
1
|
import { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import { NativeColorToken } from "@agimon-ai/po-web-components/nativeTheme";
|
|
3
3
|
//#region src/icons/icons.d.ts
|
|
4
4
|
export interface IconProps {
|
|
5
5
|
/** Edge length in points. */
|
|
@@ -22,6 +22,10 @@ export declare const ChevronRightIcon: {
|
|
|
22
22
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
|
+
export declare const ChevronUpIcon: {
|
|
26
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
25
29
|
export declare const AlertIcon: {
|
|
26
30
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
27
31
|
displayName: string;
|
|
@@ -38,6 +42,10 @@ export declare const KebabIcon: {
|
|
|
38
42
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
39
43
|
displayName: string;
|
|
40
44
|
};
|
|
45
|
+
export declare const MenuIcon: {
|
|
46
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
41
49
|
export declare const EditIcon: {
|
|
42
50
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
43
51
|
displayName: string;
|
|
@@ -70,10 +78,18 @@ export declare const FolderIcon: {
|
|
|
70
78
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
71
79
|
displayName: string;
|
|
72
80
|
};
|
|
81
|
+
export declare const GlobeIcon: {
|
|
82
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
73
85
|
export declare const BranchIcon: {
|
|
74
86
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
75
87
|
displayName: string;
|
|
76
88
|
};
|
|
89
|
+
export declare const ForkIcon: {
|
|
90
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
77
93
|
export declare const HomeIcon: {
|
|
78
94
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
79
95
|
displayName: string;
|
|
@@ -90,6 +106,10 @@ export declare const PlusIcon: {
|
|
|
90
106
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
91
107
|
displayName: string;
|
|
92
108
|
};
|
|
109
|
+
export declare const UserIcon: {
|
|
110
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
111
|
+
displayName: string;
|
|
112
|
+
};
|
|
93
113
|
export declare const UsersIcon: {
|
|
94
114
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
95
115
|
displayName: string;
|
|
@@ -118,5 +138,45 @@ export declare const LockIcon: {
|
|
|
118
138
|
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
119
139
|
displayName: string;
|
|
120
140
|
};
|
|
141
|
+
export declare const ShieldIcon: {
|
|
142
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
143
|
+
displayName: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const FileIcon: {
|
|
146
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
147
|
+
displayName: string;
|
|
148
|
+
};
|
|
149
|
+
export declare const SearchIcon: {
|
|
150
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
151
|
+
displayName: string;
|
|
152
|
+
};
|
|
153
|
+
export declare const ImageIcon: {
|
|
154
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
155
|
+
displayName: string;
|
|
156
|
+
};
|
|
157
|
+
export declare const SlidersIcon: {
|
|
158
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
159
|
+
displayName: string;
|
|
160
|
+
};
|
|
161
|
+
export declare const DownloadIcon: {
|
|
162
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
163
|
+
displayName: string;
|
|
164
|
+
};
|
|
165
|
+
export declare const MicIcon: {
|
|
166
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
167
|
+
displayName: string;
|
|
168
|
+
};
|
|
169
|
+
export declare const MonitorIcon: {
|
|
170
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
171
|
+
displayName: string;
|
|
172
|
+
};
|
|
173
|
+
export declare const AudioLinesIcon: {
|
|
174
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
175
|
+
displayName: string;
|
|
176
|
+
};
|
|
177
|
+
export declare const StopIcon: {
|
|
178
|
+
({ size, color, accessibilityLabel, style }: IconProps): import("react").JSX.Element;
|
|
179
|
+
displayName: string;
|
|
180
|
+
};
|
|
121
181
|
//#endregion
|
|
122
182
|
//# sourceMappingURL=icons.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.mts","names":[],"sources":["../../src/icons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