@capillarytech/creatives-library 7.14.38 → 7.14.41
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/reducers.js +2 -0
- package/services/api.js +9 -1
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +420 -0
- package/tests/integration/TemplateCreation/api-response.js +1663 -0
- package/tests/integration/TemplateCreation/helper.js +23 -0
- package/tests/integration/TemplateCreation/mocks/initialState.js +428 -0
- package/tests/integration/TemplateCreation/msw-handler.js +48 -0
- package/v2Components/CapActionButton/index.js +1 -0
- package/v2Components/FormBuilder/index.js +28 -4
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/CreativesContainer/constants.js +2 -0
- package/v2Containers/CreativesContainer/selectors.js +2 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
- package/v2Containers/Line/Container/Text/index.js +3 -2
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +4 -0
- package/v2Containers/Line/Container/index.js +1 -1
- package/v2Containers/Rcs/index.js +3 -0
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +250 -3
- package/v2Containers/Sms/Create/actions.js +9 -0
- package/v2Containers/Sms/Create/constants.js +2 -0
- package/v2Containers/Sms/Create/index.js +12 -0
- package/v2Containers/Sms/Create/sagas.js +19 -3
- package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
- package/v2Containers/Templates/index.js +26 -11
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +96 -80
- package/v2Containers/TemplatesV2/index.js +1 -1
- package/v2Containers/Viber/index.js +1 -0
- package/v2Containers/Whatsapp/constants.js +27 -8
- package/v2Containers/Whatsapp/index.js +14 -2
- package/v2Containers/Whatsapp/messages.js +21 -4
- package/v2Containers/Whatsapp/styles.scss +3 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +180 -128
- package/v2Containers/Whatsapp/tests/utils.test.js +1 -1
- package/v2Containers/Whatsapp/utils.js +2 -1
- package/v2Containers/mockdata.js +5 -5
|
@@ -22151,6 +22151,7 @@ new message content.",
|
|
|
22151
22151
|
>
|
|
22152
22152
|
<_class
|
|
22153
22153
|
className="text-template-title"
|
|
22154
|
+
data-testid="template_name"
|
|
22154
22155
|
defaultValue=""
|
|
22155
22156
|
errorMessage={false}
|
|
22156
22157
|
id="undefined_input"
|
|
@@ -22195,6 +22196,7 @@ new message content.",
|
|
|
22195
22196
|
</CapHeading>
|
|
22196
22197
|
</ComponentWithLabelHOC__StyledCapHeading>
|
|
22197
22198
|
<CapInput
|
|
22199
|
+
data-testid="template_name"
|
|
22198
22200
|
defaultValue=""
|
|
22199
22201
|
errorMessage={false}
|
|
22200
22202
|
id="undefined_input"
|
|
@@ -22205,6 +22207,7 @@ new message content.",
|
|
|
22205
22207
|
value=""
|
|
22206
22208
|
>
|
|
22207
22209
|
<Input
|
|
22210
|
+
data-testid="template_name"
|
|
22208
22211
|
defaultValue=""
|
|
22209
22212
|
id="undefined_input"
|
|
22210
22213
|
onChange={[Function]}
|
|
@@ -22221,6 +22224,7 @@ new message content.",
|
|
|
22221
22224
|
>
|
|
22222
22225
|
<input
|
|
22223
22226
|
className="ant-input"
|
|
22227
|
+
data-testid="template_name"
|
|
22224
22228
|
id="undefined_input"
|
|
22225
22229
|
onChange={[Function]}
|
|
22226
22230
|
onKeyDown={[Function]}
|
|
@@ -486,6 +486,7 @@ export const Rcs = (props) => {
|
|
|
486
486
|
value={templateTitle || ''}
|
|
487
487
|
size="default"
|
|
488
488
|
maxLength={TEMPLATE_TITLE_MAX_LENGTH}
|
|
489
|
+
data-testid="template_title"
|
|
489
490
|
suffix={
|
|
490
491
|
<CapLabel type="label1">{`${templateTitle?.length} / ${TEMPLATE_TITLE_MAX_LENGTH}`}</CapLabel>
|
|
491
492
|
}
|
|
@@ -526,6 +527,7 @@ export const Rcs = (props) => {
|
|
|
526
527
|
errorMessage={templateDescError}
|
|
527
528
|
value={templateDesc || ''}
|
|
528
529
|
maxLength={1000}
|
|
530
|
+
data-testid="rcs_text_area"
|
|
529
531
|
/>
|
|
530
532
|
{renderLabel('templateButton', true, 'templateButtonDesc')}
|
|
531
533
|
<CapCheckboxGroup
|
|
@@ -1061,6 +1063,7 @@ export const Rcs = (props) => {
|
|
|
1061
1063
|
{isFullMode && (
|
|
1062
1064
|
<CapInput
|
|
1063
1065
|
id="rcs_template_name_input"
|
|
1066
|
+
data-testid="template_name"
|
|
1064
1067
|
onChange={onTemplateNameChange}
|
|
1065
1068
|
errorMessage={templateNameError}
|
|
1066
1069
|
placeholder={formatMessage(
|