@quoll/client-lib
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [0.3.0](https://github.com/mzogheib/quoll/compare/@quoll/client-lib@0.2.1...@quoll/client-lib@0.3.0) (2024-02-09) | ||
### Features | ||
- **client-lib:** add ISO8601Date type ([35ca3b0](https://github.com/mzogheib/quoll/commit/35ca3b034d2fd46a8550ea4d873f6c7769ecbcce)) | ||
## [0.2.1](https://github.com/mzogheib/quoll/compare/@quoll/client-lib@0.2.0...@quoll/client-lib@0.2.1) (2024-01-27) | ||
@@ -8,0 +14,0 @@ |
@@ -1,2 +0,4 @@ | ||
export { makeStore } from "./store/factory"; | ||
export { makeGlobalStore as createGlobalStore } from "./store"; | ||
export * from "./store"; | ||
export * from "./modules"; | ||
export * from "./utils"; | ||
export * from "./types"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createGlobalStore = exports.makeStore = void 0; | ||
var factory_1 = require("./store/factory"); | ||
Object.defineProperty(exports, "makeStore", { enumerable: true, get: function () { return factory_1.makeStore; } }); | ||
var store_1 = require("./store"); | ||
Object.defineProperty(exports, "createGlobalStore", { enumerable: true, get: function () { return store_1.makeGlobalStore; } }); | ||
__exportStar(require("./store"), exports); | ||
__exportStar(require("./modules"), exports); | ||
__exportStar(require("./utils"), exports); | ||
__exportStar(require("./types"), exports); |
@@ -1,11 +0,3 @@ | ||
import { ReactNode } from "react"; | ||
import { ReducersMapObject } from "redux"; | ||
export declare const makeGlobalStore: <M extends ReducersMapObject<any, any>>(reducers: M) => { | ||
/** | ||
* Provides the store context for your app. Wrap your app with this high up | ||
* in the component tree. | ||
*/ | ||
StoreProvider: ({ children }: { | ||
children: ReactNode; | ||
}) => import("react/jsx-runtime").JSX.Element; | ||
}; | ||
export { makeReduxStoreSlice } from "./makeReduxStoreSlice"; | ||
export { makeGlobalReduxStore } from "./makeGlobalReduxStore"; | ||
export * from "./types"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeGlobalStore = void 0; | ||
const jsx_runtime_1 = require("react/jsx-runtime"); | ||
const react_redux_1 = require("react-redux"); | ||
const redux_1 = require("redux"); | ||
const redux_devtools_extension_1 = require("redux-devtools-extension"); | ||
const makeGlobalStore = (reducers) => { | ||
const globalReducer = (0, redux_1.combineReducers)(reducers); | ||
const store = (0, redux_1.legacy_createStore)(globalReducer, (0, redux_devtools_extension_1.composeWithDevTools)()); | ||
const StoreProvider = ({ children }) => ((0, jsx_runtime_1.jsx)(react_redux_1.Provider, { store: store, children: children })); | ||
return { | ||
/** | ||
* Provides the store context for your app. Wrap your app with this high up | ||
* in the component tree. | ||
*/ | ||
StoreProvider, | ||
}; | ||
}; | ||
exports.makeGlobalStore = makeGlobalStore; | ||
exports.makeGlobalReduxStore = exports.makeReduxStoreSlice = void 0; | ||
var makeReduxStoreSlice_1 = require("./makeReduxStoreSlice"); | ||
Object.defineProperty(exports, "makeReduxStoreSlice", { enumerable: true, get: function () { return makeReduxStoreSlice_1.makeReduxStoreSlice; } }); | ||
var makeGlobalReduxStore_1 = require("./makeGlobalReduxStore"); | ||
Object.defineProperty(exports, "makeGlobalReduxStore", { enumerable: true, get: function () { return makeGlobalReduxStore_1.makeGlobalReduxStore; } }); | ||
__exportStar(require("./types"), exports); |
{ | ||
"name": "@quoll/client-lib", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Shared code for client side packages", | ||
@@ -30,3 +30,3 @@ "repository": "https://github.com/mzogheib/quoll", | ||
}, | ||
"gitHead": "bb4cc39c3f6cf2fbddecb98fcbecd00a42c3d297" | ||
"gitHead": "ac9d91f49bb589922ba8f662364e13778dc875cd" | ||
} |
@@ -1,2 +0,4 @@ | ||
export { makeStore } from "./store/factory"; | ||
export { makeGlobalStore as createGlobalStore } from "./store"; | ||
export * from "./store"; | ||
export * from "./modules"; | ||
export * from "./utils"; | ||
export * from "./types"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31562
55
875