@openlettermarketing/olc-react-sdk 0.0.11 → 0.0.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",
package/src/index.tsx CHANGED
@@ -64,17 +64,17 @@ const TemplateBuilder = ({
64
64
 
65
65
  // Example to run the project locally for development. Comment out these lines when building the application
66
66
 
67
- const rootElement = document.getElementById('root');
68
- if (rootElement) {
69
- TemplateBuilder({
70
- container: rootElement,
71
- apiKey: import.meta.env.VITE_APP_ACCESS_TOKEN,
72
- mode: 'live',
73
- secretKey: import.meta.env.VITE_APP_PLOTNO_API_KEY,
74
- styles: {}
75
- });
76
- } else {
77
- console.error("Root element '#root' not found in the document.");
78
- }
67
+ // const rootElement = document.getElementById('root');
68
+ // if (rootElement) {
69
+ // TemplateBuilder({
70
+ // container: rootElement,
71
+ // apiKey: import.meta.env.VITE_APP_ACCESS_TOKEN,
72
+ // mode: 'live',
73
+ // secretKey: import.meta.env.VITE_APP_PLOTNO_API_KEY,
74
+ // styles: {}
75
+ // });
76
+ // } else {
77
+ // console.error("Root element '#root' not found in the document.");
78
+ // }
79
79
 
80
80
  export default TemplateBuilder;