kamrify commited on
Commit
61b1b0a
·
1 Parent(s): b17be93

Add aniamted tour example

Browse files
docs/package.json CHANGED
@@ -13,14 +13,14 @@
13
  "@astrojs/mdx": "^0.19.7",
14
  "@astrojs/react": "^2.2.1",
15
  "@astrojs/tailwind": "^4.0.0",
16
- "@types/react": "^18.0.21",
17
- "@types/react-dom": "^18.0.6",
18
- "astro": "^2.7.0",
19
- "driver.js": "1.1.5-next.0",
20
- "react": "^18.0.0",
21
- "react-dom": "^18.0.0",
22
  "react-fast-marquee": "^1.6.0",
23
- "tailwindcss": "^3.0.24"
24
  },
25
  "devDependencies": {
26
  "@tailwindcss/typography": "^0.5.9"
 
13
  "@astrojs/mdx": "^0.19.7",
14
  "@astrojs/react": "^2.2.1",
15
  "@astrojs/tailwind": "^4.0.0",
16
+ "@types/react": "^18.2.14",
17
+ "@types/react-dom": "^18.2.6",
18
+ "astro": "^2.7.2",
19
+ "driver.js": "1.1.6-next.0",
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0",
22
  "react-fast-marquee": "^1.6.0",
23
+ "tailwindcss": "^3.3.2"
24
  },
