@capillarytech/creatives-library 9.1.8-alpha.sprint-cap-214249.38 → 9.2.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.
- package/constants/unified.js +4 -0
- package/index.js +13 -0
- package/package.json +1 -1
- package/services/getSchema.js +4 -1
- package/services/tests/getSchema.test.js +2 -2
- package/translations/en.json +1 -0
- package/translations/ja-JP.json +1 -0
- package/translations/zh.json +1 -0
- package/utils/common.js +6 -0
- package/utils/createMobilePushPayload.js +33 -47
- package/utils/tagValidations.js +35 -4
- package/utils/templateVarUtils.js +49 -0
- package/utils/tests/createMobilePushPayload.test.js +8 -102
- package/utils/tests/tagValidations.test.js +48 -0
- package/utils/tests/templateVarUtils.test.js +89 -0
- package/v2Components/CapMpushCTA/index.js +9 -10
- package/v2Components/CapMpushCTA/index.scss +3 -29
- package/v2Components/CapTagList/TagFallbackPanel.js +124 -0
- package/v2Components/CapTagList/constants.js +5 -0
- package/v2Components/CapTagList/index.js +46 -7
- package/v2Components/CapTagList/messages.js +44 -0
- package/v2Components/CapTagList/style.scss +113 -1
- package/v2Components/CapTagList/tests/TagFallback.test.js +222 -0
- package/v2Components/CapTagList/utils.js +17 -0
- package/v2Components/CommonTestAndPreview/UnifiedPreview/MobilePushPreviewContent.js +13 -26
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +1 -13
- package/v2Components/CommonTestAndPreview/constants.js +3 -2
- package/v2Components/CommonTestAndPreview/index.js +62 -62
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/MobilePushPreviewContent.test.js +5 -79
- package/v2Components/CommonTestAndPreview/tests/index.test.js +0 -86
- package/v2Components/CommonTestAndPreview/tests/utils.test.js +102 -0
- package/v2Components/CommonTestAndPreview/utils.js +42 -3
- package/v2Components/FormBuilder/Classic.js +24 -14
- package/v2Components/FormBuilder/Functional/channels/mobilepush/config.js +1 -0
- package/v2Components/FormBuilder/Functional/channels/mobilepush/getEditorErrorDescriptor.js +1 -1
- package/v2Components/FormBuilder/Functional/channels/mobilepush/tests/validate.test.js +57 -0
- package/v2Components/FormBuilder/Functional/channels/mobilepush/validate.js +4 -4
- package/v2Components/FormBuilder/Functional/channels/sms/getEditorErrorDescriptor.js +3 -0
- package/v2Components/FormBuilder/Functional/channels/sms/tests/getEditorErrorDescriptor.test.js +5 -0
- package/v2Components/FormBuilder/Functional/channels/sms/tests/validate.test.js +6 -0
- package/v2Components/FormBuilder/Functional/channels/sms/validate.js +3 -1
- package/v2Components/FormBuilder/Functional/renderers/mpushRenderers.js +3 -0
- package/v2Components/FormBuilder/Functional/tests/manual.typingPerf.test.js +135 -0
- package/v2Components/FormBuilder/Functional/tests/mpush.crossFlowParity.test.js +1 -1
- package/v2Components/FormBuilder/Functional/tests/mpush.ctaFlows.parity.test.js +320 -0
- package/v2Components/FormBuilder/Functional/tests/mpush.editContainer.parity.test.js +148 -0
- package/v2Components/FormBuilder/Functional/tests/mpush.libraryValidity.parity.test.js +152 -0
- package/v2Components/FormBuilder/Functional/tests/mpush.shellEvents.test.js +1 -1
- package/v2Components/FormBuilder/Functional/tests/mpush.singlePlatform.test.js +1 -1
- package/v2Components/FormBuilder/Functional/tests/mpushRenderers.test.js +22 -0
- package/v2Components/FormBuilder/tests/mpush.characterization.test.js +2 -2
- package/v2Components/TemplatePreview/_templatePreview.scss +2 -12
- package/v2Components/TemplatePreview/index.js +17 -30
- package/v2Components/TemplatePreview/tests/index.test.js +0 -61
- package/v2Containers/Cap/index.js +3 -0
- package/v2Containers/Cap/messages.js +4 -0
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
- package/v2Containers/CreativesContainer/SlideBoxContent.js +151 -70
- package/v2Containers/CreativesContainer/index.js +6 -3
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +0 -29
- package/v2Containers/InApp/index.js +4 -1
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
- package/v2Containers/Line/Container/Text/index.js +3 -1
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +16 -0
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +18 -0
- package/v2Containers/MobilePush/Create/_mobilePushCreate.scss +70 -0
- package/v2Containers/MobilePush/Create/actions.js +52 -0
- package/v2Containers/MobilePush/Create/constants.js +26 -0
- package/v2Containers/MobilePush/Create/index.js +2149 -0
- package/v2Containers/MobilePush/Create/messages.js +349 -0
- package/v2Containers/MobilePush/Create/reducer.js +72 -0
- package/v2Containers/MobilePush/Create/sagas.js +79 -0
- package/v2Containers/MobilePush/Create/selectors.js +29 -0
- package/v2Containers/MobilePush/Create/test/contentValidity.test.js +154 -0
- package/v2Containers/MobilePush/Create/test/saga.test.js +19 -0
- package/v2Containers/MobilePush/Create/test/stayOpenOnSave.test.js +80 -0
- package/v2Containers/MobilePush/Edit/_mobilePushCreate.scss +65 -0
- package/v2Containers/MobilePush/Edit/actions.js +94 -0
- package/v2Containers/MobilePush/Edit/constants.js +37 -0
- package/v2Containers/MobilePush/Edit/index.js +2407 -0
- package/v2Containers/MobilePush/Edit/messages.js +341 -0
- package/v2Containers/MobilePush/Edit/reducer.js +113 -0
- package/v2Containers/MobilePush/Edit/sagas.js +113 -0
- package/v2Containers/MobilePush/Edit/selectors.js +33 -0
- package/v2Containers/MobilePush/Edit/test/contentValidity.test.js +149 -0
- package/v2Containers/MobilePush/Edit/test/saga.test.js +255 -0
- package/v2Containers/MobilePush/Edit/test/stayOpenOnSave.test.js +60 -0
- package/v2Containers/MobilePush/commonMethods.js +333 -0
- package/v2Containers/MobilePush/eventsMap.js +130 -0
- package/v2Containers/MobilePush/tests/commonMethods.test.js +401 -0
- package/v2Containers/MobilePushNew/components/CtaButtons.js +47 -52
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +192 -207
- package/v2Containers/MobilePushNew/components/PlatformContentFields.js +121 -116
- package/v2Containers/MobilePushNew/components/tests/CtaButtons.test.js +208 -30
- package/v2Containers/MobilePushNew/components/tests/MediaUploaders.test.js +72 -316
- package/v2Containers/MobilePushNew/components/tests/PlatformContentFields.test.js +16 -45
- package/v2Containers/MobilePushNew/constants.js +0 -5
- package/v2Containers/MobilePushNew/hooks/tests/usePlatformSync.test.js +1 -63
- package/v2Containers/MobilePushNew/hooks/tests/useUpload.test.js +0 -52
- package/v2Containers/MobilePushNew/hooks/usePlatformSync.js +1 -38
- package/v2Containers/MobilePushNew/hooks/useUpload.js +39 -29
- package/v2Containers/MobilePushNew/index.js +192 -454
- package/v2Containers/MobilePushNew/index.scss +4 -188
- package/v2Containers/MobilePushNew/messages.js +6 -86
- package/v2Containers/MobilePushNew/tests/index.test.js +1 -450
- package/v2Containers/MobilePushNew/tests/utils.test.js +0 -25
- package/v2Containers/MobilePushNew/utils.js +0 -8
- package/v2Containers/MobilepushWrapper/_mobilepushWrapper.scss +22 -0
- package/v2Containers/MobilepushWrapper/index.js +178 -0
- package/v2Containers/MobilepushWrapper/messages.js +29 -0
- package/v2Containers/Rcs/index.js +8 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +59 -0
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +4 -0
- package/v2Containers/SmsTrai/Edit/index.js +17 -7
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +42 -0
- package/v2Containers/Templates/_templates.scss +2 -10
- package/v2Containers/Templates/index.js +90 -84
- package/v2Containers/Templates/tests/index.test.js +0 -68
- package/v2Containers/Viber/index.js +3 -1
- package/v2Containers/WebPush/Create/utils/validation.js +6 -0
- package/v2Containers/WebPush/Create/utils/validation.test.js +50 -0
- package/v2Containers/Whatsapp/index.js +9 -5
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +2 -2
- package/v2Containers/Zalo/index.js +4 -1
- package/v2Components/CapMpushCTA/tests/index.test.js +0 -89
- /package/{v2Components/FormBuilder/Functional/tests/fixtures/mpushInitialSchema.js → v2Containers/MobilePush/initialSchema.js} +0 -0
|
@@ -341,6 +341,7 @@ exports[`line wrapper test/> should render line component new 1`] = `
|
|
|
341
341
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
342
342
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
343
343
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
344
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
344
345
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
345
346
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
346
347
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -6677,6 +6678,7 @@ new message content.",
|
|
|
6677
6678
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
6678
6679
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
6679
6680
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
6681
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
6680
6682
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
6681
6683
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
6682
6684
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -9437,6 +9439,7 @@ exports[`line wrapper test/> should render line component new 2`] = `
|
|
|
9437
9439
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
9438
9440
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
9439
9441
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
9442
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
9440
9443
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
9441
9444
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
9442
9445
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -15962,6 +15965,7 @@ new message content.",
|
|
|
15962
15965
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
15963
15966
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
15964
15967
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
15968
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
15965
15969
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
15966
15970
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
15967
15971
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -18722,6 +18726,7 @@ exports[`line wrapper test/> should render line component new 3`] = `
|
|
|
18722
18726
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
18723
18727
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
18724
18728
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
18729
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
18725
18730
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
18726
18731
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
18727
18732
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -25493,6 +25498,7 @@ new message content.",
|
|
|
25493
25498
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
25494
25499
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
25495
25500
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
25501
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
25496
25502
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
25497
25503
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
25498
25504
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -28311,6 +28317,7 @@ exports[`line wrapper test/> should render line component new 4`] = `
|
|
|
28311
28317
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
28312
28318
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
28313
28319
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
28320
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
28314
28321
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
28315
28322
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
28316
28323
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -37303,6 +37310,7 @@ new message content.",
|
|
|
37303
37310
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
37304
37311
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
37305
37312
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
37313
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
37306
37314
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
37307
37315
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
37308
37316
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -40121,6 +40129,7 @@ exports[`line wrapper test/> should render line component new 5`] = `
|
|
|
40121
40129
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
40122
40130
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
40123
40131
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
40132
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
40124
40133
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
40125
40134
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
40126
40135
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -49148,6 +49157,7 @@ new message content.",
|
|
|
49148
49157
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
49149
49158
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
49150
49159
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
49160
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
49151
49161
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
49152
49162
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
49153
49163
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -51966,6 +51976,7 @@ exports[`line wrapper test/> should render line component old 1`] = `
|
|
|
51966
51976
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
51967
51977
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
51968
51978
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
51979
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
51969
51980
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
51970
51981
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
51971
51982
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -56371,6 +56382,7 @@ new message content.",
|
|
|
56371
56382
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
56372
56383
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
56373
56384
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
56385
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
56374
56386
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
56375
56387
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
56376
56388
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -59729,6 +59741,7 @@ exports[`line wrapper test/> should render line component old 2`] = `
|
|
|
59729
59741
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
59730
59742
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
59731
59743
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
59744
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
59732
59745
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
59733
59746
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
59734
59747
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -64557,6 +64570,7 @@ new message content.",
|
|
|
64557
64570
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
64558
64571
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
64559
64572
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
64573
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
64560
64574
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
64561
64575
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
64562
64576
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -67915,6 +67929,7 @@ exports[`line wrapper test/> should render line component old 3`] = `
|
|
|
67915
67929
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
67916
67930
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
67917
67931
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
67932
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
67918
67933
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
67919
67934
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
67920
67935
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -72989,6 +73004,7 @@ new message content.",
|
|
|
72989
73004
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
72990
73005
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
72991
73006
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
73007
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
72992
73008
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
72993
73009
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
72994
73010
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -76405,6 +76421,7 @@ exports[`line wrapper test/> should render line component old 4`] = `
|
|
|
76405
76421
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
76406
76422
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
76407
76423
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
76424
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
76408
76425
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
76409
76426
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
76410
76427
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -81592,6 +81609,7 @@ new message content.",
|
|
|
81592
81609
|
"creatives.componentsV2.TopBar.profile": "Profile",
|
|
81593
81610
|
"creatives.componentsV2.TopBar.settings": "Settings",
|
|
81594
81611
|
"creatives.componentsV2.unbalanacedCurlyBraces": "Invalid label, please close all curly braces",
|
|
81612
|
+
"creatives.componentsV2.unquotedTagDefaultValue": "Invalid label, default value must be within quotes",
|
|
81595
81613
|
"creatives.componentsv2.MobilePushPreviewV2.header": "This is the MobilePushPreviewV2 component !",
|
|
81596
81614
|
"creatives.containers.Assets.Gallery.alphabetically": "Alphabetically",
|
|
81597
81615
|
"creatives.containers.Assets.Gallery.assetDeleteFailed": "Image deletion failed.",
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@import "~@capillarytech/cap-ui-library/styles/_variables.scss";
|
|
2
|
+
|
|
3
|
+
.creatives-mobilepush-create {
|
|
4
|
+
.mobile-push-row{
|
|
5
|
+
margin-bottom: 16px;
|
|
6
|
+
}
|
|
7
|
+
.mobile-push-img button {
|
|
8
|
+
top: 212px;
|
|
9
|
+
}
|
|
10
|
+
.image-container{
|
|
11
|
+
height: 200px;
|
|
12
|
+
border: solid 1px #C2C2C2;
|
|
13
|
+
border-radius: 5px;
|
|
14
|
+
.image-placeholder{
|
|
15
|
+
line-height: 150px;
|
|
16
|
+
}
|
|
17
|
+
&.error{
|
|
18
|
+
border-color: #ea213a;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.ant-tabs-bar{
|
|
22
|
+
margin-bottom: 0 !important;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
flex-direction: row-reverse;
|
|
26
|
+
justify-content: flex-end;
|
|
27
|
+
}
|
|
28
|
+
.ant-tabs-tabpane{
|
|
29
|
+
padding: 16px 16px 16px 0;
|
|
30
|
+
border: solid 1px #D6D6D6;
|
|
31
|
+
}
|
|
32
|
+
.ant-tabs-nav-list {
|
|
33
|
+
gap: 0 !important;
|
|
34
|
+
.ant-tabs-tab {
|
|
35
|
+
.form-tab-header{
|
|
36
|
+
padding: $CAP_SPACE_04 $CAP_SPACE_16;
|
|
37
|
+
.unsupported-channel {
|
|
38
|
+
.ant-tabs-nav & {
|
|
39
|
+
display: none;
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.tag-container{
|
|
47
|
+
.ant-col{
|
|
48
|
+
flex: 0 0 100%;
|
|
49
|
+
|
|
50
|
+
button{
|
|
51
|
+
float: right;
|
|
52
|
+
top: 8px;
|
|
53
|
+
z-index: 100;
|
|
54
|
+
padding: unset !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ant-col:first-child{
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: flex-end;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ant-checkbox-label {
|
|
66
|
+
.inductive-text {
|
|
67
|
+
padding-left: 0.286rem;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Create actions
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as types from './constants';
|
|
8
|
+
|
|
9
|
+
export function createTemplate(template, callback) {
|
|
10
|
+
|
|
11
|
+
return {
|
|
12
|
+
type: types.CREATE_TEMPLATE_REQUEST, template, callback,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function clearCreateResponse() {
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
type: types.CLEAR_CREATE_RESPONSE_REQUEST,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function defaultAction() {
|
|
24
|
+
return {
|
|
25
|
+
type: types.DEFAULT_ACTION,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function uploadAsset(file, assetType, fileParams) {
|
|
30
|
+
return {
|
|
31
|
+
type: types.UPLOAD_ASSET_REQUEST,
|
|
32
|
+
file,
|
|
33
|
+
assetType,
|
|
34
|
+
fileParams,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function getIosCtas(licenseCode) {
|
|
38
|
+
return {
|
|
39
|
+
type: types.GET_IOS_CTAS, licenseCode,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function clearAsset() {
|
|
43
|
+
return {
|
|
44
|
+
type: types.CLEAR_ASSET,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function resetStore() {
|
|
49
|
+
return {
|
|
50
|
+
type: types.RESET_STORE,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Create constants
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_ACTION = 'app/Create/DEFAULT_ACTION';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export const CREATE_TEMPLATE_REQUEST = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_REQUEST';
|
|
11
|
+
export const CREATE_TEMPLATE_SUCCESS = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_SUCCESS';
|
|
12
|
+
export const CREATE_TEMPLATE_FAILURE = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_FAILURE';
|
|
13
|
+
export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_REQUEST';
|
|
14
|
+
export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_SUCCESS';
|
|
15
|
+
export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_FAILURE';
|
|
16
|
+
export const CLEAR_ASSET = 'app/v2Containers/PushMessage/Create/CLEAR_ASSET';
|
|
17
|
+
|
|
18
|
+
export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_REQUEST';
|
|
19
|
+
export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
|
|
20
|
+
export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_FAILURE';
|
|
21
|
+
export const GET_IOS_CTAS = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS';
|
|
22
|
+
export const GET_IOS_CTAS_SUCCESS = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS_SUCCESS';
|
|
23
|
+
export const GET_IOS_CTAS_FAILURE = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS_FAILURE';
|
|
24
|
+
export const RESET_STORE = 'app/v2Containers/PushMessage/Create/RESET_STORE';
|
|
25
|
+
export const EXTERNAL_LINK_LOWERCASE = 'external link';
|
|
26
|
+
export const MOBILE_PUSH_PLATFORM_COUNT = 2;
|