@draftbit/core 46.4.4-6af1ae.2 → 46.4.4-6ea8db.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/DatePicker/DatePicker.js +17 -8
- package/lib/commonjs/components/Stepper.js +1 -0
- package/lib/commonjs/index.js +0 -7
- package/lib/commonjs/mappings/DatePicker.js +13 -0
- package/lib/module/components/Banner.js +4 -25
- package/lib/module/components/Checkbox/CheckboxRow.js +6 -24
- package/lib/module/components/CircleImage.js +1 -16
- package/lib/module/components/DatePicker/DatePicker.js +17 -8
- package/lib/module/components/Picker/PickerComponent.web.js +4 -19
- package/lib/module/components/Portal/PortalHost.js +15 -45
- package/lib/module/components/ScreenContainer.js +4 -21
- package/lib/module/components/Stepper.js +3 -2
- package/lib/module/components/Switch.js +10 -21
- package/lib/module/index.js +0 -1
- package/lib/module/mappings/DatePicker.js +14 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +4 -0
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/mappings/DatePicker.d.ts +42 -0
- package/package.json +4 -6
- package/src/components/DatePicker/DatePicker.js +14 -8
- package/src/components/DatePicker/DatePicker.tsx +23 -7
- package/src/components/Stepper.js +1 -0
- package/src/components/Stepper.tsx +1 -1
- package/src/index.js +0 -1
- package/src/index.tsx +0 -1
- package/src/mappings/DatePicker.js +21 -1
- package/src/mappings/DatePicker.ts +23 -0
- package/lib/commonjs/components/Youtube.js +0 -66
- package/lib/commonjs/mappings/Youtube.js +0 -40
- package/lib/module/components/Youtube.js +0 -57
- package/lib/module/mappings/Youtube.js +0 -33
- package/lib/typescript/src/components/Youtube.d.ts +0 -44
- package/lib/typescript/src/mappings/Youtube.d.ts +0 -36
- package/src/components/Youtube.js +0 -38
- package/src/components/Youtube.tsx +0 -66
- package/src/mappings/Youtube.js +0 -33
- package/src/mappings/Youtube.ts +0 -39
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
declare type Props = {
|
|
4
|
-
videoId: string;
|
|
5
|
-
playlist: string;
|
|
6
|
-
style: StyleProp<ViewStyle>;
|
|
7
|
-
mute: boolean;
|
|
8
|
-
autoplay: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare const Youtube: ({ videoId, playlist, style, mute, autoplay }: Props) => JSX.Element;
|
|
11
|
-
export default Youtube;
|
|
12
|
-
export declare const SEED_DATA: {
|
|
13
|
-
name: string;
|
|
14
|
-
tag: string;
|
|
15
|
-
description: string;
|
|
16
|
-
category: string;
|
|
17
|
-
layout: {
|
|
18
|
-
width: string;
|
|
19
|
-
};
|
|
20
|
-
props: {
|
|
21
|
-
videoId: any;
|
|
22
|
-
playlist: any;
|
|
23
|
-
mute: {
|
|
24
|
-
label: string;
|
|
25
|
-
description: string;
|
|
26
|
-
formType: string;
|
|
27
|
-
propType: string;
|
|
28
|
-
defaultValue: boolean;
|
|
29
|
-
editable: boolean;
|
|
30
|
-
required: boolean;
|
|
31
|
-
group: string;
|
|
32
|
-
};
|
|
33
|
-
autoplay: {
|
|
34
|
-
label: string;
|
|
35
|
-
description: string;
|
|
36
|
-
formType: string;
|
|
37
|
-
propType: string;
|
|
38
|
-
defaultValue: boolean;
|
|
39
|
-
editable: boolean;
|
|
40
|
-
required: boolean;
|
|
41
|
-
group: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const SEED_DATA: {
|
|
2
|
-
name: string;
|
|
3
|
-
tag: string;
|
|
4
|
-
description: string;
|
|
5
|
-
doc_link: string;
|
|
6
|
-
code_link: string;
|
|
7
|
-
category: string;
|
|
8
|
-
stylesPanelSections: string[];
|
|
9
|
-
layout: {
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
|
-
props: {
|
|
13
|
-
videoId: any;
|
|
14
|
-
playlist: any;
|
|
15
|
-
mute: {
|
|
16
|
-
label: string;
|
|
17
|
-
description: string;
|
|
18
|
-
formType: string;
|
|
19
|
-
propType: string;
|
|
20
|
-
defaultValue: boolean;
|
|
21
|
-
editable: boolean;
|
|
22
|
-
required: boolean;
|
|
23
|
-
group: string;
|
|
24
|
-
};
|
|
25
|
-
autoplay: {
|
|
26
|
-
label: string;
|
|
27
|
-
description: string;
|
|
28
|
-
formType: string;
|
|
29
|
-
propType: string;
|
|
30
|
-
defaultValue: boolean;
|
|
31
|
-
editable: boolean;
|
|
32
|
-
required: boolean;
|
|
33
|
-
group: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createTextProp, } from "@draftbit/types";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import YoutubePlayer from "react-native-youtube-iframe";
|
|
4
|
-
import { extractStyles } from "../utilities";
|
|
5
|
-
const Youtube = ({ videoId, playlist, style, mute, autoplay }) => {
|
|
6
|
-
const { viewStyles: { height, width }, } = extractStyles(style);
|
|
7
|
-
return (React.createElement(YoutubePlayer, { height: height, width: width, play: autoplay, videoId: videoId, playList: playlist, mute: mute }));
|
|
8
|
-
};
|
|
9
|
-
export default Youtube;
|
|
10
|
-
export const SEED_DATA = {
|
|
11
|
-
name: "Youtube",
|
|
12
|
-
tag: "Youtube",
|
|
13
|
-
description: "Youtube Component",
|
|
14
|
-
category: COMPONENT_TYPES.media,
|
|
15
|
-
layout: {
|
|
16
|
-
width: "100%",
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
videoId: createTextProp({
|
|
20
|
-
label: "VideoId",
|
|
21
|
-
description: "Youtube Video ID",
|
|
22
|
-
}),
|
|
23
|
-
playlist: createTextProp({
|
|
24
|
-
label: "PlayList",
|
|
25
|
-
description: "Playlist ID",
|
|
26
|
-
}),
|
|
27
|
-
mute: createBoolProp({
|
|
28
|
-
label: "Mute",
|
|
29
|
-
description: "Whether to mute video",
|
|
30
|
-
defaultValue: false,
|
|
31
|
-
}),
|
|
32
|
-
autoplay: createBoolProp({
|
|
33
|
-
label: "Autoplay",
|
|
34
|
-
description: "Whether to Autoplay video",
|
|
35
|
-
defaultValue: false,
|
|
36
|
-
}),
|
|
37
|
-
},
|
|
38
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createBoolProp,
|
|
4
|
-
createTextProp,
|
|
5
|
-
} from "@draftbit/types";
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { StyleProp, ViewStyle } from "react-native";
|
|
8
|
-
import YoutubePlayer from "react-native-youtube-iframe";
|
|
9
|
-
import { extractStyles } from "../utilities";
|
|
10
|
-
|
|
11
|
-
type Props = {
|
|
12
|
-
videoId: string;
|
|
13
|
-
playlist: string;
|
|
14
|
-
style: StyleProp<ViewStyle>;
|
|
15
|
-
mute: boolean;
|
|
16
|
-
autoplay: boolean;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const Youtube = ({ videoId, playlist, style, mute, autoplay }: Props) => {
|
|
20
|
-
const {
|
|
21
|
-
viewStyles: { height, width },
|
|
22
|
-
} = extractStyles(style);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<YoutubePlayer
|
|
26
|
-
height={height}
|
|
27
|
-
width={width}
|
|
28
|
-
play={autoplay}
|
|
29
|
-
videoId={videoId}
|
|
30
|
-
playList={playlist}
|
|
31
|
-
mute={mute}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export default Youtube;
|
|
37
|
-
|
|
38
|
-
export const SEED_DATA = {
|
|
39
|
-
name: "Youtube",
|
|
40
|
-
tag: "Youtube",
|
|
41
|
-
description: "Youtube Component",
|
|
42
|
-
category: COMPONENT_TYPES.media,
|
|
43
|
-
layout: {
|
|
44
|
-
width: "100%",
|
|
45
|
-
},
|
|
46
|
-
props: {
|
|
47
|
-
videoId: createTextProp({
|
|
48
|
-
label: "VideoId",
|
|
49
|
-
description: "Youtube Video ID",
|
|
50
|
-
}),
|
|
51
|
-
playlist: createTextProp({
|
|
52
|
-
label: "PlayList",
|
|
53
|
-
description: "Playlist ID",
|
|
54
|
-
}),
|
|
55
|
-
mute: createBoolProp({
|
|
56
|
-
label: "Mute",
|
|
57
|
-
description: "Whether to mute video",
|
|
58
|
-
defaultValue: false,
|
|
59
|
-
}),
|
|
60
|
-
autoplay: createBoolProp({
|
|
61
|
-
label: "Autoplay",
|
|
62
|
-
description: "Whether to Autoplay video",
|
|
63
|
-
defaultValue: false,
|
|
64
|
-
}),
|
|
65
|
-
},
|
|
66
|
-
};
|
package/src/mappings/Youtube.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, createTextProp, StylesPanelSections, } from "@draftbit/types";
|
|
2
|
-
export const SEED_DATA = {
|
|
3
|
-
name: "Youtube",
|
|
4
|
-
tag: "Youtube",
|
|
5
|
-
description: "Given a VideoId orPlaylist and play Youtube video",
|
|
6
|
-
doc_link: "https://lonelycpp.github.io/react-native-youtube-iframe",
|
|
7
|
-
code_link: "https://github.com/LonelyCpp/react-native-youtube-iframe",
|
|
8
|
-
category: COMPONENT_TYPES.media,
|
|
9
|
-
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Position],
|
|
10
|
-
layout: {
|
|
11
|
-
height: 250,
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
videoId: createTextProp({
|
|
15
|
-
label: "Video ID",
|
|
16
|
-
description: "VideoId of the Youtube video.",
|
|
17
|
-
defaultValue: "nwMUpDESXrI",
|
|
18
|
-
}),
|
|
19
|
-
playlist: createTextProp({
|
|
20
|
-
label: "Playlist",
|
|
21
|
-
description: "Playlist of the Youtube videos.",
|
|
22
|
-
defaultValue: "PLUa6TiXzjIrwowt6P-uGCJm8ovm-9S1Ks",
|
|
23
|
-
}),
|
|
24
|
-
mute: createStaticBoolProp({
|
|
25
|
-
label: "Mute Audio",
|
|
26
|
-
description: "Mute the audio of the video.",
|
|
27
|
-
}),
|
|
28
|
-
autoplay: createStaticBoolProp({
|
|
29
|
-
label: "Auto Play",
|
|
30
|
-
description: "Autoplay the video on load.",
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
};
|
package/src/mappings/Youtube.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
COMPONENT_TYPES,
|
|
3
|
-
createStaticBoolProp,
|
|
4
|
-
createTextProp,
|
|
5
|
-
StylesPanelSections,
|
|
6
|
-
} from "@draftbit/types";
|
|
7
|
-
|
|
8
|
-
export const SEED_DATA = {
|
|
9
|
-
name: "Youtube",
|
|
10
|
-
tag: "Youtube",
|
|
11
|
-
description: "Given a VideoId orPlaylist and play Youtube video",
|
|
12
|
-
doc_link: "https://lonelycpp.github.io/react-native-youtube-iframe",
|
|
13
|
-
code_link: "https://github.com/LonelyCpp/react-native-youtube-iframe",
|
|
14
|
-
category: COMPONENT_TYPES.media,
|
|
15
|
-
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Position],
|
|
16
|
-
layout: {
|
|
17
|
-
height: 250,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
videoId: createTextProp({
|
|
21
|
-
label: "Video ID",
|
|
22
|
-
description: "VideoId of the Youtube video.",
|
|
23
|
-
defaultValue: "nwMUpDESXrI",
|
|
24
|
-
}),
|
|
25
|
-
playlist: createTextProp({
|
|
26
|
-
label: "Playlist",
|
|
27
|
-
description: "Playlist of the Youtube videos.",
|
|
28
|
-
defaultValue: "PLUa6TiXzjIrwowt6P-uGCJm8ovm-9S1Ks",
|
|
29
|
-
}),
|
|
30
|
-
mute: createStaticBoolProp({
|
|
31
|
-
label: "Mute Audio",
|
|
32
|
-
description: "Mute the audio of the video.",
|
|
33
|
-
}),
|
|
34
|
-
autoplay: createStaticBoolProp({
|
|
35
|
-
label: "Auto Play",
|
|
36
|
-
description: "Autoplay the video on load.",
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
};
|