react-native-ui-lib 8.3.2-snapshot.7746 → 8.3.2-snapshot.7754
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/ReactNativeUiLib.podspec +22 -0
- package/lib/android/build.gradle +3 -3
- 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/KeyboardRegistry/index.js +1 -5
- package/lib/components/Keyboard/KeyboardAccessoryView/index.d.ts +2 -2
- package/lib/components/Keyboard/KeyboardAccessoryView/index.js +1 -3
- package/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.js +1 -3
- package/lib/components/Keyboard/KeyboardTrackingView/index.d.ts +2 -6
- package/lib/components/Keyboard/KeyboardTrackingView/index.js +4 -5
- package/lib/components/Keyboard/index.d.ts +1 -2
- package/lib/package.json +21 -20
- package/lib/react-native.config.js +1 -1
- package/package.json +164 -160
- package/screenFooter.d.ts +2 -0
- package/screenFooter.js +1 -0
- package/scripts/release/prReleaseNotesCommon.js +2 -1
- package/src/assets/internal/images/bottomGradient.png +0 -0
- package/src/assets/internal/images/bottomGradient@1.5x.png +0 -0
- package/src/assets/internal/images/bottomGradient@2x.png +0 -0
- package/src/assets/internal/images/bottomGradient@3x.png +0 -0
- package/src/assets/internal/images/bottomGradient@4x.png +0 -0
- package/src/assets/internal/images/index.js +3 -0
- package/src/commons/asBaseComponent.js +1 -2
- package/src/commons/baseComponent.js +8 -0
- package/src/commons/forwardRef.js +4 -1
- package/src/commons/modifiers.d.ts +6 -0
- package/src/commons/modifiers.js +18 -0
- package/src/commons/withScrollEnabler.js +6 -4
- package/src/commons/withScrollReached.js +4 -0
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +7 -0
- package/src/components/KeyboardAwareScrollView/KeyboardAwareFlatList.js +6 -0
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +6 -0
- 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 +37 -0
- 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 +1 -0
- package/src/components/baseInput/index.js +49 -1
- 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 +1 -4
- package/src/components/carousel/types.js +2 -0
- 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/dialog/useDialogContent.d.ts +1 -1
- 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 +7 -5
- package/src/components/gridListItem/index.d.ts +7 -7
- 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 +3 -0
- package/src/components/image/index.d.ts +1 -1
- package/src/components/image/index.js +17 -20
- 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 +4 -21
- package/src/components/maskedInput/index.js +18 -79
- package/src/components/maskedInput/maskedInput.api.json +1 -0
- package/src/components/maskedInput/new.d.ts +22 -0
- package/src/components/maskedInput/new.js +85 -0
- package/src/components/maskedInput/old.js +95 -0
- package/src/components/modal/index.d.ts +3 -3
- package/src/components/modal/index.js +12 -9
- package/src/components/numberInput/index.js +2 -2
- package/src/components/overlay/index.d.ts +1 -1
- package/src/components/picker/PickerDialog.android.js +15 -0
- package/src/components/picker/PickerDialog.js +7 -0
- 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/screenFooter/index.d.ts +8 -0
- package/src/components/screenFooter/index.js +211 -0
- package/src/components/screenFooter/screenFooter.api.json +262 -0
- package/src/components/screenFooter/types.d.ts +100 -0
- package/src/components/screenFooter/types.js +39 -0
- package/src/components/scrollBar/index.d.ts +4 -11
- 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/index.js +10 -8
- 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 +6 -0
- 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 +36 -36
- package/src/components/textFieldOld/index.d.ts +71 -0
- package/src/components/textFieldOld/index.js +807 -0
- package/src/components/timeline/index.js +1 -1
- package/src/components/toast/index.js +69 -0
- package/src/components/view/index.js +5 -2
- 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/helpers/DocsGenerator.js +61 -0
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/useCombinedRefs/index.js +2 -1
- 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/hooks/useScrollToHide/index.d.ts +24 -0
- package/src/hooks/useScrollToHide/index.js +48 -0
- 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/expandableOverlay/index.js +7 -3
- 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/index.d.ts +1 -0
- package/src/index.js +70 -0
- package/src/optionalDependencies/SafeAreaContextPackage.d.ts +2 -0
- package/src/optionalDependencies/SafeAreaContextPackage.js +5 -0
- package/src/optionalDependencies/index.d.ts +1 -0
- package/src/optionalDependencies/index.js +2 -1
- package/src/testkit/Component.driver.d.ts +1 -1
- package/src/testkit/drivers/TestingLibraryDriver.d.ts +1 -1
- package/src/typings/module.d.ts +3 -12
- package/textFieldOld.d.ts +2 -0
- package/textFieldOld.js +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, 'lib/package.json')))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "ReactNativeUiLib"
|
|
7
|
+
s.version = package['version']
|
|
8
|
+
s.summary = "React Native UI Library"
|
|
9
|
+
|
|
10
|
+
s.authors = "Wix.com"
|
|
11
|
+
s.homepage = package['homepage']
|
|
12
|
+
s.license = package['license']
|
|
13
|
+
s.platforms = { :ios => "9.0", :tvos => "9.2" }
|
|
14
|
+
|
|
15
|
+
s.module_name = 'ReactNativeUiLib'
|
|
16
|
+
|
|
17
|
+
s.source = { :git => "https://github.com/wix/react-native-ui-lib.git", :tag => "#{s.version}" }
|
|
18
|
+
s.source_files = "lib/ios/**/*.{h,m}"
|
|
19
|
+
|
|
20
|
+
s.dependency 'React'
|
|
21
|
+
s.frameworks = 'UIKit'
|
|
22
|
+
end
|
package/lib/android/build.gradle
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
project.ext {
|
|
4
|
-
buildToolsVersion = rootProject.ext.has("buildToolsVersion") ? rootProject.ext.buildToolsVersion : '
|
|
4
|
+
buildToolsVersion = rootProject.ext.has("buildToolsVersion") ? rootProject.ext.buildToolsVersion : '36.0.0'
|
|
5
5
|
minSdkVersion = rootProject.ext.has("minSdkVersion") ? rootProject.ext.minSdkVersion : 24
|
|
6
|
-
compileSdkVersion = rootProject.ext.has("compileSdkVersion") ? rootProject.ext.compileSdkVersion :
|
|
7
|
-
targetSdkVersion = rootProject.ext.has("targetSdkVersion") ? rootProject.ext.targetSdkVersion :
|
|
6
|
+
compileSdkVersion = rootProject.ext.has("compileSdkVersion") ? rootProject.ext.compileSdkVersion : 36
|
|
7
|
+
targetSdkVersion = rootProject.ext.has("targetSdkVersion") ? rootProject.ext.targetSdkVersion : 36
|
|
8
8
|
supportLibVersion = rootProject.ext.has("supportLibVersion") ? rootProject.ext.supportLibVersion : '28.0.0'
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React 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): JSX.Element;
|
|
31
|
+
(props: HighlighterOverlayViewProps): React.JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
34
|
export default HighlighterOverlayView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React 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): JSX.Element;
|
|
31
|
+
(props: HighlighterOverlayViewProps): React.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.ReactChild | React.ReactChild[];
|
|
13
13
|
};
|
|
14
14
|
export default class CustomKeyboardViewBase<T extends CustomKeyboardViewBaseProps> extends Component<T> {
|
|
15
15
|
static defaultProps: {
|
|
@@ -33,8 +33,6 @@ export default class KeyboardRegistry {
|
|
|
33
33
|
*/
|
|
34
34
|
static registerKeyboard = (componentID, generator, params = {}) => {
|
|
35
35
|
if (!_isFunction(generator)) {
|
|
36
|
-
// TODO: do we want to add a util for this?
|
|
37
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
38
36
|
console.error(`KeyboardRegistry.registerKeyboard: ${componentID} you must register a generator function`);
|
|
39
37
|
return;
|
|
40
38
|
}
|
|
@@ -52,9 +50,7 @@ export default class KeyboardRegistry {
|
|
|
52
50
|
*/
|
|
53
51
|
static getKeyboard = componentID => {
|
|
54
52
|
const res = KeyboardRegistry.registeredKeyboards[componentID];
|
|
55
|
-
if (!res
|
|
56
|
-
// TODO: do we want to add a util for this?
|
|
57
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
53
|
+
if (!res || !res.generator) {
|
|
58
54
|
console.error(`KeyboardRegistry.getKeyboard: ${componentID} used but not yet registered`);
|
|
59
55
|
return undefined;
|
|
60
56
|
}
|
|
@@ -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;
|
|
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.ReactChild;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* @description: View that allows replacing the default keyboard with other components
|
|
@@ -141,9 +141,7 @@ class KeyboardAccessoryView extends Component {
|
|
|
141
141
|
scrollBehavior,
|
|
142
142
|
...others
|
|
143
143
|
} = this.props;
|
|
144
|
-
return <KeyboardTrackingView {...others} scrollBehavior={scrollBehavior} ref={r => {
|
|
145
|
-
this.trackingViewRef = r;
|
|
146
|
-
}} style={styles.trackingToolbarContainer} onLayout={this.onContainerComponentHeightChanged}>
|
|
144
|
+
return <KeyboardTrackingView {...others} scrollBehavior={scrollBehavior} ref={r => this.trackingViewRef = r} style={styles.trackingToolbarContainer} onLayout={this.onContainerComponentHeightChanged}>
|
|
147
145
|
<KeyboardHeightListener id={`${this.id}`} onDismiss={this.onDismiss} onKeyboardHeightChange={this.onKeyboardHeightChange} />
|
|
148
146
|
<>{renderContent?.()}</>
|
|
149
147
|
<CustomKeyboardView keyboardHeight={keyboardHeight} shouldFocus={shouldFocus} onKeyboardDismiss={this.onKeyboardDismiss} inputRef={kbInputRef} component={kbComponent} initialProps={this.processInitialProps()} onItemSelected={onItemSelected} onRequestShowKeyboard={onRequestShowKeyboard} useSafeArea={others.useSafeArea} />
|
|
@@ -18,9 +18,7 @@ class KeyboardTrackingView extends PureComponent {
|
|
|
18
18
|
useSafeArea: false
|
|
19
19
|
};
|
|
20
20
|
render() {
|
|
21
|
-
return <KeyboardTrackingViewNativeComponent {...this.props} ref={r =>
|
|
22
|
-
this.ref = r;
|
|
23
|
-
}} />;
|
|
21
|
+
return <KeyboardTrackingViewNativeComponent {...this.props} ref={r => this.ref = r} />;
|
|
24
22
|
}
|
|
25
23
|
async getNativeProps() {
|
|
26
24
|
if (this.ref && KeyboardTrackingViewTempManager && KeyboardTrackingViewTempManager.getNativeProps) {
|
|
@@ -73,13 +73,9 @@ export type KeyboardTrackingViewProps = ViewProps & {
|
|
|
73
73
|
usesBottomTabs?: boolean;
|
|
74
74
|
ref?: any;
|
|
75
75
|
style?: StyleProp<ViewStyle>;
|
|
76
|
-
children?: React.
|
|
76
|
+
children?: React.ReactChild | React.ReactChild[];
|
|
77
77
|
};
|
|
78
|
-
declare const
|
|
79
|
-
declare const KeyboardTrackingView: React.ForwardRefExoticComponent<Omit<KeyboardTrackingViewProps, "ref"> & React.RefAttributes<unknown>>;
|
|
80
|
-
type KeyboardTrackingViewType = typeof KeyboardTrackingView & {
|
|
78
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<KeyboardTrackingViewProps, "ref"> & React.RefAttributes<unknown>> & {
|
|
81
79
|
scrollBehaviors: typeof SCROLL_BEHAVIORS;
|
|
82
|
-
defaultProps: typeof defaultProps;
|
|
83
80
|
};
|
|
84
|
-
declare const _default: KeyboardTrackingViewType;
|
|
85
81
|
export default _default;
|
|
@@ -8,16 +8,15 @@ 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 = {};
|
|
12
11
|
const KeyboardTrackingView = forwardRef(({
|
|
13
12
|
children,
|
|
14
13
|
...others
|
|
15
14
|
}, ref) => {
|
|
16
15
|
const KeyboardTrackingViewContainer = isAndroid ? KeyboardTrackingViewAndroid : KeyboardTrackingViewIOS;
|
|
17
|
-
return <KeyboardTrackingViewContainer {...
|
|
16
|
+
return <KeyboardTrackingViewContainer {...others} ref={ref}>
|
|
18
17
|
{children}
|
|
19
18
|
</KeyboardTrackingViewContainer>;
|
|
20
19
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export default KeyboardTrackingView;
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
KeyboardTrackingView.scrollBehaviors = SCROLL_BEHAVIORS;
|
|
@@ -11,7 +11,6 @@ declare const _default: {
|
|
|
11
11
|
SCROLL_TO_BOTTOM_INVERTED_ONLY: any;
|
|
12
12
|
FIXED_OFFSET: any;
|
|
13
13
|
};
|
|
14
|
-
defaultProps: KeyboardTrackingViewProps;
|
|
15
14
|
};
|
|
16
15
|
KeyboardAwareInsetsView: {
|
|
17
16
|
(props: import("react-native/types").ViewProps & {
|
|
@@ -28,7 +27,7 @@ declare const _default: {
|
|
|
28
27
|
usesBottomTabs?: boolean | undefined;
|
|
29
28
|
ref?: any;
|
|
30
29
|
style?: import("react-native/types").StyleProp<import("react-native/types").ViewStyle>;
|
|
31
|
-
children?: import("react").
|
|
30
|
+
children?: import("react").ReactChild | import("react").ReactChild[] | undefined;
|
|
32
31
|
} & {
|
|
33
32
|
offset?: number | undefined;
|
|
34
33
|
}): import("react").JSX.Element;
|
package/lib/package.json
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
"name": "uilib-native",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"homepage": "https://github.com/wix/react-native-ui-lib",
|
|
5
|
+
"description": "uilib native components (separated from js components)",
|
|
6
|
+
"main": "components/index",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"releaseNative": "node ./scripts/releaseNative.js"
|
|
9
|
+
},
|
|
10
|
+
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"lodash": "^4.17.21",
|
|
14
|
+
"prop-types": "^15.5.10"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"shell-utils": "^1.0.10"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=18.3.1",
|
|
21
|
+
"react-native": ">=0.77.3"
|
|
22
|
+
}
|
|
22
23
|
}
|
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
/* TODO: Once we upgrade to RN69 we should try using podspecPath again, for now I copied ReactNativeUiLib.podspec file to the root - it seems to work
|
|
5
5
|
I copied it, because we need it for both the main uilib and the uilib-native package */
|
|
6
6
|
// ios: {
|
|
7
|
-
// podspecPath: './
|
|
7
|
+
// podspecPath: './lib/ReactNativeUiLib.podspec'
|
|
8
8
|
// },
|
|
9
9
|
android: {
|
|
10
10
|
sourceDir: './android/',
|
package/package.json
CHANGED
|
@@ -1,162 +1,166 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
2
|
+
"name": "react-native-ui-lib",
|
|
3
|
+
"version": "8.3.2-snapshot.7754",
|
|
4
|
+
"main": "src/index.js",
|
|
5
|
+
"types": "src/index.d.ts",
|
|
6
|
+
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
7
|
+
"homepage": "https://github.com/wix/react-native-ui-lib",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/wix/react-native-ui-lib"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"start": "watchman watch-del-all && react-native start --client-logs",
|
|
18
|
+
"pod-install": "(cd ios && pod install)",
|
|
19
|
+
"ios": "react-native run-ios",
|
|
20
|
+
"android": "react-native run-android",
|
|
21
|
+
"iPad": "react-native run-ios --simulator='iPad Pro (9.7 inch)'",
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"test:watch": "jest --watch",
|
|
24
|
+
"test:perf": "TEST_RUNNER_ARGS='--testMatch **/*.perf.js' reassure measure",
|
|
25
|
+
"xcode": "xed ios",
|
|
26
|
+
"build": "node scripts/build/build.js",
|
|
27
|
+
"build:local": "./scripts/build/createLocalPackage.sh",
|
|
28
|
+
"release": "node ./scripts/release/release.js"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"babel-plugin-transform-inline-environment-variables": "^0.0.2",
|
|
32
|
+
"color": "^3.1.0",
|
|
33
|
+
"commons-validator-js": "^1.0.237",
|
|
34
|
+
"date-fns": "^2.29.3",
|
|
35
|
+
"deprecated-react-native-prop-types": "^2.3.0",
|
|
36
|
+
"hoist-non-react-statics": "^3.0.0",
|
|
37
|
+
"lodash": "^4.17.21",
|
|
38
|
+
"memoize-one": "^5.0.5",
|
|
39
|
+
"prop-types": "^15.5.10",
|
|
40
|
+
"react-freeze": "^1.0.0",
|
|
41
|
+
"react-native-redash": "^12.0.3",
|
|
42
|
+
"semver": "^5.5.0",
|
|
43
|
+
"tinycolor2": "^1.4.2",
|
|
44
|
+
"url-parse": "^1.2.0",
|
|
45
|
+
"wix-react-native-text-size": "1.0.9"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/cli": "^7.16.8",
|
|
49
|
+
"@babel/core": "^7.25.2",
|
|
50
|
+
"@babel/plugin-transform-modules-commonjs": "^7.17.9",
|
|
51
|
+
"@babel/preset-env": "^7.25.3",
|
|
52
|
+
"@babel/preset-react": "^7.10.1",
|
|
53
|
+
"@babel/runtime": "^7.26.10",
|
|
54
|
+
"@formatjs/intl-datetimeformat": "^6.0.3",
|
|
55
|
+
"@formatjs/intl-getcanonicallocales": "^2.0.2",
|
|
56
|
+
"@formatjs/intl-locale": "^3.0.3",
|
|
57
|
+
"@formatjs/intl-numberformat": "^8.0.4",
|
|
58
|
+
"@formatjs/intl-pluralrules": "^5.0.3",
|
|
59
|
+
"@react-native-community/blur": "4.4.1",
|
|
60
|
+
"@react-native-community/cli": "15.0.1",
|
|
61
|
+
"@react-native-community/cli-platform-android": "15.0.1",
|
|
62
|
+
"@react-native-community/cli-platform-ios": "15.0.1",
|
|
63
|
+
"@react-native-community/datetimepicker": "8.2.0",
|
|
64
|
+
"@react-native-community/netinfo": "11.3.3",
|
|
65
|
+
"@react-native/babel-preset": "0.77.3",
|
|
66
|
+
"@react-native/metro-config": "0.77.3",
|
|
67
|
+
"@react-native/typescript-config": "0.77.3",
|
|
68
|
+
"@shopify/flash-list": "1.7.6",
|
|
69
|
+
"@testing-library/react-native": "^11.5.1",
|
|
70
|
+
"@types/hoist-non-react-statics": "^3.3.1",
|
|
71
|
+
"@types/jest": "^29.5.13",
|
|
72
|
+
"@types/lodash": "^4.0.0",
|
|
73
|
+
"@types/prop-types": "^15.5.3",
|
|
74
|
+
"@types/react": "18.3.24",
|
|
75
|
+
"@types/react-test-renderer": "^18.3.0",
|
|
76
|
+
"@types/tinycolor2": "^1.4.2",
|
|
77
|
+
"@types/url-parse": "^1.4.3",
|
|
78
|
+
"@welldone-software/why-did-you-render": "^3.2.1",
|
|
79
|
+
"babel-plugin-lodash": "^3.3.4",
|
|
80
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
81
|
+
"jest": "^29.6.3",
|
|
82
|
+
"light-date": "^1.2.0",
|
|
83
|
+
"moment": "^2.24.0",
|
|
84
|
+
"object-hash": "^3.0.0",
|
|
85
|
+
"postcss": "^8.4.21",
|
|
86
|
+
"postcss-js": "^4.0.0",
|
|
87
|
+
"prettier": "^3.2.5",
|
|
88
|
+
"react": "18.3.1",
|
|
89
|
+
"react-autobind": "^1.0.6",
|
|
90
|
+
"react-dom": "18.3.1",
|
|
91
|
+
"react-native": "0.77.3",
|
|
92
|
+
"react-native-fs": "^2.20.0",
|
|
93
|
+
"react-native-gesture-handler": "2.24.0",
|
|
94
|
+
"react-native-haptic-feedback": "^1.11.0",
|
|
95
|
+
"react-native-linear-gradient": "2.6.2",
|
|
96
|
+
"react-native-mmkv": "3.2.0",
|
|
97
|
+
"react-native-navigation": "8.1.2",
|
|
98
|
+
"react-native-reanimated": "3.18.0",
|
|
99
|
+
"react-native-safe-area-context": "5.6.2",
|
|
100
|
+
"react-native-shimmer-placeholder": "^2.0.6",
|
|
101
|
+
"react-native-svg": "15.11.2",
|
|
102
|
+
"react-native-svg-transformer": "1.5.0",
|
|
103
|
+
"react-test-renderer": "18.3.1",
|
|
104
|
+
"reassure": "^0.4.1",
|
|
105
|
+
"setimmediate": "^1.0.5",
|
|
106
|
+
"shell-utils": "^1.0.10",
|
|
107
|
+
"typescript": "5.0.4",
|
|
108
|
+
"uilib-native": "^5.0.1"
|
|
109
|
+
},
|
|
110
|
+
"peerDependencies": {
|
|
111
|
+
"react": ">=18.3.1",
|
|
112
|
+
"react-native": ">=0.77.3",
|
|
113
|
+
"react-native-gesture-handler": ">=2.24.0",
|
|
114
|
+
"react-native-reanimated": ">=3.17.5",
|
|
115
|
+
"react-native-safe-area-context": ">=5.6.2",
|
|
116
|
+
"uilib-native": "^5.0.1"
|
|
117
|
+
},
|
|
118
|
+
"jest": {
|
|
119
|
+
"preset": "react-native",
|
|
120
|
+
"transformIgnorePatterns": [
|
|
121
|
+
"node_modules/(?!(@react-native|react-native|react-native-reanimated|react-native-redash|uilib-native)/)"
|
|
122
|
+
],
|
|
123
|
+
"testPathIgnorePatterns": [
|
|
124
|
+
"/e2e/",
|
|
125
|
+
"/node_modules/",
|
|
126
|
+
"/typings/",
|
|
127
|
+
"/expoDemo/",
|
|
128
|
+
"/uilib-docs/"
|
|
129
|
+
],
|
|
130
|
+
"setupFiles": [
|
|
131
|
+
"./jestSetup/jest-setup.js"
|
|
132
|
+
],
|
|
133
|
+
"testMatch": [
|
|
134
|
+
"**/*.spec.(js|ts|tsx)"
|
|
135
|
+
],
|
|
136
|
+
"fakeTimers": {
|
|
137
|
+
"legacyFakeTimers": true
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"engines": {
|
|
141
|
+
"node": ">=18"
|
|
142
|
+
},
|
|
143
|
+
"files": [
|
|
144
|
+
"*.js",
|
|
145
|
+
"*.d.ts",
|
|
146
|
+
"!scripts",
|
|
147
|
+
"scripts/release/prReleaseNotesCommon.js",
|
|
148
|
+
"scripts/docs/buildDocsCommon.js",
|
|
149
|
+
"src",
|
|
150
|
+
"testkit",
|
|
151
|
+
"ReactNativeUILib.podspec",
|
|
152
|
+
"!babel.config.js",
|
|
153
|
+
"!src/**/*.ts",
|
|
154
|
+
"src/**/*.d.ts",
|
|
155
|
+
"!src/**/*.tsx",
|
|
156
|
+
"!src/**/__tests__",
|
|
157
|
+
"!**/.DS_Store",
|
|
158
|
+
"lib/components",
|
|
159
|
+
"lib/ios",
|
|
160
|
+
"lib/android",
|
|
161
|
+
"!lib/android/build",
|
|
162
|
+
"!lib/scripts",
|
|
163
|
+
"lib/package.json",
|
|
164
|
+
"lib/ReactNativeUILib.podspec"
|
|
165
|
+
]
|
|
162
166
|
}
|
package/screenFooter.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./src/components/screenFooter').default;
|
|
@@ -9,6 +9,7 @@ const BRANCH_CATEGORIES = [
|
|
|
9
9
|
{name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
|
|
10
10
|
{name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'}
|
|
11
11
|
];
|
|
12
|
+
const SILENT_PRS = ['none', 'n/a', 'na'];
|
|
12
13
|
|
|
13
14
|
function getBranchPrefixes() {
|
|
14
15
|
return BRANCH_CATEGORIES.map(category => category.branch);
|
|
@@ -95,7 +96,7 @@ function isSilent(pr) {
|
|
|
95
96
|
return true;
|
|
96
97
|
} else {
|
|
97
98
|
const changelog = pr.info.changelog.toLowerCase();
|
|
98
|
-
if (changelog
|
|
99
|
+
if (SILENT_PRS.includes(changelog)) {
|
|
99
100
|
return true;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|