@openlettermarketing/olc-react-sdk 0.0.20 → 0.0.21

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.
@@ -3,7 +3,6 @@ interface AppProps {
3
3
  secretKey: string;
4
4
  returnRoute?: string | null;
5
5
  styles?: any;
6
- onSubmit?: Function;
7
6
  }
8
7
  declare const App: React.FC<AppProps>;
9
8
  export default App;
@@ -17,7 +17,6 @@ interface TemplateBuilderProps {
17
17
  store: StoreType;
18
18
  returnRoute?: string | null;
19
19
  styles?: React.CSSProperties;
20
- onSubmit?: Function;
21
20
  }
22
21
  declare const TemplateBuilder: React.FC<TemplateBuilderProps>;
23
22
  export default TemplateBuilder;
@@ -4,7 +4,6 @@ interface TopNavigationProps {
4
4
  store: any;
5
5
  returnRoute?: string | null;
6
6
  isStoreUpdated: boolean;
7
- onSubmit?: Function;
8
7
  }
9
8
  declare const TopNavigation: React.FC<TopNavigationProps>;
10
9
  export default TopNavigation;
@@ -7,13 +7,12 @@ import { CustomCSSProperties } from './utils/customStyles';
7
7
  interface TemplateBuilderProps {
8
8
  container: HTMLElement | null;
9
9
  apiKey: string;
10
- env: 'demo' | 'production';
10
+ mode: 'test' | 'live';
11
11
  secretKey: string;
12
- onSubmit?: Function;
13
12
  returnRoute?: string | null;
14
13
  styles?: {
15
14
  root?: CustomCSSProperties;
16
15
  };
17
16
  }
18
- declare const TemplateBuilder: ({ container, apiKey, secretKey, env, returnRoute, onSubmit, styles, }: TemplateBuilderProps) => void;
17
+ declare const TemplateBuilder: ({ container, apiKey, secretKey, mode, returnRoute, styles, }: TemplateBuilderProps) => void;
19
18
  export default TemplateBuilder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "0.0.20",
4
+ "version": "0.0.21",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",