@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.
@@ -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 = _Config.default.placeholderSvgURL,
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;
@@ -11,6 +11,7 @@ const SEED_DATA = {
11
11
  name: "SVG",
12
12
  tag: "SVG",
13
13
  description: "An SVG component",
14
+ packageName: "@draftbit/core",
14
15
  category: _types.COMPONENT_TYPES.media,
15
16
  layout: {
16
17
  width: 100,
@@ -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 = Config.placeholderSvgURL,
7
+ source,
9
8
  style
10
9
  } = _ref;
11
10
  return /*#__PURE__*/React.createElement(React.Fragment, null, Platform.OS === "ios" && /*#__PURE__*/React.createElement(View, {
@@ -3,6 +3,7 @@ export const SEED_DATA = {
3
3
  name: "SVG",
4
4
  tag: "SVG",
5
5
  description: "An SVG component",
6
+ packageName: "@draftbit/core",
6
7
  category: COMPONENT_TYPES.media,
7
8
  layout: {
8
9
  width: 100,
@@ -1,7 +1,6 @@
1
- import * as React from "react";
2
- declare type SvgComponentProps = {
3
- source: string;
4
- style?: any;
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;
@@ -2,6 +2,7 @@ export declare const SEED_DATA: {
2
2
  name: string;
3
3
  tag: string;
4
4
  description: string;
5
+ packageName: string;
5
6
  category: string;
6
7
  layout: {
7
8
  width: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.2.4-0e692a.5+0e692adc",
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-0e692a.5+0e692adc",
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": "^13.2.0",
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": "0e692adc6f7d632b5a1e30eedeba4d9b5f810afa"
83
+ "gitHead": "2f63da07a13d285238a341fb139211ef8460db26"
84
84
  }
@@ -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
- import Config from "./Config";
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 }))),
@@ -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
- import Config from "./Config";
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" && (
@@ -3,6 +3,7 @@ export const SEED_DATA = {
3
3
  name: "SVG",
4
4
  tag: "SVG",
5
5
  description: "An SVG component",
6
+ packageName: "@draftbit/core",
6
7
  category: COMPONENT_TYPES.media,
7
8
  layout: {
8
9
  width: 100,
@@ -8,6 +8,7 @@ export const SEED_DATA = {
8
8
  name: "SVG",
9
9
  tag: "SVG",
10
10
  description: "An SVG component",
11
+ packageName: "@draftbit/core",
11
12
  category: COMPONENT_TYPES.media,
12
13
  layout: {
13
14
  width: 100,