react-native-ui-lib 8.2.2 → 8.3.0-snapshot.7724

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "8.2.2",
3
+ "version": "8.3.0-snapshot.7724",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -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
- {name: 'features', branch: 'feat/', title: ':gift: Features'},
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};
@@ -8,10 +8,8 @@ function withScrollEnabler(WrappedComponent) {
8
8
  const layoutSize = useRef(0);
9
9
  const checkScroll = useCallback(() => {
10
10
  const isScrollEnabled = Math.floor(contentSize.current) > layoutSize.current;
11
- if (isScrollEnabled !== scrollEnabled) {
12
- setScrollEnabled(isScrollEnabled);
13
- }
14
- }, [scrollEnabled]);
11
+ setScrollEnabled(isScrollEnabled);
12
+ }, []);
15
13
  const onContentSizeChange = useCallback((contentWidth, contentHeight) => {
16
14
  const size = props.horizontal ? contentWidth : contentHeight;
17
15
  if (size !== contentSize.current) {
@@ -113,7 +113,7 @@ class GridListItem extends Component {
113
113
  alignItems
114
114
  }, {
115
115
  width
116
- }, containerStyle]} {...otherContainerProps} onPress={onPress && this.onItemPress} accessible={renderCustomItem ? true : undefined} {...Modifiers.extractAccessibilityProps(this.props)}>
116
+ }, containerStyle]} accessible={renderCustomItem ? true : undefined} {...otherContainerProps} onPress={onPress && this.onItemPress} {...Modifiers.extractAccessibilityProps(this.props)}>
117
117
  {imageProps && <Image {...imageProps} style={[itemSize, imageProps?.style]} customOverlayContent={children} />}
118
118
  {!_isNil(renderCustomItem) && <View style={{
119
119
  width
@@ -1,4 +1,5 @@
1
1
  import React, { forwardRef, useEffect } from 'react';
2
+ import { useThemeProps } from "../../hooks";
2
3
  // @ts-expect-error
3
4
  import MaskedInputOld from "./old";
4
5
  import MaskedInputNew, { MaskedInputProps } from "./new";
@@ -7,7 +8,7 @@ function MaskedInputMigrator(props, refToForward) {
7
8
  const {
8
9
  migrate,
9
10
  ...others
10
- } = props;
11
+ } = useThemeProps(props, 'MaskedInput');
11
12
  useEffect(() => {
12
13
  if (!migrate) {
13
14
  LogService.warn(`UILib MaskedInput implementation has been updated and now requires manual migration. To proceed, pass the "migrate" prop and check if the functionality works as expected.`);