@draftbit/core 55.0.1-ee0a64.2 → 56.0.1-9d8b12.2

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.
Files changed (32) hide show
  1. package/lib/typescript/src/components/Button.js.map +1 -1
  2. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +2 -2
  3. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.js.map +1 -1
  4. package/lib/typescript/src/components/Picker/PickerInputContainer.js +1 -1
  5. package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
  6. package/lib/typescript/src/components/PinInput/PinInput.d.ts +1 -1
  7. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.d.ts +2 -2
  8. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  9. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  10. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.d.ts +2 -2
  11. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  12. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  13. package/lib/typescript/src/components/SectionList/SectionList.d.ts +1 -1
  14. package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
  15. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -2
  16. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  17. package/lib/typescript/src/components/Table/Table.d.ts +2 -2
  18. package/lib/typescript/src/components/Table/Table.js.map +1 -1
  19. package/lib/typescript/src/components/Text.d.ts +1 -1
  20. package/lib/typescript/src/components/Text.js.map +1 -1
  21. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +19 -18
  23. package/src/components/Button.tsx +3 -3
  24. package/src/components/DeckSwiper/DeckSwiper.tsx +9 -3
  25. package/src/components/Picker/PickerInputContainer.tsx +1 -1
  26. package/src/components/PinInput/PinInput.tsx +1 -1
  27. package/src/components/Progress/CircularProgress/CircularProgress.tsx +1 -0
  28. package/src/components/Progress/LinearProgress/LinearProgress.tsx +1 -0
  29. package/src/components/SectionList/SectionList.tsx +5 -5
  30. package/src/components/Swiper/Swiper.tsx +7 -1
  31. package/src/components/Table/Table.tsx +7 -1
  32. package/src/components/Text.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "55.0.1-ee0a64.2+ee0a64e",
3
+ "version": "56.0.1-9d8b12.2+9d8b127",
4
4
  "description": "Core (non-native) Components",
5
5
  "main": "./src/index.tsx",
6
6
  "react-native": "./src/index.tsx",
@@ -42,7 +42,7 @@
42
42
  "homepage": "https://github.com/draftbit/react-native-jigsaw#readme",
43
43
  "dependencies": {
44
44
  "@draftbit/react-theme-provider": "^2.1.1",
45
- "@draftbit/theme": "^55.0.1-ee0a64.2+ee0a64e",
45
+ "@draftbit/theme": "^56.0.1-9d8b12.2+9d8b127",
46
46
  "@emotion/react": "^11.13.5",
47
47
  "@emotion/styled": "^11.13.5",
48
48
  "@expo/vector-icons": "^15.0.3",
@@ -51,15 +51,15 @@
51
51
  "@lottiefiles/react-lottie-player": "3.5.3",
52
52
  "@mui/material": "^6.1.9",
53
53
  "@mui/x-date-pickers": "^7.22.3",
54
- "@react-native-community/slider": "5.0.1",
55
- "@react-native-picker/picker": "2.11.1",
54
+ "@react-native-community/slider": "5.2.0",
55
+ "@react-native-picker/picker": "2.11.4",
56
56
  "@shopify/flash-list": "2.0.2",
57
57
  "color": "^4.2.3",
58
58
  "date-fns": "^4.1.0",
59
59
  "dateformat": "^5.0.3",
60
- "expo-audio": "~1.1.1",
61
- "expo-image": "~3.0.11",
62
- "expo-video": "~3.0.16",
60
+ "expo-audio": "~56.0.12",
61
+ "expo-image": "~56.0.11",
62
+ "expo-video": "~56.1.4",
63
63
  "lodash.isequal": "^4.5.0",
64
64
  "lodash.isnumber": "^3.0.3",
65
65
  "lodash.omit": "^4.5.0",
@@ -70,20 +70,20 @@
70
70
  "react-native-date-picker": "^5.0.7",
71
71
  "react-native-deck-swiper": "^2.0.17",
72
72
  "react-native-dropdown-picker": "^5.4.7-beta.1",
73
- "react-native-gesture-handler": "~2.28.0",
73
+ "react-native-gesture-handler": "~2.31.1",
74
74
  "react-native-keyboard-aware-scroll-view": "^0.9.5",
75
75
  "react-native-markdown-display": "^7.0.2",
76
76
  "react-native-modal-datetime-picker": "^18.0.0",
77
- "react-native-pager-view": "6.9.1",
78
- "react-native-reanimated": "~4.1.1",
77
+ "react-native-pager-view": "8.0.1",
78
+ "react-native-reanimated": "4.3.1",
79
79
  "react-native-select-dropdown": "4.0.1",
80
80
  "react-native-shadow-2": "^7.1.1",
81
- "react-native-svg": "15.12.1",
81
+ "react-native-svg": "15.15.4",
82
82
  "react-native-swipe-list-view": "^3.2.9",
83
83
  "react-native-tab-view": "^3.4.0",
84
84
  "react-native-web-swiper": "^2.2.4",
85
- "react-native-webview": "13.15.0",
86
- "react-native-worklets": "0.5.1",
85
+ "react-native-webview": "13.16.1",
86
+ "react-native-worklets": "0.8.3",
87
87
  "react-native-youtube-iframe": "^2.3.0",
88
88
  "react-youtube": "^10.1.0",
89
89
  "uuid": "^11.0.3"
@@ -108,8 +108,8 @@
108
108
  },
