@capillarytech/creatives-library 8.0.316-alpha.4 → 8.0.317-alpha.0

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.
Files changed (91) hide show
  1. package/constants/unified.js +1 -0
  2. package/package.json +1 -1
  3. package/services/api.js +6 -0
  4. package/services/tests/api.test.js +7 -0
  5. package/utils/common.js +6 -1
  6. package/utils/tests/tagValidations.test.js +34 -0
  7. package/v2Components/CapTagList/index.js +15 -22
  8. package/v2Components/CapTagList/style.scss +48 -0
  9. package/v2Components/CapTagListWithInput/__tests__/CapTagListWithInput.test.js +63 -0
  10. package/v2Components/CapTagListWithInput/index.js +4 -0
  11. package/v2Components/CapWhatsappCTA/index.js +2 -0
  12. package/v2Components/CommonTestAndPreview/tests/CustomValuesEditor.test.js +180 -0
  13. package/v2Components/CommonTestAndPreview/tests/DeliverySettings/utils/parseSenderDetailsResponse.test.js +96 -0
  14. package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/index.test.js +99 -0
  15. package/v2Components/CommonTestAndPreview/tests/index.test.js +113 -3
  16. package/v2Components/FormBuilder/index.js +7 -0
  17. package/v2Components/HtmlEditor/HTMLEditor.js +6 -1
  18. package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +1 -0
  19. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +927 -2
  20. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +3 -0
  21. package/v2Components/SmsFallback/tests/useLocalTemplateList.test.js +95 -0
  22. package/v2Containers/BeeEditor/index.js +3 -0
  23. package/v2Containers/CommunicationFlow/CommunicationFlow.js +291 -0
  24. package/v2Containers/CommunicationFlow/CommunicationFlow.scss +25 -0
  25. package/v2Containers/CommunicationFlow/Tests/CommunicationFlow.test.js +255 -0
  26. package/v2Containers/CommunicationFlow/constants.js +200 -0
  27. package/v2Containers/CommunicationFlow/index.js +102 -0
  28. package/v2Containers/CommunicationFlow/messages.js +346 -0
  29. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.js +522 -0
  30. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.scss +170 -0
  31. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/Tests/ChannelSelectionStep.test.js +796 -0
  32. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/index.js +5 -0
  33. package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js +95 -0
  34. package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/Tests/CommunicationStrategyStep.test.js +133 -0
  35. package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/index.js +5 -0
  36. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js +289 -0
  37. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.scss +70 -0
  38. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.js +319 -0
  39. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.scss +69 -0
  40. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/Tests/DeliverySettingsSection.test.js +616 -0
  41. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/Tests/SenderDetails.test.js +577 -0
  42. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/Tests/deliverySettingsConfig.test.js +1111 -0
  43. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/deliverySettingsConfig.js +696 -0
  44. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/index.js +7 -0
  45. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.js +102 -0
  46. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.scss +36 -0
  47. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/Tests/DynamicControlsStep.test.js +91 -0
  48. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/index.js +5 -0
  49. package/v2Containers/CommunicationFlow/steps/MessageTypeStep/MessageTypeStep.js +86 -0
  50. package/v2Containers/CommunicationFlow/steps/MessageTypeStep/Tests/MessageTypeStep.test.js +100 -0
  51. package/v2Containers/CommunicationFlow/steps/MessageTypeStep/index.js +5 -0
  52. package/v2Containers/CommunicationFlow/utils/getEnabledSteps.js +30 -0
  53. package/v2Containers/CreativesContainer/SlideBoxContent.js +28 -1
  54. package/v2Containers/CreativesContainer/constants.js +3 -0
  55. package/v2Containers/CreativesContainer/index.js +3 -0
  56. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +104 -0
  57. package/v2Containers/CreativesContainer/tests/SlideBoxHeader.test.js +110 -0
  58. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +363 -0
  59. package/v2Containers/CreativesContainer/tests/embeddedSlideboxUtils.test.js +258 -0
  60. package/v2Containers/Email/index.js +1 -0
  61. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +7 -1
  62. package/v2Containers/EmailWrapper/components/EmailWrapperView.js +3 -0
  63. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +20 -2
  64. package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +16 -1
  65. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +3 -0
  66. package/v2Containers/EmailWrapper/index.js +4 -0
  67. package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +1 -0
  68. package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +9 -0
  69. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +19 -0
  70. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +3 -0
  71. package/v2Containers/InAppWrapper/index.js +3 -0
  72. package/v2Containers/MobilePush/Create/index.js +2 -0
  73. package/v2Containers/MobilePush/Edit/index.js +2 -0
  74. package/v2Containers/MobilepushWrapper/index.js +3 -1
  75. package/v2Containers/Rcs/index.js +1 -0
  76. package/v2Containers/Sms/Create/index.js +2 -0
  77. package/v2Containers/Sms/Edit/index.js +2 -0
  78. package/v2Containers/Sms/tests/smsFormDataHelpers.test.js +253 -0
  79. package/v2Containers/SmsTrai/Edit/index.js +2 -0
  80. package/v2Containers/SmsWrapper/index.js +2 -0
  81. package/v2Containers/TagList/index.js +41 -2
  82. package/v2Containers/TagList/messages.js +4 -0
  83. package/v2Containers/TagList/tests/TagList.test.js +122 -20
  84. package/v2Containers/TagList/tests/mockdata.js +17 -0
  85. package/v2Containers/Templates/tests/sagas.test.js +83 -0
  86. package/v2Containers/Viber/index.js +5 -0
  87. package/v2Containers/WebPush/Create/hooks/useTagManagement.js +0 -2
  88. package/v2Containers/WebPush/Create/index.js +9 -1
  89. package/v2Containers/Whatsapp/index.js +5 -0
  90. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +20 -0
  91. package/v2Containers/Zalo/index.js +2 -0
