@plasmicpkgs/react-youtube 7.13.1 → 7.13.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.
- package/dist/index.d.ts +35 -1
- package/dist/react-youtube.cjs.development.js +194 -6
- package/dist/react-youtube.cjs.development.js.map +1 -1
- package/dist/react-youtube.cjs.production.min.js +1 -1
- package/dist/react-youtube.cjs.production.min.js.map +1 -1
- package/dist/react-youtube.esm.js +191 -6
- package/dist/react-youtube.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import registerComponent, { ComponentMeta } from "@plasmicapp/host/registerComponent";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import YouTubeImpl, { PlayerVars, YouTubeProps as YouTubeImplProps } from "react-youtube";
|
|
4
|
+
export declare type YouTubeProps = YouTubeImplProps & {
|
|
5
|
+
[prop in keyof PlayerVars]: PlayerVars[prop] | (prop extends typeof booleanParams[number] ? boolean : never);
|
|
6
|
+
};
|
|
7
|
+
declare const booleanParams: readonly ["autoplay", "cc_load_policy", "controls", "disablekb", "fs", "loop", "modestbranding", "playsinline", "rel"];
|
|
8
|
+
declare const YouTube: React.ForwardRefExoticComponent<YouTubeImplProps & {
|
|
9
|
+
autoplay?: boolean | 0 | 1 | undefined;
|
|
10
|
+
cc_load_policy?: boolean | 1 | undefined;
|
|
11
|
+
color?: "red" | "white" | undefined;
|
|
12
|
+
controls?: boolean | 0 | 1 | 2 | undefined;
|
|
13
|
+
disablekb?: boolean | 0 | 1 | undefined;
|
|
14
|
+
enablejsapi?: 0 | 1 | undefined;
|
|
15
|
+
end?: number | undefined;
|
|
16
|
+
fs?: boolean | 0 | 1 | undefined;
|
|
17
|
+
hl?: string | undefined;
|
|
18
|
+
iv_load_policy?: 1 | 3 | undefined;
|
|
19
|
+
list?: string | undefined;
|
|
20
|
+
listType?: "playlist" | "search" | "user_uploads" | undefined;
|
|
21
|
+
loop?: boolean | 0 | 1 | undefined;
|
|
22
|
+
modestbranding?: boolean | 1 | undefined;
|
|
23
|
+
origin?: string | undefined;
|
|
24
|
+
playlist?: string | undefined;
|
|
25
|
+
playsinline?: boolean | 0 | 1 | undefined;
|
|
26
|
+
rel?: boolean | 0 | 1 | undefined;
|
|
27
|
+
showinfo?: 0 | 1 | undefined;
|
|
28
|
+
start?: number | undefined;
|
|
29
|
+
mute?: 0 | 1 | undefined;
|
|
30
|
+
} & React.RefAttributes<YouTubeImpl>>;
|
|
31
|
+
export declare const youtubeMeta: ComponentMeta<YouTubeProps>;
|
|
32
|
+
export declare function registerYouTube(loader?: {
|
|
33
|
+
registerComponent: typeof registerComponent;
|
|
34
|
+
}, customYouTubeMeta?: ComponentMeta<YouTubeProps>): void;
|
|
35
|
+
export default YouTube;
|
|
@@ -1,26 +1,214 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
6
|
|
|
5
|
-
var YouTube = _interopDefault(require('react-youtube'));
|
|
6
7
|
var registerComponent = _interopDefault(require('@plasmicapp/host/registerComponent'));
|
|
8
|
+
var React = _interopDefault(require('react'));
|
|
9
|
+
var YouTubeImpl = _interopDefault(require('react-youtube'));
|
|
10
|
+
|
|
11
|
+
function _extends() {
|
|
12
|
+
_extends = Object.assign || function (target) {
|
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
+
var source = arguments[i];
|
|
15
|
+
|
|
16
|
+
for (var key in source) {
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
18
|
+
target[key] = source[key];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return target;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return _extends.apply(this, arguments);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
30
|
+
if (!o) return;
|
|
31
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
32
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
33
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
35
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _arrayLikeToArray(arr, len) {
|
|
39
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
40
|
+
|
|
41
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
42
|
+
|
|
43
|
+
return arr2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
47
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
48
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
49
|
+
|
|
50
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
51
|
+
if (it) o = it;
|
|
52
|
+
var i = 0;
|
|
53
|
+
return function () {
|
|
54
|
+
if (i >= o.length) return {
|
|
55
|
+
done: true
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
done: false,
|
|
59
|
+
value: o[i++]
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}
|
|
7
63
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
64
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
var playerParams = ["autoplay", "cc_load_policy", "color", "controls", "disablekb", "enablejsapi", "end", "fs", "hl", "iv_load_policy", "list", "listType", "loop", "modestbranding", "origin", "playlist", "playsinline", "rel", "showinfo", "start", "mute"];
|
|
68
|
+
var booleanParams = ["autoplay", "cc_load_policy", "controls", "disablekb", "fs", "loop", "modestbranding", "playsinline", "rel"];
|
|
69
|
+
var booleanParamsSet = /*#__PURE__*/new Set(booleanParams);
|
|
70
|
+
var YouTube = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
71
|
+
var finalProps = _extends({}, props);
|
|
72
|
+
|
|
73
|
+
for (var _iterator = _createForOfIteratorHelperLoose(playerParams), _step; !(_step = _iterator()).done;) {
|
|
74
|
+
var prop = _step.value;
|
|
75
|
+
|
|
76
|
+
if (prop in finalProps) {
|
|
77
|
+
var value = finalProps[prop];
|
|
78
|
+
delete finalProps[prop];
|
|
79
|
+
|
|
80
|
+
if (!finalProps.opts) {
|
|
81
|
+
finalProps.opts = {};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (!finalProps.opts.playerVars) {
|
|
85
|
+
finalProps.opts.playerVars = {};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (booleanParamsSet.has(prop)) {
|
|
89
|
+
if (prop === "cc_load_policy" || prop === "modestbranding") {
|
|
90
|
+
// undefined or 1
|
|
91
|
+
if (value) {
|
|
92
|
+
finalProps.opts.playerVars[prop] = 1;
|
|
93
|
+
} else {
|
|
94
|
+
delete finalProps.opts.playerVars[prop];
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
// 0 or 1
|
|
98
|
+
finalProps.opts.playerVars[prop] = value ? 1 : 0;
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
finalProps.opts.playerVars[prop] = value;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return React.createElement(YouTubeImpl, Object.assign({
|
|
107
|
+
ref: ref
|
|
108
|
+
}, finalProps));
|
|
109
|
+
});
|
|
110
|
+
var youtubeMeta = {
|
|
111
|
+
name: "hostless-youtube",
|
|
112
|
+
displayName: "YouTube",
|
|
113
|
+
importName: "YouTube",
|
|
114
|
+
importPath: "@plasmicpkgs/react-youtube",
|
|
11
115
|
props: {
|
|
12
116
|
videoId: {
|
|
13
117
|
type: "string",
|
|
14
118
|
defaultValue: "R6MeLqRQzYw",
|
|
15
119
|
displayName: "Video ID",
|
|
16
|
-
description: "The ID for the YouTube video
|
|
120
|
+
description: "The ID for the YouTube video"
|
|
121
|
+
},
|
|
122
|
+
autoplay: {
|
|
123
|
+
type: "boolean",
|
|
124
|
+
displayName: "Auto Play",
|
|
125
|
+
description: "Whether the video should automatically start playing when the player loads",
|
|
126
|
+
defaultValueHint: false
|
|
127
|
+
},
|
|
128
|
+
cc_load_policy: {
|
|
129
|
+
type: "boolean",
|
|
130
|
+
displayName: "Show Captions",
|
|
131
|
+
description: "Whether the captions should be shown by default, even if the user has turned captions off",
|
|
132
|
+
defaultValueHint: false
|
|
133
|
+
},
|
|
134
|
+
start: {
|
|
135
|
+
type: "number",
|
|
136
|
+
displayName: "Start",
|
|
137
|
+
description: "The video should begin at this amount of seconds from the start of the video",
|
|
138
|
+
defaultValueHint: 0
|
|
139
|
+
},
|
|
140
|
+
end: {
|
|
141
|
+
type: "number",
|
|
142
|
+
displayName: "End",
|
|
143
|
+
description: "Stop playing the video after this amount of seconds (measured from the start of the video)"
|
|
144
|
+
},
|
|
145
|
+
color: {
|
|
146
|
+
type: "choice",
|
|
147
|
+
displayName: "Color",
|
|
148
|
+
options: ["red", "white"],
|
|
149
|
+
description: "The color used in the display bar to highlight how much of the video the viewer has already seen",
|
|
150
|
+
defaultValueHint: "red"
|
|
151
|
+
},
|
|
152
|
+
controls: {
|
|
153
|
+
type: "boolean",
|
|
154
|
+
displayName: "Show Controls",
|
|
155
|
+
description: "Whether the YouTube video player controls should be displayed",
|
|
156
|
+
defaultValueHint: true
|
|
157
|
+
},
|
|
158
|
+
disablekb: {
|
|
159
|
+
type: "boolean",
|
|
160
|
+
displayName: "Disable Keyboard",
|
|
161
|
+
description: "Whether the keyboard controls should be disabled",
|
|
162
|
+
defaultValueHint: false
|
|
163
|
+
},
|
|
164
|
+
fs: {
|
|
165
|
+
type: "boolean",
|
|
166
|
+
displayName: "FullScreen Button",
|
|
167
|
+
description: "Whether the fullscreen button should be displayed",
|
|
168
|
+
defaultValueHint: true
|
|
169
|
+
},
|
|
170
|
+
loop: {
|
|
171
|
+
type: "boolean",
|
|
172
|
+
displayName: "Loop",
|
|
173
|
+
description: "Whether the video should be played again after it finishes",
|
|
174
|
+
defaultValueHint: false
|
|
175
|
+
},
|
|
176
|
+
modestbranding: {
|
|
177
|
+
type: "boolean",
|
|
178
|
+
displayName: "Hide Logo",
|
|
179
|
+
description: "Hide the YouTube logo in the control bar",
|
|
180
|
+
defaultValueHint: false
|
|
181
|
+
},
|
|
182
|
+
playsinline: {
|
|
183
|
+
type: "boolean",
|
|
184
|
+
displayName: "Play Inline",
|
|
185
|
+
description: "Whether the video should be played inline or fullscreen on iOS",
|
|
186
|
+
defaultValueHint: false
|
|
187
|
+
},
|
|
188
|
+
rel: {
|
|
189
|
+
type: "boolean",
|
|
190
|
+
displayName: "Related Videos",
|
|
191
|
+
description: "Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)",
|
|
192
|
+
defaultValueHint: true
|
|
17
193
|
}
|
|
18
194
|
},
|
|
195
|
+
isDefaultExport: true,
|
|
19
196
|
defaultStyles: {
|
|
20
197
|
height: "390px",
|
|
21
198
|
width: "640px",
|
|
22
199
|
maxHeight: "100%",
|
|
23
200
|
maxWidth: "100%"
|
|
24
201
|
}
|
|
25
|
-
}
|
|
202
|
+
};
|
|
203
|
+
function registerYouTube(loader, customYouTubeMeta) {
|
|
204
|
+
if (loader) {
|
|
205
|
+
loader.registerComponent(YouTube, customYouTubeMeta != null ? customYouTubeMeta : youtubeMeta);
|
|
206
|
+
} else {
|
|
207
|
+
registerComponent(YouTube, customYouTubeMeta != null ? customYouTubeMeta : youtubeMeta);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
exports.default = YouTube;
|
|
212
|
+
exports.registerYouTube = registerYouTube;
|
|
213
|
+
exports.youtubeMeta = youtubeMeta;
|
|
26
214
|
//# sourceMappingURL=react-youtube.cjs.development.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-youtube.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import YouTube from \"react-youtube\";\nimport registerComponent from \"@plasmicapp/host/registerComponent\";\n\nregisterComponent(YouTube, {\n name: \"YouTube\",\n importPath: \"react-youtube\",\n props: {\n videoId: {\n type: \"string\",\n defaultValue: \"R6MeLqRQzYw\",\n displayName: \"Video ID\",\n description: \"The ID for the YouTube video.\"\n }\n },\n defaultStyles: {\n height: \"390px\",\n width: \"640px\",\n maxHeight: \"100%\",\n maxWidth: \"100%\"\n }\n});"],"names":["registerComponent","YouTube","name","importPath","props","videoId","type","defaultValue","displayName","description","defaultStyles","height","width","maxHeight","maxWidth"],"mappings":";;;;;;;AAGAA,iBAAiB,CAACC,OAAD,EAAU;AACzBC,EAAAA,IAAI,EAAE,SADmB;AAEzBC,EAAAA,UAAU,EAAE,eAFa;AAGzBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,IAAI,EAAE,QADC;AAEPC,MAAAA,YAAY,EAAE,aAFP;AAGPC,MAAAA,WAAW,EAAE,UAHN;AAIPC,MAAAA,WAAW,EAAE;AAJN;AADJ,GAHkB;AAWzBC,EAAAA,aAAa,EAAE;AACbC,IAAAA,MAAM,EAAE,OADK;AAEbC,IAAAA,KAAK,EAAE,OAFM;AAGbC,IAAAA,SAAS,EAAE,MAHE;AAIbC,IAAAA,QAAQ,EAAE;AAJG;AAXU,CAAV,CAAjB"}
|
|
1
|
+
{"version":3,"file":"react-youtube.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport YouTubeImpl, {\n PlayerVars,\n YouTubeProps as YouTubeImplProps,\n} from \"react-youtube\";\n\nexport type YouTubeProps = YouTubeImplProps &\n {\n [prop in keyof PlayerVars]:\n | PlayerVars[prop]\n | (prop extends typeof booleanParams[number] ? boolean : never);\n };\nconst playerParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"color\",\n \"controls\",\n \"disablekb\",\n \"enablejsapi\",\n \"end\",\n \"fs\",\n \"hl\",\n \"iv_load_policy\",\n \"list\",\n \"listType\",\n \"loop\",\n \"modestbranding\",\n \"origin\",\n \"playlist\",\n \"playsinline\",\n \"rel\",\n \"showinfo\",\n \"start\",\n \"mute\",\n] as const;\n\nconst booleanParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"controls\",\n \"disablekb\",\n \"fs\",\n \"loop\",\n \"modestbranding\",\n \"playsinline\",\n \"rel\",\n] as const;\n\nconst booleanParamsSet = new Set<string>(booleanParams);\n\nconst YouTube = React.forwardRef<YouTubeImpl, YouTubeProps>(\n (props: YouTubeProps, ref) => {\n const finalProps = { ...props };\n for (const prop of playerParams) {\n if (prop in finalProps) {\n const value = finalProps[prop];\n delete finalProps[prop];\n if (!finalProps.opts) {\n finalProps.opts = {};\n }\n if (!finalProps.opts.playerVars) {\n finalProps.opts.playerVars = {};\n }\n if (booleanParamsSet.has(prop)) {\n if (prop === \"cc_load_policy\" || prop === \"modestbranding\") {\n // undefined or 1\n if (value) {\n finalProps.opts.playerVars[prop] = 1;\n } else {\n delete finalProps.opts.playerVars[prop];\n }\n } else {\n // 0 or 1\n finalProps.opts.playerVars[prop] = (value ? 1 : 0) as any;\n }\n } else {\n finalProps.opts.playerVars[prop] = value as any;\n }\n }\n }\n return <YouTubeImpl ref={ref} {...finalProps} />;\n }\n);\n\nexport const youtubeMeta: ComponentMeta<YouTubeProps> = {\n name: \"hostless-youtube\",\n displayName: \"YouTube\",\n importName: \"YouTube\",\n importPath: \"@plasmicpkgs/react-youtube\",\n props: {\n videoId: {\n type: \"string\",\n defaultValue: \"R6MeLqRQzYw\",\n displayName: \"Video ID\",\n description: \"The ID for the YouTube video\",\n },\n autoplay: {\n type: \"boolean\",\n displayName: \"Auto Play\",\n description:\n \"Whether the video should automatically start playing when the player loads\",\n defaultValueHint: false,\n },\n cc_load_policy: {\n type: \"boolean\",\n displayName: \"Show Captions\",\n description:\n \"Whether the captions should be shown by default, even if the user has turned captions off\",\n defaultValueHint: false,\n },\n start: {\n type: \"number\",\n displayName: \"Start\",\n description:\n \"The video should begin at this amount of seconds from the start of the video\",\n defaultValueHint: 0,\n },\n end: {\n type: \"number\",\n displayName: \"End\",\n description:\n \"Stop playing the video after this amount of seconds (measured from the start of the video)\",\n },\n color: {\n type: \"choice\",\n displayName: \"Color\",\n options: [\"red\", \"white\"],\n description:\n \"The color used in the display bar to highlight how much of the video the viewer has already seen\",\n defaultValueHint: \"red\",\n },\n controls: {\n type: \"boolean\",\n displayName: \"Show Controls\",\n description:\n \"Whether the YouTube video player controls should be displayed\",\n defaultValueHint: true,\n },\n disablekb: {\n type: \"boolean\",\n displayName: \"Disable Keyboard\",\n description: \"Whether the keyboard controls should be disabled\",\n defaultValueHint: false,\n },\n fs: {\n type: \"boolean\",\n displayName: \"FullScreen Button\",\n description: \"Whether the fullscreen button should be displayed\",\n defaultValueHint: true,\n },\n loop: {\n type: \"boolean\",\n displayName: \"Loop\",\n description: \"Whether the video should be played again after it finishes\",\n defaultValueHint: false,\n },\n modestbranding: {\n type: \"boolean\",\n displayName: \"Hide Logo\",\n description: \"Hide the YouTube logo in the control bar\",\n defaultValueHint: false,\n },\n playsinline: {\n type: \"boolean\",\n displayName: \"Play Inline\",\n description:\n \"Whether the video should be played inline or fullscreen on iOS\",\n defaultValueHint: false,\n },\n rel: {\n type: \"boolean\",\n displayName: \"Related Videos\",\n description:\n \"Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)\",\n defaultValueHint: true,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n height: \"390px\",\n width: \"640px\",\n maxHeight: \"100%\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerYouTube(\n loader?: { registerComponent: typeof registerComponent },\n customYouTubeMeta?: ComponentMeta<YouTubeProps>\n) {\n if (loader) {\n loader.registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n } else {\n registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n }\n}\n\nexport default YouTube;\n"],"names":["playerParams","booleanParams","booleanParamsSet","Set","YouTube","React","forwardRef","props","ref","finalProps","prop","value","opts","playerVars","has","YouTubeImpl","youtubeMeta","name","displayName","importName","importPath","videoId","type","defaultValue","description","autoplay","defaultValueHint","cc_load_policy","start","end","color","options","controls","disablekb","fs","loop","modestbranding","playsinline","rel","isDefaultExport","defaultStyles","height","width","maxHeight","maxWidth","registerYouTube","loader","customYouTubeMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAMA,YAAY,GAAG,CACnB,UADmB,EAEnB,gBAFmB,EAGnB,OAHmB,EAInB,UAJmB,EAKnB,WALmB,EAMnB,aANmB,EAOnB,KAPmB,EAQnB,IARmB,EASnB,IATmB,EAUnB,gBAVmB,EAWnB,MAXmB,EAYnB,UAZmB,EAanB,MAbmB,EAcnB,gBAdmB,EAenB,QAfmB,EAgBnB,UAhBmB,EAiBnB,aAjBmB,EAkBnB,KAlBmB,EAmBnB,UAnBmB,EAoBnB,OApBmB,EAqBnB,MArBmB,CAArB;AAwBA,IAAMC,aAAa,GAAG,CACpB,UADoB,EAEpB,gBAFoB,EAGpB,UAHoB,EAIpB,WAJoB,EAKpB,IALoB,EAMpB,MANoB,EAOpB,gBAPoB,EAQpB,aARoB,EASpB,KAToB,CAAtB;AAYA,IAAMC,gBAAgB,gBAAG,IAAIC,GAAJ,CAAgBF,aAAhB,CAA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AGbC,IAAAA,SAAS,EAAE,MAHE;AAIbC,IAAAA,QAAQ,EAAE;AAJG;AA9FuC;SAsGxCC,gBACdC,QACAC;AAEA,MAAID,MAAJ,EAAY;AACVA,IAAAA,MAAM,CAACE,iBAAP,CAAyB5C,OAAzB,EAAkC2C,iBAAlC,WAAkCA,iBAAlC,GAAuD/B,WAAvD;AACD,GAFD,MAEO;AACLgC,IAAAA,iBAAiB,CAAC5C,OAAD,EAAU2C,iBAAV,WAAUA,iBAAV,GAA+B/B,WAA/B,CAAjB;AACD;AACF;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("react-youtube"));e(
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@plasmicapp/host/registerComponent")),o=e(require("react")),a=e(require("react-youtube"));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,a=new Array(t);o<t;o++)a[o]=e[o];return a}var l=["autoplay","cc_load_policy","color","controls","disablekb","enablejsapi","end","fs","hl","iv_load_policy","list","listType","loop","modestbranding","origin","playlist","playsinline","rel","showinfo","start","mute"],n=new Set(["autoplay","cc_load_policy","controls","disablekb","fs","loop","modestbranding","playsinline","rel"]),s=o.forwardRef((function(e,t){for(var s,d=r({},e),p=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(e,void 0):void 0}}(e))){o&&(e=o);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(l);!(s=p()).done;){var u=s.value;if(u in d){var h=d[u];delete d[u],d.opts||(d.opts={}),d.opts.playerVars||(d.opts.playerVars={}),n.has(u)?"cc_load_policy"===u||"modestbranding"===u?h?d.opts.playerVars[u]=1:delete d.opts.playerVars[u]:d.opts.playerVars[u]=h?1:0:d.opts.playerVars[u]=h}}return o.createElement(a,Object.assign({ref:t},d))})),d={name:"hostless-youtube",displayName:"YouTube",importName:"YouTube",importPath:"@plasmicpkgs/react-youtube",props:{videoId:{type:"string",defaultValue:"R6MeLqRQzYw",displayName:"Video ID",description:"The ID for the YouTube video"},autoplay:{type:"boolean",displayName:"Auto Play",description:"Whether the video should automatically start playing when the player loads",defaultValueHint:!1},cc_load_policy:{type:"boolean",displayName:"Show Captions",description:"Whether the captions should be shown by default, even if the user has turned captions off",defaultValueHint:!1},start:{type:"number",displayName:"Start",description:"The video should begin at this amount of seconds from the start of the video",defaultValueHint:0},end:{type:"number",displayName:"End",description:"Stop playing the video after this amount of seconds (measured from the start of the video)"},color:{type:"choice",displayName:"Color",options:["red","white"],description:"The color used in the display bar to highlight how much of the video the viewer has already seen",defaultValueHint:"red"},controls:{type:"boolean",displayName:"Show Controls",description:"Whether the YouTube video player controls should be displayed",defaultValueHint:!0},disablekb:{type:"boolean",displayName:"Disable Keyboard",description:"Whether the keyboard controls should be disabled",defaultValueHint:!1},fs:{type:"boolean",displayName:"FullScreen Button",description:"Whether the fullscreen button should be displayed",defaultValueHint:!0},loop:{type:"boolean",displayName:"Loop",description:"Whether the video should be played again after it finishes",defaultValueHint:!1},modestbranding:{type:"boolean",displayName:"Hide Logo",description:"Hide the YouTube logo in the control bar",defaultValueHint:!1},playsinline:{type:"boolean",displayName:"Play Inline",description:"Whether the video should be played inline or fullscreen on iOS",defaultValueHint:!1},rel:{type:"boolean",displayName:"Related Videos",description:"Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)",defaultValueHint:!0}},isDefaultExport:!0,defaultStyles:{height:"390px",width:"640px",maxHeight:"100%",maxWidth:"100%"}};exports.default=s,exports.registerYouTube=function(e,o){e?e.registerComponent(s,null!=o?o:d):t(s,null!=o?o:d)},exports.youtubeMeta=d;
|
|
2
2
|
//# sourceMappingURL=react-youtube.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-youtube.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"react-youtube.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport YouTubeImpl, {\n PlayerVars,\n YouTubeProps as YouTubeImplProps,\n} from \"react-youtube\";\n\nexport type YouTubeProps = YouTubeImplProps &\n {\n [prop in keyof PlayerVars]:\n | PlayerVars[prop]\n | (prop extends typeof booleanParams[number] ? boolean : never);\n };\nconst playerParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"color\",\n \"controls\",\n \"disablekb\",\n \"enablejsapi\",\n \"end\",\n \"fs\",\n \"hl\",\n \"iv_load_policy\",\n \"list\",\n \"listType\",\n \"loop\",\n \"modestbranding\",\n \"origin\",\n \"playlist\",\n \"playsinline\",\n \"rel\",\n \"showinfo\",\n \"start\",\n \"mute\",\n] as const;\n\nconst booleanParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"controls\",\n \"disablekb\",\n \"fs\",\n \"loop\",\n \"modestbranding\",\n \"playsinline\",\n \"rel\",\n] as const;\n\nconst booleanParamsSet = new Set<string>(booleanParams);\n\nconst YouTube = React.forwardRef<YouTubeImpl, YouTubeProps>(\n (props: YouTubeProps, ref) => {\n const finalProps = { ...props };\n for (const prop of playerParams) {\n if (prop in finalProps) {\n const value = finalProps[prop];\n delete finalProps[prop];\n if (!finalProps.opts) {\n finalProps.opts = {};\n }\n if (!finalProps.opts.playerVars) {\n finalProps.opts.playerVars = {};\n }\n if (booleanParamsSet.has(prop)) {\n if (prop === \"cc_load_policy\" || prop === \"modestbranding\") {\n // undefined or 1\n if (value) {\n finalProps.opts.playerVars[prop] = 1;\n } else {\n delete finalProps.opts.playerVars[prop];\n }\n } else {\n // 0 or 1\n finalProps.opts.playerVars[prop] = (value ? 1 : 0) as any;\n }\n } else {\n finalProps.opts.playerVars[prop] = value as any;\n }\n }\n }\n return <YouTubeImpl ref={ref} {...finalProps} />;\n }\n);\n\nexport const youtubeMeta: ComponentMeta<YouTubeProps> = {\n name: \"hostless-youtube\",\n displayName: \"YouTube\",\n importName: \"YouTube\",\n importPath: \"@plasmicpkgs/react-youtube\",\n props: {\n videoId: {\n type: \"string\",\n defaultValue: \"R6MeLqRQzYw\",\n displayName: \"Video ID\",\n description: \"The ID for the YouTube video\",\n },\n autoplay: {\n type: \"boolean\",\n displayName: \"Auto Play\",\n description:\n \"Whether the video should automatically start playing when the player loads\",\n defaultValueHint: false,\n },\n cc_load_policy: {\n type: \"boolean\",\n displayName: \"Show Captions\",\n description:\n \"Whether the captions should be shown by default, even if the user has turned captions off\",\n defaultValueHint: false,\n },\n start: {\n type: \"number\",\n displayName: \"Start\",\n description:\n \"The video should begin at this amount of seconds from the start of the video\",\n defaultValueHint: 0,\n },\n end: {\n type: \"number\",\n displayName: \"End\",\n description:\n \"Stop playing the video after this amount of seconds (measured from the start of the video)\",\n },\n color: {\n type: \"choice\",\n displayName: \"Color\",\n options: [\"red\", \"white\"],\n description:\n \"The color used in the display bar to highlight how much of the video the viewer has already seen\",\n defaultValueHint: \"red\",\n },\n controls: {\n type: \"boolean\",\n displayName: \"Show Controls\",\n description:\n \"Whether the YouTube video player controls should be displayed\",\n defaultValueHint: true,\n },\n disablekb: {\n type: \"boolean\",\n displayName: \"Disable Keyboard\",\n description: \"Whether the keyboard controls should be disabled\",\n defaultValueHint: false,\n },\n fs: {\n type: \"boolean\",\n displayName: \"FullScreen Button\",\n description: \"Whether the fullscreen button should be displayed\",\n defaultValueHint: true,\n },\n loop: {\n type: \"boolean\",\n displayName: \"Loop\",\n description: \"Whether the video should be played again after it finishes\",\n defaultValueHint: false,\n },\n modestbranding: {\n type: \"boolean\",\n displayName: \"Hide Logo\",\n description: \"Hide the YouTube logo in the control bar\",\n defaultValueHint: false,\n },\n playsinline: {\n type: \"boolean\",\n displayName: \"Play Inline\",\n description:\n \"Whether the video should be played inline or fullscreen on iOS\",\n defaultValueHint: false,\n },\n rel: {\n type: \"boolean\",\n displayName: \"Related Videos\",\n description:\n \"Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)\",\n defaultValueHint: true,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n height: \"390px\",\n width: \"640px\",\n maxHeight: \"100%\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerYouTube(\n loader?: { registerComponent: typeof registerComponent },\n customYouTubeMeta?: ComponentMeta<YouTubeProps>\n) {\n if (loader) {\n loader.registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n } else {\n registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n }\n}\n\nexport default YouTube;\n"],"names":["playerParams","booleanParamsSet","Set","YouTube","React","forwardRef","props","ref","finalProps","prop","value","opts","playerVars","has","YouTubeImpl","youtubeMeta","name","displayName","importName","importPath","videoId","type","defaultValue","description","autoplay","defaultValueHint","cc_load_policy","start","end","color","options","controls","disablekb","fs","loop","modestbranding","playsinline","rel","isDefaultExport","defaultStyles","height","width","maxHeight","maxWidth","loader","customYouTubeMeta","registerComponent"],"mappings":"8iBAeA,IAAMA,EAAe,CACnB,WACA,iBACA,QACA,WACA,YACA,cACA,MACA,KACA,KACA,iBACA,OACA,WACA,OACA,iBACA,SACA,WACA,cACA,MACA,WACA,QACA,QAeIC,EAAmB,IAAIC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AAM,UACNJ,YAAa,OACbM,YAAa,6DACbE,kBAAkB,GAEpBU,eAAgB,CACdd,KAAM,UACNJ,YAAa,YACbM,YAAa,2CACbE,kBAAkB,GAEpBW,YAAa,CACXf,KAAM,UACNJ,YAAa,cACbM,YACE,iEACFE,kBAAkB,GAEpBY,IAAK,CACHhB,KAAM,UACNJ,YAAa,iBACbM,YACE,oHACFE,kBAAkB,IAGtBa,iBAAiB,EACjBC,cAAe,CACbC,OAAQ,QACRC,MAAO,QACPC,UAAW,OACXC,SAAU,4DAKZC,EACAC,GAEID,EACFA,EAAOE,kBAAkB3C,QAAS0C,EAAAA,EAAqB9B,GAEvD+B,EAAkB3C,QAAS0C,EAAAA,EAAqB9B"}
|
|
@@ -1,22 +1,207 @@
|
|
|
1
|
-
import YouTube from 'react-youtube';
|
|
2
1
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import YouTubeImpl from 'react-youtube';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
function _extends() {
|
|
6
|
+
_extends = Object.assign || function (target) {
|
|
7
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
+
var source = arguments[i];
|
|
9
|
+
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return target;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return _extends.apply(this, arguments);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
24
|
+
if (!o) return;
|
|
25
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
26
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
27
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
28
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
29
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function _arrayLikeToArray(arr, len) {
|
|
33
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34
|
+
|
|
35
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
36
|
+
|
|
37
|
+
return arr2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
41
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
42
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
43
|
+
|
|
44
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
45
|
+
if (it) o = it;
|
|
46
|
+
var i = 0;
|
|
47
|
+
return function () {
|
|
48
|
+
if (i >= o.length) return {
|
|
49
|
+
done: true
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
done: false,
|
|
53
|
+
value: o[i++]
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var playerParams = ["autoplay", "cc_load_policy", "color", "controls", "disablekb", "enablejsapi", "end", "fs", "hl", "iv_load_policy", "list", "listType", "loop", "modestbranding", "origin", "playlist", "playsinline", "rel", "showinfo", "start", "mute"];
|
|
62
|
+
var booleanParams = ["autoplay", "cc_load_policy", "controls", "disablekb", "fs", "loop", "modestbranding", "playsinline", "rel"];
|
|
63
|
+
var booleanParamsSet = /*#__PURE__*/new Set(booleanParams);
|
|
64
|
+
var YouTube = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
65
|
+
var finalProps = _extends({}, props);
|
|
66
|
+
|
|
67
|
+
for (var _iterator = _createForOfIteratorHelperLoose(playerParams), _step; !(_step = _iterator()).done;) {
|
|
68
|
+
var prop = _step.value;
|
|
69
|
+
|
|
70
|
+
if (prop in finalProps) {
|
|
71
|
+
var value = finalProps[prop];
|
|
72
|
+
delete finalProps[prop];
|
|
73
|
+
|
|
74
|
+
if (!finalProps.opts) {
|
|
75
|
+
finalProps.opts = {};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (!finalProps.opts.playerVars) {
|
|
79
|
+
finalProps.opts.playerVars = {};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (booleanParamsSet.has(prop)) {
|
|
83
|
+
if (prop === "cc_load_policy" || prop === "modestbranding") {
|
|
84
|
+
// undefined or 1
|
|
85
|
+
if (value) {
|
|
86
|
+
finalProps.opts.playerVars[prop] = 1;
|
|
87
|
+
} else {
|
|
88
|
+
delete finalProps.opts.playerVars[prop];
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
// 0 or 1
|
|
92
|
+
finalProps.opts.playerVars[prop] = value ? 1 : 0;
|
|
93
|
+
}
|
|
94
|
+
} else {
|
|
95
|
+
finalProps.opts.playerVars[prop] = value;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return React.createElement(YouTubeImpl, Object.assign({
|
|
101
|
+
ref: ref
|
|
102
|
+
}, finalProps));
|
|
103
|
+
});
|
|
104
|
+
var youtubeMeta = {
|
|
105
|
+
name: "hostless-youtube",
|
|
106
|
+
displayName: "YouTube",
|
|
107
|
+
importName: "YouTube",
|
|
108
|
+
importPath: "@plasmicpkgs/react-youtube",
|
|
7
109
|
props: {
|
|
8
110
|
videoId: {
|
|
9
111
|
type: "string",
|
|
10
112
|
defaultValue: "R6MeLqRQzYw",
|
|
11
113
|
displayName: "Video ID",
|
|
12
|
-
description: "The ID for the YouTube video
|
|
114
|
+
description: "The ID for the YouTube video"
|
|
115
|
+
},
|
|
116
|
+
autoplay: {
|
|
117
|
+
type: "boolean",
|
|
118
|
+
displayName: "Auto Play",
|
|
119
|
+
description: "Whether the video should automatically start playing when the player loads",
|
|
120
|
+
defaultValueHint: false
|
|
121
|
+
},
|
|
122
|
+
cc_load_policy: {
|
|
123
|
+
type: "boolean",
|
|
124
|
+
displayName: "Show Captions",
|
|
125
|
+
description: "Whether the captions should be shown by default, even if the user has turned captions off",
|
|
126
|
+
defaultValueHint: false
|
|
127
|
+
},
|
|
128
|
+
start: {
|
|
129
|
+
type: "number",
|
|
130
|
+
displayName: "Start",
|
|
131
|
+
description: "The video should begin at this amount of seconds from the start of the video",
|
|
132
|
+
defaultValueHint: 0
|
|
133
|
+
},
|
|
134
|
+
end: {
|
|
135
|
+
type: "number",
|
|
136
|
+
displayName: "End",
|
|
137
|
+
description: "Stop playing the video after this amount of seconds (measured from the start of the video)"
|
|
138
|
+
},
|
|
139
|
+
color: {
|
|
140
|
+
type: "choice",
|
|
141
|
+
displayName: "Color",
|
|
142
|
+
options: ["red", "white"],
|
|
143
|
+
description: "The color used in the display bar to highlight how much of the video the viewer has already seen",
|
|
144
|
+
defaultValueHint: "red"
|
|
145
|
+
},
|
|
146
|
+
controls: {
|
|
147
|
+
type: "boolean",
|
|
148
|
+
displayName: "Show Controls",
|
|
149
|
+
description: "Whether the YouTube video player controls should be displayed",
|
|
150
|
+
defaultValueHint: true
|
|
151
|
+
},
|
|
152
|
+
disablekb: {
|
|
153
|
+
type: "boolean",
|
|
154
|
+
displayName: "Disable Keyboard",
|
|
155
|
+
description: "Whether the keyboard controls should be disabled",
|
|
156
|
+
defaultValueHint: false
|
|
157
|
+
},
|
|
158
|
+
fs: {
|
|
159
|
+
type: "boolean",
|
|
160
|
+
displayName: "FullScreen Button",
|
|
161
|
+
description: "Whether the fullscreen button should be displayed",
|
|
162
|
+
defaultValueHint: true
|
|
163
|
+
},
|
|
164
|
+
loop: {
|
|
165
|
+
type: "boolean",
|
|
166
|
+
displayName: "Loop",
|
|
167
|
+
description: "Whether the video should be played again after it finishes",
|
|
168
|
+
defaultValueHint: false
|
|
169
|
+
},
|
|
170
|
+
modestbranding: {
|
|
171
|
+
type: "boolean",
|
|
172
|
+
displayName: "Hide Logo",
|
|
173
|
+
description: "Hide the YouTube logo in the control bar",
|
|
174
|
+
defaultValueHint: false
|
|
175
|
+
},
|
|
176
|
+
playsinline: {
|
|
177
|
+
type: "boolean",
|
|
178
|
+
displayName: "Play Inline",
|
|
179
|
+
description: "Whether the video should be played inline or fullscreen on iOS",
|
|
180
|
+
defaultValueHint: false
|
|
181
|
+
},
|
|
182
|
+
rel: {
|
|
183
|
+
type: "boolean",
|
|
184
|
+
displayName: "Related Videos",
|
|
185
|
+
description: "Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)",
|
|
186
|
+
defaultValueHint: true
|
|
13
187
|
}
|
|
14
188
|
},
|
|
189
|
+
isDefaultExport: true,
|
|
15
190
|
defaultStyles: {
|
|
16
191
|
height: "390px",
|
|
17
192
|
width: "640px",
|
|
18
193
|
maxHeight: "100%",
|
|
19
194
|
maxWidth: "100%"
|
|
20
195
|
}
|
|
21
|
-
}
|
|
196
|
+
};
|
|
197
|
+
function registerYouTube(loader, customYouTubeMeta) {
|
|
198
|
+
if (loader) {
|
|
199
|
+
loader.registerComponent(YouTube, customYouTubeMeta != null ? customYouTubeMeta : youtubeMeta);
|
|
200
|
+
} else {
|
|
201
|
+
registerComponent(YouTube, customYouTubeMeta != null ? customYouTubeMeta : youtubeMeta);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export default YouTube;
|
|
206
|
+
export { registerYouTube, youtubeMeta };
|
|
22
207
|
//# sourceMappingURL=react-youtube.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-youtube.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import YouTube from \"react-youtube\";\nimport registerComponent from \"@plasmicapp/host/registerComponent\";\n\nregisterComponent(YouTube, {\n name: \"YouTube\",\n importPath: \"react-youtube\",\n props: {\n videoId: {\n type: \"string\",\n defaultValue: \"R6MeLqRQzYw\",\n displayName: \"Video ID\",\n description: \"The ID for the YouTube video.\"\n }\n },\n defaultStyles: {\n height: \"390px\",\n width: \"640px\",\n maxHeight: \"100%\",\n maxWidth: \"100%\"\n }\n});"],"names":["registerComponent","YouTube","name","importPath","props","videoId","type","defaultValue","displayName","description","defaultStyles","height","width","maxHeight","maxWidth"],"mappings":";;;AAGAA,iBAAiB,CAACC,OAAD,EAAU;AACzBC,EAAAA,IAAI,EAAE,SADmB;AAEzBC,EAAAA,UAAU,EAAE,eAFa;AAGzBC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE;AACPC,MAAAA,IAAI,EAAE,QADC;AAEPC,MAAAA,YAAY,EAAE,aAFP;AAGPC,MAAAA,WAAW,EAAE,UAHN;AAIPC,MAAAA,WAAW,EAAE;AAJN;AADJ,GAHkB;AAWzBC,EAAAA,aAAa,EAAE;AACbC,IAAAA,MAAM,EAAE,OADK;AAEbC,IAAAA,KAAK,EAAE,OAFM;AAGbC,IAAAA,SAAS,EAAE,MAHE;AAIbC,IAAAA,QAAQ,EAAE;AAJG;AAXU,CAAV,CAAjB"}
|
|
1
|
+
{"version":3,"file":"react-youtube.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@plasmicapp/host/registerComponent\";\nimport React from \"react\";\nimport YouTubeImpl, {\n PlayerVars,\n YouTubeProps as YouTubeImplProps,\n} from \"react-youtube\";\n\nexport type YouTubeProps = YouTubeImplProps &\n {\n [prop in keyof PlayerVars]:\n | PlayerVars[prop]\n | (prop extends typeof booleanParams[number] ? boolean : never);\n };\nconst playerParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"color\",\n \"controls\",\n \"disablekb\",\n \"enablejsapi\",\n \"end\",\n \"fs\",\n \"hl\",\n \"iv_load_policy\",\n \"list\",\n \"listType\",\n \"loop\",\n \"modestbranding\",\n \"origin\",\n \"playlist\",\n \"playsinline\",\n \"rel\",\n \"showinfo\",\n \"start\",\n \"mute\",\n] as const;\n\nconst booleanParams = [\n \"autoplay\",\n \"cc_load_policy\",\n \"controls\",\n \"disablekb\",\n \"fs\",\n \"loop\",\n \"modestbranding\",\n \"playsinline\",\n \"rel\",\n] as const;\n\nconst booleanParamsSet = new Set<string>(booleanParams);\n\nconst YouTube = React.forwardRef<YouTubeImpl, YouTubeProps>(\n (props: YouTubeProps, ref) => {\n const finalProps = { ...props };\n for (const prop of playerParams) {\n if (prop in finalProps) {\n const value = finalProps[prop];\n delete finalProps[prop];\n if (!finalProps.opts) {\n finalProps.opts = {};\n }\n if (!finalProps.opts.playerVars) {\n finalProps.opts.playerVars = {};\n }\n if (booleanParamsSet.has(prop)) {\n if (prop === \"cc_load_policy\" || prop === \"modestbranding\") {\n // undefined or 1\n if (value) {\n finalProps.opts.playerVars[prop] = 1;\n } else {\n delete finalProps.opts.playerVars[prop];\n }\n } else {\n // 0 or 1\n finalProps.opts.playerVars[prop] = (value ? 1 : 0) as any;\n }\n } else {\n finalProps.opts.playerVars[prop] = value as any;\n }\n }\n }\n return <YouTubeImpl ref={ref} {...finalProps} />;\n }\n);\n\nexport const youtubeMeta: ComponentMeta<YouTubeProps> = {\n name: \"hostless-youtube\",\n displayName: \"YouTube\",\n importName: \"YouTube\",\n importPath: \"@plasmicpkgs/react-youtube\",\n props: {\n videoId: {\n type: \"string\",\n defaultValue: \"R6MeLqRQzYw\",\n displayName: \"Video ID\",\n description: \"The ID for the YouTube video\",\n },\n autoplay: {\n type: \"boolean\",\n displayName: \"Auto Play\",\n description:\n \"Whether the video should automatically start playing when the player loads\",\n defaultValueHint: false,\n },\n cc_load_policy: {\n type: \"boolean\",\n displayName: \"Show Captions\",\n description:\n \"Whether the captions should be shown by default, even if the user has turned captions off\",\n defaultValueHint: false,\n },\n start: {\n type: \"number\",\n displayName: \"Start\",\n description:\n \"The video should begin at this amount of seconds from the start of the video\",\n defaultValueHint: 0,\n },\n end: {\n type: \"number\",\n displayName: \"End\",\n description:\n \"Stop playing the video after this amount of seconds (measured from the start of the video)\",\n },\n color: {\n type: \"choice\",\n displayName: \"Color\",\n options: [\"red\", \"white\"],\n description:\n \"The color used in the display bar to highlight how much of the video the viewer has already seen\",\n defaultValueHint: \"red\",\n },\n controls: {\n type: \"boolean\",\n displayName: \"Show Controls\",\n description:\n \"Whether the YouTube video player controls should be displayed\",\n defaultValueHint: true,\n },\n disablekb: {\n type: \"boolean\",\n displayName: \"Disable Keyboard\",\n description: \"Whether the keyboard controls should be disabled\",\n defaultValueHint: false,\n },\n fs: {\n type: \"boolean\",\n displayName: \"FullScreen Button\",\n description: \"Whether the fullscreen button should be displayed\",\n defaultValueHint: true,\n },\n loop: {\n type: \"boolean\",\n displayName: \"Loop\",\n description: \"Whether the video should be played again after it finishes\",\n defaultValueHint: false,\n },\n modestbranding: {\n type: \"boolean\",\n displayName: \"Hide Logo\",\n description: \"Hide the YouTube logo in the control bar\",\n defaultValueHint: false,\n },\n playsinline: {\n type: \"boolean\",\n displayName: \"Play Inline\",\n description:\n \"Whether the video should be played inline or fullscreen on iOS\",\n defaultValueHint: false,\n },\n rel: {\n type: \"boolean\",\n displayName: \"Related Videos\",\n description:\n \"Whether it should show related videos when the video ends (if false, it shows other videos from the same channel)\",\n defaultValueHint: true,\n },\n },\n isDefaultExport: true,\n defaultStyles: {\n height: \"390px\",\n width: \"640px\",\n maxHeight: \"100%\",\n maxWidth: \"100%\",\n },\n};\n\nexport function registerYouTube(\n loader?: { registerComponent: typeof registerComponent },\n customYouTubeMeta?: ComponentMeta<YouTubeProps>\n) {\n if (loader) {\n loader.registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n } else {\n registerComponent(YouTube, customYouTubeMeta ?? youtubeMeta);\n }\n}\n\nexport default YouTube;\n"],"names":["playerParams","booleanParams","booleanParamsSet","Set","YouTube","React","forwardRef","props","ref","finalProps","prop","value","opts","playerVars","has","YouTubeImpl","youtubeMeta","name","displayName","importName","importPath","videoId","type","defaultValue","description","autoplay","defaultValueHint","cc_load_policy","start","end","color","options","controls","disablekb","fs","loop","modestbranding","playsinline","rel","isDefaultExport","defaultStyles","height","width","maxHeight","maxWidth","registerYouTube","loader","customYouTubeMeta","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAMA,YAAY,GAAG,CACnB,UADmB,EAEnB,gBAFmB,EAGnB,OAHmB,EAInB,UAJmB,EAKnB,WALmB,EAMnB,aANmB,EAOnB,KAPmB,EAQnB,IARmB,EASnB,IATmB,EAUnB,gBAVmB,EAWnB,MAXmB,EAYnB,UAZmB,EAanB,MAbmB,EAcnB,gBAdmB,EAenB,QAfmB,EAgBnB,UAhBmB,EAiBnB,aAjBmB,EAkBnB,KAlBmB,EAmBnB,UAnBmB,EAoBnB,OApBmB,EAqBnB,MArBmB,CAArB;AAwBA,IAAMC,aAAa,GAAG,CACpB,UADoB,EAEpB,gBAFoB,EAGpB,UAHoB,EAIpB,WAJoB,EAKpB,IALoB,EAMpB,MANoB,EAOpB,gBAPoB,EAQpB,aARoB,EASpB,KAToB,CAAtB;AAYA,IAAMC,gBAAgB,gBAAG,IAAIC,GAAJ,CAAgBF,aAAhB,CAAzB;AAEA,IAAMG,OAAO,gBAAGC,KAAK,CAACC,UAAN,CACd,UAACC,KAAD,EAAsBC,GAAtB;AACE,MAAMC,UAAU,gBAAQF,KAAR,CAAhB;;AACA,uDAAmBP,YAAnB,wCAAiC;AAAA,QAAtBU,IAAsB;;AAC/B,QAAIA,IAAI,IAAID,UAAZ,EAAwB;AACtB,UAAME,KAAK,GAAGF,UAAU,CAACC,IAAD,CAAxB;AACA,aAAOD,UAAU,CAACC,IAAD,CAAjB;;AACA,UAAI,CAACD,UAAU,CAACG,IAAhB,EAA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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/react-youtube",
|
|
3
|
-
"version": "7.13.
|
|
3
|
+
"version": "7.13.5",
|
|
4
4
|
"description": "Plasmic registration call for react-youtube",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"typescript": "^3.9.7"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@plasmicapp/host": "^0.0.
|
|
39
|
+
"@plasmicapp/host": "^0.0.44",
|
|
40
40
|
"react-youtube": "^7.13.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|