@qoretechnologies/reqraft 0.3.0 → 0.3.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type TReqraftStorageValue = string | number | boolean | Record<string | number, any> | any[];
|
|
2
|
-
export type
|
|
2
|
+
export type TReqraftUseStorage<T extends TReqraftStorageValue> = [
|
|
3
3
|
T,
|
|
4
4
|
(newStorage: T) => void,
|
|
5
5
|
() => void
|
|
6
6
|
];
|
|
7
|
-
export declare function useReqraftStorage<T extends TReqraftStorageValue>(path: string, defaultValue?: T, includeAppPrefix?: boolean):
|
|
7
|
+
export declare function useReqraftStorage<T extends TReqraftStorageValue>(path: string, defaultValue?: T, includeAppPrefix?: boolean): TReqraftUseStorage<T>;
|
|
8
8
|
//# sourceMappingURL=useStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStorage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStorage/useStorage.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC;AACpG,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"useStorage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStorage/useStorage.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC;AACpG,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,oBAAoB,IAAI;IAC/D,CAAC;IACD,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI;IACvB,MAAM,IAAI;CACX,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,oBAAoB,EAC9D,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,CAAC,EAChB,gBAAgB,CAAC,EAAE,OAAO,GACzB,kBAAkB,CAAC,CAAC,CAAC,CAevB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './components/form';
|
|
2
|
-
export { IReqraftMenuItem, IReqraftMenuProps, ReqraftMenu, TReqraftMenu, TReqraftMenuItem } from './components/menu/Menu';
|
|
2
|
+
export { IReqraftMenuItem, IReqraftMenuProps, ReqraftMenu, TReqraftMenu, TReqraftMenuItem, } from './components/menu/Menu';
|
|
3
3
|
export { IReqraftUseFetch, useFetch } from './hooks/useFetch/useFetch';
|
|
4
|
-
export {
|
|
4
|
+
export { TReqraftUseStorage, useReqraftStorage } from './hooks/useStorage/useStorage';
|
|
5
|
+
export { ReqraftProvider, ReqraftQueryClient, initializeReqraft, } from './providers/ReqraftProvider';
|
|
5
6
|
export { query } from './utils/fetch';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.query = exports.initializeReqraft = exports.ReqraftQueryClient = exports.ReqraftProvider = exports.useFetch = exports.ReqraftMenu = void 0;
|
|
17
|
+
exports.query = exports.initializeReqraft = exports.ReqraftQueryClient = exports.ReqraftProvider = exports.useReqraftStorage = exports.useFetch = exports.ReqraftMenu = void 0;
|
|
18
18
|
__exportStar(require("./components/form"), exports);
|
|
19
19
|
var Menu_1 = require("./components/menu/Menu");
|
|
20
20
|
Object.defineProperty(exports, "ReqraftMenu", { enumerable: true, get: function () { return Menu_1.ReqraftMenu; } });
|
|
21
21
|
var useFetch_1 = require("./hooks/useFetch/useFetch");
|
|
22
22
|
Object.defineProperty(exports, "useFetch", { enumerable: true, get: function () { return useFetch_1.useFetch; } });
|
|
23
|
+
var useStorage_1 = require("./hooks/useStorage/useStorage");
|
|
24
|
+
Object.defineProperty(exports, "useReqraftStorage", { enumerable: true, get: function () { return useStorage_1.useReqraftStorage; } });
|
|
23
25
|
var ReqraftProvider_1 = require("./providers/ReqraftProvider");
|
|
24
26
|
Object.defineProperty(exports, "ReqraftProvider", { enumerable: true, get: function () { return ReqraftProvider_1.ReqraftProvider; } });
|
|
25
27
|
Object.defineProperty(exports, "ReqraftQueryClient", { enumerable: true, get: function () { return ReqraftProvider_1.ReqraftQueryClient; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+CAMgC;AAH9B,mGAAA,WAAW,OAAA;AAKb,sDAAuE;AAA5C,oGAAA,QAAQ,OAAA;AACnC,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+CAMgC;AAH9B,mGAAA,WAAW,OAAA;AAKb,sDAAuE;AAA5C,oGAAA,QAAQ,OAAA;AACnC,4DAAsF;AAAzD,+GAAA,iBAAiB,OAAA;AAC9C,+DAIqC;AAHnC,kHAAA,eAAe,OAAA;AACf,qHAAA,kBAAkB,OAAA;AAClB,oHAAA,iBAAiB,OAAA;AAEnB,uCAAsC;AAA7B,8FAAA,KAAK,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoretechnologies/reqraft",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "ReQraft is a collection of React components and hooks that are used across Qore Technologies' products made using the ReQore component library from Qore.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|