@capillarytech/creatives-library 8.0.345-alpha.6 → 8.0.345-alpha.7

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": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.345-alpha.6",
4
+ "version": "8.0.345-alpha.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -705,8 +705,27 @@ export function SlideBoxContent(props) {
705
705
  // and getDetails?type=BEE_PLUGIN would never fire. Routing BEE
706
706
  // templates through the direct <Email> path — which is already
707
707
  // battle-tested for the CKEditor flow — sidesteps that entirely.
708
+ const vBase = templateData?.versions?.base;
709
+ const vBaseActiveTab = vBase?.activeTab || vBase?.selectedLanguages?.[0] || 'en';
708
710
  const isBEETemplate = templateData?.base?.is_drag_drop === true
709
- || templateData?.base?.is_drag_drop === 1;
711
+ || templateData?.base?.is_drag_drop === 1
712
+ || vBase?.[vBaseActiveTab]?.is_drag_drop === true
713
+ || vBase?.[vBaseActiveTab]?.is_drag_drop === 1;
714
+ console.log('[SlideBoxContent] BEE routing debug', {
715
+ supportCKEditor,
716
+ 'templateData._id': templateData?._id,
717
+ 'templateData.type': templateData?.type,
718
+ 'templateData.base': templateData?.base,
719
+ 'templateData.base.is_drag_drop': templateData?.base?.is_drag_drop,
720
+ 'templateData.base.drag_drop_id': templateData?.base?.drag_drop_id,
721
+ vBase,
722
+ vBaseActiveTab,
723
+ 'vBase[vBaseActiveTab]': vBase?.[vBaseActiveTab],
724
+ 'vBase[vBaseActiveTab].is_drag_drop': vBase?.[vBaseActiveTab]?.is_drag_drop,
725
+ 'vBase[vBaseActiveTab].drag_drop_id': vBase?.[vBaseActiveTab]?.drag_drop_id,
726
+ isBEETemplate,
727
+ routingTo: (supportCKEditor || isBEETemplate) ? 'Email (direct)' : 'EmailWrapper',
728
+ });
710
729
  if (supportCKEditor || isBEETemplate) {
711
730
  return (
712
731
  <Email