forked from shipshapecode/shepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.json
154 lines (154 loc) · 4.03 KB
/
install.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"resources": {
"head": [
{
"type": "style",
"src": "./dist/css/shepherd-theme-{{ options.theme }}.css"
},
{
"type": "script",
"src": "./dist/js/tether.js"
},
{
"type": "script",
"src": "./dist/js/shepherd.js"
},
{
"type": "script",
"src": "./dist/eager/installHelper.js"
}
]
},
"preview": {
"handlers": [
{
"options": ["*"],
"execute": "ShepherdInstallHelper.setOptions(INSTALL_OPTIONS)"
}
]
},
"options": {
"properties": {
"theme": {
"order": 1,
"title": "Theme",
"description": "Sets the overall styling of the tour",
"type": "string",
"enum": [
"default",
"dark",
"square",
"square-dark"
],
"enumNames": {
"default": "Default",
"dark": "Dark",
"square": "Square",
"square-dark": "Square & Dark"
},
"default": "default"
},
"trigger": {
"order": 2,
"title": "Trigger",
"type": "string",
"format": "radios",
"enum": [
"first-page-visit",
"button-click"
],
"enumNames": {
"first-page-visit": "Start the tour when a visitor arrives for the first time.",
"button-click": "Start the tour when a visitor clicks a button."
},
"default": "first-page-visit"
},
"buttonLocation": {
"order": 3,
"showIf": {
"trigger": "button-click"
},
"title": "Button location",
"type": "object",
"format": "element"
},
"buttonText": {
"order": 4,
"showIf": {
"trigger": "button-click"
},
"title": "Button text",
"type": "string",
"default": "Start guided tour..."
},
"steps": {
"order": 5,
"title": "Steps",
"description": "Create a guided tour by creating steps anchored to the parts of your site you want to call attention. Each tour step points to a specific part of your page.",
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"title": "Step",
"properties": {
"attachToSelector": {
"order": 1,
"title": "Anchor",
"description": "Part of the page to attach the tour step",
"type": "string",
"format": "selector"
},
"attachToDirection": {
"order": 2,
"title": "Direction",
"description": "Side of the anchor to attach the tour step",
"type": "string",
"enum": [
"top",
"right",
"bottom",
"left"
],
"enumNames": {
"top": "Top",
"right": "Right",
"bottom": "Bottom",
"left": "Left"
},
"default": "bottom"
},
"title": {
"order": 3,
"title": "Header",
"type": "string",
"maxLength": 50,
"validationMessage": "The step title cannot be longer than 50 characters."
},
"text": {
"order": 4,
"title": "Body",
"type": "string",
"format": "textarea",
"maxLength": 200,
"validationMessage": "The step text cannot be longer than 200 characters."
},
"showCancelLink": {
"order": 5,
"title": "Show cancel button",
"type": "boolean",
"default": true
}
}
},
"default": [
{
"attachToSelector": "h1",
"attachToDirection": "bottom",
"title": "Welcome",
"text": "This is an example step."
}
]
}
}
}
}