@capillarytech/creatives-library 8.0.259 → 8.0.261
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 +1 -1
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +17 -35
- package/tests/integration/TemplateCreation/api-response.js +31 -1
- package/tests/integration/TemplateCreation/msw-handler.js +2 -0
- package/translations/en.json +3 -4
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +442 -0
- package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +0 -1
- package/v2Components/HtmlEditor/hooks/__tests__/useValidation.test.js +231 -0
- package/v2Components/HtmlEditor/utils/__tests__/htmlValidator.enhanced.test.js +120 -0
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +3 -4
- package/v2Containers/CreativesContainer/SlideBoxContent.js +1 -1
- package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +607 -0
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +313 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +12 -36
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +6 -8
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +75 -100
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +54 -72
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +178 -250
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +12 -16
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +36 -48
- package/v2Containers/WebPush/Create/messages.js +8 -0
- package/v2Containers/WebPush/Create/preview/PreviewControls.js +2 -2
- package/v2Containers/WebPush/Create/preview/PreviewDisclaimer.js +3 -1
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileChromeHeader.js +5 -1
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileExpanded.js +5 -1
- package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/AndroidMobileExpanded.test.js.snap +5 -1
- package/v2Containers/WebPush/Create/preview/preview.scss +7 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +734 -1272
|
@@ -640,4 +640,317 @@ describe('useEmailWrapper - Edge Cases', () => {
|
|
|
640
640
|
// selectedCreateMode should NOT be reset
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
|
+
|
|
644
|
+
describe('getStepFromTemplateStep Edge Cases (lines 130-131)', () => {
|
|
645
|
+
it('handles unknown numeric step value - returns MODE_SELECTION (default case)', () => {
|
|
646
|
+
// Test with numeric step value that doesn't match 1, 2, or 3
|
|
647
|
+
// This triggers the default case at lines 130-131
|
|
648
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
649
|
+
initialProps: {
|
|
650
|
+
...mockProps,
|
|
651
|
+
step: 99, // Unknown numeric step
|
|
652
|
+
},
|
|
653
|
+
});
|
|
654
|
+
|
|
655
|
+
// The hook should default to MODE_SELECTION behavior
|
|
656
|
+
expect(result.current.isShowEmailCreate).toBe(false);
|
|
657
|
+
});
|
|
658
|
+
|
|
659
|
+
it('handles step value of 0 - returns MODE_SELECTION (default case)', () => {
|
|
660
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
661
|
+
initialProps: {
|
|
662
|
+
...mockProps,
|
|
663
|
+
step: 0,
|
|
664
|
+
},
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
expect(result.current.isShowEmailCreate).toBe(false);
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
it('handles negative step value - returns MODE_SELECTION (default case)', () => {
|
|
671
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
672
|
+
initialProps: {
|
|
673
|
+
...mockProps,
|
|
674
|
+
step: -1,
|
|
675
|
+
},
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
expect(result.current.isShowEmailCreate).toBe(false);
|
|
679
|
+
});
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
describe('beeTemplateSetRef reset Edge Cases (lines 288-290)', () => {
|
|
683
|
+
it('resets beeTemplateSetRef when template details are cleared', async () => {
|
|
684
|
+
// First render with template details to set beeTemplateSetRef
|
|
685
|
+
const { result, rerender } = renderHook((props) => useEmailWrapper(props), {
|
|
686
|
+
initialProps: {
|
|
687
|
+
...mockProps,
|
|
688
|
+
params: { id: '123' },
|
|
689
|
+
Email: {
|
|
690
|
+
...mockProps.Email,
|
|
691
|
+
isBeeEnabled: true,
|
|
692
|
+
templateDetails: {
|
|
693
|
+
_id: '123',
|
|
694
|
+
versions: {
|
|
695
|
+
base: {
|
|
696
|
+
activeTab: 'en',
|
|
697
|
+
en: {
|
|
698
|
+
is_drag_drop: true,
|
|
699
|
+
drag_drop_id: 'drag-drop-123',
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
});
|
|
707
|
+
|
|
708
|
+
// Wait for initial effects
|
|
709
|
+
await waitFor(() => {
|
|
710
|
+
expect(mockProps.templatesActions.setBEETemplate).toHaveBeenCalled();
|
|
711
|
+
}, { timeout: 2000 });
|
|
712
|
+
|
|
713
|
+
// Clear template details - this should trigger lines 288-290
|
|
714
|
+
rerender({
|
|
715
|
+
...mockProps,
|
|
716
|
+
params: { id: '123' },
|
|
717
|
+
Email: {
|
|
718
|
+
...mockProps.Email,
|
|
719
|
+
isBeeEnabled: true,
|
|
720
|
+
templateDetails: null, // Cleared
|
|
721
|
+
BEETemplate: null,
|
|
722
|
+
},
|
|
723
|
+
});
|
|
724
|
+
|
|
725
|
+
// The ref should be reset (we can't test ref directly, but we verify no errors)
|
|
726
|
+
expect(result.current).toBeDefined();
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
it('does not reset beeTemplateSetRef when template details exist', async () => {
|
|
730
|
+
const templateDetails = {
|
|
731
|
+
_id: '123',
|
|
732
|
+
versions: {
|
|
733
|
+
base: {
|
|
734
|
+
activeTab: 'en',
|
|
735
|
+
en: { is_drag_drop: true },
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
};
|
|
739
|
+
|
|
740
|
+
const { result, rerender } = renderHook((props) => useEmailWrapper(props), {
|
|
741
|
+
initialProps: {
|
|
742
|
+
...mockProps,
|
|
743
|
+
params: { id: '123' },
|
|
744
|
+
Email: {
|
|
745
|
+
...mockProps.Email,
|
|
746
|
+
isBeeEnabled: true,
|
|
747
|
+
templateDetails,
|
|
748
|
+
},
|
|
749
|
+
},
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
// Rerender with same template details
|
|
753
|
+
rerender({
|
|
754
|
+
...mockProps,
|
|
755
|
+
params: { id: '123' },
|
|
756
|
+
Email: {
|
|
757
|
+
...mockProps.Email,
|
|
758
|
+
isBeeEnabled: true,
|
|
759
|
+
templateDetails,
|
|
760
|
+
},
|
|
761
|
+
});
|
|
762
|
+
|
|
763
|
+
// Should not cause errors
|
|
764
|
+
expect(result.current).toBeDefined();
|
|
765
|
+
});
|
|
766
|
+
});
|
|
767
|
+
|
|
768
|
+
describe('Legacy flow auto-navigate (lines 327-330)', () => {
|
|
769
|
+
it('calls showNextStep immediately when EDITOR mode is selected in legacy flow', () => {
|
|
770
|
+
// Enable legacy flow
|
|
771
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
772
|
+
hasSupportCKEditor.mockReturnValue(true);
|
|
773
|
+
|
|
774
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
775
|
+
initialProps: mockProps,
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
reactAct(() => {
|
|
779
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.EDITOR } });
|
|
780
|
+
});
|
|
781
|
+
|
|
782
|
+
// In legacy flow, showNextStep should be called immediately
|
|
783
|
+
expect(mockProps.showNextStep).toHaveBeenCalled();
|
|
784
|
+
expect(mockProps.onEmailModeChange).toHaveBeenCalledWith(EMAIL_CREATE_MODES.EDITOR, EMAIL_CREATE_MODES.EDITOR);
|
|
785
|
+
|
|
786
|
+
// Reset mock
|
|
787
|
+
hasSupportCKEditor.mockReturnValue(false);
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
it('does NOT call showNextStep in new flow when EDITOR mode is selected', () => {
|
|
791
|
+
// New flow (hasSupportCKEditor returns false)
|
|
792
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
793
|
+
hasSupportCKEditor.mockReturnValue(false);
|
|
794
|
+
|
|
795
|
+
const showNextStepMock = jest.fn();
|
|
796
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
797
|
+
initialProps: {
|
|
798
|
+
...mockProps,
|
|
799
|
+
showNextStep: showNextStepMock,
|
|
800
|
+
},
|
|
801
|
+
});
|
|
802
|
+
|
|
803
|
+
reactAct(() => {
|
|
804
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.HTML_EDITOR } });
|
|
805
|
+
});
|
|
806
|
+
|
|
807
|
+
// In new flow, showNextStep should NOT be called for HTML_EDITOR
|
|
808
|
+
expect(showNextStepMock).not.toHaveBeenCalled();
|
|
809
|
+
});
|
|
810
|
+
|
|
811
|
+
it('does NOT call showNextStep in legacy flow when showNextStep is not provided', () => {
|
|
812
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
813
|
+
hasSupportCKEditor.mockReturnValue(true);
|
|
814
|
+
|
|
815
|
+
const { result } = renderHook((props) => useEmailWrapper(props), {
|
|
816
|
+
initialProps: {
|
|
817
|
+
...mockProps,
|
|
818
|
+
showNextStep: null, // Not provided
|
|
819
|
+
},
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
// Should not throw error
|
|
823
|
+
reactAct(() => {
|
|
824
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.EDITOR } });
|
|
825
|
+
});
|
|
826
|
+
|
|
827
|
+
// Verify onEmailModeChange is still called
|
|
828
|
+
expect(mockProps.onEmailModeChange).toHaveBeenCalled();
|
|
829
|
+
|
|
830
|
+
// Reset mock
|
|
831
|
+
hasSupportCKEditor.mockReturnValue(false);
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
|
|
835
|
+
describe('setSelectedCreateMode for HTML_EDITOR (line 501)', () => {
|
|
836
|
+
it('sets selectedCreateMode to HTML_EDITOR in CREATE_TEMPLATE_CONTENT step when conditions are met', async () => {
|
|
837
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
838
|
+
hasSupportCKEditor.mockReturnValue(false); // New flow
|
|
839
|
+
|
|
840
|
+
const { result, rerender } = renderHook((props) => useEmailWrapper(props), {
|
|
841
|
+
initialProps: {
|
|
842
|
+
...mockProps,
|
|
843
|
+
step: STEPS.MODE_SELECTION,
|
|
844
|
+
emailCreateMode: '',
|
|
845
|
+
},
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
// First select HTML_EDITOR mode
|
|
849
|
+
reactAct(() => {
|
|
850
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.HTML_EDITOR } });
|
|
851
|
+
});
|
|
852
|
+
|
|
853
|
+
// Move to CREATE_TEMPLATE_CONTENT step
|
|
854
|
+
rerender({
|
|
855
|
+
...mockProps,
|
|
856
|
+
step: STEPS.CREATE_TEMPLATE_CONTENT,
|
|
857
|
+
emailCreateMode: EMAIL_CREATE_MODES.EDITOR, // Mapped value
|
|
858
|
+
});
|
|
859
|
+
|
|
860
|
+
// Wait for effects
|
|
861
|
+
await waitFor(() => {
|
|
862
|
+
// The emailProps should reflect HTML editor mode
|
|
863
|
+
const emailProps = result.current.emailProps;
|
|
864
|
+
expect(emailProps.editor).toBe('HTML');
|
|
865
|
+
expect(emailProps.selectedEditorMode).toBe(EMAIL_CREATE_MODES.HTML_EDITOR);
|
|
866
|
+
}, { timeout: 2000 });
|
|
867
|
+
});
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
describe('setSelectedCreateMode for DRAG_DROP (line 508)', () => {
|
|
871
|
+
it('sets selectedCreateMode to DRAG_DROP when template is already selected', async () => {
|
|
872
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
873
|
+
hasSupportCKEditor.mockReturnValue(false); // New flow - supportCKEditor will be false
|
|
874
|
+
|
|
875
|
+
const { result, rerender } = renderHook((props) => useEmailWrapper(props), {
|
|
876
|
+
initialProps: {
|
|
877
|
+
...mockProps,
|
|
878
|
+
step: STEPS.MODE_SELECTION,
|
|
879
|
+
emailCreateMode: '',
|
|
880
|
+
Email: {
|
|
881
|
+
...mockProps.Email,
|
|
882
|
+
isBeeEnabled: true,
|
|
883
|
+
},
|
|
884
|
+
},
|
|
885
|
+
});
|
|
886
|
+
|
|
887
|
+
// First select DRAG_DROP mode - this sets selectedCreateMode internally
|
|
888
|
+
reactAct(() => {
|
|
889
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.DRAG_DROP } });
|
|
890
|
+
});
|
|
891
|
+
|
|
892
|
+
// Verify DRAG_DROP selection was made
|
|
893
|
+
// Note: onEmailModeChange is called with (mappedValue, originalValue)
|
|
894
|
+
// For DRAG_DROP, mappedValue is 'editor' and originalValue is 'drag_drop'
|
|
895
|
+
expect(mockProps.onEmailModeChange).toHaveBeenCalledWith(
|
|
896
|
+
EMAIL_CREATE_MODES.EDITOR,
|
|
897
|
+
EMAIL_CREATE_MODES.DRAG_DROP
|
|
898
|
+
);
|
|
899
|
+
|
|
900
|
+
// Move to CREATE_TEMPLATE_CONTENT step with template already selected
|
|
901
|
+
// This should trigger line 508: setSelectedCreateMode(EMAIL_CREATE_MODES.DRAG_DROP)
|
|
902
|
+
rerender({
|
|
903
|
+
...mockProps,
|
|
904
|
+
step: STEPS.CREATE_TEMPLATE_CONTENT,
|
|
905
|
+
emailCreateMode: EMAIL_CREATE_MODES.DRAG_DROP, // Use DRAG_DROP to enter the correct branch
|
|
906
|
+
SelectedEdmDefaultTemplate: { _id: 'template-123' }, // Template already selected
|
|
907
|
+
Email: {
|
|
908
|
+
...mockProps.Email,
|
|
909
|
+
isBeeEnabled: true,
|
|
910
|
+
},
|
|
911
|
+
});
|
|
912
|
+
|
|
913
|
+
// Wait for effects - the component renders correctly when DRAG_DROP path is triggered
|
|
914
|
+
await waitFor(() => {
|
|
915
|
+
// The component should be in a valid state when line 508 is executed
|
|
916
|
+
expect(result.current.modes).toBeDefined();
|
|
917
|
+
}, { timeout: 2000 });
|
|
918
|
+
});
|
|
919
|
+
|
|
920
|
+
it('ensures DRAG_DROP is set when in new flow with DRAG_DROP selection', async () => {
|
|
921
|
+
const { hasSupportCKEditor } = require('../../../utils/common');
|
|
922
|
+
hasSupportCKEditor.mockReturnValue(false); // New flow
|
|
923
|
+
|
|
924
|
+
const { result, rerender } = renderHook((props) => useEmailWrapper(props), {
|
|
925
|
+
initialProps: {
|
|
926
|
+
...mockProps,
|
|
927
|
+
step: STEPS.MODE_SELECTION,
|
|
928
|
+
emailCreateMode: '',
|
|
929
|
+
Email: {
|
|
930
|
+
...mockProps.Email,
|
|
931
|
+
isBeeEnabled: true,
|
|
932
|
+
},
|
|
933
|
+
},
|
|
934
|
+
});
|
|
935
|
+
|
|
936
|
+
// Select DRAG_DROP mode
|
|
937
|
+
reactAct(() => {
|
|
938
|
+
result.current.onChange({ target: { value: EMAIL_CREATE_MODES.DRAG_DROP } });
|
|
939
|
+
});
|
|
940
|
+
|
|
941
|
+
// Move to template selection step
|
|
942
|
+
rerender({
|
|
943
|
+
...mockProps,
|
|
944
|
+
step: STEPS.TEMPLATE_SELECTION,
|
|
945
|
+
emailCreateMode: EMAIL_CREATE_MODES.EDITOR, // Mapped value
|
|
946
|
+
Email: {
|
|
947
|
+
...mockProps.Email,
|
|
948
|
+
isBeeEnabled: true,
|
|
949
|
+
},
|
|
950
|
+
});
|
|
951
|
+
|
|
952
|
+
// Verify the internal state maintains DRAG_DROP
|
|
953
|
+
expect(result.current.modes).toBeDefined();
|
|
954
|
+
});
|
|
955
|
+
});
|
|
643
956
|
});
|
|
@@ -189,7 +189,7 @@ exports[`Creatives line image carousel test/> should render 1`] = `
|
|
|
189
189
|
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
190
190
|
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
191
191
|
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
192
|
-
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size
|
|
192
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
193
193
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
194
194
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
195
195
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
@@ -197,13 +197,13 @@ exports[`Creatives line image carousel test/> should render 1`] = `
|
|
|
197
197
|
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
198
198
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
199
199
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
200
|
-
"creatives.componentsV2.CapImageUpload.imageSize": "Size
|
|
200
|
+
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
201
201
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
202
202
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
203
203
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
204
204
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
205
205
|
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
206
|
-
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size
|
|
206
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
207
207
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
208
208
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
209
209
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -1896,7 +1896,6 @@ new message content.",
|
|
|
1896
1896
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
1897
1897
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
1898
1898
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
1899
|
-
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
1900
1899
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
1901
1900
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
1902
1901
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -3118,7 +3117,6 @@ new message content.",
|
|
|
3118
3117
|
},
|
|
3119
3118
|
]
|
|
3120
3119
|
}
|
|
3121
|
-
showTruncatedTooltip={false}
|
|
3122
3120
|
size="large"
|
|
3123
3121
|
style={
|
|
3124
3122
|
Object {
|
|
@@ -3137,7 +3135,6 @@ new message content.",
|
|
|
3137
3135
|
/>
|
|
3138
3136
|
}
|
|
3139
3137
|
onChange={[Function]}
|
|
3140
|
-
onDropdownVisibleChange={[Function]}
|
|
3141
3138
|
removeIcon={
|
|
3142
3139
|
<CapIcon
|
|
3143
3140
|
size="s"
|
|
@@ -3202,7 +3199,6 @@ new message content.",
|
|
|
3202
3199
|
onBlur={[Function]}
|
|
3203
3200
|
onChange={[Function]}
|
|
3204
3201
|
onDeselect={[Function]}
|
|
3205
|
-
onDropdownVisibleChange={[Function]}
|
|
3206
3202
|
onFocus={[Function]}
|
|
3207
3203
|
onInputKeyDown={[Function]}
|
|
3208
3204
|
onSearch={[Function]}
|
|
@@ -3441,11 +3437,7 @@ new message content.",
|
|
|
3441
3437
|
}
|
|
3442
3438
|
}
|
|
3443
3439
|
title=""
|
|
3444
|
-
|
|
3445
|
-
<div
|
|
3446
|
-
className="cap-select-option-tooltip"
|
|
3447
|
-
/>
|
|
3448
|
-
</div>
|
|
3440
|
+
/>
|
|
3449
3441
|
</div>
|
|
3450
3442
|
<span
|
|
3451
3443
|
className="ant-select-arrow"
|
|
@@ -3881,7 +3873,7 @@ exports[`Creatives line image carousel test/> should render 2`] = `
|
|
|
3881
3873
|
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
3882
3874
|
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
3883
3875
|
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
3884
|
-
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size
|
|
3876
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
3885
3877
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
3886
3878
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
3887
3879
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
@@ -3889,13 +3881,13 @@ exports[`Creatives line image carousel test/> should render 2`] = `
|
|
|
3889
3881
|
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
3890
3882
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
3891
3883
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
3892
|
-
"creatives.componentsV2.CapImageUpload.imageSize": "Size
|
|
3884
|
+
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
3893
3885
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
3894
3886
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
3895
3887
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
3896
3888
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
3897
3889
|
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
3898
|
-
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size
|
|
3890
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
3899
3891
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
3900
3892
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
3901
3893
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -5588,7 +5580,6 @@ new message content.",
|
|
|
5588
5580
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
5589
5581
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
5590
5582
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
5591
|
-
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
5592
5583
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
5593
5584
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
5594
5585
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -6949,7 +6940,6 @@ new message content.",
|
|
|
6949
6940
|
},
|
|
6950
6941
|
]
|
|
6951
6942
|
}
|
|
6952
|
-
showTruncatedTooltip={false}
|
|
6953
6943
|
size="large"
|
|
6954
6944
|
style={
|
|
6955
6945
|
Object {
|
|
@@ -6968,7 +6958,6 @@ new message content.",
|
|
|
6968
6958
|
/>
|
|
6969
6959
|
}
|
|
6970
6960
|
onChange={[Function]}
|
|
6971
|
-
onDropdownVisibleChange={[Function]}
|
|
6972
6961
|
removeIcon={
|
|
6973
6962
|
<CapIcon
|
|
6974
6963
|
size="s"
|
|
@@ -7033,7 +7022,6 @@ new message content.",
|
|
|
7033
7022
|
onBlur={[Function]}
|
|
7034
7023
|
onChange={[Function]}
|
|
7035
7024
|
onDeselect={[Function]}
|
|
7036
|
-
onDropdownVisibleChange={[Function]}
|
|
7037
7025
|
onFocus={[Function]}
|
|
7038
7026
|
onInputKeyDown={[Function]}
|
|
7039
7027
|
onSearch={[Function]}
|
|
@@ -7272,11 +7260,7 @@ new message content.",
|
|
|
7272
7260
|
}
|
|
7273
7261
|
}
|
|
7274
7262
|
title=""
|
|
7275
|
-
|
|
7276
|
-
<div
|
|
7277
|
-
className="cap-select-option-tooltip"
|
|
7278
|
-
/>
|
|
7279
|
-
</div>
|
|
7263
|
+
/>
|
|
7280
7264
|
</div>
|
|
7281
7265
|
<span
|
|
7282
7266
|
className="ant-select-arrow"
|
|
@@ -7712,7 +7696,7 @@ exports[`Creatives line image carousel test/> should render 3`] = `
|
|
|
7712
7696
|
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
7713
7697
|
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
7714
7698
|
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
7715
|
-
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size
|
|
7699
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
7716
7700
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
7717
7701
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
7718
7702
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
@@ -7720,13 +7704,13 @@ exports[`Creatives line image carousel test/> should render 3`] = `
|
|
|
7720
7704
|
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
7721
7705
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
7722
7706
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
7723
|
-
"creatives.componentsV2.CapImageUpload.imageSize": "Size
|
|
7707
|
+
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
7724
7708
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
7725
7709
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
7726
7710
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
7727
7711
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
7728
7712
|
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
7729
|
-
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size
|
|
7713
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
7730
7714
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
7731
7715
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
7732
7716
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -9419,7 +9403,6 @@ new message content.",
|
|
|
9419
9403
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
9420
9404
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
9421
9405
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
9422
|
-
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
9423
9406
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
9424
9407
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
9425
9408
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -10724,7 +10707,6 @@ new message content.",
|
|
|
10724
10707
|
},
|
|
10725
10708
|
]
|
|
10726
10709
|
}
|
|
10727
|
-
showTruncatedTooltip={false}
|
|
10728
10710
|
size="large"
|
|
10729
10711
|
style={
|
|
10730
10712
|
Object {
|
|
@@ -10743,7 +10725,6 @@ new message content.",
|
|
|
10743
10725
|
/>
|
|
10744
10726
|
}
|
|
10745
10727
|
onChange={[Function]}
|
|
10746
|
-
onDropdownVisibleChange={[Function]}
|
|
10747
10728
|
removeIcon={
|
|
10748
10729
|
<CapIcon
|
|
10749
10730
|
size="s"
|
|
@@ -10808,7 +10789,6 @@ new message content.",
|
|
|
10808
10789
|
onBlur={[Function]}
|
|
10809
10790
|
onChange={[Function]}
|
|
10810
10791
|
onDeselect={[Function]}
|
|
10811
|
-
onDropdownVisibleChange={[Function]}
|
|
10812
10792
|
onFocus={[Function]}
|
|
10813
10793
|
onInputKeyDown={[Function]}
|
|
10814
10794
|
onSearch={[Function]}
|
|
@@ -11047,11 +11027,7 @@ new message content.",
|
|
|
11047
11027
|
}
|
|
11048
11028
|
}
|
|
11049
11029
|
title=""
|
|
11050
|
-
|
|
11051
|
-
<div
|
|
11052
|
-
className="cap-select-option-tooltip"
|
|
11053
|
-
/>
|
|
11054
|
-
</div>
|
|
11030
|
+
/>
|
|
11055
11031
|
</div>
|
|
11056
11032
|
<span
|
|
11057
11033
|
className="ant-select-arrow"
|
|
@@ -189,7 +189,7 @@ exports[`line wrapper test/> should render line component new 1`] = `
|
|
|
189
189
|
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
190
190
|
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
191
191
|
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
192
|
-
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size
|
|
192
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
193
193
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
194
194
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
195
195
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
@@ -197,13 +197,13 @@ exports[`line wrapper test/> should render line component new 1`] = `
|
|
|
197
197
|
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
198
198
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
199
199
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
200
|
-
"creatives.componentsV2.CapImageUpload.imageSize": "Size
|
|
200
|
+
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
201
201
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
202
202
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
203
203
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
204
204
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
205
205
|
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
206
|
-
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size
|
|
206
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
207
207
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
208
208
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
209
209
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -1896,7 +1896,6 @@ new message content.",
|
|
|
1896
1896
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
1897
1897
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
1898
1898
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
1899
|
-
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
1900
1899
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
1901
1900
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
1902
1901
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -19464,7 +19463,7 @@ exports[`line wrapper test/> should render line component old 1`] = `
|
|
|
19464
19463
|
"creatives.componentsV2.CapDocumentUpload.imageDimenstionDescription": "Dimensions upto: {width}px x {height}px",
|
|
19465
19464
|
"creatives.componentsV2.CapDocumentUpload.or": "OR",
|
|
19466
19465
|
"creatives.componentsV2.CapDocumentUpload.uploadComputer": "Select from computer",
|
|
19467
|
-
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size
|
|
19466
|
+
"creatives.componentsV2.CapDocumentUpload.whatsappDocSize": "Size upto: {size}",
|
|
19468
19467
|
"creatives.componentsV2.CapImageUpload.aspectRatio": "Aspect ratio: 1:1",
|
|
19469
19468
|
"creatives.componentsV2.CapImageUpload.dragAndDrop": "Drag and drop image here",
|
|
19470
19469
|
"creatives.componentsV2.CapImageUpload.format": "Format: JPEG, JPG, PNG",
|
|
@@ -19472,13 +19471,13 @@ exports[`line wrapper test/> should render line component old 1`] = `
|
|
|
19472
19471
|
"creatives.componentsV2.CapImageUpload.imageErrorDesc": "Please upload the image with allowed file extension, size, dimension and aspect ratio",
|
|
19473
19472
|
"creatives.componentsV2.CapImageUpload.imageGallery": "Gallery",
|
|
19474
19473
|
"creatives.componentsV2.CapImageUpload.imageReUpload": "Reupload",
|
|
19475
|
-
"creatives.componentsV2.CapImageUpload.imageSize": "Size
|
|
19474
|
+
"creatives.componentsV2.CapImageUpload.imageSize": "Size upto: 2MB",
|
|
19476
19475
|
"creatives.componentsV2.CapImageUpload.or": "OR",
|
|
19477
19476
|
"creatives.componentsV2.CapImageUpload.uploadComputer": "Select from computer",
|
|
19478
19477
|
"creatives.componentsV2.CapImageUpload.uploadGallery": "Gallery",
|
|
19479
19478
|
"creatives.componentsV2.CapImageUpload.uploadImageDescription": "The relevant image that complements the message context.",
|
|
19480
19479
|
"creatives.componentsV2.CapImageUpload.whatsappAspectRatio": "Max aspect ratio: 1.91:1",
|
|
19481
|
-
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size
|
|
19480
|
+
"creatives.componentsV2.CapImageUpload.whatsappImageSize": "Size upto: 5MB",
|
|
19482
19481
|
"creatives.componentsV2.CapTagList.Cancel": "Cancel",
|
|
19483
19482
|
"creatives.componentsV2.CapTagList.Ok": "Ok",
|
|
19484
19483
|
"creatives.componentsV2.CapTagList.all": "All",
|
|
@@ -21171,7 +21170,6 @@ new message content.",
|
|
|
21171
21170
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
21172
21171
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
21173
21172
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
21174
|
-
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
21175
21173
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
21176
21174
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
21177
21175
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|