@webority/mobile-ui 0.171.3 → 0.172.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/canvas-kit/kit.js +10 -10
  2. package/dist/canvas-kit/manifest.json +50 -1
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  5. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  6. package/lib/commonjs/components/OutboxEntryList/OutboxEntryList.js +1 -0
  7. package/lib/commonjs/components/OutboxEntryList/index.js +1 -0
  8. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  9. package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
  10. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  11. package/lib/commonjs/components/index.js +1 -1
  12. package/lib/commonjs/index.js +1 -1
  13. package/lib/commonjs/navigation/tabs/AppTabNavigator.js +1 -0
  14. package/lib/commonjs/navigation/tabs/index.js +1 -0
  15. package/lib/commonjs/text/phone/index.g.js +1 -1
  16. package/lib/commonjs/text/phone/outboxEntryList.g.js +1 -0
  17. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  18. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  19. package/lib/module/components/OutboxEntryList/OutboxEntryList.js +1 -0
  20. package/lib/module/components/OutboxEntryList/index.js +1 -0
  21. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  22. package/lib/module/components/Swipeable/Swipeable.js +1 -1
  23. package/lib/module/components/Tabs/Tabs.js +1 -1
  24. package/lib/module/components/index.js +1 -1
  25. package/lib/module/index.js +1 -1
  26. package/lib/module/navigation/tabs/AppTabNavigator.js +1 -0
  27. package/lib/module/navigation/tabs/index.js +1 -0
  28. package/lib/module/text/phone/index.g.js +1 -1
  29. package/lib/module/text/phone/outboxEntryList.g.js +1 -0
  30. package/lib/text/en.json +9 -0
  31. package/lib/typescript/commonjs/components/OutboxEntryList/OutboxEntryList.d.ts +21 -0
  32. package/lib/typescript/commonjs/components/OutboxEntryList/index.d.ts +3 -0
  33. package/lib/typescript/commonjs/components/index.d.ts +2 -0
  34. package/lib/typescript/commonjs/index.d.ts +1 -1
  35. package/lib/typescript/commonjs/navigation/tabs/AppTabNavigator.d.ts +26 -0
  36. package/lib/typescript/commonjs/navigation/tabs/index.d.ts +3 -0
  37. package/lib/typescript/commonjs/text/phone/catalogue.g.d.ts +2 -0
  38. package/lib/typescript/commonjs/text/phone/index.g.d.ts +1 -0
  39. package/lib/typescript/commonjs/text/phone/outboxEntryList.g.d.ts +11 -0
  40. package/lib/typescript/module/components/OutboxEntryList/OutboxEntryList.d.ts +21 -0
  41. package/lib/typescript/module/components/OutboxEntryList/index.d.ts +3 -0
  42. package/lib/typescript/module/components/index.d.ts +2 -0
  43. package/lib/typescript/module/index.d.ts +1 -1
  44. package/lib/typescript/module/navigation/tabs/AppTabNavigator.d.ts +26 -0
  45. package/lib/typescript/module/navigation/tabs/index.d.ts +3 -0
  46. package/lib/typescript/module/text/phone/catalogue.g.d.ts +2 -0
  47. package/lib/typescript/module/text/phone/index.g.d.ts +1 -0
  48. package/lib/typescript/module/text/phone/outboxEntryList.g.d.ts +11 -0
  49. package/package.json +17 -7
@@ -0,0 +1,11 @@
1
+ export type OutboxEntryListText = {
2
+ readonly discard: string;
3
+ readonly discardText: string;
4
+ readonly discardTitle: string;
5
+ readonly failed: string;
6
+ readonly sendNow: string;
7
+ readonly sending: string;
8
+ readonly waiting: string;
9
+ };
10
+ export declare const OUTBOX_ENTRY_LIST_TEXT: OutboxEntryListText;
11
+ //# sourceMappingURL=outboxEntryList.g.d.ts.map
@@ -0,0 +1,21 @@
1
+ import type { OutboxEntry } from "@webority/mobile-core/outbox";
2
+ import type React from "react";
3
+ import { type OutboxEntryListText } from "../../text/index.js";
4
+ export interface OutboxEntryListProps {
5
+ /** The entries to draw, oldest first; at most the outbox's per-owner cap (50). */
6
+ entries: readonly OutboxEntry[];
7
+ /** A failed read or action, drawn above the rows. */
8
+ error?: {
9
+ message: string;
10
+ } | null | undefined;
11
+ /** Called when the person taps Send now on a row. */
12
+ onRetry: (id: string) => void;
13
+ /** Called after the person confirms the discard. */
14
+ onDiscard: (id: string) => void;
15
+ /** Replaces any built-in text; give only the keys you change. */
16
+ labels?: Partial<OutboxEntryListText> | undefined;
17
+ /** The root's id; row ids are `${testID}-${entry.id}`, `${testID}-retry-${entry.id}`, `${testID}-discard-${entry.id}`. Default "outbox-entry". */
18
+ testID?: string | undefined;
19
+ }
20
+ export declare const OutboxEntryList: React.FC<OutboxEntryListProps>;
21
+ //# sourceMappingURL=OutboxEntryList.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { OutboxEntryListProps } from "./OutboxEntryList.js";
2
+ export { OutboxEntryList } from "./OutboxEntryList.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -122,6 +122,8 @@ export type { OptionRenderState, OptionSheetProps, OptionSheetSection } from "./
122
122
  export { OptionSheet } from "./OptionSheet/index.js";
