applesauce-react 5.1.0 → 6.0.0

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.
@@ -3,7 +3,6 @@ export * from "./use-accounts.js";
3
3
  export * from "./use-action-runner.js";
4
4
  export * from "./use-action.js";
5
5
  export * from "./use-active-account.js";
6
- export * from "./use-event-factory.js";
7
6
  export * from "./use-event-model.js";
8
7
  export * from "./use-event-store.js";
9
8
  export * from "./use-observable-memo.js";
@@ -3,7 +3,6 @@ export * from "./use-accounts.js";
3
3
  export * from "./use-action-runner.js";
4
4
  export * from "./use-action.js";
5
5
  export * from "./use-active-account.js";
6
- export * from "./use-event-factory.js";
7
6
  export * from "./use-event-model.js";
8
7
  export * from "./use-event-store.js";
9
8
  export * from "./use-observable-memo.js";
@@ -1,4 +1,3 @@
1
- export * from "./factory-provider.js";
2
1
  export * from "./store-provider.js";
3
2
  export * from "./accounts-provider.js";
4
3
  export * from "./actions-provider.js";
@@ -1,4 +1,3 @@
1
- export * from "./factory-provider.js";
2
1
  export * from "./store-provider.js";
3
2
  export * from "./accounts-provider.js";
4
3
  export * from "./actions-provider.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-react",
3
- "version": "5.1.0",
3
+ "version": "6.0.0",
4
4
  "description": "React hooks for applesauce",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -56,18 +56,18 @@
56
56
  "rxjs": "^7.8.1"
57
57
  },
58
58
  "optionalDependencies": {
59
- "applesauce-accounts": "^5.1.0",
60
- "applesauce-actions": "^5.0.0",
61
- "applesauce-content": "^5.0.0",
62
- "applesauce-core": "^5.1.0"
59
+ "applesauce-accounts": "^6.0.0",
60
+ "applesauce-actions": "^6.0.0",
61
+ "applesauce-content": "^6.0.0",
62
+ "applesauce-core": "^6.0.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/hash-sum": "^1.0.2",
66
66
  "@types/react": "^18.0.0 || ^19.0.0",
67
- "applesauce-accounts": "^5.1.0",
68
- "applesauce-actions": "^5.0.0",
69
- "applesauce-content": "^5.0.0",
70
- "applesauce-core": "^5.1.0",
67
+ "applesauce-accounts": "^6.0.0",
68
+ "applesauce-actions": "^6.0.0",
69
+ "applesauce-content": "^6.0.0",
70
+ "applesauce-core": "^6.0.0",
71
71
  "react": "^18.0.0 || ^19.0.0",
72
72
  "rimraf": "^6.0.1",
73
73
  "typescript": "^5.8.3",
@@ -1,5 +0,0 @@
1
- import { EventFactory } from "applesauce-core";
2
- /** Gets the {@link EventFactory} from the {@link EventFactoryProvider} */
3
- export declare function useEventFactory(require: false): EventFactory | undefined;
4
- export declare function useEventFactory(require: true): EventFactory;
5
- export declare function useEventFactory(): EventFactory;
@@ -1,8 +0,0 @@
1
- import { useContext } from "react";
2
- import { FactoryContext } from "../providers/factory-provider.js";
3
- export function useEventFactory(require = true) {
4
- const factory = useContext(FactoryContext);
5
- if (!require && !factory)
6
- throw new Error("Missing EventFactoryProvider");
7
- return factory;
8
- }
@@ -1,7 +0,0 @@
1
- import { EventFactory } from "applesauce-core";
2
- import { PropsWithChildren } from "react";
3
- export declare const FactoryContext: import("react").Context<EventFactory | undefined>;
4
- /** Provides an {@link EventFactory} to the component tree */
5
- export declare function FactoryProvider({ factory, children }: PropsWithChildren<{
6
- factory?: EventFactory;
7
- }>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext } from "react";
3
- export const FactoryContext = createContext(undefined);
4
- /** Provides an {@link EventFactory} to the component tree */
5
- export function FactoryProvider({ factory, children }) {
6
- return _jsx(FactoryContext.Provider, { value: factory, children: children });
7
- }