@capillarytech/creatives-library 8.0.345-alpha.1 → 8.0.345-alpha.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.
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.1",
4
+ "version": "8.0.345-alpha.3",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -705,6 +705,12 @@ 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
+ console.log('[SlideBoxContent] templateData:', templateData);
709
+ console.log('[SlideBoxContent] templateData.base:', templateData?.base);
710
+ console.log('[SlideBoxContent] templateData.base.is_drag_drop:', templateData?.base?.is_drag_drop);
711
+ console.log('[SlideBoxContent] typeof templateData.base.is_drag_drop:', typeof templateData?.base?.is_drag_drop);
712
+ console.log('[SlideBoxContent] is_drag_drop === true:', templateData?.base?.is_drag_drop === true);
713
+ console.log('[SlideBoxContent] is_drag_drop === 1:', templateData?.base?.is_drag_drop === 1);
708
714
  const isBEETemplate = templateData?.base?.is_drag_drop === true
709
715
  || templateData?.base?.is_drag_drop === 1;
710
716
  if (supportCKEditor || isBEETemplate) {
@@ -37,6 +37,7 @@ const useEmailWrapper = ({
37
37
  // Props for Email component
38
38
  setIsLoadingContent,
39
39
  isGetFormData,
40
+ templateData,
40
41
  getFormdata,
41
42
  type,
42
43
  isFullMode,
@@ -70,6 +71,7 @@ const useEmailWrapper = ({
70
71
  isEditEmail = true,
71
72
  }) => {
72
73
  // State management
74
+ console.log('[SlideBoxContent] mode:', isFullMode);
73
75
  const [templateName, setTemplateName] = useState('');
74
76
  const [isTemplateNameEmpty, setIsTemplateNameEmpty] = useState(true);
75
77
  const [selectedCreateMode, setSelectedCreateMode] = useState('');
@@ -727,7 +729,6 @@ const useEmailWrapper = ({
727
729
  route: { name: 'email' },
728
730
  params: emailParams,
729
731
  isGetFormData,
730
- ...(!isFullMode && { templateData }),
731
732
  getFormdata,
732
733
  getFormSubscriptionData: getFormdata,
733
734
  getDefaultTags: type,