Version Description
Download this release
Release Info
Developer | embedpress |
Plugin | EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3.0 to 2.3.1
- EmbedPress/Ends/Back/index.html +0 -0
- EmbedPress/Ends/Front/index.html +0 -0
- EmbedPress/Ends/index.html +0 -0
- EmbedPress/index.html +0 -0
- Gutenberg/dist/blocks.build.js +90 -4
- Gutenberg/dist/blocks.editor.build.css +24 -42
- Gutenberg/dist/blocks.style.build.css +22 -42
- Gutenberg/src/blocks.js +2 -0
- Gutenberg/src/common/core-embeds.js +0 -0
- Gutenberg/src/common/embed-controls.js +0 -0
- Gutenberg/src/common/embed-loading.js +0 -0
- Gutenberg/src/common/embed-placeholder.js +0 -0
- Gutenberg/src/common/icons.js +26 -0
- Gutenberg/src/google-docs/editor.scss +1 -10
- Gutenberg/src/google-docs/style.scss +0 -9
- Gutenberg/src/google-drawings/editor.scss +0 -9
- Gutenberg/src/google-drawings/style.scss +0 -9
- Gutenberg/src/google-forms/editor.scss +0 -9
- Gutenberg/src/google-forms/style.scss +0 -9
- Gutenberg/src/google-maps/editor.scss +0 -9
- Gutenberg/src/google-maps/style.scss +0 -9
- Gutenberg/src/google-sheets/editor.scss +0 -9
- Gutenberg/src/google-sheets/style.scss +0 -9
- Gutenberg/src/google-slides/editor.scss +0 -9
- Gutenberg/src/google-slides/style.scss +0 -8
- Gutenberg/src/twitch/edit.js +158 -0
- Gutenberg/src/twitch/editor.scss +6 -0
- Gutenberg/src/twitch/index.js +78 -0
- Gutenberg/src/twitch/style.scss +5 -0
- Gutenberg/src/wistia/edit.js +105 -0
- Gutenberg/src/wistia/editor.scss +7 -0
- Gutenberg/src/wistia/index.js +79 -0
- Gutenberg/src/wistia/style.scss +6 -0
- assets/css/admin.css +0 -0
- assets/css/embedpress.css +0 -0
- assets/css/index.html +0 -0
- assets/css/preview.css +0 -0
- assets/css/vendor/bootstrap/bootstrap.css +0 -0
- assets/css/vendor/bootstrap/bootstrap.css.map +0 -0
- assets/css/vendor/bootstrap/bootstrap.min.css +0 -0
- assets/css/vendor/bootstrap/index.html +0 -0
- assets/css/vendor/index.html +0 -0
- assets/fonts/embedpress.eot +0 -0
- assets/fonts/embedpress.svg +0 -0
- assets/fonts/embedpress.ttf +0 -0
- assets/fonts/embedpress.woff +0 -0
- assets/fonts/index.html +0 -0
- assets/images/index.html +0 -0
- assets/images/menu-icon.png +0 -0
- assets/index.html +0 -0
- assets/js/index.html +0 -0
- assets/js/vendor/bootstrap/bootstrap.js +0 -0
- assets/js/vendor/bootstrap/bootstrap.min.js +0 -0
- assets/js/vendor/bootstrap/index.html +0 -0
- assets/js/vendor/index.html +0 -0
- embedpress.php +1 -1
- includes.php +2 -2
- index.html +0 -0
- readme.txt +11 -8
- vendor/composer/ClassLoader.php +1 -1
EmbedPress/Ends/Back/index.html
CHANGED
File without changes
|
EmbedPress/Ends/Front/index.html
CHANGED
File without changes
|
EmbedPress/Ends/index.html
CHANGED
File without changes
|
EmbedPress/index.html
CHANGED
File without changes
|
Gutenberg/dist/blocks.build.js
CHANGED
@@ -116,12 +116,12 @@ eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom__ = __webpa
|
|
116 |
/*!*****************************!*\
|
117 |
!*** ./src/common/icons.js ***!
|
118 |
\*****************************/
|
119 |
-
/*! exports provided: googleDocsIcon, googleSlidesIcon, googleSheetsIcon, googleFormsIcon, googleDrawingsIcon, googleMapsIcon */
|
120 |
-
/*! exports used: googleDocsIcon, googleDrawingsIcon, googleFormsIcon, googleMapsIcon, googleSheetsIcon, googleSlidesIcon */
|
121 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
122 |
|
123 |
"use strict";
|
124 |
-
eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return googleDocsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return googleSlidesIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return googleSheetsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return googleFormsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return googleDrawingsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return googleMapsIcon; });\n/**\n * WordPress dependencies\n */\nvar _wp$components = wp.components,\n G = _wp$components.G,\n Path = _wp$components.Path,\n Polygon = _wp$components.Polygon,\n SVG = _wp$components.SVG;\n\nvar googleDocsIcon = wp.element.createElement(\n\tSVG,\n\t{ xmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#2196F3' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#BBDEFB' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#1565C0' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 23 L 33 23 L 33 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 27 L 33 27 L 33 29 L 15 29 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 31 L 33 31 L 33 33 L 15 33 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 35 L 25 35 L 25 37 L 15 37 Z \" })\n\t)\n);\nvar googleSlidesIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\t\"enable-background\": \"new 0 0 24 24\", id: \"Layer_2\",\n\t\tversion: \"1.1\",\n\t\tviewBox: \"0 0 24 24\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z\",\n\t\t\tstyle: { fill: \"#FFC720\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z\",\n\t\t\tstyle: { fill: \"url(#SVGID_1_)\" } }),\n\t\twp.element.createElement(Path, { d: \"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z\",\n\t\t\tstyle: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z\", style: { fill: \"#FFE083\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z\", style: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10\", style: { fill: \"#FFFFFF\", opacity: \"0.2\" } }),\n\t\twp.element.createElement(Path, { d: \"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z\",\n\t\t\tstyle: { fill: \"#FFFFFF\" } }),\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z\", style: { fill: \"url(#SVGID_2_)\" } })\n\t),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null)\n);\n\nvar googleSheetsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#43A047' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C8E6C9' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z \" })\n\t)\n);\n\nvar googleFormsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#7850C1' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C2ABE1' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 23 L 33 23 L 33 25 L 19 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 28 L 33 28 L 33 30 L 19 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 33 L 33 33 L 33 35 L 19 35 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 23 L 17 23 L 17 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 28 L 17 28 L 17 30 L 15 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 33 L 17 33 L 17 35 L 15 35 Z \" })\n\t)\n);\n\nvar googleDrawingsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#DE5245' }, d: \"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EEA6A0' }, d: \"M40,13H30V3L40,13z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#B3433A' }, d: \"M30,13l10,10V13H30z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z\" })\n\t)\n);\n\nvar googleMapsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#1C9957' }, d: \"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#3E7BF1' }, d: \"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#CBCCC9' }, d: \"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EFEFEF' }, d: \"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFD73D' }, d: \"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#D73F35' }, d: \"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#752622' }, d: \"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z \" })\n\t)\n);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vaWNvbnMuanM/NWFhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xudmFyIF93cCRjb21wb25lbnRzID0gd3AuY29tcG9uZW50cyxcbiAgICBHID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E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///4\n");
|
125 |
|
126 |
/***/ }),
|
127 |
/* 5 */
|
@@ -133,7 +133,7 @@ eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__,
|
|
133 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
134 |
|
135 |
"use strict";
|
136 |
-
eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__google_docs_index_js__ = __webpack_require__(/*! ./google-docs/index.js */ 6);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__google_slides_index_js__ = __webpack_require__(/*! ./google-slides/index.js */ 11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__google_sheets_index_js__ = __webpack_require__(/*! ./google-sheets/index.js */ 15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__google_forms_index_js__ = __webpack_require__(/*! ./google-forms/index.js */ 19);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__google_drawings_index_js__ = __webpack_require__(/*! ./google-drawings/index.js */ 23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__google_maps_index_js__ = __webpack_require__(/*! ./google-maps/index.js */ 27);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/
|
137 |
|
138 |
/***/ }),
|
139 |
/* 6 */
|
@@ -404,5 +404,91 @@ eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourc
|
|
404 |
"use strict";
|
405 |
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleSlidesEdit = function (_Component) {\n _inherits(GoogleSlidesEdit, _Component);\n\n function GoogleSlidesEdit() {\n _classCallCheck(this, GoogleSlidesEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleSlidesEdit.__proto__ || Object.getPrototypeOf(GoogleSlidesEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleSlidesEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/(?:(?:(?:www\\.|maps\\.)?(?:google\\.com?))|(?:goo\\.gl))(?:\\.[a-z]{2})?\\/(?:maps\\/)?(?:place\\/)?(?:[a-z0-9\\/%+\\-_]*)?([a-z0-9\\/%,+\\-_=!:@\\.&*\\$#?\\']*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n if (url.match('~(maps/embed|output=embed)~i')) {\n //do something\n } else {\n var regEx = /@(-?[0-9\\.]+,-?[0-9\\.]+).+,([0-9\\.]+[a-z])/i;\n var match = regEx.exec(iframeSrc);\n if (match && match.length > 1 && match[1] && match[2]) {\n iframeSrc = 'http://maps.google.com/maps?hl=en&ie=UTF8&ll=' + match[1] + '&spn=' + match[1] + '&t=m&z=' + Math.round(parseInt(match[2])) + '&output=embed';\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Maps URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleSlidesEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleSlidesEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvZWRpdC5qcz83OTdkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBfY3JlYXRlQ2xhc3MgPSBmdW5jdGlvbiAoKSB7IGZ1bmN0aW9uIGRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBwcm9wcykgeyBmb3IgKHZhciBpID0gMDsgaSA8IHByb3BzLmxlbmd0aDsgaSsrKSB7IHZhciBkZXNjcmlwdG9yID0gcHJvcHNbaV07IGRlc2NyaXB0b3IuZW51bWVyYWJsZS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O1xuICAgICAgICByZXR1cm4gX3RoaXM7XG4gICAgfVxuXG4gICAgX2NyZWF0ZUNsYXNzKEdvb2dsZVNsaWRlc0VkaXQsIFt7XG4gICAgICAgIGtleTogJ29uTG9hZCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBvbkxvYWQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciB1cmwgPSB0aGlzLnN0YXRlLnVybDtcbiAgICAgICAgICAgIHZhciBzZXRBdHRyaWJ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cHMuZ29vZ2xlLmNvbS9tYXBzP2hsPWVuJmllPVVURjgmbGw9JyArIG1hdGNoWzFdICsgJyZzcG49JyArIG1hdGNoWzFdICsgJyZ0PW0mej0nICsgTWF0aC5yb3VuZChwYXJzZUludChtYXRjaFsyXSkpICsgJyZvdXRwdXQ9ZW1iZWQnO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IGZhbHNlLCBjYW5ub3RFbWJlZDogZmFsc2UgfSk7XG4gICAgICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IGlmcmFtZVNyYzogaWZyYW1lU3JjIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc3dpdGNoQmFja1RvVVJMSW5wdXQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gc3dpdGNoQmFja1RvVVJMSW5wdXQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHsgZWRpdGluZ1VSTDogdHJ1ZSB9KTtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2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GV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICBGcmFnbWVudCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgZmV0Y2hpbmcgPyB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRMb2FkaW5nLCBudWxsKSA6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChJZnJhbWUsIHsgc3JjOiBpZnJhbWVTcmMsIG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgZnJhbWVib3JkZXI6ICcwJywgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnLCBhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgbW96YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScsIHdlYmtpdGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnIH0pLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRDb250cm9scywge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0VkaXRCdXR0b246IGlmcmFtZVNyYyAmJiAhY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBzd2l0Y2hCYWNrVG9VUkxJbnB1dDogdGhpcy5zd2l0Y2hCYWNrVG9VUkxJbnB1dFxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgIC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TtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///30\n");
|
406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
/***/ })
|
408 |
/******/ ]);
|
116 |
/*!*****************************!*\
|
117 |
!*** ./src/common/icons.js ***!
|
118 |
\*****************************/
|
119 |
+
/*! exports provided: googleDocsIcon, googleSlidesIcon, googleSheetsIcon, googleFormsIcon, googleDrawingsIcon, googleMapsIcon, twitchIcon, wistiaIcon */
|
120 |
+
/*! exports used: googleDocsIcon, googleDrawingsIcon, googleFormsIcon, googleMapsIcon, googleSheetsIcon, googleSlidesIcon, twitchIcon, wistiaIcon */
|
121 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
122 |
|
123 |
"use strict";
|
124 |
+
eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return googleDocsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return googleSlidesIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return googleSheetsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return googleFormsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return googleDrawingsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return googleMapsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"g\", function() { return twitchIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return wistiaIcon; });\n/**\n * WordPress dependencies\n */\nvar _wp$components = wp.components,\n G = _wp$components.G,\n Path = _wp$components.Path,\n Polygon = _wp$components.Polygon,\n SVG = _wp$components.SVG;\n\nvar googleDocsIcon = wp.element.createElement(\n\tSVG,\n\t{ xmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#2196F3' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#BBDEFB' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#1565C0' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 23 L 33 23 L 33 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 27 L 33 27 L 33 29 L 15 29 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 31 L 33 31 L 33 33 L 15 33 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 35 L 25 35 L 25 37 L 15 37 Z \" })\n\t)\n);\nvar googleSlidesIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\t\"enable-background\": \"new 0 0 24 24\", id: \"Layer_2\",\n\t\tversion: \"1.1\",\n\t\tviewBox: \"0 0 24 24\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z\",\n\t\t\tstyle: { fill: \"#FFC720\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z\",\n\t\t\tstyle: { fill: \"url(#SVGID_1_)\" } }),\n\t\twp.element.createElement(Path, { d: \"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z\",\n\t\t\tstyle: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z\", style: { fill: \"#FFE083\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z\", style: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10\", style: { fill: \"#FFFFFF\", opacity: \"0.2\" } }),\n\t\twp.element.createElement(Path, { d: \"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z\",\n\t\t\tstyle: { fill: \"#FFFFFF\" } }),\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z\", style: { fill: \"url(#SVGID_2_)\" } })\n\t),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null)\n);\n\nvar googleSheetsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#43A047' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C8E6C9' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z \" })\n\t)\n);\n\nvar googleFormsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#7850C1' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C2ABE1' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 23 L 33 23 L 33 25 L 19 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 28 L 33 28 L 33 30 L 19 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 33 L 33 33 L 33 35 L 19 35 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 23 L 17 23 L 17 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 28 L 17 28 L 17 30 L 15 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 33 L 17 33 L 17 35 L 15 35 Z \" })\n\t)\n);\n\nvar googleDrawingsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#DE5245' }, d: \"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EEA6A0' }, d: \"M40,13H30V3L40,13z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#B3433A' }, d: \"M30,13l10,10V13H30z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z\" })\n\t)\n);\n\nvar googleMapsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#1C9957' }, d: \"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#3E7BF1' }, d: \"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#CBCCC9' }, d: \"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EFEFEF' }, d: \"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFD73D' }, d: \"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#D73F35' }, d: \"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#752622' }, d: \"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z \" })\n\t)\n);\n\nvar twitchIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 32 25 L 27 25 L 27 15 L 32 15 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 24 25 L 19 25 L 19 15 L 24 15 Z \" })\n\t)\n);\n\nvar wistiaIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 769 598\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#148ee0' }, d: \"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#54bbff' }, d: \"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z\" })\n\t)\n);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vaWNvbnMuanM/NWFhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xudmFyIF93cCRjb21wb25lbnRzID0gd3AuY29tcG9uZW50cyxcbiAgICBHID0gX3dwJGNvbXBvbmVudHMuRyxcbiAgICBQYXRoID0gX3dwJGNvbXBvbmVudHMuUGF0aCxcbiAgICBQb2x5Z29uID0gX3dwJGNvbXBvbmVudHMuUG9seWdvbixcbiAgICBTVkcgPSBfd3AkY29tcG9uZW50cy5TVkc7XG5cbmV4cG9ydCB2YXIgZ29vZ2xlRG9jc0ljb24gPSB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFNWRyxcblx0eyB4bWxuczogXCJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rXCIsXG5cdFx0dmlld0JveDogXCIwIDAgNDggNDhcIlxuXHR9LFxuXHR3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFx0Ryxcblx0XHRudWxsLFxuXHRcdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChQYXRoLCB7IHN0eWxlOiB7IGZpbGw6ICcjMjE5NkYzJyB9LCBkOiBcIk0gMzcgNDUgTCAxMSA0NSBDIDkuMzQzNzUgNDUgOCA0My42NTYyNSA4IDQyIEwgOCA2IEMgOCA0LjM0Mzc1IDkuMzQzNzUgMyAxMSAzIEwgMzAgMyBMIDQwIDEzI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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///4\n");
|
125 |
|
126 |
/***/ }),
|
127 |
/* 5 */
|
133 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
134 |
|
135 |
"use strict";
|
136 |
+
eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__google_docs_index_js__ = __webpack_require__(/*! ./google-docs/index.js */ 6);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__google_slides_index_js__ = __webpack_require__(/*! ./google-slides/index.js */ 11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__google_sheets_index_js__ = __webpack_require__(/*! ./google-sheets/index.js */ 15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__google_forms_index_js__ = __webpack_require__(/*! ./google-forms/index.js */ 19);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__google_drawings_index_js__ = __webpack_require__(/*! ./google-drawings/index.js */ 23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__google_maps_index_js__ = __webpack_require__(/*! ./google-maps/index.js */ 27);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__twitch_index_js__ = __webpack_require__(/*! ./twitch/index.js */ 31);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__wistia_index_js__ = __webpack_require__(/*! ./wistia/index.js */ 35);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/N2I1YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9nb29nbGUtZG9jcy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLXNsaWRlcy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLXNoZWV0cy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLWZvcm1zL2luZGV4LmpzJztcbmltcG9ydCAnLi9nb29nbGUtZHJhd2luZ3MvaW5kZXguanMnO1xuaW1wb3J0ICcuL2dvb2dsZS1tYXBzL2luZGV4LmpzJztcbmltcG9ydCAnLi90d2l0Y2gvaW5kZXguanMnO1xuaW1wb3J0ICcuL3dpc3RpYS9pbmRleC5qcyc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2tzLmpzXG4vLyBtb2R1bGUgaWQgPSA1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///5\n");
|
137 |
|
138 |
/***/ }),
|
139 |
/* 6 */
|
404 |
"use strict";
|
405 |
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleSlidesEdit = function (_Component) {\n _inherits(GoogleSlidesEdit, _Component);\n\n function GoogleSlidesEdit() {\n _classCallCheck(this, GoogleSlidesEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleSlidesEdit.__proto__ || Object.getPrototypeOf(GoogleSlidesEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleSlidesEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/(?:(?:(?:www\\.|maps\\.)?(?:google\\.com?))|(?:goo\\.gl))(?:\\.[a-z]{2})?\\/(?:maps\\/)?(?:place\\/)?(?:[a-z0-9\\/%+\\-_]*)?([a-z0-9\\/%,+\\-_=!:@\\.&*\\$#?\\']*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n if (url.match('~(maps/embed|output=embed)~i')) {\n //do something\n } else {\n var regEx = /@(-?[0-9\\.]+,-?[0-9\\.]+).+,([0-9\\.]+[a-z])/i;\n var match = regEx.exec(iframeSrc);\n if (match && match.length > 1 && match[1] && match[2]) {\n iframeSrc = 'http://maps.google.com/maps?hl=en&ie=UTF8&ll=' + match[1] + '&spn=' + match[1] + '&t=m&z=' + Math.round(parseInt(match[2])) + '&output=embed';\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Maps URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleSlidesEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleSlidesEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvZWRpdC5qcz83OTdkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBfY3JlYXRlQ2xhc3MgPSBmdW5jdGlvbiAoKSB7IGZ1bmN0aW9uIGRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBwcm9wcykgeyBmb3IgKHZhciBpID0gMDsgaSA8IHByb3BzLmxlbmd0a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ICBmZXRjaGluZzogdHJ1ZSxcbiAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBmYWxzZVxuICAgICAgICB9O1xuICAgICAgICByZXR1cm4gX3RoaXM7XG4gICAgfVxuXG4gICAgX2NyZWF0ZUNsYXNzKEdvb2dsZVNsaWRlc0VkaXQsIFt7XG4gICAgICAgIGtleTogJ29uTG9hZCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBvbkxvYWQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICA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ICYmIG1hdGNoWzJdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZnJhbWVTcmMgPSAnaHR0cDovL21hcHMuZ29vZ2xlLmNvbS9tYXBzP2hsPWVuJmllPVVURjgmbGw9JyArIG1hdGNoWzFdICsgJyZzcG49JyArIG1hdGNoWzFdICsgJyZ0PW0mej0nICsgTWF0aC5yb3VuZChwYXJzZUludChtYXRjaFsyXSkpICsgJyZvdXRwdXQ9ZW1iZWQnO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IGZhbHNlLCBjYW5ub3RFbWJlZDogZmFsc2UgfSk7XG4gICAgICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IGlmcmFtZVNyYzogaWZyYW1lU3JjIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc3dpdGNoQmFja1RvVVJMSW5wdXQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gc3dpdGNoQmFja1RvVVJMSW5wdXQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0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ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICBGcmFnbWVudCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgZmV0Y2hpbmcgPyB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRMb2FkaW5nLCBudWxsKSA6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChJZnJhbWUsIHsgc3JjOiBpZnJhbWVTcmMsIG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgZnJhbWVib3JkZXI6ICcwJywgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnLCBhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgbW96YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScsIHdlYmtpdGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnIH0pLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRDb250cm9scywge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0VkaXRCdXR0b246IGlmcmFtZVNyYyAmJiAhY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBzd2l0Y2hCYWNrVG9VUkxJ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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///30\n");
|
406 |
|
407 |
+
/***/ }),
|
408 |
+
/* 31 */
|
409 |
+
/*!*****************************!*\
|
410 |
+
!*** ./src/twitch/index.js ***!
|
411 |
+
\*****************************/
|
412 |
+
/*! no exports provided */
|
413 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
414 |
+
|
415 |
+
"use strict";
|
416 |
+
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 33);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/twitch-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Twitch'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"g\" /* twitchIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('twitch')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tattrs: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar _props$attributes = props.attributes,\n\t\t iframeSrc = _props$attributes.iframeSrc,\n\t\t attrs = _props$attributes.attrs;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-twitch-presentation' },\n\t\t\twp.element.createElement('iframe', _extends({ src: iframeSrc }, attrs, { frameborder: '0', width: '600', height: '450' }))\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2luZGV4LmpzP2Y4ODciXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTtcblxuLyoqXG4gKiBCTE9DSzogZW1iZWRwcmVzcy1ibG9ja3NcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrLCByZW5kZXJzIGFuZCBzYXZlc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BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///31\n");
|
417 |
+
|
418 |
+
/***/ }),
|
419 |
+
/* 32 */
|
420 |
+
/*!*******************************!*\
|
421 |
+
!*** ./src/twitch/style.scss ***!
|
422 |
+
\*******************************/
|
423 |
+
/*! dynamic exports provided */
|
424 |
+
/***/ (function(module, exports) {
|
425 |
+
|
426 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL3N0eWxlLnNjc3M/Y2FlNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL3R3aXRjaC9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///32\n");
|
427 |
+
|
428 |
+
/***/ }),
|
429 |
+
/* 33 */
|
430 |
+
/*!********************************!*\
|
431 |
+
!*** ./src/twitch/editor.scss ***!
|
432 |
+
\********************************/
|
433 |
+
/*! dynamic exports provided */
|
434 |
+
/***/ (function(module, exports) {
|
435 |
+
|
436 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2VkaXRvci5zY3NzPzI2ZTkiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy90d2l0Y2gvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDMzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///33\n");
|
437 |
+
|
438 |
+
/***/ }),
|
439 |
+
/* 34 */
|
440 |
+
/*!****************************!*\
|
441 |
+
!*** ./src/twitch/edit.js ***!
|
442 |
+
\****************************/
|
443 |
+
/*! exports provided: default */
|
444 |
+
/*! exports used: default */
|
445 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
446 |
+
|
447 |
+
"use strict";
|
448 |
+
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar TwitchEdit = function (_Component) {\n _inherits(TwitchEdit, _Component);\n\n function TwitchEdit() {\n _classCallCheck(this, TwitchEdit);\n\n var _this = _possibleConstructorReturn(this, (TwitchEdit.__proto__ || Object.getPrototypeOf(TwitchEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(TwitchEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n var regEx = /http[s]?:\\/\\/(?:www\\.|clips\\.)twitch\\.tv\\/([0-9a-zA-Z\\-\\_]+)\\/?(chat\\/?$|[0-9a-z\\-\\_]*)?/;\n if (url && url.match(regEx)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var match = regEx.exec(iframeSrc);\n var channelName = match[1];\n console.log(channelName);\n var type = \"channel\";\n var attrs;\n if (url.indexOf('clips.twitch.tv') > -1) {\n type = 'clip';\n } else if (url.indexOf('/videos/') > -1) {\n type = 'video';\n } else if (url.indexOf('#/chat$#') > -1) {\n type = 'chat';\n }\n console.log(type);\n switch (type) {\n case 'channel':\n iframeSrc = 'https://player.twitch.tv/?channel=' + channelName;\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'clip':\n iframeSrc = 'https://clips.twitch.tv/embed?clip=' + channelName + '&autoplay=false';\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'video':\n channelName = match[2];\n iframeSrc = 'https://player.twitch.tv/?video=' + channelName;\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'chat':\n iframeSrc = 'http://www.twitch.tv/embed/' + channelName + '/chat';\n attrs = {\n scrolling: \"yes\",\n frameborder: \"0\",\n allowfullscreen: \"true\",\n id: \"'\" + channelName + \"'\"\n\n };\n break;\n }\n console.log(iframeSrc);\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc, attrs: attrs });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var _props$attributes = this.props.attributes,\n iframeSrc = _props$attributes.iframeSrc,\n attrs = _props$attributes.attrs;\n\n\n var label = __('Twitch URL');\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], _extends({ src: iframeSrc }, attrs, { onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, width: '600', height: '450' })),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return TwitchEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (TwitchEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2VkaXQuanM/ZWNlZiJdLCJzb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G4gICAgICAgICAgICAgICAgc3RyID0gc3RyLnJlcGxhY2UoLzxzY3JpcHRbXj5dKj4oW1xcU1xcc10qPyk8XFwvc2NyaXB0Pi9nbWksICcnKTtcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPFxcLz9cXHcoPzpbXlwiJz5dfFwiW15cIl0qXCJ8J1teJ10qJykqPi9nbWksICcnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzdHI7XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3NldFVybCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBzZXRVcmwoZXZlbnQpIHtcbiAgICAgICAgICAgIGlmIChldmVudCkge1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgdXJsID0gdGhpcy5zdGF0ZS51cmw7XG4gICAgICAgICAgICB2YXIgc2V0QXR0cmlidXRlcyA9IHRoaXMucHJvcHMuc2V0QXR0cmlidXRlcztcblxuICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IHVybDogdXJsIH0pO1xuICAgICAgICAgICAgdmFyIHJlZ0V4ID0gL2h0dHBbc10/OlxcL1xcLyg/Ond3d1xcLnxjbGlwc1xcLil0d2l0Y2hcXC50dlxcLyhbMC05YS16QS1aXFwtXFxfXSspXFwvPyhjaGF0XFwvPyR8WzAtOWEtelxcLVxcX10qKT8vO1xuICAgICAgICAgICAgaWYgKHVybCAmJiB1cmwubWF0Y2gocmVnRXgpKSB7XG4gICAgICAgICAgICAgICAgdmFyIGlmcmFtZVNyYyA9IHRoaXMuZGVjb2RlSFRNTEVudGl0aWVzKHVybCk7XG4gICAgICAgICAgICAgICAgdmFyIG1hdGNoID0gcmVnRXguZXhlYyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHZhciBjaGFubmVsTmFtZSA9IG1hdGNoWzFdO1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGNoYW5uZWxOYW1lKTtcbiAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IFwiY2hhbm5lbFwiO1xuICAgICAgICAgICAgICAgIHZhciBhdHRycztcbiAgICAgICAgICAgICAgICBpZiAodXJsLmluZGV4T2YoJ2NsaXBzLnR3aXRjaC50dicpID4gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdjbGlwJztcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHVybC5pbmRleE9mKCcvdmlkZW9zLycpID4gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICd2aWRlbyc7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICh1cmwuaW5kZXhPZignIy9jaGF0JCMnKSA+IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnY2hhdCc7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHR5cGUpO1xuICAgICAgICAgICAgICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBjYXNlICdjaGFubmVsJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwczovL3BsYXllci50d2l0Y2gudHYvP2NoYW5uZWw9JyArIGNoYW5uZWxOYW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICdjbGlwJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwczovL2NsaXBzLnR3aXRjaC50di9lbWJlZD9jbGlwPScgKyBjaGFubmVsTmFtZSArICcmYXV0b3BsYXk9ZmFsc2UnO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICd2aWRlbyc6XG4gICAgICAgICAgICAgICAgICAgICAgICBjaGFubmVsTmFtZSA9IG1hdGNoWzJdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lU3JjID0gJ2h0dHBzOi8vcGxheWVyLnR3aXRjaC50di8/dmlkZW89JyArIGNoYW5uZWxOYW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICdjaGF0JzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwOi8vd3d3LnR3aXRjaC50di9lbWJlZC8nICsgY2hhbm5lbE5hbWUgKyAnL2NoYXQnO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcInllc1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZyYW1lYm9yZGVyOiBcIjBcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGxvd2Z1bGxzY3JlZW46IFwidHJ1ZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBcIidcIiArIGNoYW5uZWxOYW1lICsgXCInXCJcblxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBlZGl0aW5nVVJMOiBmYWxzZSwgY2Fubm90RW1iZWQ6IGZhbHNlIH0pO1xuICAgICAgICAgICAgICAgIHNldEF0dHJpYnV0ZXMoeyBpZnJhbWVTcmM6IGlmcmFtZVNyYywgYXR0cnM6IGF0dHJzIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc3dpdGNoQmFja1RvVVJMSW5wdXQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gc3dpdGNoQmFja1RvVVJMSW5wdXQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHsgZWRpdGluZ1VSTDogdHJ1ZSB9KTtcbiAgICAgICAg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ICAgICAgIHZhbHVlOiB1cmwsXG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBjYW5ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGNoaW5nID8gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkTG9hZGluZywgbnVsbCkgOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoSWZyYW1lLCBfZXh0ZW5kcyh7IHNyYzogaWZyYW1lU3JjIH0sIGF0dHJzLCB7IG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnIH0pKSxcbiAgICAgICAgICAgICAgICAgICAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkQ29udHJvbHMsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3dFZGl0QnV0dG9uOiBpZnJhbWVTcmMgJiYgIWNhbm5vdEVtYmVkLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoQmFja1RvVVJMSW5wdXQ6IHRoaXMuc3dpdGNoQmFja1RvVVJMSW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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///34\n");
|
449 |
+
|
450 |
+
/***/ }),
|
451 |
+
/* 35 */
|
452 |
+
/*!*****************************!*\
|
453 |
+
!*** ./src/wistia/index.js ***!
|
454 |
+
\*****************************/
|
455 |
+
/*! no exports provided */
|
456 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
457 |
+
|
458 |
+
"use strict";
|
459 |
+
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 37);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 38);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/wistia-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Wistia'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"h\" /* wistiaIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('wistia')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-wistia' },\n\t\t\twp.element.createElement('iframe', { src: iframeSrc,\n\t\t\t\tallowtransparency: 'true',\n\t\t\t\tframeborder: '0',\n\t\t\t\t'class': 'wistia_embed',\n\t\t\t\tname: 'wistia_embed',\n\t\t\t\twidth: '600', height: '330' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL2luZGV4LmpzPzVmN2QiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBCTE9DSzogZW1iZWRwcmVzcy1ibG9ja3NcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrLCByZW5kZXJzIGFuZCBzYXZlcyB0aGUgc2FtZSBjb250ZW50IHdpdGhvdXQgYW55IGludGVyYWN0aXZpdHkuXG4gKi9cblxuLy8gIEltcG9ydCBDU1MuXG5pbXBvcnQgJy4vc3R5bGUuc2Nzcyc7XG5pbXBvcnQgJy4vZWRpdG9yLnNjc3MnO1xuaW1wb3J0IGVkaXQgZnJvbSAnLi9lZGl0JztcbmltcG9ydCB7IHdpc3RpYUljb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cdG5hbWU6ICd3aXN0aWFfZW1iZWQnLFxuXHRcdFx0XHR3aWR0aDogJzYwMCcsIGhlaWdodDogJzMzMCcgfSlcblx0XHQpO1xuXHR9XG59KTtcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy93aXN0aWEvaW5kZXguanNcbi8vIG1vZHVsZSBpZCA9IDM1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///35\n");
|
460 |
+
|
461 |
+
/***/ }),
|
462 |
+
/* 36 */
|
463 |
+
/*!*******************************!*\
|
464 |
+
!*** ./src/wistia/style.scss ***!
|
465 |
+
\*******************************/
|
466 |
+
/*! dynamic exports provided */
|
467 |
+
/***/ (function(module, exports) {
|
468 |
+
|
469 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL3N0eWxlLnNjc3M/MWI3ZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL3dpc3RpYS9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzNlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///36\n");
|
470 |
+
|
471 |
+
/***/ }),
|
472 |
+
/* 37 */
|
473 |
+
/*!********************************!*\
|
474 |
+
!*** ./src/wistia/editor.scss ***!
|
475 |
+
\********************************/
|
476 |
+
/*! dynamic exports provided */
|
477 |
+
/***/ (function(module, exports) {
|
478 |
+
|
479 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL2VkaXRvci5zY3NzPzRmODUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy93aXN0aWEvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDM3XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///37\n");
|
480 |
+
|
481 |
+
/***/ }),
|
482 |
+
/* 38 */
|
483 |
+
/*!****************************!*\
|
484 |
+
!*** ./src/wistia/edit.js ***!
|
485 |
+
\****************************/
|
486 |
+
/*! exports provided: default */
|
487 |
+
/*! exports used: default */
|
488 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
489 |
+
|
490 |
+
"use strict";
|
491 |
+
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar WistiaEdit = function (_Component) {\n _inherits(WistiaEdit, _Component);\n\n function WistiaEdit() {\n _classCallCheck(this, WistiaEdit);\n\n var _this = _possibleConstructorReturn(this, (WistiaEdit.__proto__ || Object.getPrototypeOf(WistiaEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(WistiaEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && (url.match(/^http[s]?:\\/\\/(?:www\\.)?wistia\\.com\\/medias/i) || url.match(/^http[s]?:\\/\\/(?:www\\.)?fast\\/.wistia\\.com\\/embed\\/medias/i.jsonp))) {\n var mediaIdMatches = url.match(/medias(.*)/);\n var mediaId = mediaIdMatches[1];\n\n var iframeSrc = '//fast.wistia.net/embed/iframe/' + mediaId;\n\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Wistia URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '330', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return WistiaEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (WistiaEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzguanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMv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ChfdGhpcyk7XG4gICAgICAgIF90aGlzLnN0YXRlID0ge1xuICAgICAgICAgICAgZWRpdGluZ1VSTDogZmFsc2UsXG4gICAgICAgICAgICB1cmw6IF90aGlzLnByb3BzLmF0dHJpYnV0ZXMudXJsLFxuICAgICAgICAgICAgZmV0Y2hpbmc6IHRydWUsXG4gICAgICAgICAgICBjYW5ub3RFbWJlZDogZmFsc2VcbiAgICAgICAgfTtcbiAgICAgICAgcmV0dXJuIF90aGlzO1xuICAgIH1cblxuICAgIF9jcmVhdGVDbGFzcyhXaXN0aWFFZGl0LCBbe1xuICAgICAgICBrZXk6ICdvbkxvYWQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gb25Mb2FkKCkge1xuICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgZmV0Y2hpbmc6IGZhbHNlXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnZGVjb2RlSFRNTEVudGl0aWVzJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIGRlY29kZUhUTUxFbnRpdGllcyhzdHIpIHtcbiAgICAgICAgICAgIGlmIChzdHIgJiYgdHlwZW9mIHN0ciA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICAvLyBzdHJpcCBzY3JpcHQvaHRtbCB0YWdzXG4gICAgICAgICAgICAgICAgc3RyID0gc3RyLnJlcGxhY2UoLzxzY3JpcHRbXj5dKj4oW1xcU1xcc10qPyk8XFwvc2NyaXB0Pi9nbWksICcnKTtcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPFxcLz9cXHcoPzpbXlwiJz5dfFwiW15cIl0qXCJ8J1teJ10qJykqPi9nbWksICcnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzdHI7XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3NldFVybCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBzZXRVcmwoZXZlbnQpIHtcbiAgICAgICAgICAgIGlmIChldmVudCkge1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgdXJsID0gdGhpcy5zdGF0ZS51cmw7XG4gICAgICAgICAgICB2YXIgc2V0QXR0cmlidXRlcyA9IHRoaXMucHJvcHMuc2V0QXR0cmlidXRlcztcblxuICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IHVybDogdXJsIH0pO1xuICAgICAgICAgICAgaWYgKHVybCAmJiAodXJsLm1hdGNoKC9eaHR0cFtzXT86XFwvXFwvKD86d3d3XFwuKT93aXN0aWFcXC5jb21cXC9tZWRpYXMvaSkgfHwgdXJsLm1hdGNoKC9eaHR0cFtzXT86XFwvXFwvKD86d3d3XFwuKT9mYXN0XFwvLndpc3RpYVxcLmNvbVxcL2VtYmVkXFwvbWVkaWFzL2kuanNvbnApKSkge1xuICAgICAgICAgICAgICAgIHZhciBtZWRpYUlkTWF0Y2hlcyA9IHVybC5tYXRjaCgvbWVkaWFzKC4qKS8pO1xuICAgICAgICAgICAgICAgIHZhciBtZWRpYUlkID0gbWVkaWFJZE1hdGNoZXNbMV07XG5cbiAgICAgICAgICAgICAgICB2YXIgaWZyYW1lU3JjID0gJy8vZmFzdC53aXN0aWEubmV0L2VtYmVkL2lmcmFtZS8nICsgbWVkaWFJZDtcblxuICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBlZGl0aW5nVVJMOiBmYWxzZSwgY2Fubm90RW1iZWQ6IGZhbHNlIH0pO1xuICAgICAgICAgICAgICAgIHNldEF0dHJpYnV0ZXMoeyBpZnJhbWVTcmM6IGlmcmFtZVNyYyB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgIC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1xuICAgICAgICAgICAgICAgIHJldHVybiB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRQbGFjZWhvbGRlciwge1xuICAgICAgICAgICAgICAgICAgICBsYWJlbDogbGFiZWwsXG4gICAgICAgICAgICAgICAgICAgIG9uU3VibWl0OiB0aGlzLnNldFVybCxcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHVybCxcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IGNhbm5vdEVtYmVkLFxuICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZTogZnVuY3Rpb24gb25DaGFuZ2UoZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdGhpczIuc2V0U3RhdGUoeyB1cmw6IGV2ZW50LnRhcmdldC52YWx1ZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICBGcmFnbWVudCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgZmV0Y2hpbmcgPyB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRMb2FkaW5nLCBudWxsKSA6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChJZnJhbWUsIHsgc3JjOiBpZnJhbWVTcmMsIG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgZnJhbWVib3JkZXI6ICcwJywgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICczMzAnLCBhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgbW96YWxsb3dmdWxsc2NyZWVuOiAndHJ1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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///38\n");
|
492 |
+
|
493 |
/***/ })
|
494 |
/******/ ]);
|
Gutenberg/dist/blocks.editor.build.css
CHANGED
@@ -10,13 +10,6 @@
|
|
10 |
* CSS for just Backend enqueued after style.scss
|
11 |
* which makes it higher in priority.
|
12 |
*/
|
13 |
-
.wp-block-cgb-block-embedpress-blocks {
|
14 |
-
background: #bada55;
|
15 |
-
border: 0.2rem solid #292929;
|
16 |
-
color: #292929;
|
17 |
-
margin: 0 auto;
|
18 |
-
max-width: 740px;
|
19 |
-
padding: 2rem; }
|
20 |
/**
|
21 |
* #.# Common SCSS
|
22 |
*
|
@@ -29,13 +22,6 @@
|
|
29 |
* CSS for just Backend enqueued after style.scss
|
30 |
* which makes it higher in priority.
|
31 |
*/
|
32 |
-
.wp-block-cgb-block-embedpress-blocks {
|
33 |
-
background: #bada55;
|
34 |
-
border: 0.2rem solid #292929;
|
35 |
-
color: #292929;
|
36 |
-
margin: 0 auto;
|
37 |
-
max-width: 740px;
|
38 |
-
padding: 2rem; }
|
39 |
/**
|
40 |
* #.# Common SCSS
|
41 |
*
|
@@ -48,13 +34,6 @@
|
|
48 |
* CSS for just Backend enqueued after style.scss
|
49 |
* which makes it higher in priority.
|
50 |
*/
|
51 |
-
.wp-block-cgb-block-embedpress-blocks {
|
52 |
-
background: #bada55;
|
53 |
-
border: 0.2rem solid #292929;
|
54 |
-
color: #292929;
|
55 |
-
margin: 0 auto;
|
56 |
-
max-width: 740px;
|
57 |
-
padding: 2rem; }
|
58 |
/**
|
59 |
* #.# Common SCSS
|
60 |
*
|
@@ -67,13 +46,6 @@
|
|
67 |
* CSS for just Backend enqueued after style.scss
|
68 |
* which makes it higher in priority.
|
69 |
*/
|
70 |
-
.wp-block-cgb-block-embedpress-blocks {
|
71 |
-
background: #bada55;
|
72 |
-
border: 0.2rem solid #292929;
|
73 |
-
color: #292929;
|
74 |
-
margin: 0 auto;
|
75 |
-
max-width: 740px;
|
76 |
-
padding: 2rem; }
|
77 |
/**
|
78 |
* #.# Common SCSS
|
79 |
*
|
@@ -86,13 +58,6 @@
|
|
86 |
* CSS for just Backend enqueued after style.scss
|
87 |
* which makes it higher in priority.
|
88 |
*/
|
89 |
-
.wp-block-cgb-block-embedpress-blocks {
|
90 |
-
background: #bada55;
|
91 |
-
border: 0.2rem solid #292929;
|
92 |
-
color: #292929;
|
93 |
-
margin: 0 auto;
|
94 |
-
max-width: 740px;
|
95 |
-
padding: 2rem; }
|
96 |
/**
|
97 |
* #.# Common SCSS
|
98 |
*
|
@@ -105,10 +70,27 @@
|
|
105 |
* CSS for just Backend enqueued after style.scss
|
106 |
* which makes it higher in priority.
|
107 |
*/
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
* CSS for just Backend enqueued after style.scss
|
11 |
* which makes it higher in priority.
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
/**
|
14 |
* #.# Common SCSS
|
15 |
*
|
22 |
* CSS for just Backend enqueued after style.scss
|
23 |
* which makes it higher in priority.
|
24 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
/**
|
26 |
* #.# Common SCSS
|
27 |
*
|
34 |
* CSS for just Backend enqueued after style.scss
|
35 |
* which makes it higher in priority.
|
36 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* #.# Common SCSS
|
39 |
*
|
46 |
* CSS for just Backend enqueued after style.scss
|
47 |
* which makes it higher in priority.
|
48 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
/**
|
50 |
* #.# Common SCSS
|
51 |
*
|
58 |
* CSS for just Backend enqueued after style.scss
|
59 |
* which makes it higher in priority.
|
60 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
/**
|
62 |
* #.# Common SCSS
|
63 |
*
|
70 |
* CSS for just Backend enqueued after style.scss
|
71 |
* which makes it higher in priority.
|
72 |
*/
|
73 |
+
/**
|
74 |
+
* #.# Common SCSS
|
75 |
+
*
|
76 |
+
* Can include things like variables and mixins
|
77 |
+
* that are used across the project.
|
78 |
+
*/
|
79 |
+
/**
|
80 |
+
* #.# Editor Styles
|
81 |
+
*
|
82 |
+
* CSS for just Backend enqueued after style.scss
|
83 |
+
* which makes it higher in priority.
|
84 |
+
*/
|
85 |
+
/**
|
86 |
+
* #.# Common SCSS
|
87 |
+
*
|
88 |
+
* Can include things like variables and mixins
|
89 |
+
* that are used across the project.
|
90 |
+
*/
|
91 |
+
/**
|
92 |
+
* #.# Editor Styles
|
93 |
+
*
|
94 |
+
* CSS for just Backend enqueued after style.scss
|
95 |
+
* which makes it higher in priority.
|
96 |
+
*/
|
Gutenberg/dist/blocks.style.build.css
CHANGED
@@ -9,13 +9,6 @@
|
|
9 |
*
|
10 |
* CSS for both Frontend+Backend.
|
11 |
*/
|
12 |
-
.wp-block-cgb-block-embedpress-blocks {
|
13 |
-
background: orangered;
|
14 |
-
border: 0.2rem solid #292929;
|
15 |
-
color: #292929;
|
16 |
-
margin: 0 auto;
|
17 |
-
max-width: 740px;
|
18 |
-
padding: 2rem; }
|
19 |
/**
|
20 |
* #.# Common SCSS
|
21 |
*
|
@@ -27,13 +20,6 @@
|
|
27 |
*
|
28 |
* CSS for both Frontend+Backend.
|
29 |
*/
|
30 |
-
.wp-block-cgb-block-embedpress-blocks {
|
31 |
-
background: orangered;
|
32 |
-
border: 0.2rem solid #292929;
|
33 |
-
color: #292929;
|
34 |
-
margin: 0 auto;
|
35 |
-
max-width: 740px;
|
36 |
-
padding: 2rem; }
|
37 |
/**
|
38 |
* #.# Common SCSS
|
39 |
*
|
@@ -45,13 +31,6 @@
|
|
45 |
*
|
46 |
* CSS for both Frontend+Backend.
|
47 |
*/
|
48 |
-
.wp-block-cgb-block-embedpress-blocks {
|
49 |
-
background: orangered;
|
50 |
-
border: 0.2rem solid #292929;
|
51 |
-
color: #292929;
|
52 |
-
margin: 0 auto;
|
53 |
-
max-width: 740px;
|
54 |
-
padding: 2rem; }
|
55 |
/**
|
56 |
* #.# Common SCSS
|
57 |
*
|
@@ -63,13 +42,6 @@
|
|
63 |
*
|
64 |
* CSS for both Frontend+Backend.
|
65 |
*/
|
66 |
-
.wp-block-cgb-block-embedpress-blocks {
|
67 |
-
background: orangered;
|
68 |
-
border: 0.2rem solid #292929;
|
69 |
-
color: #292929;
|
70 |
-
margin: 0 auto;
|
71 |
-
max-width: 740px;
|
72 |
-
padding: 2rem; }
|
73 |
/**
|
74 |
* #.# Common SCSS
|
75 |
*
|
@@ -81,13 +53,6 @@
|
|
81 |
*
|
82 |
* CSS for both Frontend+Backend.
|
83 |
*/
|
84 |
-
.wp-block-cgb-block-embedpress-blocks {
|
85 |
-
background: orangered;
|
86 |
-
border: 0.2rem solid #292929;
|
87 |
-
color: #292929;
|
88 |
-
margin: 0 auto;
|
89 |
-
max-width: 740px;
|
90 |
-
padding: 2rem; }
|
91 |
/**
|
92 |
* #.# Common SCSS
|
93 |
*
|
@@ -99,10 +64,25 @@
|
|
99 |
*
|
100 |
* CSS for both Frontend+Backend.
|
101 |
*/
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
*
|
10 |
* CSS for both Frontend+Backend.
|
11 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
/**
|
13 |
* #.# Common SCSS
|
14 |
*
|
20 |
*
|
21 |
* CSS for both Frontend+Backend.
|
22 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
/**
|
24 |
* #.# Common SCSS
|
25 |
*
|
31 |
*
|
32 |
* CSS for both Frontend+Backend.
|
33 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
/**
|
35 |
* #.# Common SCSS
|
36 |
*
|
42 |
*
|
43 |
* CSS for both Frontend+Backend.
|
44 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
/**
|
46 |
* #.# Common SCSS
|
47 |
*
|
53 |
*
|
54 |
* CSS for both Frontend+Backend.
|
55 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
/**
|
57 |
* #.# Common SCSS
|
58 |
*
|
64 |
*
|
65 |
* CSS for both Frontend+Backend.
|
66 |
*/
|
67 |
+
/**
|
68 |
+
* #.# Common SCSS
|
69 |
+
*
|
70 |
+
* Can include things like variables and mixins
|
71 |
+
* that are used across the project.
|
72 |
+
*/
|
73 |
+
/**
|
74 |
+
* #.# Styles
|
75 |
+
*
|
76 |
+
* CSS for both Frontend+Backend.
|
77 |
+
*/
|
78 |
+
/**
|
79 |
+
* #.# Common SCSS
|
80 |
+
*
|
81 |
+
* Can include things like variables and mixins
|
82 |
+
* that are used across the project.
|
83 |
+
*/
|
84 |
+
/**
|
85 |
+
* #.# Styles
|
86 |
+
*
|
87 |
+
* CSS for both Frontend+Backend.
|
88 |
+
*/
|
Gutenberg/src/blocks.js
CHANGED
@@ -15,3 +15,5 @@ import './google-sheets/index.js';
|
|
15 |
import './google-forms/index.js';
|
16 |
import './google-drawings/index.js';
|
17 |
import './google-maps/index.js';
|
|
|
|
15 |
import './google-forms/index.js';
|
16 |
import './google-drawings/index.js';
|
17 |
import './google-maps/index.js';
|
18 |
+
import './twitch/index.js';
|
19 |
+
import './wistia/index.js';
|
Gutenberg/src/common/core-embeds.js
CHANGED
File without changes
|
Gutenberg/src/common/embed-controls.js
CHANGED
File without changes
|
Gutenberg/src/common/embed-loading.js
CHANGED
File without changes
|
Gutenberg/src/common/embed-placeholder.js
CHANGED
File without changes
|
Gutenberg/src/common/icons.js
CHANGED
@@ -109,4 +109,30 @@ export const googleMapsIcon=
|
|
109 |
<Path style={{ fill: '#752622' }} d="M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "/>
|
110 |
<Path style={{ fill: '#FFFFFF' }} d="M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "/>
|
111 |
</G>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</SVG>
|
109 |
<Path style={{ fill: '#752622' }} d="M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "/>
|
110 |
<Path style={{ fill: '#FFFFFF' }} d="M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "/>
|
111 |
</G>
|
112 |
+
</SVG>
|
113 |
+
|
114 |
+
export const twitchIcon =
|
115 |
+
<SVG
|
116 |
+
xmlns="http://www.w3.org/1999/xlink"
|
117 |
+
viewBox="0 0 48 48"
|
118 |
+
version="1.1"
|
119 |
+
>
|
120 |
+
<G>
|
121 |
+
<Path style={{ fill: '#FFFFFF' }} d="M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "/>
|
122 |
+
<Path style={{ fill: '#8E24AA' }} d="M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "/>
|
123 |
+
<Path style={{ fill: '#8E24AA' }} d="M 32 25 L 27 25 L 27 15 L 32 15 Z "/>
|
124 |
+
<Path style={{ fill: '#8E24AA' }} d="M 24 25 L 19 25 L 19 15 L 24 15 Z "/>
|
125 |
+
</G>
|
126 |
+
</SVG>
|
127 |
+
|
128 |
+
export const wistiaIcon =
|
129 |
+
<SVG
|
130 |
+
xmlns="http://www.w3.org/1999/xlink"
|
131 |
+
viewBox="0 0 769 598"
|
132 |
+
version="1.1"
|
133 |
+
>
|
134 |
+
<G>
|
135 |
+
<Path style={{ fill: '#148ee0' }} d="M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z" />
|
136 |
+
<Path style={{ fill: '#54bbff' }} d="M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z" />
|
137 |
+
</G>
|
138 |
</SVG>
|
Gutenberg/src/google-docs/editor.scss
CHANGED
@@ -3,13 +3,4 @@
|
|
3 |
*
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
-
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
3 |
*
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-docs/style.scss
CHANGED
@@ -3,12 +3,3 @@
|
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
-
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-drawings/editor.scss
CHANGED
@@ -4,12 +4,3 @@
|
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-drawings/style.scss
CHANGED
@@ -3,12 +3,3 @@
|
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
-
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-forms/editor.scss
CHANGED
@@ -4,12 +4,3 @@
|
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-forms/style.scss
CHANGED
@@ -3,12 +3,3 @@
|
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
-
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-maps/editor.scss
CHANGED
@@ -4,12 +4,3 @@
|
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-maps/style.scss
CHANGED
@@ -3,12 +3,3 @@
|
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
-
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-sheets/editor.scss
CHANGED
@@ -4,12 +4,3 @@
|
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-sheets/style.scss
CHANGED
@@ -3,12 +3,3 @@
|
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
-
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
3 |
*
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-slides/editor.scss
CHANGED
@@ -4,12 +4,3 @@
|
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
7 |
-
|
8 |
-
.wp-block-cgb-block-embedpress-blocks {
|
9 |
-
background: $green;
|
10 |
-
border: 0.2rem solid $black;
|
11 |
-
color: $black;
|
12 |
-
margin: 0 auto;
|
13 |
-
max-width: 740px;
|
14 |
-
padding: 2rem;
|
15 |
-
}
|
4 |
* CSS for just Backend enqueued after style.scss
|
5 |
* which makes it higher in priority.
|
6 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/google-slides/style.scss
CHANGED
@@ -4,11 +4,3 @@
|
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
|
7 |
-
.wp-block-cgb-block-embedpress-blocks {
|
8 |
-
background: $red;
|
9 |
-
border: 0.2rem solid $black;
|
10 |
-
color: $black;
|
11 |
-
margin: 0 auto;
|
12 |
-
max-width: 740px;
|
13 |
-
padding: 2rem;
|
14 |
-
}
|
4 |
* CSS for both Frontend+Backend.
|
5 |
*/
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/src/twitch/edit.js
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Internal dependencies
|
3 |
+
*/
|
4 |
+
import EmbedControls from '../common/embed-controls';
|
5 |
+
import EmbedLoading from '../common/embed-loading';
|
6 |
+
import EmbedPlaceholder from '../common/embed-placeholder';
|
7 |
+
import Iframe from '../common/Iframe';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* WordPress dependencies
|
11 |
+
*/
|
12 |
+
const { __ } = wp.i18n;
|
13 |
+
const { Component, Fragment } = wp.element;
|
14 |
+
|
15 |
+
class TwitchEdit extends Component {
|
16 |
+
constructor() {
|
17 |
+
super( ...arguments );
|
18 |
+
this.switchBackToURLInput = this.switchBackToURLInput.bind( this );
|
19 |
+
this.setUrl = this.setUrl.bind( this );
|
20 |
+
this.onLoad = this.onLoad.bind( this );
|
21 |
+
this.state = {
|
22 |
+
editingURL: false,
|
23 |
+
url: this.props.attributes.url,
|
24 |
+
fetching: true,
|
25 |
+
cannotEmbed: false
|
26 |
+
};
|
27 |
+
}
|
28 |
+
|
29 |
+
onLoad() {
|
30 |
+
this.setState({
|
31 |
+
fetching: false
|
32 |
+
})
|
33 |
+
}
|
34 |
+
decodeHTMLEntities (str) {
|
35 |
+
if(str && typeof str === 'string') {
|
36 |
+
// strip script/html tags
|
37 |
+
str = str.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi, '');
|
38 |
+
str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, '');
|
39 |
+
|
40 |
+
}
|
41 |
+
return str;
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
setUrl( event ) {
|
46 |
+
if ( event ) {
|
47 |
+
event.preventDefault();
|
48 |
+
}
|
49 |
+
const { url } = this.state;
|
50 |
+
const { setAttributes } = this.props;
|
51 |
+
setAttributes( { url } );
|
52 |
+
var regEx= /http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/
|
53 |
+
if(url && url.match( regEx )){
|
54 |
+
var iframeSrc = this.decodeHTMLEntities(url);
|
55 |
+
var match = regEx.exec(iframeSrc);
|
56 |
+
var channelName = match[1];
|
57 |
+
console.log(channelName);
|
58 |
+
var type = "channel";
|
59 |
+
var attrs;
|
60 |
+
if(url.indexOf('clips.twitch.tv') > -1 ) {
|
61 |
+
type = 'clip';
|
62 |
+
}
|
63 |
+
else if(url.indexOf('/videos/') > -1) {
|
64 |
+
type= 'video';
|
65 |
+
}
|
66 |
+
else if(url.indexOf('#/chat$#') > -1) {
|
67 |
+
type= 'chat';
|
68 |
+
}
|
69 |
+
console.log(type)
|
70 |
+
switch(type) {
|
71 |
+
case 'channel':
|
72 |
+
iframeSrc= 'https://player.twitch.tv/?channel=' + channelName;
|
73 |
+
attrs = {
|
74 |
+
scrolling: "no",
|
75 |
+
frameborder: "0",
|
76 |
+
allowfullscreen: "true"
|
77 |
+
};
|
78 |
+
break;
|
79 |
+
|
80 |
+
case 'clip':
|
81 |
+
iframeSrc = 'https://clips.twitch.tv/embed?clip=' + channelName + '&autoplay=false';
|
82 |
+
attrs = {
|
83 |
+
scrolling: "no",
|
84 |
+
frameborder: "0",
|
85 |
+
allowfullscreen: "true"
|
86 |
+
};
|
87 |
+
break;
|
88 |
+
|
89 |
+
case 'video':
|
90 |
+
channelName = match[2];
|
91 |
+
iframeSrc = 'https://player.twitch.tv/?video=' + channelName;
|
92 |
+
attrs = {
|
93 |
+
scrolling: "no",
|
94 |
+
frameborder: "0",
|
95 |
+
allowfullscreen: "true"
|
96 |
+
};
|
97 |
+
break;
|
98 |
+
|
99 |
+
case 'chat':
|
100 |
+
iframeSrc = 'http://www.twitch.tv/embed/' + channelName + '/chat';
|
101 |
+
attrs = {
|
102 |
+
scrolling: "yes",
|
103 |
+
frameborder: "0",
|
104 |
+
allowfullscreen: "true",
|
105 |
+
id: "'" + channelName + "'"
|
106 |
+
|
107 |
+
}
|
108 |
+
break;
|
109 |
+
}
|
110 |
+
console.log(iframeSrc);
|
111 |
+
this.setState( { editingURL: false, cannotEmbed: false } );
|
112 |
+
setAttributes( {iframeSrc, attrs })
|
113 |
+
}
|
114 |
+
else {
|
115 |
+
this.setState({
|
116 |
+
cannotEmbed: true,
|
117 |
+
editingURL: true
|
118 |
+
})
|
119 |
+
}
|
120 |
+
}
|
121 |
+
|
122 |
+
switchBackToURLInput() {
|
123 |
+
this.setState( { editingURL: true } );
|
124 |
+
}
|
125 |
+
|
126 |
+
render() {
|
127 |
+
const { url, editingURL, fetching, cannotEmbed } = this.state;
|
128 |
+
const { iframeSrc, attrs } = this.props.attributes;
|
129 |
+
|
130 |
+
const label = __( 'Twitch URL');
|
131 |
+
// No preview, or we can't embed the current URL, or we've clicked the edit button.
|
132 |
+
if ( !iframeSrc || editingURL ) {
|
133 |
+
return (
|
134 |
+
<EmbedPlaceholder
|
135 |
+
label={ label }
|
136 |
+
onSubmit={ this.setUrl }
|
137 |
+
value={ url }
|
138 |
+
cannotEmbed={ cannotEmbed }
|
139 |
+
onChange={ ( event ) => this.setState( { url: event.target.value } ) }
|
140 |
+
/>
|
141 |
+
);
|
142 |
+
}
|
143 |
+
else {
|
144 |
+
return (
|
145 |
+
<Fragment>
|
146 |
+
{fetching ? <EmbedLoading /> : null}
|
147 |
+
<Iframe src={iframeSrc} { ...attrs } onLoad={this.onLoad} style={{ display: fetching ? 'none' : '' }} width="600" height="450" />
|
148 |
+
<EmbedControls
|
149 |
+
showEditButton={ iframeSrc && ! cannotEmbed }
|
150 |
+
switchBackToURLInput={ this.switchBackToURLInput }
|
151 |
+
/>
|
152 |
+
</Fragment>
|
153 |
+
|
154 |
+
)
|
155 |
+
}
|
156 |
+
}
|
157 |
+
};
|
158 |
+
export default TwitchEdit;
|
Gutenberg/src/twitch/editor.scss
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Editor Styles
|
3 |
+
*
|
4 |
+
* CSS for just Backend enqueued after style.scss
|
5 |
+
* which makes it higher in priority.
|
6 |
+
*/
|
Gutenberg/src/twitch/index.js
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* BLOCK: embedpress-blocks
|
3 |
+
*
|
4 |
+
* Registering a basic block with Gutenberg.
|
5 |
+
* Simple block, renders and saves the same content without any interactivity.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// Import CSS.
|
9 |
+
import './style.scss';
|
10 |
+
import './editor.scss';
|
11 |
+
import edit from './edit';
|
12 |
+
import { twitchIcon } from '../common/icons';
|
13 |
+
const { __ } = wp.i18n; // Import __() from wp.i18n
|
14 |
+
const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Register: aa Gutenberg Block.
|
18 |
+
*
|
19 |
+
* Registers a new block provided a unique name and an object defining its
|
20 |
+
* behavior. Once registered, the block is made editor as an option to any
|
21 |
+
* editor interface where blocks are implemented.
|
22 |
+
*
|
23 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/
|
24 |
+
* @param {string} name Block name.
|
25 |
+
* @param {Object} settings Block settings.
|
26 |
+
* @return {?WPBlock} The block, if it has been successfully
|
27 |
+
* registered; otherwise `undefined`.
|
28 |
+
*/
|
29 |
+
registerBlockType( 'embedpress/twitch-block', {
|
30 |
+
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
+
title: __( 'Twitch' ), // Block title.
|
32 |
+
icon: twitchIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
|
34 |
+
keywords: [
|
35 |
+
__( 'embedpress' ),
|
36 |
+
__( 'twitch' ),
|
37 |
+
],
|
38 |
+
attributes: {
|
39 |
+
url: {
|
40 |
+
type: 'string',
|
41 |
+
default: ''
|
42 |
+
},
|
43 |
+
iframeSrc: {
|
44 |
+
type: 'string',
|
45 |
+
default: ''
|
46 |
+
},
|
47 |
+
attrs: {
|
48 |
+
type: 'string',
|
49 |
+
default: ''
|
50 |
+
}
|
51 |
+
},
|
52 |
+
/**
|
53 |
+
* The edit function describes the structure of your block in the context of the editor.
|
54 |
+
* This represents what the editor will render when the block is used.
|
55 |
+
*
|
56 |
+
* The "edit" property must be a valid function.
|
57 |
+
*
|
58 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
59 |
+
*/
|
60 |
+
edit,
|
61 |
+
|
62 |
+
/**
|
63 |
+
* The save function defines the way in which the different attributes should be combined
|
64 |
+
* into the final markup, which is then serialized by Gutenberg into post_content.
|
65 |
+
*
|
66 |
+
* The "save" property must be specified and must be a valid function.
|
67 |
+
*
|
68 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
69 |
+
*/
|
70 |
+
save: function( props ) {
|
71 |
+
const { iframeSrc, attrs } = props.attributes
|
72 |
+
return (
|
73 |
+
<div class="ose-twitch-presentation">
|
74 |
+
<iframe src={iframeSrc} { ...attrs } frameborder="0" width="600" height="450"></iframe>
|
75 |
+
</div>
|
76 |
+
);
|
77 |
+
},
|
78 |
+
} );
|
Gutenberg/src/twitch/style.scss
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Styles
|
3 |
+
*
|
4 |
+
* CSS for both Frontend+Backend.
|
5 |
+
*/
|
Gutenberg/src/wistia/edit.js
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Internal dependencies
|
3 |
+
*/
|
4 |
+
import EmbedControls from '../common/embed-controls';
|
5 |
+
import EmbedLoading from '../common/embed-loading';
|
6 |
+
import EmbedPlaceholder from '../common/embed-placeholder';
|
7 |
+
import Iframe from '../common/Iframe';
|
8 |
+
|
9 |
+
/**
|
10 |
+
* WordPress dependencies
|
11 |
+
*/
|
12 |
+
const { __ } = wp.i18n;
|
13 |
+
const { Component, Fragment } = wp.element;
|
14 |
+
|
15 |
+
class WistiaEdit extends Component {
|
16 |
+
constructor() {
|
17 |
+
super( ...arguments );
|
18 |
+
this.switchBackToURLInput = this.switchBackToURLInput.bind( this );
|
19 |
+
this.setUrl = this.setUrl.bind( this );
|
20 |
+
this.onLoad = this.onLoad.bind( this );
|
21 |
+
this.state = {
|
22 |
+
editingURL: false,
|
23 |
+
url: this.props.attributes.url,
|
24 |
+
fetching: true,
|
25 |
+
cannotEmbed: false
|
26 |
+
};
|
27 |
+
}
|
28 |
+
|
29 |
+
onLoad() {
|
30 |
+
this.setState({
|
31 |
+
fetching: false
|
32 |
+
})
|
33 |
+
}
|
34 |
+
decodeHTMLEntities (str) {
|
35 |
+
if(str && typeof str === 'string') {
|
36 |
+
// strip script/html tags
|
37 |
+
str = str.replace(/<script[^>]*>([\S\s]*?)<\/script>/gmi, '');
|
38 |
+
str = str.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, '');
|
39 |
+
|
40 |
+
}
|
41 |
+
return str;
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
setUrl( event ) {
|
46 |
+
if ( event ) {
|
47 |
+
event.preventDefault();
|
48 |
+
}
|
49 |
+
const { url } = this.state;
|
50 |
+
const { setAttributes } = this.props;
|
51 |
+
setAttributes( { url } );
|
52 |
+
if(url && ( url.match( /^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i ) || url.match( /^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp) ) ) {
|
53 |
+
let mediaIdMatches = url.match(/medias(.*)/);
|
54 |
+
let mediaId = mediaIdMatches[1];
|
55 |
+
|
56 |
+
let iframeSrc = '//fast.wistia.net/embed/iframe/' + mediaId;
|
57 |
+
|
58 |
+
this.setState( { editingURL: false, cannotEmbed: false } );
|
59 |
+
setAttributes( {iframeSrc: iframeSrc });
|
60 |
+
}
|
61 |
+
else {
|
62 |
+
this.setState({
|
63 |
+
cannotEmbed: true,
|
64 |
+
editingURL: true
|
65 |
+
})
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
switchBackToURLInput() {
|
70 |
+
this.setState( { editingURL: true } );
|
71 |
+
}
|
72 |
+
|
73 |
+
render() {
|
74 |
+
const { url, editingURL, fetching, cannotEmbed } = this.state;
|
75 |
+
const { iframeSrc } = this.props.attributes;
|
76 |
+
|
77 |
+
const label = __( 'Wistia URL');
|
78 |
+
|
79 |
+
// No preview, or we can't embed the current URL, or we've clicked the edit button.
|
80 |
+
if ( !iframeSrc || editingURL ) {
|
81 |
+
return (
|
82 |
+
<EmbedPlaceholder
|
83 |
+
label={ label }
|
84 |
+
onSubmit={ this.setUrl }
|
85 |
+
value={ url }
|
86 |
+
cannotEmbed={ cannotEmbed }
|
87 |
+
onChange={ ( event ) => this.setState( { url: event.target.value } ) }
|
88 |
+
/>
|
89 |
+
);
|
90 |
+
}
|
91 |
+
else {
|
92 |
+
return (
|
93 |
+
<Fragment>
|
94 |
+
{fetching ? <EmbedLoading /> : null}
|
95 |
+
<Iframe src={iframeSrc} onLoad={this.onLoad} style={{ display: fetching ? 'none' : '' }} frameborder="0" width="600" height="330" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" />
|
96 |
+
<EmbedControls
|
97 |
+
showEditButton={ iframeSrc && ! cannotEmbed }
|
98 |
+
switchBackToURLInput={ this.switchBackToURLInput }
|
99 |
+
/>
|
100 |
+
</Fragment>
|
101 |
+
);
|
102 |
+
}
|
103 |
+
}
|
104 |
+
};
|
105 |
+
export default WistiaEdit;
|
Gutenberg/src/wistia/editor.scss
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Editor Styles
|
3 |
+
*
|
4 |
+
* CSS for just Backend enqueued after style.scss
|
5 |
+
* which makes it higher in priority.
|
6 |
+
*/
|
7 |
+
|
Gutenberg/src/wistia/index.js
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* BLOCK: embedpress-blocks
|
3 |
+
*
|
4 |
+
* Registering a basic block with Gutenberg.
|
5 |
+
* Simple block, renders and saves the same content without any interactivity.
|
6 |
+
*/
|
7 |
+
|
8 |
+
// Import CSS.
|
9 |
+
import './style.scss';
|
10 |
+
import './editor.scss';
|
11 |
+
import edit from './edit';
|
12 |
+
import { wistiaIcon } from '../common/icons';
|
13 |
+
const { __ } = wp.i18n; // Import __() from wp.i18n
|
14 |
+
const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Register: aa Gutenberg Block.
|
18 |
+
*
|
19 |
+
* Registers a new block provided a unique name and an object defining its
|
20 |
+
* behavior. Once registered, the block is made editor as an option to any
|
21 |
+
* editor interface where blocks are implemented.
|
22 |
+
*
|
23 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/
|
24 |
+
* @param {string} name Block name.
|
25 |
+
* @param {Object} settings Block settings.
|
26 |
+
* @return {?WPBlock} The block, if it has been successfully
|
27 |
+
* registered; otherwise `undefined`.
|
28 |
+
*/
|
29 |
+
registerBlockType( 'embedpress/wistia-block', {
|
30 |
+
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
+
title: __( 'Wistia' ), // Block title.
|
32 |
+
icon: wistiaIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
|
34 |
+
keywords: [
|
35 |
+
__( 'embedpress' ),
|
36 |
+
__( 'wistia' ),
|
37 |
+
],
|
38 |
+
attributes: {
|
39 |
+
url: {
|
40 |
+
type: 'string',
|
41 |
+
default: ''
|
42 |
+
},
|
43 |
+
iframeSrc: {
|
44 |
+
type: 'string',
|
45 |
+
default: ''
|
46 |
+
}
|
47 |
+
},
|
48 |
+
/**
|
49 |
+
* The edit function describes the structure of your block in the context of the editor.
|
50 |
+
* This represents what the editor will render when the block is used.
|
51 |
+
*
|
52 |
+
* The "edit" property must be a valid function.
|
53 |
+
*
|
54 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
55 |
+
*/
|
56 |
+
edit,
|
57 |
+
|
58 |
+
/**
|
59 |
+
* The save function defines the way in which the different attributes should be combined
|
60 |
+
* into the final markup, which is then serialized by Gutenberg into post_content.
|
61 |
+
*
|
62 |
+
* The "save" property must be specified and must be a valid function.
|
63 |
+
*
|
64 |
+
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
65 |
+
*/
|
66 |
+
save: function( props ) {
|
67 |
+
const { iframeSrc } = props.attributes
|
68 |
+
return (
|
69 |
+
<div class="ose-wistia">
|
70 |
+
<iframe src={ iframeSrc }
|
71 |
+
allowtransparency="true"
|
72 |
+
frameborder="0"
|
73 |
+
class="wistia_embed"
|
74 |
+
name="wistia_embed"
|
75 |
+
width="600" height="330"></iframe>
|
76 |
+
</div>
|
77 |
+
);
|
78 |
+
},
|
79 |
+
} );
|
Gutenberg/src/wistia/style.scss
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Styles
|
3 |
+
*
|
4 |
+
* CSS for both Frontend+Backend.
|
5 |
+
*/
|
6 |
+
|
assets/css/admin.css
CHANGED
File without changes
|
assets/css/embedpress.css
CHANGED
File without changes
|
assets/css/index.html
CHANGED
File without changes
|
assets/css/preview.css
CHANGED
File without changes
|
assets/css/vendor/bootstrap/bootstrap.css
CHANGED
File without changes
|
assets/css/vendor/bootstrap/bootstrap.css.map
CHANGED
File without changes
|
assets/css/vendor/bootstrap/bootstrap.min.css
CHANGED
File without changes
|
assets/css/vendor/bootstrap/index.html
CHANGED
File without changes
|
assets/css/vendor/index.html
CHANGED
File without changes
|
assets/fonts/embedpress.eot
CHANGED
File without changes
|
assets/fonts/embedpress.svg
CHANGED
File without changes
|
assets/fonts/embedpress.ttf
CHANGED
File without changes
|
assets/fonts/embedpress.woff
CHANGED
File without changes
|
assets/fonts/index.html
CHANGED
File without changes
|
assets/images/index.html
CHANGED
File without changes
|
assets/images/menu-icon.png
CHANGED
File without changes
|
assets/index.html
CHANGED
File without changes
|
assets/js/index.html
CHANGED
File without changes
|
assets/js/vendor/bootstrap/bootstrap.js
CHANGED
File without changes
|
assets/js/vendor/bootstrap/bootstrap.min.js
CHANGED
File without changes
|
assets/js/vendor/bootstrap/index.html
CHANGED
File without changes
|
assets/js/vendor/index.html
CHANGED
File without changes
|
embedpress.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Facebook, Google Maps, Google Docs, UStream! Just use the URL!
|
7 |
* Author:EmbedPress
|
8 |
* Author URI:http://embedpress.com
|
9 |
-
* Version: 2.3.
|
10 |
* Text Domain: embedpress
|
11 |
* Domain Path: /languages
|
12 |
*
|
6 |
* Facebook, Google Maps, Google Docs, UStream! Just use the URL!
|
7 |
* Author:EmbedPress
|
8 |
* Author URI:http://embedpress.com
|
9 |
+
* Version: 2.3.1
|
10 |
* Text Domain: embedpress
|
11 |
* Domain Path: /languages
|
12 |
*
|
includes.php
CHANGED
@@ -21,7 +21,7 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
|
|
21 |
}
|
22 |
|
23 |
if ( ! defined('EMBEDPRESS_VERSION')) {
|
24 |
-
define('EMBEDPRESS_VERSION', "2.
|
25 |
/**
|
26 |
* @deprecated 2.2.0
|
27 |
*/
|
@@ -81,4 +81,4 @@ if ( ! defined('EMBEDPRESS_IS_LOADED')) {
|
|
81 |
}
|
82 |
|
83 |
// Includes the Gutenberg blocks for EmbedPress
|
84 |
-
require_once __DIR__ . '/Gutenberg/plugin.php';
|
21 |
}
|
22 |
|
23 |
if ( ! defined('EMBEDPRESS_VERSION')) {
|
24 |
+
define('EMBEDPRESS_VERSION', "2.2.2");
|
25 |
/**
|
26 |
* @deprecated 2.2.0
|
27 |
*/
|
81 |
}
|
82 |
|
83 |
// Includes the Gutenberg blocks for EmbedPress
|
84 |
+
require_once __DIR__ . '/Gutenberg/plugin.php';
|
index.html
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
=== EmbedPress –
|
2 |
-
Contributors: EmbedPress, andergmartins, stevejburge, deenison
|
3 |
-
Author: EmbedPress
|
4 |
Author URI: https://embedpress.com
|
5 |
-
Tags:
|
6 |
Requires at least: 4.6
|
7 |
-
Tested up to: 5.1
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
EmbedPress provides embeds for major sites
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
EmbedPress
|
17 |
|
18 |
With EmbedPress, all you need is the URL. Find the URL for your video, image, audio file or map and simply cut-and-paste the URL into a WordPress post. EmbedPress automatically understands the URL and embeds your content. You can embed media from over 75 sites.
|
19 |
|
@@ -183,6 +183,9 @@ Not at all. You can set up everything your team needs without any coding knowled
|
|
183 |
|
184 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
185 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
|
|
|
|
186 |
= [2.3.0] - 2019-03-06 =
|
187 |
|
188 |
* Added blocks for Gutenberg for Google Docs, Google Slides, Google Sheets, Google Forms, Google Drawings and Google Maps;
|
1 |
+
=== EmbedPress – Embed Google Docs, Vimeo and Wistia videos, Giphy and Imgur photos, and more ===
|
2 |
+
Contributors: EmbedPress, andergmartins, stevejburge, pressshack, deenison
|
3 |
+
Author: EmbedPress, PressShack
|
4 |
Author URI: https://embedpress.com
|
5 |
+
Tags: YouTube, Google, Facebook, Wistia, Vimeo
|
6 |
Requires at least: 4.6
|
7 |
+
Tested up to: 5.2.1
|
8 |
+
Stable tag: 2.3.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
EmbedPress provides embeds for major sites, from YouTube and Twitch videos, to Google Maps and Docs, to Soundcloud and Spotify audio files.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
EmbedPress easily connects WordPress to all the web services you use.
|
17 |
|
18 |
With EmbedPress, all you need is the URL. Find the URL for your video, image, audio file or map and simply cut-and-paste the URL into a WordPress post. EmbedPress automatically understands the URL and embeds your content. You can embed media from over 75 sites.
|
19 |
|
183 |
|
184 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
185 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
186 |
+
= [2.3.1] - 2019-04-24 =
|
187 |
+
Added Wistia and Twitch blocks for Gutenberg
|
188 |
+
|
189 |
= [2.3.0] - 2019-03-06 =
|
190 |
|
191 |
* Added blocks for Gutenberg for Google Docs, Google Slides, Google Sheets, Google Forms, Google Drawings and Google Maps;
|
vendor/composer/ClassLoader.php
CHANGED
@@ -377,7 +377,7 @@ class ClassLoader
|
|
377 |
$subPath = $class;
|
378 |
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
379 |
$subPath = substr($subPath, 0, $lastPos);
|
380 |
-
$search = $subPath
|
381 |
if (isset($this->prefixDirsPsr4[$search])) {
|
382 |
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
383 |
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
377 |
$subPath = $class;
|
378 |
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
379 |
$subPath = substr($subPath, 0, $lastPos);
|
380 |
+
$search = $subPath.'\\';
|
381 |
if (isset($this->prefixDirsPsr4[$search])) {
|
382 |
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
383 |
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|