@draftbit/core 46.8.2-5f263c.2 → 46.8.2-81337b.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/components/DeprecatedCardWrapper.js +15 -1
- package/lib/commonjs/components/TabView/TabView.js +100 -0
- package/lib/commonjs/components/TabView/TabViewItem.js +25 -0
- package/lib/commonjs/components/TabView/index.js +20 -0
- package/lib/commonjs/index.js +13 -7
- package/lib/commonjs/mappings/TabView.js +74 -0
- package/lib/commonjs/mappings/TabViewItem.js +37 -0
- package/lib/commonjs/styles/overlay.js +1 -3
- package/lib/commonjs/utilities.js +1 -2
- package/lib/module/components/TabView/TabView.js +90 -0
- package/lib/module/components/TabView/TabViewItem.js +20 -0
- package/lib/module/components/TabView/index.js +2 -0
- package/lib/module/index.js +1 -1
- package/lib/module/mappings/TabView.js +67 -0
- package/lib/module/mappings/TabViewItem.js +30 -0
- package/lib/typescript/src/components/TabView/TabView.d.ts +26 -0
- package/lib/typescript/src/components/TabView/TabView.d.ts.map +1 -0
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts +11 -0
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts.map +1 -0
- package/lib/typescript/src/components/TabView/index.d.ts +3 -0
- package/lib/typescript/src/components/TabView/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/TabView.d.ts +123 -0
- package/lib/typescript/src/mappings/TabView.d.ts.map +1 -0
- package/lib/typescript/src/mappings/{Markdown.d.ts → TabViewItem.d.ts} +10 -5
- package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -0
- package/package.json +5 -4
- package/src/components/TabView/TabView.js +45 -0
- package/src/components/TabView/TabView.tsx +129 -0
- package/src/components/TabView/TabViewItem.js +11 -0
- package/src/components/TabView/TabViewItem.tsx +25 -0
- package/src/components/TabView/index.js +2 -0
- package/src/components/TabView/index.tsx +2 -0
- package/src/index.js +1 -1
- package/src/index.tsx +1 -1
- package/src/mappings/TabView.js +70 -0
- package/src/mappings/TabView.ts +81 -0
- package/src/mappings/TabViewItem.js +30 -0
- package/src/mappings/TabViewItem.ts +38 -0
- package/lib/commonjs/components/Markdown.js +0 -30
- package/lib/commonjs/mappings/Markdown.js +0 -27
- package/lib/module/components/Markdown.js +0 -20
- package/lib/module/mappings/Markdown.js +0 -20
- package/lib/typescript/src/components/Markdown.d.ts +0 -8
- package/lib/typescript/src/components/Markdown.d.ts.map +0 -1
- package/lib/typescript/src/mappings/Markdown.d.ts.map +0 -1
- package/src/components/Markdown.js +0 -10
- package/src/components/Markdown.tsx +0 -22
- package/src/mappings/Markdown.js +0 -25
- package/src/mappings/Markdown.ts +0 -32
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeMarkdownDisplay = _interopRequireDefault(require("react-native-markdown-display"));
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
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); }
|
|
12
|
-
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; }
|
|
13
|
-
const Markdown = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
children,
|
|
16
|
-
style
|
|
17
|
-
} = _ref;
|
|
18
|
-
return (
|
|
19
|
-
/*#__PURE__*/
|
|
20
|
-
//'body' style applies to all markdown components
|
|
21
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
22
|
-
React.createElement(_reactNativeMarkdownDisplay.default, {
|
|
23
|
-
style: {
|
|
24
|
-
body: _reactNative.StyleSheet.flatten(style)
|
|
25
|
-
}
|
|
26
|
-
}, children)
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
var _default = Markdown;
|
|
30
|
-
exports.default = _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SEED_DATA = void 0;
|
|
7
|
-
var _types = require("@draftbit/types");
|
|
8
|
-
const SEED_DATA = {
|
|
9
|
-
name: "Markdown",
|
|
10
|
-
tag: "Markdown",
|
|
11
|
-
description: "A component that renders markdown",
|
|
12
|
-
category: _types.COMPONENT_TYPES.text,
|
|
13
|
-
stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Effects],
|
|
14
|
-
props: {
|
|
15
|
-
children: {
|
|
16
|
-
group: _types.GROUPS.data,
|
|
17
|
-
label: "Markdown Text",
|
|
18
|
-
description: "Markdown text to be rendered ",
|
|
19
|
-
editable: true,
|
|
20
|
-
required: true,
|
|
21
|
-
formType: _types.FORM_TYPES.string,
|
|
22
|
-
propType: _types.PROP_TYPES.STRING,
|
|
23
|
-
defaultValue: "## Double click me to edit 👀"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.SEED_DATA = SEED_DATA;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
const Markdown = _ref => {
|
|
5
|
-
let {
|
|
6
|
-
children,
|
|
7
|
-
style
|
|
8
|
-
} = _ref;
|
|
9
|
-
return (
|
|
10
|
-
/*#__PURE__*/
|
|
11
|
-
//'body' style applies to all markdown components
|
|
12
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
13
|
-
React.createElement(MarkdownComponent, {
|
|
14
|
-
style: {
|
|
15
|
-
body: StyleSheet.flatten(style)
|
|
16
|
-
}
|
|
17
|
-
}, children)
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
export default Markdown;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Markdown",
|
|
4
|
-
tag: "Markdown",
|
|
5
|
-
description: "A component that renders markdown",
|
|
6
|
-
category: COMPONENT_TYPES.text,
|
|
7
|
-
stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
|
|
8
|
-
props: {
|
|
9
|
-
children: {
|
|
10
|
-
group: GROUPS.data,
|
|
11
|
-
label: "Markdown Text",
|
|
12
|
-
description: "Markdown text to be rendered ",
|
|
13
|
-
editable: true,
|
|
14
|
-
required: true,
|
|
15
|
-
formType: FORM_TYPES.string,
|
|
16
|
-
propType: PROP_TYPES.STRING,
|
|
17
|
-
defaultValue: "## Double click me to edit 👀"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
declare type MarkdownProps = {
|
|
4
|
-
style?: StyleProp<ViewStyle>;
|
|
5
|
-
};
|
|
6
|
-
declare const Markdown: React.FC<React.PropsWithChildren<MarkdownProps>>;
|
|
7
|
-
export default Markdown;
|
|
8
|
-
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/components/Markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,cAAc,CAAC;AAGhE,aAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAW9D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Markdown.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAuBrB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
const Markdown = ({ children, style, }) => {
|
|
5
|
-
return (
|
|
6
|
-
//'body' style applies to all markdown components
|
|
7
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
8
|
-
React.createElement(MarkdownComponent, { style: { body: StyleSheet.flatten(style) } }, children));
|
|
9
|
-
};
|
|
10
|
-
export default Markdown;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StyleProp, ViewStyle, StyleSheet } from "react-native";
|
|
3
|
-
import MarkdownComponent from "react-native-markdown-display";
|
|
4
|
-
|
|
5
|
-
type MarkdownProps = {
|
|
6
|
-
style?: StyleProp<ViewStyle>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const Markdown: React.FC<React.PropsWithChildren<MarkdownProps>> = ({
|
|
10
|
-
children,
|
|
11
|
-
style,
|
|
12
|
-
}) => {
|
|
13
|
-
return (
|
|
14
|
-
//'body' style applies to all markdown components
|
|
15
|
-
//@ts-ignore TS does not like the type of this named style for some reason
|
|
16
|
-
<MarkdownComponent style={{ body: StyleSheet.flatten(style) }}>
|
|
17
|
-
{children}
|
|
18
|
-
</MarkdownComponent>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default Markdown;
|
package/src/mappings/Markdown.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Markdown",
|
|
4
|
-
tag: "Markdown",
|
|
5
|
-
description: "A component that renders markdown",
|
|
6
|
-
category: COMPONENT_TYPES.text,
|
|
7
|
-
stylesPanelSections: [
|
|
8
|
-
StylesPanelSections.Typography,
|
|
9
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
10
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
11
|
-
StylesPanelSections.Effects,
|
|
12
|
-
],
|
|
13
|
-
props: {
|
|
14
|
-
children: {
|
|
15
|
-
group: GROUPS.data,
|
|
16
|
-
label: "Markdown Text",
|
|
17
|
-
description: "Markdown text to be rendered ",
|
|
18
|
-
editable: true,
|
|
19
|
-
required: true,
|
|
20
|
-
formType: FORM_TYPES.string,
|
|
21
|
-
propType: PROP_TYPES.STRING,
|
|
22
|
-
defaultValue: "## Double click me to edit 👀",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
package/src/mappings/Markdown.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
FORM_TYPES,
|
|
4
|
-
GROUPS,
|
|
5
|
-
PROP_TYPES,
|
|
6
|
-
StylesPanelSections,
|
|
7
|
-
} from "@draftbit/types";
|
|
8
|
-
|
|
9
|
-
export const SEED_DATA = {
|
|
10
|
-
name: "Markdown",
|
|
11
|
-
tag: "Markdown",
|
|
12
|
-
description: "A component that renders markdown",
|
|
13
|
-
category: COMPONENT_TYPES.text,
|
|
14
|
-
stylesPanelSections: [
|
|
15
|
-
StylesPanelSections.Typography,
|
|
16
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
17
|
-
StylesPanelSections.MarginsAndPaddings,
|
|
18
|
-
StylesPanelSections.Effects,
|
|
19
|
-
],
|
|
20
|
-
props: {
|
|
21
|
-
children: {
|
|
22
|
-
group: GROUPS.data,
|
|
23
|
-
label: "Markdown Text",
|
|
24
|
-
description: "Markdown text to be rendered ",
|
|
25
|
-
editable: true,
|
|
26
|
-
required: true,
|
|
27
|
-
formType: FORM_TYPES.string,
|
|
28
|
-
propType: PROP_TYPES.STRING,
|
|
29
|
-
defaultValue: "## Double click me to edit 👀",
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|