@arrai-innovations/reactive-helpers 13.0.0 → 13.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.
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Functions
10
10
 
11
- ### default()
11
+ ### useLoadingError()
12
12
 
13
- > **default**(): `any`
13
+ > **useLoadingError**(): `any`
14
14
 
15
15
  A composable function for managing loading and error states.
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrai-innovations/reactive-helpers",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "description": "VueJS 3 utility composition functions to help manipulate objects and lists.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  import { getListCrud } from "../config/listCrud.js";
2
2
  import { assignReactiveObject } from "../utils/assignReactiveObject.js";
3
3
  import { getFakeId } from "../utils/getFakeId.js";
4
- import useLoadingError from "./loadingError.js";
4
+ import { useLoadingError } from "./loadingError.js";
5
5
  import inspect from "browser-util-inspect";
6
6
  import { computed, effectScope, nextTick, reactive, readonly, ref, toRef, unref, watch } from "vue";
7
7
 
@@ -2,7 +2,7 @@ import { loadingCombine } from "../utils/loadingCombine.js";
2
2
  import { useCancellableIntent } from "./cancellableIntent.js";
3
3
  import { useListInstance } from "./listInstance.js";
4
4
  import { listInstanceStateKeys } from "./listKeys.js";
5
- import useLoadingError from "./loadingError.js";
5
+ import { useLoadingError } from "./loadingError.js";
6
6
  import inspect from "browser-util-inspect";
7
7
  import cloneDeep from "lodash-es/cloneDeep.js";
8
8
  import isEmpty from "lodash-es/isEmpty.js";
@@ -16,7 +16,7 @@ import { readonly, ref } from "vue";
16
16
  * @property {(error) => void} setError - Set the error state.
17
17
  * @property {() => void} clearError - Clear the error state.
18
18
  */
19
- export default function useLoadingError() {
19
+ export function useLoadingError() {
20
20
  const loading = ref(undefined);
21
21
  const error = ref(null);
22
22
  const errored = ref(false);
@@ -1,6 +1,6 @@
1
1
  import { getObjectCrud } from "../config/objectCrud.js";
2
2
  import { assignReactiveObject } from "../utils/assignReactiveObject.js";
3
- import useLoadingError from "./loadingError.js";
3
+ import { useLoadingError } from "./loadingError.js";
4
4
  import { reactive, toRef } from "vue";
5
5
 
6
6
  /**
@@ -285,7 +285,7 @@ export function useObjectRelated({ parentState, relatedObjectRules }) {
285
285
  Object.keys(state.relatedObject)
286
286
  ));
287
287
  } else {
288
- removedRuleKeys = new Set(Object.keys(state.relatedObjectRules));
288
+ removedRuleKeys = new Set(Object.keys(state.relatedObject));
289
289
  addedRuleKeys = new Set();
290
290
  }
291
291
  for (const removedRuleKey of removedRuleKeys) {
@@ -1,7 +1,7 @@
1
1
  import { assignReactiveObject } from "../utils/assignReactiveObject.js";
2
2
  import { loadingCombine } from "../utils/loadingCombine.js";
3
3
  import { useCancellableIntent } from "./cancellableIntent.js";
4
- import useLoadingError from "./loadingError.js";
4
+ import { useLoadingError } from "./loadingError.js";
5
5
  import { useObjectInstance, objectInstanceStateKeys } from "./objectInstance.js";
6
6
  import { computed, effectScope, reactive, toRef } from "vue";
7
7