@openlettermarketing/olc-react-sdk 2.1.5 → 2.1.6

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.
@@ -1 +1 @@
1
- export const SDK_VERSION: "2.1.5";
1
+ export const SDK_VERSION: "2.1.6";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "2.1.5",
4
+ "version": "2.1.6",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",
@@ -407,7 +407,9 @@ const CreateTemplateV2: React.FC<CreateTemplateV2Props> = ({
407
407
  <div className='size-selection-container'>
408
408
  <Typography style={descriptionStyles}>Design Format</Typography>
409
409
  <div className='radio-buttons-container'>
410
- {product?.size?.map((type: any) => (
410
+ {product?.size
411
+ ?.filter((type: any) => !restrictedSet.has(String(type.id)))
412
+ .map((type: any) => (
411
413
  <label key={type.id} className={`radio-button-wrapper ${selectedRPLType === type.id ? 'selected' : ''}`}>
412
414
  <input type="radio" name="postcardSize" value={type.id} checked={selectedRPLType === type.id} onChange={() => handleRealPennedLetter(type, product)} className="radio-input" />
413
415
  <span className="radio-button"></span>
package/src/index.tsx CHANGED
@@ -223,7 +223,7 @@ const TemplateBuilder = ({
223
223
  // // onEditQRCode: updateQRCode,
224
224
  // // allowedTemplateSections: ['my_templates'],
225
225
  // // onGetCustomFields: getAllCustomFields,
226
- // // restrictedProducts: [9, 11, 13, 18 ],
226
+ // restrictedProducts: [38 ],
227
227
  // // disallowedProducts: ['real_penned_letter', 'postcards'],
228
228
  // // olcTemplate: olcTemplateData,
229
229
  // // onGetOneTemplate: getOneTemplate,
package/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.1.5';
1
+ export const SDK_VERSION = '2.1.6';