@helenejs/react
Advanced tools
Comparing version 1.3.8 to 1.4.0
import React, { PropsWithChildren } from 'react'; | ||
import { Client, ClientOptions } from '@helenejs/client'; | ||
export declare const ClientContext: React.Context<any>; | ||
export declare const ClientProvider: ({ clientInstance, clientOptions, children, }: React.PropsWithChildren<{ | ||
export declare const ClientProvider: ({ clientInstance, clientOptions, children, }: PropsWithChildren<{ | ||
clientOptions?: ClientOptions; | ||
clientInstance?: Client; | ||
}>) => React.JSX.Element; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useAuth = void 0; | ||
exports.useAuth = useAuth; | ||
const react_1 = require("react"); | ||
@@ -28,3 +28,2 @@ const use_client_1 = require("./use-client"); | ||
} | ||
exports.useAuth = useAuth; | ||
//# sourceMappingURL=use-auth.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useChannel = void 0; | ||
exports.useChannel = useChannel; | ||
const use_client_1 = require("./use-client"); | ||
@@ -10,3 +10,2 @@ const utils_1 = require("@helenejs/utils"); | ||
} | ||
exports.useChannel = useChannel; | ||
//# sourceMappingURL=use-channel.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useCircuitBreaker = void 0; | ||
exports.useCircuitBreaker = useCircuitBreaker; | ||
const react_1 = require("react"); | ||
@@ -25,3 +25,2 @@ const isEmpty_1 = __importDefault(require("lodash/isEmpty")); | ||
} | ||
exports.useCircuitBreaker = useCircuitBreaker; | ||
//# sourceMappingURL=use-circuit-breaker.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useCollection = void 0; | ||
exports.useCollection = useCollection; | ||
const useCreation_1 = __importDefault(require("ahooks/lib/useCreation")); | ||
@@ -15,3 +15,2 @@ const use_object_1 = require("./use-object"); | ||
} | ||
exports.useCollection = useCollection; | ||
//# sourceMappingURL=use-collection.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useCount = void 0; | ||
exports.useCount = useCount; | ||
const react_1 = require("react"); | ||
@@ -26,3 +26,2 @@ const use_object_1 = require("./use-object"); | ||
} | ||
exports.useCount = useCount; | ||
//# sourceMappingURL=use-count.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useData = void 0; | ||
exports.useData = useData; | ||
const useCreation_1 = __importDefault(require("ahooks/lib/useCreation")); | ||
@@ -125,3 +125,2 @@ const useDebounceFn_1 = __importDefault(require("ahooks/lib/useDebounceFn")); | ||
} | ||
exports.useData = useData; | ||
//# sourceMappingURL=use-data.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useDepsChange = void 0; | ||
exports.useDepsChange = useDepsChange; | ||
const react_1 = require("react"); | ||
@@ -14,3 +14,2 @@ function useDepsChange(deps, data = {}) { | ||
} | ||
exports.useDepsChange = useDepsChange; | ||
//# sourceMappingURL=use-deps-change.js.map |
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useRemoteEvent = exports.useLocalEvent = void 0; | ||
exports.useLocalEvent = useLocalEvent; | ||
exports.useRemoteEvent = useRemoteEvent; | ||
const react_1 = require("react"); | ||
@@ -29,3 +30,2 @@ const use_subscribe_1 = require("./use-subscribe"); | ||
} | ||
exports.useLocalEvent = useLocalEvent; | ||
function useRemoteEvent({ event, channel = utils_1.NO_CHANNEL, active = true }, fn, deps = []) { | ||
@@ -38,3 +38,2 @@ return (0, use_subscribe_1.useSubscribe)({ | ||
} | ||
exports.useRemoteEvent = useRemoteEvent; | ||
//# sourceMappingURL=use-event.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useFindOne = void 0; | ||
exports.useFindOne = useFindOne; | ||
const use_find_1 = require("./use-find"); | ||
@@ -14,3 +14,2 @@ const first_1 = __importDefault(require("lodash/first")); | ||
} | ||
exports.useFindOne = useFindOne; | ||
//# sourceMappingURL=use-find-one.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useFind = void 0; | ||
exports.useFind = useFind; | ||
const react_1 = require("react"); | ||
@@ -37,3 +37,2 @@ const use_object_1 = require("./use-object"); | ||
} | ||
exports.useFind = useFind; | ||
//# sourceMappingURL=use-find.js.map |
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useObject = exports.useLastChangedTimestamp = void 0; | ||
exports.useLastChangedTimestamp = useLastChangedTimestamp; | ||
exports.useObject = useObject; | ||
const react_1 = require("react"); | ||
@@ -22,3 +23,2 @@ const isEqual_1 = __importDefault(require("lodash/isEqual")); | ||
} | ||
exports.useLastChangedTimestamp = useLastChangedTimestamp; | ||
function useObject(currentObject) { | ||
@@ -28,3 +28,2 @@ const timestamp = useLastChangedTimestamp(currentObject); | ||
} | ||
exports.useObject = useObject; | ||
//# sourceMappingURL=use-object.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useSubscribe = void 0; | ||
exports.useSubscribe = useSubscribe; | ||
const react_1 = require("react"); | ||
@@ -52,3 +52,2 @@ const use_client_1 = require("./use-client"); | ||
} | ||
exports.useSubscribe = useSubscribe; | ||
//# sourceMappingURL=use-subscribe.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useThrottledEvents = void 0; | ||
exports.useThrottledEvents = useThrottledEvents; | ||
const useCreation_1 = __importDefault(require("ahooks/lib/useCreation")); | ||
@@ -18,3 +18,2 @@ const react_1 = require("react"); | ||
} | ||
exports.useThrottledEvents = useThrottledEvents; | ||
//# sourceMappingURL=use-throttled-events.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useTracker = void 0; | ||
exports.useTracker = useTracker; | ||
const react_1 = require("react"); | ||
@@ -38,3 +38,2 @@ const data_1 = require("@helenejs/data"); | ||
} | ||
exports.useTracker = useTracker; | ||
//# sourceMappingURL=use-tracker.js.map |
{ | ||
"name": "@helenejs/react", | ||
"version": "1.3.8", | ||
"version": "1.4.0", | ||
"description": "Real-time Web Apps for Node.js", | ||
@@ -26,5 +26,5 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@helenejs/client": "^1.3.8", | ||
"@helenejs/data": "^1.3.7", | ||
"@helenejs/testing": "^1.3.7", | ||
"@helenejs/client": "^1.4.0", | ||
"@helenejs/data": "^1.4.0", | ||
"@helenejs/testing": "^1.4.0", | ||
"@testing-library/dom": "^9.3.1", | ||
@@ -36,3 +36,3 @@ "@testing-library/react": "^14.0.0", | ||
"jsdom": "^24.0.0", | ||
"typescript": "^5.1.3" | ||
"typescript": "^5.5.4" | ||
}, | ||
@@ -63,3 +63,3 @@ "author": "Leonardo Venturini", | ||
}, | ||
"gitHead": "f83cc66bb366490ca45f2954b7a2d23644d20dce" | ||
"gitHead": "cd4725ccde170bd080ce42a3c4ec85a544628445" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
67145
966