25
  "devDependencies": {
26
  "@tailwindcss/typography": "^0.5.9"
docs/pnpm-lock.yaml CHANGED
@@ -7,36 +7,36 @@ settings:
7
  dependencies:
8
  '@astrojs/mdx':
9
  specifier: ^0.19.7
10
- version: 0.19.7([email protected].0)
11
  '@astrojs/react':
12
  specifier: ^2.2.1
13
14
  '@astrojs/tailwind':
15
  specifier: ^4.0.0
16
- version: 4.0.0([email protected].0)([email protected])
17
  '@types/react':
18
- specifier: ^18.0.21
19
  version: 18.2.14
20
  '@types/react-dom':
21
- specifier: ^18.0.6
22
  version: 18.2.6
23
  astro:
24
- specifier: ^2.7.0
25
- version: 2.7.0
26
  driver.js:
27
- specifier: 1.1.5-next.0
28
- version: 1.1.5-next.0
29
  react:
30
- specifier: ^18.0.0
31
  version: 18.2.0
32
  react-dom:
33
- specifier: ^18.0.0
34
  version: 18.2.0([email protected])
35
  react-fast-marquee:
36
  specifier: ^1.6.0
37
38
  tailwindcss:
39
- specifier: ^3.0.24
40
  version: 3.3.2
41
 
42
  devDependencies:
@@ -62,8 +62,8 @@ packages:
62
  resolution: {integrity: sha512-iIGKu/uzB8sJ5VveQf0eHrVPPFEcrvSlp4qShYMOuY2aMmK2RVXQlX9dUjtmBQ+NAokfIOb7fwCutvH+p13l+g==}
63
  dev: false
64
 
65
- /@astrojs/[email protected].0:
66
- resolution: {integrity: sha512-OSwvoFkTqVowiyP+codQeQZWoq/HOwY32x17NxDglWoCx2sdyXzplDZoVV4/3odmSEY6/A+48WMl5qkjmP1CXw==}
67
  dev: false
68
 
69
  /@astrojs/[email protected]:
@@ -85,13 +85,13 @@ packages:
85
  vscode-uri: 3.0.7
86
  dev: false
87
 
88
89
  resolution: {integrity: sha512-VF0HRv4GpC1XEMLnsKf6jth7JSmlt9qpqP0josQgA2eSpCIAC/Et+y94mgdBIZVBYH/yFnMoIxgKVe93xfO2GA==}
90
  peerDependencies:
91
  astro: ^2.5.0
92
  dependencies:
93
  '@astrojs/prism': 2.1.2
94
- astro: 2.7.0
95
  github-slugger: 1.5.0
96
  import-meta-resolve: 2.2.2
97
  rehype-raw: 6.1.1
@@ -108,11 +108,11 @@ packages:
108
  - supports-color
109
  dev: false
110
 
111
112
  resolution: {integrity: sha512-mfEbBD7oi8yBHhcJucEjnrquREkJ3os+jioURP8BR2B8tOV2rV2j8trvmLUgfS+P/+HevGObxCTjcRYxn6T7eg==}
113
  engines: {node: '>=16.12.0'}
114
  dependencies:
115
- '@astrojs/markdown-remark': 2.2.1([email protected].0)
116
  '@astrojs/prism': 2.1.2
117
  '@mdx-js/mdx': 2.3.0
118
  acorn: 8.9.0
@@ -161,13 +161,13 @@ packages:
161
  - supports-color
162
  dev: false
163
 
164
165
  resolution: {integrity: sha512-HmCAXFFes7MUBt5ihdfH1goa8QyGkHejIpz6Z4XBKK9VNYY9G2E3brCn8+pNn5zAOzcwl3FYcuH2AiOa/NGoMQ==}
166
  peerDependencies:
167
  astro: ^2.6.5
168
  tailwindcss: ^3.0.24
169
  dependencies:
170
- astro: 2.7.0
171
  autoprefixer: 10.4.14([email protected])
172
  postcss: 8.4.24
173
  postcss-load-config: 4.0.1([email protected])
@@ -671,10 +671,6 @@ packages:
671
  '@jridgewell/resolve-uri': 3.1.0
672
  '@jridgewell/sourcemap-codec': 1.4.14
673
 
674
- /@ljharb/[email protected]:
675
- resolution: {integrity: sha512-4/RWEeXDO6bocPONheFe6gX/oQdP/bEpv0oL4HqjPP5DCenBSt0mHgahppY49N0CpsaqffdwPq+TlX9CYOq2Dw==}
676
- dev: false
677
-
678
  /@mdx-js/[email protected]:
679
  resolution: {integrity: sha512-jLuwRlz8DQfQNiUCJR50Y09CGPq3fLtmtUQfVrj79E0JWu3dvsVcxVIcfhR5h0iXu+/z++zDrYeiJqifRynJkA==}
680
  dependencies:
@@ -959,8 +955,8 @@ packages:
959
  hasBin: true
960
  dev: false
961
 
962
963
- resolution: {integrity: sha512-gUYx2R0V7fpZtFRN9f4nE0We95qYhJyAr+VW0nVFqlMMF1of9MzrjjJ+8rIGJ/6RooFK8XAaXWTQMGTok3ZzEA==}
964
  engines: {node: '>=16.12.0', npm: '>=6.14.0'}
965
  hasBin: true
966
  peerDependencies:
@@ -970,9 +966,9 @@ packages:
970
  optional: true
971
  dependencies:
972
  '@astrojs/compiler': 1.5.1
973
- '@astrojs/internal-helpers': 0.1.0
974
  '@astrojs/language-server': 1.0.8
975
- '@astrojs/markdown-remark': 2.2.1([email protected].0)
976
  '@astrojs/telemetry': 2.1.1
977
  '@astrojs/webapi': 2.2.0
978
  '@babel/core': 7.22.5
@@ -1014,10 +1010,8 @@ packages:
1014
  semver: 7.5.3
1015
  server-destroy: 1.0.1
1016
  shiki: 0.14.2
1017
- slash: 4.0.0
1018
  string-width: 5.1.2
1019
  strip-ansi: 7.1.0
1020
- supports-esm: 1.0.0
1021
  tsconfig-resolver: 3.0.1
1022
  typescript: 5.1.3
1023
  unist-util-visit: 4.1.2
@@ -1376,8 +1370,8 @@ packages:
1376
1377
  resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
1378
 
1379
- /[email protected].5-next.0:
1380
- resolution: {integrity: sha512-/S8err9QIkEerXGj44kssnqR8iTioDQplmA5Foj5g6AMxWMGTu6FaAjMrRksm50jVJ1SkyOPw8N7QEGdND5IfQ==}
1381
  dev: false
1382
 
1383
@@ -1702,12 +1696,6 @@ packages:
1702
  engines: {node: '>=8'}
1703
  dev: false
1704
 
1705
1706
- resolution: {integrity: sha512-e9OeXPQnmPhYoJ63lXC4wWe34TxEGZDZ3OQX9XRqp2VwsfLl3bQBy7VehLnd34g3ef8CmYlBLGqEMKXuz8YazQ==}
1707
- dependencies:
1708
- '@ljharb/has-package-exports-patterns': 0.0.2
1709
- dev: false
1710
-
1711
1712
  resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}
1713
  engines: {node: '>= 0.4.0'}
@@ -3341,11 +3329,6 @@ packages:
3341
  resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
