You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/guided-modal-tour/index.js
+13-31Lines changed: 13 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,21 @@
1
+
/**
2
+
* Internal dependencies
3
+
*/
4
+
import{TOURS}from'./tours'
5
+
6
+
/**
7
+
* External dependencies
8
+
*/
1
9
import{
2
10
i18n,
3
11
guidedTourStates,// TODO: This doesn't exist yet. The state should be loaded here from localize values, this should be an object with the tour ID as the key and the state as the value.
4
12
}from'stackable'
5
13
importclassNamesfrom'classnames'
6
14
importconfettifrom'canvas-confetti'
7
15
16
+
/**
17
+
* WordPress dependencies
18
+
*/
8
19
import{
9
20
Modal,Flex,Button,
10
21
}from'@wordpress/components'
@@ -16,40 +27,11 @@ import {
16
27
useEffect,useState,useCallback,useRef,useMemo,
17
28
}from'@wordpress/element'
18
29
19
-
constSTEPS=[
20
-
{
21
-
title: '👋 '+__('Welcome to Your Design Library',i18n),
22
-
description: __('These are pre-built designs that are style-matched to your block theme. You can insert one or more patterns to quickly build your page.',i18n),
23
-
size: 'medium',
24
-
},
25
-
{
26
-
title: __('Pick Styling Options',i18n),
27
-
description: __('Turn on backgrounds, change color schemes, to customize the library. Go ahead and click on "Section Background" and see your changes in real-time.',i18n),
description: __('We\'re excited to have you here. Let\'s get you started by opening the Design Library. Click the button above to get started.',i18n),
9
+
// size: 'medium',
10
+
anchor: '.ugb-insert-library-button',
11
+
position: 'bottom',
12
+
nextEventTarget: '.ugb-insert-library-button',
13
+
glowTarget: '.ugb-insert-library-button',
14
+
showNext: false,
15
+
},
16
+
],
17
+
'design-library-welcome': [
18
+
{
19
+
title: '👋 '+__('Welcome to Your Design Library',i18n),
20
+
description: __('These are pre-built designs that are style-matched to your block theme. You can insert one or more patterns to quickly build your page.',i18n),
21
+
size: 'medium',
22
+
},
23
+
{
24
+
title: __('Pick Styling Options',i18n),
25
+
description: __('Turn on backgrounds, change color schemes, to customize the library. Go ahead and click on "Section Background" and see your changes in real-time.',i18n),
0 commit comments