@draftbit/core 49.2.6-faee0d.2 → 49.2.7
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/MediaPlayer/VideoPlayer/index.js +1 -1
- package/lib/commonjs/components/SVG.js +1 -1
- package/lib/commonjs/components/SVG.native.js +1 -0
- package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +1 -1
- package/lib/typescript/src/components/MediaPlayer/VideoPlayer/index.d.ts +1 -1
- package/lib/typescript/src/components/SVG.js +2 -8
- package/lib/typescript/src/components/SVG.js.map +1 -1
- package/lib/typescript/src/components/SVG.native.d.ts +8 -0
- package/lib/typescript/src/components/SVG.native.js +10 -0
- package/lib/typescript/src/components/SVG.native.js.map +1 -0
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/MediaPlayer/AudioPlayer/index.tsx +1 -1
- package/src/components/MediaPlayer/VideoPlayer/index.ts +1 -1
- package/src/components/SVG.js +2 -8
- package/src/components/SVG.js.map +1 -1
- package/src/components/SVG.native.js +10 -0
- package/src/components/SVG.native.js.map +1 -0
- package/src/components/SVG.native.tsx +23 -0
- package/src/components/SVG.tsx +2 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "49.2.
|
|
3
|
+
"version": "49.2.7",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"types": "lib/typescript/src/index.d.ts",
|
|
@@ -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": "
|
|
44
|
+
"@draftbit/types": "49.2.6",
|
|
45
45
|
"@expo/vector-icons": "^13.0.0",
|
|
46
46
|
"@gorhom/bottom-sheet": "^5.0.0-alpha.4",
|
|
47
47
|
"@material-ui/core": "^4.11.0",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
],
|
|
113
113
|
"testEnvironment": "node"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "2358ba206d52b9987c0fb71d83d9f06aaceed5e9"
|
|
116
116
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./AudioPlayerCommon";
|
|
7
7
|
import HeadlessAudioPlayer from "./HeadlessAudioPlayer";
|
|
8
8
|
import AudioPlayerWithInterface from "./AudioPlayerWithInterface";
|
|
9
|
-
import { MediaPlayerRef } from "../MediaPlayerCommon";
|
|
9
|
+
import type { MediaPlayerRef } from "../MediaPlayerCommon";
|
|
10
10
|
|
|
11
11
|
interface AudioPlayerProps {
|
|
12
12
|
mode?: "interface" | "headless";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as default } from "./VideoPlayer";
|
|
2
|
-
export { VideoPlayerRef } from "./VideoPlayer";
|
|
2
|
+
export type { VideoPlayerRef } from "./VideoPlayer";
|
package/src/components/SVG.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { SvgUri } from "react-native-svg";
|
|
2
|
+
import { Image } from "react-native";
|
|
4
3
|
import Config from "./Config";
|
|
5
4
|
const SVG = ({ source = Config.placeholderSvgURL, style, }) => {
|
|
6
|
-
return
|
|
7
|
-
Platform.OS === "ios" && (React.createElement(View, { style: style },
|
|
8
|
-
React.createElement(SvgUri, { width: "100%", height: "100%", uri: source }))),
|
|
9
|
-
Platform.OS === "android" && (React.createElement(View, { style: style },
|
|
10
|
-
React.createElement(SvgUri, { width: "100%", height: "100%", uri: source }))),
|
|
11
|
-
Platform.OS === "web" && (React.createElement(Image, { style: style, source: { uri: source } }))));
|
|
5
|
+
return React.createElement(Image, { style: style, source: { uri: source } });
|
|
12
6
|
};
|
|
13
7
|
export default SVG;
|
|
14
8
|
//# sourceMappingURL=SVG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["SVG.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SVG.js","sourceRoot":"","sources":["SVG.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAyB,MAAM,cAAc,CAAC;AAE5D,OAAO,MAAM,MAAM,UAAU,CAAC;AAO9B,MAAM,GAAG,GAAyD,CAAC,EACjE,MAAM,GAAG,MAAM,CAAC,iBAAiB,EACjC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { SvgUri } from "react-native-svg";
|
|
4
|
+
import Config from "./Config";
|
|
5
|
+
const SVG = ({ source = Config.placeholderSvgURL, style, }) => {
|
|
6
|
+
return (React.createElement(View, { style: style },
|
|
7
|
+
React.createElement(SvgUri, { width: "100%", height: "100%", uri: source })));
|
|
8
|
+
};
|
|
9
|
+
export default SVG;
|
|
10
|
+
//# sourceMappingURL=SVG.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SVG.native.js","sourceRoot":"","sources":["SVG.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAyB,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,MAAM,MAAM,UAAU,CAAC;AAO9B,MAAM,GAAG,GAAyD,CAAC,EACjE,MAAM,GAAG,MAAM,CAAC,iBAAiB,EACjC,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;QAChB,oBAAC,MAAM,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,GAAG,EAAE,MAAM,GAAI,CAC7C,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { View, StyleProp, ImageStyle } from "react-native";
|
|
3
|
+
import { SvgUri } from "react-native-svg";
|
|
4
|
+
|
|
5
|
+
import Config from "./Config";
|
|
6
|
+
|
|
7
|
+
type SVGComponentProps = {
|
|
8
|
+
source: string;
|
|
9
|
+
style?: StyleProp<ImageStyle>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const SVG: React.FC<React.PropsWithChildren<SVGComponentProps>> = ({
|
|
13
|
+
source = Config.placeholderSvgURL,
|
|
14
|
+
style,
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<View style={style}>
|
|
18
|
+
<SvgUri width="100%" height="100%" uri={source} />
|
|
19
|
+
</View>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default SVG;
|
package/src/components/SVG.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { SvgUri } from "react-native-svg";
|
|
2
|
+
import { Image, StyleProp, ImageStyle } from "react-native";
|
|
4
3
|
|
|
5
4
|
import Config from "./Config";
|
|
6
5
|
|
|
@@ -13,23 +12,7 @@ const SVG: React.FC<React.PropsWithChildren<SVGComponentProps>> = ({
|
|
|
13
12
|
source = Config.placeholderSvgURL,
|
|
14
13
|
style,
|
|
15
14
|
}) => {
|
|
16
|
-
return
|
|
17
|
-
<>
|
|
18
|
-
{Platform.OS === "ios" && (
|
|
19
|
-
<View style={style}>
|
|
20
|
-
<SvgUri width="100%" height="100%" uri={source} />
|
|
21
|
-
</View>
|
|
22
|
-
)}
|
|
23
|
-
{Platform.OS === "android" && (
|
|
24
|
-
<View style={style}>
|
|
25
|
-
<SvgUri width="100%" height="100%" uri={source} />
|
|
26
|
-
</View>
|
|
27
|
-
)}
|
|
28
|
-
{Platform.OS === "web" && (
|
|
29
|
-
<Image style={style} source={{ uri: source }} />
|
|
30
|
-
)}
|
|
31
|
-
</>
|
|
32
|
-
);
|
|
15
|
+
return <Image style={style} source={{ uri: source }} />;
|
|
33
16
|
};
|
|
34
17
|
|
|
35
18
|
export default SVG;
|