@draftbit/core 46.2.4-0e692a.5 → 46.2.4-2f63da.5
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/Svg.js +1 -5
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Svg.js +1 -0
- package/lib/module/components/Svg.js +1 -2
- package/lib/module/mappings/Svg.js +1 -0
- package/lib/typescript/src/components/Svg.d.ts +5 -6
- package/lib/typescript/src/mappings/Svg.d.ts +1 -0
- package/package.json +4 -4
- package/src/components/Svg.js +1 -2
- package/src/components/Svg.tsx +1 -11
- package/src/mappings/Svg.js +1 -0
- package/src/mappings/Svg.ts +1 -0
|
@@ -11,17 +11,13 @@ var _reactNative = require("react-native");
|
|
|
11
11
|
|
|
12
12
|
var _reactNativeSvg = require("react-native-svg");
|
|
13
13
|
|
|
14
|
-
var _Config = _interopRequireDefault(require("./Config"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
15
|
|
|
20
16
|
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; }
|
|
21
17
|
|
|
22
18
|
const Svg = _ref => {
|
|
23
19
|
let {
|
|
24
|
-
source
|
|
20
|
+
source,
|
|
25
21
|
style
|
|
26
22
|
} = _ref;
|
|
27
23
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _reactNative.Platform.OS === "ios" && /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
@@ -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;AR_HEIGHT;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View, Platform, Image } from "react-native";
|
|
3
3
|
import { SvgUri } from "react-native-svg";
|
|
4
|
-
import Config from "./Config";
|
|
5
4
|
|
|
6
5
|
const Svg = _ref => {
|
|
7
6
|
let {
|
|
8
|
-
source
|
|
7
|
+
source,
|
|
9
8
|
style
|
|
10
9
|
} = _ref;
|
|
11
10
|
return /*#__PURE__*/React.createElement(React.Fragment, null, Platform.OS === "ios" && /*#__PURE__*/React.createElement(View, {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare
|
|
3
|
-
source:
|
|
4
|
-
style
|
|
5
|
-
};
|
|
6
|
-
declare const Svg: React.FC<React.PropsWithChildren<SvgComponentProps>>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Svg: ({ source, style }: {
|
|
3
|
+
source: any;
|
|
4
|
+
style: any;
|
|
5
|
+
}) => JSX.Element;
|
|
7
6
|
export default Svg;
|
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-2f63da.5+2f63da07",
|
|
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-2f63da.5+2f63da07",
|
|
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": "2f63da07a13d285238a341fb139211ef8460db26"
|
|
84
84
|
}
|
package/src/components/Svg.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View, Platform, Image } from "react-native";
|
|
3
3
|
import { SvgUri } from "react-native-svg";
|
|
4
|
-
|
|
5
|
-
const Svg = ({ source = Config.placeholderSvgURL, style, }) => {
|
|
4
|
+
const Svg = ({ source, style }) => {
|
|
6
5
|
return (React.createElement(React.Fragment, null,
|
|
7
6
|
Platform.OS === "ios" && (React.createElement(View, { style: style },
|
|
8
7
|
React.createElement(SvgUri, { width: "100%", height: "100%", uri: source }))),
|
package/src/components/Svg.tsx
CHANGED
|
@@ -2,17 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { View, Platform, Image } from "react-native";
|
|
3
3
|
import { SvgUri } from "react-native-svg";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type SvgComponentProps = {
|
|
8
|
-
source: string;
|
|
9
|
-
style?: any;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const Svg: React.FC<React.PropsWithChildren<SvgComponentProps>> = ({
|
|
13
|
-
source = Config.placeholderSvgURL,
|
|
14
|
-
style,
|
|
15
|
-
}) => {
|
|
5
|
+
const Svg = ({ source, style }: { source: any; style: any }) => {
|
|
16
6
|
return (
|
|
17
7
|
<>
|
|
18
8
|
{Platform.OS === "ios" && (
|
package/src/mappings/Svg.js
CHANGED