@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.
- package/dist/chuncks/{shared-app-modules.provider.Cp6Tj30e.js → shared-app-modules.provider.DRJ7n4Cj.js} +2 -2
- package/dist/chuncks/{use-shared-app-modules.hook.pcHgcVup.js → use-shared-app-modules.hook.BneFRNyA.js} +1 -1
- package/dist/components.js +5 -5
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/providers.d.ts +3 -3
- package/dist/providers.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
6
|
+
environments: r
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */ e(a.Provider, { value: {
|
|
8
|
+
return /* @__PURE__ */ e(a.Provider, { value: { environments: r }, children: o });
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
11
|
i as S,
|
package/dist/components.js
CHANGED
|
@@ -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.
|
|
8
|
-
import "./chuncks/shared-app-modules.provider.
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
|
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
|
-
|
|
8
|
+
environments: Environments;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export declare function useDebounce(value: string, delay: number): string;
|
package/dist/hooks.js
CHANGED
package/dist/providers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
declare interface
|
|
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
|
-
|
|
11
|
+
environments: Environments;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export declare function SharedAppModulesProvider({ children,
|
|
14
|
+
export declare function SharedAppModulesProvider({ children, environments, }: SharedAppModulesContextProps): JSX.Element;
|
|
15
15
|
|
|
16
16
|
export { }
|
package/dist/providers.js
CHANGED