Changeset 3396492
- Timestamp:
- 11/16/2025 08:17:47 AM (4 months ago)
- Location:
- advanced-responsive-video-embedder
- Files:
-
- 2 deleted
- 26 edited
- 1 copied
-
tags/10.8.1 (copied) (copied from advanced-responsive-video-embedder/trunk)
-
tags/10.8.1/advanced-responsive-video-embedder.php (modified) (2 diffs)
-
tags/10.8.1/build/block/block.json (modified) (2 diffs)
-
tags/10.8.1/build/block/index.asset.php (modified) (1 diff)
-
tags/10.8.1/build/block/index.js (modified) (1 diff)
-
tags/10.8.1/changelog.md (modified) (1 diff)
-
tags/10.8.1/php/CLI.php (modified) (2 diffs)
-
tags/10.8.1/php/SettingsDefinitions.php (modified) (1 diff)
-
tags/10.8.1/readme.txt (modified) (2 diffs)
-
tags/10.8.1/src/block.tsx (deleted)
-
tags/10.8.1/src/block/block.json (modified) (1 diff)
-
tags/10.8.1/src/block/controls.tsx (modified) (4 diffs)
-
tags/10.8.1/src/block/edit.tsx (modified) (2 diffs)
-
tags/10.8.1/src/main.ts (modified) (1 diff)
-
tags/10.8.1/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/advanced-responsive-video-embedder.php (modified) (2 diffs)
-
trunk/build/block/block.json (modified) (2 diffs)
-
trunk/build/block/index.asset.php (modified) (1 diff)
-
trunk/build/block/index.js (modified) (1 diff)
-
trunk/changelog.md (modified) (1 diff)
-
trunk/php/CLI.php (modified) (2 diffs)
-
trunk/php/SettingsDefinitions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/block.tsx (deleted)
-
trunk/src/block/block.json (modified) (1 diff)
-
trunk/src/block/controls.tsx (modified) (4 diffs)
-
trunk/src/block/edit.tsx (modified) (2 diffs)
-
trunk/src/main.ts (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-responsive-video-embedder/tags/10.8.1/advanced-responsive-video-embedder.php
r3395838 r3396492 4 4 * Plugin URI: https://nextgenthemes.com/plugins/arve-pro/ 5 5 * Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine. 6 * Version: 10.8. 06 * Version: 10.8.1 7 7 * Requires PHP: 7.4 8 8 * Requires at least: 6.6 … … 23 23 namespace Nextgenthemes\ARVE; 24 24 25 const VERSION = '10.8. 0';25 const VERSION = '10.8.1'; 26 26 const PRO_VERSION_REQUIRED = '7.0.6'; 27 27 const PRIVACY_VERSION_REQUIRED = '1.1.5'; -
advanced-responsive-video-embedder/tags/10.8.1/build/block/block.json
r3395838 r3396492 14 14 "odysee" 15 15 ], 16 "version": "10.8. 0",16 "version": "10.8.1", 17 17 "textdomain": "advanced-responsive-video-embedder", 18 18 "supports": { … … 41 41 ], 42 42 "viewScript": [ 43 "arve", 44 "arve-pro", 45 "arve-sticky-videos", 46 "arve-random-video" 47 ], 48 "viewScriptModule": [ 43 49 "arve", 44 50 "arve-pro", -
advanced-responsive-video-embedder/tags/10.8.1/build/block/index.asset.php
r3395838 r3396492 1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => ' 6eb12d99e60354f7c3ad');1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => '7fa2d52c1920daf4f3f5'); -
advanced-responsive-video-embedder/tags/10.8.1/build/block/index.js
r3395838 r3396492 1 (()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"10.8.0","textdomain":"advanced-responsive-video-embedder","supports":{"align":["wide","full","left","right"],"className":true,"customClassName":true},"example":{"attributes":{"url":"https://www.youtube.com/watch?v=oe452WcY7fA","title":"Example ARVE Video"}},"editorScript":"file:./index.js","editorStyle":["file:./index.css","arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScript":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewS tyle":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"attributes":{"url":{"type":"string"},"thumbnail":{"type":"string"},"mode":{"type":"string"},"grow":{"type":"string"},"lazyload_style":{"type":"string"},"hover_effect":{"type":"string"},"hide_title":{"type":"string"},"play_icon_style":{"type":"string"},"fullscreen":{"type":"string"},"lightbox_maxwidth":{"type":"integer"},"lightbox_aspect_ratio":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"upload_date":{"type":"string"},"duration":{"type":"string"},"loop":{"type":"boolean"},"muted":{"type":"boolean"},"controls":{"type":"string"},"parameters":{"type":"string"},"controlslist":{"type":"string"},"autoplay":{"type":"string"},"disable_links":{"type":"string"},"credentialless":{"type":"boolean"},"invidious":{"type":"string"},"encrypted_media":{"type":"boolean"},"sticky":{"type":"string"},"sticky_on_mobile":{"type":"string"},"sticky_position":{"type":"string"},"volume":{"type":"integer"},"arve_link":{"type":"string"},"random_video_url":{"type":"string"},"random_video_urls":{"type":"string"},"align":{"type":"string"},"aspect_ratio":{"type":"string"},"thumbnail_url":{"type":"string"}}}'),r=window.wp.blockEditor,i=window.wp.serverSideRender;var n=e.n(i);function o(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=o(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}const a=function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=o(e))&&(i&&(i+=" "),i+=t);return i},s=window.wp.i18n,l=window.wp.components,d=window.ReactJSXRuntime,c=({className:e,sKey:t,val:i,url:n,help:o,setAttributes:c})=>{const p=(0,d.jsx)("p",{children:(0,s.__)("To edit the featured image, you need permission to upload media.")}),u=a("editor-post-featured-image__container",e),h=e=>{c({[t]:e.id.toString(),[`${t}_url`]:e.url||""})};return(0,d.jsxs)(l.BaseControl,{className:"editor-post-featured-image",help:o,children:[(0,d.jsx)(r.MediaUploadCheck,{fallback:p,children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:h,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(e=>(0,d.jsxs)("div",{className:u,children:[(0,d.jsx)(l.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":i?(0,s.__)("Edit or update the image"):void 0,"aria-describedby":i?`editor-post-featured-image-${i}-describedby`:"",children:i&&n?(0,d.jsx)("div",{style:{width:"100%",overflow:"hidden"},children:(0,d.jsx)("img",{src:n,alt:"ARVE Thumbnail",style:{width:"100%",objectFit:"cover",aspectRatio:"16/9"}})}):(0,d.jsx)("span",{children:(0,s.__)("Set Thumbnail")})}),(0,d.jsx)(l.DropZone,{})]}))(e),value:i})}),!!i&&!!n&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:h,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,d.jsx)(l.Button,{onClick:e,variant:"secondary",children:(0,s.__)("Replace Thumbnail")})})},`${t}-MediaUploadCheck-2`),!!i&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(l.Button,{onClick:()=>{c({[t]:"",[`${t}_url`]:""})},isDestructive:!0,children:(0,s.__)("Remove Thumbnail")})},`${t}-MediaUploadCheck-3`)]})},p=function({label:e,value:t,onChange:r,onAspectRatioChange:i,placeholder:n,help:o}){return(0,d.jsx)(l.TextControl,{label:e,value:t,onChange:e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector("iframe");if(t?.src){const e=t.getAttribute("src")||"";if(r(e),t.width&&t.height){const e=function(e,t){const r=e=>/^[1-9]\d*$/.test(e);if(!r(e)||!r(t))return;const i=parseInt(e,10),n=parseInt(t,10),o=(e,t)=>0===t?e:o(t,e%t),a=o(i,n);return`${i/a}:${n/a}`}(t.width,t.height);e&&"16:9"!==e&&i(e)}return}r(e)},placeholder:n,help:o,type:"text"})},{settingPageUrl:u,options:h,settings:v,gutenbergActive:m}=window.ArveBlockJsBefore,{gutenberg_help:g}=h;function b(e){if(!g||!e)return;if(!e.match(/<a/i))return e;const t=(new DOMParser).parseFromString(e,"text/html"),r=[],i=e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent;null!=t&&r.push(t)}else if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("A"===t.tagName){const e=t,i=e.textContent||"";return void r.push((0,d.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:i}))}Array.from(t.childNodes).forEach(i)}};return i(t.body),(0,d.jsx)(d.Fragment,{children:r})}function _({attributes:e,setAttributes:t}){const r=[],i={};Object.values(v).forEach(e=>{i[e.category]=[]}),Object.entries(v).forEach(([r,n])=>{const o=e[r],a=e[`${r}_url`]||"",u=n.category||"no-category";var h;if(!function(e,t){if("align"===e)return!0;const r=v[e];return!!r?.depends?.length&&!r.depends.some(e=>{const[r,i]=Object.entries(e)[0]||[];return void 0!==r&&t[r]===i})}(r,e))if(function(e,t){const r=Object.keys(e);return r.length===t.length&&t.every(e=>r.includes(e))}(n.options||{},["","true","false"]))i[u].push((0,d.jsxs)(l.__experimentalToggleGroupControl,{label:n.label,value:o||"",isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,onChange:e=>t({[r]:e}),help:b(n.description),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"",label:(0,s.__)("Default","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"true",label:(0,s.__)("True","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"false",label:(0,s.__)("False","advanced-responsive-video-embedder")})]}));else if("url"===r)i[u].push((0,d.jsx)(p,{label:n.label,value:o||"",onChange:e=>t({[r]:e}),onAspectRatioChange:e=>t({aspect_ratio:e}),placeholder:n.placeholder,help:b(n.description)},r));else if("image_upload"===n.ui)i[u].push((0,d.jsx)(c,{sKey:r,className:`arve-ctl-${n.tab}`,val:o||void 0,url:a,help:b(n.description),setAttributes:t},r));else if("select"===n.ui_element){const e=(h=n.options,Object.entries(h).map(([e,t])=>({label:t,value:e})));i[u].push((0,d.jsx)(l.SelectControl,{className:`arve-ctl-${n.tab}`,label:n.label,value:o,options:e,onChange:e=>t({[r]:e}),help:b(n.description)},r))}else"checkbox"===n.ui_element_type?i[u].push((0,d.jsx)(l.ToggleControl,{className:`arve-ctl-${n.tab}`,label:n.label,checked:Boolean(o),onChange:e=>t({[r]:e}),help:b(n.description)},r)):i[u].push((0,d.jsx)(l.TextControl,{className:`arve-ctl-${n.tab}`,label:n.label,type:n.ui_element_type,value:o||"",placeholder:n.placeholder,onChange:e=>t({[r]:e}),help:b(n.description)},r))}),(g||m)&&i.main.push((0,d.jsx)(l.BaseControl,{help:(0,d.jsxs)(d.Fragment,{children:[g&&(0,d.jsxs)(d.Fragment,{children:[(0,s.__)("Remember changing the defaults is possible on the","advanced-responsive-video-embedder")," ",(0,d.jsx)("a",{href:u,target:"_blank",rel:"noreferrer",children:(0,s.__)("Settings page","advanced-responsive-video-embedder")}),". ",(0,s.__)("You can also disable the extensive help texts there to clean up this UI.","advanced-responsive-video-embedder")]}),m&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,s.__)("Error 153 in YouTube embeds, is a known issue with the Gutenberg plugin active and effects only the editor and normal mode. Your Videos will work fine on the front-end. Lazyload is not effected.","advanced-responsive-video-embedder")]})]}),children:(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,s.__)("Info","advanced-responsive-video-embedder")})},"info-panel"));const n={main:(0,s.__)("Main","advanced-responsive-video-embedder"),lazyloadAndLightbox:(0,s.__)("Lazyload & Lightbox","advanced-responsive-video-embedder"),lightbox:(0,s.__)("Lightbox","advanced-responsive-video-embedder"),data:(0,s.__)("Data","advanced-responsive-video-embedder"),stickyVideos:(0,s.__)("Sticky Videos","advanced-responsive-video-embedder"),functional:(0,s.__)("Functional","advanced-responsive-video-embedder"),privacy:(0,s.__)("Privacy","advanced-responsive-video-embedder"),misc:(0,s.__)("Misc","advanced-responsive-video-embedder")};return Object.entries(i).forEach(([e,t])=>{var i;t.length>0&&r.push((0,d.jsx)(l.PanelBody,{title:null!==(i=n[e])&&void 0!==i?i:e,initialOpen:"main"===e,children:t},e))}),r}const y=window.React,{registerBlockType:f}=window.wp.blocks;f(t,{edit:function({attributes:e,setAttributes:t}){const{mode:i,align:o,maxwidth:s}=e,{options:l}=window.ArveBlockJsBefore;let c=!0;const p={},u={...e};delete u.align,delete u.maxwidth,!s||"left"!==o&&"right"!==o?"left"!==o&&"right"!==o||(p.width="100%",p.maxWidth=l.align_maxwidth):(p.width="100%",p.maxWidth=s);const h=(0,r.useBlockProps)({style:p});return("normal"===i||!i&&"normal"===l.mode)&&(c=!1),(0,d.jsxs)(d.Fragment,{children:[(0,y.createElement)("div",{...h,key:"block"},(0,d.jsx)(n(),{className:a({"arve-ssr":!0,"arve-ssr--pointer-events-none":!c}),block:"nextgenthemes/arve-block",attributes:u,skipBlockSupportAttributes:!0})),(0,d.jsx)(r.InspectorControls,{children:_({attributes:e,setAttributes:t})},"insp")]})},save:()=>null})})();1 (()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"10.8.0","textdomain":"advanced-responsive-video-embedder","supports":{"align":["wide","full","left","right"],"className":true,"customClassName":true},"example":{"attributes":{"url":"https://www.youtube.com/watch?v=oe452WcY7fA","title":"Example ARVE Video"}},"editorScript":"file:./index.js","editorStyle":["file:./index.css","arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScript":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScriptModule":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewStyle":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"attributes":{"url":{"type":"string"},"thumbnail":{"type":"string"},"mode":{"type":"string"},"grow":{"type":"string"},"lazyload_style":{"type":"string"},"hover_effect":{"type":"string"},"hide_title":{"type":"string"},"play_icon_style":{"type":"string"},"fullscreen":{"type":"string"},"lightbox_maxwidth":{"type":"integer"},"lightbox_aspect_ratio":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"upload_date":{"type":"string"},"duration":{"type":"string"},"loop":{"type":"boolean"},"muted":{"type":"boolean"},"controls":{"type":"string"},"parameters":{"type":"string"},"controlslist":{"type":"string"},"autoplay":{"type":"string"},"disable_links":{"type":"string"},"credentialless":{"type":"boolean"},"invidious":{"type":"string"},"encrypted_media":{"type":"boolean"},"sticky":{"type":"string"},"sticky_on_mobile":{"type":"string"},"sticky_position":{"type":"string"},"volume":{"type":"integer"},"arve_link":{"type":"string"},"random_video_url":{"type":"string"},"random_video_urls":{"type":"string"},"align":{"type":"string"},"aspect_ratio":{"type":"string"},"thumbnail_url":{"type":"string"}}}'),r=window.wp.blockEditor,i=window.wp.serverSideRender;var n=e.n(i);function o(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=o(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}const a=function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=o(e))&&(i&&(i+=" "),i+=t);return i},s=window.wp.i18n,l=window.wp.components,d=window.ReactJSXRuntime,c=({className:e,sKey:t,val:i,url:n,help:o,setAttributes:c})=>{const p=(0,d.jsx)("p",{children:(0,s.__)("To edit the featured image, you need permission to upload media.")}),u=a("editor-post-featured-image__container",e),v=e=>{c({[t]:e.id.toString(),[`${t}_url`]:e.url||""})};return(0,d.jsxs)(l.BaseControl,{className:"editor-post-featured-image",help:o,children:[(0,d.jsx)(r.MediaUploadCheck,{fallback:p,children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:v,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(e=>(0,d.jsxs)("div",{className:u,children:[(0,d.jsx)(l.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":i?(0,s.__)("Edit or update the image"):void 0,"aria-describedby":i?`editor-post-featured-image-${i}-describedby`:"",children:i&&n?(0,d.jsx)("div",{style:{width:"100%",overflow:"hidden"},children:(0,d.jsx)("img",{src:n,alt:"ARVE Thumbnail",style:{width:"100%",objectFit:"cover",aspectRatio:"16/9"}})}):(0,d.jsx)("span",{children:(0,s.__)("Set Thumbnail")})}),(0,d.jsx)(l.DropZone,{})]}))(e),value:i})}),!!i&&!!n&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:v,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,d.jsx)(l.Button,{onClick:e,variant:"secondary",children:(0,s.__)("Replace Thumbnail")})})},`${t}-MediaUploadCheck-2`),!!i&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(l.Button,{onClick:()=>{c({[t]:"",[`${t}_url`]:""})},isDestructive:!0,children:(0,s.__)("Remove Thumbnail")})},`${t}-MediaUploadCheck-3`)]})},p=function({label:e,value:t,onChange:r,onAspectRatioChange:i,placeholder:n,help:o}){return(0,d.jsx)(l.TextControl,{label:e,value:t,onChange:e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector("iframe");if(t?.src){const e=t.getAttribute("src")||"";if(r(e),t.width&&t.height){const e=function(e,t){const r=e=>/^[1-9]\d*$/.test(e);if(!r(e)||!r(t))return;const i=parseInt(e,10),n=parseInt(t,10),o=(e,t)=>0===t?e:o(t,e%t),a=o(i,n);return`${i/a}:${n/a}`}(t.width,t.height);e&&"16:9"!==e&&i(e)}return}r(e)},placeholder:n,help:o,type:"text"})},{settingPageUrl:u,options:v,settings:h,gutenbergActive:m}=window.ArveBlockJsBefore,{gutenberg_help:g}=v;function b(e){if(!g||!e)return;if(!e.match(/<a/i))return e;const t=(new DOMParser).parseFromString(e,"text/html"),r=[];let i=1;const n=e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent;null!=t&&r.push(t)}else if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("A"===t.tagName){const e=t,n=e.textContent||"";return r.push((0,d.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:n},"link-"+i)),void i++}Array.from(t.childNodes).forEach(n)}};return n(t.body),(0,d.jsx)(d.Fragment,{children:r})}function _({attributes:e,setAttributes:t}){const r=[],i={};Object.values(h).forEach(e=>{i[e.category]=[]}),Object.entries(h).forEach(([r,n])=>{const o=e[r],a=e[`${r}_url`]||"",u=n.category||"no-category";var v;if(!function(e,t){if("align"===e)return!0;const r=h[e];return!!r?.depends?.length&&!r.depends.some(e=>{const[r,i]=Object.entries(e)[0]||[];return!t[r]||void 0!==r&&t[r]===i})}(r,e))if(function(e,t){const r=Object.keys(e);return r.length===t.length&&t.every(e=>r.includes(e))}(n.options||{},["","true","false"]))i[u].push((0,d.jsxs)(l.__experimentalToggleGroupControl,{label:n.label,value:o||"",isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,onChange:e=>t({[r]:e}),help:b(n.description),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"",label:(0,s.__)("Default","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"true",label:(0,s.__)("True","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"false",label:(0,s.__)("False","advanced-responsive-video-embedder")})]},r));else if("url"===r)i[u].push((0,d.jsx)(p,{label:n.label,value:o||"",onChange:e=>t({[r]:e}),onAspectRatioChange:e=>t({aspect_ratio:e}),placeholder:n.placeholder,help:b(n.description)},r));else if("image_upload"===n.ui)i[u].push((0,d.jsx)(c,{sKey:r,className:`arve-ctl-${n.tab}`,val:o||void 0,url:a,help:b(n.description),setAttributes:t},r));else if("select"===n.ui_element){const e=(v=n.options,Object.entries(v).map(([e,t])=>({label:t,value:e})));i[u].push((0,d.jsx)(l.SelectControl,{className:`arve-ctl-${n.tab}`,label:n.label,value:o,options:e,onChange:e=>t({[r]:e}),help:b(n.description)},r))}else"checkbox"===n.ui_element_type?i[u].push((0,d.jsx)(l.ToggleControl,{className:`arve-ctl-${n.tab}`,label:n.label,checked:Boolean(o),onChange:e=>t({[r]:e}),help:b(n.description)},r)):i[u].push((0,d.jsx)(l.TextControl,{className:`arve-ctl-${n.tab}`,label:n.label,type:n.ui_element_type,value:o||"",placeholder:n.placeholder,onChange:e=>t({[r]:e}),help:b(n.description)},r))}),(g||m)&&i.main.push((0,d.jsx)(l.BaseControl,{help:(0,d.jsxs)(d.Fragment,{children:[g&&(0,d.jsxs)(d.Fragment,{children:[(0,s.__)("Remember changing the defaults is possible on the","advanced-responsive-video-embedder")," ",(0,d.jsx)("a",{href:u,target:"_blank",rel:"noreferrer",children:(0,s.__)("Settings page","advanced-responsive-video-embedder")}),". ",(0,s.__)("You can also disable the extensive help texts there to clean up this UI.","advanced-responsive-video-embedder")]}),m&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,s.__)("Error 153 in YouTube embeds, is a known issue with the Gutenberg plugin active and effects only the editor and normal mode. Your Videos will work fine on the front-end. Lazyload is not effected.","advanced-responsive-video-embedder")]})]}),children:(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,s.__)("Info","advanced-responsive-video-embedder")})},"info-panel"));const n={main:(0,s.__)("Main","advanced-responsive-video-embedder"),lazyloadAndLightbox:(0,s.__)("Lazyload & Lightbox","advanced-responsive-video-embedder"),lightbox:(0,s.__)("Lightbox","advanced-responsive-video-embedder"),data:(0,s.__)("Data","advanced-responsive-video-embedder"),stickyVideos:(0,s.__)("Sticky Videos","advanced-responsive-video-embedder"),functional:(0,s.__)("Functional","advanced-responsive-video-embedder"),privacy:(0,s.__)("Privacy","advanced-responsive-video-embedder"),misc:(0,s.__)("Misc","advanced-responsive-video-embedder")};return Object.entries(i).forEach(([e,t])=>{var i;t.length>0&&r.push((0,d.jsx)(l.PanelBody,{title:null!==(i=n[e])&&void 0!==i?i:e,initialOpen:"main"===e,children:t},e))}),r}const y=window.React,{registerBlockType:f}=window.wp.blocks;f(t,{edit:function({attributes:e,setAttributes:t}){const{mode:i,align:o,maxwidth:s}=e,{options:l}=window.ArveBlockJsBefore;let c=!0;const p={},u={...e};delete u.align,delete u.maxwidth,!s||"left"!==o&&"right"!==o?"left"!==o&&"right"!==o||(p.width="100%",p.maxWidth=l.align_maxwidth):(p.width="100%",p.maxWidth=s);const v=(0,r.useBlockProps)({style:p});return("normal"===i||!i&&"normal"===l.mode)&&(c=!1),(0,d.jsxs)(d.Fragment,{children:[(0,y.createElement)("div",{...v,key:"block"},(0,d.jsx)(n(),{className:a({"arve-ssr":!0,"arve-ssr--pointer-events-none":!c}),block:"nextgenthemes/arve-block",attributes:u,skipBlockSupportAttributes:!0},"ssr")),(0,d.jsx)(r.InspectorControls,{children:(0,d.jsx)(d.Fragment,{children:_({attributes:e,setAttributes:t})})},"insp")]})},save:()=>null})})(); -
advanced-responsive-video-embedder/tags/10.8.1/changelog.md
r3395838 r3396492 3 3 * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog) 4 4 * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog) 5 6 ### 2025-11-16 10.8.1 ### 7 8 * Fix: Give all React elements keys to prevent console errors. 9 * Fix: Show all settings in Block when settings are set to default. 5 10 6 11 ### 2025-11-14 10.8.0 ### -
advanced-responsive-video-embedder/tags/10.8.1/php/CLI.php
r3395838 r3396492 111 111 $json = json_decode( $json, true, 15, JSON_THROW_ON_ERROR ); 112 112 } catch ( \JsonException $exception ) { 113 die( esc_html( $exception->getMessage()) );113 WP_CLI::error( $exception->getMessage() ); 114 114 } 115 115 116 116 if ( empty( $json ) ) { 117 die( esc_html( 'Empty JSON' ));117 WP_CLI::error( 'Empty JSON' ); 118 118 } 119 119 120 $json['attributes'] = $attr; 121 $json['editorStyle'] = array_merge( [ 'file:./index.css' ], VIEW_SCRIPT_HANDLES ); 122 $json['viewScript'] = VIEW_SCRIPT_HANDLES; 123 $json['viewStyle'] = VIEW_SCRIPT_HANDLES; 124 $json['version'] = VERSION; 120 $json['version'] = VERSION; 121 $json['attributes'] = $attr; 122 $json['editorStyle'] = array_merge( [ 'file:./index.css' ], VIEW_SCRIPT_HANDLES ); 123 $json['viewScript'] = VIEW_SCRIPT_HANDLES; 124 $json['viewScriptModule'] = VIEW_SCRIPT_HANDLES; 125 $json['viewStyle'] = VIEW_SCRIPT_HANDLES; 125 126 126 127 return $json; … … 131 132 */ 132 133 private static function pretty_json_output( array $data ): void { 133 WP_CLI::line( wp_json_encode( $data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ); 134 $json = wp_json_encode( $data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ); 135 WP_CLI::line( $json ); 134 136 } 135 137 -
advanced-responsive-video-embedder/tags/10.8.1/php/SettingsDefinitions.php
r3395838 r3396492 551 551 'darken' => __( 'Darken', 'advanced-responsive-video-embedder' ), 552 552 'zoom' => __( 'Zoom', 'advanced-responsive-video-embedder' ), 553 'rectangle' => __( 'Rectangle', 'advanced-responsive-video-embedder' ), 553 554 'none' => __( 'None', 'advanced-responsive-video-embedder' ), 554 555 ), -
advanced-responsive-video-embedder/tags/10.8.1/readme.txt
r3395838 r3396492 6 6 Tested up to: 6.9-RC1 7 7 Requires PHP: 7.4 8 Stable tag: 10.8. 08 Stable tag: 10.8.1 9 9 License: GPL-3.0 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 196 196 * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog) 197 197 198 ### 2025-11-16 10.8.1 ### 199 200 * Fix: Give all React elements keys to prevent console errors. 201 * Fix: Show all settings in Block when settings are set to default. 202 198 203 ### 2025-11-14 10.8.0 ### 199 204 -
advanced-responsive-video-embedder/tags/10.8.1/src/block/block.json
r3395838 r3396492 41 41 ], 42 42 "viewScript": [ 43 "arve", 44 "arve-pro", 45 "arve-sticky-videos", 46 "arve-random-video" 47 ], 48 "viewScriptModule": [ 43 49 "arve", 44 50 "arve-pro", -
advanced-responsive-video-embedder/tags/10.8.1/src/block/controls.tsx
r3395838 r3396492 33 33 const doc = new DOMParser().parseFromString( html, 'text/html' ); 34 34 const result: ( string | JSX.Element )[] = []; 35 let key = 1; 35 36 36 37 const walk = ( node: Node ) => { … … 46 47 const linkText = a.textContent || ''; 47 48 result.push( 48 <a href={ a.href } target="_blank" rel="noreferrer" >49 <a href={ a.href } target="_blank" rel="noreferrer" key={ 'link-' + key }> 49 50 { linkText } 50 51 </a> 51 52 ); 53 key++; 52 54 return; // Don't process children since we handled the text 53 55 } … … 86 88 // Each condition is an object with a single key-value pair 87 89 const [ key, value ] = Object.entries( condition )[ 0 ] || []; 90 91 if ( ! attributes[ key ] ) { 92 return true; // If the is unset (default) show all settings, as advertisement 93 } 94 88 95 // If the attribute has the key and its value matches the condition, return true 89 96 return key !== undefined && attributes[ key ] === value; … … 119 126 sectionControls[ tab ].push( 120 127 <ToggleGroupControl 128 key={ sKey } 121 129 label={ setting.label } 122 130 value={ ( val as string ) || '' } -
advanced-responsive-video-embedder/tags/10.8.1/src/block/edit.tsx
r3395838 r3396492 61 61 <div { ...blockProps } key="block"> 62 62 <ServerSideRender 63 key="ssr" 63 64 className={ clsx( { 64 65 'arve-ssr': true, … … 71 72 </div> 72 73 <InspectorControls key="insp"> 73 { buildControls( { attributes, setAttributes } ) }74 <>{ buildControls( { attributes, setAttributes } ) }</> 74 75 </InspectorControls> 75 76 </> -
advanced-responsive-video-embedder/tags/10.8.1/src/main.ts
r3395838 r3396492 47 47 } 48 48 49 exportfunction globalID(): void {49 function globalID(): void { 50 50 // Usually the id should be already there added with php using the language_attributes filter 51 51 if ( 'html' === d.documentElement.id ) { -
advanced-responsive-video-embedder/tags/10.8.1/vendor/composer/installed.php
r3395838 r3396492 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 70d673982c7331b15c22cc66095060c093c3197b',6 'reference' => '0be08087440e347d863d41ec9bf50be2a3866314', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' 70d673982c7331b15c22cc66095060c093c3197b',25 'reference' => '0be08087440e347d863d41ec9bf50be2a3866314', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
advanced-responsive-video-embedder/trunk/advanced-responsive-video-embedder.php
r3395838 r3396492 4 4 * Plugin URI: https://nextgenthemes.com/plugins/arve-pro/ 5 5 * Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine. 6 * Version: 10.8. 06 * Version: 10.8.1 7 7 * Requires PHP: 7.4 8 8 * Requires at least: 6.6 … … 23 23 namespace Nextgenthemes\ARVE; 24 24 25 const VERSION = '10.8. 0';25 const VERSION = '10.8.1'; 26 26 const PRO_VERSION_REQUIRED = '7.0.6'; 27 27 const PRIVACY_VERSION_REQUIRED = '1.1.5'; -
advanced-responsive-video-embedder/trunk/build/block/block.json
r3395838 r3396492 14 14 "odysee" 15 15 ], 16 "version": "10.8. 0",16 "version": "10.8.1", 17 17 "textdomain": "advanced-responsive-video-embedder", 18 18 "supports": { … … 41 41 ], 42 42 "viewScript": [ 43 "arve", 44 "arve-pro", 45 "arve-sticky-videos", 46 "arve-random-video" 47 ], 48 "viewScriptModule": [ 43 49 "arve", 44 50 "arve-pro", -
advanced-responsive-video-embedder/trunk/build/block/index.asset.php
r3395838 r3396492 1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => ' 6eb12d99e60354f7c3ad');1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => '7fa2d52c1920daf4f3f5'); -
advanced-responsive-video-embedder/trunk/build/block/index.js
r3395838 r3396492 1 (()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"10.8.0","textdomain":"advanced-responsive-video-embedder","supports":{"align":["wide","full","left","right"],"className":true,"customClassName":true},"example":{"attributes":{"url":"https://www.youtube.com/watch?v=oe452WcY7fA","title":"Example ARVE Video"}},"editorScript":"file:./index.js","editorStyle":["file:./index.css","arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScript":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewS tyle":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"attributes":{"url":{"type":"string"},"thumbnail":{"type":"string"},"mode":{"type":"string"},"grow":{"type":"string"},"lazyload_style":{"type":"string"},"hover_effect":{"type":"string"},"hide_title":{"type":"string"},"play_icon_style":{"type":"string"},"fullscreen":{"type":"string"},"lightbox_maxwidth":{"type":"integer"},"lightbox_aspect_ratio":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"upload_date":{"type":"string"},"duration":{"type":"string"},"loop":{"type":"boolean"},"muted":{"type":"boolean"},"controls":{"type":"string"},"parameters":{"type":"string"},"controlslist":{"type":"string"},"autoplay":{"type":"string"},"disable_links":{"type":"string"},"credentialless":{"type":"boolean"},"invidious":{"type":"string"},"encrypted_media":{"type":"boolean"},"sticky":{"type":"string"},"sticky_on_mobile":{"type":"string"},"sticky_position":{"type":"string"},"volume":{"type":"integer"},"arve_link":{"type":"string"},"random_video_url":{"type":"string"},"random_video_urls":{"type":"string"},"align":{"type":"string"},"aspect_ratio":{"type":"string"},"thumbnail_url":{"type":"string"}}}'),r=window.wp.blockEditor,i=window.wp.serverSideRender;var n=e.n(i);function o(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=o(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}const a=function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=o(e))&&(i&&(i+=" "),i+=t);return i},s=window.wp.i18n,l=window.wp.components,d=window.ReactJSXRuntime,c=({className:e,sKey:t,val:i,url:n,help:o,setAttributes:c})=>{const p=(0,d.jsx)("p",{children:(0,s.__)("To edit the featured image, you need permission to upload media.")}),u=a("editor-post-featured-image__container",e),h=e=>{c({[t]:e.id.toString(),[`${t}_url`]:e.url||""})};return(0,d.jsxs)(l.BaseControl,{className:"editor-post-featured-image",help:o,children:[(0,d.jsx)(r.MediaUploadCheck,{fallback:p,children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:h,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(e=>(0,d.jsxs)("div",{className:u,children:[(0,d.jsx)(l.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":i?(0,s.__)("Edit or update the image"):void 0,"aria-describedby":i?`editor-post-featured-image-${i}-describedby`:"",children:i&&n?(0,d.jsx)("div",{style:{width:"100%",overflow:"hidden"},children:(0,d.jsx)("img",{src:n,alt:"ARVE Thumbnail",style:{width:"100%",objectFit:"cover",aspectRatio:"16/9"}})}):(0,d.jsx)("span",{children:(0,s.__)("Set Thumbnail")})}),(0,d.jsx)(l.DropZone,{})]}))(e),value:i})}),!!i&&!!n&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:h,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,d.jsx)(l.Button,{onClick:e,variant:"secondary",children:(0,s.__)("Replace Thumbnail")})})},`${t}-MediaUploadCheck-2`),!!i&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(l.Button,{onClick:()=>{c({[t]:"",[`${t}_url`]:""})},isDestructive:!0,children:(0,s.__)("Remove Thumbnail")})},`${t}-MediaUploadCheck-3`)]})},p=function({label:e,value:t,onChange:r,onAspectRatioChange:i,placeholder:n,help:o}){return(0,d.jsx)(l.TextControl,{label:e,value:t,onChange:e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector("iframe");if(t?.src){const e=t.getAttribute("src")||"";if(r(e),t.width&&t.height){const e=function(e,t){const r=e=>/^[1-9]\d*$/.test(e);if(!r(e)||!r(t))return;const i=parseInt(e,10),n=parseInt(t,10),o=(e,t)=>0===t?e:o(t,e%t),a=o(i,n);return`${i/a}:${n/a}`}(t.width,t.height);e&&"16:9"!==e&&i(e)}return}r(e)},placeholder:n,help:o,type:"text"})},{settingPageUrl:u,options:h,settings:v,gutenbergActive:m}=window.ArveBlockJsBefore,{gutenberg_help:g}=h;function b(e){if(!g||!e)return;if(!e.match(/<a/i))return e;const t=(new DOMParser).parseFromString(e,"text/html"),r=[],i=e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent;null!=t&&r.push(t)}else if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("A"===t.tagName){const e=t,i=e.textContent||"";return void r.push((0,d.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:i}))}Array.from(t.childNodes).forEach(i)}};return i(t.body),(0,d.jsx)(d.Fragment,{children:r})}function _({attributes:e,setAttributes:t}){const r=[],i={};Object.values(v).forEach(e=>{i[e.category]=[]}),Object.entries(v).forEach(([r,n])=>{const o=e[r],a=e[`${r}_url`]||"",u=n.category||"no-category";var h;if(!function(e,t){if("align"===e)return!0;const r=v[e];return!!r?.depends?.length&&!r.depends.some(e=>{const[r,i]=Object.entries(e)[0]||[];return void 0!==r&&t[r]===i})}(r,e))if(function(e,t){const r=Object.keys(e);return r.length===t.length&&t.every(e=>r.includes(e))}(n.options||{},["","true","false"]))i[u].push((0,d.jsxs)(l.__experimentalToggleGroupControl,{label:n.label,value:o||"",isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,onChange:e=>t({[r]:e}),help:b(n.description),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"",label:(0,s.__)("Default","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"true",label:(0,s.__)("True","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"false",label:(0,s.__)("False","advanced-responsive-video-embedder")})]}));else if("url"===r)i[u].push((0,d.jsx)(p,{label:n.label,value:o||"",onChange:e=>t({[r]:e}),onAspectRatioChange:e=>t({aspect_ratio:e}),placeholder:n.placeholder,help:b(n.description)},r));else if("image_upload"===n.ui)i[u].push((0,d.jsx)(c,{sKey:r,className:`arve-ctl-${n.tab}`,val:o||void 0,url:a,help:b(n.description),setAttributes:t},r));else if("select"===n.ui_element){const e=(h=n.options,Object.entries(h).map(([e,t])=>({label:t,value:e})));i[u].push((0,d.jsx)(l.SelectControl,{className:`arve-ctl-${n.tab}`,label:n.label,value:o,options:e,onChange:e=>t({[r]:e}),help:b(n.description)},r))}else"checkbox"===n.ui_element_type?i[u].push((0,d.jsx)(l.ToggleControl,{className:`arve-ctl-${n.tab}`,label:n.label,checked:Boolean(o),onChange:e=>t({[r]:e}),help:b(n.description)},r)):i[u].push((0,d.jsx)(l.TextControl,{className:`arve-ctl-${n.tab}`,label:n.label,type:n.ui_element_type,value:o||"",placeholder:n.placeholder,onChange:e=>t({[r]:e}),help:b(n.description)},r))}),(g||m)&&i.main.push((0,d.jsx)(l.BaseControl,{help:(0,d.jsxs)(d.Fragment,{children:[g&&(0,d.jsxs)(d.Fragment,{children:[(0,s.__)("Remember changing the defaults is possible on the","advanced-responsive-video-embedder")," ",(0,d.jsx)("a",{href:u,target:"_blank",rel:"noreferrer",children:(0,s.__)("Settings page","advanced-responsive-video-embedder")}),". ",(0,s.__)("You can also disable the extensive help texts there to clean up this UI.","advanced-responsive-video-embedder")]}),m&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,s.__)("Error 153 in YouTube embeds, is a known issue with the Gutenberg plugin active and effects only the editor and normal mode. Your Videos will work fine on the front-end. Lazyload is not effected.","advanced-responsive-video-embedder")]})]}),children:(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,s.__)("Info","advanced-responsive-video-embedder")})},"info-panel"));const n={main:(0,s.__)("Main","advanced-responsive-video-embedder"),lazyloadAndLightbox:(0,s.__)("Lazyload & Lightbox","advanced-responsive-video-embedder"),lightbox:(0,s.__)("Lightbox","advanced-responsive-video-embedder"),data:(0,s.__)("Data","advanced-responsive-video-embedder"),stickyVideos:(0,s.__)("Sticky Videos","advanced-responsive-video-embedder"),functional:(0,s.__)("Functional","advanced-responsive-video-embedder"),privacy:(0,s.__)("Privacy","advanced-responsive-video-embedder"),misc:(0,s.__)("Misc","advanced-responsive-video-embedder")};return Object.entries(i).forEach(([e,t])=>{var i;t.length>0&&r.push((0,d.jsx)(l.PanelBody,{title:null!==(i=n[e])&&void 0!==i?i:e,initialOpen:"main"===e,children:t},e))}),r}const y=window.React,{registerBlockType:f}=window.wp.blocks;f(t,{edit:function({attributes:e,setAttributes:t}){const{mode:i,align:o,maxwidth:s}=e,{options:l}=window.ArveBlockJsBefore;let c=!0;const p={},u={...e};delete u.align,delete u.maxwidth,!s||"left"!==o&&"right"!==o?"left"!==o&&"right"!==o||(p.width="100%",p.maxWidth=l.align_maxwidth):(p.width="100%",p.maxWidth=s);const h=(0,r.useBlockProps)({style:p});return("normal"===i||!i&&"normal"===l.mode)&&(c=!1),(0,d.jsxs)(d.Fragment,{children:[(0,y.createElement)("div",{...h,key:"block"},(0,d.jsx)(n(),{className:a({"arve-ssr":!0,"arve-ssr--pointer-events-none":!c}),block:"nextgenthemes/arve-block",attributes:u,skipBlockSupportAttributes:!0})),(0,d.jsx)(r.InspectorControls,{children:_({attributes:e,setAttributes:t})},"insp")]})},save:()=>null})})();1 (()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"nextgenthemes/arve-block","title":"Video Embed (ARVE)","category":"embed","icon":"video-alt3","description":"Advanced Responsive Video Embedder","keywords":["embed","youtube","rumble","vimeo","odysee"],"version":"10.8.0","textdomain":"advanced-responsive-video-embedder","supports":{"align":["wide","full","left","right"],"className":true,"customClassName":true},"example":{"attributes":{"url":"https://www.youtube.com/watch?v=oe452WcY7fA","title":"Example ARVE Video"}},"editorScript":"file:./index.js","editorStyle":["file:./index.css","arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScript":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewScriptModule":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"viewStyle":["arve","arve-pro","arve-sticky-videos","arve-random-video"],"attributes":{"url":{"type":"string"},"thumbnail":{"type":"string"},"mode":{"type":"string"},"grow":{"type":"string"},"lazyload_style":{"type":"string"},"hover_effect":{"type":"string"},"hide_title":{"type":"string"},"play_icon_style":{"type":"string"},"fullscreen":{"type":"string"},"lightbox_maxwidth":{"type":"integer"},"lightbox_aspect_ratio":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"upload_date":{"type":"string"},"duration":{"type":"string"},"loop":{"type":"boolean"},"muted":{"type":"boolean"},"controls":{"type":"string"},"parameters":{"type":"string"},"controlslist":{"type":"string"},"autoplay":{"type":"string"},"disable_links":{"type":"string"},"credentialless":{"type":"boolean"},"invidious":{"type":"string"},"encrypted_media":{"type":"boolean"},"sticky":{"type":"string"},"sticky_on_mobile":{"type":"string"},"sticky_position":{"type":"string"},"volume":{"type":"integer"},"arve_link":{"type":"string"},"random_video_url":{"type":"string"},"random_video_urls":{"type":"string"},"align":{"type":"string"},"aspect_ratio":{"type":"string"},"thumbnail_url":{"type":"string"}}}'),r=window.wp.blockEditor,i=window.wp.serverSideRender;var n=e.n(i);function o(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=o(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}const a=function(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=o(e))&&(i&&(i+=" "),i+=t);return i},s=window.wp.i18n,l=window.wp.components,d=window.ReactJSXRuntime,c=({className:e,sKey:t,val:i,url:n,help:o,setAttributes:c})=>{const p=(0,d.jsx)("p",{children:(0,s.__)("To edit the featured image, you need permission to upload media.")}),u=a("editor-post-featured-image__container",e),v=e=>{c({[t]:e.id.toString(),[`${t}_url`]:e.url||""})};return(0,d.jsxs)(l.BaseControl,{className:"editor-post-featured-image",help:o,children:[(0,d.jsx)(r.MediaUploadCheck,{fallback:p,children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:v,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(e=>(0,d.jsxs)("div",{className:u,children:[(0,d.jsx)(l.Button,{className:i?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,"aria-label":i?(0,s.__)("Edit or update the image"):void 0,"aria-describedby":i?`editor-post-featured-image-${i}-describedby`:"",children:i&&n?(0,d.jsx)("div",{style:{width:"100%",overflow:"hidden"},children:(0,d.jsx)("img",{src:n,alt:"ARVE Thumbnail",style:{width:"100%",objectFit:"cover",aspectRatio:"16/9"}})}):(0,d.jsx)("span",{children:(0,s.__)("Set Thumbnail")})}),(0,d.jsx)(l.DropZone,{})]}))(e),value:i})}),!!i&&!!n&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(r.MediaUpload,{title:(0,s.__)("Thumbnail"),onSelect:v,allowedTypes:["image"],modalClass:"editor-post-featured-image__media-modal",render:({open:e})=>(0,d.jsx)(l.Button,{onClick:e,variant:"secondary",children:(0,s.__)("Replace Thumbnail")})})},`${t}-MediaUploadCheck-2`),!!i&&(0,d.jsx)(r.MediaUploadCheck,{children:(0,d.jsx)(l.Button,{onClick:()=>{c({[t]:"",[`${t}_url`]:""})},isDestructive:!0,children:(0,s.__)("Remove Thumbnail")})},`${t}-MediaUploadCheck-3`)]})},p=function({label:e,value:t,onChange:r,onAspectRatioChange:i,placeholder:n,help:o}){return(0,d.jsx)(l.TextControl,{label:e,value:t,onChange:e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector("iframe");if(t?.src){const e=t.getAttribute("src")||"";if(r(e),t.width&&t.height){const e=function(e,t){const r=e=>/^[1-9]\d*$/.test(e);if(!r(e)||!r(t))return;const i=parseInt(e,10),n=parseInt(t,10),o=(e,t)=>0===t?e:o(t,e%t),a=o(i,n);return`${i/a}:${n/a}`}(t.width,t.height);e&&"16:9"!==e&&i(e)}return}r(e)},placeholder:n,help:o,type:"text"})},{settingPageUrl:u,options:v,settings:h,gutenbergActive:m}=window.ArveBlockJsBefore,{gutenberg_help:g}=v;function b(e){if(!g||!e)return;if(!e.match(/<a/i))return e;const t=(new DOMParser).parseFromString(e,"text/html"),r=[];let i=1;const n=e=>{if(e.nodeType===Node.TEXT_NODE){const t=e.textContent;null!=t&&r.push(t)}else if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("A"===t.tagName){const e=t,n=e.textContent||"";return r.push((0,d.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",children:n},"link-"+i)),void i++}Array.from(t.childNodes).forEach(n)}};return n(t.body),(0,d.jsx)(d.Fragment,{children:r})}function _({attributes:e,setAttributes:t}){const r=[],i={};Object.values(h).forEach(e=>{i[e.category]=[]}),Object.entries(h).forEach(([r,n])=>{const o=e[r],a=e[`${r}_url`]||"",u=n.category||"no-category";var v;if(!function(e,t){if("align"===e)return!0;const r=h[e];return!!r?.depends?.length&&!r.depends.some(e=>{const[r,i]=Object.entries(e)[0]||[];return!t[r]||void 0!==r&&t[r]===i})}(r,e))if(function(e,t){const r=Object.keys(e);return r.length===t.length&&t.every(e=>r.includes(e))}(n.options||{},["","true","false"]))i[u].push((0,d.jsxs)(l.__experimentalToggleGroupControl,{label:n.label,value:o||"",isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,onChange:e=>t({[r]:e}),help:b(n.description),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"",label:(0,s.__)("Default","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"true",label:(0,s.__)("True","advanced-responsive-video-embedder")}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{value:"false",label:(0,s.__)("False","advanced-responsive-video-embedder")})]},r));else if("url"===r)i[u].push((0,d.jsx)(p,{label:n.label,value:o||"",onChange:e=>t({[r]:e}),onAspectRatioChange:e=>t({aspect_ratio:e}),placeholder:n.placeholder,help:b(n.description)},r));else if("image_upload"===n.ui)i[u].push((0,d.jsx)(c,{sKey:r,className:`arve-ctl-${n.tab}`,val:o||void 0,url:a,help:b(n.description),setAttributes:t},r));else if("select"===n.ui_element){const e=(v=n.options,Object.entries(v).map(([e,t])=>({label:t,value:e})));i[u].push((0,d.jsx)(l.SelectControl,{className:`arve-ctl-${n.tab}`,label:n.label,value:o,options:e,onChange:e=>t({[r]:e}),help:b(n.description)},r))}else"checkbox"===n.ui_element_type?i[u].push((0,d.jsx)(l.ToggleControl,{className:`arve-ctl-${n.tab}`,label:n.label,checked:Boolean(o),onChange:e=>t({[r]:e}),help:b(n.description)},r)):i[u].push((0,d.jsx)(l.TextControl,{className:`arve-ctl-${n.tab}`,label:n.label,type:n.ui_element_type,value:o||"",placeholder:n.placeholder,onChange:e=>t({[r]:e}),help:b(n.description)},r))}),(g||m)&&i.main.push((0,d.jsx)(l.BaseControl,{help:(0,d.jsxs)(d.Fragment,{children:[g&&(0,d.jsxs)(d.Fragment,{children:[(0,s.__)("Remember changing the defaults is possible on the","advanced-responsive-video-embedder")," ",(0,d.jsx)("a",{href:u,target:"_blank",rel:"noreferrer",children:(0,s.__)("Settings page","advanced-responsive-video-embedder")}),". ",(0,s.__)("You can also disable the extensive help texts there to clean up this UI.","advanced-responsive-video-embedder")]}),m&&(0,d.jsxs)(d.Fragment,{children:[" ",(0,s.__)("Error 153 in YouTube embeds, is a known issue with the Gutenberg plugin active and effects only the editor and normal mode. Your Videos will work fine on the front-end. Lazyload is not effected.","advanced-responsive-video-embedder")]})]}),children:(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,s.__)("Info","advanced-responsive-video-embedder")})},"info-panel"));const n={main:(0,s.__)("Main","advanced-responsive-video-embedder"),lazyloadAndLightbox:(0,s.__)("Lazyload & Lightbox","advanced-responsive-video-embedder"),lightbox:(0,s.__)("Lightbox","advanced-responsive-video-embedder"),data:(0,s.__)("Data","advanced-responsive-video-embedder"),stickyVideos:(0,s.__)("Sticky Videos","advanced-responsive-video-embedder"),functional:(0,s.__)("Functional","advanced-responsive-video-embedder"),privacy:(0,s.__)("Privacy","advanced-responsive-video-embedder"),misc:(0,s.__)("Misc","advanced-responsive-video-embedder")};return Object.entries(i).forEach(([e,t])=>{var i;t.length>0&&r.push((0,d.jsx)(l.PanelBody,{title:null!==(i=n[e])&&void 0!==i?i:e,initialOpen:"main"===e,children:t},e))}),r}const y=window.React,{registerBlockType:f}=window.wp.blocks;f(t,{edit:function({attributes:e,setAttributes:t}){const{mode:i,align:o,maxwidth:s}=e,{options:l}=window.ArveBlockJsBefore;let c=!0;const p={},u={...e};delete u.align,delete u.maxwidth,!s||"left"!==o&&"right"!==o?"left"!==o&&"right"!==o||(p.width="100%",p.maxWidth=l.align_maxwidth):(p.width="100%",p.maxWidth=s);const v=(0,r.useBlockProps)({style:p});return("normal"===i||!i&&"normal"===l.mode)&&(c=!1),(0,d.jsxs)(d.Fragment,{children:[(0,y.createElement)("div",{...v,key:"block"},(0,d.jsx)(n(),{className:a({"arve-ssr":!0,"arve-ssr--pointer-events-none":!c}),block:"nextgenthemes/arve-block",attributes:u,skipBlockSupportAttributes:!0},"ssr")),(0,d.jsx)(r.InspectorControls,{children:(0,d.jsx)(d.Fragment,{children:_({attributes:e,setAttributes:t})})},"insp")]})},save:()=>null})})(); -
advanced-responsive-video-embedder/trunk/changelog.md
r3395838 r3396492 3 3 * [ARVE Pro changelog](https://nextgenthemes.com/plugins/arve-pro/#changelog) 4 4 * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog) 5 6 ### 2025-11-16 10.8.1 ### 7 8 * Fix: Give all React elements keys to prevent console errors. 9 * Fix: Show all settings in Block when settings are set to default. 5 10 6 11 ### 2025-11-14 10.8.0 ### -
advanced-responsive-video-embedder/trunk/php/CLI.php
r3395838 r3396492 111 111 $json = json_decode( $json, true, 15, JSON_THROW_ON_ERROR ); 112 112 } catch ( \JsonException $exception ) { 113 die( esc_html( $exception->getMessage()) );113 WP_CLI::error( $exception->getMessage() ); 114 114 } 115 115 116 116 if ( empty( $json ) ) { 117 die( esc_html( 'Empty JSON' ));117 WP_CLI::error( 'Empty JSON' ); 118 118 } 119 119 120 $json['attributes'] = $attr; 121 $json['editorStyle'] = array_merge( [ 'file:./index.css' ], VIEW_SCRIPT_HANDLES ); 122 $json['viewScript'] = VIEW_SCRIPT_HANDLES; 123 $json['viewStyle'] = VIEW_SCRIPT_HANDLES; 124 $json['version'] = VERSION; 120 $json['version'] = VERSION; 121 $json['attributes'] = $attr; 122 $json['editorStyle'] = array_merge( [ 'file:./index.css' ], VIEW_SCRIPT_HANDLES ); 123 $json['viewScript'] = VIEW_SCRIPT_HANDLES; 124 $json['viewScriptModule'] = VIEW_SCRIPT_HANDLES; 125 $json['viewStyle'] = VIEW_SCRIPT_HANDLES; 125 126 126 127 return $json; … … 131 132 */ 132 133 private static function pretty_json_output( array $data ): void { 133 WP_CLI::line( wp_json_encode( $data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ); 134 $json = wp_json_encode( $data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ); 135 WP_CLI::line( $json ); 134 136 } 135 137 -
advanced-responsive-video-embedder/trunk/php/SettingsDefinitions.php
r3395838 r3396492 551 551 'darken' => __( 'Darken', 'advanced-responsive-video-embedder' ), 552 552 'zoom' => __( 'Zoom', 'advanced-responsive-video-embedder' ), 553 'rectangle' => __( 'Rectangle', 'advanced-responsive-video-embedder' ), 553 554 'none' => __( 'None', 'advanced-responsive-video-embedder' ), 554 555 ), -
advanced-responsive-video-embedder/trunk/readme.txt
r3395838 r3396492 6 6 Tested up to: 6.9-RC1 7 7 Requires PHP: 7.4 8 Stable tag: 10.8. 08 Stable tag: 10.8.1 9 9 License: GPL-3.0 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 196 196 * [ARVE Random Videos changelog](https://nextgenthemes.com/plugins/arve-random-video/#changelog) 197 197 198 ### 2025-11-16 10.8.1 ### 199 200 * Fix: Give all React elements keys to prevent console errors. 201 * Fix: Show all settings in Block when settings are set to default. 202 198 203 ### 2025-11-14 10.8.0 ### 199 204 -
advanced-responsive-video-embedder/trunk/src/block/block.json
r3395838 r3396492 41 41 ], 42 42 "viewScript": [ 43 "arve", 44 "arve-pro", 45 "arve-sticky-videos", 46 "arve-random-video" 47 ], 48 "viewScriptModule": [ 43 49 "arve", 44 50 "arve-pro", -
advanced-responsive-video-embedder/trunk/src/block/controls.tsx
r3395838 r3396492 33 33 const doc = new DOMParser().parseFromString( html, 'text/html' ); 34 34 const result: ( string | JSX.Element )[] = []; 35 let key = 1; 35 36 36 37 const walk = ( node: Node ) => { … … 46 47 const linkText = a.textContent || ''; 47 48 result.push( 48 <a href={ a.href } target="_blank" rel="noreferrer" >49 <a href={ a.href } target="_blank" rel="noreferrer" key={ 'link-' + key }> 49 50 { linkText } 50 51 </a> 51 52 ); 53 key++; 52 54 return; // Don't process children since we handled the text 53 55 } … … 86 88 // Each condition is an object with a single key-value pair 87 89 const [ key, value ] = Object.entries( condition )[ 0 ] || []; 90 91 if ( ! attributes[ key ] ) { 92 return true; // If the is unset (default) show all settings, as advertisement 93 } 94 88 95 // If the attribute has the key and its value matches the condition, return true 89 96 return key !== undefined && attributes[ key ] === value; … … 119 126 sectionControls[ tab ].push( 120 127 <ToggleGroupControl 128 key={ sKey } 121 129 label={ setting.label } 122 130 value={ ( val as string ) || '' } -
advanced-responsive-video-embedder/trunk/src/block/edit.tsx
r3395838 r3396492 61 61 <div { ...blockProps } key="block"> 62 62 <ServerSideRender 63 key="ssr" 63 64 className={ clsx( { 64 65 'arve-ssr': true, … … 71 72 </div> 72 73 <InspectorControls key="insp"> 73 { buildControls( { attributes, setAttributes } ) }74 <>{ buildControls( { attributes, setAttributes } ) }</> 74 75 </InspectorControls> 75 76 </> -
advanced-responsive-video-embedder/trunk/src/main.ts
r3395838 r3396492 47 47 } 48 48 49 exportfunction globalID(): void {49 function globalID(): void { 50 50 // Usually the id should be already there added with php using the language_attributes filter 51 51 if ( 'html' === d.documentElement.id ) { -
advanced-responsive-video-embedder/trunk/vendor/composer/installed.php
r3395838 r3396492 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 70d673982c7331b15c22cc66095060c093c3197b',6 'reference' => '0be08087440e347d863d41ec9bf50be2a3866314', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' 70d673982c7331b15c22cc66095060c093c3197b',25 'reference' => '0be08087440e347d863d41ec9bf50be2a3866314', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.