@openlettermarketing/olc-react-sdk 2.1.6-beta.19 → 2.1.6-beta.20
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/README.md
CHANGED
|
@@ -87,6 +87,7 @@ key props:
|
|
|
87
87
|
| `allowedTemplateSections` | _string[ ]_ | The allowedTemplateSections prop lets you control which sections appear in the template gallery by adding or removing them as needed. | ⤫ | `['my_templates', 'team_templates']` |
|
|
88
88
|
| `restrictedProducts` | _number[]_ | The restrictedProducts prop filters products on the product selection screen, allowing you to show or hide products as needed. Simply include the product IDs in the array to filter out specific products. | ⤫ | `[9, 11, 13]` |
|
|
89
89
|
| `excludedFields` | _string[ ]_ | The excludedFields prop allows you to remove specific fields from the custom fields section by their key | ⤫ | `['{{C.EMAIL}}','{{SPF.LAST_NAME}}']` |
|
|
90
|
+
| `hideCurvedTextEffect` | _boolean_ | Hides the Polotno "Curved text" control from the text Effects menu. Defaults to `true` so users cannot apply the curved text effect in the template builder. | ⤫ | `true` |
|
|
90
91
|
| `templateGalleryModal` | _boolean_ | The templateGalleryModal prop can be set to either true or false. When set to false, it disables the template gallery modal and activates the sidebar gallery in the template builder. | ⤫ | `true` |
|
|
91
92
|
| `onReturnAndNavigate` | _function_ | An event which triggers when a user navigates away. | ⤫ | `onReturnAndNavigate () { ... }` |
|
|
92
93
|
| `onGetOneTemplate` | _function_ | An event which triggers when fetching a specific template. | ⤫ | `onGetOneTemplate ( payload ) { ... }` |
|
|
@@ -136,6 +137,7 @@ const App = () => {
|
|
|
136
137
|
secretKey: 'your-secret-key',
|
|
137
138
|
publicApiKey: 'your-api-key',
|
|
138
139
|
sandbox: false,
|
|
140
|
+
hideCurvedTextEffect: true,
|
|
139
141
|
async onSubmit (payload) {
|
|
140
142
|
console.log('Template submitted:', payload);
|
|
141
143
|
// Implement your submission logic here
|