@@ -2125,6 +2125,7 @@ export class Creatives extends React.Component {
2125
2125
  smsRegister,
2126
2126
  enableNewChannels,
2127
2127
  eventContextTags,
2128
+ waitEventContextTags,
2128
2129
  isLoyaltyModule,
2129
2130
  loyaltyMetaData = {},
2130
2131
  } = this.props;
@@ -2289,6 +2290,7 @@ export class Creatives extends React.Component {
2289
2290
  creativesMode={creativesMode} // An existing prop that we're using here. Required to ensure correct account details in Edit or Preview in case of Embedded mode.
2290
2291
  hostName={this.props?.hostName || ''}
2291
2292
  eventContextTags={eventContextTags}
2293
+ waitEventContextTags={waitEventContextTags}
2292
2294
  isLoyaltyModule={isLoyaltyModule}
2293
2295
  loyaltyMetaData={loyaltyMetaData}
2294
2296
  showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
@@ -2382,6 +2384,7 @@ Creatives.propTypes = {
2382
2384
  orgUnitId: PropTypes.number,
2383
2385
  hostName: PropTypes.string,
2384
2386
  eventContextTags: PropTypes.array,
2387
+ waitEventContextTags: PropTypes.object,
2385
2388
  loyaltyTagFetchingDependencies: PropTypes.object,
2386
2389
  customerType: PropTypes.string,
2387
2390
  intl: PropTypes.shape({
@@ -529,4 +529,108 @@ describe('shouldCheckValidation (line 79)', () => {
529
529
  expect(updateBtn).toBeEnabled();
530
530
  });
531
531
  });
532
+ });
533
+
534
+ describe('SlideBoxFooter — isHtmlEditorValidationStateActive via issueCounts', () => {
535
+ beforeEach(() => {
536
+ jest.clearAllMocks();
537
+ });
538
+
539
+ it('activates via issueCounts.total > 0 even when validationComplete=false and hasErrors=false', () => {
540
+ const { hasSupportCKEditor } = require('../../../utils/common');
541
+ hasSupportCKEditor.mockReturnValue(false);
542
+
543
+ renderComponent({
544
+ ...baseFooterProps,
545
+ currentChannel: 'EMAIL',
546
+ slidBoxContent: 'editTemplate',
547
+ htmlEditorValidationState: {
548
+ validationComplete: false,
549
+ hasErrors: false,
550
+ errorsAcknowledged: false,
551
+ isContentEmpty: false,
552
+ issueCounts: { html: 1, label: 0, liquid: 0, total: 1 },
553
+ },
554
+ });
555
+ // isHtmlEditorValidationStateActive = true (via issueCounts.total > 0)
556
+ // isHTMLEditorModeInEdit = true, shouldCheckValidation = true
557
+ // hasValidationErrors = false, shouldDisableButtons = false (no hasErrors)
558
+ const updateBtn = screen.getByRole('button', { name: /update/i });
559
+ expect(updateBtn).toBeEnabled();
560
+ });
561
+
562
+ it('issueCounts.total=0 with validationComplete=false → not activated (BEE edit mode)', () => {
563
+ const { hasSupportCKEditor } = require('../../../utils/common');
564
+ hasSupportCKEditor.mockReturnValue(false);
565
+
566
+ renderComponent({
567
+ ...baseFooterProps,
568
+ currentChannel: 'EMAIL',
569
+ slidBoxContent: 'editTemplate',
570
+ htmlEditorValidationState: {
571
+ validationComplete: false,
572
+ hasErrors: false,
573
+ errorsAcknowledged: false,
574
+ isContentEmpty: false,
575
+ issueCounts: { html: 0, label: 0, liquid: 0, total: 0 },
576
+ },
577
+ });
578
+ // isHtmlEditorValidationStateActive = false → isHTMLEditorModeInEdit = false
579
+ // isBEEEditor = true (isEditMode && !isHtmlEditorValidationStateActive)
580
+ // shouldCheckValidation = false → button enabled
581
+ const updateBtn = screen.getByRole('button', { name: /update/i });
582
+ expect(updateBtn).toBeEnabled();
583
+ });
584
+ });
585
+
586
+ describe('SlideBoxFooter — isBEEEditor detection in create mode via emailCreateMode=editor', () => {
587
+ beforeEach(() => {
588
+ jest.clearAllMocks();
589
+ });
590
+
591
+ it('detects BEE editor when emailCreateMode=editor and selectedEmailCreateMode is not html_editor (create mode)', () => {
592
+ const { hasSupportCKEditor } = require('../../../utils/common');
593
+ hasSupportCKEditor.mockReturnValue(false);
594
+
595
+ renderComponent({
596
+ ...baseFooterProps,
597
+ currentChannel: 'EMAIL',
598
+ slidBoxContent: 'createTemplate',
599
+ emailCreateMode: 'editor',
600
+ selectedEmailCreateMode: 'drag_drop',
601
+ htmlEditorValidationState: {
602
+ validationComplete: false,
603
+ hasErrors: false,
604
+ isContentEmpty: false,
605
+ issueCounts: { html: 0, label: 0, liquid: 0, total: 0 },
606
+ },
607
+ });
608
+ // selectedEmailCreateMode=drag_drop → isBEEEditor = true (DRAG_DROP branch)
609
+ // shouldCheckValidation = false → button not disabled by validation
610
+ const createBtn = screen.getByRole('button', { name: /create/i });
611
+ expect(createBtn).toBeInTheDocument();
612
+ });
613
+
614
+ it('enables primary action button when emailCreateMode=editor but mode is not HTML editor (BEE editor path)', () => {
615
+ const { hasSupportCKEditor } = require('../../../utils/common');
616
+ hasSupportCKEditor.mockReturnValue(false);
617
+
618
+ renderComponent({
619
+ ...baseFooterProps,
620
+ currentChannel: 'EMAIL',
621
+ slidBoxContent: 'createTemplate',
622
+ emailCreateMode: 'editor',
623
+ selectedEmailCreateMode: undefined,
624
+ htmlEditorValidationState: {
625
+ validationComplete: false,
626
+ hasErrors: false,
627
+ isContentEmpty: false,
628
+ issueCounts: { html: 0, label: 0, liquid: 0, total: 0 },
629
+ },
630
+ });
631
+ // isHTMLEditorModeInCreate = false (selectedEmailCreateMode is undefined, not html_editor)
632
+ // emailCreateMode === 'editor' && !isHTMLEditorMode → isBEEEditor = true
633
+ const createBtn = screen.getByRole('button', { name: /create/i });
634
+ expect(createBtn).toBeInTheDocument();
635
+ });
532
636
  });
