Changeset 3377555
- Timestamp:
- 10/13/2025 01:26:13 PM (6 months ago)
- Location:
- wc-koin-official/tags/1.3.14
- Files:
-
- 9 edited
- 1 copied
-
. (copied) (copied from wc-koin-official/trunk)
-
app/Helpers/Config.php (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
dist/blocks/checkout-banner/index.asset.php (modified) (1 diff)
-
dist/blocks/checkout-banner/index.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
resources/blocks/components/CheckoutBanner/index.jsx (modified) (2 diffs)
-
vendor/composer/installed.json (modified) (1 diff)
-
vendor/composer/installed.php (modified) (1 diff)
-
wc-koin-official.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-koin-official/tags/1.3.14/app/Helpers/Config.php
r3364572 r3377555 95 95 public static function __version() 96 96 { 97 return '1.3.1 3';97 return '1.3.14'; 98 98 } 99 99 -
wc-koin-official/tags/1.3.14/composer.json
r3364572 r3377555 3 3 "description": "Koin Official Payments for Woocommerce", 4 4 "type": "wordpress-plugin", 5 "version": "1.3.1 3",5 "version": "1.3.14", 6 6 "license": "GPL-3.0", 7 7 "require": { -
wc-koin-official/tags/1.3.14/dist/blocks/checkout-banner/index.asset.php
r3348291 r3377555 1 <?php return array('dependencies' => array('react', 'wc-blocks-data-store', 'wp-data', 'wp-element', 'wp-plugins'), 'version' => ' 4c5c25a4aaebcfd061c1');1 <?php return array('dependencies' => array('react', 'wc-blocks-data-store', 'wp-data', 'wp-element', 'wp-plugins'), 'version' => '5c2f36044ee57ac2b8c0'); -
wc-koin-official/tags/1.3.14/dist/blocks/checkout-banner/index.js
r3348291 r3377555 1 (()=>{"use strict";var e={20:(e,o,t)=>{var n=t(609),r=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty), p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,o,t){var n,u={},i=null,a=null;for(n in void 0!==t&&(i=""+t),void 0!==o.key&&(i=""+o.key),void 0!==o.ref&&(a=o.ref),o)c.call(o,n)&&!s.hasOwnProperty(n)&&(u[n]=o[n]);if(e&&e.defaultProps)for(n in o=e.defaultProps)void 0===u[n]&&(u[n]=o[n]);return{$$typeof:r,type:e,key:i,ref:a,props:u,_owner:p.current}}o.jsx=u,o.jsxs=u},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},o={};const t=window.wp.plugins,n=window.wp.element,r=window.wp.data,c=window.wc.wcBlocksData;var p=function t(n){var r=o[n];if(void 0!==r)return r.exports;var c=o[n]={exports:{}};return e[n](c,c.exports,t),c.exports}(848);(0,t.registerPlugin)("checkout-banner",{render:()=>{const[e,o]=(0,n.useState)(!1),t=(0,n.useRef)(null),s=(0,n.useRef)(null),[u,i]=(0,n.useState)(!0),a=(e="component")=>{if(u&&"component"===e)return void i(!1);const t=document.querySelector("#koin-popup-about");t&&(t.parentElement.style.display="block",o(!0))},l=()=>{const e=document.querySelector("#koin-popup-about");e&&(e.parentElement.style.display="none",o(!1))},d=(0,r.useSelect)(e=>e(c.PAYMENT_STORE_KEY).getActivePaymentMethod());return(0,n.useEffect)(()=>{document.addEventListener("koinOpenPopup",async()=>{a("click")})},[]),(0,n.useEffect)(()=>{"wc-koin-billet"===d&&a()},[d]),(0,n.useEffect)(()=>{const e=e=>{"koin-popup-about"===e.target.id&&l()},o=document.querySelector("#koin-popup-about");return o&&o.addEventListener("click",e),()=>{o&&o.removeEventListener("click",e)}},[]),(0,p.jsx)("div",{ref:t,id:"koin-popup-about",className:"koin-popup-about "+(e?"koin-popup-about-active":""),children:(0,p.jsxs)("div",{ref:s,className:"koin-popup-about-content",children:[(0,p.jsx)("i",{id:"koin-close-popup",className:"close",onClick:l,children:"×"}),(0,p.jsx)("koin-checkout-banner",{})]})})},scope:"woocommerce-checkout"})})();1 (()=>{"use strict";var e={20:(e,o,t)=>{var n=t(609),r=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,o,t){var n,s={},p=null,a=null;for(n in void 0!==t&&(p=""+t),void 0!==o.key&&(p=""+o.key),void 0!==o.ref&&(a=o.ref),o)c.call(o,n)&&!i.hasOwnProperty(n)&&(s[n]=o[n]);if(e&&e.defaultProps)for(n in o=e.defaultProps)void 0===s[n]&&(s[n]=o[n]);return{$$typeof:r,type:e,key:p,ref:a,props:s,_owner:u.current}}o.jsx=s,o.jsxs=s},848:(e,o,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},o={};const t=window.wp.plugins,n=window.wp.element,r=window.wp.data,c=window.wc.wcBlocksData;var u=function t(n){var r=o[n];if(void 0!==r)return r.exports;var c=o[n]={exports:{}};return e[n](c,c.exports,t),c.exports}(848);(0,t.registerPlugin)("checkout-banner",{render:()=>{const[e,o]=(0,n.useState)(!1),t=(0,n.useRef)(null),i=(0,n.useRef)(null),[s,p]=(0,n.useState)(!0),[a,l]=(0,n.useState)(!1),d=(0,n.useRef)(null),f=(e="component")=>{if(s&&"component"===e)return void p(!1);const t=document.querySelector("#koin-popup-about");t&&(t.parentElement.style.display="block",o(!0))},k=()=>{const e=document.querySelector("#koin-popup-about");e&&(e.parentElement.style.display="none",o(!1))},w=(0,r.useSelect)(e=>e(c.PAYMENT_STORE_KEY).getActivePaymentMethod());return(0,n.useEffect)(()=>{document.addEventListener("koinOpenPopup",async()=>{f("click")})},[]),(0,n.useEffect)(()=>{if(!a)return d.current=w,void l(!0);"wc-koin-billet"===w&&"wc-koin-billet"!==d.current&&f(),d.current=w},[w,a]),(0,n.useEffect)(()=>{const e=e=>{"koin-popup-about"===e.target.id&&k()},o=document.querySelector("#koin-popup-about");return o&&o.addEventListener("click",e),()=>{o&&o.removeEventListener("click",e)}},[]),(0,u.jsx)("div",{ref:t,id:"koin-popup-about",className:"koin-popup-about "+(e?"koin-popup-about-active":""),children:(0,u.jsxs)("div",{ref:i,className:"koin-popup-about-content",children:[(0,u.jsx)("i",{id:"koin-close-popup",className:"close",onClick:k,children:"×"}),(0,u.jsx)("koin-checkout-banner",{})]})})},scope:"woocommerce-checkout"})})(); -
wc-koin-official/tags/1.3.14/readme.txt
r3364572 r3377555 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1.3.1 36 Stable tag: 1.3.14 7 7 Requires PHP: 7.4 8 8 License: GPLv3 … … 42 42 43 43 == Changelog == 44 45 = 1.3.14 = - 2025-09-18 46 - Fixes the behavior of opening the BNPL banner on blocks checkout 44 47 45 48 = 1.3.13 = - 2025-09-18 -
wc-koin-official/tags/1.3.14/resources/blocks/components/CheckoutBanner/index.jsx
r3279008 r3377555 9 9 const contentRef = useRef(null); 10 10 const [isLoading, setIsLoading] = useState(true); 11 const [isInitialized, setIsInitialized] = useState(false); 12 const previousPaymentMethod = useRef(null); 11 13 12 14 const openPopup = (origin = 'component') => { … … 41 43 42 44 useEffect(() => { 43 if (activePaymentMethod === 'wc-koin-billet') { 45 if (!isInitialized) { 46 previousPaymentMethod.current = activePaymentMethod; 47 setIsInitialized(true); 48 return; 49 } 50 51 if (activePaymentMethod === 'wc-koin-billet' && previousPaymentMethod.current !== 'wc-koin-billet') { 44 52 openPopup(); 45 53 } 46 }, [activePaymentMethod]); 54 55 previousPaymentMethod.current = activePaymentMethod; 56 }, [activePaymentMethod, isInitialized]); 47 57 48 58 useEffect(() => { -
wc-koin-official/tags/1.3.14/vendor/composer/installed.json
r3348291 r3377555 1 1 { 2 2 "packages": [], 3 "dev": false,3 "dev": true, 4 4 "dev-package-names": [] 5 5 } -
wc-koin-official/tags/1.3.14/vendor/composer/installed.php
r3364572 r3377555 2 2 'root' => array( 3 3 'name' => 'apiki/wc-koin-official', 4 'pretty_version' => '1.3.1 3',5 'version' => '1.3.1 3.0',4 'pretty_version' => '1.3.14', 5 'version' => '1.3.14.0', 6 6 'reference' => null, 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', 9 9 'aliases' => array(), 10 'dev' => false,10 'dev' => true, 11 11 ), 12 12 'versions' => array( 13 13 'apiki/wc-koin-official' => array( 14 'pretty_version' => '1.3.1 3',15 'version' => '1.3.1 3.0',14 'pretty_version' => '1.3.14', 15 'version' => '1.3.14.0', 16 16 'reference' => null, 17 17 'type' => 'wordpress-plugin', -
wc-koin-official/tags/1.3.14/wc-koin-official.php
r3364572 r3377555 4 4 * Plugin Name: Koin Official Payments 5 5 * Plugin URI: https://github.com/koinlatam 6 * Version: 1.3.1 36 * Version: 1.3.14 7 7 * Description: Koin Official Payments Gateways 8 8 * Text Domain: wc-koin-official
Note: See TracChangeset
for help on using the changeset viewer.