react-native-ui-lib 7.46.3-snapshot.7358 → 7.46.3-snapshot.7367
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/babel.config.js +0 -12
- package/index.js +0 -1
- package/lib/android/build.gradle +5 -5
- package/lib/android/src/main/java/com/wix/reactnativeuilib/UiLibPackageList.java +2 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/HighlighterViewManager.java +23 -31
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReactHacks.java +30 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/highlighterview/ReflectionUtils.java +34 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/keyboardinput/utils/RuntimeUtils.java +1 -1
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/DefaultKeyListener.java +33 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/KeyListenerProxy.java +53 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerModule.java +54 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/TextInputDelKeyHandlerPackage.java +28 -0
- package/lib/android/src/main/java/com/wix/reactnativeuilib/textinput/ViewUtils.java +36 -0
- package/lib/components/{HighlighterOverlayView/index.d.ts → HighlighterOverlayView.d.ts} +1 -1
- package/lib/components/HighlighterOverlayView.js +40 -0
- package/lib/components/{HighlighterOverlayView/index.web.d.ts → HighlighterOverlayView.web.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.android.d.ts +2 -5
- package/lib/components/Keyboard/KeyboardInput/CustomKeyboardView/CustomKeyboardView.android.js +28 -0
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.d.ts +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/CustomKeyboardView.ios.js +3 -3
- package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.d.ts +0 -3
- package/lib/components/Keyboard/{KeyboardAccessoryView/CustomKeyboardView → KeyboardInput}/CustomKeyboardViewBase.js +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/index.d.ts → KeyboardInput/KeyboardAccessoryView.d.ts} +1 -11
- package/lib/components/Keyboard/{KeyboardAccessoryView/index.js → KeyboardInput/KeyboardAccessoryView.js} +5 -31
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.d.ts → KeyboardInput/KeyboardRegistry.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/index.js → KeyboardInput/KeyboardRegistry.js} +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/__tests__/KeyboardRegistry.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/keyboardAccessoryView.api.json +5 -5
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry → KeyboardInput}/keyboardRegistry.api.json +9 -9
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.d.ts +11 -0
- package/lib/components/Keyboard/KeyboardInput/utils/KeyboardUtils.js +17 -0
- package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager → KeyboardInput/utils}/__tests__/EventEmitterManager.spec.js +1 -1
- package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.d.ts → KeyboardTracking/KeyboardAwareInsetsView.d.ts} +1 -1
- package/lib/components/Keyboard/{KeyboardAwareInsetsView/index.js → KeyboardTracking/KeyboardAwareInsetsView.js} +1 -1
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.d.ts +4 -1
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.ios.js +8 -5
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.d.ts +2 -2
- package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/keyboardTrackingView.api.json +20 -11
- package/lib/components/Keyboard/index.d.ts +6 -6
- package/lib/components/Keyboard/index.js +6 -6
- package/lib/components/SafeArea/SafeAreaInsetsManager.d.ts +7 -21
- package/lib/components/SafeArea/SafeAreaInsetsManager.js +31 -95
- package/lib/components/SafeArea/SafeAreaSpacerView.d.ts +2 -2
- package/lib/components/SafeArea/SafeAreaSpacerView.js +9 -63
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m +8 -52
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.h +7 -1
- package/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomKeyboardViewControllerTemp.m +1 -1
- package/lib/ios/reactnativeuilib/keyboardtrackingview/KeyboardTrackingViewTempManager.m +41 -109
- package/lib/package.json +3 -3
- package/lib/react-native.config.js +3 -1
- package/metro.config.js +2 -2
- package/package.json +29 -29
- package/panningViews.d.ts +2 -0
- package/panningViews.js +1 -0
- package/react-native.config.js +3 -1
- package/sharedTransition.d.ts +2 -0
- package/sharedTransition.js +1 -0
- package/src/commons/Constants.js +5 -2
- package/src/components/KeyboardAwareScrollView/KeyboardAwareBase.js +1 -5
- package/src/components/actionSheet/index.d.ts +12 -2
- package/src/components/actionSheet/index.js +42 -3
- package/src/components/animatedImage/index.js +6 -16
- package/src/components/badge/index.d.ts +47 -107
- package/src/components/button/button.api.json +1 -1
- package/src/components/button/index.d.ts +23 -53
- package/src/components/button/types.d.ts +1 -0
- package/src/components/colorPicker/ColorPickerDialog.d.ts +1 -1
- package/src/components/colorPicker/ColorPickerDialog.js +1 -1
- package/src/components/dateTimePicker/index.d.ts +5 -186
- package/src/components/dateTimePicker/index.js +4 -3
- package/src/components/dialog/DialogDismissibleView.d.ts +34 -0
- package/src/components/dialog/DialogDismissibleView.js +184 -0
- package/src/components/dialog/OverlayFadingBackground.d.ts +14 -0
- package/src/components/dialog/OverlayFadingBackground.js +45 -0
- package/src/components/dialog/dialog.api.json +37 -31
- package/src/components/dialog/index.d.ts +105 -13
- package/src/components/dialog/index.js +212 -204
- package/src/components/drawer/Swipeable.js +2 -1
- package/src/components/drawer/index.js +25 -31
- package/src/components/fadedScrollView/index.js +2 -7
- package/src/components/featureHighlight/index.d.ts +1 -1
- package/src/components/index.js +19 -0
- package/src/components/marquee/types.js +1 -4
- package/src/components/modal/index.d.ts +0 -5
- package/src/components/modal/index.js +10 -14
- package/src/components/modal/modal.api.json +0 -5
- package/src/components/panningViews/asPanViewConsumer.d.ts +3 -0
- package/src/components/panningViews/asPanViewConsumer.js +16 -0
- package/src/components/panningViews/panDismissibleView.d.ts +51 -0
- package/src/components/panningViews/panDismissibleView.js +350 -0
- package/src/components/panningViews/panGestureView.d.ts +23 -0
- package/src/components/panningViews/panGestureView.js +156 -0
- package/src/components/panningViews/panListenerView.d.ts +66 -0
- package/src/components/panningViews/panListenerView.js +155 -0
- package/src/components/panningViews/panResponderView.d.ts +19 -0
- package/src/components/panningViews/panResponderView.js +79 -0
- package/src/components/panningViews/panningContext.d.ts +3 -0
- package/src/components/panningViews/panningContext.js +4 -0
- package/src/components/panningViews/panningProvider.d.ts +73 -0
- package/src/components/panningViews/panningProvider.js +101 -0
- package/src/components/picker/Picker.driver.new.d.ts +2 -2
- package/src/components/picker/Picker.driver.new.js +3 -3
- package/src/components/picker/PickerItem.js +20 -6
- package/src/components/picker/PickerPresenter.d.ts +1 -0
- package/src/components/picker/PickerPresenter.js +23 -1
- package/src/components/picker/api/picker.api.json +1 -0
- package/src/components/picker/api/pickerItem.api.json +5 -0
- package/src/components/picker/helpers/useFieldType.d.ts +23 -53
- package/src/components/picker/helpers/usePickerLabel.d.ts +1 -1
- package/src/components/picker/helpers/usePickerLabel.js +3 -2
- package/src/components/picker/helpers/usePickerMigrationWarnings.d.ts +1 -1
- package/src/components/picker/helpers/usePickerMigrationWarnings.js +12 -0
- package/src/components/picker/helpers/usePickerSearch.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSearch.js +8 -4
- package/src/components/picker/helpers/usePickerSelection.d.ts +1 -1
- package/src/components/picker/helpers/usePickerSelection.js +10 -2
- package/src/components/picker/index.js +22 -4
- package/src/components/picker/types.d.ts +24 -1
- package/src/components/segmentedControl/index.js +3 -3
- package/src/components/sharedTransition/ShareTransitionContext.js +3 -0
- package/src/components/sharedTransition/SharedArea.js +153 -0
- package/src/components/sharedTransition/SourceElement.js +44 -0
- package/src/components/sharedTransition/TargetElement.js +38 -0
- package/src/components/sharedTransition/index.js +9 -0
- package/src/components/slider/GradientSlider.d.ts +1 -1
- package/src/components/sortableGridList/SortableItem.js +4 -13
- package/src/components/sortableList/SortableListItem.js +4 -13
- package/src/components/stackAggregator/index.js +11 -16
- package/src/components/text/Text.driver.new.d.ts +2 -2
- package/src/components/text/Text.driver.new.js +2 -2
- package/src/components/textField/Input.js +1 -0
- package/src/components/textField/TextField.driver.new.d.ts +2 -2
- package/src/components/textField/TextField.driver.new.js +2 -2
- package/src/components/textField/presets/outline.d.ts +46 -106
- package/src/components/textField/presets/underline.d.ts +46 -106
- package/src/components/textField/types.js +0 -1
- package/src/components/textField/usePreset.d.ts +44 -72
- package/src/components/timeline/types.js +0 -3
- package/src/incubator/dialog/dialog.api.json +54 -0
- package/src/{components → incubator}/dialog/dialogHeader.api.json +2 -2
- package/src/incubator/dialog/index.d.ts +15 -0
- package/src/incubator/dialog/index.js +218 -0
- package/src/{components → incubator}/dialog/types.d.ts +19 -0
- package/src/{components → incubator}/dialog/types.js +3 -1
- package/src/{components → incubator}/dialog/useDialogContent.d.ts +1 -1
- package/src/incubator/expandableOverlay/ExpandableOverlay.driver.js +1 -1
- package/src/incubator/expandableOverlay/index.d.ts +3 -42
- package/src/incubator/expandableOverlay/index.js +4 -1
- package/src/{hooks/useHiddenLocation/index.d.ts → incubator/hooks/useHiddenLocation.d.ts} +1 -1
- package/src/{hooks/useHiddenLocation/index.web.d.ts → incubator/hooks/useHiddenLocation.web.d.ts} +1 -1
- package/src/incubator/index.d.ts +2 -0
- package/src/incubator/index.js +2 -0
- package/src/{components → incubator}/panView/index.d.ts +3 -3
- package/src/{components → incubator}/panView/index.js +4 -4
- package/src/{components → incubator}/panView/usePanGesture.d.ts +1 -1
- package/src/incubator/toast/index.js +1 -1
- package/src/index.d.ts +10 -3
- package/src/index.js +162 -42
- package/src/testkit/index.d.ts +1 -1
- package/src/testkit/index.js +1 -1
- package/src/testkit/new/Component.driver.d.ts +1 -4
- package/src/testkit/new/Component.driver.js +3 -3
- package/lib/components/HighlighterOverlayView/index.js +0 -49
- package/lib/components/Keyboard/KeyboardAccessoryView/CustomKeyboardView/CustomKeyboardView.android.js +0 -51
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.d.ts +0 -26
- package/lib/components/Keyboard/KeyboardAccessoryView/KeyboardUtils/index.js +0 -91
- package/lib/components/SafeArea/__tests__/SafeAreaInsetsManager.spec.js +0 -274
- package/lib/components/SafeArea/index.d.ts +0 -10
- package/lib/components/SafeArea/index.js +0 -11
- package/panView.d.ts +0 -2
- package/panView.js +0 -1
- /package/lib/components/{HighlighterOverlayView/index.web.js → HighlighterOverlayView.web.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/CustomKeyboardView/index.web.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/TextInputKeyboardManager.ios.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView → KeyboardInput}/TextInputKeyboardManager/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.d.ts → KeyboardInput/utils/EventEmitterManager.d.ts} +0 -0
- /package/lib/components/Keyboard/{KeyboardAccessoryView/KeyboardRegistry/EventEmitterManager/index.js → KeyboardInput/utils/EventEmitterManager.js} +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/KeyboardTrackingView.android.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.js +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.d.ts +0 -0
- /package/lib/components/Keyboard/{KeyboardTrackingView → KeyboardTracking/KeyboardTrackingView}/index.web.js +0 -0
- /package/lib/components/Keyboard/{KeyboardAwareInsetsView → KeyboardTracking}/keyboardAwareInsetsView.api.json +0 -0
- /package/src/{components → incubator}/dialog/Dialog.driver.new.d.ts +0 -0
- /package/src/{components → incubator}/dialog/Dialog.driver.new.js +0 -0
- /package/src/{components → incubator}/dialog/DialogHeader.d.ts +0 -0
- /package/src/{components → incubator}/dialog/DialogHeader.js +0 -0
- /package/src/{components → incubator}/dialog/useDialogContent.js +0 -0
- /package/src/{hooks/useHiddenLocation/index.js → incubator/hooks/useHiddenLocation.js} +0 -0
- /package/src/{hooks/useHiddenLocation/index.web.js → incubator/hooks/useHiddenLocation.web.js} +0 -0
- /package/src/{components → incubator}/panView/panningUtil.d.ts +0 -0
- /package/src/{components → incubator}/panView/panningUtil.js +0 -0
- /package/src/{components → incubator}/panView/usePanGesture.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "7.46.3-snapshot.
|
|
3
|
+
"version": "7.46.3-snapshot.7367",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"react-native-redash": "^12.0.3",
|
|
57
57
|
"semver": "^5.5.0",
|
|
58
58
|
"tinycolor2": "^1.4.2",
|
|
59
|
-
"uilib-native": "5.
|
|
59
|
+
"uilib-native": "4.5.1",
|
|
60
60
|
"url-parse": "^1.2.0",
|
|
61
61
|
"wix-react-native-text-size": "1.0.9"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/cli": "^7.16.8",
|
|
65
|
-
"@babel/core": "^7.
|
|
65
|
+
"@babel/core": "^7.24.4",
|
|
66
66
|
"@babel/plugin-transform-modules-commonjs": "^7.17.9",
|
|
67
|
-
"@babel/preset-env": "^7.
|
|
67
|
+
"@babel/preset-env": "^7.20.0",
|
|
68
68
|
"@babel/preset-react": "^7.10.1",
|
|
69
69
|
"@babel/runtime": "^7.26.10",
|
|
70
70
|
"@formatjs/intl-datetimeformat": "^6.0.3",
|
|
@@ -73,29 +73,28 @@
|
|
|
73
73
|
"@formatjs/intl-numberformat": "^8.0.4",
|
|
74
74
|
"@formatjs/intl-pluralrules": "^5.0.3",
|
|
75
75
|
"@react-native-community/blur": "4.4.1",
|
|
76
|
-
"@react-native-community/
|
|
77
|
-
"@react-native-community/
|
|
78
|
-
"@react-native
|
|
79
|
-
"@react-native-
|
|
80
|
-
"@react-native-
|
|
81
|
-
"@react-native/
|
|
82
|
-
"@react-native/eslint-config": "0.77.3",
|
|
83
|
-
"@react-native/metro-config": "0.77.3",
|
|
84
|
-
"@react-native/typescript-config": "0.77.3",
|
|
76
|
+
"@react-native-community/datetimepicker": "^3.4.6",
|
|
77
|
+
"@react-native-community/netinfo": "^5.6.2",
|
|
78
|
+
"@react-native/babel-preset": "0.73.21",
|
|
79
|
+
"@react-native/eslint-config": "0.73.2",
|
|
80
|
+
"@react-native/metro-config": "0.73.5",
|
|
81
|
+
"@react-native/typescript-config": "0.73.1",
|
|
85
82
|
"@shopify/flash-list": "1.7.6",
|
|
86
83
|
"@testing-library/react-hooks": "^8.0.1",
|
|
87
84
|
"@testing-library/react-native": "^11.5.1",
|
|
88
85
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
89
|
-
"@types/jest": "^29.
|
|
86
|
+
"@types/jest": "^29.2.1",
|
|
90
87
|
"@types/lodash": "^4.0.0",
|
|
91
88
|
"@types/prop-types": "^15.5.3",
|
|
92
|
-
"@types/react": "18.3.
|
|
89
|
+
"@types/react": "18.3.7",
|
|
90
|
+
"@types/react-native": "0.73.0",
|
|
93
91
|
"@types/react-test-renderer": "^18.3.0",
|
|
94
92
|
"@types/tinycolor2": "^1.4.2",
|
|
95
93
|
"@types/url-parse": "^1.4.3",
|
|
96
94
|
"@typescript-eslint/eslint-plugin": "^5.3.1",
|
|
97
95
|
"@typescript-eslint/parser": "^5.3.1",
|
|
98
96
|
"@welldone-software/why-did-you-render": "^3.2.1",
|
|
97
|
+
"babel-jest": "^29.6.3",
|
|
99
98
|
"babel-plugin-lodash": "^3.3.4",
|
|
100
99
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
101
100
|
"eslint": "8.19.0",
|
|
@@ -105,37 +104,37 @@
|
|
|
105
104
|
"eslint-plugin-react-native": "^4.0.0",
|
|
106
105
|
"jest": "^29.6.3",
|
|
107
106
|
"light-date": "^1.2.0",
|
|
107
|
+
"metro-react-native-babel-preset": "0.73.10",
|
|
108
108
|
"moment": "^2.24.0",
|
|
109
109
|
"object-hash": "^3.0.0",
|
|
110
110
|
"postcss": "^8.4.21",
|
|
111
111
|
"postcss-js": "^4.0.0",
|
|
112
112
|
"prettier": "^3.2.5",
|
|
113
113
|
"prettier-eslint": "16.3.0",
|
|
114
|
-
"react": "18.
|
|
114
|
+
"react": "18.2.0",
|
|
115
115
|
"react-autobind": "^1.0.6",
|
|
116
|
-
"react-dom": "18.
|
|
117
|
-
"react-native": "0.
|
|
116
|
+
"react-dom": "^18.2.0",
|
|
117
|
+
"react-native": "0.73.9",
|
|
118
118
|
"react-native-fs": "^2.20.0",
|
|
119
|
-
"react-native-gesture-handler": "2.
|
|
119
|
+
"react-native-gesture-handler": "2.14.1",
|
|
120
120
|
"react-native-haptic-feedback": "^1.11.0",
|
|
121
121
|
"react-native-linear-gradient": "2.6.2",
|
|
122
|
-
"react-native-mmkv": "
|
|
123
|
-
"react-native-navigation": "
|
|
124
|
-
"react-native-reanimated": "3.
|
|
122
|
+
"react-native-mmkv": "2.11.0",
|
|
123
|
+
"react-native-navigation": "7.40.1",
|
|
124
|
+
"react-native-reanimated": "3.16.7",
|
|
125
125
|
"react-native-shimmer-placeholder": "^2.0.6",
|
|
126
|
-
"react-native-svg": "15.
|
|
126
|
+
"react-native-svg": "15.2.0",
|
|
127
127
|
"react-native-svg-transformer": "1.5.0",
|
|
128
|
-
"react-test-renderer": "18.
|
|
128
|
+
"react-test-renderer": "18.2.0",
|
|
129
129
|
"reassure": "^0.4.1",
|
|
130
|
-
"setimmediate": "^1.0.5",
|
|
131
130
|
"shell-utils": "^1.0.10",
|
|
132
131
|
"typescript": "5.0.4"
|
|
133
132
|
},
|
|
134
133
|
"peerDependencies": {
|
|
135
|
-
"react": ">=
|
|
136
|
-
"react-native": ">=0.
|
|
137
|
-
"react-native-gesture-handler": ">=2.
|
|
138
|
-
"react-native-reanimated": ">=
|
|
134
|
+
"react": ">=17.0.1",
|
|
135
|
+
"react-native": ">=0.64.1",
|
|
136
|
+
"react-native-gesture-handler": ">=2.5.0",
|
|
137
|
+
"react-native-reanimated": ">=2.0.0",
|
|
139
138
|
"react-native-ui-lib": "*"
|
|
140
139
|
},
|
|
141
140
|
"jest": {
|
|
@@ -163,6 +162,7 @@
|
|
|
163
162
|
"engines": {
|
|
164
163
|
"node": ">=18"
|
|
165
164
|
},
|
|
165
|
+
"packageManager": "yarn@3.4.1",
|
|
166
166
|
"files": [
|
|
167
167
|
"*.js",
|
|
168
168
|
"*.d.ts",
|
package/panningViews.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./src/components/panningViews').default;
|
package/react-native.config.js
CHANGED
|
@@ -10,9 +10,11 @@ module.exports = {
|
|
|
10
10
|
sourceDir: '../uilib-native/android/',
|
|
11
11
|
packageImportPath: `import com.wix.reactnativeuilib.dynamicfont.DynamicFontPackage;
|
|
12
12
|
import com.wix.reactnativeuilib.highlighterview.HighlighterViewPackage;
|
|
13
|
-
import com.wix.reactnativeuilib.keyboardinput.KeyboardInputPackage
|
|
13
|
+
import com.wix.reactnativeuilib.keyboardinput.KeyboardInputPackage;
|
|
14
|
+
import com.wix.reactnativeuilib.textinput.TextInputDelKeyHandlerPackage;`,
|
|
14
15
|
packageInstance: `new DynamicFontPackage(),
|
|
15
16
|
new HighlighterViewPackage(),
|
|
17
|
+
new TextInputDelKeyHandlerPackage(),
|
|
16
18
|
new KeyboardInputPackage(getApplication())`
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./src/components/sharedTransition').default;
|
package/src/commons/Constants.js
CHANGED
|
@@ -24,8 +24,11 @@ function setStatusBarHeight() {
|
|
|
24
24
|
const {
|
|
25
25
|
StatusBarManager
|
|
26
26
|
} = NativeModules;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
statusBarHeight = (StatusBar.currentHeight ?? StatusBarManager?.HEIGHT) || 0;
|
|
28
|
+
if (isIOS && StatusBarManager) {
|
|
29
|
+
// override guesstimate height with the actual height from StatusBarManager
|
|
30
|
+
StatusBarManager.getHeight(data => statusBarHeight = data.height);
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
function getAspectRatio() {
|
|
31
34
|
return screenWidth < screenHeight ? screenHeight / screenWidth : screenWidth / screenHeight;
|
|
@@ -107,7 +107,7 @@ export default class KeyboardAwareBase extends Component {
|
|
|
107
107
|
setTimeout(() => {
|
|
108
108
|
this._keyboardAwareView
|
|
109
109
|
.getScrollResponder()
|
|
110
|
-
.scrollResponderScrollNativeHandleToKeyboard(
|
|
110
|
+
.scrollResponderScrollNativeHandleToKeyboard(ReactNative.findNodeHandle(textInputRef),
|
|
111
111
|
this.props.scrollToInputAdditionalOffset,
|
|
112
112
|
true);
|
|
113
113
|
}, 0);
|
|
@@ -117,10 +117,6 @@ export default class KeyboardAwareBase extends Component {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
findNodeHandle(ref) {
|
|
121
|
-
return ref.current?.getNodeHandle?.() || ref?.getNodeHandle?.() || ReactNative.findNodeHandle(ref.current || ref);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
120
|
_onKeyboardWillShow(event) {
|
|
125
121
|
this._scrollToFocusedTextInput();
|
|
126
122
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { DialogProps } from '../dialog';
|
|
3
4
|
import { ButtonProps } from '../button';
|
|
4
|
-
import {
|
|
5
|
+
import { DialogProps as IncubatorDialogProps } from '../../incubator';
|
|
5
6
|
type ActionSheetOnOptionPress = (index: number) => void;
|
|
6
7
|
type ActionSheetProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Migrate to the Incubator.Dialog component
|
|
10
|
+
*/
|
|
11
|
+
migrateDialog?: boolean;
|
|
7
12
|
/**
|
|
8
13
|
* Whether to show the action sheet or not
|
|
9
14
|
*/
|
|
@@ -63,6 +68,11 @@ type ActionSheetProps = {
|
|
|
63
68
|
* Note: you will need to call onOptionPress so the option's onPress will be called
|
|
64
69
|
*/
|
|
65
70
|
renderAction?: (option: ButtonProps, index: number, onOptionPress: ActionSheetOnOptionPress) => JSX.Element;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated
|
|
73
|
+
* Called once the modal has been dismissed completely
|
|
74
|
+
*/
|
|
75
|
+
onModalDismissed?: DialogProps['onDialogDismissed'];
|
|
66
76
|
/**
|
|
67
77
|
* Whether or not to handle SafeArea
|
|
68
78
|
*/
|
|
@@ -70,7 +80,7 @@ type ActionSheetProps = {
|
|
|
70
80
|
/**
|
|
71
81
|
* Additional props to send to the Dialog
|
|
72
82
|
*/
|
|
73
|
-
dialogProps?: Omit<DialogProps, 'useSafeArea' | 'testID' | 'containerStyle' | 'visible' | 'onDismiss' | 'onDialogDismissed'> |
|
|
83
|
+
dialogProps?: Omit<DialogProps, 'useSafeArea' | 'testID' | 'containerStyle' | 'visible' | 'onDismiss' | 'onDialogDismissed'> | IncubatorDialogProps;
|
|
74
84
|
/**
|
|
75
85
|
* testID for e2e tests
|
|
76
86
|
*/
|
|
@@ -6,12 +6,15 @@ import React, { Component } from 'react';
|
|
|
6
6
|
import { ActionSheetIOS, StyleSheet } from 'react-native';
|
|
7
7
|
import { Colors } from "../../style";
|
|
8
8
|
import { asBaseComponent, Constants } from "../../commons/new";
|
|
9
|
+
import Dialog from "../dialog";
|
|
9
10
|
import View from "../view";
|
|
10
11
|
import Text from "../text";
|
|
11
12
|
import Image from "../image";
|
|
12
13
|
//@ts-ignore
|
|
13
14
|
import ListItem from "../listItem";
|
|
14
|
-
import
|
|
15
|
+
import PanningProvider from "../panningViews/panningProvider";
|
|
16
|
+
import { Dialog as IncubatorDialog } from "../../incubator";
|
|
17
|
+
import { LogService } from "../../services";
|
|
15
18
|
const VERTICAL_PADDING = 8;
|
|
16
19
|
/**
|
|
17
20
|
* @description: Cross platform Action Sheet, with a support for native iOS solution
|
|
@@ -127,19 +130,55 @@ class ActionSheet extends Component {
|
|
|
127
130
|
{this.renderActions()}
|
|
128
131
|
</View>;
|
|
129
132
|
}
|
|
130
|
-
|
|
133
|
+
renderOldDialog() {
|
|
131
134
|
const {
|
|
135
|
+
useNativeIOS,
|
|
132
136
|
visible,
|
|
133
137
|
onDismiss,
|
|
134
138
|
dialogStyle,
|
|
139
|
+
onModalDismissed,
|
|
135
140
|
testID,
|
|
136
141
|
useSafeArea,
|
|
137
142
|
dialogProps
|
|
138
143
|
} = this.props;
|
|
139
|
-
|
|
144
|
+
if (Constants.isIOS && useNativeIOS) {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
return <Dialog bottom centerH width="100%" panDirection={PanningProvider.Directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.dialog, dialogStyle]} visible={visible} onDismiss={onDismiss} onDialogDismissed={onModalDismissed}>
|
|
140
148
|
{this.renderSheet()}
|
|
141
149
|
</Dialog>;
|
|
142
150
|
}
|
|
151
|
+
renderNewDialog() {
|
|
152
|
+
const {
|
|
153
|
+
visible,
|
|
154
|
+
onDismiss,
|
|
155
|
+
dialogStyle,
|
|
156
|
+
onModalDismissed,
|
|
157
|
+
testID,
|
|
158
|
+
useSafeArea,
|
|
159
|
+
dialogProps
|
|
160
|
+
} = this.props;
|
|
161
|
+
if (onModalDismissed) {
|
|
162
|
+
LogService.deprecationWarn({
|
|
163
|
+
component: 'ActionSheet',
|
|
164
|
+
oldProp: 'onModalDismissed',
|
|
165
|
+
newProp: 'onDismiss'
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return <IncubatorDialog bottom centerH width="100%" direction={PanningProvider.Directions.DOWN} {...dialogProps} useSafeArea={useSafeArea} testID={testID} containerStyle={[styles.incubatorDialog, dialogStyle]} visible={visible} onDismiss={onDismiss}>
|
|
169
|
+
{this.renderSheet()}
|
|
170
|
+
</IncubatorDialog>;
|
|
171
|
+
}
|
|
172
|
+
render() {
|
|
173
|
+
const {
|
|
174
|
+
migrateDialog
|
|
175
|
+
} = this.props;
|
|
176
|
+
if (migrateDialog) {
|
|
177
|
+
return this.renderNewDialog();
|
|
178
|
+
} else {
|
|
179
|
+
return this.renderOldDialog();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
143
182
|
}
|
|
144
183
|
export default asBaseComponent(ActionSheet);
|
|
145
184
|
const styles = StyleSheet.create({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// TODO: consider unify this component functionality with our Image component
|
|
2
|
-
import React, { useState, useCallback, useMemo
|
|
2
|
+
import React, { useState, useCallback, useMemo } from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
4
|
import Animated, { useSharedValue, useAnimatedStyle, withTiming } from 'react-native-reanimated';
|
|
5
5
|
import View from "../../components/view";
|
|
@@ -31,11 +31,6 @@ const AnimatedImage = props => {
|
|
|
31
31
|
opacity.value = 1;
|
|
32
32
|
}
|
|
33
33
|
}, [loader]);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
setIsLoading(true);
|
|
36
|
-
propsOnLoadStart?.();
|
|
37
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
38
|
-
}, [source]);
|
|
39
34
|
const onLoad = useCallback(event => {
|
|
40
35
|
setIsLoading(false);
|
|
41
36
|
propsOnLoad?.(event);
|
|
@@ -48,13 +43,10 @@ const AnimatedImage = props => {
|
|
|
48
43
|
},
|
|
49
44
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
50
45
|
[setIsLoading, propsOnLoad, animationDuration]);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// propsOnLoadStart?.();
|
|
56
|
-
// }, [setIsLoading, propsOnLoadStart, animationDuration]);
|
|
57
|
-
|
|
46
|
+
const onLoadStart = useCallback(() => {
|
|
47
|
+
setIsLoading(true);
|
|
48
|
+
propsOnLoadStart?.();
|
|
49
|
+
}, [setIsLoading, propsOnLoadStart, animationDuration]);
|
|
58
50
|
const fadeInStyle = useAnimatedStyle(() => {
|
|
59
51
|
return {
|
|
60
52
|
opacity: opacity.value
|
|
@@ -64,9 +56,7 @@ const AnimatedImage = props => {
|
|
|
64
56
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
57
|
const _style = useMemo(() => [style, fadeInStyle], [style]);
|
|
66
58
|
return <View style={containerStyle}>
|
|
67
|
-
<UIAnimatedImage {...others} style={_style} source={source} onLoad={onLoad}
|
|
68
|
-
// onLoadStart={onLoadStart}
|
|
69
|
-
testID={testID} imageStyle={undefined} />
|
|
59
|
+
<UIAnimatedImage {...others} style={_style} source={source} onLoad={onLoad} onLoadStart={onLoadStart} testID={testID} imageStyle={undefined} />
|
|
70
60
|
{isLoading && loader && <View style={styles.loader}>{loader}</View>}
|
|
71
61
|
</View>;
|
|
72
62
|
};
|