@@ -72,4 +72,114 @@ describe('Test SlideBoxHeader container', () => {
72
72
  renderFunction("ZALO", "editTemplate", zaloEditTemplateData, true);
73
73
  expect(renderedComponent).toMatchSnapshot();
74
74
  });
75
+
76
+ it('renders templateNameRenderProp when isFullMode and shouldShowTemplateName are both true', () => {
77
+ const templateNameRenderProp = jest.fn().mockReturnValue(null);
78
+ renderedComponent = shallowWithIntl(
79
+ <SlideBoxHeader
80
+ slidBoxContent="editTemplate"
81
+ channel="SMS"
82
+ templateData={{ name: 'My Template' }}
83
+ onCreateComplete={onCreateComplete}
84
+ isFullMode
85
+ shouldShowTemplateName
86
+ templateNameRenderProp={templateNameRenderProp}
87
+ moduleType="journey"
88
+ />
89
+ );
90
+ expect(templateNameRenderProp).toHaveBeenCalled();
91
+ expect(renderedComponent).toMatchSnapshot();
92
+ });
93
+
94
+ it('does not call templateNameRenderProp when isFullMode is false (showTemplateNameHeader=false)', () => {
95
+ const templateNameRenderProp = jest.fn().mockReturnValue(null);
96
+ renderedComponent = shallowWithIntl(
97
+ <SlideBoxHeader
98
+ slidBoxContent="editTemplate"
99
+ channel="SMS"
100
+ templateData={{ name: 'My Template' }}
101
+ onCreateComplete={onCreateComplete}
102
+ isFullMode={false}
103
+ shouldShowTemplateName
104
+ templateNameRenderProp={templateNameRenderProp}
105
+ moduleType="journey"
106
+ />
107
+ );
108
+ expect(templateNameRenderProp).not.toHaveBeenCalled();
109
+ expect(renderedComponent).toMatchSnapshot();
110
+ });
111
+
112
+ it('does not call templateNameRenderProp when shouldShowTemplateName is false (showTemplateNameHeader=false)', () => {
113
+ const templateNameRenderProp = jest.fn().mockReturnValue(null);
114
+ renderedComponent = shallowWithIntl(
115
+ <SlideBoxHeader
116
+ slidBoxContent="editTemplate"
117
+ channel="SMS"
118
+ templateData={{ name: 'My Template' }}
119
+ onCreateComplete={onCreateComplete}
120
+ isFullMode
121
+ shouldShowTemplateName={false}
122
+ templateNameRenderProp={templateNameRenderProp}
123
+ moduleType="journey"
124
+ />
125
+ );
126
+ expect(templateNameRenderProp).not.toHaveBeenCalled();
127
+ expect(renderedComponent).toMatchSnapshot();
128
+ });
129
+
130
+ it('shows edit header for InApp edit without fullMode (shouldShowInAppEditHeader=true)', () => {
131
+ renderedComponent = shallowWithIntl(
132
+ <SlideBoxHeader
133
+ slidBoxContent="editTemplate"
134
+ channel="inapp"
135
+ templateData={{ name: 'InApp Tpl' }}
136
+ onCreateComplete={onCreateComplete}
137
+ isFullMode={false}
138
+ moduleType="journey"
139
+ />
140
+ );
141
+ expect(renderedComponent).toMatchSnapshot();
142
+ });
143
+
144
+ it('hides edit header for InApp edit with fullMode (shouldShowInAppEditHeader=false, isInAppCreate guard)', () => {
145
+ renderedComponent = shallowWithIntl(
146
+ <SlideBoxHeader
147
+ slidBoxContent="editTemplate"
148
+ channel="inapp"
149
+ templateData={{ name: 'InApp Tpl' }}
150
+ onCreateComplete={onCreateComplete}
151
+ isFullMode
152
+ moduleType="journey"
153
+ />
154
+ );
155
+ expect(renderedComponent).toMatchSnapshot();
156
+ });
157
+
158
+ it('renders whatsappOverview=true header when WHATSAPP edit in fullMode', () => {
159
+ renderedComponent = shallowWithIntl(
160
+ <SlideBoxHeader
161
+ slidBoxContent="editTemplate"
162
+ channel="WHATSAPP"
163
+ templateData={whatsappEditTemplateData}
164
+ onCreateComplete={onCreateComplete}
165
+ isFullMode
166
+ moduleType="journey"
167
+ />
168
+ );
169
+ expect(renderedComponent).toMatchSnapshot();
170
+ });
171
+
172
+ it('renders whatsappOverview=false header when WHATSAPP edit without fullMode', () => {
173
+ renderedComponent = shallowWithIntl(
174
+ <SlideBoxHeader
175
+ slidBoxContent="editTemplate"
176
+ channel="WHATSAPP"
177
+ templateData={whatsappEditTemplateData}
178
+ onCreateComplete={onCreateComplete}
179
+ isFullMode={false}
180
+ moduleType="journey"
181
+ />
182
+ );
183
+ expect(renderedComponent).toMatchSnapshot();
184
+ });
75
185
  });
