@draftbit/core 47.1.1-1883fa.2 → 47.1.1-1cf609.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.
- package/lib/commonjs/hooks.js +1 -2
- package/lib/commonjs/mappings/FlashList.js +4 -4
- package/lib/commonjs/mappings/FlatList.js +2 -2
- package/lib/commonjs/mappings/ScrollView.js +1 -1
- package/lib/module/mappings/FlashList.js +4 -4
- package/lib/module/mappings/FlatList.js +2 -2
- package/lib/module/mappings/ScrollView.js +1 -1
- package/package.json +3 -3
- package/src/mappings/FlashList.js +4 -4
- package/src/mappings/FlashList.ts +4 -4
- package/src/mappings/FlatList.js +2 -2
- package/src/mappings/FlatList.ts +2 -2
- package/src/mappings/ScrollView.js +1 -1
- package/src/mappings/ScrollView.ts +1 -1
package/lib/commonjs/hooks.js
CHANGED
|
@@ -10,12 +10,11 @@ function usePrevious(value) {
|
|
|
10
10
|
// The ref object is a generic container whose current property is mutable
|
|
11
11
|
// and can hold any value, similar to an instance property on a class
|
|
12
12
|
const ref = _react.default.useRef();
|
|
13
|
-
|
|
14
13
|
// Store current value in ref
|
|
15
14
|
_react.default.useEffect(() => {
|
|
16
15
|
ref.current = value;
|
|
17
16
|
}, [value]);
|
|
18
|
-
|
|
19
17
|
// Return previous value (happens before update in useEffect above)
|
|
20
18
|
return ref.current;
|
|
19
|
+
}
|
|
21
20
|
}
|
|
@@ -46,8 +46,8 @@ const SEED_DATA = [{
|
|
|
46
46
|
}),
|
|
47
47
|
showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
48
48
|
label: "Show Horizontal Scroll Indicator",
|
|
49
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
50
|
-
defaultValue:
|
|
49
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
50
|
+
defaultValue: true
|
|
51
51
|
}),
|
|
52
52
|
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
53
53
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -104,8 +104,8 @@ const SEED_DATA = [{
|
|
|
104
104
|
}),
|
|
105
105
|
showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
106
106
|
label: "Show Horizontal Scroll Indicator",
|
|
107
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
108
|
-
defaultValue:
|
|
107
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
108
|
+
defaultValue: true
|
|
109
109
|
}),
|
|
110
110
|
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
111
111
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -45,8 +45,8 @@ const SEED_DATA = {
|
|
|
45
45
|
}),
|
|
46
46
|
showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
47
47
|
label: "Show Horizontal Scroll Indicator",
|
|
48
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
49
|
-
defaultValue:
|
|
48
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
49
|
+
defaultValue: true
|
|
50
50
|
}),
|
|
51
51
|
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
52
52
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -23,7 +23,7 @@ const SEED_DATA = {
|
|
|
23
23
|
showsHorizontalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
24
24
|
label: "Show Horizontal Scroll Indicator",
|
|
25
25
|
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
26
|
-
defaultValue:
|
|
26
|
+
defaultValue: true
|
|
27
27
|
}),
|
|
28
28
|
showsVerticalScrollIndicator: (0, _types.createStaticBoolProp)({
|
|
29
29
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -40,8 +40,8 @@ export const SEED_DATA = [{
|
|
|
40
40
|
}),
|
|
41
41
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
42
42
|
label: "Show Horizontal Scroll Indicator",
|
|
43
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
44
|
-
defaultValue:
|
|
43
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
44
|
+
defaultValue: true
|
|
45
45
|
}),
|
|
46
46
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
47
47
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -98,8 +98,8 @@ export const SEED_DATA = [{
|
|
|
98
98
|
}),
|
|
99
99
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
100
100
|
label: "Show Horizontal Scroll Indicator",
|
|
101
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
102
|
-
defaultValue:
|
|
101
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
102
|
+
defaultValue: true
|
|
103
103
|
}),
|
|
104
104
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
105
105
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -39,8 +39,8 @@ export const SEED_DATA = {
|
|
|
39
39
|
}),
|
|
40
40
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
41
41
|
label: "Show Horizontal Scroll Indicator",
|
|
42
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
43
|
-
defaultValue:
|
|
42
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
43
|
+
defaultValue: true
|
|
44
44
|
}),
|
|
45
45
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
46
46
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -17,7 +17,7 @@ export const SEED_DATA = {
|
|
|
17
17
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
18
18
|
label: "Show Horizontal Scroll Indicator",
|
|
19
19
|
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
20
|
-
defaultValue:
|
|
20
|
+
defaultValue: true
|
|
21
21
|
}),
|
|
22
22
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
23
23
|
label: "Show Vertical Scroll Indicator",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "47.1.1-
|
|
3
|
+
"version": "47.1.1-1cf609.2+1cf6094",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^47.1.1-
|
|
44
|
+
"@draftbit/types": "^47.1.1-1cf609.2+1cf6094",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.4",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
]
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "1cf6094951f81313e8d070ccc194e5caa5f306da"
|
|
95
95
|
}
|
|
@@ -41,8 +41,8 @@ export const SEED_DATA = [
|
|
|
41
41
|
}),
|
|
42
42
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
43
43
|
label: "Show Horizontal Scroll Indicator",
|
|
44
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
45
|
-
defaultValue:
|
|
44
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
45
|
+
defaultValue: true,
|
|
46
46
|
}),
|
|
47
47
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
48
48
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -100,8 +100,8 @@ export const SEED_DATA = [
|
|
|
100
100
|
}),
|
|
101
101
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
102
102
|
label: "Show Horizontal Scroll Indicator",
|
|
103
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
104
|
-
defaultValue:
|
|
103
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
104
|
+
defaultValue: true,
|
|
105
105
|
}),
|
|
106
106
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
107
107
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -55,8 +55,8 @@ export const SEED_DATA = [
|
|
|
55
55
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
56
56
|
label: "Show Horizontal Scroll Indicator",
|
|
57
57
|
description:
|
|
58
|
-
"When true, shows a horizontal scroll indicator. The default value is
|
|
59
|
-
defaultValue:
|
|
58
|
+
"When true, shows a horizontal scroll indicator. The default value is true.",
|
|
59
|
+
defaultValue: true,
|
|
60
60
|
}),
|
|
61
61
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
62
62
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -117,8 +117,8 @@ export const SEED_DATA = [
|
|
|
117
117
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
118
118
|
label: "Show Horizontal Scroll Indicator",
|
|
119
119
|
description:
|
|
120
|
-
"When true, shows a horizontal scroll indicator. The default value is
|
|
121
|
-
defaultValue:
|
|
120
|
+
"When true, shows a horizontal scroll indicator. The default value is true.",
|
|
121
|
+
defaultValue: true,
|
|
122
122
|
}),
|
|
123
123
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
124
124
|
label: "Show Vertical Scroll Indicator",
|
package/src/mappings/FlatList.js
CHANGED
|
@@ -39,8 +39,8 @@ export const SEED_DATA = {
|
|
|
39
39
|
}),
|
|
40
40
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
41
41
|
label: "Show Horizontal Scroll Indicator",
|
|
42
|
-
description: "When true, shows a horizontal scroll indicator. The default value is
|
|
43
|
-
defaultValue:
|
|
42
|
+
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
43
|
+
defaultValue: true,
|
|
44
44
|
}),
|
|
45
45
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
46
46
|
label: "Show Vertical Scroll Indicator",
|
package/src/mappings/FlatList.ts
CHANGED
|
@@ -51,8 +51,8 @@ export const SEED_DATA = {
|
|
|
51
51
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
52
52
|
label: "Show Horizontal Scroll Indicator",
|
|
53
53
|
description:
|
|
54
|
-
"When true, shows a horizontal scroll indicator. The default value is
|
|
55
|
-
defaultValue:
|
|
54
|
+
"When true, shows a horizontal scroll indicator. The default value is true.",
|
|
55
|
+
defaultValue: true,
|
|
56
56
|
}),
|
|
57
57
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
58
58
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -17,7 +17,7 @@ export const SEED_DATA = {
|
|
|
17
17
|
showsHorizontalScrollIndicator: createStaticBoolProp({
|
|
18
18
|
label: "Show Horizontal Scroll Indicator",
|
|
19
19
|
description: "When true, shows a horizontal scroll indicator. The default value is true.",
|
|
20
|
-
defaultValue:
|
|
20
|
+
defaultValue: true,
|
|
21
21
|
}),
|
|
22
22
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
23
23
|
label: "Show Vertical Scroll Indicator",
|
|
@@ -26,7 +26,7 @@ export const SEED_DATA = {
|
|
|
26
26
|
label: "Show Horizontal Scroll Indicator",
|
|
27
27
|
description:
|
|
28
28
|
"When true, shows a horizontal scroll indicator. The default value is true.",
|
|
29
|
-
defaultValue:
|
|
29
|
+
defaultValue: true,
|
|
30
30
|
}),
|
|
31
31
|
showsVerticalScrollIndicator: createStaticBoolProp({
|
|
32
32
|
label: "Show Vertical Scroll Indicator",
|