| 1 |
import { updateCategory } from "@wordpress/blocks"; |
| 2 |
import domReady from "@wordpress/dom-ready"; |
| 3 |
import "./style.scss"; |
| 4 |
import "./editor.scss"; |
| 5 |
import { SmartPostShowLogoIcon } from "../icons/icons.js"; |
| 6 |
import saveBlockCSS from "../controls/saveBlockCSS.js"; |
| 7 |
import "../global-settings/index.js"; |
| 8 |
import "./section-heading/block.js"; |
| 9 |
import "./search-filter/block.js"; |
| 10 |
import "./author-filter/block.js"; |
| 11 |
import "./post-carousel/block.js"; |
| 12 |
import "./post-carousel-two/block.js"; |
| 13 |
import "./post-slider/block.js"; |
| 14 |
import "./post-slider-two/block.js"; |
| 15 |
import "./thumbnail-slider/block.js"; |
| 16 |
import "./thumbnail-slider-two/block.js"; |
| 17 |
import "./news-ticker/block.js"; |
| 18 |
import "./post-grid-one/block.js"; |
| 19 |
import "./post-grid-two/block.js"; |
| 20 |
import "./post-grid-three/block.js"; |
| 21 |
import "./post-grid-four/block.js"; |
| 22 |
import "./post-grid-five/block.js"; |
| 23 |
import "./post-grid-six/block.js"; |
| 24 |
import "./post-list-one/block.js"; |
| 25 |
import "./post-list-two/block.js"; |
| 26 |
import "./post-list-three/block.js"; |
| 27 |
import "./post-timeline-one/block.js"; |
| 28 |
import "./post-timeline-two/block.js"; |
| 29 |
import "./post-timeline-three/block.js"; |
| 30 |
import "./container/block.js"; |
| 31 |
import "./buttons/block.js"; |
| 32 |
import "./button/block.js"; |
| 33 |
import "./smart-search/block.js"; |
| 34 |
import "./column/block.js"; |
| 35 |
import "./social-profiles/block.js"; |
| 36 |
import "./social-profile-item/block.js"; |
| 37 |
import "./pagination/block.js"; |
| 38 |
import "./taxonomy-filter/block.js"; |
| 39 |
import "./sort-filter/block.js"; |
| 40 |
import "./live-filter/block.js"; |
| 41 |
import "./smart-post-parent/block.js"; |
| 42 |
import "./taxonomy/block.js"; |
| 43 |
import "./table-of-content/block.js"; |
| 44 |
import "./smart-image/block.js"; |
| 45 |
import "./smart-info-box/block.js"; |
| 46 |
import "./smart-lists/block.js"; |
| 47 |
import "./smart-list/block.js"; |
| 48 |
import "./shortcode/block.js"; |
| 49 |
import "../prebuild-library/index.js"; |
| 50 |
import "../saved-template-sidebar/index.js"; |
| 51 |
import "./explore-blocks.js"; |
| 52 |
|
| 53 |
updateCategory("sp-smart-post-show", { |
| 54 |
icon: <SmartPostShowLogoIcon color="var(--sp-smart-primary-2-400)" />, |
| 55 |
}); |
| 56 |
|
| 57 |
const ProBadgeIcon = () => ( |
| 58 |
<svg |
| 59 |
width={18} |
| 60 |
height={18} |
| 61 |
viewBox="0 0 18 18" |
| 62 |
fill="none" |
| 63 |
xmlns="http://www.w3.org/2000/svg" |
| 64 |
> |
| 65 |
<path |
| 66 |
d="M0 9a9 9 0 1 1 18 0A9 9 0 0 1 0 9" |
| 67 |
fill="#4ab866" |
| 68 |
fillOpacity={0.1} |
| 69 |
/> |
| 70 |
<path |
| 71 |
d="M9 .5a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17Z" |
| 72 |
stroke="#4ab866" |
| 73 |
strokeOpacity={0.6} |
| 74 |
/> |
| 75 |
<g clipPath="url(#a)" fill="#4ab866"> |
| 76 |
<path |
| 77 |
d="M10.386 7.761a.84.84 0 0 0 .557.428.78.78 0 0 0 .69-.195l1.46-1.34-.473 3.767H5.39l-.475-3.767 1.462 1.34a.78.78 0 0 0 .69.195.84.84 0 0 0 .557-.428l1.38-2.533z" |
| 78 |
stroke="#4ab866" |
| 79 |
strokeWidth={0.847} |
| 80 |
/> |
| 81 |
<path d="M12.577 13.282H5.432c-.23 0-.416-.228-.416-.508v-1.117h7.977v1.117c0 .28-.186.508-.416.508" /> |
| 82 |
</g> |
| 83 |
<defs> |
| 84 |
<clipPath id="a"> |
| 85 |
<path fill="#fff" d="M4 4h10v10H4z" /> |
| 86 |
</clipPath> |
| 87 |
</defs> |
| 88 |
</svg> |
| 89 |
); |
| 90 |
|
| 91 |
updateCategory("sp-smart-post-show-pro-blocks", { |
| 92 |
icon: <ProBadgeIcon />, |
| 93 |
}); |
| 94 |
|
| 95 |
domReady(() => { |
| 96 |
saveBlockCSS(); |
| 97 |
}); |
| 98 |
|