123
123
  export type { OTPInputProps, OTPInputRef, OTPInputSize, OTPResendRowProps } from "./OTPInput/index.js";
124
124
  export { OTPInput, OTPResendRow } from "./OTPInput/index.js";
125
+ export type { OutboxEntryListProps } from "./OutboxEntryList/index.js";
126
+ export { OutboxEntryList } from "./OutboxEntryList/index.js";
125
127
  export type { PagedListProps } from "./PagedList/index.js";
126
128
  export { PagedList } from "./PagedList/index.js";
127
129
  export type { PagedListFooterProps } from "./PagedListFooter/index.js";
@@ -1,6 +1,6 @@
1
1
  export { PHONE_CHROME_INSETS } from "./canvasKit/index.js";
2
2
  export type * from "./components/index.js";
3
- export { Accordion, AccordionGroup, ALL_CALLING_CODES, AmountSlider, AnimatePresence, AppBar, AppLockOverlay, AsyncBlock, AuthedImage, Autocomplete, Avatar, AvatarGroup, authedImageCacheStats, Badge, Banner, BarChart, BottomNavigation, BottomSheet, Box, Button, buttonLabelInk, Calendar, Card, Carousel, Checkbox, Chip, ChoiceGroup, Composer, Confetti, ConfirmHost, clearAuthedImageCache, confirm, DatePicker, DateRangePicker, DateSeparator, DEFAULT_CALLING_CODES, DecimalInput, Descriptions, Dialog, Divider, Drawer, defineStatusMap, EmptyState, ErrorBoundary, FilePicker, FileViewer, FilterChipRow, FloatingActionButton, FloatingActionButtonGroup, ForceUpdateDialog, FormField, formatE164, formatFileSize, getAuthedImageCacheLimit, IconBadge, IconButton, IdleTimeoutDialog, ImageGallery, InlineSelect, Input, KeyboardAwareScrollView, KeyboardToolbar, ListItem, ListSection, LoaderOverlay, loader, Markdown, Menu, MessageBubble, MessageList, MODAL_DISMISS_GRACE_MS, Modal, NonModalBottomSheet, NumberInput, OnboardingPager, OptionSheet, OTPInput, OTPResendRow, PagedList, PagedListFooter, PermissionPrompt, PhoneNumberInput, PickerTrigger, ProfileCompletion, ProfilePicker, ProgressBar, ProgressRing, Radio, RadioDot, RadioGroup, Rating, Repeater, RichTextEditor, Row, ScannerOverlay, Screen, SearchBar, SectionHeader, SegmentedControl, Select, SignaturePad, Skeleton, SkeletonCircle, SkeletonClockProvider, SkeletonContent, SkeletonList, SkeletonProvider, SkeletonSkip, SkeletonText, Slider, SliderField, SlideToConfirm, SortableList, Spacer, Sparkline, Spinner, SquircleImage, SquircleView, Stack, StatTile, StatusBadge, Stepper, Swipeable, Switch, setAuthedImageCacheLimit, Tabs, TagInput, Text, TextInkContext, Timeline, TimePicker, Toast, ToastHost, ToastProvider, Tooltip, Tour, TypingIndicator, toast, useBottomSheet, useErrorHandler, useRecentSearches, useTextInk, useToast, WheelPicker, withErrorBoundary, ZoomableImage, } from "./components/index.js";
3
+ export { Accordion, AccordionGroup, ALL_CALLING_CODES, AmountSlider, AnimatePresence, AppBar, AppLockOverlay, AsyncBlock, AuthedImage, Autocomplete, Avatar, AvatarGroup, authedImageCacheStats, Badge, Banner, BarChart, BottomNavigation, BottomSheet, Box, Button, buttonLabelInk, Calendar, Card, Carousel, Checkbox, Chip, ChoiceGroup, Composer, Confetti, ConfirmHost, clearAuthedImageCache, confirm, DatePicker, DateRangePicker, DateSeparator, DEFAULT_CALLING_CODES, DecimalInput, Descriptions, Dialog, Divider, Drawer, defineStatusMap, EmptyState, ErrorBoundary, FilePicker, FileViewer, FilterChipRow, FloatingActionButton, FloatingActionButtonGroup, ForceUpdateDialog, FormField, formatE164, formatFileSize, getAuthedImageCacheLimit, IconBadge, IconButton, IdleTimeoutDialog, ImageGallery, InlineSelect, Input, KeyboardAwareScrollView, KeyboardToolbar, ListItem, ListSection, LoaderOverlay, loader, Markdown, Menu, MessageBubble, MessageList, MODAL_DISMISS_GRACE_MS, Modal, NonModalBottomSheet, NumberInput, OnboardingPager, OptionSheet, OTPInput, OTPResendRow, OutboxEntryList, PagedList, PagedListFooter, PermissionPrompt, PhoneNumberInput, PickerTrigger, ProfileCompletion, ProfilePicker, ProgressBar, ProgressRing, Radio, RadioDot, RadioGroup, Rating, Repeater, RichTextEditor, Row, ScannerOverlay, Screen, SearchBar, SectionHeader, SegmentedControl, Select, SignaturePad, Skeleton, SkeletonCircle, SkeletonClockProvider, SkeletonContent, SkeletonList, SkeletonProvider, SkeletonSkip, SkeletonText, Slider, SliderField, SlideToConfirm, SortableList, Spacer, Sparkline, Spinner, SquircleImage, SquircleView, Stack, StatTile, StatusBadge, Stepper, Swipeable, Switch, setAuthedImageCacheLimit, Tabs, TagInput, Text, TextInkContext, Timeline, TimePicker, Toast, ToastHost, ToastProvider, Tooltip, Tour, TypingIndicator, toast, useBottomSheet, useErrorHandler, useRecentSearches, useTextInk, useToast, WheelPicker, withErrorBoundary, ZoomableImage, } from "./components/index.js";
4
4
  export type { AppIconColor, AppIconName, AppIconProps, AppIconSize, CuratedIconName, IconName, IconsaxShadowedName, IconVariant, SlotIcon, SlotIconRef, SlotIconState, SlotNode, } from "./components/AppIcon/index.js";
