@fctc/interface-logic 4.4.5 → 4.4.6
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/provider.d.mts +3 -2
- package/dist/provider.d.ts +3 -2
- package/dist/provider.js +7 -2
- package/dist/provider.mjs +7 -2
- package/package.json +1 -1
package/dist/provider.d.mts
CHANGED
|
@@ -198,9 +198,10 @@ declare const MetaProvider: ({ children }: MetaProviderProps) => react_jsx_runti
|
|
|
198
198
|
type SupabaseProviderProps = {
|
|
199
199
|
supabaseUrl: string;
|
|
200
200
|
supabaseKey: string;
|
|
201
|
+
schema?: string;
|
|
201
202
|
children: React$1.ReactNode;
|
|
202
203
|
};
|
|
203
|
-
declare const SupabaseProvider: ({ supabaseUrl, supabaseKey, children, }: SupabaseProviderProps) => react_jsx_runtime.JSX.Element;
|
|
204
|
-
declare const useSupabase: () => SupabaseClient<any,
|
|
204
|
+
declare const SupabaseProvider: ({ supabaseUrl, supabaseKey, schema, children, }: SupabaseProviderProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
declare const useSupabase: () => SupabaseClient<any, any, any, any, any>;
|
|
205
206
|
|
|
206
207
|
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, SupabaseProvider, VersionGate, useEnv, useService, useSupabase };
|
package/dist/provider.d.ts
CHANGED
|
@@ -198,9 +198,10 @@ declare const MetaProvider: ({ children }: MetaProviderProps) => react_jsx_runti
|
|
|
198
198
|
type SupabaseProviderProps = {
|
|
199
199
|
supabaseUrl: string;
|
|
200
200
|
supabaseKey: string;
|
|
201
|
+
schema?: string;
|
|
201
202
|
children: React$1.ReactNode;
|
|
202
203
|
};
|
|
203
|
-
declare const SupabaseProvider: ({ supabaseUrl, supabaseKey, children, }: SupabaseProviderProps) => react_jsx_runtime.JSX.Element;
|
|
204
|
-
declare const useSupabase: () => SupabaseClient<any,
|
|
204
|
+
declare const SupabaseProvider: ({ supabaseUrl, supabaseKey, schema, children, }: SupabaseProviderProps) => react_jsx_runtime.JSX.Element;
|
|
205
|
+
declare const useSupabase: () => SupabaseClient<any, any, any, any, any>;
|
|
205
206
|
|
|
206
207
|
export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, SupabaseProvider, VersionGate, useEnv, useService, useSupabase };
|
package/dist/provider.js
CHANGED
|
@@ -3278,12 +3278,17 @@ var SupabaseContext = (0, import_react4.createContext)(null);
|
|
|
3278
3278
|
var SupabaseProvider = ({
|
|
3279
3279
|
supabaseUrl,
|
|
3280
3280
|
supabaseKey,
|
|
3281
|
+
schema = "public",
|
|
3281
3282
|
children
|
|
3282
3283
|
}) => {
|
|
3283
3284
|
const supabase = (0, import_react4.useMemo)(() => {
|
|
3284
3285
|
if (!supabaseUrl || !supabaseKey) return null;
|
|
3285
|
-
return (0, import_supabase_js.createClient)(supabaseUrl, supabaseKey
|
|
3286
|
-
|
|
3286
|
+
return (0, import_supabase_js.createClient)(supabaseUrl, supabaseKey, {
|
|
3287
|
+
db: {
|
|
3288
|
+
schema
|
|
3289
|
+
}
|
|
3290
|
+
});
|
|
3291
|
+
}, [supabaseUrl, supabaseKey, schema]);
|
|
3287
3292
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SupabaseContext.Provider, { value: supabase, children });
|
|
3288
3293
|
};
|
|
3289
3294
|
var useSupabase = () => {
|
package/dist/provider.mjs
CHANGED
|
@@ -3233,12 +3233,17 @@ var SupabaseContext = createContext(null);
|
|
|
3233
3233
|
var SupabaseProvider = ({
|
|
3234
3234
|
supabaseUrl,
|
|
3235
3235
|
supabaseKey,
|
|
3236
|
+
schema = "public",
|
|
3236
3237
|
children
|
|
3237
3238
|
}) => {
|
|
3238
3239
|
const supabase = useMemo(() => {
|
|
3239
3240
|
if (!supabaseUrl || !supabaseKey) return null;
|
|
3240
|
-
return createClient(supabaseUrl, supabaseKey
|
|
3241
|
-
|
|
3241
|
+
return createClient(supabaseUrl, supabaseKey, {
|
|
3242
|
+
db: {
|
|
3243
|
+
schema
|
|
3244
|
+
}
|
|
3245
|
+
});
|
|
3246
|
+
}, [supabaseUrl, supabaseKey, schema]);
|
|
3242
3247
|
return /* @__PURE__ */ jsx4(SupabaseContext.Provider, { value: supabase, children });
|
|
3243
3248
|
};
|
|
3244
3249
|
var useSupabase = () => {
|