|
1 | 1 | CHANGELOG |
2 | 2 | ========= |
3 | 3 |
|
| 4 | +v7.0.1 |
| 5 | +----- |
| 6 | +**All new jQuery SmartWizard v7 — full TypeScript rewrite** |
| 7 | + |
| 8 | +- **Added:** Complete rewrite in TypeScript with bundled type declarations (`dist/types/`) |
| 9 | +- **Added:** `displayMode` option — `auto` (follows system preference) | `dark` | `light` | `none` |
| 10 | +- **Added:** `swipeNavigation` option — swipe left/right on touch devices to navigate steps (`enabled`, `threshold`) |
| 11 | +- **Added:** Horizontal mouse-wheel scroll on the nav bar when steps overflow |
| 12 | +- **Added:** `behavior.useUrlHash` and `behavior.supportBrowserHistory` options replace old `enableUrlHash` / `backButtonSupport` |
| 13 | +- **Added:** `navigation.completed.clickable` option — control whether completed steps are re-clickable |
| 14 | +- **Added:** `DATA_ATTRIBUTES` constants for `data-theme` attribute management |
| 15 | +- **Added:** `contentLoader` callback for dynamic step content loading |
| 16 | +- **Added:** CSS animation support for transitions via `transition.css` (`prefix`, `forward`, `backward` class groups) |
| 17 | +- **Added:** Nav scroll buttons shown automatically when nav content overflows |
| 18 | +- **Added:** UMD, ESM, and CJS build outputs |
| 19 | +- **Added:** `scrollToView` option — scroll the active step anchor into view on step change |
| 20 | + |
| 21 | +- **Changed:** All options restructured with clearer namespacing (see README for full reference) |
| 22 | + - `selected` → `initialStep` |
| 23 | + - `autoAdjustHeight` → `behavior.autoHeight` |
| 24 | + - `enableUrlHash` → `behavior.useUrlHash` |
| 25 | + - `backButtonSupport` → `behavior.supportBrowserHistory` |
| 26 | + - `anchor.enableNavigation` → `navigation.enabled` |
| 27 | + - `anchor.enableNavigationAlways` → `navigation.alwaysClickable` |
| 28 | + - `anchor.enableDoneState` → `navigation.completed.enabled` |
| 29 | + - `anchor.markPreviousStepsAsDone` → `navigation.completed.completeAllPreviousSteps` |
| 30 | + - `anchor.unDoneOnBackNavigation` → `navigation.completed.clearOnBack` |
| 31 | + - `anchor.enableDoneStateNavigation` → `navigation.completed.clickable` |
| 32 | + - `transition.animation` → `transition.effect` |
| 33 | + - `toolbar.showNextButton` / `showPreviousButton` → `toolbar.buttons.showNext` / `showPrevious` |
| 34 | + - `toolbar.extraHtml` → `toolbar.extraElements` |
| 35 | + - `keyboard.keyNavigation` → `keyboardNavigation.enabled` |
| 36 | + - `keyboard.keyLeft` / `keyRight` → `keyboardNavigation.keys.left` / `right` |
| 37 | + - `lang` → `localization.buttons` |
| 38 | + - `disabledSteps`, `errorSteps`, `warningSteps`, `hiddenSteps` → `stepStates.disabled`, `.error`, `.warning`, `.hidden` |
| 39 | + - `getContent` → `contentLoader` |
| 40 | +- **Changed:** Events renamed for consistency |
| 41 | + - `leaveStep` → `leave.sw` |
| 42 | + - `showStep` → `shown.sw` |
| 43 | + - `initialized` → `initialized.sw` |
| 44 | + - `loaded` → `loaded.sw` |
| 45 | +- **Changed:** `reset()` no longer manipulates URL hash unless `useUrlHash` + `supportBrowserHistory` are both enabled |
| 46 | +- **Changed:** `transition.css` animations require the element to be visible before class is applied (fixes `animationend` not firing) |
| 47 | +- **Changed:** `this.default(...)` references inside transition handlers replaced with direct `transitions.default(...)` to prevent `TypeError` when handlers are invoked without object context |
| 48 | +- **Changed:** Progressbar width uses `.toFixed(2)` for cleaner CSS values |
| 49 | +- **Changed:** `ANIMATIONEND` / `ANIMATIONCANCEL` events are now namespaced (`.sw`) |
| 50 | + |
| 51 | +- **Fixed:** `this is undefined` TypeError in CSS / fade / slide transition fallbacks |
| 52 | +- **Fixed:** `animationend` event not firing on hidden elements (element now shown before animation class is applied) |
| 53 | +- **Fixed:** Double-invocation of transition `complete` callback (guard flag added) |
| 54 | +- **Fixed:** URL hash incorrectly always set; now only when both `useUrlHash` and `supportBrowserHistory` are `true` |
| 55 | + |
| 56 | +- **Removed:** `justified` option (layout handled by CSS) |
| 57 | +- **Removed:** `cycleNavigation` option |
| 58 | +- **Removed:** `STEPCHANGE` and `RESET` events (use `shown.sw` and handle externally) |
| 59 | + |
4 | 60 | v6.0.6 |
5 | 61 | ----- |
6 | 62 | - **Fixed:** History back on step1 not working https://github.com/techlab/jquery-smartwizard/issues/152 |
|
0 commit comments