react-native-ui-lib 8.2.1 → 8.2.2-snapshot.7685
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/HighlighterOverlayView/index.d.ts +2 -2
- package/lib/components/HighlighterOverlayView/index.web.d.ts +2 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.ts +1 -1
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.ts +2 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/index.js +3 -1
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +3 -1
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.ts +6 -2
- package/lib/components/Keyboard/KeyboardTrackingView/index.js +5 -4
- package/lib/components/Keyboard/index.d.ts +2 -1
- package/lib/package.json +4 -5
- package/package.json +19 -21
- package/scripts/release/prReleaseNotesCommon.js +12 -5
- package/src/commons/asBaseComponent.js +2 -1
- package/src/commons/baseComponent.js +0 -8
- package/src/commons/forwardRef.js +1 -4
- package/src/commons/modifiers.d.ts +0 -6
- package/src/commons/modifiers.js +0 -18
- package/src/commons/withScrollEnabler.js +0 -4
- package/src/commons/withScrollReached.js +0 -4
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +0 -7
- package/src/components/KeyboardAwareScrollView/KeyboardAwareFlatList.js +0 -6
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +0 -6
- package/src/components/WheelPicker/WheelPicker.driver.d.ts +2 -2
- package/src/components/WheelPicker/index.d.ts +2 -2
- package/src/components/WheelPicker/index.js +1 -1
- package/src/components/WheelPicker/usePresenter.d.ts +1 -1
- package/src/components/actionSheet/index.d.ts +1 -1
- package/src/components/animatedImage/index.d.ts +1 -1
- package/src/components/animatedScanner/index.js +0 -37
- package/src/components/avatar/index.d.ts +1 -1
- package/src/components/badge/index.d.ts +4 -4
- package/src/components/baseInput/index.d.ts +0 -1
- package/src/components/baseInput/index.js +1 -49
- package/src/components/button/index.d.ts +4 -4
- package/src/components/button/types.d.ts +2 -2
- package/src/components/carousel/index.d.ts +8 -8
- package/src/components/carousel/types.d.ts +4 -1
- package/src/components/carousel/types.js +0 -2
- package/src/components/checkbox/index.d.ts +1 -1
- package/src/components/chip/index.d.ts +1 -1
- package/src/components/colorPalette/index.d.ts +1 -1
- package/src/components/dateTimePicker/index.d.ts +2 -2
- package/src/components/dateTimePicker/index.js +2 -2
- package/src/components/dialog/types.d.ts +4 -4
- package/src/components/drawer/index.d.ts +1 -1
- package/src/components/expandableSection/index.d.ts +2 -2
- package/src/components/fadedScrollView/index.js +1 -1
- package/src/components/featureHighlight/index.js +5 -7
- package/src/components/floatingButton/index.js +2 -2
- package/src/components/gridListItem/index.d.ts +7 -7
- package/src/components/gridListItem/index.js +1 -1
- package/src/components/gridView/index.d.ts +1 -1
- package/src/components/hint/HintBubble.d.ts +1 -1
- package/src/components/hint/HintOld.d.ts +10 -10
- package/src/components/hint/hooks/useHintLayout.d.ts +1 -1
- package/src/components/hint/index.d.ts +2 -2
- package/src/components/hint/types.d.ts +2 -2
- package/src/components/icon/index.js +0 -3
- package/src/components/image/index.d.ts +1 -1
- package/src/components/image/index.js +20 -17
- package/src/components/loaderScreen/index.d.ts +1 -1
- package/src/components/loaderScreen/types.d.ts +1 -1
- package/src/components/maskedInput/index.d.ts +21 -4
- package/src/components/maskedInput/index.js +78 -16
- package/src/components/maskedInput/maskedInput.api.json +0 -1
- package/src/components/modal/index.d.ts +3 -3
- package/src/components/numberInput/index.js +2 -2
- package/src/components/overlay/index.d.ts +1 -1
- package/src/components/picker/PickerDialog.android.js +0 -15
- package/src/components/picker/PickerDialog.js +0 -7
- package/src/components/picker/helpers/useImperativePickerHandle.d.ts +1 -1
- package/src/components/picker/helpers/useImperativePickerHandle.js +1 -1
- package/src/components/picker/types.d.ts +9 -9
- package/src/components/progressBar/index.d.ts +2 -2
- package/src/components/scrollBar/index.d.ts +11 -4
- package/src/components/searchInput/index.js +1 -1
- package/src/components/searchInput/types.d.ts +2 -2
- package/src/components/sectionsWheelPicker/SectionsWheelPicker.driver.d.ts +2 -2
- package/src/components/skeletonView/index.d.ts +4 -4
- package/src/components/slider/Thumb.d.ts +1 -1
- package/src/components/slider/types.d.ts +1 -1
- package/src/components/stackAggregator/index.d.ts +1 -1
- package/src/components/tabController/TabBarItem.d.ts +2 -2
- package/src/components/tabController/TabBarItem.js +1 -1
- package/src/components/tabController/TabPage.d.ts +2 -2
- package/src/components/tabController/useScrollToItem.d.ts +1 -1
- package/src/components/text/Text.driver.d.ts +1 -1
- package/src/components/textArea/index.js +0 -6
- package/src/components/textField/types.d.ts +4 -4
- package/src/components/textField/useImperativeInputHandle.d.ts +1 -1
- package/src/components/textField/useImperativeInputHandle.js +1 -1
- package/src/components/textField/usePreset.d.ts +20 -20
- package/src/components/timeline/index.js +1 -1
- package/src/components/toast/index.js +0 -69
- package/src/components/view/index.js +2 -5
- package/src/components/wizard/index.d.ts +1 -1
- package/src/components/wizard/types.d.ts +1 -1
- package/src/components/wizard/wizard.api.json +1 -1
- package/src/hooks/useCombinedRefs/index.js +1 -2
- package/src/hooks/useDebounce/index.js +1 -1
- package/src/hooks/useHiddenLocation/index.js +2 -2
- package/src/hooks/useHiddenLocation/index.web.js +2 -2
- package/src/hooks/useMeasure/index.d.ts +1 -1
- package/src/hooks/useMeasure/index.js +1 -1
- package/src/hooks/useScrollTo/index.d.ts +2 -2
- package/src/incubator/calendar/index.js +1 -1
- package/src/incubator/calendar/types.d.ts +2 -2
- package/src/incubator/expandableOverlay/index.d.ts +2 -2
- package/src/incubator/slider/Track.d.ts +1 -1
- package/src/incubator/slider/index.d.ts +1 -1
- package/src/incubator/toast/helpers/useToastTimer.js +1 -1
- package/src/incubator/toast/index.js +1 -1
- package/src/incubator/toast/types.d.ts +2 -2
- package/src/testkit/Component.driver.d.ts +1 -1
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +1 -1
- package/src/typings/module.d.ts +12 -3
- package/ReactNativeUiLib.podspec +0 -22
- package/src/components/maskedInput/new.d.ts +0 -22
- package/src/components/maskedInput/new.js +0 -85
- package/src/components/maskedInput/old.js +0 -95
- package/src/components/textFieldOld/index.d.ts +0 -71
- package/src/components/textFieldOld/index.js +0 -807
- package/src/helpers/DocsGenerator.js +0 -61
- package/textFieldOld.d.ts +0 -2
- package/textFieldOld.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
3
|
type HighlightFrameType = {
|
|
4
4
|
x: number;
|
|
@@ -28,7 +28,7 @@ export type HighlighterOverlayViewProps = {
|
|
|
28
28
|
testID?: string;
|
|
29
29
|
};
|
|
30
30
|
declare const HighlighterOverlayView: {
|
|
31
|
-
(props: HighlighterOverlayViewProps):
|
|
31
|
+
(props: HighlighterOverlayViewProps): JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
export default HighlighterOverlayView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
2
|
import { ViewStyle } from 'react-native';
|
|
3
3
|
type HighlightFrameType = {
|
|
4
4
|
x: number;
|
|
@@ -28,7 +28,7 @@ export type HighlighterOverlayViewProps = {
|
|
|
28
28
|
testID?: string;
|
|
29
29
|
};
|
|
30
30
|
declare const HighlighterOverlayView: {
|
|
31
|
-
(props: HighlighterOverlayViewProps):
|
|
31
|
+
(props: HighlighterOverlayViewProps): JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
export default HighlighterOverlayView;
|
package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardViewBase.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type CustomKeyboardViewBaseProps = {
|
|
|
9
9
|
component?: string;
|
|
10
10
|
onItemSelected?: (component?: string, args?: any) => void;
|
|
11
11
|
onRequestShowKeyboard?: (keyboardId: string) => void;
|
|
12
|
-
children?: React.
|
|
12
|
+
children?: React.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
export default class CustomKeyboardViewBase<T extends CustomKeyboardViewBaseProps> extends Component<T> {
|
|
15
15
|
static defaultProps: {
|
|
@@ -6,7 +6,7 @@ export type KeyboardAccessoryViewProps = kbTrackingViewProps & {
|
|
|
6
6
|
/**
|
|
7
7
|
* Content to be rendered above the keyboard
|
|
8
8
|
*/
|
|
9
|
-
renderContent?: () => React.ReactElement
|
|
9
|
+
renderContent?: () => React.ReactElement<any>;
|
|
10
10
|
/**
|
|
11
11
|
* iOS only.
|
|
12
12
|
* The reference to the actual text input (or the keyboard may not reset when instructed to, etc.).
|
|
@@ -37,7 +37,7 @@ export type KeyboardAccessoryViewProps = kbTrackingViewProps & {
|
|
|
37
37
|
* Callback that will be called once the keyboard has been closed
|
|
38
38
|
*/
|
|
39
39
|
onKeyboardResigned?: () => void;
|
|
40
|
-
children?: React.
|
|
40
|
+
children?: React.ReactNode;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* @description: View that allows replacing the default keyboard with other components
|
|
@@ -141,7 +141,9 @@ class KeyboardAccessoryView extends Component {
|
|
|
141
141
|
scrollBehavior,
|
|
142
142
|
...others
|
|
143
143
|
} = this.props;
|
|
144
|
-
return <KeyboardTrackingView {...others} scrollBehavior={scrollBehavior} ref={r =>
|
|
144
|
+
return <KeyboardTrackingView {...others} scrollBehavior={scrollBehavior} ref={r => {
|
|
145
|
+
this.trackingViewRef = r;
|
|
146
|
+
}} style={styles.trackingToolbarContainer} onLayout={this.onContainerComponentHeightChanged}>
|
|
145
147
|
<KeyboardHeightListener id={`${this.id}`} onDismiss={this.onDismiss} onKeyboardHeightChange={this.onKeyboardHeightChange} />
|
|
146
148
|
<>{renderContent?.()}</>
|
|
147
149
|
<CustomKeyboardView keyboardHeight={keyboardHeight} shouldFocus={shouldFocus} onKeyboardDismiss={this.onKeyboardDismiss} inputRef={kbInputRef} component={kbComponent} initialProps={this.processInitialProps()} onItemSelected={onItemSelected} onRequestShowKeyboard={onRequestShowKeyboard} useSafeArea={others.useSafeArea} />
|
|
@@ -18,7 +18,9 @@ class KeyboardTrackingView extends PureComponent {
|
|
|
18
18
|
useSafeArea: false
|
|
19
19
|
};
|
|
20
20
|
render() {
|
|
21
|
-
return <KeyboardTrackingViewNativeComponent {...this.props} ref={r =>
|
|
21
|
+
return <KeyboardTrackingViewNativeComponent {...this.props} ref={r => {
|
|
22
|
+
this.ref = r;
|
|
23
|
+
}} />;
|
|
22
24
|
}
|
|
23
25
|
async getNativeProps() {
|
|
24
26
|
if (this.ref && KeyboardTrackingViewTempManager && KeyboardTrackingViewTempManager.getNativeProps) {
|
|
@@ -73,9 +73,13 @@ export type KeyboardTrackingViewProps = ViewProps & {
|
|
|
73
73
|
usesBottomTabs?: boolean;
|
|
74
74
|
ref?: any;
|
|
75
75
|
style?: StyleProp<ViewStyle>;
|
|
76
|
-
children?: React.
|
|
76
|
+
children?: React.ReactNode;
|
|
77
77
|
};
|
|
78
|
-
declare const
|
|
78
|
+
declare const defaultProps: KeyboardTrackingViewProps;
|
|
79
|
+
declare const KeyboardTrackingView: React.ForwardRefExoticComponent<Omit<KeyboardTrackingViewProps, "ref"> & React.RefAttributes<unknown>>;
|
|
80
|
+
type KeyboardTrackingViewType = typeof KeyboardTrackingView & {
|
|
79
81
|
scrollBehaviors: typeof SCROLL_BEHAVIORS;
|
|
82
|
+
defaultProps: typeof defaultProps;
|
|
80
83
|
};
|
|
84
|
+
declare const _default: KeyboardTrackingViewType;
|
|
81
85
|
export default _default;
|
|
@@ -8,15 +8,16 @@ const SCROLL_BEHAVIORS = {
|
|
|
8
8
|
SCROLL_TO_BOTTOM_INVERTED_ONLY: NativeModules.KeyboardTrackingViewTempManager?.KeyboardTrackingScrollBehaviorScrollToBottomInvertedOnly,
|
|
9
9
|
FIXED_OFFSET: NativeModules.KeyboardTrackingViewTempManager?.KeyboardTrackingScrollBehaviorFixedOffset
|
|
10
10
|
};
|
|
11
|
+
const defaultProps = {};
|
|
11
12
|
const KeyboardTrackingView = forwardRef(({
|
|
12
13
|
children,
|
|
13
14
|
...others
|
|
14
15
|
}, ref) => {
|
|
15
16
|
const KeyboardTrackingViewContainer = isAndroid ? KeyboardTrackingViewAndroid : KeyboardTrackingViewIOS;
|
|
16
|
-
return <KeyboardTrackingViewContainer {...others} ref={ref}>
|
|
17
|
+
return <KeyboardTrackingViewContainer {...defaultProps} {...others} ref={ref}>
|
|
17
18
|
{children}
|
|
18
19
|
</KeyboardTrackingViewContainer>;
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
KeyboardTrackingView.defaultProps = defaultProps;
|
|
22
|
+
KeyboardTrackingView.scrollBehaviors = SCROLL_BEHAVIORS;
|
|
23
|
+
export default KeyboardTrackingView;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
SCROLL_TO_BOTTOM_INVERTED_ONLY: any;
|
|
12
12
|
FIXED_OFFSET: any;
|
|
13
13
|
};
|
|
14
|
+
defaultProps: KeyboardTrackingViewProps;
|
|
14
15
|
};
|
|
15
16
|
KeyboardAwareInsetsView: {
|
|
16
17
|
(props: import("react-native/types").ViewProps & {
|
|
@@ -27,7 +28,7 @@ declare const _default: {
|
|
|
27
28
|
usesBottomTabs?: boolean | undefined;
|
|
28
29
|
ref?: any;
|
|
29
30
|
style?: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>;
|
|
30
|
-
children?: import("react").
|
|
31
|
+
children?: import("react").ReactNode;
|
|
31
32
|
} & {
|
|
32
33
|
offset?: number | undefined;
|
|
33
34
|
}): import("react").JSX.Element;
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uilib-native",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"homepage": "https://github.com/wix/react-native-ui-lib",
|
|
5
5
|
"description": "uilib native components (separated from js components)",
|
|
6
6
|
"main": "components/index",
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"lodash": "^4.17.21"
|
|
14
|
-
"prop-types": "^15.5.10"
|
|
13
|
+
"lodash": "^4.17.21"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"shell-utils": "^1.0.10"
|
|
18
17
|
},
|
|
19
18
|
"peerDependencies": {
|
|
20
|
-
"react": ">=
|
|
21
|
-
"react-native": ">=0.
|
|
19
|
+
"react": ">=19.0.0",
|
|
20
|
+
"react-native": ">=0.78.3"
|
|
22
21
|
}
|
|
23
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2-snapshot.7685",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -32,11 +32,9 @@
|
|
|
32
32
|
"color": "^3.1.0",
|
|
33
33
|
"commons-validator-js": "^1.0.237",
|
|
34
34
|
"date-fns": "^2.29.3",
|
|
35
|
-
"deprecated-react-native-prop-types": "^2.3.0",
|
|
36
35
|
"hoist-non-react-statics": "^3.0.0",
|
|
37
36
|
"lodash": "^4.17.21",
|
|
38
37
|
"memoize-one": "^5.0.5",
|
|
39
|
-
"prop-types": "^15.5.10",
|
|
40
38
|
"react-freeze": "^1.0.0",
|
|
41
39
|
"react-native-redash": "^12.0.3",
|
|
42
40
|
"semver": "^5.5.0",
|
|
@@ -62,17 +60,16 @@
|
|
|
62
60
|
"@react-native-community/cli-platform-ios": "15.0.1",
|
|
63
61
|
"@react-native-community/datetimepicker": "8.2.0",
|
|
64
62
|
"@react-native-community/netinfo": "11.3.3",
|
|
65
|
-
"@react-native/babel-preset": "0.
|
|
66
|
-
"@react-native/metro-config": "0.
|
|
67
|
-
"@react-native/typescript-config": "0.
|
|
63
|
+
"@react-native/babel-preset": "0.78.3",
|
|
64
|
+
"@react-native/metro-config": "0.78.3",
|
|
65
|
+
"@react-native/typescript-config": "0.78.3",
|
|
68
66
|
"@shopify/flash-list": "1.7.6",
|
|
69
|
-
"@testing-library/react-native": "^
|
|
70
|
-
"@types/hoist-non-react-statics": "^3.3.
|
|
67
|
+
"@testing-library/react-native": "^13.3.3",
|
|
68
|
+
"@types/hoist-non-react-statics": "^3.3.7",
|
|
71
69
|
"@types/jest": "^29.5.13",
|
|
72
70
|
"@types/lodash": "^4.0.0",
|
|
73
|
-
"@types/
|
|
74
|
-
"@types/react": "
|
|
75
|
-
"@types/react-test-renderer": "^18.3.0",
|
|
71
|
+
"@types/react": "19.0.0",
|
|
72
|
+
"@types/react-test-renderer": "19.0.0",
|
|
76
73
|
"@types/tinycolor2": "^1.4.2",
|
|
77
74
|
"@types/url-parse": "^1.4.3",
|
|
78
75
|
"@welldone-software/why-did-you-render": "^3.2.1",
|
|
@@ -85,33 +82,34 @@
|
|
|
85
82
|
"postcss": "^8.4.21",
|
|
86
83
|
"postcss-js": "^4.0.0",
|
|
87
84
|
"prettier": "^3.2.5",
|
|
88
|
-
"react": "
|
|
85
|
+
"react": "19.0.0",
|
|
89
86
|
"react-autobind": "^1.0.6",
|
|
90
|
-
"react-dom": "
|
|
91
|
-
"react-native": "0.
|
|
87
|
+
"react-dom": "19.0.0",
|
|
88
|
+
"react-native": "0.78.3",
|
|
92
89
|
"react-native-fs": "^2.20.0",
|
|
93
90
|
"react-native-gesture-handler": "2.24.0",
|
|
94
91
|
"react-native-haptic-feedback": "^1.11.0",
|
|
95
92
|
"react-native-linear-gradient": "2.6.2",
|
|
96
93
|
"react-native-mmkv": "3.2.0",
|
|
97
|
-
"react-native-navigation": "8.
|
|
98
|
-
"react-native-reanimated": "3.
|
|
94
|
+
"react-native-navigation": "8.4.3",
|
|
95
|
+
"react-native-reanimated": "3.19.4",
|
|
99
96
|
"react-native-shimmer-placeholder": "^2.0.6",
|
|
100
97
|
"react-native-svg": "15.11.2",
|
|
101
98
|
"react-native-svg-transformer": "1.5.0",
|
|
102
|
-
"react-test-renderer": "
|
|
99
|
+
"react-test-renderer": "19.0.0",
|
|
103
100
|
"reassure": "^0.4.1",
|
|
104
101
|
"setimmediate": "^1.0.5",
|
|
105
102
|
"shell-utils": "^1.0.10",
|
|
106
103
|
"typescript": "5.0.4",
|
|
107
|
-
"uilib-native": "
|
|
104
|
+
"uilib-native": "5.1.0-snapshot.7635"
|
|
108
105
|
},
|
|
109
106
|
"peerDependencies": {
|
|
110
|
-
"react": ">=
|
|
107
|
+
"react": ">=19.0.0",
|
|
111
108
|
"react-native": ">=0.77.3",
|
|
112
109
|
"react-native-gesture-handler": ">=2.24.0",
|
|
113
|
-
"react-native-reanimated": ">=3.
|
|
114
|
-
"
|
|
110
|
+
"react-native-reanimated": ">=3.19.4",
|
|
111
|
+
"react-native-ui-lib": "*",
|
|
112
|
+
"uilib-native": "5.1.0-snapshot.7635"
|
|
115
113
|
},
|
|
116
114
|
"jest": {
|
|
117
115
|
"preset": "react-native",
|
|
@@ -3,6 +3,16 @@ const _ = require('lodash');
|
|
|
3
3
|
const chalk = require('chalk');
|
|
4
4
|
const childProcess = require('child_process');
|
|
5
5
|
const readline = require('readline');
|
|
6
|
+
const BRANCH_CATEGORIES = [
|
|
7
|
+
{name: 'features', branch: 'feat/', title: ':gift: Features'},
|
|
8
|
+
{name: 'web', branch: 'web/', title: ':spider_web: Web support'},
|
|
9
|
+
{name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
|
|
10
|
+
{name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'}
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
function getBranchPrefixes() {
|
|
14
|
+
return BRANCH_CATEGORIES.map(category => category.branch);
|
|
15
|
+
}
|
|
6
16
|
|
|
7
17
|
function fetchLatestReleaseDate(tagPrefix, version) {
|
|
8
18
|
const release = childProcess.execSync(`gh release view ${tagPrefix}${version}`).toString();
|
|
@@ -171,10 +181,7 @@ function generateReleaseNotesFromPRs(PRs, categories, header) {
|
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
const prCategories = [
|
|
174
|
-
|
|
175
|
-
{name: 'web', branch: 'web/', title: ':spider_web: Web support'},
|
|
176
|
-
{name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
|
|
177
|
-
{name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'},
|
|
184
|
+
...BRANCH_CATEGORIES,
|
|
178
185
|
...categories,
|
|
179
186
|
{name: 'others', branch: '', title: 'OTHERS'},
|
|
180
187
|
{
|
|
@@ -253,4 +260,4 @@ async function generateReleaseNotes(latestVersion,
|
|
|
253
260
|
});
|
|
254
261
|
}
|
|
255
262
|
|
|
256
|
-
module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR};
|
|
263
|
+
module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR, getBranchPrefixes};
|
|
@@ -32,7 +32,7 @@ function asBaseComponent(WrappedComponent, options = {}) {
|
|
|
32
32
|
return Modifiers.getThemeProps.call(WrappedComponent, props, context);
|
|
33
33
|
};
|
|
34
34
|
static getDerivedStateFromError(error) {
|
|
35
|
-
UIComponent.defaultProps?.onError?.(error
|
|
35
|
+
UIComponent.defaultProps?.onError?.(error);
|
|
36
36
|
return {
|
|
37
37
|
error: true
|
|
38
38
|
};
|
|
@@ -55,6 +55,7 @@ function asBaseComponent(WrappedComponent, options = {}) {
|
|
|
55
55
|
hoistStatics(BaseComponent, WrappedComponent);
|
|
56
56
|
BaseComponent.displayName = WrappedComponent.displayName;
|
|
57
57
|
BaseComponent.propTypes = WrappedComponent.propTypes;
|
|
58
|
+
// @ts-expect-error class component have defaultProps and functions do not and so should not be affected by this
|
|
58
59
|
BaseComponent.defaultProps = WrappedComponent.defaultProps;
|
|
59
60
|
const ThemeContext = ThemeManager.getThemeContext();
|
|
60
61
|
if (ThemeContext) {
|
|
@@ -8,20 +8,12 @@ import _includes from "lodash/includes";
|
|
|
8
8
|
import _pickBy from "lodash/pickBy";
|
|
9
9
|
import _pick from "lodash/pick";
|
|
10
10
|
import React from 'react';
|
|
11
|
-
// import PropTypes from 'prop-types';
|
|
12
11
|
import { StyleSheet } from 'react-native';
|
|
13
12
|
import { Colors } from "../style";
|
|
14
13
|
import * as Modifiers from "./modifiers";
|
|
15
14
|
export default function baseComponent(usePure) {
|
|
16
15
|
const parent = usePure ? React.PureComponent : React.Component;
|
|
17
16
|
class BaseComponent extends parent {
|
|
18
|
-
// static propTypes = {
|
|
19
|
-
// ..._.mapValues(Typography, () => PropTypes.bool),
|
|
20
|
-
// ..._.mapValues(Colors, () => PropTypes.bool),
|
|
21
|
-
// useNativeDriver: PropTypes.bool,
|
|
22
|
-
// };
|
|
23
|
-
|
|
24
|
-
static extractOwnProps = Modifiers.extractOwnProps;
|
|
25
17
|
constructor(props) {
|
|
26
18
|
super(props);
|
|
27
19
|
if (!this.styles) {
|
|
@@ -8,11 +8,8 @@ export default function forwardRef(WrappedComponent) {
|
|
|
8
8
|
// @ts-expect-error
|
|
9
9
|
const ForwardedComponent = React.forwardRef(forwardRef);
|
|
10
10
|
hoistStatics(ForwardedComponent, WrappedComponent);
|
|
11
|
-
//@ts-ignore
|
|
12
11
|
ForwardedComponent.displayName = WrappedComponent.displayName;
|
|
13
|
-
|
|
14
|
-
ForwardedComponent.propTypes = WrappedComponent.propTypes;
|
|
15
|
-
//@ts-ignore
|
|
12
|
+
// @ts-expect-error
|
|
16
13
|
ForwardedComponent.defaultProps = WrappedComponent.defaultProps;
|
|
17
14
|
return ForwardedComponent;
|
|
18
15
|
}
|
|
@@ -105,12 +105,6 @@ export declare function extractAccessibilityProps(props?: any): Partial<any>;
|
|
|
105
105
|
export declare function extractAnimationProps(props?: any): Pick<any, "animation" | "duration" | "delay" | "direction" | "easing" | "iterationCount" | "transition" | "onAnimationBegin" | "onAnimationEnd" | "useNativeDriver">;
|
|
106
106
|
export declare function extractBorderRadiusValue(props: Dictionary<any>): number | undefined;
|
|
107
107
|
export declare function extractModifierProps(props: Dictionary<any>): _.Dictionary<any>;
|
|
108
|
-
/**
|
|
109
|
-
* TODO:
|
|
110
|
-
* @deprecated switch to Modifiers#extractComponentProps
|
|
111
|
-
*/
|
|
112
|
-
export declare function extractOwnProps(props: Dictionary<any>, ignoreProps: string[]): _.Omit<_.Dictionary<any>, string>;
|
|
113
|
-
export declare function extractComponentProps(component: any, props: Dictionary<any>, ignoreProps?: string[]): _.Omit<_.Dictionary<any>, string>;
|
|
114
108
|
export declare function getComponentName(componentDisplayName: string): any;
|
|
115
109
|
export declare function getThemeProps<T extends object>(props?: T, context?: any, componentDisplayName?: string): T;
|
|
116
110
|
export declare function generateModifiersStyle(options: ModifiersOptions | undefined, props: Dictionary<any>): ExtractedStyle;
|
package/src/commons/modifiers.js
CHANGED
|
@@ -2,8 +2,6 @@ import _isEqual from "lodash/isEqual";
|
|
|
2
2
|
import _keys from "lodash/keys";
|
|
3
3
|
import _union from "lodash/union";
|
|
4
4
|
import _isFunction from "lodash/isFunction";
|
|
5
|
-
import _omit from "lodash/omit";
|
|
6
|
-
import _flow from "lodash/flow";
|
|
7
5
|
import _find from "lodash/find";
|
|
8
6
|
import _pick from "lodash/pick";
|
|
9
7
|
import _pickBy from "lodash/pickBy";
|
|
@@ -232,22 +230,6 @@ export function extractModifierProps(props) {
|
|
|
232
230
|
});
|
|
233
231
|
return modifierProps;
|
|
234
232
|
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* TODO:
|
|
238
|
-
* @deprecated switch to Modifiers#extractComponentProps
|
|
239
|
-
*/
|
|
240
|
-
export function extractOwnProps(props, ignoreProps) {
|
|
241
|
-
//@ts-ignore
|
|
242
|
-
const ownPropTypes = this.propTypes;
|
|
243
|
-
const ownProps = _flow(props => _pickBy(props, (_value, key) => _includes(Object.keys(ownPropTypes), key)), props => _omit(props, ignoreProps))(props);
|
|
244
|
-
return ownProps;
|
|
245
|
-
}
|
|
246
|
-
export function extractComponentProps(component, props, ignoreProps = []) {
|
|
247
|
-
const componentPropTypes = component.propTypes;
|
|
248
|
-
const componentProps = _flow(props => _pickBy(props, (_value, key) => _includes(Object.keys(componentPropTypes), key)), props => _omit(props, ignoreProps))(props);
|
|
249
|
-
return componentProps;
|
|
250
|
-
}
|
|
251
233
|
export function getComponentName(componentDisplayName) {
|
|
252
234
|
//@ts-ignore
|
|
253
235
|
return componentDisplayName || this.displayName || this.constructor.displayName || this.constructor.name;
|
|
@@ -46,10 +46,6 @@ function withScrollEnabler(WrappedComponent) {
|
|
|
46
46
|
};
|
|
47
47
|
hoistStatics(ScrollEnabler, WrappedComponent);
|
|
48
48
|
ScrollEnabler.displayName = WrappedComponent.displayName;
|
|
49
|
-
//@ts-ignore
|
|
50
|
-
ScrollEnabler.propTypes = WrappedComponent.propTypes;
|
|
51
|
-
//@ts-ignore
|
|
52
|
-
ScrollEnabler.defaultProps = WrappedComponent.defaultProps;
|
|
53
49
|
return forwardRef(ScrollEnabler);
|
|
54
50
|
}
|
|
55
51
|
export default withScrollEnabler;
|
|
@@ -57,10 +57,6 @@ function withScrollReached(WrappedComponent, options = {}) {
|
|
|
57
57
|
};
|
|
58
58
|
hoistStatics(ScrollReachedDetector, WrappedComponent);
|
|
59
59
|
ScrollReachedDetector.displayName = WrappedComponent.displayName;
|
|
60
|
-
//@ts-ignore
|
|
61
|
-
ScrollReachedDetector.propTypes = WrappedComponent.propTypes;
|
|
62
|
-
//@ts-ignore
|
|
63
|
-
ScrollReachedDetector.defaultProps = WrappedComponent.defaultProps;
|
|
64
60
|
return forwardRef(ScrollReachedDetector);
|
|
65
61
|
}
|
|
66
62
|
export default withScrollReached;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import {Component} from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
3
|
import ReactNative, {DeviceEventEmitter, Keyboard} from 'react-native';
|
|
5
4
|
|
|
6
5
|
export default class KeyboardAwareBase extends Component {
|
|
@@ -22,12 +21,6 @@ export default class KeyboardAwareBase extends Component {
|
|
|
22
21
|
this._addKeyboardEventListeners();
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
static propTypes = {
|
|
26
|
-
startScrolledToBottom: PropTypes.bool,
|
|
27
|
-
scrollToBottomOnKBShow: PropTypes.bool,
|
|
28
|
-
scrollToInputAdditionalOffset: PropTypes.number
|
|
29
|
-
};
|
|
30
|
-
|
|
31
24
|
static defaultProps = {
|
|
32
25
|
startScrolledToBottom: false,
|
|
33
26
|
scrollToBottomOnKBShow: false,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import {FlatList} from 'react-native';
|
|
4
3
|
import KeyboardAwareBase from './KeyboardAwareBase';
|
|
5
4
|
|
|
@@ -10,11 +9,6 @@ import KeyboardAwareBase from './KeyboardAwareBase';
|
|
|
10
9
|
export default class KeyboardAwareFlatList extends KeyboardAwareBase {
|
|
11
10
|
static displayName = 'KeyboardAwareFlatList';
|
|
12
11
|
|
|
13
|
-
static PropTypes = {
|
|
14
|
-
getTextInputRefs: PropTypes.func,
|
|
15
|
-
onScroll: PropTypes.func
|
|
16
|
-
};
|
|
17
|
-
|
|
18
12
|
static defaultProps = {
|
|
19
13
|
...KeyboardAwareBase.defaultProps,
|
|
20
14
|
getTextInputRefs: () => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import {ScrollView} from 'react-native';
|
|
4
3
|
import KeyboardAwareBase from './KeyboardAwareBase';
|
|
5
4
|
|
|
@@ -10,11 +9,6 @@ import KeyboardAwareBase from './KeyboardAwareBase';
|
|
|
10
9
|
export default class KeyboardAwareScrollView extends KeyboardAwareBase {
|
|
11
10
|
static displayName = 'KeyboardAwareScrollView';
|
|
12
11
|
|
|
13
|
-
static PropTypes = {
|
|
14
|
-
getTextInputRefs: PropTypes.func,
|
|
15
|
-
onScroll: PropTypes.func
|
|
16
|
-
};
|
|
17
|
-
|
|
18
12
|
static defaultProps = {
|
|
19
13
|
...KeyboardAwareBase.defaultProps,
|
|
20
14
|
getTextInputRefs: () => {
|
|
@@ -4,11 +4,11 @@ export declare const WheelPickerDriver: (props: ComponentProps) => {
|
|
|
4
4
|
moveToItem: (index: number, itemHeight?: number, numberOfRows?: number) => void;
|
|
5
5
|
getLabel: () => string | (string | import("react-test-renderer").ReactTestInstance)[];
|
|
6
6
|
scroll: (contentOffset: Partial<import("react-native/types").NativeScrollPoint>, options?: {
|
|
7
|
-
contentInset: import("react-native/types").NativeScrollRectangle;
|
|
8
|
-
zoomScale: number;
|
|
9
7
|
layoutMeasurement: import("react-native/types").NativeScrollSize;
|
|
10
8
|
contentSize: import("react-native/types").NativeScrollSize;
|
|
11
9
|
velocity?: import("react-native/types").NativeScrollVelocity | undefined;
|
|
10
|
+
contentInset: import("react-native/types").NativeScrollRectangle;
|
|
11
|
+
zoomScale: number;
|
|
12
12
|
targetContentOffset?: import("react-native/types").NativeScrollPoint | undefined;
|
|
13
13
|
} | undefined) => void;
|
|
14
14
|
triggerEvent: (eventName?: string | undefined, event?: Partial<import("react-native/types").NativeScrollEvent> | undefined) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
2
|
import { TextStyle, ViewStyle, FlatListProps } from 'react-native';
|
|
3
3
|
import { TextProps } from '../text';
|
|
4
4
|
import { FaderProps } from '../fader';
|
|
@@ -81,7 +81,7 @@ export type WheelPickerProps<T = WheelPickerItemValue> = {
|
|
|
81
81
|
flatListProps?: Partial<FlatListProps<WheelPickerItemProps<T>>>;
|
|
82
82
|
};
|
|
83
83
|
declare const WheelPicker: {
|
|
84
|
-
<T extends WheelPickerItemValue>(props: WheelPickerProps<T>):
|
|
84
|
+
<T extends WheelPickerItemValue>(props: WheelPickerProps<T>): JSX.Element;
|
|
85
85
|
alignments: typeof WheelPickerAlign;
|
|
86
86
|
};
|
|
87
87
|
export default WheelPicker;
|
|
@@ -39,7 +39,7 @@ const WheelPicker = props => {
|
|
|
39
39
|
faderProps,
|
|
40
40
|
flatListProps
|
|
41
41
|
} = themeProps;
|
|
42
|
-
const scrollView = useRef();
|
|
42
|
+
const scrollView = useRef(undefined);
|
|
43
43
|
const offset = useSharedValue(0);
|
|
44
44
|
const scrollHandler = useAnimatedScrollHandler(e => {
|
|
45
45
|
offset.value = e.contentOffset.y;
|
|
@@ -13,7 +13,7 @@ export interface AnimatedImageProps extends ImageProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* A component to render while the image is loading
|
|
15
15
|
*/
|
|
16
|
-
loader?: React.ReactElement
|
|
16
|
+
loader?: React.ReactElement<any>;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @description: Image component that fades-in the image with animation once it's loaded
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import {StyleSheet, Animated} from 'react-native';
|
|
5
|
-
import {ViewPropTypes} from 'deprecated-react-native-prop-types';
|
|
6
4
|
import {Colors} from '../../style';
|
|
7
5
|
import {BaseComponent} from '../../commons';
|
|
8
6
|
import View from '../../components/view';
|
|
@@ -16,41 +14,6 @@ import View from '../../components/view';
|
|
|
16
14
|
*/
|
|
17
15
|
export default class AnimatedScanner extends BaseComponent {
|
|
18
16
|
static displayName = 'AnimatedScanner';
|
|
19
|
-
static propTypes = {
|
|
20
|
-
/**
|
|
21
|
-
* animated value between 0 and 100
|
|
22
|
-
*/
|
|
23
|
-
// progress: PropTypes.object,
|
|
24
|
-
progress: PropTypes.number,
|
|
25
|
-
/**
|
|
26
|
-
* Duration of current break (can be change between breaks)
|
|
27
|
-
*/
|
|
28
|
-
duration: PropTypes.number,
|
|
29
|
-
/**
|
|
30
|
-
* scanner opacity
|
|
31
|
-
*/
|
|
32
|
-
opacity: PropTypes.number,
|
|
33
|
-
/**
|
|
34
|
-
* scanner background color
|
|
35
|
-
*/
|
|
36
|
-
backgroundColor: PropTypes.string,
|
|
37
|
-
/**
|
|
38
|
-
* breakpoint callback - ({progress, isDone}) => {}
|
|
39
|
-
*/
|
|
40
|
-
onBreakpoint: PropTypes.func,
|
|
41
|
-
/**
|
|
42
|
-
* should hide the scanner line
|
|
43
|
-
*/
|
|
44
|
-
hideScannerLine: PropTypes.bool,
|
|
45
|
-
/**
|
|
46
|
-
* the container style
|
|
47
|
-
*/
|
|
48
|
-
containerStyle: ViewPropTypes.style,
|
|
49
|
-
/**
|
|
50
|
-
* Used as a testing identifier
|
|
51
|
-
*/
|
|
52
|
-
testID: PropTypes.string
|
|
53
|
-
};
|
|
54
17
|
|
|
55
18
|
static defaultProps = {
|
|
56
19
|
progress: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { PropsWithChildren, type JSX } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle, ImagePropsBase, ImageStyle, TextStyle, TextProps, AccessibilityProps } from 'react-native';
|
|
3
3
|
import { BadgeProps } from '../badge';
|
|
4
4
|
import { ImageProps } from '../image';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent, type JSX } from 'react';
|
|
2
2
|
import { ImageSourcePropType, ImageStyle, StyleProp, TextStyle, TouchableOpacityProps, ViewStyle, ViewProps } from 'react-native';
|
|
3
3
|
declare const LABEL_FORMATTER_VALUES: readonly [1, 2, 3, 4];
|
|
4
4
|
type LabelFormatterValues = typeof LABEL_FORMATTER_VALUES[number];
|
|
@@ -89,10 +89,10 @@ declare class Badge extends PureComponent<BadgeProps> {
|
|
|
89
89
|
getBadgeSizeStyle(): any;
|
|
90
90
|
getFormattedLabel(): any;
|
|
91
91
|
getBorderStyling(): ViewStyle;
|
|
92
|
-
renderLabel():
|
|
92
|
+
renderLabel(): JSX.Element | undefined;
|
|
93
93
|
renderCustomElement(): JSX.Element | undefined;
|
|
94
|
-
renderIcon(): 0 |
|
|
95
|
-
render():
|
|
94
|
+
renderIcon(): 0 | JSX.Element | undefined;
|
|
95
|
+
render(): JSX.Element;
|
|
96
96
|
}
|
|
97
97
|
declare function createStyles(props: BadgeProps): {
|
|
98
98
|
badge: {
|