5
5
  export { AppIcon, ICONSAX_SUFFIX, isAppIconName } from "./components/AppIcon/index.js";
6
6
  export { BUTTON_TONES, BUTTON_VARIANTS, isButtonTone, isButtonVariant } from "./components/Button/index.js";
@@ -0,0 +1,26 @@
1
+ import { type BottomTabScreenProps } from "@react-navigation/bottom-tabs";
2
+ import type { ParamListBase } from "@react-navigation/native";
3
+ import type React from "react";
4
+ import { type ComponentType } from "react";
5
+ import type { AppIconName } from "../../components/AppIcon/index.js";
6
+ import { type TabBadge } from "../../components/BottomNavigation/index.js";
7
+ export type AppTabScreenProps<ParamList extends ParamListBase, Name extends keyof ParamList = keyof ParamList> = BottomTabScreenProps<ParamList, Name>;
8
+ interface AppTabFor<ParamList extends ParamListBase, Name extends Extract<keyof ParamList, string>> {
9
+ name: Name;
10
+ label: string;
11
+ icon: AppIconName;
12
+ screen: ComponentType<AppTabScreenProps<ParamList, Name>>;
13
+ badge?: TabBadge | undefined;
14
+ }
15
+ export type AppTab<ParamList extends ParamListBase, Name extends Extract<keyof ParamList, string> = Extract<keyof ParamList, string>> = {
16
+ [RouteName in Name]: AppTabFor<ParamList, RouteName>;
17
+ }[Name];
18
+ export interface AppTabNavigatorProps<ParamList extends ParamListBase> {
19
+ tabs: readonly AppTab<ParamList>[];
20
+ initialRouteName?: Extract<keyof ParamList, string> | undefined;
21
+ testID?: string | undefined;
22
+ }
23
+ export declare function AppTabNavigator<ParamList extends ParamListBase>({ tabs, initialRouteName, testID, }: AppTabNavigatorProps<ParamList>): React.ReactElement;
24
+ export declare function useAppTabBarHeight(): number;
25
+ export {};
26
+ //# sourceMappingURL=AppTabNavigator.d.ts.map
@@ -0,0 +1,3 @@
1
+ export type { AppTab, AppTabNavigatorProps, AppTabScreenProps } from "./AppTabNavigator.js";
2
+ export { AppTabNavigator, useAppTabBarHeight } from "./AppTabNavigator.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -44,6 +44,7 @@ import type { NumberInputText } from "./numberInput.g.js";
44
44
  import type { OnboardingPagerText } from "./onboardingPager.g.js";
