@okyrychenko-dev/react-action-guard 1.0.1 → 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 +1 -3
- package/dist/index.cjs +1 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -14
- package/dist/index.d.ts +6 -14
- package/dist/index.js +1 -11
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -434,8 +434,6 @@ Provides an isolated store instance for SSR, testing, or micro-frontends. Withou
|
|
|
434
434
|
**Props:**
|
|
435
435
|
|
|
436
436
|
- `children: ReactNode` - Child components
|
|
437
|
-
- `enableDevtools?: boolean` - Enable Redux DevTools (default: true in development)
|
|
438
|
-
- `devtoolsName?: string` - Name for DevTools (default: "UIBlocking")
|
|
439
437
|
- `middlewares?: Middleware[]` - Initial middlewares to register
|
|
440
438
|
|
|
441
439
|
**Example:**
|
|
@@ -462,7 +460,7 @@ function renderWithProvider(ui) {
|
|
|
462
460
|
// Micro-frontends - each app has its own blocking state
|
|
463
461
|
function MicroFrontend() {
|
|
464
462
|
return (
|
|
465
|
-
<UIBlockingProvider
|
|
463
|
+
<UIBlockingProvider>
|
|
466
464
|
<MicroApp />
|
|
467
465
|
</UIBlockingProvider>
|
|
468
466
|
);
|
package/dist/index.cjs
CHANGED
|
@@ -463,8 +463,6 @@ function useUIBlockingStoreFromContext(selector, equalityFn) {
|
|
|
463
463
|
}
|
|
464
464
|
function UIBlockingProvider({
|
|
465
465
|
children,
|
|
466
|
-
enableDevtools = process.env.NODE_ENV === "development",
|
|
467
|
-
devtoolsName = "UIBlocking",
|
|
468
466
|
middlewares = []
|
|
469
467
|
}) {
|
|
470
468
|
const handleStoreInit = (store) => {
|
|
@@ -472,15 +470,7 @@ function UIBlockingProvider({
|
|
|
472
470
|
store.getState().registerMiddleware(`provider-middleware-${index.toString()}`, mw);
|
|
473
471
|
});
|
|
474
472
|
};
|
|
475
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
476
|
-
BaseUIBlockingProvider,
|
|
477
|
-
{
|
|
478
|
-
enableDevtools,
|
|
479
|
-
devtoolsName,
|
|
480
|
-
onStoreInit: handleStoreInit,
|
|
481
|
-
children
|
|
482
|
-
}
|
|
483
|
-
);
|
|
473
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BaseUIBlockingProvider, { onStoreInit: handleStoreInit, children });
|
|
484
474
|
}
|
|
485
475
|
|
|
486
476
|
// src/store/uiBlockingStore.config.ts
|