2022-11-15 10:12:17 +00:00
/ * *
* External dependencies
* /
import { __ } from '@wordpress/i18n' ;
import { createElement , createInterpolateElement } from '@wordpress/element' ;
import { TourKitTypes } from '@woocommerce/components' ;
export const getSteps = ( ) : TourKitTypes . WooStep [ ] = > {
const lineBreak = createElement ( 'br' ) ;
return [
{
referenceElements : {
2023-08-10 12:10:08 +00:00
desktop :
'#adminmenu a[href="admin.php?page=wc-admin&path=%2Fextensions"]' ,
2022-11-15 10:12:17 +00:00
} ,
focusElement : {
2023-08-10 12:10:08 +00:00
desktop :
'#adminmenu a[href="admin.php?page=wc-admin&path=%2Fextensions"]' ,
2022-11-15 10:12:17 +00:00
} ,
meta : {
2023-08-10 12:10:08 +00:00
name : 'wc-extensions-menu-item' ,
2022-11-15 10:12:17 +00:00
heading : __ (
'Welcome to the WooCommerce Marketplace' ,
'woocommerce'
) ,
descriptions : {
desktop : createInterpolateElement (
__ (
2024-04-09 08:50:15 +00:00
"Power up your store by adding extra functionality with extensions or integrate your store with other software and services.<br/><br/>Here you'll find hundreds of trusted solutions for your store — all reviewed and approved by the Woo team.<br/><br/>You can also browse the Woo Marketplace at WooCommerce.com." ,
2022-11-15 10:12:17 +00:00
'woocommerce'
) ,
{
br : lineBreak ,
}
) ,
} ,
} ,
} ,
{
referenceElements : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__search' ,
2022-11-15 10:12:17 +00:00
} ,
focusElement : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__search' ,
2022-11-15 10:12:17 +00:00
} ,
meta : {
2023-08-10 12:10:08 +00:00
name : 'wc-extensions-search' ,
2022-11-15 10:12:17 +00:00
heading : __ ( 'Find exactly what you need' , 'woocommerce' ) ,
descriptions : {
desktop : __ (
2023-08-10 12:10:08 +00:00
'Use the search box to find specific extensions or solutions.' ,
2022-11-15 10:12:17 +00:00
'woocommerce'
) ,
} ,
} ,
} ,
{
referenceElements : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__tab-browse' ,
2022-11-15 10:12:17 +00:00
} ,
focusElement : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__tab-browse' ,
2022-11-15 10:12:17 +00:00
} ,
meta : {
name : 'wc-addons-categories' ,
heading : __ ( 'Browse for new ideas' , 'woocommerce' ) ,
descriptions : {
desktop : createInterpolateElement (
__ (
2023-08-10 12:10:08 +00:00
"Or if you're not sure exactly what you need, you can browse all available extensions by category." ,
2022-11-15 10:12:17 +00:00
'woocommerce'
) ,
{
br : lineBreak ,
}
) ,
} ,
} ,
} ,
{
referenceElements : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__discover:first-child' ,
2022-11-15 10:12:17 +00:00
} ,
focusElement : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__discover:first-child' ,
2022-11-15 10:12:17 +00:00
} ,
meta : {
name : 'wc-addons-featured' ,
2023-08-10 12:10:08 +00:00
heading : __ ( 'Learn more about each product' , 'woocommerce' ) ,
2022-11-15 10:12:17 +00:00
descriptions : {
desktop : createInterpolateElement (
__ (
2023-08-10 12:10:08 +00:00
'Scroll down to see all of the relevant extensions and solutions.<br/><br/>Click on any solution to learn more about its features, any installation requirements, and available documentation.' ,
2022-11-15 10:12:17 +00:00
'woocommerce'
) ,
{
br : lineBreak ,
}
) ,
} ,
} ,
} ,
{
referenceElements : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__header-meta' ,
2022-11-15 10:12:17 +00:00
} ,
focusElement : {
2023-08-10 12:10:08 +00:00
desktop : '.woocommerce-marketplace__header-meta' ,
2022-11-15 10:12:17 +00:00
} ,
meta : {
name : 'wc-addons-my-subscriptions' ,
heading : __ ( 'Manage your purchases' , 'woocommerce' ) ,
descriptions : {
desktop : createInterpolateElement (
__ (
2024-04-09 08:50:15 +00:00
"All of your Woo Marketplace purchases can be found here, or on WooCommerce.com.<br/><br/>Every purchase is backed by our <a1>30-day money-back guarantee</a1>, and includes <a2>email and live chat support</a2>.<br/><br/>That's it! You're now ready to power up your store." ,
2022-11-15 10:12:17 +00:00
'woocommerce'
) ,
{
a1 : createElement (
'a' ,
{
2024-04-09 08:50:15 +00:00
href : 'https://woocommerce.com/refund-policy/' ,
2022-11-15 10:12:17 +00:00
'aria-label' : __ (
'Refund policy' ,
'woocommerce'
) ,
} ,
__ (
'30-day money-back guarantee' ,
'woocommerce'
)
) ,
a2 : createElement (
'a' ,
{
2024-04-09 08:50:15 +00:00
href : 'https://woocommerce.com/my-account/create-a-ticket/' ,
2022-11-15 10:12:17 +00:00
'aria-label' : __ (
'Contact support' ,
'woocommerce'
) ,
} ,
__ (
'email and live chat support' ,
'woocommerce'
)
) ,
br : lineBreak ,
}
) ,
} ,
} ,
} ,
] ;
} ;