Plugin Directory

Changeset 3409887


Ignore:
Timestamp:
12/03/2025 05:00:32 PM (4 months ago)
Author:
them.es
Message:

updated trunk

Location:
i-toolbar
Files:
2122 added
7 edited

Legend:

Unmodified
Added
Removed
  • i-toolbar/trunk/assets/bootstrap-icons/icons/arrow-down-left-circle.svg

    r3018847 r3409887  
    1 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-down-left-circle" viewBox="0 0 16 16">
    2   <path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-5.904-2.854a.5.5 0 1 1 .707.708L6.707 9.95h2.768a.5.5 0 1 1 0 1H5.5a.5.5 0 0 1-.5-.5V6.475a.5.5 0 1 1 1 0v2.768z"/>
    3 </svg>
  • i-toolbar/trunk/assets/bootstrap-icons/icons/emoji-grin.svg

    r3018847 r3409887  
    1 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-emoji-grin" viewBox="0 0 16 16">
    2   <path d="M12.946 11.398A6.002 6.002 0 0 1 2.108 9.14c-.114-.595.426-1.068 1.028-.997C4.405 8.289 6.48 8.5 8 8.5s3.595-.21 4.864-.358c.602-.07 1.142.402 1.028.998a5.95 5.95 0 0 1-.946 2.258m-.078-2.25C11.588 9.295 9.539 9.5 8 9.5s-3.589-.205-4.868-.352c.11.468.286.91.517 1.317A37 37 0 0 0 8 10.75a37 37 0 0 0 4.351-.285c.231-.407.407-.85.517-1.317m-1.36 2.416c-1.02.1-2.255.186-3.508.186s-2.488-.086-3.507-.186A5 5 0 0 0 8 13a5 5 0 0 0 3.507-1.436ZM6.488 7c.114-.294.179-.636.179-1 0-1.105-.597-2-1.334-2C4.597 4 4 4.895 4 6c0 .364.065.706.178 1 .23-.598.662-1 1.155-1 .494 0 .925.402 1.155 1M12 6c0 .364-.065.706-.178 1-.23-.598-.662-1-1.155-1-.494 0-.925.402-1.155 1a2.8 2.8 0 0 1-.179-1c0-1.105.597-2 1.334-2C11.403 4 12 4.895 12 6"/>
    3   <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m0-1A7 7 0 1 1 8 1a7 7 0 0 1 0 14"/>
    4 </svg>
  • i-toolbar/trunk/assets/bootstrap-icons/icons/spotify.svg

    r3299246 r3409887  
     1<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-spotify" viewBox="0 0 16 16">
     2  <path d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m3.669 11.538a.5.5 0 0 1-.686.165c-1.879-1.147-4.243-1.407-7.028-.77a.499.499 0 0 1-.222-.973c3.048-.696 5.662-.397 7.77.892a.5.5 0 0 1 .166.686m.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.321-5.428-1.704-7.972-.932a.625.625 0 0 1-.362-1.194c2.905-.881 6.517-.454 8.986 1.063a.624.624 0 0 1 .206.858m.084-2.268C10.154 5.56 5.9 5.419 3.438 6.166a.748.748 0 1 1-.434-1.432c2.825-.857 7.523-.692 10.492 1.07a.747.747 0 1 1-.764 1.288"/>
     3</svg>
  • i-toolbar/trunk/blocks/build/index.asset.php

    r3299246 r3409887  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-i18n', 'wp-rich-text'), 'version' => 'b177502a565a24ec4723');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-i18n', 'wp-rich-text'), 'version' => '4472f49e558b49c6650c');
  • i-toolbar/trunk/blocks/build/index.js

    r3299246 r3409887  
    1 (()=>{"use strict";const o=window.wp.i18n,e=window.wp.blockEditor,t=window.wp.components,n=window.wp.richText,i=window.ReactJSXRuntime,l="bi-picker/icon";(0,n.registerFormatType)(l,{title:"Icon",tagName:"i",className:null,edit:({isActive:s,value:a,onChange:r,onFocus:c})=>{const m=()=>{const o=document.querySelector("#i-toolbar-search input").value;document.querySelectorAll("#i-toolbar-menu button").forEach((e=>{o.length>1?e.innerHTML.includes(o)?e.style.display="flex":e.style.display="none":e.style.display="flex"}))};return(0,i.jsxs)(e.BlockControls,{children:[(0,i.jsx)(t.ToolbarGroup,{children:(0,i.jsx)(t.ToolbarButton,{icon:"info",label:(0,o.__)("Add Icon","i-toolbar"),className:"i-toolbar",onClick:()=>{r(s?(0,n.removeFormat)(a,l):(0,n.toggleFormat)(a,{type:l}))}})}),s&&(0,i.jsxs)(t.Popover,{headerTitle:(0,o.__)("Icons Popover","i-toolbar"),animate:!1,children:[(0,i.jsxs)("label",{id:"i-toolbar-search",children:[(0,i.jsx)("i",{className:"bi bi-search"})," ",(0,i.jsx)("input",{type:"search",onKeyUp:()=>{m()},onChange:()=>{m()},placeholder:(0,o.__)("Filter...","i-toolbar"),autoFocus:!0})]}),(0,i.jsx)("div",{id:"i-toolbar-menu",role:"menu",className:"components-dropdown-menu__menu",children:Object.keys(JSON.parse(globalBootstrapIconToolbarData.iconFontSelection)).map((o=>(0,i.jsxs)("button",{title:o,type:"button",role:"menu-item",className:"components-button components-dropdown-menu__menu-item has-text has-icon",onClick:()=>{r((0,n.insert)(a,(0,n.create)({html:'<i class="bi bi-'+o+'"></i> '}))),c()},children:[(0,i.jsx)("i",{className:"bi bi-"+o}),o]},"button-"+o)))})]})]})}})})();
     1(()=>{"use strict";const o=window.wp.i18n,e=window.wp.blockEditor,t=window.wp.components,n=window.wp.richText,i=window.wp.element,a=window.ReactJSXRuntime,l="bi-picker/icon";(0,n.registerFormatType)(l,{title:(0,o.__)("Icon","i-toolbar"),tagName:"i",className:null,edit:({isActive:s,value:r,onChange:c,onFocus:m})=>{const[b,d]=(0,i.useState)(""),u=JSON.parse(globalBootstrapIconToolbarData.iconFontSelection);return(0,a.jsxs)(e.BlockControls,{children:[(0,a.jsx)(t.ToolbarGroup,{children:(0,a.jsx)(t.ToolbarButton,{icon:"info",label:(0,o.__)("Add Icon","i-toolbar"),className:"i-toolbar",onClick:()=>{c(s?(0,n.removeFormat)(r,l):(0,n.toggleFormat)(r,{type:l}))}})}),s&&(0,a.jsxs)(t.Popover,{headerTitle:(0,o.__)("Icons Popover","i-toolbar"),animate:!1,children:[(0,a.jsxs)("label",{id:"i-toolbar-search",children:[(0,a.jsx)("i",{className:"bi bi-search"}),(0,a.jsx)("input",{type:"search",value:b,onChange:o=>d(o.target.value),placeholder:(0,o.__)("Filter...","i-toolbar"),autoFocus:!0})]}),(0,a.jsx)("div",{id:"i-toolbar-menu",role:"menu",className:"components-dropdown-menu__menu",children:Object.keys(u).filter(o=>o.includes(b)||b.length<2).map(o=>(0,a.jsxs)("button",{title:o,type:"button",role:"menu-item",className:"components-button components-dropdown-menu__menu-item has-text has-icon",onClick:()=>{c((0,n.insert)(r,(0,n.create)({html:`<i class="bi bi-${o}"></i> `}))),m()},children:[(0,a.jsx)("i",{className:`bi bi-${o}`}),o]},`button-${o}`))})]})]})}})})();
  • i-toolbar/trunk/i-toolbar.php

    r3299246 r3409887  
    44 * Plugin URI: https://wordpress.org/plugins/i-toolbar
    55 * Description: A simple &lt;i&gt;con picker for rich-text blocks. Powered by Bootstrap Icons (MIT).
    6  * Version: 1.1.11
     6 * Version: 1.2.0
    77 * Author: them.es
    88 * Author URI: https://them.es/plugins/i-toolbar
     
    8787    );
    8888}
    89 add_action( 'enqueue_block_editor_assets', 'i_toolbar_enqueue_editor_assets' );
     89add_action( 'enqueue_block_assets', 'i_toolbar_enqueue_editor_assets' );
  • i-toolbar/trunk/readme.txt

    r3299246 r3409887  
    44Tags: Icon, Icons, Bootstrap, Editor, Gutenberg
    55Requires at least: 5.6
    6 Tested up to: 6.8
    7 Stable tag: 1.1.11
     6Tested up to: 6.9
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060
    6161== Changelog ==
     62
     63= 1.2.0 =
     64* Code refactoring
     65* Compatibility with the iframed Editor
     66* Tested up to WordPress 6.9
    6267
    6368= 1.1.11 =
Note: See TracChangeset for help on using the changeset viewer.