@greatapps/common 1.1.134 → 1.1.135

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/index.mjs CHANGED
@@ -54,32 +54,6 @@ var UserProfile = /* @__PURE__ */ ((UserProfile2) => {
54
54
  return UserProfile2;
55
55
  })(UserProfile || {});
56
56
 
57
- // src/providers/whitelabel.provider.tsx
58
- import { createContext, useContext } from "react";
59
- import { jsx } from "react/jsx-runtime";
60
- var WhitelabelContext = createContext(void 0);
61
- function WhitelabelProvider({
62
- children,
63
- whitelabel,
64
- whitelabelStyles = null
65
- }) {
66
- return /* @__PURE__ */ jsx(WhitelabelContext.Provider, { value: { whitelabel, whitelabelStyles }, children });
67
- }
68
- function useWhitelabel() {
69
- const context = useContext(WhitelabelContext);
70
- if (context === void 0) {
71
- throw new Error("useWhitelabel deve ser usado dentro de um WhitelabelProvider");
72
- }
73
- return context;
74
- }
75
- function useWhitelabelStyles() {
76
- const context = useContext(WhitelabelContext);
77
- if (context === void 0) {
78
- throw new Error("useWhitelabelStyles deve ser usado dentro de um WhitelabelProvider");
79
- }
80
- return context.whitelabelStyles;
81
- }
82
-
83
57
  // src/providers/query.provider.tsx
84
58
  import {
85
59
  QueryClient
@@ -91,7 +65,7 @@ import {
91
65
  } from "@tanstack/react-query-persist-client";
92
66
  import { broadcastQueryClient } from "@tanstack/query-broadcast-client-experimental";
93
67
  import { set, get, del } from "idb-keyval";
94
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
68
+ import { jsx, jsxs } from "react/jsx-runtime";
95
69
  var ReactQueryDevtools = process.env.NODE_ENV === "development" ? dynamic(
96
70
  () => import("./modern-4YXF5ES3.mjs").then((mod) => ({
97
71
  default: mod.ReactQueryDevtools
@@ -169,7 +143,7 @@ function QueryProvider({
169
143
  },
170
144
  children: [
171
145
  children,
172
- /* @__PURE__ */ jsx2(ReactQueryDevtools, { initialIsOpen: false })
146
+ /* @__PURE__ */ jsx(ReactQueryDevtools, { initialIsOpen: false })
173
147
  ]
174
148
  }
175
149
  );
@@ -177,9 +151,9 @@ function QueryProvider({
177
151
 
178
152
  // src/providers/auth.provider.tsx
179
153
  import {
180
- createContext as createContext2,
154
+ createContext,
181
155
  useCallback,
182
- useContext as useContext2,
156
+ useContext,
183
157
  useMemo
184
158
  } from "react";
185
159
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
@@ -326,8 +300,8 @@ function useCurrentAccount() {
326
300
 
327
301
  // src/providers/auth.provider.tsx
328
302
  import { useRouter } from "next/navigation";
329
- import { jsx as jsx3 } from "react/jsx-runtime";
330
- var AuthContext = createContext2(
303
+ import { jsx as jsx2 } from "react/jsx-runtime";
304
+ var AuthContext = createContext(
331
305
  void 0
332
306
  );
333
307
  function AuthProvider({ children }) {
@@ -387,16 +361,42 @@ function AuthProvider({ children }) {
387
361
  }),
388
362
  [user, account, isAuthenticated, isLoading, login, register, logout]
389
363
  );
390
- return /* @__PURE__ */ jsx3(AuthContext.Provider, { value, children });
364
+ return /* @__PURE__ */ jsx2(AuthContext.Provider, { value, children });
391
365
  }
392
366
  function useAuth() {
393
- const context = useContext2(AuthContext);
367
+ const context = useContext(AuthContext);
394
368
  if (context === void 0) {
395
369
  throw new Error("useAuth deve ser usado dentro de um AuthProvider");
396
370
  }
397
371
  return context;
398
372
  }
399
373
 
374
+ // src/providers/whitelabel.provider.tsx
375
+ import { createContext as createContext2, useContext as useContext2 } from "react";
376
+ import { jsx as jsx3 } from "react/jsx-runtime";
377
+ var WhitelabelContext = createContext2(void 0);
378
+ function WhitelabelProvider({
379
+ children,
380
+ whitelabel,
381
+ whitelabelStyles = null
382
+ }) {
383
+ return /* @__PURE__ */ jsx3(WhitelabelContext.Provider, { value: { whitelabel, whitelabelStyles }, children });
384
+ }
385
+ function useWhitelabel() {
386
+ const context = useContext2(WhitelabelContext);
387
+ if (context === void 0) {
388
+ throw new Error("useWhitelabel deve ser usado dentro de um WhitelabelProvider");
389
+ }
390
+ return context;
391
+ }
392
+ function useWhitelabelStyles() {
393
+ const context = useContext2(WhitelabelContext);
394
+ if (context === void 0) {
395
+ throw new Error("useWhitelabelStyles deve ser usado dentro de um WhitelabelProvider");
396
+ }
397
+ return context.whitelabelStyles;
398
+ }
399
+
400
400
  // src/modules/projects/hooks/list-project-users.hook.ts
401
401
  import { useInfiniteQuery } from "@tanstack/react-query";
402
402
  var PAGE_SIZE = 20;