@grapadigital/shared-app-modules 0.0.73 → 0.0.75

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,9 +3,9 @@ import { createContext as t } from "react";
3
3
  const a = t(void 0);
4
4
  function i({
5
5
  children: o,
6
- enviroments: r
6
+ environments: r
7
7
  }) {
8
- return /* @__PURE__ */ e(a.Provider, { value: { enviroments: r }, children: o });
8
+ return /* @__PURE__ */ e(a.Provider, { value: { environments: r }, children: o });
9
9
  }
10
10
  export {
11
11
  i as S,
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useEffect as s, useContext as d } from "react";
2
- import { a } from "./shared-app-modules.provider.Cp6Tj30e.js";
2
+ import { a } from "./shared-app-modules.provider.DRJ7n4Cj.js";
3
3
  function i(e, o) {
4
4
  const [t, r] = n(e);
5
5
  return s(() => {
@@ -4,8 +4,8 @@ import * as oA from "react";
4
4
  import { forwardRef as R, useState as C, useEffect as k } from "react";
5
5
  import { C as tA, a as aA } from "./chuncks/card.DgcbeLHV.js";
6
6
  import { parseISO as W, differenceInCalendarDays as dA, format as fA } from "date-fns";
7
- import { a as T, u as Z } from "./chuncks/use-shared-app-modules.hook.pcHgcVup.js";
8
- import "./chuncks/shared-app-modules.provider.Cp6Tj30e.js";
7
+ import { a as T, u as Z } from "./chuncks/use-shared-app-modules.hook.BneFRNyA.js";
8
+ import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
9
9
  import { useQuery as F } from "@tanstack/react-query";
10
10
  import gA from "axios";
11
11
  const uA = [
@@ -757,7 +757,7 @@ const V = (A) => {
757
757
  params: A
758
758
  })).data;
759
759
  function UA({ filter: A, queryKey: e }) {
760
- const { enviroments: a } = T();
760
+ const { environments: a } = T();
761
761
  return F({
762
762
  queryKey: ["campaigns", A, ...e || []],
763
763
  queryFn: () => zA({
@@ -856,7 +856,7 @@ const OA = async ({
856
856
  environment: e
857
857
  }) => (await V(e).get("/client", { params: A })).data;
858
858
  function YA({ filter: A, queryKey: e }) {
859
- const { enviroments: a } = T();
859
+ const { environments: a } = T();
860
860
  return F({
861
861
  queryKey: ["clients", A, ...e || []],
862
862
  queryFn: () => OA({
@@ -960,7 +960,7 @@ function TA({
960
960
  filter: A,
961
961
  queryKey: e
962
962
  }) {
963
- const { enviroments: a } = T();
963
+ const { environments: a } = T();
964
964
  return F({
965
965
  queryKey: ["influencers", A, ...e || []],
966
966
  queryFn: () => kA({
package/dist/hooks.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- declare interface Enviroments {
1
+ declare interface Environments {
2
2
  readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
3
3
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
4
4
  readonly VITE_BACKEND_API_USERS_URL?: string;
5
5
  }
6
6
 
7
7
  declare interface SharedAppModulesContextData {
8
- enviroments: Enviroments;
8
+ environments: Environments;
9
9
  }
10
10
 
11
11
  export declare function useDebounce(value: string, delay: number): string;
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { u, a } from "./chuncks/use-shared-app-modules.hook.pcHgcVup.js";
1
+ import { u, a } from "./chuncks/use-shared-app-modules.hook.BneFRNyA.js";
2
2
  export {
3
3
  u as useDebounce,
4
4
  a as useSharedAppModules
@@ -1,6 +1,6 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- declare interface Enviroments {
3
+ declare interface Environments {
4
4
  readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
5
5
  readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
6
6
  readonly VITE_BACKEND_API_USERS_URL?: string;
@@ -8,9 +8,9 @@ declare interface Enviroments {
8
8
 
9
9
  declare interface SharedAppModulesContextProps {
10
10
  children: React.ReactNode;
11
- enviroments: Enviroments;
11
+ environments: Environments;
12
12
  }
13
13
 
14
- export declare function SharedAppModulesProvider({ children, enviroments, }: SharedAppModulesContextProps): JSX.Element;
14
+ export declare function SharedAppModulesProvider({ children, environments, }: SharedAppModulesContextProps): JSX.Element;
15
15
 
16
16
  export { }
package/dist/providers.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as o } from "./chuncks/shared-app-modules.provider.Cp6Tj30e.js";
1
+ import { S as o } from "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
2
2
  export {
3
3
  o as SharedAppModulesProvider
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-app-modules",
3
3
  "private": false,
4
- "version": "0.0.73",
4
+ "version": "0.0.75",
5
5
  "files": [
6
6
  "dist"
7
7
  ],