109
109
  "jest": {
110
110
  "preset": "jest-expo",
111
+ "globalSetup": "<rootDir>/../../jest/global-setup.js",
111
112
  "setupFilesAfterEnv": [
112
- "@testing-library/jest-native/extend-expect",
113
113
  "./jest-setup.js"
114
114
  ],
115
115
  "testPathIgnorePatterns": [
@@ -119,9 +119,10 @@
119
119
  ".*\\.test\\.skip\\.tsx$"
120
120
  ],
121
121
  "transformIgnorePatterns": [
122
- "node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|dateformat)"
123
- ],
124
- "testEnvironment": "node"
122
+ "/node_modules/(?!(.pnpm|react-native|@react-native|@react-native-community|expo|@expo|@expo-google-fonts|react-navigation|@react-navigation|@sentry/react-native|native-base|standard-navigation|dateformat|uuid))",
123
+ "/node_modules/react-native-reanimated/plugin/",
124
+ "/node_modules/@react-native/babel-preset/"
125
+ ]
125
126
  },
126
- "gitHead": "ee0a64eaafa0576a511da64207eaa0f8406b8457"
127
+ "gitHead": "9d8b1274ebd6bd9ff1d7587e8aabcc8a2e23b68b"
127
128
  }
@@ -66,7 +66,7 @@ function Base({
66
66
  activeOpacity = 0.8,
67
67
  disabledOpacity = 0.8,
68
68
  ...props
69
- }: BaseProps): JSX.Element {
69
+ }: BaseProps): React.JSX.Element {
70
70
  const {
71
71
  color,
72
72
  fontFamily,
@@ -142,7 +142,7 @@ function Base({
142
142
  );
143
143
  }
144
144
 
145
- const Solid = ({ style, theme, ...props }: Props): JSX.Element => {
145
+ const Solid = ({ style, theme, ...props }: Props): React.JSX.Element => {
146
146
  return (
147
147
  <Base
148
148
  style={[
@@ -168,7 +168,7 @@ export { ButtonSolid };
168
168
  const Button: any = withTheme(Solid);
169
169
  export { Button };
170
170
 
171
- const Outline = ({ style, theme, ...props }: Props): JSX.Element => {
171
+ const Outline = ({ style, theme, ...props }: Props): React.JSX.Element => {
172
172
  return (
173
173
  <Base
174
174
  style={[
@@ -23,7 +23,13 @@ export interface DeckSwiperProps<T> {
23
23
  visibleCardCount?: number;
24
24
  data?: Array<T>;
25
25
  keyExtractor?: (item: T) => string;
26
- renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;
26
+ renderItem?: ({
27
+ item,
28
+ index,
29
+ }: {
30
+ item: T;
31
+ index: number;
32
+ }) => React.JSX.Element;
27
33
  style?: StyleProp<ViewStyle>;
28
34
  className?: string;
29
35
  }
@@ -82,7 +88,7 @@ const DeckSwiper = React.forwardRef<DeckSwiperRef, DeckSwiperProps<any>>(
82
88
 
83
89
  const cardsData = Array.isArray(data) ? data : cardsFillerData;
84
90
 
85
- const renderCard = (card: any, index: number): JSX.Element => {
91
+ const renderCard = (card: any, index: number): React.JSX.Element => {
86
92
  if (renderItem) {
87
93
  return renderItem({ item: card, index });
88
94
  } else {
@@ -90,7 +96,7 @@ const DeckSwiper = React.forwardRef<DeckSwiperRef, DeckSwiperProps<any>>(
90
96
  }
91
97
  };
92
98
 
93
- const renderFirstCard = (): JSX.Element | undefined => {
99
+ const renderFirstCard = (): React.JSX.Element | undefined => {
94
100
  if (cardsData.length) {
95
101
  return renderCard(cardsData[0], 0);
96
102
  }
@@ -88,7 +88,7 @@ const PickerInputContainer: React.FC<
88
88
  {...rest}
89
89
  />
90
90
  <Touchable
91
- style={StyleSheet.absoluteFillObject}
91
+ style={StyleSheet.absoluteFill}
92
92
  disabled={disabled}
93
93
  onPress={onPress}
94
94
  onLongPress={onPress}
@@ -29,7 +29,7 @@ interface PinInputProps extends Omit<TextInputProps, "style"> {
29
29
  cellCount?: number;
30
30
  clearOnCellFocus?: boolean;
31
31
  blurOnFull?: boolean;
32
- renderItem?: ({ cellValue, index, isFocused }: CellItem) => JSX.Element;
32
+ renderItem?: ({ cellValue, index, isFocused }: CellItem) => React.JSX.Element;
33
33
  focusedBorderColor?: string;
34
34
  focusedBackgroundColor?: string;
35
35
  focusedBorderWidth?: number;
@@ -152,6 +152,7 @@ export const CircularProgress: React.FC<
152
152
  />
153
153
  )}
154
154
  <AnimatedPath
155
+ testID="circular-progress-path"
155
156
  animatedProps={progressPathAnimatedProps}
156
157
  stroke={color}
157
158
  strokeWidth={thickness}
@@ -121,6 +121,7 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
121
121
  />
122
122
  )}
123
123
  <AnimatedLine
124
+ testID="linear-progress-line"
124
125
  animatedProps={progressLineAnimatedProps}
125
126
  x1={thicknessOffset}
126
127
  y1={thicknessOffset}
@@ -15,7 +15,7 @@ interface AdditionalSectionListProps<T> {
15
15
  item?: T;
16
16
  index: number;
17
17
  section: string;
18
- }) => JSX.Element;
18
+ }) => React.JSX.Element;
19
19
  keyExtractor?: (item: T, index: number) => string;
20
20
  listComponent?: ListComponentType;
21
21
  sectionHeaderBackgroundColor?: string;
@@ -100,8 +100,8 @@ const SectionList = React.forwardRef(
100
100
  );
101
101
 
102
102
  const extractSectionHeader = (
103
- element: JSX.Element | null
104
- ): JSX.Element | null => {
103
+ element: React.JSX.Element | null
104
+ ): React.JSX.Element | null => {
105
105
  if (!element) {
106
106
  return null;
107
107
  }
@@ -124,8 +124,8 @@ const SectionList = React.forwardRef(
124
124
  };
125
125
 
126
126
  const extractRemainingNonSectionHeader = (
127
- element: JSX.Element | null
128
- ): JSX.Element | null => {
127
+ element: React.JSX.Element | null
128
+ ): React.JSX.Element | null => {
129
129
  if (!element) {
130
130
  return null;
131
131
  }
@@ -29,7 +29,13 @@ export interface SwiperProps<T>
29
29
  children?: React.ReactNode;
30
30
  data?: Array<T>;
31
31
  keyExtractor: (item: T, index: number) => string;
32
- renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;
32
+ renderItem?: ({
33
+ item,
34
+ index,
35
+ }: {
36
+ item: T;
37
+ index: number;
38
+ }) => React.JSX.Element;
33
39
  style?: StyleProp<ViewStyle>;
34
40
  onIndexChanged?: (index: number) => void;
35
41
  minDistanceForAction?: number;
@@ -19,7 +19,13 @@ import {
19
19
  export interface Props<T> extends TableProps, ScrollViewProps {
20
20
  data?: Array<T>;
21
21
  keyExtractor?: (item: T, index: number) => string;
22
- renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;
22
+ renderItem?: ({
23
+ item,
24
+ index,
25
+ }: {
26
+ item: T;
27
+ index: number;
28
+ }) => React.JSX.Element;
23
29
  style?: StyleProp<ViewStyle>;
24
30
  theme: ReadTheme;
25
31
  }
@@ -37,7 +37,7 @@ export const BaseLink = ({
37
37
  theme,
38
38
  title,
39
39
  ...props
40
- }: any): JSX.Element => {
40
+ }: any): React.JSX.Element => {
41
41
  return (
42
42
  <Text
43
43
  hitSlop={8}