@bf2/ui-shared
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -13,1 +13,2 @@ import React from "react"; | ||
export declare const AlertContext: React.Context<Alert | undefined>; | ||
export declare const useAlert: () => any; |
@@ -1,2 +0,2 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
export var AlertVariant; | ||
@@ -11,2 +11,3 @@ (function (AlertVariant) { | ||
export var AlertContext = React.createContext(undefined); | ||
export var useAlert = function () { return useContext(AlertContext); }; | ||
//# sourceMappingURL=Alert.js.map |
@@ -15,1 +15,2 @@ import React from "react"; | ||
export declare const AuthContext: React.Context<Auth | undefined>; | ||
export declare const useAuth: () => any; |
@@ -1,3 +0,4 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
export var AuthContext = React.createContext(undefined); | ||
export var useAuth = function () { return useContext(AuthContext); }; | ||
//# sourceMappingURL=Auth.js.map |
@@ -6,1 +6,2 @@ import React from "react"; | ||
export declare const BasenameContext: React.Context<Basename | undefined>; | ||
export declare const useBasename: () => any; |
@@ -1,3 +0,4 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
export var BasenameContext = React.createContext(undefined); | ||
export var useBasename = function () { return useContext(BasenameContext); }; | ||
//# sourceMappingURL=Basename.js.map |
@@ -32,1 +32,2 @@ import React from "react"; | ||
export declare const ConfigContext: React.Context<Config | undefined>; | ||
export declare const useConfig: () => any; |
@@ -1,3 +0,4 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
export var ConfigContext = React.createContext(undefined); | ||
export var useConfig = function () { return useContext(ConfigContext); }; | ||
//# sourceMappingURL=Config.js.map |
{ | ||
"name": "@bf2/ui-shared", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "UI Shared contains a number of type definitions for shared data structures for the UI.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import React from "react"; | ||
import React, {useContext} from "react"; | ||
@@ -17,1 +17,4 @@ export enum AlertVariant { | ||
export const AlertContext: React.Context<Alert | undefined> = React.createContext<Alert | undefined>(undefined); | ||
export const useAlert = () => useContext(AlertContext); | ||
@@ -1,2 +0,2 @@ | ||
import React from "react"; | ||
import React, {useContext} from "react"; | ||
@@ -16,2 +16,4 @@ export type Auth = { | ||
export const AuthContext: React.Context<Auth | undefined> = React.createContext<Auth | undefined>(undefined); | ||
export const AuthContext: React.Context<Auth | undefined> = React.createContext<Auth | undefined>(undefined); | ||
export const useAuth = () => useContext(AuthContext); |
@@ -1,2 +0,2 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
@@ -7,2 +7,4 @@ export type Basename = { | ||
export const BasenameContext: React.Context<Basename | undefined> = React.createContext<Basename | undefined>(undefined); | ||
export const BasenameContext: React.Context<Basename | undefined> = React.createContext<Basename | undefined>(undefined); | ||
export const useBasename = () => useContext(BasenameContext); |
@@ -1,2 +0,2 @@ | ||
import React from "react"; | ||
import React, { useContext } from "react"; | ||
@@ -21,5 +21,3 @@ export type Config = { | ||
} | ||
kafka: { | ||
} | ||
kafka: {} | ||
federatedModules: { | ||
@@ -38,2 +36,4 @@ kafka: FederatedModuleConfig | ||
export const ConfigContext: React.Context<Config | undefined> = React.createContext<Config | undefined>(undefined); | ||
export const ConfigContext: React.Context<Config | undefined> = React.createContext<Config | undefined>(undefined); | ||
export const useConfig = () => useContext(ConfigContext); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9668
198