@webority/mobile-ui 0.0.37 → 0.0.39
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 +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +5 -5
- package/lib/commonjs/components/AuthedImage/authedImageCache.js +199 -109
- package/lib/commonjs/components/Carousel/Carousel.js +7 -5
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +18 -7
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +18 -2
- package/lib/commonjs/form/equal.js +56 -0
- package/lib/commonjs/form/useForm.js +19 -4
- package/lib/module/components/AuthedImage/AuthedImage.js +5 -5
- package/lib/module/components/AuthedImage/authedImageCache.js +200 -110
- package/lib/module/components/Carousel/Carousel.js +7 -5
- package/lib/module/components/FieldBase/useFloatingLabel.js +18 -7
- package/lib/module/components/OptionSheet/OptionSheet.js +18 -2
- package/lib/module/form/equal.js +51 -0
- package/lib/module/form/useForm.js +19 -4
- package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +3 -3
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +2 -3
- package/lib/typescript/commonjs/form/equal.d.ts +9 -0
- package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +3 -3
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +2 -3
- package/lib/typescript/module/form/equal.d.ts +9 -0
- package/package.json +3 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Carousel — generic horizontal carousel with pagination, auto-play, and looping.
|
|
3
3
|
*
|
|
4
|
-
* Backed by a virtualized FlatList for memory efficiency.
|
|
5
|
-
*
|
|
6
|
-
* gesture frame-perfectly without round-tripping to JS.
|
|
4
|
+
* Backed by a virtualized FlatList for memory efficiency. Dot and bar
|
|
5
|
+
* pagination track the scroll gesture through `Animated.event`.
|
|
7
6
|
*
|
|
8
7
|
* USAGE:
|
|
9
8
|
*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether two form value trees hold the same data. The form engine copies only
|
|
3
|
+
* the branch a write touches, so most subtrees are compared by identity and the
|
|
4
|
+
* walk stops early; serialising both trees cost a full pass on every keystroke.
|
|
5
|
+
* A key holding `undefined` counts as absent, the way the serialised comparison
|
|
6
|
+
* treated it, and dates compare by instant.
|
|
7
|
+
*/
|
|
8
|
+
export declare const valuesEqual: (a: unknown, b: unknown) => boolean;
|
|
9
|
+
//# sourceMappingURL=equal.d.ts.map
|
|
@@ -7,7 +7,7 @@ export interface AuthedImageCacheMeta {
|
|
|
7
7
|
lastAccessedAt: number;
|
|
8
8
|
}
|
|
9
9
|
export interface CachedImage {
|
|
10
|
-
|
|
10
|
+
fileUri: string;
|
|
11
11
|
meta: AuthedImageCacheMeta;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -18,12 +18,12 @@ export interface CachedImage {
|
|
|
18
18
|
export declare const setAuthedImageCacheLimit: (bytes: number) => void;
|
|
19
19
|
export declare const getAuthedImageCacheLimit: () => number;
|
|
20
20
|
/**
|
|
21
|
-
* Hex only by construction, so it is always a safe
|
|
21
|
+
* Hex only by construction, so it is always a safe file name segment.
|
|
22
22
|
*/
|
|
23
23
|
export declare const deriveCacheKey: (uri: string, override?: string) => string;
|
|
24
24
|
export declare const readEntry: (cacheKey: string) => Promise<CachedImage | null>;
|
|
25
25
|
export declare const isFresh: (meta: AuthedImageCacheMeta, ttlMs: number, now?: number) => boolean;
|
|
26
|
-
export declare const touchEntry: (cacheKey: string
|
|
26
|
+
export declare const touchEntry: (cacheKey: string) => Promise<void>;
|
|
27
27
|
export declare const clearAuthedImageCache: () => Promise<void>;
|
|
28
28
|
export declare const authedImageCacheStats: () => Promise<{
|
|
29
29
|
entries: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Carousel — generic horizontal carousel with pagination, auto-play, and looping.
|
|
3
3
|
*
|
|
4
|
-
* Backed by a virtualized FlatList for memory efficiency.
|
|
5
|
-
*
|
|
6
|
-
* gesture frame-perfectly without round-tripping to JS.
|
|
4
|
+
* Backed by a virtualized FlatList for memory efficiency. Dot and bar
|
|
5
|
+
* pagination track the scroll gesture through `Animated.event`.
|
|
7
6
|
*
|
|
8
7
|
* USAGE:
|
|
9
8
|
*
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether two form value trees hold the same data. The form engine copies only
|
|
3
|
+
* the branch a write touches, so most subtrees are compared by identity and the
|
|
4
|
+
* walk stops early; serialising both trees cost a full pass on every keystroke.
|
|
5
|
+
* A key holding `undefined` counts as absent, the way the serialised comparison
|
|
6
|
+
* treated it, and dates compare by instant.
|
|
7
|
+
*/
|
|
8
|
+
export declare const valuesEqual: (a: unknown, b: unknown) => boolean;
|
|
9
|
+
//# sourceMappingURL=equal.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -64,8 +64,9 @@
|
|
|
64
64
|
"typecheck": "tsc --noEmit"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@webority/mobile-core": ">=0.0.
|
|
67
|
+
"@webority/mobile-core": ">=0.0.27 <0.1.0",
|
|
68
68
|
"expo": ">=57.0.0",
|
|
69
|
+
"expo-file-system": ">=57.0.0",
|
|
69
70
|
"expo-haptics": ">=57.0.0",
|
|
70
71
|
"react": "^19.1.0",
|
|
71
72
|
"react-native": ">=0.81.0",
|