| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"name": "b-blocks/lottie-player", |
| 4 |
"title": "Lottie Player", |
| 5 |
"description": "Lottie player for display lottie files.", |
| 6 |
"category": "bBlocks", |
| 7 |
"keywords": [ |
| 8 |
"lottie player", |
| 9 |
"json player", |
| 10 |
"lottie animation" |
| 11 |
], |
| 12 |
"textdomain": "b-blocks", |
| 13 |
"attributes": { |
| 14 |
"align": { |
| 15 |
"type": "string", |
| 16 |
"default": "" |
| 17 |
}, |
| 18 |
"playerAlign": { |
| 19 |
"type": "string", |
| 20 |
"default": "center" |
| 21 |
}, |
| 22 |
"file": { |
| 23 |
"type": "string", |
| 24 |
"default": "https://assets4.lottiefiles.com/datafiles/zc3XRzudyWE36ZBJr7PIkkqq0PFIrIBgp4ojqShI/newAnimation.json" |
| 25 |
}, |
| 26 |
"isControls": { |
| 27 |
"type": "boolean", |
| 28 |
"default": true |
| 29 |
}, |
| 30 |
"isAutoplay": { |
| 31 |
"type": "boolean", |
| 32 |
"default": true |
| 33 |
}, |
| 34 |
"isLoop": { |
| 35 |
"type": "boolean", |
| 36 |
"default": true |
| 37 |
}, |
| 38 |
"isHover": { |
| 39 |
"type": "boolean", |
| 40 |
"default": false |
| 41 |
}, |
| 42 |
"mode": { |
| 43 |
"type": "string", |
| 44 |
"default": "normal" |
| 45 |
}, |
| 46 |
"direction": { |
| 47 |
"type": "number", |
| 48 |
"default": 1 |
| 49 |
}, |
| 50 |
"count": { |
| 51 |
"type": "number", |
| 52 |
"default": 0 |
| 53 |
}, |
| 54 |
"speed": { |
| 55 |
"type": "number", |
| 56 |
"default": 1 |
| 57 |
}, |
| 58 |
"intermission": { |
| 59 |
"type": "number", |
| 60 |
"default": 0 |
| 61 |
}, |
| 62 |
"link": { |
| 63 |
"type": "string", |
| 64 |
"default": "" |
| 65 |
}, |
| 66 |
"isLinkInNewTab": { |
| 67 |
"type": "boolean", |
| 68 |
"default": false |
| 69 |
}, |
| 70 |
"interactivity": { |
| 71 |
"type": "string", |
| 72 |
"default": "noInteractivity" |
| 73 |
}, |
| 74 |
"interactivityMode": { |
| 75 |
"type": "string", |
| 76 |
"default": "" |
| 77 |
}, |
| 78 |
"interactivityContainer": { |
| 79 |
"type": "string", |
| 80 |
"default": ".wp-block-b-blocks-lottie-player" |
| 81 |
}, |
| 82 |
"interactivityActions": { |
| 83 |
"type": "array", |
| 84 |
"default": [] |
| 85 |
}, |
| 86 |
"width": { |
| 87 |
"type": "string", |
| 88 |
"default": "" |
| 89 |
}, |
| 90 |
"background": { |
| 91 |
"type": "string", |
| 92 |
"default": "#0000" |
| 93 |
}, |
| 94 |
"controlsHeight": { |
| 95 |
"type": "string", |
| 96 |
"default": "35px" |
| 97 |
}, |
| 98 |
"controlsBG": { |
| 99 |
"type": "string", |
| 100 |
"default": "#0000" |
| 101 |
}, |
| 102 |
"controlsIconColor": { |
| 103 |
"type": "string", |
| 104 |
"default": "#146EF5" |
| 105 |
}, |
| 106 |
"controlsIconHoverColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#FF7A00" |
| 109 |
}, |
| 110 |
"controlsIconActiveColor": { |
| 111 |
"type": "string", |
| 112 |
"default": "#FF7A00" |
| 113 |
}, |
| 114 |
"controlsTrackColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#FF7A00" |
| 117 |
}, |
| 118 |
"controlsThumbColor": { |
| 119 |
"type": "string", |
| 120 |
"default": "#146EF5" |
| 121 |
}, |
| 122 |
"isCap": { |
| 123 |
"type": "boolean", |
| 124 |
"default": false |
| 125 |
}, |
| 126 |
"caption": { |
| 127 |
"type": "string", |
| 128 |
"default": "", |
| 129 |
"selector": ".bBlocksLottiePlayer .caption" |
| 130 |
}, |
| 131 |
"capAlign": { |
| 132 |
"type": "string", |
| 133 |
"default": "center" |
| 134 |
}, |
| 135 |
"capColors": { |
| 136 |
"type": "object", |
| 137 |
"default": { |
| 138 |
"color": "#333" |
| 139 |
} |
| 140 |
}, |
| 141 |
"capTypo": { |
| 142 |
"type": "object", |
| 143 |
"default": { |
| 144 |
"fontSize": { |
| 145 |
"desktop": { |
| 146 |
"desktop": "14px" |
| 147 |
} |
| 148 |
} |
| 149 |
} |
| 150 |
}, |
| 151 |
"capPadding": { |
| 152 |
"type": "object", |
| 153 |
"default": { |
| 154 |
"vertical": "5px", |
| 155 |
"horizontal": "10px" |
| 156 |
} |
| 157 |
}, |
| 158 |
"capMargin": { |
| 159 |
"type": "object", |
| 160 |
"default": { |
| 161 |
"side": 4, |
| 162 |
"top": "5px" |
| 163 |
} |
| 164 |
} |
| 165 |
}, |
| 166 |
"supports": { |
| 167 |
"align": [ |
| 168 |
"wide", |
| 169 |
"full" |
| 170 |
], |
| 171 |
"html": false |
| 172 |
}, |
| 173 |
"example": { |
| 174 |
"attributes": { |
| 175 |
"preview": true |
| 176 |
} |
| 177 |
}, |
| 178 |
"editorScript": "file:../index.js", |
| 179 |
"style": "file:./view.css", |
| 180 |
"render": "file:./render.php", |
| 181 |
"viewScript": [ |
| 182 |
"file:./view.js", |
| 183 |
"dotLottiePlayer", |
| 184 |
"lottieInteractivity" |
| 185 |
] |
| 186 |
} |