{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "create-block/posts-carousel-block",
  "version": "0.1.0",
  "title": "Posts Carousel (Free)",
  "category": "adaire-blocks-free",
  "description": "A draggable posts carousel with beautiful GSAP animations, category filtering, and the same customization options as the posts grid block.",
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "customClassName": true
  },
  "textdomain": "posts-carousel-block",
  "editorScript": "file:./index.js",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "attributes": {
    "blockId": {
      "type": "string",
      "default": ""
    },
    "postsPerPage": {
      "type": "number",
      "default": 6
    },
    "enablePagination": {
      "type": "boolean",
      "default": false
    },
    "paginationStyle": {
      "type": "string",
      "default": "numbers"
    },
    "selectedCategories": {
      "type": "array",
      "default": []
    },
    "selectedPosts": {
      "type": "array",
      "default": []
    },
    "postType": {
      "type": "string",
      "default": "post"
    },
    "excludeCurrentPost": {
      "type": "boolean",
      "default": true
    },
    "showCategories": {
      "type": "boolean",
      "default": true
    },
    "showDate": {
      "type": "boolean",
      "default": true
    },
    "showAuthor": {
      "type": "boolean",
      "default": true
    },
    "showReadTime": {
      "type": "boolean",
      "default": true
    },
    "showExcerpt": {
      "type": "boolean",
      "default": true
    },
    "excerptLength": {
      "type": "number",
      "default": 20
    },
    "layoutType": {
      "type": "string",
      "default": "normal"
    },
    "columns": {
      "type": "number",
      "default": 3
    },
    "slidesPerView": {
      "type": "object",
      "default": {
        "desktop": 4,
        "tablet": 3,
        "mobile": 2
      }
    },
    "autoplay": {
      "type": "boolean",
      "default": false
    },
    "autoplaySpeed": {
      "type": "number",
      "default": 3000
    },
    "enableFiltering": {
      "type": "boolean",
      "default": false
    },
    "filterPosition": {
      "type": "string",
      "default": "top"
    },
    "filterStyle": {
      "type": "string",
      "default": "pills"
    },
    "cardBorderRadius": {
      "type": "number",
      "default": 8
    },
    "cardPadding": {
      "type": "number",
      "default": 20
    },
    "cardGap": {
      "type": "number",
      "default": 24
    },
    "imageHeight": {
      "type": "number",
      "default": 200
    },
    "imageFit": {
      "type": "string",
      "default": "cover"
    },
    "titleColor": {
      "type": "string",
      "default": "#1f2937"
    },
    "titleFontSize": {
      "type": "number",
      "default": 18
    },
    "titleFontWeight": {
      "type": "string",
      "default": "600"
    },
    "excerptColor": {
      "type": "string",
      "default": "#6b7280"
    },
    "excerptFontSize": {
      "type": "number",
      "default": 14
    },
    "excerptFontWeight": {
      "type": "string",
      "default": "400"
    },
    "metaColor": {
      "type": "string",
      "default": "#9ca3af"
    },
    "metaFontSize": {
      "type": "number",
      "default": 12
    },
    "metaFontWeight": {
      "type": "string",
      "default": "400"
    },
    "categoryColor": {
      "type": "string",
      "default": "#3b82f6"
    },
    "categoryBackgroundColor": {
      "type": "string",
      "default": "#f1f5f9"
    },
    "categoryBorderRadius": {
      "type": "number",
      "default": 16
    },
    "filterBorderRadius": {
      "type": "number",
      "default": 16
    },
    "paginationBorderRadius": {
      "type": "number",
      "default": 6
    },
    "enableAnimations": {
      "type": "boolean",
      "default": true
    },
    "animationType": {
      "type": "string",
      "default": "fadeUp"
    },
    "transitionAnimation": {
      "type": "string",
      "default": "fade"
    },
    "animationDuration": {
      "type": "number",
      "default": 0.6
    },
    "animationDelay": {
      "type": "number",
      "default": 0.1
    },
    "animationEase": {
      "type": "string",
      "default": "power2.out"
    },
    "enableHoverEffects": {
      "type": "boolean",
      "default": true
    },
    "hoverScale": {
      "type": "number",
      "default": 1.05
    },
    "hoverShadow": {
      "type": "boolean",
      "default": true
    },
    "overlayOpacity": {
      "type": "number",
      "default": 0.4
    },
    "overlayGradient": {
      "type": "string",
      "default": "linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%)"
    },
    "textAlign": {
      "type": "string",
      "default": "left"
    },
    "containerMode": {
      "type": "string",
      "default": "full"
    },
    "containerMaxWidth": {
      "type": "object",
      "default": {
        "desktop": {
          "value": 1200,
          "unit": "px"
        },
        "tablet": {
          "value": 100,
          "unit": "%"
        },
        "mobile": {
          "value": 100,
          "unit": "%"
        }
      }
    },
    "marginTop": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "marginRight": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "marginBottom": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "marginLeft": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "paddingTop": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "paddingRight": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "paddingBottom": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "paddingLeft": {
      "type": "object",
      "default": {
        "desktop": 0,
        "tablet": 0,
        "mobile": 0
      }
    },
    "dragCursorText": {
      "type": "string",
      "default": "Drag"
    },
    "dragCursorFontSize": {
      "type": "number",
      "default": 16
    },
    "dragCursorFontWeight": {
      "type": "string",
      "default": "500"
    },
    "dragCursorColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "dragCursorSize": {
      "type": "number",
      "default": 80
    },
    "dragCursorTextTransform": {
      "type": "string",
      "default": "uppercase"
    },
    "dragCursorBgColor": {
      "type": "string",
      "default": "#7c3aed"
    }
  },
  "icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_94_160)\">\n<g clip-path=\"url(#clip1_94_160)\">\n<path d=\"M22.9983 16.4879C22.9907 16.3871 22.9548 16.2907 22.8949 16.2106C22.8351 16.1305 22.7538 16.07 22.6612 16.0366L20.47 15.2174L19.2683 14.7661L17.2457 14.0094V4.81054C17.2457 4.59557 17.1627 4.38941 17.0151 4.2374C16.8675 4.08539 16.6673 4 16.4585 4H6.78713C6.57851 4.00046 6.37856 4.086 6.23104 4.23791C6.08352 4.38982 6.00045 4.59571 6 4.81054V17.9319C6.00045 18.1468 6.08352 18.3527 6.23104 18.5046C6.37856 18.6565 6.57851 18.742 6.78713 18.7425H14.8472L15.0747 19.3864L15.4489 20.4503L16.2327 22.6529C16.2652 22.7485 16.3242 22.8324 16.4023 22.894C16.4805 22.9557 16.5744 22.9925 16.6726 23H16.713C16.8045 23.0004 16.8943 22.9753 16.9729 22.9273C17.0516 22.8793 17.1161 22.8103 17.1597 22.7275L19.1368 19.0271L22.7337 16.9895C22.8204 16.9415 22.8917 16.8685 22.9387 16.7794C22.9857 16.6903 23.0064 16.589 22.9983 16.4879ZM7.00119 17.9389C6.96453 17.9389 6.92938 17.9239 6.90346 17.8972C6.87754 17.8705 6.86298 17.8343 6.86298 17.7966V4.93204C6.86297 4.89413 6.87748 4.85774 6.90335 4.83077C6.92923 4.80381 6.96438 4.78843 7.00119 4.78797H16.258C16.2951 4.78797 16.3306 4.80315 16.3569 4.83017C16.3831 4.85718 16.3979 4.89383 16.3979 4.93204V13.6883L15.6512 13.4089L13.5881 12.6365C13.4968 12.6001 13.3971 12.5919 13.3012 12.6127C13.2054 12.6336 13.1175 12.6827 13.0482 12.754C12.979 12.8253 12.9313 12.9158 12.9111 13.0145C12.8908 13.1132 12.8988 13.2159 12.9342 13.3099L13.3808 14.577H9.63394L10.5492 13.6345C10.6202 13.5566 10.6589 13.4533 10.6573 13.3465C10.6557 13.2397 10.6137 13.1377 10.5403 13.0621C10.467 12.9866 10.368 12.9434 10.2642 12.9417C10.1605 12.94 10.0602 12.98 9.98453 13.0531L8.38836 14.6984L8.37993 14.7106C8.34693 14.7461 8.32013 14.7872 8.30071 14.8321C8.28212 14.882 8.27241 14.9349 8.27206 14.9883C8.27143 15.0418 8.28117 15.0949 8.30071 15.1445C8.3213 15.195 8.35105 15.2409 8.38836 15.2799L9.98453 16.9253C10.0212 16.9655 10.0653 16.9977 10.1142 17.02C10.1631 17.0423 10.216 17.0542 10.2695 17.0551C10.323 17.0559 10.3761 17.0457 10.4257 17.0251C10.4754 17.0044 10.5204 16.9736 10.5583 16.9346C10.5961 16.8957 10.626 16.8493 10.6461 16.7982C10.6662 16.7471 10.6761 16.6924 10.6752 16.6373C10.6744 16.5821 10.6628 16.5278 10.6411 16.4774C10.6195 16.427 10.5882 16.3816 10.5492 16.3438L9.63394 15.4014H13.669L14.0196 16.3924L14.5657 17.9406L7.00119 17.9389ZM18.6311 18.2582C18.5339 18.3136 18.4542 18.3968 18.4019 18.4978L16.6726 21.7156L13.9926 13.7317L21.746 16.4914L18.6311 18.2582Z\" fill=\"#D52940\"/>\n<path d=\"M5 4.44323C5 4.19843 4.77614 4 4.5 4C4.22386 4 4 4.19843 4 4.44323V18.5567C4 18.8015 4.22386 19 4.5 19C4.77614 19 5 18.8015 5 18.5567V4.44323Z\" fill=\"#D52940\"/>\n<path d=\"M3 5.4397C3 5.19686 2.77614 5 2.5 5C2.22386 5 2 5.19686 2 5.4397V17.5603C2 17.8031 2.22386 18 2.5 18C2.77614 18 3 17.8031 3 17.5603V5.4397Z\" fill=\"#D52940\"/>\n<path d=\"M18.4751 4.00061C18.3452 4.00894 18.2237 4.06211 18.1354 4.14925C18.0471 4.23639 17.9987 4.35094 18 4.4695V13.5436C17.9994 13.6356 18.0297 13.7256 18.0868 13.8016C18.1438 13.8776 18.225 13.9359 18.3194 13.9688C18.3952 13.9958 18.4771 14.0055 18.558 13.997C18.6389 13.9886 18.7162 13.9622 18.7833 13.9203C18.8505 13.8783 18.9053 13.8221 18.9431 13.7564C18.9808 13.6908 19.0004 13.6177 19 13.5436V4.45677C19.0004 4.39491 18.9868 4.33364 18.9603 4.2767C18.9337 4.21977 18.8947 4.16838 18.8455 4.12567C18.7964 4.08296 18.7382 4.04984 18.6745 4.02833C18.6108 4.00683 18.5429 3.9974 18.4751 4.00061Z\" fill=\"#D52940\"/>\n<path d=\"M21 5.41948C21.0001 5.36273 20.9864 5.30656 20.9597 5.25437C20.933 5.20218 20.894 5.15507 20.8449 5.11589C20.7958 5.0767 20.7377 5.04628 20.6741 5.02644C20.6106 5.0066 20.5428 4.99777 20.4751 5.00048C20.3452 5.00813 20.2237 5.05697 20.1354 5.13702C20.0471 5.21706 19.9987 5.32227 20 5.43116V13.5824C19.9998 13.6667 20.0303 13.749 20.0873 13.8185C20.1444 13.8879 20.2253 13.9413 20.3194 13.9714C20.395 13.9961 20.4768 14.005 20.5575 13.9973C20.6382 13.9896 20.7154 13.9656 20.7825 13.9272C20.8496 13.8889 20.9045 13.8375 20.9424 13.7774C20.9803 13.7173 21 13.6504 21 13.5824V5.41948Z\" fill=\"#D52940\"/>\n</g>\n</g>\n<defs>\n<clipPath id=\"clip0_94_160\">\n<rect width=\"24\" height=\"24\" rx=\"5\" fill=\"white\"/>\n</clipPath>\n<clipPath id=\"clip1_94_160\">\n<rect width=\"24\" height=\"24\" fill=\"white\"/>\n</clipPath>\n</defs>\n</svg>"
}