@pollinations/ui 0.1.0-alpha.23 → 0.1.0-alpha.25
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/app-user-menu/sdk.d.ts +1 -1
- package/dist/app-user-menu/sdk.js +8 -5
- package/dist/app-user-menu/sdk.js.map +1 -1
- package/dist/auth/index.js +4 -4
- package/dist/{chunk-SJK5B7LK.js → chunk-2IIX44MN.js} +2 -2
- package/dist/{chunk-6JHDHH4B.js → chunk-7NTX3FPZ.js} +13 -2
- package/dist/{chunk-6JHDHH4B.js.map → chunk-7NTX3FPZ.js.map} +1 -1
- package/dist/{chunk-MLSAAT6D.js → chunk-FRHLA7LM.js} +2 -2
- package/dist/{chunk-5SPNBGNW.js → chunk-LKOYOXBG.js} +2 -2
- package/dist/{chunk-COG4IB62.js → chunk-LRXUPEQM.js} +2 -2
- package/dist/{chunk-E4CIH2Z7.js → chunk-PBNBZKEZ.js} +43 -35
- package/dist/chunk-PBNBZKEZ.js.map +1 -0
- package/dist/connect.js +7 -7
- package/dist/connect.js.map +1 -1
- package/dist/gen/index.js +1 -1
- package/dist/{index-cN1wvU_m.d.ts → index-efnABLqH.d.ts} +3 -1
- package/dist/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.d.ts +41 -6
- package/dist/index.js +233 -116
- package/dist/index.js.map +1 -1
- package/dist/markdown.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/wallet/index.d.ts +4 -0
- package/dist/wallet/index.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-E4CIH2Z7.js.map +0 -1
- /package/dist/{chunk-SJK5B7LK.js.map → chunk-2IIX44MN.js.map} +0 -0
- /package/dist/{chunk-MLSAAT6D.js.map → chunk-FRHLA7LM.js.map} +0 -0
- /package/dist/{chunk-5SPNBGNW.js.map → chunk-LKOYOXBG.js.map} +0 -0
- /package/dist/{chunk-COG4IB62.js.map → chunk-LRXUPEQM.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { S as ScrollAreaProps, D as DialogProps } from './Dialog-D3Nqt8cE.js';
|
|
|
5
5
|
export { a as Dialog, b as DialogBody, c as DialogBodyProps, d as DialogDescription, e as DialogFooter, f as DialogFooterProps, g as DialogHeader, h as DialogHeaderProps, i as DialogTitle, j as ScrollArea } from './Dialog-D3Nqt8cE.js';
|
|
6
6
|
import { B as ButtonProps, a as ButtonAppearance } from './Button-BGqClaBr.js';
|
|
7
7
|
export { b as Button } from './Button-BGqClaBr.js';
|
|
8
|
-
import { D as DiscordIcon, G as GitHubIcon } from './index-
|
|
9
|
-
export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitPullRequestIcon, x as GlobeIcon, y as GoogleIcon, z as GraduationCapIcon, I as ImageIcon, F as InstagramIcon, K as KeyIcon, L as LinkedInIcon, H as LockIcon, J as LogInIcon, M as LogOutIcon, N as MailIcon, O as McpIcon, P as MegaphoneIcon, Q as MenuIcon, R as MicIcon, S as MoonIcon, T as NewspaperIcon, U as PauseIcon, V as PencilIcon, W as PlayIcon, X as PlusIcon, Y as PowerIcon, Z as
|
|
8
|
+
import { D as DiscordIcon, G as GitHubIcon } from './index-efnABLqH.js';
|
|
9
|
+
export { A as AccountIcon, a as AppIcon, b as ArrowLeftIcon, c as ArrowRightIcon, d as AudioIcon, B as BeakerIcon, e as BookIcon, f as BotIcon, g as BugIcon, C as CardIcon, h as ChatIcon, i as CheckIcon, j as ClipboardIcon, k as ClockIcon, l as CloudUploadIcon, m as CodeIcon, n as CubeIcon, o as DatabaseIcon, p as DownloadIcon, E as EarningsIcon, q as ExpandIcon, r as ExternalLinkIcon, s as EyeIcon, t as EyeOffIcon, u as GenApiIcon, v as GitBranchIcon, w as GitPullRequestIcon, x as GlobeIcon, y as GoogleIcon, z as GraduationCapIcon, I as ImageIcon, F as InstagramIcon, K as KeyIcon, L as LinkedInIcon, H as LockIcon, J as LogInIcon, M as LogOutIcon, N as MailIcon, O as McpIcon, P as MegaphoneIcon, Q as MenuIcon, R as MicIcon, S as MoonIcon, T as NewspaperIcon, U as PauseIcon, V as PencilIcon, W as PlayIcon, X as PlusIcon, Y as PowerIcon, Z as PulseIcon, _ as ReasoningIcon, $ as ReceiptIcon, a0 as RefreshIcon, a1 as RobotIcon, a2 as RocketIcon, a3 as SearchIcon, a4 as ShieldCheckIcon, a5 as SignOutIcon, a6 as SparkleIcon, a7 as SparklesIcon, a8 as SpeakerIcon, a9 as SproutIcon, aa as StarIcon, ab as SunIcon, ac as TargetIcon, ad as TerminalIcon, ae as TokensIcon, af as ToolIcon, ag as TrashIcon, ah as TrendUpIcon, ai as UsageIcon, aj as VideoIcon, ak as WalletIcon, al as WarningIcon, am as XIcon, an as XSocialIcon } from './index-efnABLqH.js';
|
|
10
10
|
export { C as Chip } from './Chip-v-ADv6cz.js';
|
|
11
11
|
export { Field } from '@ark-ui/react/field';
|
|
12
12
|
import { I as IconProps } from './types-CCy9JNu9.js';
|
|
@@ -468,6 +468,23 @@ type NavItemProps<T extends React.ElementType = "button"> = PropsWithChildren<Ba
|
|
|
468
468
|
*/
|
|
469
469
|
declare function NavItem<T extends React.ElementType = "button">({ as, active, icon: Icon, className, children, ...rest }: NavItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
470
470
|
|
|
471
|
+
/** The one outage message, wherever account data can't load. */
|
|
472
|
+
declare const OUTAGE_MESSAGE = "Pollinations is having a temporary outage. Some services are down for now. Your account, keys and pollen are safe, and nothing is lost.";
|
|
473
|
+
/** False while the browser reports no connection: then the failure is not ours. */
|
|
474
|
+
declare function useOnline(): boolean;
|
|
475
|
+
type OutageNoticeProps = {
|
|
476
|
+
/** The caller retries on its own, so the notice says so. */
|
|
477
|
+
retrying?: boolean;
|
|
478
|
+
/** Status page link; hidden without one. */
|
|
479
|
+
statusUrl?: string;
|
|
480
|
+
className?: string;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Stands in for account data while Pollinations is down, or the visitor is
|
|
484
|
+
* offline. With several on a page, only the topmost gives the full message.
|
|
485
|
+
*/
|
|
486
|
+
declare const OutageNotice: FC<OutageNoticeProps>;
|
|
487
|
+
|
|
471
488
|
type PeriodGranularity = "day" | "week" | "month";
|
|
472
489
|
type PeriodSelection = {
|
|
473
490
|
granularity: PeriodGranularity;
|
|
@@ -756,6 +773,26 @@ declare function LoadingStatus({ children }: {
|
|
|
756
773
|
children: ReactNode;
|
|
757
774
|
}): react_jsx_runtime.JSX.Element;
|
|
758
775
|
|
|
776
|
+
type SegmentedControlOption<T extends string> = {
|
|
777
|
+
value: T;
|
|
778
|
+
label: ReactNode;
|
|
779
|
+
};
|
|
780
|
+
type SegmentedControlProps<T extends string> = {
|
|
781
|
+
options: readonly SegmentedControlOption<T>[];
|
|
782
|
+
value: T;
|
|
783
|
+
onChange: (value: T) => void;
|
|
784
|
+
/** Names the group for assistive tech; nothing is rendered visibly. */
|
|
785
|
+
ariaLabel: string;
|
|
786
|
+
className?: string;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* One pill track holding mutually exclusive values, like the light/dark
|
|
790
|
+
* toggle: the chosen segment is filled, the others sit on the track. A value
|
|
791
|
+
* selector, so the choice shows by fill only — no border or ring, apart from
|
|
792
|
+
* the keyboard focus ring. Same height as a small TabButton.
|
|
793
|
+
*/
|
|
794
|
+
declare function SegmentedControl<T extends string>({ options, value, onChange, ariaLabel, className, }: SegmentedControlProps<T>): react_jsx_runtime.JSX.Element;
|
|
795
|
+
|
|
759
796
|
declare const shapeClasses: {
|
|
760
797
|
readonly card: "polli:rounded-card";
|
|
761
798
|
readonly text: "polli:rounded-md";
|
|
@@ -888,9 +925,7 @@ type TableProps = ComponentPropsWithoutRef<"table">;
|
|
|
888
925
|
declare const Table: FC<TableProps>;
|
|
889
926
|
type TableHeadProps = ComponentPropsWithoutRef<"thead">;
|
|
890
927
|
declare const TableHead: FC<TableHeadProps>;
|
|
891
|
-
type TableBodyProps = ComponentPropsWithoutRef<"tbody"
|
|
892
|
-
divider?: "themed" | "neutral";
|
|
893
|
-
};
|
|
928
|
+
type TableBodyProps = ComponentPropsWithoutRef<"tbody">;
|
|
894
929
|
declare const TableBody: FC<TableBodyProps>;
|
|
895
930
|
type TableRowProps = ComponentPropsWithoutRef<"tr"> & {
|
|
896
931
|
intent?: RowIntent;
|
|
@@ -971,4 +1006,4 @@ type TextOwnProps<T extends ElementType> = PropsWithChildren<{
|
|
|
971
1006
|
type TextProps<T extends ElementType = "p"> = TextOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof TextOwnProps<T>>;
|
|
972
1007
|
declare function Text<T extends ElementType = "p">({ as, size, tone, weight, className, children, ...rest }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
973
1008
|
|
|
974
|
-
export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useScrollLock };
|
|
1009
|
+
export { AccountIdentity, AccountIdentityLink, type AccountIdentityLinkProps, type AccountIdentityProps, AccountMenu, type AccountMenuProps, Alert, type AlertProps, AppBrand, type AppBrandProps, AppHeader, type AppHeaderProps, BrandMark, type BrandMarkProps, ButtonAppearance, ButtonGroup, type ButtonGroupProps, ButtonProps, Callout, type CalloutProps, ChatConversation, ChatConversationContent, type ChatConversationContentProps, type ChatConversationProps, ChatMessage, ChatMessageActions, type ChatMessageActionsProps, ChatMessageContent, type ChatMessageContentProps, ChatMessageHeader, type ChatMessageHeaderProps, type ChatMessageProps, type ChatMessageRole, ChatPromptInput, ChatPromptInputFooter, type ChatPromptInputFooterProps, type ChatPromptInputProps, ChatPromptTextarea, ChevronIcon, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, ColorModeToggle, ConfirmationDialog, type ConfirmationDialogProps, ContentHeader, type ContentHeaderProps, CopyButton, type CopyButtonProps, CopyField, type CopyFieldProps, DialogProps, DiscordIcon, Drawer, type DrawerProps, Dropdown, DropdownItem, type DropdownItemProps, type DropdownProps, EditableCombobox, type EditableComboboxProps, EditableComboboxToken, type EditableComboboxTokenProps, EmptyState, type EmptyStateProps, ExternalLinkButton, type ExternalLinkButtonProps, Eyebrow, type EyebrowProps, FieldStack, type FieldStackProps, FileUpload, type FileUploadProps, GitHubIcon, Heading, type HeadingProps, IconButton, type IconButtonIntent, type IconButtonProps, type IconButtonVariant, IconProps, IconTile, type IconTileProps, InfoTip, InlineLink, type InlineLinkProps, Input, type InputProps, KeyChip, type KeyChipProps, LinkCard, type LinkCardProps, LiveDot, LoadingStatus, MediaPlaceholder, type MediaPlaceholderProps, MultiSelect, type MultiSelectProps, NavItem, type NavItemProps, OUTAGE_MESSAGE, OutageNotice, type OutageNoticeProps, type PeriodGranularity, PeriodPicker, type PeriodPickerProps, type PeriodSelection, ScrollAreaProps, Section, type SectionProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Skeleton, type SkeletonProps, Slider, type SliderProps, SocialCount, type SocialCountProps, StableLabel, type StableLabelProps, StatCard, type StatCardProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, type SwitchStatus, TabButton, type TabButtonProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableDisclosureButton, type TableDisclosureButtonProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Text, type TextProps, Textarea, type TextareaProps, ToolCallDetails, type ToolCallDetailsProps, type ToolCallStatus, Tooltip, cn, currentPeriod, getPeriodBucketKeys, isPeriodSelectable, periodBucketKeyToDate, periodFromDate, periodToWindow, setColorMode, useColorMode, useOnline, useScrollLock };
|