@openlettermarketing/olc-react-sdk 0.0.32 → 0.0.34

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.
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface AppProps {
3
3
  secretKey: string;
4
4
  returnRoute?: string | null;
5
+ platformName?: string | null;
5
6
  createTemplateRoute?: string | null;
6
7
  templateBuilderRoute?: string | null;
7
8
  styles?: any;
@@ -3,6 +3,7 @@ import type { StoreType } from 'polotno/model/store';
3
3
  interface Props {
4
4
  store: StoreType;
5
5
  currentTemplateType: string;
6
+ platformName?: string | null;
6
7
  onGetOneTemplate?: (payload: any) => Promise<any>;
7
8
  onGetTemplates?: (payload: any) => Promise<any>;
8
9
  onGetCustomFields?: () => Promise<any>;
@@ -15,6 +15,7 @@ import './styles.scss';
15
15
  interface TemplateBuilderProps {
16
16
  store: StoreType;
17
17
  returnRoute?: string | null;
18
+ platformName?: string | null;
18
19
  createTemplateRoute?: string | null;
19
20
  olcTemplate?: Record<string, any>;
20
21
  onGetCustomFields?: () => Promise<any>;
@@ -9,6 +9,7 @@ interface TemplateBuilderProps {
9
9
  secretKey: string;
10
10
  basicAuthUsername: string;
11
11
  basicAuthPassword: string;
12
+ platformName?: string | null;
12
13
  returnRoute?: string | null;
13
14
  createTemplateRoute?: string | null;
14
15
  templateBuilderRoute?: string | null;
@@ -21,5 +22,5 @@ interface TemplateBuilderProps {
21
22
  root?: CustomCSSProperties;
22
23
  };
23
24
  }
24
- declare const TemplateBuilder: ({ container, secretKey, basicAuthUsername, basicAuthPassword, returnRoute, createTemplateRoute, templateBuilderRoute, olcTemplate, onGetOneTemplate, onGetTemplates, onGetCustomFields, onSubmit, styles, }: TemplateBuilderProps) => void;
25
+ declare const TemplateBuilder: ({ container, secretKey, basicAuthUsername, basicAuthPassword, platformName, returnRoute, createTemplateRoute, templateBuilderRoute, olcTemplate, onGetOneTemplate, onGetTemplates, onGetCustomFields, onSubmit, styles, }: TemplateBuilderProps) => void;
25
26
  export default TemplateBuilder;
@@ -7,6 +7,6 @@ interface TemplateTypes {
7
7
  id: string;
8
8
  label: string;
9
9
  }
10
- export declare const templateTypes: TemplateTypes[];
10
+ export declare const defaultTemplateTypes: TemplateTypes[];
11
11
  export declare const sortOrderForTemplates: string[];
12
12
  export {};
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.32",
4
+ "version": "0.0.34",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",