react-wizard-engine 0.1.0 → 0.1.1
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/CHANGELOG.md +6 -0
- package/README.md +12 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# react-wizard-engine
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix `@radix-ui/react-slot` peer dep (was marked optional but is required by the headless entry). Update README install snippet. Fix README typo (`withBackStrategy` -> `withScrollStrategy` example). `WizardBack` now reads `config.backBtnText` like `WizardNext` does. Convert TODO markers in `wizard-header.tsx` to stable historical notes.
|
|
8
|
+
|
|
3
9
|
## 0.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@ Multi-step flow engine for React. Steps, categories, branches. Pluggable strateg
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```sh
|
|
11
|
-
pnpm add react-wizard-engine lucide-react
|
|
11
|
+
pnpm add react-wizard-engine lucide-react @radix-ui/react-slot
|
|
12
12
|
# only if you also use the styled /shadcn adapter:
|
|
13
|
-
pnpm add @radix-ui/react-dialog
|
|
13
|
+
pnpm add @radix-ui/react-dialog
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Quickstart
|
|
@@ -93,7 +93,16 @@ See `src/core/` for full type definitions.
|
|
|
93
93
|
|
|
94
94
|
## Strategies (pluggable)
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Compose providers to override strategies/config. Back, visibility, progress, and scroll strategies are all overridable. See `src/core/strategies/`.
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
composeWizardProviders(
|
|
100
|
+
withConfig({ isBackResetCompleted: false }),
|
|
101
|
+
withScrollStrategy(new WizardSmoothScrollStrategy()),
|
|
102
|
+
)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Available helpers: `withConfig`, `withInitializer`, `withListener`, `withProgressStrategy`, `withScrollContainer`, `withScrollStrategy`, `withVisibilityStrategy`.
|
|
97
106
|
|
|
98
107
|
## License
|
|
99
108
|
|
package/dist/index.cjs
CHANGED
|
@@ -1858,7 +1858,7 @@ function WizardBack(props) {
|
|
|
1858
1858
|
{
|
|
1859
1859
|
asChild: props.asChild,
|
|
1860
1860
|
className: props.className,
|
|
1861
|
-
defaultLabel: "Back",
|
|
1861
|
+
defaultLabel: wizard.configOptions.backBtnText ?? "Back",
|
|
1862
1862
|
onClick: () => void wizard.back(),
|
|
1863
1863
|
variant: "ghost",
|
|
1864
1864
|
children: props.children
|