@draftbit/core 46.4.4-929d79.2 → 46.4.4-970ba7.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/index.js +84 -8
- package/lib/commonjs/mappings/HtmlElements.js +125 -0
- package/lib/module/components/Accordion/AccordionItem.js +26 -5
- package/lib/module/components/Picker/PickerComponent.web.js +23 -5
- package/lib/module/index.js +2 -2
- package/lib/module/mappings/HtmlElements.js +116 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/mappings/HtmlElements.d.ts +49 -0
- package/package.json +5 -6
- package/src/index.js +1 -1
- package/src/index.tsx +2 -1
- package/src/mappings/HtmlElements.js +141 -0
- package/src/mappings/HtmlElements.ts +151 -0
- package/lib/commonjs/components/Youtube.js +0 -73
- package/lib/commonjs/mappings/Youtube.js +0 -42
- package/lib/module/components/Youtube.js +0 -59
- 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
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
|
-
};
|