@4alldigital/foundation-ui--gamma 1.50.1 → 1.50.2

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.
@@ -101,6 +101,7 @@ export type { Props as ChipProps } from './Chip/Chip.types';
101
101
  export type { Props as AvatarProps } from './Avatar/Avatar.types';
102
102
  export type { Props as OTPInputProps } from './OTPInput/OTPInput.types';
103
103
  export type { Props as HeroProps } from './Hero/Hero.types';
104
+ export { SPACING } from './Hero/Hero.types';
104
105
  export type { Props as HtmlContentProps } from './HtmlContent/HtmlContent.types';
105
106
  export type { Props as CardGridProps } from './CardGrid/CardGrid.types';
106
107
  export type { Props as ScreenProps } from './Screen/Screen.types';
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ interface AmplifyContextProps {
3
+ config: {
4
+ region?: string;
5
+ userPoolId?: string;
6
+ userPoolWebClientId?: string;
7
+ signUpVerificationMethod?: string;
8
+ oauth: {
9
+ domain?: string;
10
+ scope?: string[];
11
+ redirectSignIn?: string;
12
+ redirectSignOut?: string;
13
+ responseType?: string;
14
+ };
15
+ cookieStorage: {
16
+ domain?: string;
17
+ secure?: boolean;
18
+ };
19
+ };
20
+ }
21
+ export declare const AmplifyContext: React.Context<AmplifyContextProps>;
22
+ interface AmplifyProviderProps {
23
+ children: React.ReactNode;
24
+ value: AmplifyContextProps;
25
+ }
26
+ export declare const AmplifyProvider: ({ children, value }: AmplifyProviderProps) => React.ReactElement;
27
+ export default AmplifyProvider;
@@ -42,6 +42,10 @@ interface AppContextProps {
42
42
  currency?: string;
43
43
  country?: string;
44
44
  };
45
+ images?: {
46
+ banner: string[];
47
+ placeholder: string;
48
+ };
45
49
  app?: {
46
50
  loginCallback?: () => void;
47
51
  logoutCallback?: () => void;
@@ -1,4 +1,6 @@
1
1
  export * from './Theme';
2
2
  export { default as ThemeProvider } from './Theme';
3
3
  export * from './App';
4
- export { default as AppContext } from './App';
4
+ export { default as AppProvider } from './App';
5
+ export * from './Amplify';
6
+ export { default as AmplifyProvider } from './Amplify';
@@ -5,3 +5,4 @@ export * from './context';
5
5
  export * from './translations';
6
6
  export * from './hooks';
7
7
  export * from './templates';
8
+ export * from './utils';
@@ -1,2 +1,3 @@
1
1
  export declare function truncateString(str: string, maxLen?: number): string;
2
2
  export declare function formatDuration(duration: string): string;
3
+ export declare function getRandomImageFromArray(images?: string[]): string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.50.1",
3
+ "version": "1.50.2",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -39,7 +39,7 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "08777659f31e1576cc75bce769e2f0ab80105040",
42
+ "gitHead": "bf9b74fe845974b4878d21cc60d75e9e934be0c7",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",