@wlloyalty/wll-react-sdk 1.0.1 → 1.0.3

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.
@@ -1,13 +1,13 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { Section } from '../../../types/section';
2
+ import { TSection } from '../../../types/section';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
5
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
6
- section: Section;
6
+ section: TSection;
7
7
  }>;
8
8
  export declare const SingleItem: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
9
- section: Section;
9
+ section: TSection;
10
10
  }>;
11
11
  export declare const ManyItems: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
12
- section: Section;
12
+ section: TSection;
13
13
  }>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { Section } from '../../../types/section';
2
+ import { TSection } from '../../../types/section';
3
3
  type CarouselProps = {
4
- section: Section;
4
+ section: TSection;
5
5
  };
6
6
  declare const Carousel: React.FC<CarouselProps>;
7
7
  export default Carousel;
@@ -2,5 +2,5 @@ import { Meta } from '@storybook/react';
2
2
  declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
5
- section: import("../../../types/section").Section;
5
+ section: import("../../../types/section").TSection;
6
6
  }>;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Section as SectionData } from '../../../types/section';
2
+ import { TSection as SectionData } from '../../../types/section';
3
3
  type GridProps = {
4
4
  section: SectionData;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { Section as SectionData } from '../../../types/section';
1
+ import { TSection as SectionData } from '../../../types/section';
2
2
  import React from 'react';
3
3
  type SectionContextType = {
4
4
  sectionData: SectionData | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Section } from '../types/section';
2
+ import { TSection } from '../types/section';
3
3
  import { BaseThemeObject, ThemeContextType } from '../types/theme';
4
4
  import { Tile } from '../types/tile';
5
5
  type SDKConfig = {
@@ -12,7 +12,7 @@ type APIResponse<T> = {
12
12
  status: string;
13
13
  };
14
14
  type WllSdkContextType = ThemeContextType & {
15
- getSectionByID: (id: string) => Promise<APIResponse<Section>>;
15
+ getSectionByID: (id: string) => Promise<APIResponse<TSection>>;
16
16
  getTileByID: (id: string) => Promise<APIResponse<Tile>>;
17
17
  };
18
18
  type WllSdkProviderProps = {
package/dist/index.d.ts CHANGED
@@ -2,3 +2,8 @@ export * from './components/atoms';
2
2
  export * from './components/molecules';
3
3
  export * from './components/organisms';
4
4
  export * from './context/WllSdkContext';
5
+ export * from './types/common';
6
+ export * from './types/section';
7
+ export * from './types/theme';
8
+ export * from './types/tile';
9
+ export * from './types/wll';