3342
  dev: false
3343
 
3344
3345
- resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==}
3346
- engines: {node: '>=12'}
3347
- dev: false
3348
-
3349
3350
  resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
3351
  engines: {node: '>=0.10.0'}
@@ -3484,12 +3467,6 @@ packages:
3484
  has-flag: 4.0.0
3485
  dev: false
3486
 
3487
3488
- resolution: {integrity: sha512-96Am8CDqUaC0I2+C/swJ0yEvM8ZnGn4unoers/LSdE4umhX7mELzqyLzx3HnZAluq5PXIsGMKqa7NkqaeHMPcg==}
3489
- dependencies:
3490
- has-package-exports: 1.3.0
3491
- dev: false
3492
-
3493
3494
  resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
3495
  engines: {node: '>= 0.4'}
 
7
  dependencies:
8
  '@astrojs/mdx':
9
  specifier: ^0.19.7
10
+ version: 0.19.7([email protected].2)
11
  '@astrojs/react':
12
  specifier: ^2.2.1
13
14
  '@astrojs/tailwind':
15
  specifier: ^4.0.0
16
+ version: 4.0.0([email protected].2)([email protected])
17
  '@types/react':
18
+ specifier: ^18.2.14
19
  version: 18.2.14
20
  '@types/react-dom':
21
+ specifier: ^18.2.6
22
  version: 18.2.6
23
  astro:
24
+ specifier: ^2.7.2
25
+ version: 2.7.2
26
  driver.js:
27
+ specifier: 1.1.6-next.0
28
+ version: 1.1.6-next.0
29
  react:
30
+ specifier: ^18.2.0
31
  version: 18.2.0
32
  react-dom:
33
+ specifier: ^18.2.0
34
  version: 18.2.0([email protected])
35
  react-fast-marquee:
36
  specifier: ^1.6.0
37
38
  tailwindcss:
39
+ specifier: ^3.3.2
40
  version: 3.3.2
41
 
42
  devDependencies:
 
62
  resolution: {integrity: sha512-iIGKu/uzB8sJ5VveQf0eHrVPPFEcrvSlp4qShYMOuY2aMmK2RVXQlX9dUjtmBQ+NAokfIOb7fwCutvH+p13l+g==}
63
  dev: false
64
 
65
+ /@astrojs/[email protected].1:
66
+ resolution: {integrity: sha512-+LySbvFbjv2nO2m/e78suleQOGEru4Cnx73VsZbrQgB2u7A4ddsQg3P2T0zC0e10jgcT+c6nNlKeLpa6nRhQIg==}
67
  dev: false
68
 
69
  /@astrojs/[email protected]:
 
85
  vscode-uri: 3.0.7
86
  dev: false
87
 
88
89
  resolution: {integrity: sha512-VF0HRv4GpC1XEMLnsKf6jth7JSmlt9qpqP0josQgA2eSpCIAC/Et+y94mgdBIZVBYH/yFnMoIxgKVe93xfO2GA==}
90
  peerDependencies:
91
  astro: ^2.5.0
92
  dependencies:
93
  '@astrojs/prism': 2.1.2
94
+ astro: 2.7.2
95
  github-slugger: 1.5.0
96
  import-meta-resolve: 2.2.2
97
  rehype-raw: 6.1.1
 
108
  - supports-color
109
  dev: false
110
 
111
112
  resolution: {integrity: sha512-mfEbBD7oi8yBHhcJucEjnrquREkJ3os+jioURP8BR2B8tOV2rV2j8trvmLUgfS+P/+HevGObxCTjcRYxn6T7eg==}
113
  engines: {node: '>=16.12.0'}
114
  dependencies:
115
+ '@astrojs/markdown-remark': 2.2.1([email protected].2)
116
  '@astrojs/prism': 2.1.2
117
  '@mdx-js/mdx': 2.3.0
118
  acorn: 8.9.0
 
161
  - supports-color
162
  dev: false
163
 
164
165
  resolution: {integrity: sha512-HmCAXFFes7MUBt5ihdfH1goa8QyGkHejIpz6Z4XBKK9VNYY9G2E3brCn8+pNn5zAOzcwl3FYcuH2AiOa/NGoMQ==}
166
  peerDependencies:
167
  astro: ^2.6.5
168
  tailwindcss: ^3.0.24
169
  dependencies:
170
+ astro: 2.7.2
171
  autoprefixer: 10.4.14([email protected])