45
45
  import type { OptionSheetText } from "./optionSheet.g.js";
46
46
  import type { OtpInputText } from "./otpInput.g.js";
47
+ import type { OutboxEntryListText } from "./outboxEntryList.g.js";
47
48
  import type { PagedListFooterText } from "./pagedListFooter.g.js";
48
49
  import type { PermissionPromptText } from "./permissionPrompt.g.js";
49
50
  import type { PhoneNumberInputText } from "./phoneNumberInput.g.js";
@@ -121,6 +122,7 @@ export interface MobileUiTextCatalogue {
121
122
  readonly onboardingPager: OnboardingPagerText;
122
123
  readonly optionSheet: OptionSheetText;
123
124
  readonly otpInput: OtpInputText;
125
+ readonly outboxEntryList: OutboxEntryListText;
124
126
  readonly pagedListFooter: PagedListFooterText;
125
127
  readonly permissionPrompt: PermissionPromptText;
126
128
  readonly phoneNumberInput: PhoneNumberInputText;
@@ -44,6 +44,7 @@ export * from "./numberInput.g.js";
44
44
  export * from "./onboardingPager.g.js";
45
45
  export * from "./optionSheet.g.js";
46
46
  export * from "./otpInput.g.js";
47
+ export * from "./outboxEntryList.g.js";
47
48
  export * from "./pagedListFooter.g.js";
48
49
  export * from "./permissionPrompt.g.js";
49
50
  export * from "./phoneNumberInput.g.js";
@@ -0,0 +1,11 @@
1
+ export type OutboxEntryListText = {
2
+ readonly discard: string;
3
+ readonly discardText: string;
4
+ readonly discardTitle: string;
5
+ readonly failed: string;
6
+ readonly sendNow: string;
7
+ readonly sending: string;
8
+ readonly waiting: string;
9
+ };
10
+ export declare const OUTBOX_ENTRY_LIST_TEXT: OutboxEntryListText;
11
+ //# sourceMappingURL=outboxEntryList.g.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.171.3",
3
+ "version": "0.172.1",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -50,6 +50,16 @@
50
50
  "default": "./lib/commonjs/navigation/index.js"
51
51
  }
52
52
  },
53
+ "./navigation/tabs": {
54
+ "import": {
55
+ "types": "./lib/typescript/module/navigation/tabs/index.d.ts",
56
+ "default": "./lib/module/navigation/tabs/index.js"
57
+ },
58
+ "require": {
59
+ "types": "./lib/typescript/commonjs/navigation/tabs/index.d.ts",
60
+ "default": "./lib/commonjs/navigation/tabs/index.js"
61
+ }
62
+ },
53
63
  "./sizes": {
54
64
  "import": {
55
65
  "types": "./lib/typescript/module/sizes.d.ts",
@@ -116,13 +126,13 @@
116
126
  }
117
127
  },
118
128
  "dependencies": {
119
- "@webority/markdown-core": "0.171.3"
129
+ "@webority/markdown-core": "0.172.1"
120
130
  },
121
131
  "peerDependencies": {
122
132
  "@react-navigation/bottom-tabs": ">=7.0.0",
123
133
  "@react-navigation/native": ">=7.0.0",
124
- "@webority/canvas-kit": "0.171.3",
125
- "@webority/mobile-core": "0.171.3",
134
+ "@webority/canvas-kit": "0.172.1",
135
+ "@webority/mobile-core": "0.172.1",
126
136
  "expo": ">=58.0.0",
127
137
  "expo-file-system": ">=58.0.0",
128
138
  "expo-haptics": ">=58.0.0",
@@ -186,10 +196,10 @@
186
196
  "@types/jest": "29.5.14",
187
197
  "@types/node": "25.6.0",
188
198
  "@types/react": "19.3.0",
189
- "@webority/canvas-kit": "0.171.3",
190
- "@webority/mobile-core": "0.171.3",
199
+ "@webority/canvas-kit": "0.172.1",
200
+ "@webority/mobile-core": "0.172.1",
191
201
  "@webority/mobile-dev": "0.0.0",
192
- "@webority/tokens": "0.171.3",
202
+ "@webority/tokens": "0.172.1",
193
203
  "expo": "58.0.23",
194
204
  "expo-file-system": "58.0.13",
195
205
  "expo-haptics": "58.0.7",