@smart-wizard/extension-url-hash 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -0
- package/package.json +9 -5
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# @smart-wizard/extension-url-hash
|
|
2
|
+
|
|
3
|
+
**Official URL hash and browser history navigation extension for SmartWizard.**
|
|
4
|
+
Synchronizes active steps with `window.location.hash` and integrates with browser back/forward buttons.
|
|
5
|
+
|
|
6
|
+
> This package is part of the **[SmartWizard](https://github.com/techlab/smart-wizard)** project, the next-generation continuation of the popular [jQuery SmartWizard](https://github.com/techlab/jquery-smartwizard).
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 📖 Documentation & Links
|
|
11
|
+
|
|
12
|
+
* 📚 **Full Documentation & Guides**: [GitHub Readme](https://github.com/techlab/smart-wizard#-extension-system)
|
|
13
|
+
* 🌐 **Official Website & Demos**: [techlaboratory.net/smart-wizard](https://techlaboratory.net/smart-wizard)
|
|
14
|
+
* 🐙 **Repository**: [github.com/techlab/smart-wizard](https://github.com/techlab/smart-wizard)
|
|
15
|
+
* 🐛 **Issue Tracker**: [github.com/techlab/smart-wizard/issues](https://github.com/techlab/smart-wizard/issues)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📥 Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @smart-wizard/extension-url-hash @smart-wizard/core
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## ⚡ Quick Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { SmartWizard } from '@smart-wizard/core';
|
|
31
|
+
import { createUrlHashExtension } from '@smart-wizard/extension-url-hash';
|
|
32
|
+
|
|
33
|
+
const wizard = new SmartWizard('#wizard', options)
|
|
34
|
+
.extend(createUrlHashExtension({ supportHistory: true })); // pushState vs location.hash
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 📝 License
|
|
40
|
+
|
|
41
|
+
Dual-licensed under [MIT](https://github.com/techlab/smart-wizard/blob/main/LICENSE) (open-source) and [Commercial License](https://techlaboratory.net/smart-wizard#license).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-wizard/extension-url-hash",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "URL hash + browser history navigation extension for SmartWizard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -14,23 +14,27 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@smart-wizard/core": ">=1.0.
|
|
17
|
+
"@smart-wizard/core": ">=1.0.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"tsup": "^8.0.0",
|
|
21
21
|
"typescript": "^5.0.0",
|
|
22
|
-
"@smart-wizard/core": "1.0.
|
|
22
|
+
"@smart-wizard/core": "1.0.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "https://github.com/techlab/smart-wizard.git",
|
|
27
27
|
"directory": "packages/extensions/url-hash"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://
|
|
29
|
+
"homepage": "https://techlaboratory.net/smart-wizard",
|
|
30
30
|
"bugs": {
|
|
31
31
|
"url": "https://github.com/techlab/smart-wizard/issues"
|
|
32
32
|
},
|
|
33
|
-
"author":
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Dipu Rajendran",
|
|
35
|
+
"email": "hello.techlab@gmail.com",
|
|
36
|
+
"url": "https://github.com/techlab"
|
|
37
|
+
},
|
|
34
38
|
"publishConfig": {
|
|
35
39
|
"access": "public"
|
|
36
40
|
},
|