PluginProbe
Text Typing – grab attention with animated typing headlines / trunk
Text Typing – grab attention with animated typing headlines vtrunk
2.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
text-typing / dashboard / utils / data.js

data.js in Text Typing – grab attention with animated typing headlines trunk, at dashboard/utils/data.js

435 lines 15.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { allBlocks } from "./blocks";
2 import { textTypingBanner } from "../assets/banner";
3
4 const slug = "text-typing";
5
6 export const dashboardInfo = (info) => {
7 const {
8 version,
9 adminUrl,
10 uninstallNonce,
11 deleteDataOnUninstall,
12 disabledBlocks = [],
13 disabledBlocksNonce,
14 } = info;
15
16 return {
17 name: "Typing Text",
18 displayName:
19 "Typing Text - Add Animated Typing Effects to Headings or Text",
20 description:
21 "Typing Text Block is a powerful and easy-to-use WordPress block that lets you create realistic typing text animations without any coding. Perfect for hero sections, banners, headlines, and call-to-action areas, it helps you highlight key messages in an engaging and modern way.",
22 slug,
23 version,
24 adminUrl,
25 uninstallNonce,
26 deleteDataOnUninstall,
27 disabledBlocks,
28 disabledBlocksNonce,
29 displayOurPlugins: true,
30 showUpgrade: true,
31 freemius: {
32 product_id: 20170,
33 plan_id: 33453,
34 public_key: "pk_b0a805a4574f7a1db93e8859282de",
35 },
36 media: {
37 logo: `https://ps.w.org/${slug}/assets/icon-128x128.png`,
38 banner: `https://ps.w.org/${slug}/assets/banner-772x250.png`,
39 thumbnail: textTypingBanner,
40 // Previous remote banner: `https://bplugins.com/wp-content/themes/b-technologies/assets/images/products/${slug}.png`
41 // proThumbnail: `https://bplugins.com/wp-content/themes/b-technologies/assets/images/products/${slug}-pro.png`,
42 // video: 'https://youtu.be/n3B4SpbDS30',
43 // isYoutube: true
44 },
45 pages: {
46 org: `https://wordpress.org/plugins/${slug}/`,
47 landing: `https://bplugins.com/products/${slug}/`,
48 docs: `https://bplugins.com/docs/typing-text-block/`,
49 pricing: `https://bplugins.com/products/${slug}/pricing`,
50 },
51 startButton: {
52 label: "Start Now",
53 url: "wp-admin/post-new.php?post_type=text-typing",
54 },
55 };
56 };
57
58 export const welcomeInfo = (adminUrl = "") => ({
59 // Hero card keyword chips (rendered by the canonical Welcome/Overview).
60 keywordsLabel: "Themes",
61 keywords: [
62 "Default",
63 "Terminal",
64 "Star Flower",
65 "Neon Grid",
66 "Aurora Glow",
67 "Cyber Wave",
68 ],
69
70 // Tabbed getting-started guide shown beside the hero card.
71 gettingStarted: {
72 tabs: [
73 {
74 key: "block-editor",
75 label: "Block Editor",
76 steps: [
77 {
78 num: 1,
79 title: "Open the Editor",
80 body: "Edit any post or page, or create a new one.",
81 link: { url: `${adminUrl}post-new.php`, label: "New Post" },
82 },
83 {
84 num: 2,
85 title: "Insert the Typing Text Block",
86 body: "Click the <strong>+</strong> inserter and search <strong>Typing Text</strong>, then drop it into your content.",
87 },
88 {
89 num: 3,
90 title: "Add Your Phrases",
91 body: "Type the words or sentences you want animated. Add a <strong>prefix/suffix</strong> or multiple lines to cycle through.",
92 },
93 {
94 num: 4,
95 title: "Style & Publish",
96 body: "Pick a theme, tune cursor, speed, colors, and loop in the sidebar, then <strong>Publish</strong>.",
97 },
98 ],
99 },
100 {
101 key: "shortcode",
102 label: "Shortcode",
103 steps: [
104 {
105 num: 1,
106 title: "Create a Typing Text",
107 body: "Go to <strong>Text Typing &rsaquo; Add New ShortCode</strong> and build your animation.",
108 link: {
109 url: `${adminUrl}post-new.php?post_type=text-typing`,
110 label: "Add New",
111 },
112 },
113 {
114 num: 2,
115 title: "Copy the Shortcode",
116 body: 'From the <strong>ShortCode Generator</strong> list, copy the <code>[text-typing id="…"]</code> shortcode.',
117 link: {
118 url: `${adminUrl}edit.php?post_type=text-typing`,
119 label: "ShortCode Generator",
120 },
121 },
122 {
123 num: 3,
124 title: "Paste Anywhere",
125 body: "Drop the shortcode into any post, page, widget, or template that accepts shortcodes.",
126 },
127 {
128 num: 4,
129 title: "Reuse & Update",
130 body: "Edit the source once and every place that uses the shortcode updates automatically.",
131 },
132 ],
133 },
134 {
135 key: "elementor",
136 label: "Elementor",
137 steps: [
138 {
139 num: 1,
140 title: "Create a Typing Text",
141 body: "Go to <strong>Text Typing &rsaquo; Add New ShortCode</strong> to build and save your animation, then copy its shortcode.",
142 link: {
143 url: `${adminUrl}post-new.php?post_type=text-typing`,
144 label: "Add New",
145 },
146 },
147 {
148 num: 2,
149 title: "Edit with Elementor",
150 body: "Open any post or page in the <strong>Elementor</strong> editor.",
151 },
152 {
153 num: 3,
154 title: "Add Shortcode Widget",
155 body: "Search for the <strong>Shortcode</strong> widget in the Elementor elements panel and drag it into your layout.",
156 },
157 {
158 num: 4,
159 title: "Paste Shortcode",
160 body: 'Paste your shortcode (e.g. <code>[text-typing id="…"]</code>) into the widget input field and save your changes.',
161 },
162 ],
163 },
164 {
165 key: "php",
166 label: "PHP",
167 steps: [
168 {
169 num: 1,
170 title: "Get the ID",
171 body: "Go to <strong>Text Typing &rsaquo; ShortCode Generator</strong> and note the <strong>ID</strong> of the typing text you want to embed.",
172 link: {
173 url: `${adminUrl}edit.php?post_type=text-typing`,
174 label: "ShortCode Generator",
175 },
176 },
177 {
178 num: 2,
179 title: "Copy PHP Function",
180 body: "Use the WordPress <code>do_shortcode</code> function: <pre><code>&lt;?php echo do_shortcode('[text-typing id=\"YOUR_ID\"]'); ?&gt;</code></pre>",
181 },
182 {
183 num: 3,
184 title: "Insert in Template",
185 body: "Open your theme or template files (e.g. <code>single.php</code>, <code>page.php</code>) in an editor.",
186 },
187 {
188 num: 4,
189 title: "Replace ID & Save",
190 body: "Paste the code into your PHP file and replace <code>YOUR_ID</code> with the actual ID of your typing text.",
191 },
192 ],
193 },
194 ],
195 },
196
197 // Release notes — Changelog renders a colored badge from `type`.
198 changelogs: [
199 {
200 version: "2.1.0 - 14 July 26",
201 type: "update",
202 list: [
203 "<strong>Update:</strong> The Terminal, Star Flower, Neon Grid, Aurora Glow, and Cyber Wave themes are now free for everyone. Together with Default, the free edition now includes six built-in themes.",
204 ],
205 },
206 {
207 version: "2.0.6 - 28 Feb 26",
208 type: "update",
209 list: [
210 "<strong>Update:</strong> Redesigned dashboard and renamed the admin menu item.",
211 "<strong>Update:</strong> Rebuilt as a fully free edition — every feature is included and unlocked, following WordPress.org directory guidelines.",
212 "<strong>New:</strong> Added a built-in theme switcher with 6 ready-made themes — Default, Terminal, Star Flower, Neon Grid, Aurora Glow, and Cyber Wave — each with its own controls.",
213 "<strong>Security:</strong> Hardened shortcode output escaping and input sanitization.",
214 "<strong>Update:</strong> Documented the build process and bundled third-party libraries in the readme, and removed an unused third-party script.",
215 ],
216 },
217 {
218 version: "2.0.5 – 15 Feb 26",
219 type: "update",
220 list: [
221 "<strong>Add:</strong> Instantly switch between predefined themes to change the typing text appearance.",
222 "<strong>Improve:</strong> Refined frontend preview rendering.",
223 ],
224 },
225 {
226 version: "2.0.4 – 17 Jan 26",
227 type: "update",
228 list: ["<strong>Update:</strong> Dashboard info updated."],
229 },
230 {
231 version: "2.0.3 – 16 Nov 25",
232 type: "update",
233 list: [
234 "<strong>Update:</strong> Freemius SDK updated to the latest version.",
235 "<strong>Add:</strong> Demo page created for this plugin.",
236 ],
237 },
238 ],
239 changelogsLimit: 5,
240 changelogsReadMoreLabel: "View Full Changelog",
241
242 // Bullets shown in the "Go Typing Text Pro & Unlock More!" upgrade card (free users only).
243 proFeatures: [
244 "24 premium blocks including Animated Headline, Rotating Words, Number Counter, and Text Marquee.",
245 "Eye-catching text styles: Gradient, Neon, Glitch, Rainbow, and Shine.",
246 "Advanced layouts: Circular, Curved, Vertical, Outline, and Text Mask.",
247 "Entrance animations: Split-Flap, Scramble, Tracking-In, and Wavy.",
248 "3D Tilt, Reflection, and Long Shadow effects.",
249 "Sticker, Animated Highlight, and Split text blocks.",
250 "Priority support.",
251 ],
252 });
253
254 export const demoInfo = {
255 allInOneLabel: "See All Demos",
256 allInOneLink: "https://bblockswp.com/demo/text-typing/",
257 demos: [
258 {
259 title: "Default Style",
260 description: "Clean typing animation with the default look.",
261 url: "https://bblockswp.com/demo/typing-text-default/",
262 icon: (
263 <svg
264 stroke="#000"
265 fill="#000"
266 strokeWidth="0"
267 viewBox="0 0 24 24"
268 height="1em"
269 width="1em"
270 xmlns="http://www.w3.org/2000/svg">
271 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
272 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
273 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
274 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
275 <path
276 fillRule="evenodd"
277 clipRule="evenodd"
278 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
279 fill="currentColor"></path>
280 </svg>
281 ),
282 type: "iframe",
283 },
284 {
285 title: "Terminal",
286 description: "Command-line terminal look with a blinking block cursor.",
287 url: "https://bblockswp.com/demo/typing-text-terminal/",
288 icon: (
289 <svg
290 stroke="#000"
291 fill="#000"
292 strokeWidth="0"
293 viewBox="0 0 24 24"
294 height="1em"
295 width="1em"
296 xmlns="http://www.w3.org/2000/svg">
297 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
298 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
299 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
300 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
301 <path
302 fillRule="evenodd"
303 clipRule="evenodd"
304 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
305 fill="currentColor"></path>
306 </svg>
307 ),
308 type: "iframe",
309 },
310 {
311 title: "Star Flower",
312 description: "Decorative star-flower accents around the typing text.",
313 url: "https://bblockswp.com/demo/typing-text-star-flower/",
314 icon: (
315 <svg
316 stroke="#000"
317 fill="#000"
318 strokeWidth="0"
319 viewBox="0 0 24 24"
320 height="1em"
321 width="1em"
322 xmlns="http://www.w3.org/2000/svg">
323 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
324 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
325 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
326 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
327 <path
328 fillRule="evenodd"
329 clipRule="evenodd"
330 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
331 fill="currentColor"></path>
332 </svg>
333 ),
334 type: "iframe",
335 },
336 {
337 title: "Neon Grid",
338 description: "Glowing neon text over a retro grid backdrop.",
339 url: "https://bblockswp.com/demo/typing-text-neon-grid/",
340 icon: (
341 <svg
342 stroke="#000"
343 fill="#000"
344 strokeWidth="0"
345 viewBox="0 0 24 24"
346 height="1em"
347 width="1em"
348 xmlns="http://www.w3.org/2000/svg">
349 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
350 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
351 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
352 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
353 <path
354 fillRule="evenodd"
355 clipRule="evenodd"
356 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
357 fill="currentColor"></path>
358 </svg>
359 ),
360 type: "iframe",
361 },
362 {
363 title: "Aurora Glow",
364 description: "Soft aurora gradient glow shifting behind the typing text.",
365 url: "https://bblockswp.com/demo/typing-text-aurora-glow/",
366 icon: (
367 <svg
368 stroke="#000"
369 fill="#000"
370 strokeWidth="0"
371 viewBox="0 0 24 24"
372 height="1em"
373 width="1em"
374 xmlns="http://www.w3.org/2000/svg">
375 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
376 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
377 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
378 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
379 <path
380 fillRule="evenodd"
381 clipRule="evenodd"
382 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
383 fill="currentColor"></path>
384 </svg>
385 ),
386 type: "iframe",
387 },
388 {
389 title: "Cyber Wave",
390 description: "Retro synthwave look with neon cyber tones.",
391 url: "https://bblockswp.com/demo/typing-text-cyber-wave/",
392 icon: (
393 <svg
394 stroke="#000"
395 fill="#000"
396 strokeWidth="0"
397 viewBox="0 0 24 24"
398 height="1em"
399 width="1em"
400 xmlns="http://www.w3.org/2000/svg">
401 <path d="M5 9V7H7V9H5Z" fill="currentColor"></path>
402 <path d="M9 9H19V7H9V9Z" fill="currentColor"></path>
403 <path d="M5 15V17H7V15H5Z" fill="currentColor"></path>
404 <path d="M19 17H9V15H19V17Z" fill="currentColor"></path>
405 <path
406 fillRule="evenodd"
407 clipRule="evenodd"
408 d="M1 6C1 4.34315 2.34315 3 4 3H20C21.6569 3 23 4.34315 23 6V18C23 19.6569 21.6569 21 20 21H4C2.34315 21 1 19.6569 1 18V6ZM4 5H20C20.5523 5 21 5.44772 21 6V11H3V6C3 5.44772 3.44772 5 4 5ZM3 13V18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18V13H3Z"
409 fill="currentColor"></path>
410 </svg>
411 ),
412 type: "iframe",
413 },
414 ...allBlocks.map((block) => ({
415 icon: block.icon,
416 title: block.title,
417 url: block.demo,
418 type: "iframe",
419 })),
420 ],
421 };
422
423 export const pricingInfo = {
424 logo: `https://ps.w.org/${slug}/assets/icon-128x128.png`,
425 pluginId: 20170,
426 planId: 33453,
427 licenses: [1, 3, null],
428 button: {
429 label: "Buy Now ➜",
430 },
431 featured: {
432 selected: 3, // choose from licenses item
433 },
434 };
435