@openlettermarketing/olc-react-sdk 2.0.2-beta.9 → 2.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.
@@ -13,6 +13,7 @@ interface AppProps {
13
13
  allowPropertyFields?: boolean;
14
14
  allowedAddOns?: any;
15
15
  allowedTemplateSections?: any;
16
+ allowAdditionalPage?: boolean;
16
17
  restrictedProducts?: any;
17
18
  disallowedProducts?: string[] | null | undefined;
18
19
  propertyOfferCost?: number;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const sizeImageLg: () => React.JSX.Element;
3
+ export default sizeImageLg;
@@ -21,6 +21,7 @@ interface TemplateBuilderProps {
21
21
  designerTemplateQuery?: Record<string, any> | null;
22
22
  allowSenderFields?: boolean;
23
23
  allowPropertyFields?: boolean;
24
+ allowAdditionalPage?: boolean;
24
25
  excludedFields?: string[] | null;
25
26
  designerQueryAmount?: string | number;
26
27
  allowedAddOns?: any;
@@ -11,6 +11,7 @@ interface TopNavigationProps {
11
11
  onReturnAndNavigate?: () => void;
12
12
  onSubmit?: (payload: any) => Promise<any>;
13
13
  allowedAddOns?: any;
14
+ allowAdditionalPage?: boolean;
14
15
  }
15
16
  declare const TopNavigation: React.FC<TopNavigationProps>;
16
17
  export default TopNavigation;
@@ -28,6 +28,7 @@ interface TemplateBuilderProps {
28
28
  propertyOfferCost?: number;
29
29
  customPropertyOfferCost?: number;
30
30
  gsvCost?: number;
31
+ allowAdditionalPage?: boolean;
31
32
  onReturnAndNavigate?: () => void;
32
33
  onCreateCustomTemplateQuery?: (payload: any) => Promise<any>;
33
34
  onGetOneTemplate?: (payload: any) => Promise<any>;
@@ -39,5 +40,5 @@ interface TemplateBuilderProps {
39
40
  root?: CustomCSSProperties;
40
41
  };
41
42
  }
42
- declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, disallowedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
43
+ declare const TemplateBuilder: ({ container, secretKey, publicApiKey, platformName, templateGalleryModal, createTemplateRoute, templateBuilderRoute, olcTemplate, designerTemplateQuery, sandbox, allowSenderFields, allowPropertyFields, allowAdditionalPage, excludedFields, designerQueryAmount, allowedAddOns, allowedTemplateSections, env, restrictedProducts, disallowedProducts, propertyOfferCost, customPropertyOfferCost, gsvCost, onReturnAndNavigate, onCreateCustomTemplateQuery, onGetOneTemplate, onGetTemplates, onGetCustomFields, onDuplicateTemplate, onSubmit, styles, }: TemplateBuilderProps) => void;
43
44
  export default TemplateBuilder;
@@ -46,4 +46,5 @@ interface Store {
46
46
  export declare const addIdentifierAreaTo4x6PostCard: (store: Store) => void;
47
47
  export declare const addIdentifierAreaTo6x9PostCard: (store: Store) => void;
48
48
  export declare const addIdentifierAreaTo6x11PostCard: (store: Store) => void;
49
+ export declare const addIdentifierAreaTo12x9PostCard: (store: Store) => void;
49
50
  export {};
@@ -0,0 +1,78 @@
1
+ interface Element {
2
+ id: string;
3
+ type: string;
4
+ name: string;
5
+ opacity: number;
6
+ visible: boolean;
7
+ selectable: boolean;
8
+ removable: boolean;
9
+ alwaysOnTop: boolean;
10
+ showInExport: boolean;
11
+ x: number;
12
+ y: number;
13
+ width: number;
14
+ height: number;
15
+ rotation: number;
16
+ animations?: any[];
17
+ blurEnabled?: boolean;
18
+ blurRadius?: number;
19
+ brightnessEnabled?: boolean;
20
+ brightness?: number;
21
+ sepiaEnabled?: boolean;
22
+ grayscaleEnabled?: boolean;
23
+ shadowEnabled?: boolean;
24
+ shadowBlur?: number;
25
+ shadowOffsetX?: number;
26
+ shadowOffsetY?: number;
27
+ shadowColor?: string;
28
+ shadowOpacity?: number;
29
+ draggable?: boolean;
30
+ resizable?: boolean;
31
+ contentEditable: boolean;
32
+ styleEditable: boolean;
33
+ subType?: string;
34
+ fill?: string;
35
+ dash?: any[];
36
+ strokeWidth?: number;
37
+ stroke?: string;
38
+ cornerRadius?: number;
39
+ text?: string;
40
+ placeholder?: string;
41
+ fontSize?: number;
42
+ fontFamily?: string;
43
+ fontStyle?: string;
44
+ fontWeight?: string;
45
+ textDecoration?: string;
46
+ align?: string;
47
+ verticalAlign?: string;
48
+ lineHeight?: number;
49
+ letterSpacing?: number;
50
+ backgroundEnabled?: boolean;
51
+ backgroundColor?: string;
52
+ backgroundOpacity?: number;
53
+ backgroundCornerRadius?: number;
54
+ backgroundPadding?: number;
55
+ src?: string;
56
+ cropX?: number;
57
+ cropY?: number;
58
+ cropWidth?: number;
59
+ cropHeight?: number;
60
+ flipX?: boolean;
61
+ flipY?: boolean;
62
+ clipSrc?: string;
63
+ borderSize?: number;
64
+ keepRatio?: boolean;
65
+ }
66
+ interface Page {
67
+ addElement: (element: Element) => void;
68
+ }
69
+ interface Store {
70
+ width: number;
71
+ height: number;
72
+ pages: Page[];
73
+ history: {
74
+ clear: () => void;
75
+ };
76
+ }
77
+ export declare const addRestrictedAreaToPostCardJumbo: (store: Store, barcodeSrc: string) => void;
78
+ export {};
@@ -2,3 +2,4 @@ import { Store } from "./types";
2
2
  export declare const addSafetyBordersTo4x6PostCard: (store: Store) => void;
3
3
  export declare const addSafetyBordersTo6x9PostCard: (store: Store) => void;
4
4
  export declare const addSafetyBordersTo6x11PostCard: (store: Store) => void;
5
+ export declare const addSafetyBordersTo12x9PostCard: (store: Store) => void;
@@ -1 +1 @@
1
- export const SDK_VERSION: "2.0.2-beta.9";
1
+ export const SDK_VERSION: "2.0.3";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "2.0.2-beta.9",
4
+ "version": "2.0.3",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",
@@ -43,7 +43,7 @@
43
43
  "@fontsource/raleway": "^5.0.19",
44
44
  "@reduxjs/toolkit": "^1.9.7",
45
45
  "mobx-react-lite": "^4.0.7",
46
- "polotno": "^2.25.15",
46
+ "polotno": "^2.28.3",
47
47
  "qrcode": "^1.5.4",
48
48
  "react": "^18.3.1",
49
49
  "react-dom": "^18.3.1",