react-native-ui-lib 7.44.0-snapshot.7204 → 7.44.0-snapshot.7210

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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { processColor, StyleSheet, Modal } from 'react-native';
3
3
  // Import the Codegen specification for New Architecture
4
- import HighlighterViewNativeComponent from "./HighlighterViewNativeComponent";
4
+ import HighlighterViewNativeComponent from "../../specs/HighlighterViewNativeComponent";
5
5
  const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
6
6
  const HighlighterOverlayView = props => {
7
7
  const {
@@ -19,7 +19,7 @@ export type HighlighterOverlayViewProps = {
19
19
  onRequestClose?: () => void;
20
20
  highlightFrame?: HighlightFrameType;
21
21
  style?: ViewStyle;
22
- highlightViewTag?: number | null;
22
+ highlightViewTag?: number;
23
23
  children?: JSX.Element[] | JSX.Element;
24
24
  highlightViewTagParams?: HighlightViewTagParams;
25
25
  minimumRectSize?: Pick<HighlightFrameType, 'width' | 'height'>;
@@ -1,7 +1,7 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import ReactNative, { NativeModules } from 'react-native';
3
3
  // Import the Codegen specification for New Architecture
4
- import KeyboardTrackingViewNativeComponent from "./KeyboardTrackingViewNativeComponent";
4
+ import KeyboardTrackingViewNativeComponent from "../../../specs/KeyboardTrackingViewNativeComponent";
5
5
  const KeyboardTrackingViewTempManager = NativeModules.KeyboardTrackingViewTempManager;
6
6
 
7
7
  /**
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7204",
3
+ "version": "5.0.0-snapshot.7210",
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",
@@ -19,5 +19,19 @@
19
19
  "peerDependencies": {
20
20
  "react": ">=17.0.1",
21
21
  "react-native": ">=0.64.1"
22
+ },
23
+ "codegenConfig": {
24
+ "name": "ReactNativeUiLibSpec",
25
+ "type": "modules",
26
+ "jsSrcsDir": "specs",
27
+ "android": {
28
+ "javaPackageName": "com.wix.reactnativeuilib"
29
+ },
30
+ "ios": {
31
+ "componentProvider": {
32
+ "HighlighterView": "HighlighterView",
33
+ "KeyboardTrackingViewTemp": "KeyboardTrackingViewTemp"
34
+ }
35
+ }
22
36
  }
23
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.44.0-snapshot.7204",
3
+ "version": "7.44.0-snapshot.7210",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -56,7 +56,7 @@
56
56
  "react-native-redash": "^12.0.3",
57
57
  "semver": "^5.5.0",
58
58
  "tinycolor2": "^1.4.2",
59
- "uilib-native": "5.0.0-snapshot.7192",
59
+ "uilib-native": "5.0.0-snapshot.7207",
60
60
  "url-parse": "^1.2.0",
61
61
  "wix-react-native-text-size": "1.0.9"
62
62
  },
@@ -100,7 +100,7 @@ export type FeatureHighlightProps = {
100
100
  interface State {
101
101
  fadeAnim: Animated.Value;
102
102
  contentTopPosition?: number;
103
- node?: number | null;
103
+ node?: number;
104
104
  getTarget?: () => any;
105
105
  }
106
106
  /**
@@ -1,61 +0,0 @@
1
- /// <reference types="react-native/types/modules/codegen" />
2
- import type { ViewProps } from 'react-native';
3
- import type { Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
4
- export interface HighlightFrame {
5
- x: Float;
6
- y: Float;
7
- width: Float;
8
- height: Float;
9
- }
10
- export interface MinimumRectSize {
11
- width: Float;
12
- height: Float;
13
- }
14
- export interface HighlightViewTagParams {
15
- paddingLeft?: WithDefault<Float, 0>;
16
- paddingTop?: WithDefault<Float, 0>;
17
- paddingRight?: WithDefault<Float, 0>;
18
- paddingBottom?: WithDefault<Float, 0>;
19
- offsetX?: WithDefault<Float, 0>;
20
- offsetY?: WithDefault<Float, 0>;
21
- }
22
- export interface NativeProps extends ViewProps {
23
- /**
24
- * The frame to highlight with x, y, width, height coordinates
25
- */
26
- highlightFrame?: HighlightFrame;
27
- /**
28
- * The overlay color (processed color int for Android)
29
- */
30
- overlayColor?: WithDefault<Int32, 0>;
31
- /**
32
- * The border radius for the highlighted area
33
- */
34
- borderRadius?: WithDefault<Float, 0>;
35
- /**
36
- * The stroke color (processed color int for Android)
37
- */
38
- strokeColor?: WithDefault<Int32, 0>;
39
- /**
40
- * The stroke width
41
- */
42
- strokeWidth?: WithDefault<Float, 0>;
43
- /**
44
- * The React tag of the view to highlight
45
- */
46
- highlightViewTag?: Int32;
47
- /**
48
- * Parameters for view-based highlighting including padding and offset
49
- */
50
- highlightViewTagParams?: HighlightViewTagParams;
51
- /**
52
- * Minimum rectangle size for the highlight area
53
- */
54
- minimumRectSize?: MinimumRectSize;
55
- /**
56
- * Inner padding for the highlight area
57
- */
58
- innerPadding?: WithDefault<Float, 0>;
59
- }
60
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
61
- export default _default;
@@ -1,2 +0,0 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- export default codegenNativeComponent('HighlighterView');
@@ -1,58 +0,0 @@
1
- /// <reference types="react-native/types/modules/codegen" />
2
- import type { ViewProps } from 'react-native';
3
- import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
4
- export interface NativeProps extends ViewProps {
5
- /**
6
- * Enables tracking of the keyboard when it's dismissed interactively (false by default).
7
- */
8
- trackInteractive?: WithDefault<boolean, false>;
9
- /**
10
- * iOS only.
11
- * Show the keyboard on a negative scroll
12
- */
13
- revealKeyboardInteractive?: WithDefault<boolean, false>;
14
- /**
15
- * iOS only.
16
- * Set to false to turn off inset management and manage it yourself
17
- */
18
- manageScrollView?: WithDefault<boolean, true>;
19
- /**
20
- * iOS only.
21
- * Set to true manageScrollView is set to true and still does not work
22
- */
23
- requiresSameParentToManageScrollView?: WithDefault<boolean, false>;
24
- /**
25
- * iOS only.
26
- * Allow hitting sub-views that are placed beyond the view bounds
27
- */
28
- allowHitsOutsideBounds?: WithDefault<boolean, false>;
29
- /**
30
- * Should the scrollView scroll to the focused input
31
- */
32
- scrollToFocusedInput?: WithDefault<boolean, false>;
33
- /**
34
- * iOS only.
35
- * The scrolling behavior (NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET)
36
- */
37
- scrollBehavior?: WithDefault<Int32, 0>;
38
- /**
39
- * iOS only.
40
- * Add a SafeArea view beneath the KeyboardAccessoryView
41
- */
42
- addBottomView?: WithDefault<boolean, false>;
43
- /**
44
- * iOS only.
45
- * The bottom view's color
46
- */
47
- bottomViewColor?: string;
48
- /**
49
- * Allow control safe area
50
- */
51
- useSafeArea?: WithDefault<boolean, false>;
52
- /**
53
- * Whether or not to include bottom tab bar inset
54
- */
55
- usesBottomTabs?: WithDefault<boolean, false>;
56
- }
57
- declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
58
- export default _default;
@@ -1,2 +0,0 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- export default codegenNativeComponent('KeyboardTrackingViewTemp');