172
  postcss: 8.4.24
173
  postcss-load-config: 4.0.1([email protected])
 
671
  '@jridgewell/resolve-uri': 3.1.0
672
  '@jridgewell/sourcemap-codec': 1.4.14
673
 
 
 
 
 
674
  /@mdx-js/[email protected]:
675
  resolution: {integrity: sha512-jLuwRlz8DQfQNiUCJR50Y09CGPq3fLtmtUQfVrj79E0JWu3dvsVcxVIcfhR5h0iXu+/z++zDrYeiJqifRynJkA==}
676
  dependencies:
 
955
  hasBin: true
956
  dev: false
957
 
958
959
+ resolution: {integrity: sha512-2+vjXeVGU04aecs0mm93Qx9KdeVDw4OTeBIijs2Z+QLoe4RUYZnkqx5gR70VNfnoMdXoPp7+wB+ARcb0+ee/yg==}
960
  engines: {node: '>=16.12.0', npm: '>=6.14.0'}
961
  hasBin: true
962
  peerDependencies:
 
966
  optional: true
967
  dependencies:
968
  '@astrojs/compiler': 1.5.1
969
+ '@astrojs/internal-helpers': 0.1.1
970
  '@astrojs/language-server': 1.0.8
971
+ '@astrojs/markdown-remark': 2.2.1([email protected].2)
972
  '@astrojs/telemetry': 2.1.1
973
  '@astrojs/webapi': 2.2.0
974
  '@babel/core': 7.22.5
 
1010
  semver: 7.5.3
1011
  server-destroy: 1.0.1
1012
  shiki: 0.14.2
 
1013
  string-width: 5.1.2
1014
  strip-ansi: 7.1.0
 
1015
  tsconfig-resolver: 3.0.1
1016
  typescript: 5.1.3
1017
  unist-util-visit: 4.1.2
 
1370
1371
  resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
1372
 
1373
+ /[email protected].6-next.0:
1374
+ resolution: {integrity: sha512-OekZitnI+DTuU/1RrpQo+3E93cF0zXk5/IZGm9nyLEvUZGCUpc63ls212t3S7jFBAY8gJMuPFvKiMJF7YEawfw==}
1375
  dev: false
1376
 
1377
 
1696
  engines: {node: '>=8'}
1697
  dev: false
1698
 
 
 
 
 
 
 
1699
1700
  resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}
1701
  engines: {node: '>= 0.4.0'}
 
3329
  resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
3330
  dev: false
3331
 
 
 
 
 
 
3332
3333
  resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
3334
  engines: {node: '>=0.10.0'}
 
3467
  has-flag: 4.0.0
3468
  dev: false
3469
 
 
 
 
 
 
 
3470
3471
  resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
3472
  engines: {node: '>= 0.4'}
docs/src/content/guides/animated-tour.mdx CHANGED
@@ -19,7 +19,7 @@ The following example shows how to create a simple tour with a few steps. Click
19
  { element: '.line:nth-child(1)', popover: { title: 'Import the Library', description: 'It works the same in vanilla JavaScript as well as frameworks.', side: "bottom", align: 'start' }},
20
  { element: '.line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
21
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
22
- { element: '.line:nth-child(14)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
23
  { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
24
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
25
  ]}
@@ -37,7 +37,7 @@ The following example shows how to create a simple tour with a few steps. Click
37
  { element: 'code .line:nth-child(1)', popover: { title: 'Import the Library', description: 'It works the same in vanilla JavaScript as well as frameworks.', side: "bottom", align: 'start' }},
38
  { element: 'code .line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
39
  { element: 'code .line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
40
- { element: 'code .line:nth-child(14)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
41
  { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
42
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
43
  ]
 
19
  { element: '.line:nth-child(1)', popover: { title: 'Import the Library', description: 'It works the same in vanilla JavaScript as well as frameworks.', side: "bottom", align: 'start' }},
20
  { element: '.line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
21
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
22
+ { element: '.line:nth-child(17)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
23
  { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
24
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
25
  ]}
 
37
  { element: 'code .line:nth-child(1)', popover: { title: 'Import the Library', description: 'It works the same in vanilla JavaScript as well as frameworks.', side: "bottom", align: 'start' }},
38
  { element: 'code .line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
39
  { element: 'code .line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
40
+ { element: 'code .line:nth-child(18)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
41
  { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
42
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
43
  ]