@zauru-sdk/hooks 1.0.38 → 1.0.40

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.40](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.39...v1.0.40) (2024-03-26)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/hooks
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.39](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.38...v1.0.39) (2024-03-26)
15
+
16
+ **Note:** Version bump only for package @zauru-sdk/hooks
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.0.38](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.37...v1.0.38) (2024-03-25)
7
23
 
8
24
  **Note:** Version bump only for package @zauru-sdk/hooks
package/dist/alerts.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { showAlert } from "./index";
2
+ import { showAlert } from "./index.js";
3
3
  export const useValidateNotifications = (source) => {
4
4
  const { actionData, fetcher, loaderData } = source;
5
5
  useEffect(() => {
@@ -1,7 +1,7 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { automaticNumberFetchStart, automaticNumberFetchSuccess, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
3
3
  import { useEffect, useState } from "react";
4
- import { showAlert } from "./index";
4
+ import { showAlert } from "./index.js";
5
5
  export const useGetAutomaticNumber = (AUTOMATIC_NUMBER_NAME) => {
6
6
  const fetcher = useFetcher();
7
7
  const dispatch = useAppDispatch();
package/dist/catalogs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { useEffect, useState } from "react";
3
- import { showAlert } from "./index";
3
+ import { showAlert } from "./index.js";
4
4
  import { catalogsFetchStart, catalogsFetchSuccess, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
5
5
  const useApiCatalog = (CATALOG_NAME, otherParams) => {
6
6
  const fetcher = useFetcher();
package/dist/profiles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { useEffect, useState } from "react";
3
- import { showAlert } from "./index";
3
+ import { showAlert } from "./index.js";
4
4
  import { profileFetchStart, profileFetchSuccess, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
5
5
  const useGetProfile = (PROFILE_NAME) => {
6
6
  const fetcher = useFetcher();
@@ -1,7 +1,7 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { receptionFetchStart, receptionFetchSuccess, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
3
3
  import { useEffect, useMemo, useState } from "react";
4
- import { showAlert } from "./index";
4
+ import { showAlert } from "./index.js";
5
5
  import { getBasketsSchema, reduceAdd, toFixedIfNeeded, } from "../../common/dist";
6
6
  const useGetReceptionObject = (RECEPTION_NAME, { online = false, wheres = [] } = {}) => {
7
7
  const fetcher = useFetcher();
package/dist/session.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { setSessionValue, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
3
3
  import { useEffect, useState } from "react";
4
- import { showAlert } from "./index";
4
+ import { showAlert } from "./index.js";
5
5
  /**
6
6
  *
7
7
  * @param attribute
package/dist/templates.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { templateFetchStart, templateFetchSuccess, useAppDispatch, useAppSelector, } from "@zauru-sdk/redux";
3
3
  import { useEffect, useState } from "react";
4
- import { showAlert } from "./index";
4
+ import { showAlert } from "./index.js";
5
5
  const useGetTemplateObject = (TEMPLATE_NAME, config = { online: false }) => {
6
6
  const fetcher = useFetcher();
7
7
  const dispatch = useAppDispatch();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/hooks",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Hooks reutilizables dentro de las webapps de Zauru.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "@remix-run/react": "^2.8.1",
32
32
  "@zauru-sdk/common": "^1.0.33",
33
33
  "@zauru-sdk/graphql": "^1.0.33",
34
- "@zauru-sdk/icons": "^1.0.38",
34
+ "@zauru-sdk/icons": "^1.0.39",
35
35
  "@zauru-sdk/redux": "^1.0.33",
36
36
  "@zauru-sdk/services": "^1.0.33",
37
37
  "@zauru-sdk/types": "^1.0.33",
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=18.0.0"
44
44
  },
45
- "gitHead": "4805e7f610b24bade9bdf11e84e2054675509aaa"
45
+ "gitHead": "d119347011231cdb5151be974176ec81ed8363ac"
46
46
  }
package/src/alerts.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { FetcherWithComponents } from "@remix-run/react";
2
2
  import { useEffect } from "react";
3
- import { showAlert } from "./index";
3
+ import { showAlert } from "./index.js";
4
4
 
5
5
  export const useValidateNotifications = (source: {
6
6
  fetcher?: FetcherWithComponents<any>;
@@ -7,7 +7,7 @@ import {
7
7
  useAppSelector,
8
8
  } from "@zauru-sdk/redux";
9
9
  import { useEffect, useState } from "react";
10
- import { showAlert } from "./index";
10
+ import { showAlert } from "./index.js";
11
11
 
12
12
  type ProfileType<T> = {
13
13
  data: T;
package/src/catalogs.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { useEffect, useState } from "react";
3
- import { AlertType, showAlert } from "./index";
3
+ import { AlertType, showAlert } from "./index.js";
4
4
  import type {
5
5
  AgencyGraphQL,
6
6
  BitacoraPOMassive,
package/src/profiles.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useFetcher } from "@remix-run/react";
2
2
  import { useEffect, useState } from "react";
3
- import { AlertType, showAlert } from "./index";
3
+ import { AlertType, showAlert } from "./index.js";
4
4
  import type {
5
5
  AgencyGraphQL,
6
6
  EmployeeGraphQL,
package/src/receptions.ts CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  GenericDynamicTableColumn,
21
21
  } from "@zauru-sdk/types";
22
22
  import { useEffect, useMemo, useState } from "react";
23
- import { AlertType, showAlert } from "./index";
23
+ import { AlertType, showAlert } from "./index.js";
24
24
  import {
25
25
  getBasketsSchema,
26
26
  reduceAdd,
package/src/session.ts CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  useAppSelector,
6
6
  } from "@zauru-sdk/redux";
7
7
  import { useEffect, useState } from "react";
8
- import { showAlert } from "./index";
8
+ import { showAlert } from "./index.js";
9
9
 
10
10
  export type SERVER_CONFIG_TYPES =
11
11
  | "sessionAttribute"
package/src/templates.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  useAppSelector,
8
8
  } from "@zauru-sdk/redux";
9
9
  import { useEffect, useState } from "react";
10
- import { showAlert } from "./index";
10
+ import { showAlert } from "./index.js";
11
11
 
12
12
  type ProfileType<T> = {
13
13
  data: T;