@draftbit/core 46.2.4-cb2c54.5 → 46.2.4-cd53c5.9
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/components/Portal/PortalHost.js +15 -27
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/SVG.js +0 -1
- package/lib/module/components/StarRating.js +5 -24
- package/lib/module/constants.js +0 -1
- package/lib/module/mappings/SVG.js +0 -1
- package/lib/typescript/src/mappings/SVG.d.ts +0 -1
- package/package.json +4 -4
- package/src/mappings/SVG.js +0 -1
- package/src/mappings/SVG.ts +0 -1
|
@@ -17,6 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
20
22
|
const PortalContext = /*#__PURE__*/React.createContext(null);
|
|
21
23
|
/**
|
|
22
24
|
* Portal host renders all of its children `Portal` elements.
|
|
@@ -49,11 +51,11 @@ class PortalHost extends React.Component {
|
|
|
49
51
|
constructor() {
|
|
50
52
|
super(...arguments);
|
|
51
53
|
|
|
52
|
-
this
|
|
54
|
+
_defineProperty(this, "setManager", manager => {
|
|
53
55
|
this.manager = manager;
|
|
54
|
-
};
|
|
56
|
+
});
|
|
55
57
|
|
|
56
|
-
this
|
|
58
|
+
_defineProperty(this, "mount", children => {
|
|
57
59
|
const key = this.nextKey++;
|
|
58
60
|
|
|
59
61
|
if (this.manager) {
|
|
@@ -67,9 +69,9 @@ class PortalHost extends React.Component {
|
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
return key;
|
|
70
|
-
};
|
|
72
|
+
});
|
|
71
73
|
|
|
72
|
-
this
|
|
74
|
+
_defineProperty(this, "update", (key, children) => {
|
|
73
75
|
if (this.manager) {
|
|
74
76
|
this.manager.update(key, children);
|
|
75
77
|
} else {
|
|
@@ -87,9 +89,9 @@ class PortalHost extends React.Component {
|
|
|
87
89
|
this.queue.push(op);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
|
-
};
|
|
92
|
+
});
|
|
91
93
|
|
|
92
|
-
this
|
|
94
|
+
_defineProperty(this, "unmount", key => {
|
|
93
95
|
if (this.manager) {
|
|
94
96
|
this.manager.unmount(key);
|
|
95
97
|
} else {
|
|
@@ -98,10 +100,13 @@ class PortalHost extends React.Component {
|
|
|
98
100
|
key
|
|
99
101
|
});
|
|
100
102
|
}
|
|
101
|
-
};
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
_defineProperty(this, "nextKey", 0);
|
|
106
|
+
|
|
107
|
+
_defineProperty(this, "queue", []);
|
|
102
108
|
|
|
103
|
-
this
|
|
104
|
-
this.queue = [];
|
|
109
|
+
_defineProperty(this, "manager", void 0);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
componentDidMount() {
|
|
@@ -147,23 +152,6 @@ class PortalHost extends React.Component {
|
|
|
147
152
|
|
|
148
153
|
}
|
|
149
154
|
|
|
150
|
-
exports.default = PortalHost;
|
|
151
|
-
PortalHost.displayName = "Portal.Host";
|
|
152
|
-
|
|
153
|
-
const styles = _reactNative.StyleSheet.create({
|
|
154
|
-
container: {
|
|
155
|
-
flex: 1
|
|
156
|
-
}
|
|
157
|
-
}); style: styles.container,
|
|
158
|
-
collapsable: false,
|
|
159
|
-
pointerEvents: "box-none"
|
|
160
|
-
}, this.props.children), /*#__PURE__*/React.createElement(_PortalManager.default, {
|
|
161
|
-
ref: this.setManager
|
|
162
|
-
}));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
155
|
exports.default = PortalHost;
|
|
168
156
|
|
|
169
157
|
_defineProperty(PortalHost, "displayName", "Portal.Host");
|
|
@@ -16,4 +16,4 @@ const APPROX_STATUSBAR_HEIGHT = _reactNative.Platform.select({
|
|
|
16
16
|
ios: _reactNative.Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
|
19
|
+
exports.APPROX_STATUSBAR_HEIGHT = APPROX_STATUSBAR_HEIGHT;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import * as React from "react";
|
|
2
4
|
import { View, StyleSheet, Pressable } from "react-native";
|
|
3
5
|
import { withTheme } from "../theming";
|
|
@@ -32,10 +34,9 @@ const StarRating = _ref => {
|
|
|
32
34
|
!!onPress && onPress(r);
|
|
33
35
|
}, [onPress]);
|
|
34
36
|
const ratingRounded = Math.round(localRating * 2) / 2;
|
|
35
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
36
|
-
style: [styles.container, style]
|
|
37
|
-
|
|
38
|
-
}, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
|
|
37
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
38
|
+
style: [styles.container, style]
|
|
39
|
+
}, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(View, {
|
|
39
40
|
key: i,
|
|
40
41
|
style: {
|
|
41
42
|
display: "flex"
|
|
@@ -76,24 +77,4 @@ const styles = StyleSheet.create({
|
|
|
76
77
|
width: "50%"
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
|
-
export default withTheme(StarRating);ontainer: {
|
|
80
|
-
flexDirection: "row",
|
|
81
|
-
alignItems: "center"
|
|
82
|
-
},
|
|
83
|
-
touchContainer: {
|
|
84
|
-
display: "flex",
|
|
85
|
-
flexDirection: "row",
|
|
86
|
-
position: "absolute",
|
|
87
|
-
top: 0,
|
|
88
|
-
right: 0,
|
|
89
|
-
left: 0,
|
|
90
|
-
bottom: 0,
|
|
91
|
-
zIndex: 1
|
|
92
|
-
},
|
|
93
|
-
pressable: {
|
|
94
|
-
flex: 1,
|
|
95
|
-
height: "100%",
|
|
96
|
-
width: "50%"
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
80
|
export default withTheme(StarRating);
|
package/lib/module/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.2.4-
|
|
3
|
+
"version": "46.2.4-cd53c5.9+cd53c59b",
|
|
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": "^46.2.4-
|
|
44
|
+
"@draftbit/types": "^46.2.4-cd53c5.9+cd53c59b",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"lodash.omit": "^4.5.0",
|
|
54
54
|
"lodash.tonumber": "^4.0.3",
|
|
55
55
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
56
|
-
"react-native-svg": "
|
|
56
|
+
"react-native-svg": "12.3.0",
|
|
57
57
|
"react-native-typography": "^1.4.1",
|
|
58
58
|
"react-native-web-swiper": "^2.2.3"
|
|
59
59
|
},
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
]
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "cd53c59b7ac033cb8ec4bedeb49f073d78bcef65"
|
|
84
84
|
}
|
package/src/mappings/SVG.js
CHANGED