react-native-tree-multi-select 1.2.7 → 1.2.8

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 (2) hide show
  1. package/README.md +23 -23
  2. package/package.json +11 -7
package/README.md CHANGED
@@ -97,18 +97,18 @@ export function TreeViewUsageExample(){
97
97
 
98
98
  | Property | Type | Required | Description |
99
99
  | ---------------------------------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ |
100
- | `data` | `TreeNode[]` | Yes | An array of `TreeNode` objects |
100
+ | `data` | [TreeNode](#treenode) | Yes | An array of `TreeNode` objects |
101
101
  | `onCheck` | `(checkedIds: string[]) => void` | No | Callback when a checkbox is checked |
102
102
  | `onExpand` | `(expandedIds: string[]) => void` | No | Callback when a node is expanded |
103
- | `preselectedIds` | `string[]` | No | An array of `id`s that should be pre-selected |
104
- | `preExpandedIds` | `string[]` | No | An array of `id`s that should be pre-expanded |
103
+ | `preselectedIds` | `string[]` | No | An array of `id`s that should be pre-selected |
104
+ | `preExpandedIds` | `string[]` | No | An array of `id`s that should be pre-expanded |
105
105
  | `indentationMultiplier` | `number` | No | Indentation (`marginStart`) per level (defaults to 15) |
106
- | `treeFlashListProps` | `TreeFlatListProps` | No | Props for the flash list |
107
- | `checkBoxViewStyleProps` | `BuiltInCheckBoxViewStyleProps` | No | Props for the checkbox view |
108
- | `CheckboxComponent` | `ComponentType<CheckBoxViewProps>` | No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109
- | `ExpandCollapseIconComponent` | `ComponentType<ExpandIconProps>` | No | A custom expand/collapse icon component |
110
- | `ExpandCollapseTouchableComponent` | `ComponentType<TouchableOpacityProps>`<br />(React Native's `TouchableOpacityProps`) | No | A custom expand/collapse touchable component |
111
- | `CustomNodeRowComponent` | `React.ComponentType<NodeRowProps>` | No | Custom row item component |
106
+ | `treeFlashListProps` | [TreeFlatListProps](#treeflatlistprops) | No | Props for the flash list |
107
+ | `checkBoxViewStyleProps` | [BuiltInCheckBoxViewStyleProps](#builtincheckboxviewstyleprops) | No | Props for the checkbox view |
108
+ | `CheckboxComponent` | `ComponentType<`[CheckBoxViewProps](#checkboxviewprops)`>` | No | A custom checkbox component. Defaults to React Native Paper's Checkbox |
109
+ | `ExpandCollapseIconComponent` | `ComponentType<`[ExpandIconProps](#expandiconprops)`>` | No | A custom expand/collapse icon component |
110
+ | `ExpandCollapseTouchableComponent` | `ComponentType<`[TouchableOpacityProps](https://reactnative.dev/docs/touchableopacity#props)`>` | No | A custom expand/collapse touchable component |
111
+ | `CustomNodeRowComponent` | `React.ComponentType<`[NodeRowProps](#noderowprops)`>` | No | Custom row item component |
112
112
 
113
113
  ℹ️ If `CustomNodeRowComponent` is provided then below props are not applied:
114
114
 
@@ -162,7 +162,7 @@ All properties of `FlashListProps`(from `@shopify/flash-list`) except for `data`
162
162
  | `outermostParentViewStyle` | `StyleProp<ViewStyle>` | No | Optional style modifier for the outermost parent view. |
163
163
  | `checkboxParentViewStyle` | `StyleProp<ViewStyle>` | No | Optional style modifier for the checkbox parent view. |
164
164
  | `textTouchableStyle` | `StyleProp<ViewStyle>` | No | Optional style modifier for the text touchable style. |
165
- | `checkboxProps` | `CheckboxProps` | No | Optional props for the checkbox component. |
165
+ | `checkboxProps` | [CheckboxProps](#checkboxprops) | No | Optional props for the checkbox component. |
166
166
  | `textProps` | `TextProps` <br />(React Native) | No | Optional props for the text component. |
167
167
 
168
168
  #### CheckboxProps
@@ -173,11 +173,11 @@ All properties of `RNPaperCheckboxAndroidProps`(from `react-native-paper`) excep
173
173
 
174
174
  #### CheckBoxViewProps
175
175
 
176
- | Property | Type | Required | Description |
177
- | --------------- | -------------------------- | -------- | -------------------------------------------------- |
178
- | `value` | `CheckboxValueType` | Yes | The current value of the checkbox |
179
- | `onValueChange` | `(value: boolean) => void` | Yes | Function to be called when the checkbox is pressed |
180
- | `text` | `string` | Yes | The display text besides the checkbox |
176
+ | Property | Type | Required | Description |
177
+ | --------------- | --------------------------------------- | -------- | -------------------------------------------------- |
178
+ | `value` | [CheckboxValueType](#checkboxvaluetype) | Yes | The current value of the checkbox |
179
+ | `onValueChange` | `(value: boolean) => void` | Yes | Function to be called when the checkbox is pressed |
180
+ | `text` | `string` | Yes | The display text besides the checkbox |
181
181
 
182
182
  #### CheckboxValueType
183
183
 
@@ -195,14 +195,14 @@ Type: `boolean` OR ` "indeterminate"`
195
195
 
196
196
  #### NodeRowProps
197
197
 
198
- | Property | Type | Required | Description |
199
- | -------------- | ------------------- | -------- | ------------------------------------------------------- |
200
- | `node` | `TreeNode` | Yes | The node to be rendered |
201
- | `level` | `number` | Yes | The depth of the node in the tree |
202
- | `checkedValue` | `CheckboxValueType` | Yes | The current value of the checkbox |
203
- | `isExpanded` | `boolean` | Yes | Whether the node is expanded or not |
204
- | `onCheck` | `() => void` | Yes | Function to be called when the checkbox is pressed |
205
- | `onExpand` | `() => void` | Yes | Function to be called when the expand button is pressed |
198
+ | Property | Type | Required | Description |
199
+ | -------------- | --------------------------------------- | -------- | ------------------------------------------------------- |
200
+ | `node` | [TreeNode](#treenode) | Yes | The node to be rendered |
201
+ | `level` | `number` | Yes | The depth of the node in the tree |
202
+ | `checkedValue` | [CheckboxValueType](#checkboxvaluetype) | Yes | The current value of the checkbox |
203
+ | `isExpanded` | `boolean` | Yes | Whether the node is expanded or not |
204
+ | `onCheck` | `() => void` | Yes | Function to be called when the checkbox is pressed |
205
+ | `onExpand` | `() => void` | Yes | Function to be called when the expand button is pressed |
206
206
 
207
207
  ---
208
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tree-multi-select",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Super-fast Tree view with multi-selection capabilities, using checkboxes and search filtering.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -37,8 +37,7 @@
37
37
  "build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
38
38
  "build:ios": "cd example/ios && pod install && xcodebuild -workspace TreeMultiSelectExample.xcworkspace -scheme TreeMultiSelectExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
39
39
  "bootstrap": "yarn example && yarn install && yarn example pods",
40
- "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
41
- "generate-changelog": "auto-changelog"
40
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
42
41
  },
43
42
  "keywords": [
44
43
  "react-native",
@@ -73,13 +72,18 @@
73
72
  },
74
73
  "homepage": "https://github.com/JairajJangle/react-native-tree-multi-select#readme",
75
74
  "publishConfig": {
76
- "registry": "https://registry.npmjs.org/"
75
+ "registry": "https://registry.npmjs.org/",
76
+ "provenance": true
77
77
  },
78
78
  "devDependencies": {
79
79
  "@commitlint/config-conventional": "^17.0.2",
80
80
  "@evilmartians/lefthook": "^1.2.2",
81
81
  "@react-native-community/eslint-config": "^3.0.2",
82
82
  "@release-it/conventional-changelog": "^5.0.0",
83
+ "@semantic-release/changelog": "^6.0.3",
84
+ "@semantic-release/git": "^10.0.1",
85
+ "@semantic-release/github": "^10.0.3",
86
+ "@semantic-release/npm": "^12.0.0",
83
87
  "@shopify/flash-list": "1.x.x",
84
88
  "@testing-library/jest-native": "^5.4.2",
85
89
  "@testing-library/react-native": "^12.1.2",
@@ -88,8 +92,7 @@
88
92
  "@types/react": "~17.0.21",
89
93
  "@types/react-native": "0.70.0",
90
94
  "@types/react-native-vector-icons": "^6.4.13",
91
- "@types/react-test-renderer": "^18.0.0",
92
- "auto-changelog": "^2.4.0",
95
+ "@types/react-test-renderer": "18.0.0",
93
96
  "commitlint": "^17.0.2",
94
97
  "del-cli": "^5.0.0",
95
98
  "eslint": "^8.4.1",
@@ -102,8 +105,9 @@
102
105
  "react-native": "0.72.1",
103
106
  "react-native-builder-bob": "^0.20.0",
104
107
  "react-native-paper": "5.x.x",
105
- "react-test-renderer": "^18.2.0",
108
+ "react-test-renderer": "18.2.0",
106
109
  "release-it": "^15.0.0",
110
+ "semantic-release": "^23.0.8",
107
111
  "ts-jest": "^29.1.1",
108
112
  "turbo": "^1.10.7",
109
113
  "typescript": "^5.0.2"