Plugin Directory

Changeset 3282568


Ignore:
Timestamp:
04/27/2025 05:36:55 AM (11 months ago)
Author:
coderstime
Message:

version 2.0.5 release

Location:
necessary-blocks
Files:
456 added
8 edited

Legend:

Unmodified
Added
Removed
  • necessary-blocks/trunk/build/blocks/member-block/block.json

    r3256512 r3282568  
    77  "icon": "id",
    88  "description": "Teamcard block single",
     9  "parent": [
     10    "necessary-block/team-block"
     11  ],
    912  "example": {},
    1013  "supports": {
  • necessary-blocks/trunk/build/blocks/member-block/index.asset.php

    r3256512 r3282568  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '0c5e0e265e313420de5d');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '90082a0c98a84dadc305');
  • necessary-blocks/trunk/build/blocks/member-block/index.js

    r3256512 r3282568  
    1 (()=>{"use strict";var e,t={3592:()=>{const e=window.wp.blocks,t=window.wp.primitives,r=window.ReactJSXRuntime,s=(0,r.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)(t.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),i=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,o=window.wp.element,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"necessary-block/member-block","version":"1.7.1","title":"Member Block","icon":"id","description":"Teamcard block single","example":{},"supports":{"html":false,"align":["wide","full"],"color":{"background":true,"text":true,"enableContrastChecker":false},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"className":true,"customClassName":true},"usesContext":["memberBackground"],"attributes":{"name":{"type":"string"},"role":{"type":"string"},"description":{"type":"string"},"image":{"type":"object"},"linkBehavior":{"type":"string","default":""},"memberBackground":{"type":"string"}},"textdomain":"member-block","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),c={...a,icon:s,example:{attributes:{}}};(0,e.registerBlockType)(a.name,{...c,edit:function({attributes:e,context:t,setAttributes:s}){const{name:a,role:c,description:d,image:u}=e,{memberBackground:p}=t;return(0,o.useEffect)((()=>{s({memberBackground:p})}),[p]),(0,r.jsxs)("div",{...(0,l.useBlockProps)({style:{backgroundColor:p}}),children:[(0,r.jsx)(l.InspectorControls,{children:(0,r.jsxs)(n.PanelBody,{children:[(0,r.jsx)(n.Button,{variant:"tertiary",style:{width:"100%",justifyContent:"center"},children:(0,i.__)("Member Image","necessary-blocks")}),(0,r.jsx)(l.MediaUploadCheck,{children:(0,r.jsx)(l.MediaUpload,{onSelect:e=>s("image",{id:e.id,title:e.title,alt:e.alt,description:e.description,caption:e.caption,sizes:e.sizes}),allowedTypes:["image"],value:u?.id,render:({open:e})=>u?.id?(0,r.jsx)("img",{className:"necessary-member-block",src:u?.sizes?.thumbnail?.url,alt:u?.alt,onClick:e,style:{display:"flex",margin:"5px auto 20px",cursor:"pointer"}}):(0,r.jsx)(n.Button,{onClick:e,children:(0,i.__)("Select Image","necessary-blocks")})})}),(0,r.jsx)(n.Button,{variant:"primary",onClick:()=>{document.querySelector("button[aria-label='Styles']").click()},style:{width:"100%",justifyContent:"center",fontWeight:700,letterSpacing:"2px"},children:(0,i.__)("Style Block","necessary-block")})]})}),(0,r.jsx)(l.MediaUploadCheck,{children:(0,r.jsx)(l.MediaUpload,{onSelect:e=>s({image:{id:e.id,title:e.title,alt:e.alt,description:e.description,caption:e.caption,sizes:e.sizes}}),allowedTypes:["image"],value:u?.id,render:({open:e})=>u?.id?(0,r.jsx)("img",{src:u?.sizes?.thumbnail?.url,alt:u?.alt,onClick:e,style:{width:"100px",height:"100px",borderRadius:"50%",cursor:"pointer"}}):(0,r.jsx)(n.Button,{onClick:e,children:(0,i.__)("Select Image","necessary-blocks")})})}),(0,r.jsx)(n.TextControl,{label:(0,i.__)("Name","necessary-blocks"),value:a,onChange:e=>s({name:e})}),(0,r.jsx)(n.TextControl,{label:(0,i.__)("Role","necessary-blocks"),value:c,onChange:e=>s({role:e})}),(0,r.jsx)(n.TextareaControl,{label:(0,i.__)("Description","necessary-blocks"),value:d,onChange:e=>s({description:e})}),(0,r.jsx)(l.InnerBlocks,{allowedBlocks:["necessary-block/social-links"],template:[["necessary-block/social-links"]]})]})},save:function({attributes:e}){const{name:t,role:s,description:i,image:n,memberBackground:o}=e;return(0,r.jsxs)("div",{...l.useBlockProps.save({style:{backgroundColor:o}}),children:[n?.sizes?.thumbnail?.url&&(0,r.jsx)("img",{src:n?.sizes?.thumbnail?.url,alt:n?.alt,title:n?.title,style:{width:"100px",height:"100px",borderRadius:"50%",textAlign:"center"}}),(0,r.jsx)("h3",{className:"member-name",children:t}),(0,r.jsx)("p",{className:"member-role",children:s}),(0,r.jsx)("p",{className:"member-description",children:i}),(0,r.jsx)(l.InnerBlocks.Content,{})]})}})}},r={};function s(e){var i=r[e];if(void 0!==i)return i.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,s),l.exports}s.m=t,e=[],s.O=(t,r,i,l)=>{if(!r){var n=1/0;for(d=0;d<e.length;d++){for(var[r,i,l]=e[d],o=!0,a=0;a<r.length;a++)(!1&l||n>=l)&&Object.keys(s.O).every((e=>s.O[e](r[a])))?r.splice(a--,1):(o=!1,l<n&&(n=l));if(o){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,i,l]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={979:0,9179:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var i,l,[n,o,a]=r,c=0;if(n.some((t=>0!==e[t]))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);if(a)var d=a(s)}for(t&&t(r);c<n.length;c++)l=n[c],s.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return s.O(d)},r=globalThis.webpackChunknecessary_blocks=globalThis.webpackChunknecessary_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=s.O(void 0,[9179],(()=>s(3592)));i=s.O(i)})();
     1(()=>{"use strict";var e,t={3592:()=>{const e=window.wp.blocks,t=window.wp.primitives,r=window.ReactJSXRuntime,s=(0,r.jsx)(t.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)(t.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})}),i=window.wp.i18n,l=window.wp.blockEditor,o=window.wp.components,n=window.wp.element,a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"necessary-block/member-block","version":"1.7.1","title":"Member Block","icon":"id","description":"Teamcard block single","parent":["necessary-block/team-block"],"example":{},"supports":{"html":false,"align":["wide","full"],"color":{"background":true,"text":true,"enableContrastChecker":false},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"className":true,"customClassName":true},"usesContext":["memberBackground"],"attributes":{"name":{"type":"string"},"role":{"type":"string"},"description":{"type":"string"},"image":{"type":"object"},"linkBehavior":{"type":"string","default":""},"memberBackground":{"type":"string"}},"textdomain":"member-block","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),c={...a,icon:s,example:{attributes:{}}};(0,e.registerBlockType)(a.name,{...c,edit:function({attributes:e,context:t,setAttributes:s}){const{name:a,role:c,description:d,image:p}=e,{memberBackground:u}=t;return(0,n.useEffect)((()=>{s({memberBackground:u})}),[u]),(0,r.jsxs)("div",{...(0,l.useBlockProps)({style:{backgroundColor:u}}),children:[(0,r.jsx)(l.InspectorControls,{children:(0,r.jsxs)(o.PanelBody,{children:[(0,r.jsx)(o.Button,{variant:"tertiary",style:{width:"100%",justifyContent:"center"},children:(0,i.__)("Member Image","necessary-blocks")}),(0,r.jsx)(l.MediaUploadCheck,{children:(0,r.jsx)(l.MediaUpload,{onSelect:e=>s("image",{id:e.id,title:e.title,alt:e.alt,description:e.description,caption:e.caption,sizes:e.sizes}),allowedTypes:["image"],value:p?.id,render:({open:e})=>p?.id?(0,r.jsx)("img",{className:"necessary-member-block",src:p?.sizes?.thumbnail?.url,alt:p?.alt,onClick:e,style:{display:"flex",margin:"5px auto 20px",cursor:"pointer"}}):(0,r.jsx)(o.Button,{onClick:e,children:(0,i.__)("Select Image","necessary-blocks")})})}),(0,r.jsx)(o.Button,{variant:"primary",onClick:()=>{document.querySelector("button[aria-label='Styles']").click()},style:{width:"100%",justifyContent:"center",fontWeight:700,letterSpacing:"2px"},children:(0,i.__)("Style Block","necessary-block")})]})}),(0,r.jsx)(l.MediaUploadCheck,{children:(0,r.jsx)(l.MediaUpload,{onSelect:e=>s({image:{id:e.id,title:e.title,alt:e.alt,description:e.description,caption:e.caption,sizes:e.sizes}}),allowedTypes:["image"],value:p?.id,render:({open:e})=>p?.id?(0,r.jsx)("img",{src:p?.sizes?.thumbnail?.url,alt:p?.alt,onClick:e,style:{width:"100px",height:"100px",borderRadius:"50%",cursor:"pointer"}}):(0,r.jsx)(o.Button,{onClick:e,children:(0,i.__)("Select Image","necessary-blocks")})})}),(0,r.jsx)(o.TextControl,{label:(0,i.__)("Name","necessary-blocks"),value:a,onChange:e=>s({name:e})}),(0,r.jsx)(o.TextControl,{label:(0,i.__)("Role","necessary-blocks"),value:c,onChange:e=>s({role:e})}),(0,r.jsx)(l.RichText,{tagName:"p",className:"member-description",label:(0,i.__)("Description","necessary-blocks"),placeholder:(0,i.__)("Description","necessary-blocks"),value:d,onChange:e=>s({description:e}),allowedFormats:["core/bold","core/italic","core/link","core/strikethrough","core/code","core/image","core/underline","core/text-color","core/align"]}),(0,r.jsx)(l.InnerBlocks,{allowedBlocks:["necessary-block/social-links"],template:[["necessary-block/social-links"]]})]})},save:function({attributes:e}){const{name:t,role:s,description:i,image:o,memberBackground:n}=e;return(0,r.jsxs)("div",{...l.useBlockProps.save({style:{backgroundColor:n}}),children:[o?.sizes?.thumbnail?.url&&(0,r.jsx)("img",{src:o?.sizes?.thumbnail?.url,alt:o?.alt,title:o?.title,style:{width:"100px",height:"100px",borderRadius:"50%",textAlign:"center"}}),(0,r.jsx)("h3",{className:"member-name",children:t}),(0,r.jsx)("p",{className:"member-role",children:s}),(0,r.jsx)(l.RichText.Content,{tagName:"p",className:"member-description",value:i}),(0,r.jsx)(l.InnerBlocks.Content,{})]})}})}},r={};function s(e){var i=r[e];if(void 0!==i)return i.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,s),l.exports}s.m=t,e=[],s.O=(t,r,i,l)=>{if(!r){var o=1/0;for(d=0;d<e.length;d++){for(var[r,i,l]=e[d],n=!0,a=0;a<r.length;a++)(!1&l||o>=l)&&Object.keys(s.O).every((e=>s.O[e](r[a])))?r.splice(a--,1):(n=!1,l<o&&(o=l));if(n){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,i,l]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={979:0,9179:0};s.O.j=t=>0===e[t];var t=(t,r)=>{var i,l,[o,n,a]=r,c=0;if(o.some((t=>0!==e[t]))){for(i in n)s.o(n,i)&&(s.m[i]=n[i]);if(a)var d=a(s)}for(t&&t(r);c<o.length;c++)l=o[c],s.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return s.O(d)},r=globalThis.webpackChunknecessary_blocks=globalThis.webpackChunknecessary_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=s.O(void 0,[9179],(()=>s(3592)));i=s.O(i)})();
  • necessary-blocks/trunk/build/blocks/team-block/block.json

    r3256512 r3282568  
    88  "icon": "buddicons-buddypress-logo",
    99  "description": "Customizable block designed to showcase team members or individuals.",
     10  "allowedBlocks": [
     11    "necessary-block/member-card"
     12  ],
    1013  "example": {},
    1114  "supports": {
     
    8588    "Team Block",
    8689    "necessary Blocks",
    87     "Team"
     90    "Team",
     91    "Member Block",
     92    "Member Card"
    8893  ],
    8994  "textdomain": "team-block",
  • necessary-blocks/trunk/build/blocks/team-block/index.asset.php

    r3256512 r3282568  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => 'ff02b438954181e86e9c');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n', 'wp-primitives'), 'version' => 'cc41a1d868a83905f71e');
  • necessary-blocks/trunk/build/blocks/team-block/index.js

    r3256512 r3282568  
    1 (()=>{"use strict";var e,t={5020:()=>{const e=window.wp.blocks,t=window.wp.primitives,r=window.ReactJSXRuntime,o=(0,r.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(t.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z",fillRule:"evenodd"})}),n=window.wp.i18n,s=window.wp.blockEditor,a=window.wp.data,i=window.wp.components,l={name:"necessary-block/member-block",attributesToCopy:["name","role","description","fb","twitter","linkedin","instagram","image","linkBehavior","fontsToUse","backgroundColor"]},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"necessary-block/team-block","version":"1.7.2","title":"Team Block","category":"necessary-blocks","icon":"buddicons-buddypress-logo","description":"Customizable block designed to showcase team members or individuals.","example":{},"supports":{"html":false,"__experimentalExposeControlsToChildren":true,"align":["wide","full"],"color":{"background":true,"text":false},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":true}},"typography":{"fontSize":true,"textAlign":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"lineHeight":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"layout":{"allowSwitching":true,"allowInheriting":true,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true},"className":true,"customClassName":true},"attributes":{"memberBackground":{"type":"string","default":"#D9D9D9"}},"providesContext":{"memberBackground":"memberBackground"},"keywords":["Team Block","necessary Blocks","Team"],"textdomain":"team-block","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),u={...c,icon:o,example:{attributes:{},innerBlocks:[{name:"necessary-block/member-block"},{name:"necessary-block/member-block"}]}};(0,e.registerBlockType)(c.name,{...u,edit:function({attributes:t,setAttributes:o}){const{memberBackground:c}=t,{hasBlockVariations:u}=(0,a.useSelect)((t=>({hasBlockVariations:t(e.store).getBlockVariations("necessary-block/member-block","inserter").length>0})),[]),m=(0,s.useInnerBlocksProps)((0,s.useBlockProps)(),{defaultBlock:l,directInsert:!u,template:[["necessary-block/member-block"]],templateInsertUpdatesSelection:!0});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.InspectorControls,{children:[(0,r.jsx)(s.PanelColorSettings,{colorSettings:[{value:c,onChange:e=>o({memberBackground:e}),label:(0,n.__)("Member Background","necessary-block")}]}),(0,r.jsx)(i.PanelBody,{children:(0,r.jsx)(i.Button,{variant:"primary",onClick:()=>{document.querySelector("button[aria-label='Styles']").click()},style:{width:"100%",justifyContent:"center",fontWeight:700,letterSpacing:"2px"},children:(0,n.__)("Style Block","necessary-block")})})]}),(0,r.jsx)("div",{...m})]})},save:function(){const e=s.useInnerBlocksProps.save(s.useBlockProps.save());return(0,r.jsx)("div",{...e})}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=(t,r,n,s)=>{if(!r){var a=1/0;for(u=0;u<e.length;u++){for(var[r,n,s]=e[u],i=!0,l=0;l<r.length;l++)(!1&s||a>=s)&&Object.keys(o.O).every((e=>o.O[e](r[l])))?r.splice(l--,1):(i=!1,s<a&&(a=s));if(i){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[r,n,s]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={9282:0,5414:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,s,[a,i,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(l)var u=l(o)}for(t&&t(r);c<a.length;c++)s=a[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(u)},r=globalThis.webpackChunknecessary_blocks=globalThis.webpackChunknecessary_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[5414],(()=>o(5020)));n=o.O(n)})();
     1(()=>{"use strict";var e,t={5020:()=>{const e=window.wp.blocks,t=window.wp.primitives,r=window.ReactJSXRuntime,o=(0,r.jsx)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r.jsx)(t.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z",fillRule:"evenodd"})}),n=window.wp.i18n,a=window.wp.blockEditor,s=window.wp.data,l=window.wp.components,i={name:"necessary-block/member-block",attributesToCopy:["name","role","description","fb","twitter","linkedin","instagram","image","linkBehavior","fontsToUse","backgroundColor"]},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"necessary-block/team-block","version":"1.7.2","title":"Team Block","category":"necessary-blocks","icon":"buddicons-buddypress-logo","description":"Customizable block designed to showcase team members or individuals.","allowedBlocks":["necessary-block/member-card"],"example":{},"supports":{"html":false,"__experimentalExposeControlsToChildren":true,"align":["wide","full"],"color":{"background":true,"text":false},"spacing":{"blockGap":["horizontal","vertical"],"margin":true,"padding":true,"__experimentalDefaultControls":{"blockGap":true,"margin":false,"padding":true}},"typography":{"fontSize":true,"textAlign":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true,"lineHeight":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"layout":{"allowSwitching":true,"allowInheriting":true,"default":{"type":"flex"}},"interactivity":{"clientNavigation":true},"className":true,"customClassName":true},"attributes":{"memberBackground":{"type":"string","default":"#D9D9D9"}},"providesContext":{"memberBackground":"memberBackground"},"keywords":["Team Block","necessary Blocks","Team","Member Block","Member Card"],"textdomain":"team-block","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'),u={...c,icon:o,example:{attributes:{},innerBlocks:[{name:"necessary-block/member-block"},{name:"necessary-block/member-block"}]}};(0,e.registerBlockType)(c.name,{...u,edit:function({attributes:t,setAttributes:o}){const{memberBackground:c}=t,{hasBlockVariations:u}=(0,s.useSelect)((t=>({hasBlockVariations:t(e.store).getBlockVariations("necessary-block/member-block","inserter").length>0})),[]),m=(0,a.useInnerBlocksProps)((0,a.useBlockProps)(),{defaultBlock:i,directInsert:!u,template:[["necessary-block/member-block"]],templateInsertUpdatesSelection:!0});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.InspectorControls,{children:[(0,r.jsx)(a.PanelColorSettings,{colorSettings:[{value:c,onChange:e=>o({memberBackground:e}),label:(0,n.__)("Member Background","necessary-block")}]}),(0,r.jsx)(l.PanelBody,{children:(0,r.jsx)(l.Button,{variant:"primary",onClick:()=>{document.querySelector("button[aria-label='Styles']").click()},style:{width:"100%",justifyContent:"center",fontWeight:700,letterSpacing:"2px"},children:(0,n.__)("Style Block","necessary-block")})})]}),(0,r.jsx)("div",{...m})]})},save:function(){const e=a.useInnerBlocksProps.save(a.useBlockProps.save());return(0,r.jsx)("div",{...e})}})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var s=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],l=!0,i=0;i<r.length;i++)(!1&a||s>=a)&&Object.keys(o.O).every((e=>o.O[e](r[i])))?r.splice(i--,1):(l=!1,a<s&&(s=a));if(l){e.splice(u--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={9282:0,5414:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[s,l,i]=r,c=0;if(s.some((t=>0!==e[t]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(i)var u=i(o)}for(t&&t(r);c<s.length;c++)a=s[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=globalThis.webpackChunknecessary_blocks=globalThis.webpackChunknecessary_blocks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[5414],(()=>o(5020)));n=o.O(n)})();
  • necessary-blocks/trunk/necessary-blocks.php

    r3280765 r3282568  
    66 * Requires at least: 6.1
    77 * Requires PHP:      7.0
    8  * Version:           2.0.4
    9  * Author:            coderstime
     8 * Version:           2.0.5
     9 * Author:            coderstime, lincolndu
    1010 * Author URI:        https://necessaryblocks.com/
    1111 * License:           GPL-2.0-or-later
  • necessary-blocks/trunk/readme.txt

    r3280777 r3282568  
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 2.0.4
     7Stable tag: 2.0.5
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    179179
    180180== Changelog ==
     181= 2.0.5 - 2025-4-27 =
     182* Team/Member block optimized Multiple line
     183* Member block now using richtext for description
     184* Restrict member block in Team Block.
     185
    181186= 2.0.4 - 2025-4-24 =
    182187* Stack block added
Note: See TracChangeset for help on using the changeset viewer.