@webority/mobile-ui 0.130.2 → 0.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/canvas-kit/kit.js +7990 -7853
- package/dist/canvas-kit/manifest.json +29 -4
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/catalog.g.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/commonjs/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/catalog.g.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AppIcon/variants.g.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/FileViewer/useFileViewerZoom.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/IconButton/IconButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/module/components/MessageList/MessageList.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/module/components/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +2 -0
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +5 -1
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +5 -3
- package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +1 -1
- package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +2 -2
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/module/components/Composer/Composer.d.ts +2 -0
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +5 -1
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +5 -3
- package/lib/typescript/module/components/MessageList/MessageList.d.ts +1 -1
- package/lib/typescript/module/components/StatTile/StatTile.d.ts +2 -2
- package/package.json +7 -7
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { type MarkdownHeadings, type MarkdownLinks } from "@webority/markdown-core";
|
|
1
|
+
import { type FigureRun, type MarkdownHeadings, type MarkdownLinks } from "@webority/markdown-core";
|
|
2
2
|
import type React from "react";
|
|
3
3
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
4
4
|
export interface MarkdownProps<T = string> {
|
|
5
5
|
/** The markdown source. An empty or missing string renders nothing. */
|
|
6
6
|
children?: string;
|
|
7
|
-
/** `web` makes web and contact addresses pressable; `app` makes the links `resolveLink` maps pressable. Any other scheme is plain text. */
|
|
7
|
+
/** `web` makes web and contact addresses pressable; `app` makes the links `resolveLink` maps pressable; `page` also asks `resolveLink` about every address and opens only relative addresses and addresses on the site's own origin. Any other scheme is plain text. */
|
|
8
8
|
links?: MarkdownLinks;
|
|
9
9
|
/** `outline` sizes each heading by its level; `text` draws every heading as bold body text. */
|
|
10
10
|
headings?: MarkdownHeadings;
|
|
11
|
+
/** Splits plain text into runs; a sub or sup run draws raised or lowered. Without it, text draws as written. Code spans and blocks are never split. */
|
|
12
|
+
figureText?: (text: string) => FigureRun[];
|
|
11
13
|
/** Maps an app link's address to what `onAppLinkPress` receives. Null leaves the link as plain text. */
|
|
12
14
|
resolveLink?: (href: string) => T | null | undefined;
|
|
13
15
|
/** Says whether a `[inner]` run is a citation the host can open. Without it, no run is a citation. */
|
|
@@ -35,7 +37,7 @@ export interface MarkdownProps<T = string> {
|
|
|
35
37
|
* Renders the shared markdown grammar with the theme's own type scale and colours,
|
|
36
38
|
* with no dependency. Inline HTML is plain text.
|
|
37
39
|
*/
|
|
38
|
-
export declare function Markdown<T = string>({ children, links, headings, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
40
|
+
export declare function Markdown<T = string>({ children, links, headings, figureText, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
39
41
|
export declare namespace Markdown {
|
|
40
42
|
var displayName: string;
|
|
41
43
|
}
|
|
@@ -63,6 +63,6 @@ export interface MessageListProps<T> extends Omit<FlatListProps<T>, OwnedListPro
|
|
|
63
63
|
* above the keyboard. Scrolled away from the latest, a jump button appears
|
|
64
64
|
* with the count of messages that arrived meanwhile.
|
|
65
65
|
*/
|
|
66
|
-
export declare function MessageList<T>({ messages, keyExtractor, renderMessage, getAuthorKey, getDate, firstUnreadKey, onLoadOlder, loadingOlder, hasOlder, typing, empty, getAnnouncement, followNew, keyboardAware, keyboardOffset, labels: labelOverrides, now, onScroll, contentContainerStyle, style, testID, ...rest }: MessageListProps<T>): React.ReactElement;
|
|
66
|
+
export declare function MessageList<T>({ messages, keyExtractor, renderMessage, getAuthorKey, getDate, firstUnreadKey, onLoadOlder, loadingOlder, hasOlder, typing, empty, getAnnouncement, followNew, keyboardAware, keyboardOffset, labels: labelOverrides, now, onScroll, onContentSizeChange, contentContainerStyle, style, testID, ...rest }: MessageListProps<T>): React.ReactElement;
|
|
67
67
|
export default MessageList;
|
|
68
68
|
//# sourceMappingURL=MessageList.d.ts.map
|
|
@@ -23,8 +23,8 @@ export interface StatTileLabels {
|
|
|
23
23
|
}
|
|
24
24
|
export declare const DEFAULT_STAT_TILE_LABELS: Readonly<StatTileLabels>;
|
|
25
25
|
export interface StatTileProps {
|
|
26
|
-
/** What the figure measures, drawn small above it. */
|
|
27
|
-
label:
|
|
26
|
+
/** What the figure measures, drawn small above it: text, or a node such as sub and sup runs. */
|
|
27
|
+
label: ReactNode;
|
|
28
28
|
/** The figure, always given. A string or number is drawn in the heading style; a node is drawn as is. */
|
|
29
29
|
value: NonNullable<ReactNode>;
|
|
30
30
|
/** Leading icon in a tinted circle: an AppIcon name, `{ name, variant }`, a render fn or any node. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.131.0",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@webority/markdown-core": "0.
|
|
118
|
+
"@webority/markdown-core": "0.131.0"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@react-navigation/bottom-tabs": ">=7.0.0",
|
|
122
122
|
"@react-navigation/native": ">=7.0.0",
|
|
123
|
-
"@webority/canvas-kit": "0.
|
|
124
|
-
"@webority/mobile-core": "0.
|
|
123
|
+
"@webority/canvas-kit": "0.131.0",
|
|
124
|
+
"@webority/mobile-core": "0.131.0",
|
|
125
125
|
"expo": ">=57.0.0",
|
|
126
126
|
"expo-file-system": ">=57.0.0",
|
|
127
127
|
"expo-haptics": ">=57.0.0",
|
|
@@ -185,10 +185,10 @@
|
|
|
185
185
|
"@types/node": "25.6.0",
|
|
186
186
|
"@types/react": "19.2.18",
|
|
187
187
|
"@types/react-test-renderer": "19.1.0",
|
|
188
|
-
"@webority/canvas-kit": "0.
|
|
189
|
-
"@webority/mobile-core": "0.
|
|
188
|
+
"@webority/canvas-kit": "0.131.0",
|
|
189
|
+
"@webority/mobile-core": "0.131.0",
|
|
190
190
|
"@webority/mobile-dev": "0.0.0",
|
|
191
|
-
"@webority/tokens": "0.
|
|
191
|
+
"@webority/tokens": "0.131.0",
|
|
192
192
|
"expo": "57.0.31",
|
|
193
193
|
"expo-file-system": "57.0.7",
|
|
194
194
|
"expo-haptics": "57.0.3",
|