@aic-kits/react-native 0.0.18 → 0.0.21
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/lib/components/Button/index.d.ts +2 -2
- package/lib/components/Button/index.d.ts.map +1 -1
- package/lib/components/Skeleton/SkeletonWrapper.js +1 -1
- package/lib/components/Video/VideoDetail.d.ts +1 -1
- package/lib/components/Video/VideoDetail.d.ts.map +1 -1
- package/lib/hooks/usePrevious.js +1 -1
- package/lib/theme/ThemeProvider.d.ts +2 -1
- package/lib/theme/ThemeProvider.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JSX, ReactNode } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { GestureResponderEvent } from 'react-native/Libraries/Types/CoreEventTypes';
|
|
4
4
|
import type { ButtonCorner, Color } from '../../theme';
|
|
@@ -58,7 +58,7 @@ export interface ButtonProps extends BoxProps {
|
|
|
58
58
|
/**
|
|
59
59
|
* Index label.
|
|
60
60
|
*/
|
|
61
|
-
text:
|
|
61
|
+
text: JSX.Element | string | number | null | undefined;
|
|
62
62
|
}
|
|
63
63
|
export declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, color, textColor, loading, onPress, rightIcon, corner, style, testID, text, ...rest }: ButtonProps) => JSX.Element;
|
|
64
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,SA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ackground } from './SkeletonBackground';
|
|
|
9
9
|
export const SkeletonWrapper = ({ loading = false, onSkeletonVisibilityChange = () => { }, children, skeletonOverlay, ...otherProps }) => {
|
|
10
10
|
const theme = useTheme();
|
|
11
11
|
const themeSkeleton = useMemo(() => theme.__hd__.skeleton, [theme]);
|
|
12
|
-
const postShowingTimeout = useRef();
|
|
12
|
+
const postShowingTimeout = useRef(undefined);
|
|
13
13
|
const skeletonOpacity = useSharedValue(loading ? 1 : 0);
|
|
14
14
|
const skeletonColor = useSharedValue(themeSkeleton.backgroundColors.min);
|
|
15
15
|
const animatedContentStyle = useAnimatedStyle(() => ({
|
|
@@ -4,7 +4,7 @@ import type { VideoRef } from '../../components/Video';
|
|
|
4
4
|
type VideoDetailProps = VideoChatProps & {
|
|
5
5
|
onBack: () => void;
|
|
6
6
|
initialPosition?: number;
|
|
7
|
-
videoRef: React.RefObject<VideoRef>;
|
|
7
|
+
videoRef: React.RefObject<VideoRef | null>;
|
|
8
8
|
};
|
|
9
9
|
declare const VideoDetail: React.FC<VideoDetailProps>;
|
|
10
10
|
export default VideoDetail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoDetail.d.ts","sourceRoot":"","sources":["../../../src/components/Video/VideoDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAOvD,KAAK,gBAAgB,GAAG,cAAc,GAAG;IACvC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoDetail.d.ts","sourceRoot":"","sources":["../../../src/components/Video/VideoDetail.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAOxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAOvD,KAAK,gBAAgB,GAAG,cAAc,GAAG;IACvC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CAC5C,CAAC;AAmBF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8K3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/lib/hooks/usePrevious.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
1
2
|
import type { Theme } from './getTheme';
|
|
2
3
|
export interface ThemeProviderProps {
|
|
3
4
|
theme: Partial<Theme> | ((outerTheme: Theme) => Theme);
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
}
|
|
6
7
|
interface ThemeProviderType {
|
|
7
|
-
(props: ThemeProviderProps):
|
|
8
|
+
(props: ThemeProviderProps): JSX.Element;
|
|
8
9
|
}
|
|
9
10
|
declare const ThemeProvider: ThemeProviderType;
|
|
10
11
|
declare const useTheme: () => Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,KAAK,KAAK,CAAC,CAAC;IACvD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,UAAU,iBAAiB;IACzB,CAAC,KAAK,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAAC;CAC1C;AAED,QAAA,MAAM,aAAa,EAA4B,iBAAiB,CAAC;AAEjE,QAAA,MAAM,QAAQ,EAAuB,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aic-kits/react-native",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"i18n-js": "^4.4.3",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
46
|
"react": "19.0.0",
|
|
47
|
-
"react-intl": "^
|
|
47
|
+
"react-intl": "^7.1.10",
|
|
48
48
|
"react-native": "0.78.0",
|
|
49
49
|
"react-native-chart-kit": "^6.12.0",
|
|
50
50
|
"react-native-fbsdk-next": "^13.1.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@react-native/typescript-config": "0.78.0",
|
|
86
86
|
"@types/jest": "^29.5.13",
|
|
87
87
|
"@types/lodash": "^4.17.0",
|
|
88
|
-
"@types/react": "^
|
|
88
|
+
"@types/react": "^19.0.0",
|
|
89
89
|
"@types/react-native": "^0.73.0",
|
|
90
90
|
"@types/react-native-get-random-values": "^1.8.2",
|
|
91
91
|
"@types/react-native-vector-icons": "^6.4.18",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"engines": {
|
|
109
109
|
"node": ">=18"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "27947a68100d3e48f929dae705c7b3464443f465"
|
|
112
112
|
}
|