@@ -377,3 +377,366 @@ exports[`Test SlideBoxHeader container Should render correct component for zalo
377
377
  />
378
378
  </div>
379
379
  `;
380
+
381
+ exports[`Test SlideBoxHeader container does not call templateNameRenderProp when isFullMode is false (showTemplateNameHeader=false) 1`] = `
382
+ <div
383
+ key="creatives-container-slidebox-header-content"
384
+ >
385
+ <CapHeader
386
+ className="support-video-elements"
387
+ description={
388
+ <React.Fragment>
389
+
390
+ </React.Fragment>
391
+ }
392
+ descriptionClass=""
393
+ inline={false}
394
+ size="large"
395
+ title={
396
+ <FormattedMessage
397
+ defaultMessage="Edit {channel}"
398
+ id="creatives.containersV2.Creatives.editMessageContent"
399
+ values={
400
+ Object {
401
+ "channel": <FormattedMessage
402
+ defaultMessage="SMS"
403
+ id="creatives.containersV2.Creatives.smsHeader"
404
+ values={Object {}}
405
+ />,
406
+ }
407
+ }
408
+ />
409
+ }
410
+ titleClass=""
411
+ />
412
+ </div>
413
+ `;
414
+
415
+ exports[`Test SlideBoxHeader container does not call templateNameRenderProp when shouldShowTemplateName is false (showTemplateNameHeader=false) 1`] = `
416
+ <div
417
+ key="creatives-container-slidebox-header-content"
418
+ >
419
+ <CapHeader
420
+ className="support-video-elements"
421
+ description={
422
+ <React.Fragment>
423
+
424
+ </React.Fragment>
425
+ }
426
+ descriptionClass=""
427
+ inline={false}
428
+ prefix={false}
429
+ size="large"
430
+ title={
431
+ <FormattedMessage
432
+ defaultMessage="Edit {channel}"
433
+ id="creatives.containersV2.Creatives.editMessageContent"
434
+ values={
435
+ Object {
436
+ "channel": <FormattedMessage
437
+ defaultMessage="SMS"
438
+ id="creatives.containersV2.Creatives.smsHeader"
439
+ values={Object {}}
440
+ />,
441
+ }
442
+ }
443
+ />
444
+ }
445
+ titleClass=""
446
+ />
447
+ </div>
448
+ `;
449
+
450
+ exports[`Test SlideBoxHeader container hides edit header for InApp edit with fullMode (shouldShowInAppEditHeader=false, isInAppCreate guard) 1`] = `
451
+ <div
452
+ key="creatives-container-slidebox-header-content"
453
+ >
454
+ <CapHeader
455
+ className="support-video-elements"
456
+ description={
457
+ <React.Fragment>
458
+
459
+ </React.Fragment>
460
+ }
461
+ descriptionClass=""
462
+ inline={false}
463
+ prefix={false}
464
+ size="large"
465
+ title={
466
+ <FormattedMessage
467
+ defaultMessage="Edit {channel}"
468
+ id="creatives.containersV2.Creatives.editMessageContent"
469
+ values={
470
+ Object {
471
+ "channel": <FormattedMessage
472
+ defaultMessage="In App Message"
473
+ id="creatives.containersV2.Creatives.inAppHeader"
474
+ values={Object {}}
475
+ />,
476
+ }
477
+ }
478
+ />
479
+ }
480
+ titleClass=""
481
+ />
482
+ </div>
483
+ `;
484
+
485
+ exports[`Test SlideBoxHeader container renders templateNameRenderProp when isFullMode and shouldShowTemplateName are both true 1`] = `
486
+ <div
487
+ key="creatives-container-slidebox-header-content"
488
+ />
489
+ `;
490
+
491
+ exports[`Test SlideBoxHeader container renders whatsappOverview=false header when WHATSAPP edit without fullMode 1`] = `
492
+ <div
493
+ key="creatives-container-slidebox-header-content"
494
+ >
495
+ <CapHeader
496
+ className="support-video-elements"
497
+ description={
498
+ <React.Fragment>
499
+ <React.Fragment>
500
+ <SlideBoxHeader__StyledLabel
501
+ className=""
502
+ type="label1"
503
+ >
504
+ <FormattedMessage
505
+ defaultMessage="Template name"
506
+ id="creatives.containersV2.templateNameLabel"
507
+ values={Object {}}
508
+ />
509
+ </SlideBoxHeader__StyledLabel>
510
+ <SlideBoxHeader__StyledLabel
511
+ className="whatsapp-rcs-slidebox-template-name"
512
+ type="label2"
513
+ >
514
+ amit123456
515
+ </SlideBoxHeader__StyledLabel>
516
+ </React.Fragment>
517
+ <React.Fragment>
518
+ <SlideBoxHeader__StyledLabel
519
+ className=""
520
+ type="label3"
521
+ >
522
+ <FormattedMessage
523
+ defaultMessage="|"
524
+ id="creatives.containersV2.Whatsapp.labelSeperator"
525
+ values={Object {}}
526
+ />
527
+ </SlideBoxHeader__StyledLabel>
528
+ <SlideBoxHeader__StyledLabel
529
+ className=""
530
+ type="label1"
531
+ >
532
+ <FormattedMessage
533
+ defaultMessage="Template category"
534
+ id="creatives.containersV2.Whatsapp.templateCategoryLabel"
535
+ values={Object {}}
536
+ />
537
+ </SlideBoxHeader__StyledLabel>
538
+ <SlideBoxHeader__StyledLabel
539
+ className=""
540
+ type="label2"
541
+ >
542
+ Alert Update
543
+ </SlideBoxHeader__StyledLabel>
544
+ <SlideBoxHeader__StyledLabel
545
+ className=""
546
+ type="label3"
547
+ >
548
+ <FormattedMessage
549
+ defaultMessage="|"
550
+ id="creatives.containersV2.Whatsapp.labelSeperator"
551
+ values={Object {}}
552
+ />
553
+ </SlideBoxHeader__StyledLabel>
554
+ <SlideBoxHeader__StyledLabel
555
+ className=""
556
+ type="label1"
557
+ >
558
+ <FormattedMessage
559
+ defaultMessage="Language"
560
+ id="creatives.containersV2.Whatsapp.languageLabel"
561
+ values={Object {}}
562
+ />
563
+ </SlideBoxHeader__StyledLabel>
564
+ <SlideBoxHeader__StyledLabel
565
+ className=""
566
+ type="label2"
567
+ >
568
+ <FormattedMessage
569
+ defaultMessage="English"
570
+ id="creatives.containersV2.Whatsapp.english"
571
+ values={Object {}}
572
+ />
573
+ </SlideBoxHeader__StyledLabel>
574
+ </React.Fragment>
575
+ </React.Fragment>
576
+ }
577
+ descriptionClass=""
578
+ inline={false}
579
+ size="large"
580
+ title={
581
+ <FormattedMessage
582
+ defaultMessage="Edit {channel}"
583
+ id="creatives.containersV2.Creatives.editMessageContent"
584
+ values={
585
+ Object {
586
+ "channel": <FormattedMessage
587
+ defaultMessage="WhatsApp template"
588
+ id="creatives.containersV2.Creatives.whatsappTemplate"
589
+ values={Object {}}
590
+ />,
591
+ }
592
+ }
593
+ />
594
+ }
595
+ titleClass=""
596
+ />
597
+ </div>
598
+ `;
599
+
600
+ exports[`Test SlideBoxHeader container renders whatsappOverview=true header when WHATSAPP edit in fullMode 1`] = `
601
+ <div
602
+ key="creatives-container-slidebox-header-content"
603
+ >
604
+ <CapHeader
605
+ className="support-video-elements"
606
+ description={
607
+ <React.Fragment>
608
+ <React.Fragment>
609
+ <SlideBoxHeader__StyledLabel
610
+ className=""
611
+ type="label1"
612
+ >
613
+ <FormattedMessage
614
+ defaultMessage="Template name"
615
+ id="creatives.containersV2.templateNameLabel"
616
+ values={Object {}}
617
+ />
618
+ </SlideBoxHeader__StyledLabel>
619
+ <SlideBoxHeader__StyledLabel
620
+ className="whatsapp-rcs-slidebox-template-name"
621
+ type="label2"
622
+ >
623
+ amit123456
624
+ </SlideBoxHeader__StyledLabel>
625
+ </React.Fragment>
626
+ <React.Fragment>
627
+ <SlideBoxHeader__StyledLabel
628
+ className=""
629
+ type="label3"
630
+ >
631
+ <FormattedMessage
632
+ defaultMessage="|"
633
+ id="creatives.containersV2.Whatsapp.labelSeperator"
634
+ values={Object {}}
635
+ />
636
+ </SlideBoxHeader__StyledLabel>
637
+ <SlideBoxHeader__StyledLabel
638
+ className=""
639
+ type="label1"
640
+ >
641
+ <FormattedMessage
642
+ defaultMessage="Template category"
643
+ id="creatives.containersV2.Whatsapp.templateCategoryLabel"
644
+ values={Object {}}
645
+ />
646
+ </SlideBoxHeader__StyledLabel>
647
+ <SlideBoxHeader__StyledLabel
648
+ className=""
649
+ type="label2"
650
+ >
651
+ Alert Update
652
+ </SlideBoxHeader__StyledLabel>
653
+ <SlideBoxHeader__StyledLabel
654
+ className=""
655
+ type="label3"
656
+ >
657
+ <FormattedMessage
658
+ defaultMessage="|"
659
+ id="creatives.containersV2.Whatsapp.labelSeperator"
660
+ values={Object {}}
661
+ />
662
+ </SlideBoxHeader__StyledLabel>
663
+ <SlideBoxHeader__StyledLabel
664
+ className=""
665
+ type="label1"
666
+ >
667
+ <FormattedMessage
668
+ defaultMessage="Language"
669
+ id="creatives.containersV2.Whatsapp.languageLabel"
670
+ values={Object {}}
671
+ />
672
+ </SlideBoxHeader__StyledLabel>
673
+ <SlideBoxHeader__StyledLabel
674
+ className=""
675
+ type="label2"
676
+ >
677
+ <FormattedMessage
678
+ defaultMessage="English"
679
+ id="creatives.containersV2.Whatsapp.english"
680
+ values={Object {}}
681
+ />
682
+ </SlideBoxHeader__StyledLabel>
683
+ </React.Fragment>
684
+ </React.Fragment>
685
+ }
686
+ descriptionClass=""
687
+ inline={false}
688
+ prefix={false}
689
+ size="large"
690
+ title={
691
+ <FormattedMessage
692
+ defaultMessage="WhatsApp template overview"
693
+ id="creatives.containersV2.Creatives.whatsappOverview"
694
+ values={
695
+ Object {
696
+ "channel": <FormattedMessage
697
+ defaultMessage="WhatsApp template"
698
+ id="creatives.containersV2.Creatives.whatsappTemplate"
699
+ values={Object {}}
700
+ />,
701
+ }
702
+ }
703
+ />
704
+ }
705
+ titleClass=""
706
+ />
707
+ </div>
708
+ `;
709
+
710
+ exports[`Test SlideBoxHeader container shows edit header for InApp edit without fullMode (shouldShowInAppEditHeader=true) 1`] = `
711
+ <div
712
+ key="creatives-container-slidebox-header-content"
713
+ >
714
+ <CapHeader
715
+ className="support-video-elements"
716
+ description={
717
+ <React.Fragment>
718
+
719
+ </React.Fragment>
720
+ }
721
+ descriptionClass=""
722
+ inline={false}
723
+ size="large"
724
+ title={
725
+ <FormattedMessage
726
+ defaultMessage="Edit {channel}"
727
+ id="creatives.containersV2.Creatives.editMessageContent"
728
+ values={
729
+ Object {
730
+ "channel": <FormattedMessage
731
+ defaultMessage="In App Message"
732
+ id="creatives.containersV2.Creatives.inAppHeader"
733
+ values={Object {}}
734
+ />,
735
+ }
736
+ }
737
+ />
738
+ }
739
+ titleClass=""
740
+ />
741
+ </div>
742
+ `;