@capillarytech/creatives-library 2.0.70 → 2.0.72

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 (395) hide show
  1. package/app.js +1 -1
  2. package/components/Ckeditor/index.js +2 -1
  3. package/components/EmailMobilePreview/index.scss +0 -1
  4. package/components/EmailPreviewV2/_emailPreviewV2.scss +4 -1
  5. package/components/EmailPreviewV2/index.js +1 -1
  6. package/components/FormBuilder/index.js +25 -10
  7. package/components/Header/index.js +3 -1
  8. package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +38 -3
  9. package/components/TemplatePreview/index.js +45 -51
  10. package/components/TemplatePreview/messages.js +1 -1
  11. package/config/app.js +1 -0
  12. package/containers/Cap/actions.js +0 -5
  13. package/containers/Cap/reducer.js +1 -1
  14. package/containers/Cap/selectors.js +0 -13
  15. package/containers/Ebill/index.js +1 -2
  16. package/containers/Email/_email.scss +1 -0
  17. package/containers/Email/actions.js +3 -8
  18. package/containers/Email/constants.js +0 -1
  19. package/containers/Email/index.js +947 -322
  20. package/containers/Email/reducer.js +0 -3
  21. package/containers/Email/sagas.js +6 -3
  22. package/containers/Email/selectors.js +1 -4
  23. package/containers/Line/Create/index.js +1 -2
  24. package/containers/Line/Edit/_lineEdit.scss +4 -0
  25. package/containers/Line/Edit/index.js +1 -3
  26. package/containers/MobilePush/Create/_mobilePushCreate.scss +3 -12
  27. package/containers/MobilePush/Create/actions.js +0 -6
  28. package/containers/MobilePush/Create/constants.js +0 -1
  29. package/containers/MobilePush/Create/index.js +1133 -628
  30. package/containers/MobilePush/Create/messages.js +1 -5
  31. package/containers/MobilePush/Create/reducer.js +0 -2
  32. package/containers/MobilePush/Create/selectors.js +3 -3
  33. package/containers/MobilePush/Edit/_mobilePushCreate.scss +3 -9
  34. package/containers/MobilePush/Edit/index.js +1127 -393
  35. package/containers/MobilePush/Edit/messages.js +0 -4
  36. package/containers/MobilePush/Edit/reducer.js +1 -2
  37. package/containers/MobilePush/Edit/selectors.js +3 -6
  38. package/containers/Sms/Create/_smsCreate.scss +2 -1
  39. package/containers/Sms/Create/actions.js +4 -4
  40. package/containers/Sms/Create/index.js +570 -102
  41. package/containers/Sms/Create/sagas.js +2 -1
  42. package/containers/Sms/Edit/actions.js +5 -10
  43. package/containers/Sms/Edit/constants.js +0 -1
  44. package/containers/Sms/Edit/index.js +548 -103
  45. package/containers/Sms/Edit/reducer.js +0 -2
  46. package/containers/Sms/Edit/sagas.js +3 -1
  47. package/containers/TagList/index.js +3 -3
  48. package/containers/Templates/actions.js +1 -3
  49. package/containers/Templates/index.js +299 -268
  50. package/containers/Templates/messages.js +90 -122
  51. package/containers/Templates/reducer.js +3 -3
  52. package/containers/Templates/sagas.js +1 -5
  53. package/containers/Templates/selectors.js +1 -41
  54. package/containers/WeChat/MapTemplates/index.js +3 -4
  55. package/containers/WeChat/RichmediaTemplates/Create/index.js +18 -4
  56. package/containers/WeChat/RichmediaTemplates/Create/messages.js +4 -0
  57. package/containers/WeChat/RichmediaTemplates/Edit/index.js +3 -1
  58. package/containers/WeChat/RichmediaTemplates/View/index.js +3 -1
  59. package/index.js +31 -31
  60. package/initialState.js +6 -0
  61. package/package.json +3 -3
  62. package/routes.js +24 -19
  63. package/services/api.js +6 -2
  64. package/services/getSchema.js +18 -0
  65. package/v2Containers/App/actions.js +7 -0
  66. package/v2Containers/App/constants.js +3 -0
  67. package/v2Containers/App/reducer.js +19 -0
  68. package/v2Containers/App/sagas.js +26 -0
  69. package/v2Containers/App/selectors.js +25 -0
  70. package/v2Containers/App/tests/actions.test.js +18 -0
  71. package/v2Containers/App/tests/reducer.test.js +9 -0
  72. package/v2Containers/App/tests/sagas.test.js +15 -0
  73. package/v2Containers/App/tests/selectors.test.js +10 -0
  74. package/v2Containers/Assets/Gallery/_gallery.scss +0 -0
  75. package/v2Containers/Assets/Gallery/actions.js +37 -0
  76. package/v2Containers/Assets/Gallery/constants.js +23 -0
  77. package/v2Containers/Assets/Gallery/index.js +479 -0
  78. package/v2Containers/Assets/Gallery/messages.js +97 -0
  79. package/v2Containers/Assets/Gallery/reducer.js +81 -0
  80. package/v2Containers/Assets/Gallery/sagas.js +84 -0
  81. package/v2Containers/Assets/Gallery/selectors.js +25 -0
  82. package/v2Containers/Assets/Gallery/tests/__snapshots__/reducer.test.js.snap +7 -0
  83. package/v2Containers/Assets/Gallery/tests/actions.test.js +26 -0
  84. package/v2Containers/Assets/Gallery/tests/index.test.js +10 -0
  85. package/v2Containers/Assets/Gallery/tests/reducer.test.js +95 -0
  86. package/v2Containers/Assets/Gallery/tests/sagas.test.js +15 -0
  87. package/v2Containers/Assets/Gallery/tests/selectors.test.js +10 -0
  88. package/v2Containers/CallTask/_callTask.scss +5 -0
  89. package/v2Containers/CallTask/actions.js +15 -0
  90. package/v2Containers/CallTask/constants.js +7 -0
  91. package/v2Containers/CallTask/index.js +141 -0
  92. package/v2Containers/CallTask/messages.js +21 -0
  93. package/v2Containers/CallTask/reducer.js +23 -0
  94. package/v2Containers/CallTask/sagas.js +11 -0
  95. package/v2Containers/CallTask/selectors.js +25 -0
  96. package/v2Containers/CallTask/tests/actions.test.js +18 -0
  97. package/v2Containers/CallTask/tests/index.test.js +10 -0
  98. package/v2Containers/CallTask/tests/reducer.test.js +9 -0
  99. package/v2Containers/CallTask/tests/sagas.test.js +15 -0
  100. package/v2Containers/CallTask/tests/selectors.test.js +10 -0
  101. package/v2Containers/Cap/actions.js +64 -0
  102. package/v2Containers/Cap/constants.js +24 -0
  103. package/v2Containers/Cap/index.js +349 -0
  104. package/v2Containers/Cap/messsages.js +63 -0
  105. package/v2Containers/Cap/reducer.js +111 -0
  106. package/v2Containers/Cap/sagas.js +143 -0
  107. package/v2Containers/Cap/selectors.js +85 -0
  108. package/v2Containers/Cap/tests/index.test.js +16 -0
  109. package/v2Containers/Cap/tests/selectors.test.js +28 -0
  110. package/v2Containers/ChannelTemplates/actions.js +20 -0
  111. package/v2Containers/ChannelTemplates/constants.js +8 -0
  112. package/v2Containers/ChannelTemplates/index.js +48 -0
  113. package/v2Containers/ChannelTemplates/messages.js +13 -0
  114. package/v2Containers/ChannelTemplates/reducer.js +34 -0
  115. package/v2Containers/ChannelTemplates/sagas.js +32 -0
  116. package/v2Containers/ChannelTemplates/selectors.js +25 -0
  117. package/v2Containers/ChannelTemplates/tests/actions.test.js +18 -0
  118. package/v2Containers/ChannelTemplates/tests/index.test.js +10 -0
  119. package/v2Containers/ChannelTemplates/tests/reducer.test.js +9 -0
  120. package/v2Containers/ChannelTemplates/tests/sagas.test.js +15 -0
  121. package/v2Containers/ChannelTemplates/tests/selectors.test.js +10 -0
  122. package/v2Containers/CreativesContainer/SlideBoxContent.js +257 -0
  123. package/v2Containers/CreativesContainer/SlideBoxFooter.js +45 -0
  124. package/v2Containers/CreativesContainer/SlideBoxHeader.js +70 -0
  125. package/v2Containers/CreativesContainer/actions.js +27 -0
  126. package/v2Containers/CreativesContainer/constants.js +16 -0
  127. package/v2Containers/CreativesContainer/index.js +483 -0
  128. package/v2Containers/CreativesContainer/index.scss +27 -0
  129. package/v2Containers/CreativesContainer/messages.js +293 -0
  130. package/v2Containers/CreativesContainer/reducer.js +29 -0
  131. package/v2Containers/CreativesContainer/sagas.js +11 -0
  132. package/v2Containers/CreativesContainer/selectors.js +30 -0
  133. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -0
  134. package/v2Containers/CreativesContainer/tests/index.test.js +10 -0
  135. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -0
  136. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -0
  137. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -0
  138. package/v2Containers/Dashboard/actions.js +15 -0
  139. package/v2Containers/Dashboard/constants.js +7 -0
  140. package/v2Containers/Dashboard/index.js +54 -0
  141. package/v2Containers/Dashboard/messages.js +13 -0
  142. package/v2Containers/Dashboard/reducer.js +21 -0
  143. package/v2Containers/Dashboard/sagas.js +11 -0
  144. package/v2Containers/Dashboard/selectors.js +25 -0
  145. package/v2Containers/Dashboard/tests/actions.test.js +18 -0
  146. package/v2Containers/Dashboard/tests/index.test.js +10 -0
  147. package/v2Containers/Dashboard/tests/reducer.test.js +9 -0
  148. package/v2Containers/Dashboard/tests/sagas.test.js +15 -0
  149. package/v2Containers/Dashboard/tests/selectors.test.js +10 -0
  150. package/v2Containers/Ebill/_ebill.scss +5 -0
  151. package/v2Containers/Ebill/actions.js +43 -0
  152. package/v2Containers/Ebill/constants.js +20 -0
  153. package/v2Containers/Ebill/index.js +1261 -0
  154. package/v2Containers/Ebill/messages.js +73 -0
  155. package/v2Containers/Ebill/reducer.js +72 -0
  156. package/v2Containers/Ebill/sagas.js +65 -0
  157. package/v2Containers/Ebill/selectors.js +25 -0
  158. package/v2Containers/Ebill/tests/actions.test.js +18 -0
  159. package/v2Containers/Ebill/tests/index.test.js +10 -0
  160. package/v2Containers/Ebill/tests/reducer.test.js +9 -0
  161. package/v2Containers/Ebill/tests/sagas.test.js +15 -0
  162. package/v2Containers/Ebill/tests/selectors.test.js +10 -0
  163. package/v2Containers/Email/_email.scss +140 -0
  164. package/v2Containers/Email/actions.js +86 -0
  165. package/v2Containers/Email/constants.js +37 -0
  166. package/v2Containers/Email/index.js +2703 -0
  167. package/v2Containers/Email/initialSchema.js +540 -0
  168. package/v2Containers/Email/messages.js +237 -0
  169. package/v2Containers/Email/reducer.js +147 -0
  170. package/v2Containers/Email/sagas.js +133 -0
  171. package/v2Containers/Email/selectors.js +34 -0
  172. package/v2Containers/Email/tests/actions.test.js +18 -0
  173. package/v2Containers/Email/tests/index.test.js +10 -0
  174. package/v2Containers/Email/tests/reducer.test.js +9 -0
  175. package/v2Containers/Email/tests/sagas.test.js +15 -0
  176. package/v2Containers/Email/tests/selectors.test.js +10 -0
  177. package/v2Containers/EmailWrapper/actions.js +15 -0
  178. package/v2Containers/EmailWrapper/constants.js +7 -0
  179. package/v2Containers/EmailWrapper/index.js +258 -0
  180. package/v2Containers/EmailWrapper/messages.js +57 -0
  181. package/v2Containers/EmailWrapper/reducer.js +23 -0
  182. package/v2Containers/EmailWrapper/sagas.js +11 -0
  183. package/v2Containers/EmailWrapper/selectors.js +25 -0
  184. package/v2Containers/EmailWrapper/tests/actions.test.js +18 -0
  185. package/v2Containers/EmailWrapper/tests/index.test.js +10 -0
  186. package/v2Containers/EmailWrapper/tests/reducer.test.js +9 -0
  187. package/v2Containers/EmailWrapper/tests/sagas.test.js +15 -0
  188. package/v2Containers/EmailWrapper/tests/selectors.test.js +10 -0
  189. package/v2Containers/LanguageProvider/actions.js +17 -0
  190. package/v2Containers/LanguageProvider/constants.js +8 -0
  191. package/v2Containers/LanguageProvider/index.js +46 -0
  192. package/v2Containers/LanguageProvider/reducer.js +30 -0
  193. package/v2Containers/LanguageProvider/selectors.js +20 -0
  194. package/v2Containers/LanguageProvider/tests/actions.test.js +19 -0
  195. package/v2Containers/LanguageProvider/tests/index.test.js +49 -0
  196. package/v2Containers/LanguageProvider/tests/reducer.test.js +20 -0
  197. package/v2Containers/LanguageProvider/tests/selectors.test.js +15 -0
  198. package/v2Containers/Line/Create/_lineCreate.scss +43 -0
  199. package/v2Containers/Line/Create/actions.js +90 -0
  200. package/v2Containers/Line/Create/constants.js +39 -0
  201. package/v2Containers/Line/Create/index.js +822 -0
  202. package/v2Containers/Line/Create/messages.js +173 -0
  203. package/v2Containers/Line/Create/reducer.js +99 -0
  204. package/v2Containers/Line/Create/sagas.js +107 -0
  205. package/v2Containers/Line/Create/selectors.js +36 -0
  206. package/v2Containers/Line/Edit/_lineEdit.scss +21 -0
  207. package/v2Containers/Line/Edit/actions.js +79 -0
  208. package/v2Containers/Line/Edit/constants.js +27 -0
  209. package/v2Containers/Line/Edit/index.js +1050 -0
  210. package/v2Containers/Line/Edit/messages.js +157 -0
  211. package/v2Containers/Line/Edit/reducer.js +83 -0
  212. package/v2Containers/Line/Edit/sagas.js +81 -0
  213. package/v2Containers/Line/Edit/selectors.js +29 -0
  214. package/v2Containers/Line/Edit/tests/actions.test.js +18 -0
  215. package/v2Containers/Line/Edit/tests/index.test.js +10 -0
  216. package/v2Containers/Line/Edit/tests/reducer.test.js +9 -0
  217. package/v2Containers/Line/Edit/tests/sagas.test.js +15 -0
  218. package/v2Containers/Line/Edit/tests/selectors.test.js +10 -0
  219. package/v2Containers/Login/assets/images/capillary_logo.png +0 -0
  220. package/v2Containers/Login/components/LoginForm/index.js +59 -0
  221. package/v2Containers/Login/components/LoginForm/messages.js +21 -0
  222. package/v2Containers/Login/components/LoginForm/tests/index.test.js +10 -0
  223. package/v2Containers/Login/index.js +106 -0
  224. package/v2Containers/Login/messages.js +21 -0
  225. package/v2Containers/Login/selectors.js +25 -0
  226. package/v2Containers/Login/tests/index.test.js +10 -0
  227. package/v2Containers/Login/tests/sagas.test.js +15 -0
  228. package/v2Containers/Login/tests/selectors.test.js +10 -0
  229. package/v2Containers/MobilePush/Create/_mobilePushCreate.scss +41 -0
  230. package/v2Containers/MobilePush/Create/actions.js +52 -0
  231. package/v2Containers/MobilePush/Create/constants.js +24 -0
  232. package/v2Containers/MobilePush/Create/index.js +1759 -0
  233. package/v2Containers/MobilePush/Create/messages.js +237 -0
  234. package/v2Containers/MobilePush/Create/reducer.js +72 -0
  235. package/v2Containers/MobilePush/Create/sagas.js +60 -0
  236. package/v2Containers/MobilePush/Create/selectors.js +28 -0
  237. package/v2Containers/MobilePush/Create/tests/actions.test.js +18 -0
  238. package/v2Containers/MobilePush/Create/tests/index.test.js +10 -0
  239. package/v2Containers/MobilePush/Create/tests/reducer.test.js +9 -0
  240. package/v2Containers/MobilePush/Create/tests/sagas.test.js +15 -0
  241. package/v2Containers/MobilePush/Create/tests/selectors.test.js +10 -0
  242. package/v2Containers/MobilePush/Edit/_mobilePushCreate.scss +38 -0
  243. package/v2Containers/MobilePush/Edit/actions.js +91 -0
  244. package/v2Containers/MobilePush/Edit/constants.js +35 -0
  245. package/v2Containers/MobilePush/Edit/index.js +1851 -0
  246. package/v2Containers/MobilePush/Edit/messages.js +253 -0
  247. package/v2Containers/MobilePush/Edit/reducer.js +113 -0
  248. package/v2Containers/MobilePush/Edit/sagas.js +119 -0
  249. package/v2Containers/MobilePush/Edit/selectors.js +32 -0
  250. package/v2Containers/MobilePush/Edit/tests/actions.test.js +18 -0
  251. package/v2Containers/MobilePush/Edit/tests/index.test.js +10 -0
  252. package/v2Containers/MobilePush/Edit/tests/reducer.test.js +9 -0
  253. package/v2Containers/MobilePush/Edit/tests/sagas.test.js +15 -0
  254. package/v2Containers/MobilePush/Edit/tests/selectors.test.js +10 -0
  255. package/v2Containers/MobilePush/commonMethods.js +249 -0
  256. package/v2Containers/MobilePush/eventsMap.js +127 -0
  257. package/v2Containers/MobilePush/initialSchema.js +1739 -0
  258. package/v2Containers/MobilepushWrapper/_mobilepushWrapper.scss +18 -0
  259. package/v2Containers/MobilepushWrapper/index.js +136 -0
  260. package/v2Containers/MobilepushWrapper/messages.js +29 -0
  261. package/v2Containers/MobilepushWrapper/tests/index.test.js +10 -0
  262. package/v2Containers/NotFoundPage/index.js +25 -0
  263. package/v2Containers/NotFoundPage/messages.js +13 -0
  264. package/v2Containers/NotFoundPage/tests/index.test.js +17 -0
  265. package/v2Containers/Sms/Create/_smsCreate.scss +58 -0
  266. package/v2Containers/Sms/Create/actions.js +27 -0
  267. package/v2Containers/Sms/Create/constants.js +16 -0
  268. package/v2Containers/Sms/Create/index.js +1017 -0
  269. package/v2Containers/Sms/Create/messages.js +85 -0
  270. package/v2Containers/Sms/Create/reducer.js +41 -0
  271. package/v2Containers/Sms/Create/sagas.js +35 -0
  272. package/v2Containers/Sms/Create/selectors.js +28 -0
  273. package/v2Containers/Sms/Create/tests/actions.test.js +18 -0
  274. package/v2Containers/Sms/Create/tests/index.test.js +10 -0
  275. package/v2Containers/Sms/Create/tests/reducer.test.js +9 -0
  276. package/v2Containers/Sms/Create/tests/sagas.test.js +15 -0
  277. package/v2Containers/Sms/Create/tests/selectors.test.js +10 -0
  278. package/v2Containers/Sms/Edit/actions.js +45 -0
  279. package/v2Containers/Sms/Edit/constants.js +18 -0
  280. package/v2Containers/Sms/Edit/index.js +1018 -0
  281. package/v2Containers/Sms/Edit/messages.js +89 -0
  282. package/v2Containers/Sms/Edit/reducer.js +52 -0
  283. package/v2Containers/Sms/Edit/sagas.js +50 -0
  284. package/v2Containers/Sms/Edit/selectors.js +32 -0
  285. package/v2Containers/Sms/Edit/tests/actions.test.js +18 -0
  286. package/v2Containers/Sms/Edit/tests/index.test.js +10 -0
  287. package/v2Containers/Sms/Edit/tests/reducer.test.js +9 -0
  288. package/v2Containers/Sms/Edit/tests/sagas.test.js +15 -0
  289. package/v2Containers/Sms/Edit/tests/selectors.test.js +10 -0
  290. package/v2Containers/Sms/initialSchema.js +281 -0
  291. package/v2Containers/TagList/_tagList.scss +8 -0
  292. package/v2Containers/TagList/actions.js +15 -0
  293. package/v2Containers/TagList/constants.js +7 -0
  294. package/v2Containers/TagList/index.js +236 -0
  295. package/v2Containers/TagList/messages.js +13 -0
  296. package/v2Containers/TagList/reducer.js +23 -0
  297. package/v2Containers/TagList/sagas.js +11 -0
  298. package/v2Containers/TagList/selectors.js +25 -0
  299. package/v2Containers/TagList/tests/actions.test.js +18 -0
  300. package/v2Containers/TagList/tests/index.test.js +10 -0
  301. package/v2Containers/TagList/tests/reducer.test.js +9 -0
  302. package/v2Containers/TagList/tests/sagas.test.js +15 -0
  303. package/v2Containers/TagList/tests/selectors.test.js +10 -0
  304. package/v2Containers/Templates/_templates.scss +349 -0
  305. package/v2Containers/Templates/actions.js +110 -0
  306. package/v2Containers/Templates/constants.js +45 -0
  307. package/v2Containers/Templates/index.js +1725 -0
  308. package/v2Containers/Templates/messages.js +278 -0
  309. package/v2Containers/Templates/reducer.js +142 -0
  310. package/v2Containers/Templates/sagas.js +180 -0
  311. package/v2Containers/Templates/selectors.js +68 -0
  312. package/v2Containers/Templates/tests/actions.test.js +18 -0
  313. package/v2Containers/Templates/tests/index.test.js +10 -0
  314. package/v2Containers/Templates/tests/reducer.test.js +9 -0
  315. package/v2Containers/Templates/tests/sagas.test.js +15 -0
  316. package/v2Containers/Templates/tests/selectors.test.js +10 -0
  317. package/v2Containers/TemplatesV2/_templatesV2.scss +5 -0
  318. package/v2Containers/TemplatesV2/actions.js +16 -0
  319. package/v2Containers/TemplatesV2/constants.js +10 -0
  320. package/v2Containers/TemplatesV2/index.js +217 -0
  321. package/v2Containers/TemplatesV2/messages.js +29 -0
  322. package/v2Containers/TemplatesV2/selectors.js +25 -0
  323. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -0
  324. package/v2Containers/TemplatesV2/tests/index.test.js +10 -0
  325. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -0
  326. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -0
  327. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -0
  328. package/v2Containers/TestPage/constants.js +7 -0
  329. package/v2Containers/TestPage/index.js +31 -0
  330. package/v2Containers/TestPage/messages.js +13 -0
  331. package/v2Containers/TestPage/reducer.js +21 -0
  332. package/v2Containers/TestPage/sagas.js +11 -0
  333. package/v2Containers/Testv2/actions.js +15 -0
  334. package/v2Containers/Testv2/constants.js +7 -0
  335. package/v2Containers/Testv2/index.js +47 -0
  336. package/v2Containers/Testv2/messages.js +13 -0
  337. package/v2Containers/Testv2/reducer.js +23 -0
  338. package/v2Containers/Testv2/sagas.js +11 -0
  339. package/v2Containers/Testv2/selectors.js +25 -0
  340. package/v2Containers/Testv2/tests/actions.test.js +18 -0
  341. package/v2Containers/Testv2/tests/index.test.js +10 -0
  342. package/v2Containers/Testv2/tests/reducer.test.js +9 -0
  343. package/v2Containers/Testv2/tests/sagas.test.js +15 -0
  344. package/v2Containers/Testv2/tests/selectors.test.js +10 -0
  345. package/v2Containers/WeChat/MapTemplates/_mapTemplates.scss +8 -0
  346. package/v2Containers/WeChat/MapTemplates/actions.js +52 -0
  347. package/v2Containers/WeChat/MapTemplates/constants.js +28 -0
  348. package/v2Containers/WeChat/MapTemplates/index.js +1385 -0
  349. package/v2Containers/WeChat/MapTemplates/messages.js +73 -0
  350. package/v2Containers/WeChat/MapTemplates/reducer.js +74 -0
  351. package/v2Containers/WeChat/MapTemplates/sagas.js +86 -0
  352. package/v2Containers/WeChat/MapTemplates/selectors.js +25 -0
  353. package/v2Containers/WeChat/MapTemplates/tests/actions.test.js +18 -0
  354. package/v2Containers/WeChat/MapTemplates/tests/index.test.js +10 -0
  355. package/v2Containers/WeChat/MapTemplates/tests/reducer.test.js +9 -0
  356. package/v2Containers/WeChat/MapTemplates/tests/sagas.test.js +15 -0
  357. package/v2Containers/WeChat/MapTemplates/tests/selectors.test.js +10 -0
  358. package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +57 -0
  359. package/v2Containers/WeChat/RichmediaTemplates/Create/actions.js +36 -0
  360. package/v2Containers/WeChat/RichmediaTemplates/Create/constants.js +15 -0
  361. package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +1053 -0
  362. package/v2Containers/WeChat/RichmediaTemplates/Create/messages.js +141 -0
  363. package/v2Containers/WeChat/RichmediaTemplates/Create/reducer.js +60 -0
  364. package/v2Containers/WeChat/RichmediaTemplates/Create/richmediaschema.js +497 -0
  365. package/v2Containers/WeChat/RichmediaTemplates/Create/sagas.js +48 -0
  366. package/v2Containers/WeChat/RichmediaTemplates/Create/selectors.js +37 -0
  367. package/v2Containers/WeChat/RichmediaTemplates/Create/tests/actions.test.js +18 -0
  368. package/v2Containers/WeChat/RichmediaTemplates/Create/tests/index.test.js +10 -0
  369. package/v2Containers/WeChat/RichmediaTemplates/Create/tests/reducer.test.js +9 -0
  370. package/v2Containers/WeChat/RichmediaTemplates/Create/tests/sagas.test.js +15 -0
  371. package/v2Containers/WeChat/RichmediaTemplates/Create/tests/selectors.test.js +10 -0
  372. package/v2Containers/WeChat/RichmediaTemplates/Edit/actions.js +20 -0
  373. package/v2Containers/WeChat/RichmediaTemplates/Edit/constants.js +10 -0
  374. package/v2Containers/WeChat/RichmediaTemplates/Edit/index.js +116 -0
  375. package/v2Containers/WeChat/RichmediaTemplates/Edit/messages.js +13 -0
  376. package/v2Containers/WeChat/RichmediaTemplates/Edit/reducer.js +28 -0
  377. package/v2Containers/WeChat/RichmediaTemplates/Edit/sagas.js +32 -0
  378. package/v2Containers/WeChat/RichmediaTemplates/Edit/selectors.js +30 -0
  379. package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/actions.test.js +18 -0
  380. package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/index.test.js +10 -0
  381. package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/reducer.test.js +9 -0
  382. package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/sagas.test.js +15 -0
  383. package/v2Containers/WeChat/RichmediaTemplates/Edit/tests/selectors.test.js +10 -0
  384. package/v2Containers/WeChat/RichmediaTemplates/View/actions.js +15 -0
  385. package/v2Containers/WeChat/RichmediaTemplates/View/constants.js +7 -0
  386. package/v2Containers/WeChat/RichmediaTemplates/View/index.js +47 -0
  387. package/v2Containers/WeChat/RichmediaTemplates/View/messages.js +13 -0
  388. package/v2Containers/WeChat/RichmediaTemplates/View/reducer.js +23 -0
  389. package/v2Containers/WeChat/RichmediaTemplates/View/sagas.js +11 -0
  390. package/v2Containers/WeChat/RichmediaTemplates/View/selectors.js +25 -0
  391. package/v2Containers/WeChat/RichmediaTemplates/View/tests/actions.test.js +18 -0
  392. package/v2Containers/WeChat/RichmediaTemplates/View/tests/index.test.js +10 -0
  393. package/v2Containers/WeChat/RichmediaTemplates/View/tests/reducer.test.js +9 -0
  394. package/v2Containers/WeChat/RichmediaTemplates/View/tests/sagas.test.js +15 -0
  395. package/v2Containers/WeChat/RichmediaTemplates/View/tests/selectors.test.js +10 -0
@@ -0,0 +1,1739 @@
1
+ export const response = {
2
+ metaEntities: [
3
+ {
4
+ _id: "5a6879f2f48500d47560c741",
5
+ type: "LAYOUT",
6
+ definition: {
7
+ module: "Campaigns",
8
+ channel: "MOBILEPUSH",
9
+ textSchema: {
10
+ standalone: {
11
+ sections: [
12
+ {
13
+ type: "multicols",
14
+ inputFields: [
15
+ {
16
+ cols: [
17
+ {
18
+ id: "template-name",
19
+ placeholder: "Enter template name*",
20
+ type: "input",
21
+ metaType: "text",
22
+ datatype: "string",
23
+ required: true,
24
+ fluid: true,
25
+ style: {
26
+ marginBottom: "16px",
27
+ },
28
+ styling: "semantic",
29
+ order: 1,
30
+ width: 9,
31
+ offSet: 10,
32
+ customComponent: false,
33
+ standalone: true,
34
+ supportedEvents: [
35
+ "onChange",
36
+ ],
37
+ errorMessage: "Template name cannot be empty",
38
+ },
39
+ {
40
+ id: "discard-button",
41
+ width: 3,
42
+ offset: 8,
43
+ metaType: "submit-button",
44
+ colStyle: {
45
+ textAlign: "right",
46
+ paddingRight: "12px",
47
+ },
48
+ type: "button",
49
+ buttonType: "cancel",
50
+ value: "Discard Changes",
51
+ customComponent: false,
52
+ standalone: true,
53
+ styling: "semantic",
54
+ order: 3,
55
+ fluid: false,
56
+ submitAction: "discardValues",
57
+ supportedEvents: [
58
+ "discardValues",
59
+ ],
60
+ },
61
+ {
62
+ id: "cancel-button",
63
+ width: 2,
64
+ metaType: "submit-button",
65
+ colStyle: {
66
+ textAlign: "right",
67
+ width: "9%",
68
+ },
69
+ type: "button",
70
+ buttonType: "cancel",
71
+ value: "Cancel",
72
+ customComponent: false,
73
+ standalone: true,
74
+ styling: "semantic",
75
+ order: 3,
76
+ fluid: false,
77
+ submitAction: "cancelTemplate",
78
+ supportedEvents: [
79
+ "cancelTemplate",
80
+ ],
81
+ },
82
+ {
83
+ id: "save-button",
84
+ width: 2,
85
+ metaType: "submit-button",
86
+ colStyle: {
87
+ textAlign: "right",
88
+ width: "7%",
89
+ },
90
+ type: "button",
91
+ buttonType: "primary",
92
+ value: "Save",
93
+ customComponent: false,
94
+ styling: "semantic",
95
+ order: 3,
96
+ fluid: false,
97
+ standalone: true,
98
+ submitAction: "saveFormData",
99
+ supportedEvents: [
100
+ "saveFormData",
101
+ ],
102
+ },
103
+ ],
104
+ },
105
+ ],
106
+ actionFields: [],
107
+ },
108
+ {
109
+ type: "multicols",
110
+ inputFields: [
111
+ {
112
+ cols: [
113
+ {
114
+ standalone: true,
115
+ customComponent: false,
116
+ offSet: 6,
117
+ width: 5,
118
+ order: 1,
119
+ styling: "semantic",
120
+ style: {
121
+ display: "block",
122
+ marginBottom: "16px",
123
+ },
124
+ fluid: true,
125
+ required: true,
126
+ datatype: "string",
127
+ metaType: "text",
128
+ options: [],
129
+ type: "select",
130
+ placeholder: "Select Mobilepush Account",
131
+ labelStyle: {
132
+ display: "block",
133
+ padding: ".5em .833em",
134
+
135
+ color: "#333333",
136
+ textAlign: "left",
137
+ backgroundColor: "white",
138
+ },
139
+ label: "Account Id",
140
+ id: "mobilepush-accounts",
141
+ },
142
+ ],
143
+ },
144
+ {
145
+ cols: [
146
+ {
147
+ standalone: true,
148
+ customComponent: false,
149
+ offSet: 6,
150
+ width: 15,
151
+ order: 1,
152
+ styling: "semantic",
153
+ style: {
154
+ marginBottom: "16px",
155
+
156
+ },
157
+ disabled: false,
158
+ fluid: true,
159
+ required: true,
160
+ datatype: "string",
161
+ metaType: "text",
162
+ options: [],
163
+ type: "select",
164
+ placeholder: "Select Mobilepush Template",
165
+ labelStyle: {
166
+ padding: ".5em .833em",
167
+
168
+
169
+ color: "#333333",
170
+ textAlign: "left",
171
+ backgroundColor: "white",
172
+ },
173
+ supportedEvents: [
174
+ "onSelect",
175
+ ],
176
+ label: "Template",
177
+ id: "mobilepush-template",
178
+ },
179
+ ],
180
+ },
181
+ ],
182
+ },
183
+ ],
184
+ },
185
+ containers: [
186
+ {
187
+ id: "pane",
188
+ supportedEvents: [
189
+ "onTabChange",
190
+ ],
191
+ panes: [
192
+ {
193
+ isSupported: true, //ios channel is supported initially. this value migh get changes based on orgs supported channels.
194
+ sectionsHeaders: [
195
+ {
196
+ type: "multicols",
197
+ inputFields: [
198
+ {
199
+ rowStyle: {
200
+ display: "flex",
201
+ flex: 1,
202
+ },
203
+ cols: [
204
+ {
205
+ id: "tab-header-android",
206
+ metaType: "label",
207
+ value: "Android",
208
+ primitive: true,
209
+ dynamicTab: false,
210
+ type: "div",
211
+ width: 5,
212
+ offset: 0,
213
+ onlyDisplay: true,
214
+ colStyle: {
215
+ flex: 1,
216
+ },
217
+
218
+ },
219
+ ],
220
+ },
221
+ ],
222
+ actionFields: [],
223
+ },
224
+ ],
225
+ sections: [
226
+ {
227
+ type: "parent",
228
+ width: 16,
229
+ rowStyle: {
230
+ height: "100%",
231
+ },
232
+ childSections: [
233
+ {
234
+ colStyle: {
235
+ paddingTop: "16px",
236
+ paddingLeft: "16px",
237
+ borderRight: "1px solid #d9d9d9",
238
+ height: "70vh",
239
+ overflowY: "auto",
240
+ },
241
+ width: 16,
242
+ type: "parent",
243
+ childSections: [
244
+ {
245
+ type: "multicols",
246
+ inputFields: [
247
+ {
248
+ rowClassName: "mobile-push-row",
249
+ cols: [
250
+ {
251
+ id: "copy-iphone-content",
252
+ metaType: "label",
253
+ value: "Copy Title and Content From IOS",
254
+ primitive: true,
255
+ dynamicTab: false,
256
+ type: "div",
257
+ style: {
258
+ backgroundColor: "white",
259
+ textAlign: "left",
260
+ color: "#2673D7",
261
+
262
+ cursor: "pointer",
263
+ },
264
+ submitAction: "onClick",
265
+ supportedEvents: [
266
+ "onClick",
267
+ ],
268
+ offset: 0,
269
+ onlyDisplay: true,
270
+ colStyle: {
271
+ flex: 1,
272
+ },
273
+ },
274
+ ],
275
+ },
276
+ {
277
+ rowClassName: "mobile-push-row",
278
+ cols: [
279
+
280
+ {
281
+ id: "message-title",
282
+ label: "Title",
283
+ type: "input",
284
+ metaType: "text",
285
+ datatype: "string",
286
+ required: true,
287
+ width: 22,
288
+ placeholder: "Please input message title name.",
289
+ fluid: true,
290
+ styling: "semantic",
291
+ order: 1,
292
+ customComponent: false,
293
+ supportedEvents: [],
294
+ errorMessage: "Template message has unsupported/missing tags!",
295
+ },
296
+ {
297
+ offset: 20,
298
+ id: "title-tagList",
299
+ target: "message-title",
300
+ label: "Add labels",
301
+ type: "tag-list",
302
+ metaType: "List",
303
+ datatype: "select",
304
+ required: true,
305
+ fluid: true,
306
+ onlyDisplay: true,
307
+ styling: "semantic",
308
+ order: 1,
309
+ customComponent: true,
310
+ supportedEvents: [
311
+ "onTagSelect",
312
+ ],
313
+ },
314
+ ],
315
+ },
316
+ {
317
+ rowClassName: "mobile-push-row",
318
+ cols: [
319
+
320
+ {
321
+ id: "message-editor",
322
+ label: "Message",
323
+ offset: 0,
324
+ type: "textarea",
325
+ width: 22,
326
+ metaType: "text",
327
+ datatype: "string",
328
+ required: true,
329
+ placeholder: "Please input mobile push template content.",
330
+ fluid: true,
331
+ styling: "semantic",
332
+ autosize: true,
333
+ autosizeParams: {
334
+ minRows: 3,
335
+ },
336
+
337
+ order: 1,
338
+ customComponent: true,
339
+ supportedEvents: [
340
+ "onChange",
341
+ ],
342
+ errorMessage: "Template message has unsupported/missing tags!",
343
+ },
344
+ {
345
+ offset: 20,
346
+ id: "message-tagList",
347
+ target: "message-editor",
348
+ label: "Add labels",
349
+ type: "tag-list",
350
+ metaType: "List",
351
+ datatype: "select",
352
+ required: true,
353
+ style: {
354
+ marginTop: "55px",
355
+ },
356
+ fluid: true,
357
+ onlyDisplay: true,
358
+ styling: "semantic",
359
+ order: 2,
360
+ customComponent: true,
361
+ supportedEvents: [
362
+ "onTagSelect",
363
+ ],
364
+ },
365
+ ],
366
+ },
367
+ {
368
+ rowClassName: "mobile-push-row",
369
+ identifier: "add-pri-cta",
370
+ cols: [
371
+
372
+ {
373
+ id: "add-pri-cta",
374
+
375
+ label: "Add action link to content",
376
+ inductiveText: "Add a hyperlink of the page which customer will be directed to",
377
+ styling: "semantic",
378
+ dynamicTab: false,
379
+ type: "checkbox",
380
+ customComponent: false,
381
+ datatype: "boolean",
382
+ fluid: true,
383
+ metaType: "label",
384
+ onlyDisplay: false,
385
+ order: 1,
386
+ offset: 0,
387
+ colStyle: {
388
+ flex: 1,
389
+ },
390
+ submitAction: "addPrimaryCta",
391
+ supportedEvents: [
392
+ "addPrimaryCta",
393
+ ],
394
+ },
395
+ ],
396
+ },
397
+ {
398
+ identifier: "add-sec-cta",
399
+
400
+ cols: [
401
+ {
402
+ id: "add-sec-cta",
403
+ label: "Add primary button to notification",
404
+ styling: "semantic",
405
+ dynamicTab: false,
406
+ type: "checkbox",
407
+ customComponent: false,
408
+ datatype: "boolean",
409
+ fluid: true,
410
+
411
+ metaType: "label",
412
+ // metaType: "text",
413
+ onlyDisplay: false,
414
+ // type: "div",
415
+ // width: 6,
416
+ style: {
417
+ marginBottom: '24px',
418
+ },
419
+ offset: 0,
420
+ colStyle: {
421
+ flex: 1,
422
+ },
423
+ submitAction: "addSecondaryCta",
424
+ supportedEvents: [
425
+ "addSecondaryCta",
426
+ ],
427
+ fieldsLimit: 2,
428
+ fieldsCount: 0,
429
+ },
430
+ ],
431
+ },
432
+ {
433
+ identifier: "add-sec-cta-2",
434
+
435
+ cols: [
436
+ {
437
+ id: "add-sec-cta-2",
438
+ metaType: "label",
439
+ dynamicTab: false,
440
+ label: "Add secondary button to notification",
441
+ styling: "semantic",
442
+ type: "checkbox",
443
+ customComponent: false,
444
+ datatype: "boolean",
445
+ fluid: true,
446
+ onlyDisplay: false,
447
+ // type: "div",
448
+ // width: 6,
449
+ // style: {
450
+ // backgroundColor: "white",
451
+ // textAlign: "left",
452
+ // color: "#2673D7",
453
+ // lineHeight: "24px",
454
+ // fontSize: "14px",
455
+ // marginTop: "16px",
456
+ // fontWeight: "600",
457
+ // fontFamily: "open-sans",
458
+ // fontStyle: "normal",
459
+ // cursor: "pointer",
460
+ // },
461
+ offset: 0,
462
+ colStyle: {
463
+ flex: 1,
464
+ },
465
+ submitAction: "addSecondaryCta",
466
+ supportedEvents: [
467
+ "addSecondaryCta",
468
+ ],
469
+ fieldsLimit: 2,
470
+ fieldsCount: 1,
471
+ },
472
+ ],
473
+ },
474
+ ],
475
+ actionFields: [],
476
+ },
477
+ ],
478
+ },
479
+ {
480
+ width: 6,
481
+ type: "multicols",
482
+ offset: 1,
483
+ colStyle: {
484
+ paddingTop: "16px",
485
+ },
486
+ inputFields: [
487
+ {
488
+ cols: [
489
+ {
490
+ id: "mobile-push-preview",
491
+ type: "mobile-push-preview",
492
+ device: "android",
493
+ customComponent: true,
494
+ customStyling: {
495
+ padding: "0",
496
+ },
497
+ metaType: "preview",
498
+ required: true,
499
+ fluid: true,
500
+ styling: "semantic",
501
+ order: 1,
502
+ width: 5,
503
+ onlyDisplay: true,
504
+ offset: 7,
505
+ channel: "MOBILEPUSH",
506
+ content: {
507
+ title: "message-title",
508
+ message: "message-editor",
509
+ secondaryCta1: "secondary-cta-0-label",
510
+ secondaryCta2: "secondary-cta-1-label",
511
+ appName: "",
512
+ },
513
+ },
514
+ ],
515
+ },
516
+ ],
517
+ },
518
+ ],
519
+ },
520
+ ],
521
+ },
522
+ {
523
+ isSupported: true, //ios channel is supported initially. this value migh get changes based on orgs supported channels.
524
+
525
+ sectionsHeaders: [
526
+ {
527
+ type: "multicols",
528
+ inputFields: [
529
+ {
530
+ rowStyle: {
531
+ display: "flex",
532
+ flex: 1,
533
+ },
534
+ cols: [
535
+ {
536
+ id: "tab-header-iphone",
537
+ metaType: "label",
538
+ value: "iOS",
539
+ primitive: true,
540
+ dynamicTab: false,
541
+ type: "div",
542
+ width: 5,
543
+ offset: 0,
544
+ onlyDisplay: true,
545
+ colStyle: {
546
+ flex: 1,
547
+ },
548
+
549
+ },
550
+ ],
551
+ },
552
+ ],
553
+ actionFields: [],
554
+ },
555
+ ],
556
+ sections: [
557
+ {
558
+ type: "parent",
559
+ width: 16,
560
+ rowStyle: {
561
+ height: "100%",
562
+ },
563
+ childSections: [
564
+ {
565
+ colStyle: {
566
+ paddingTop: "16px",
567
+ paddingLeft: "16px",
568
+ borderRight: "1px solid #d9d9d9",
569
+ height: "70vh",
570
+ overflowY: "auto",
571
+ },
572
+ width: 16,
573
+ type: "parent",
574
+ childSections: [
575
+ {
576
+ type: "multicols",
577
+ inputFields: [
578
+ {
579
+ rowClassName: "mobile-push-row",
580
+ cols: [
581
+ {
582
+ id: "copy-android-content",
583
+ metaType: "label",
584
+ value: "Copy Title and Content From Android",
585
+ primitive: true,
586
+ dynamicTab: false,
587
+ type: "div",
588
+ style: {
589
+ backgroundColor: "white",
590
+ textAlign: "left",
591
+ color: "#2673D7",
592
+
593
+ cursor: "pointer",
594
+ },
595
+ offset: 0,
596
+ submitAction: "onClick",
597
+ supportedEvents: [
598
+ "onClick",
599
+ ],
600
+ onlyDisplay: true,
601
+ colStyle: {
602
+ flex: 1,
603
+ },
604
+ },
605
+ ],
606
+ },
607
+ {
608
+ rowClassName: "mobile-push-row",
609
+ cols: [
610
+
611
+ {
612
+ id: "message-title2",
613
+ label: "Title",
614
+ type: "input",
615
+ metaType: "text",
616
+ datatype: "string",
617
+ required: true,
618
+ width: 22,
619
+ placeholder: "Please input message title name.",
620
+ fluid: true,
621
+ styling: "semantic",
622
+ order: 1,
623
+ customComponent: false,
624
+ supportedEvents: [],
625
+ errorMessage: "Template title has unsupported/missing tags.",
626
+ },
627
+ {
628
+ offset: 20,
629
+ id: "title-tagList2",
630
+ target: "message-title2",
631
+ label: "Add labels",
632
+ type: "tag-list",
633
+ metaType: "List",
634
+ datatype: "select",
635
+ required: true,
636
+ fluid: true,
637
+ onlyDisplay: true,
638
+ styling: "semantic",
639
+ order: 1,
640
+ customComponent: true,
641
+ supportedEvents: [
642
+ "onTagSelect",
643
+ ],
644
+ },
645
+ ],
646
+ },
647
+ {
648
+ rowClassName: "mobile-push-row",
649
+ cols: [
650
+
651
+ {
652
+ id: "message-editor2",
653
+ label: "Message",
654
+ offset: 0,
655
+ type: "textarea",
656
+ width: 22,
657
+ metaType: "text",
658
+ datatype: "string",
659
+ required: true,
660
+ placeholder: "Please input mobile push template content.",
661
+ fluid: true,
662
+ styling: "semantic",
663
+ autosize: true,
664
+
665
+ autosizeParams: {
666
+ minRows: 3,
667
+ },
668
+ order: 1,
669
+ customComponent: true,
670
+ supportedEvents: [
671
+ "onChange",
672
+ ],
673
+ errorMessage: "Template message has unsupported/missing tags!",
674
+ },
675
+ {
676
+ offset: 20,
677
+ id: "message-tagList2",
678
+ label: "add labels",
679
+ target: "message-editor2",
680
+ type: "tag-list",
681
+ metaType: "List",
682
+ datatype: "select",
683
+ style: {
684
+ marginTop: "55px",
685
+ },
686
+ required: true,
687
+ fluid: true,
688
+ onlyDisplay: true,
689
+ styling: "semantic",
690
+ order: 2,
691
+ customComponent: true,
692
+ supportedEvents: [
693
+ "onTagSelect",
694
+ ],
695
+ },
696
+ ],
697
+ },
698
+ {
699
+ rowClassName: "mobile-push-row",
700
+ identifier: "add-pri-cta-ios",
701
+
702
+ cols: [
703
+ {
704
+ id: "add-pri-cta-ios",
705
+ styling: "semantic",
706
+
707
+ label: "Add action link to content",
708
+ inductiveText: "Add a hyperlink of the page which customer will be directed to",
709
+ customComponent: false,
710
+ datatype: "boolean",
711
+ fluid: true,
712
+ metaType: "text",
713
+ onlyDisplay: false,
714
+ order: 1,
715
+ dynamicTab: false,
716
+ type: "checkbox",
717
+ // style: {
718
+ // backgroundColor: "white",
719
+ // textAlign: "left",
720
+ // color: "#2673D7",
721
+ // lineHeight: "24px",
722
+ // fontSize: "14px",
723
+ // fontWeight: "600",
724
+ // fontFamily: "open-sans",
725
+ // fontStyle: "normal",
726
+ // cursor: "pointer",
727
+ // },
728
+ offset: 0,
729
+ colStyle: {
730
+ flex: 1,
731
+ },
732
+ submitAction: "addPrimaryCta",
733
+ supportedEvents: [
734
+ "addPrimaryCta",
735
+ ],
736
+ },
737
+ ],
738
+ },
739
+ {
740
+ identifier: "add-sec-cta-ios",
741
+
742
+ cols: [
743
+ {
744
+ id: "add-sec-cta-ios",
745
+ metaType: "label",
746
+ dynamicTab: false,
747
+ label: "Add action buttons to notification",
748
+ styling: "semantic",
749
+ type: "checkbox",
750
+ customComponent: false,
751
+ datatype: "boolean",
752
+ fluid: true,
753
+ // metaType: "text",
754
+ onlyDisplay: false,
755
+ // type: "div",
756
+ // style: {
757
+ // backgroundColor: "white",
758
+ // textAlign: "left",
759
+ // color: "#2673D7",
760
+ // lineHeight: "24px",
761
+ // fontSize: "14px",
762
+ // marginTop: "16px",
763
+ // fontWeight: "600",
764
+ // fontFamily: "open-sans",
765
+ // fontStyle: "normal",
766
+ // cursor: "pointer",
767
+ // },
768
+ offset: 0,
769
+ // onlyDisplay: true,
770
+ colStyle: {
771
+ flex: 1,
772
+ },
773
+ submitAction: "addSecondaryCtaIos",
774
+ supportedEvents: [
775
+ "addSecondaryCtaIos",
776
+ ],
777
+ },
778
+ ],
779
+ },
780
+
781
+ ],
782
+ actionFields: [],
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ width: 6,
788
+ type: "multicols",
789
+ offset: 1,
790
+ colStyle: {
791
+ paddingTop: "16px",
792
+ },
793
+ inputFields: [
794
+ {
795
+ cols: [
796
+ {
797
+ id: "mobile-push-preview",
798
+ type: "mobile-push-preview",
799
+ device: "iphone",
800
+ customComponent: true,
801
+ customStyling: {
802
+ padding: "0",
803
+ },
804
+ metaType: "preview",
805
+ required: true,
806
+ fluid: true,
807
+ styling: "semantic",
808
+ order: 1,
809
+ width: 5,
810
+ onlyDisplay: true,
811
+ offset: 7,
812
+ channel: "MOBILEPUSH",
813
+ content: {
814
+ title: "message-title2",
815
+ message: "message-editor2",
816
+ secondaryCta1: "secondary-cta-1-action",
817
+ secondaryCta2: "secondary-cta-1-action2",
818
+ appName: "",
819
+ },
820
+ },
821
+ ],
822
+ },
823
+ ],
824
+ },
825
+ ],
826
+ },
827
+ ],
828
+ },
829
+ ],
830
+ type: "tabs",
831
+ defaultPanes: 1,
832
+ additionalPanes: 0,
833
+ },
834
+ ],
835
+ channel: "MOBILEPUSH",
836
+ module: "Campaigns",
837
+ },
838
+ imageSchema: {
839
+ standalone: {
840
+ sections: [
841
+ {
842
+ type: "multicols",
843
+ inputFields: [
844
+ {
845
+ cols: [
846
+ {
847
+ id: "template-name",
848
+ placeholder: "Enter template name",
849
+ type: "input",
850
+ metaType: "text",
851
+ datatype: "string",
852
+ required: true,
853
+ fluid: true,
854
+ style: {
855
+
856
+ marginBottom: "16px",
857
+ },
858
+ styling: "semantic",
859
+ order: 1,
860
+ width: 9,
861
+ offSet: 10,
862
+ customComponent: false,
863
+ standalone: true,
864
+ supportedEvents: [
865
+ "onChange",
866
+ ],
867
+ errorMessage: "Template name cannot be empty.",
868
+ },
869
+ {
870
+ id: "discard-button",
871
+ width: 3,
872
+ offset: 8,
873
+ metaType: "submit-button",
874
+ colStyle: {
875
+ textAlign: "right",
876
+ paddingRight: "12px",
877
+ },
878
+ type: "button",
879
+ buttonType: "cancel",
880
+ value: "Discard Changes",
881
+ customComponent: false,
882
+ standalone: true,
883
+ styling: "semantic",
884
+ order: 3,
885
+ fluid: false,
886
+ submitAction: "discardValues",
887
+ supportedEvents: [
888
+ "discardValues",
889
+ ],
890
+ },
891
+ {
892
+ id: "cancel-button",
893
+ width: 2,
894
+ metaType: "submit-button",
895
+ colStyle: {
896
+ textAlign: "right",
897
+ width: "9%",
898
+ },
899
+ type: "button",
900
+ buttonType: "cancel",
901
+ value: "Cancel",
902
+ customComponent: false,
903
+ standalone: true,
904
+ styling: "semantic",
905
+ order: 3,
906
+ fluid: false,
907
+ submitAction: "cancelTemplate",
908
+ supportedEvents: [
909
+ "cancelTemplate",
910
+ ],
911
+ },
912
+ {
913
+ id: "save-button",
914
+ width: 2,
915
+ metaType: "submit-button",
916
+ colStyle: {
917
+ textAlign: "right",
918
+ width: "7%",
919
+ },
920
+ type: "button",
921
+ buttonType: "primary",
922
+ value: "Save",
923
+ customComponent: false,
924
+ styling: "semantic",
925
+ order: 3,
926
+ fluid: false,
927
+ standalone: true,
928
+ submitAction: "saveFormData",
929
+ supportedEvents: [
930
+ "saveFormData",
931
+ ],
932
+ },
933
+ ],
934
+ },
935
+ ],
936
+ actionFields: [],
937
+ },
938
+ {
939
+ type: "multicols",
940
+ inputFields: [
941
+ {
942
+ cols: [
943
+ {
944
+ standalone: true,
945
+ customComponent: false,
946
+ offSet: 6,
947
+ width: 5,
948
+ order: 1,
949
+ styling: "semantic",
950
+ style: {
951
+ display: "block",
952
+ marginBottom: "16px",
953
+
954
+ },
955
+ fluid: true,
956
+ required: true,
957
+ datatype: "string",
958
+ metaType: "text",
959
+ options: [],
960
+ type: "select",
961
+ placeholder: "Select Mobilepush Account",
962
+ labelStyle: {
963
+ display: "block",
964
+ padding: ".5em .833em",
965
+
966
+ color: "#333333",
967
+ textAlign: "left",
968
+ backgroundColor: "white",
969
+ },
970
+ label: "Account Id",
971
+ id: "mobilepush-accounts",
972
+ },
973
+ ],
974
+ },
975
+ {
976
+ cols: [
977
+ {
978
+ standalone: true,
979
+ customComponent: false,
980
+ offSet: 6,
981
+ width: 15,
982
+ order: 1,
983
+ styling: "semantic",
984
+ style: {
985
+ marginBottom: "16px",
986
+
987
+ },
988
+ disabled: false,
989
+ fluid: true,
990
+ required: true,
991
+ datatype: "string",
992
+ metaType: "text",
993
+ options: [],
994
+ type: "select",
995
+ placeholder: "Select Mobilepush Template",
996
+ labelStyle: {
997
+ padding: ".5em .833em",
998
+
999
+ color: "#333333",
1000
+ textAlign: "left",
1001
+ backgroundColor: "white",
1002
+ },
1003
+ supportedEvents: [
1004
+ "onSelect",
1005
+ ],
1006
+ label: "Template",
1007
+ id: "mobilepush-template",
1008
+ },
1009
+ ],
1010
+ },
1011
+ ],
1012
+ },
1013
+ ],
1014
+ },
1015
+ containers: [
1016
+ {
1017
+ id: "pane",
1018
+ supportedEvents: [
1019
+ "onTabChange",
1020
+ ],
1021
+ panes: [
1022
+ {
1023
+ isSupported: true, //ios channel is supported initially. this value migh get changes based on orgs supported channels.
1024
+
1025
+ sectionsHeaders: [
1026
+ {
1027
+ type: "multicols",
1028
+ inputFields: [
1029
+ {
1030
+ rowStyle: {
1031
+ display: "flex",
1032
+ flex: 1,
1033
+ },
1034
+ cols: [
1035
+ {
1036
+ id: "tab-header",
1037
+ metaType: "label",
1038
+ value: "Android",
1039
+ primitive: true,
1040
+ dynamicTab: false,
1041
+ type: "div",
1042
+ width: 5,
1043
+ offset: 0,
1044
+ onlyDisplay: true,
1045
+ colStyle: {
1046
+ flex: 1,
1047
+ },
1048
+
1049
+ },
1050
+ ],
1051
+ },
1052
+ ],
1053
+ actionFields: [],
1054
+ },
1055
+ ],
1056
+ sections: [
1057
+ {
1058
+ type: "parent",
1059
+ width: 16,
1060
+ rowStyle: {
1061
+ height: "100%",
1062
+ },
1063
+ childSections: [
1064
+ {
1065
+ colStyle: {
1066
+ paddingTop: "16px",
1067
+ paddingLeft: "16px",
1068
+ borderRight: "1px solid #d9d9d9",
1069
+ height: "70vh",
1070
+ overflowY: "auto",
1071
+ },
1072
+ width: 16,
1073
+ type: "parent",
1074
+ childSections: [
1075
+ {
1076
+ type: "multicols",
1077
+ inputFields: [
1078
+ {
1079
+ rowClassName: "mobile-push-row",
1080
+ cols: [
1081
+ {
1082
+ id: "copy-iphone-content",
1083
+ metaType: "label",
1084
+ value: "Copy Title and Content From IOS",
1085
+ primitive: true,
1086
+ dynamicTab: false,
1087
+ type: "div",
1088
+ style: {
1089
+ backgroundColor: "white",
1090
+ textAlign: "left",
1091
+ color: "#2E89DF",
1092
+
1093
+ cursor: "pointer",
1094
+ },
1095
+ submitAction: "onClick",
1096
+ supportedEvents: [
1097
+ "onClick",
1098
+ ],
1099
+ offset: 0,
1100
+ onlyDisplay: true,
1101
+ colStyle: {
1102
+ flex: 1,
1103
+ },
1104
+ },
1105
+ ],
1106
+ },
1107
+ {
1108
+ rowClassName: "mobile-push-row",
1109
+ cols: [
1110
+
1111
+ {
1112
+ id: "message-title",
1113
+ label: "Title",
1114
+ type: "input",
1115
+ metaType: "text",
1116
+ datatype: "string",
1117
+ required: true,
1118
+ width: 22,
1119
+ placeholder: "Please input message title name.",
1120
+ fluid: true,
1121
+ styling: "semantic",
1122
+ order: 1,
1123
+ customComponent: false,
1124
+ supportedEvents: [],
1125
+ errorMessage: "Message title has unsupported/missing tags!",
1126
+ },
1127
+ {
1128
+ offset: 20,
1129
+ id: "title-tagList",
1130
+ target: "message-title",
1131
+ label: "Add labels",
1132
+ type: "tag-list",
1133
+ metaType: "List",
1134
+ datatype: "select",
1135
+ required: true,
1136
+ fluid: true,
1137
+ onlyDisplay: true,
1138
+ styling: "semantic",
1139
+ order: 1,
1140
+ customComponent: true,
1141
+ supportedEvents: [
1142
+ "onTagSelect",
1143
+ ],
1144
+ },
1145
+ ],
1146
+ },
1147
+ {
1148
+ rowClassName: "mobile-push-row",
1149
+ cols: [
1150
+
1151
+ {
1152
+ id: "message-editor",
1153
+ label: "Message",
1154
+ offset: 0,
1155
+ type: "textarea",
1156
+ width: 22,
1157
+ metaType: "text",
1158
+ datatype: "string",
1159
+ required: true,
1160
+ placeholder: "Please input mobile push template content.",
1161
+ errorMessage: "Template message has unsupported/missing tags!",
1162
+ fluid: true,
1163
+ styling: "semantic",
1164
+ autosize: true,
1165
+
1166
+ autosizeParams: {
1167
+ minRows: 3,
1168
+ },
1169
+ order: 1,
1170
+ customComponent: true,
1171
+ supportedEvents: [
1172
+ "onChange",
1173
+ ],
1174
+ },
1175
+ {
1176
+ offset: 20,
1177
+ id: "message-tagList",
1178
+ target: "message-editor",
1179
+ label: "Add labels",
1180
+ type: "tag-list",
1181
+ metaType: "List",
1182
+ datatype: "select",
1183
+ style: {
1184
+ marginTop: "55px",
1185
+ },
1186
+ required: true,
1187
+ fluid: true,
1188
+ onlyDisplay: true,
1189
+ styling: "semantic",
1190
+ order: 2,
1191
+ customComponent: true,
1192
+ supportedEvents: [
1193
+ "onTagSelect",
1194
+ ],
1195
+ },
1196
+ ],
1197
+ },
1198
+ {
1199
+ rowClassName: "mobile-push-row",
1200
+ cols: [
1201
+
1202
+
1203
+ {
1204
+ id: "image",
1205
+ label: "Upload Image",
1206
+ type: "upload",
1207
+ showPreview: true,
1208
+ previewProps: {
1209
+ label: "Cover Image",
1210
+ inductiveText: "Maximum file size acceptable is 5 MB",
1211
+ // placeholder: "Max file size acceptable is 5mb",
1212
+ errorMessage: "Please upload Image",
1213
+
1214
+ },
1215
+ width: 22,
1216
+ metaType: "text",
1217
+ datatype: "string",
1218
+ required: true,
1219
+ fluid: true,
1220
+ styling: "semantic",
1221
+ order: 1,
1222
+ customComponent: true,
1223
+ offset: 0,
1224
+ submitAction: "onUpload",
1225
+ supportedEvents: [
1226
+ "onUpload",
1227
+ ],
1228
+ },
1229
+ ],
1230
+ },
1231
+ {
1232
+ rowClassName: "mobile-push-row",
1233
+
1234
+ identifier: "add-pri-cta",
1235
+ cols: [
1236
+ {
1237
+ id: "add-pri-cta",
1238
+ styling: "semantic",
1239
+
1240
+
1241
+ label: "Add action link to content",
1242
+ inductiveText: "Add a hyperlink of the page which customer will be directed to",
1243
+ customComponent: false,
1244
+ datatype: "boolean",
1245
+ fluid: true,
1246
+ metaType: "text",
1247
+ onlyDisplay: false,
1248
+ order: 1,
1249
+ dynamicTab: false,
1250
+ type: "checkbox",
1251
+ // style: {
1252
+ // backgroundColor: "white",
1253
+ // textAlign: "left",
1254
+ // color: "#2673D7",
1255
+ // lineHeight: "24px",
1256
+ // fontSize: "14px",
1257
+ // fontWeight: "600",
1258
+ // fontFamily: "open-sans",
1259
+ // fontStyle: "normal",
1260
+ // cursor: "pointer",
1261
+ // },
1262
+ offset: 0,
1263
+ colStyle: {
1264
+ flex: 1,
1265
+ },
1266
+ submitAction: "addPrimaryCta",
1267
+ supportedEvents: [
1268
+ "addPrimaryCta",
1269
+ ],
1270
+ },
1271
+ ],
1272
+ },
1273
+ {
1274
+ identifier: "add-sec-cta",
1275
+
1276
+ cols: [
1277
+ {
1278
+ id: "add-sec-cta",
1279
+ label: "Add primary button to notification",
1280
+ styling: "semantic",
1281
+ dynamicTab: false,
1282
+ type: "checkbox",
1283
+ customComponent: false,
1284
+ datatype: "boolean",
1285
+ fluid: true,
1286
+
1287
+ metaType: "label",
1288
+ // metaType: "text",
1289
+ onlyDisplay: false,
1290
+ // type: "div",
1291
+ // width: 6,
1292
+ style: {
1293
+ marginBottom: '24px',
1294
+ },
1295
+ offset: 0,
1296
+ colStyle: {
1297
+ flex: 1,
1298
+ },
1299
+ submitAction: "addSecondaryCta",
1300
+ supportedEvents: [
1301
+ "addSecondaryCta",
1302
+ ],
1303
+ fieldsLimit: 2,
1304
+ fieldsCount: 0,
1305
+ },
1306
+ ],
1307
+ },
1308
+ {
1309
+ identifier: "add-sec-cta-2",
1310
+
1311
+ cols: [
1312
+ {
1313
+ id: "add-sec-cta-2",
1314
+ metaType: "label",
1315
+ dynamicTab: false,
1316
+ label: "Add secondary button to notification",
1317
+ styling: "semantic",
1318
+ type: "checkbox",
1319
+ customComponent: false,
1320
+ datatype: "boolean",
1321
+ fluid: true,
1322
+ onlyDisplay: false,
1323
+ // type: "div",
1324
+ // width: 6,
1325
+ // style: {
1326
+ // backgroundColor: "white",
1327
+ // textAlign: "left",
1328
+ // color: "#2673D7",
1329
+ // lineHeight: "24px",
1330
+ // fontSize: "14px",
1331
+ // marginTop: "16px",
1332
+ // fontWeight: "600",
1333
+ // fontFamily: "open-sans",
1334
+ // fontStyle: "normal",
1335
+ // cursor: "pointer",
1336
+ // },
1337
+ offset: 0,
1338
+ colStyle: {
1339
+ flex: 1,
1340
+ },
1341
+ submitAction: "addSecondaryCta",
1342
+ supportedEvents: [
1343
+ "addSecondaryCta",
1344
+ ],
1345
+ fieldsLimit: 2,
1346
+ fieldsCount: 1,
1347
+ },
1348
+ ],
1349
+ },
1350
+ ],
1351
+ actionFields: [],
1352
+ },
1353
+ ],
1354
+ },
1355
+ {
1356
+ width: 6,
1357
+ type: "multicols",
1358
+ offset: 1,
1359
+ colStyle: {
1360
+ paddingTop: "16px",
1361
+ },
1362
+ inputFields: [
1363
+ {
1364
+ cols: [
1365
+ {
1366
+ id: "mobile-push-preview",
1367
+ type: "mobile-push-preview",
1368
+ device: "android",
1369
+ customComponent: true,
1370
+ customStyling: {
1371
+ padding: "0",
1372
+ },
1373
+ metaType: "preview",
1374
+ required: true,
1375
+ fluid: true,
1376
+ styling: "semantic",
1377
+ order: 1,
1378
+ width: 5,
1379
+ onlyDisplay: true,
1380
+ offset: 7,
1381
+ channel: "MOBILEPUSH",
1382
+ content: {
1383
+ title: "message-title",
1384
+ message: "message-editor",
1385
+ secondaryCta1: "secondary-cta-0-label",
1386
+ secondaryCta2: "secondary-cta-1-label",
1387
+ appName: "",
1388
+ },
1389
+ },
1390
+ ],
1391
+ },
1392
+ ],
1393
+ },
1394
+ ],
1395
+ },
1396
+ ],
1397
+ },
1398
+ {
1399
+ isSupported: true, //ios channel is supported initially. this value migh get changes based on orgs supported channels.
1400
+
1401
+ sectionsHeaders: [
1402
+ {
1403
+ type: "multicols",
1404
+ inputFields: [
1405
+ {
1406
+ rowStyle: {
1407
+ display: "flex",
1408
+ flex: 1,
1409
+ },
1410
+ cols: [
1411
+ {
1412
+ id: "tab-header",
1413
+ metaType: "label",
1414
+ value: "iOS",
1415
+ primitive: true,
1416
+ dynamicTab: false,
1417
+ type: "div",
1418
+ width: 5,
1419
+ offset: 0,
1420
+ onlyDisplay: true,
1421
+ colStyle: {
1422
+ flex: 1,
1423
+ },
1424
+
1425
+ },
1426
+ ],
1427
+ },
1428
+ ],
1429
+ actionFields: [],
1430
+ },
1431
+ ],
1432
+ sections: [
1433
+ {
1434
+ type: "parent",
1435
+ width: 16,
1436
+ rowStyle: {
1437
+ height: "100%",
1438
+ },
1439
+ childSections: [
1440
+ {
1441
+ colStyle: {
1442
+ paddingTop: "16px",
1443
+ paddingLeft: "16px",
1444
+ borderRight: "1px solid #d9d9d9",
1445
+ height: "70vh",
1446
+ overflowY: "auto",
1447
+ },
1448
+ width: 16,
1449
+ type: "parent",
1450
+ childSections: [
1451
+ {
1452
+ type: "multicols",
1453
+ inputFields: [
1454
+ {
1455
+ rowClassName: "mobile-push-row",
1456
+ cols: [
1457
+ {
1458
+ id: "copy-android-content",
1459
+ metaType: "label",
1460
+ value: "Copy Title and Content From Android",
1461
+ primitive: true,
1462
+ dynamicTab: false,
1463
+ type: "div",
1464
+ style: {
1465
+ backgroundColor: "white",
1466
+ textAlign: "left",
1467
+ color: "#2E89DF",
1468
+
1469
+ cursor: "pointer",
1470
+ },
1471
+ offset: 0,
1472
+ submitAction: "onClick",
1473
+ supportedEvents: [
1474
+ "onClick",
1475
+ ],
1476
+ onlyDisplay: true,
1477
+ colStyle: {
1478
+ flex: 1,
1479
+ },
1480
+ },
1481
+ ],
1482
+ },
1483
+ {
1484
+ rowClassName: "mobile-push-row",
1485
+ cols: [
1486
+ {
1487
+ id: "message-title2",
1488
+ label: "Title",
1489
+ type: "input",
1490
+ metaType: "text",
1491
+ datatype: "string",
1492
+ required: true,
1493
+ width: 22,
1494
+ placeholder: "Please input message title name.",
1495
+ fluid: true,
1496
+ styling: "semantic",
1497
+ order: 1,
1498
+ customComponent: false,
1499
+ supportedEvents: [],
1500
+ errorMessage: "Message title has unsupported/missing tags!",
1501
+ },
1502
+ {
1503
+ offset: 20,
1504
+ id: "title-tagList",
1505
+ label: "Add Labels",
1506
+ target: "message-title2",
1507
+ type: "tag-list",
1508
+ metaType: "List",
1509
+ datatype: "select",
1510
+ required: true,
1511
+ fluid: true,
1512
+ onlyDisplay: true,
1513
+ styling: "semantic",
1514
+ order: 1,
1515
+ customComponent: true,
1516
+ supportedEvents: [
1517
+ "onTagSelect",
1518
+ ],
1519
+ },
1520
+ ],
1521
+ },
1522
+ {
1523
+ rowClassName: "mobile-push-row",
1524
+ cols: [
1525
+
1526
+ {
1527
+ id: "message-editor2",
1528
+ label: "Message",
1529
+ offset: 0,
1530
+ type: "textarea",
1531
+ width: 22,
1532
+ metaType: "text",
1533
+ datatype: "string",
1534
+ required: true,
1535
+ placeholder: "Please input mobile push template content.",
1536
+ errorMessage: "Template message has unsupported/missing tags!",
1537
+ fluid: true,
1538
+ styling: "semantic",
1539
+ autosize: true,
1540
+
1541
+ autosizeParams: {
1542
+ minRows: 3,
1543
+ },
1544
+ order: 1,
1545
+ customComponent: true,
1546
+ supportedEvents: [
1547
+ "onChange",
1548
+ ],
1549
+ },
1550
+ {
1551
+ id: "message-tagList",
1552
+ label: "Add labels",
1553
+ offset: 20,
1554
+ target: "message-editor2",
1555
+ type: "tag-list",
1556
+ metaType: "List",
1557
+ style: {
1558
+ marginTop: "55px",
1559
+ },
1560
+ datatype: "select",
1561
+ required: true,
1562
+ fluid: true,
1563
+ onlyDisplay: true,
1564
+ styling: "semantic",
1565
+ order: 2,
1566
+ customComponent: true,
1567
+ supportedEvents: [
1568
+ "onTagSelect",
1569
+ ],
1570
+ },
1571
+ ],
1572
+ },
1573
+ {
1574
+ rowClassName: "mobile-push-row",
1575
+ cols: [
1576
+
1577
+
1578
+ {
1579
+ id: "image",
1580
+ label: "Upload Image",
1581
+ offset: 0,
1582
+ showPreview: true,
1583
+ previewProps: {
1584
+ label: "Cover Image",
1585
+ inductiveText: "Maximum file size acceptable is 5 MB",
1586
+ // placeholder: "Max file size acceptable is 5mb",
1587
+ errorMessage: "Please upload Image",
1588
+
1589
+ },
1590
+ type: "upload",
1591
+ width: 22,
1592
+ metaType: "text",
1593
+ datatype: "string",
1594
+ required: true,
1595
+ fluid: true,
1596
+ styling: "semantic",
1597
+ order: 1,
1598
+ customComponent: true,
1599
+ submitAction: "onUpload",
1600
+ supportedEvents: [
1601
+ "onUpload",
1602
+ ],
1603
+ },
1604
+ ],
1605
+ },
1606
+ {
1607
+ rowClassName: "mobile-push-row",
1608
+ identifier: "add-pri-cta-ios",
1609
+
1610
+ cols: [
1611
+ {
1612
+ id: "add-pri-cta-ios",
1613
+ label: "Add action link to content",
1614
+ inductiveText: "Add a hyperlink of the page which customer will be directed to",
1615
+ customComponent: false,
1616
+ datatype: "boolean",
1617
+ fluid: true,
1618
+ metaType: "text",
1619
+ onlyDisplay: false,
1620
+ order: 1,
1621
+ dynamicTab: false,
1622
+ type: "checkbox",
1623
+ styling: "semantic",
1624
+
1625
+ // style: {
1626
+ // backgroundColor: "white",
1627
+ // textAlign: "left",
1628
+ // color: "#2673D7",
1629
+ // lineHeight: "24px",
1630
+ // fontSize: "14px",
1631
+ // fontWeight: "600",
1632
+ // fontFamily: "open-sans",
1633
+ // fontStyle: "normal",
1634
+ // cursor: "pointer",
1635
+ // },
1636
+ offset: 0,
1637
+ colStyle: {
1638
+ flex: 1,
1639
+ },
1640
+ submitAction: "addPrimaryCta",
1641
+ supportedEvents: [
1642
+ "addPrimaryCta",
1643
+ ],
1644
+ },
1645
+ ],
1646
+ },
1647
+ {
1648
+ identifier: "add-sec-cta-ios",
1649
+
1650
+ cols: [
1651
+ {
1652
+ id: "add-sec-cta-ios",
1653
+ metaType: "label",
1654
+ dynamicTab: false,
1655
+ label: "Add action buttons to notification",
1656
+ styling: "semantic",
1657
+ type: "checkbox",
1658
+ customComponent: false,
1659
+ datatype: "boolean",
1660
+ fluid: true,
1661
+ // metaType: "text",
1662
+ onlyDisplay: false,
1663
+ offset: 0,
1664
+ // onlyDisplay: true,
1665
+ colStyle: {
1666
+ flex: 1,
1667
+ },
1668
+ submitAction: "addSecondaryCtaIos",
1669
+ supportedEvents: [
1670
+ "addSecondaryCtaIos",
1671
+ ],
1672
+ },
1673
+ ],
1674
+ },
1675
+
1676
+ ],
1677
+ actionFields: [],
1678
+ },
1679
+ ],
1680
+ },
1681
+ {
1682
+ width: 6,
1683
+ type: "multicols",
1684
+ offset: 1,
1685
+ colStyle: {
1686
+ paddingTop: "16px",
1687
+ },
1688
+ inputFields: [
1689
+ {
1690
+ cols: [
1691
+ {
1692
+ id: "mobile-push-preview",
1693
+ type: "mobile-push-preview",
1694
+ device: "iphone",
1695
+ customComponent: true,
1696
+ customStyling: {
1697
+ padding: "0",
1698
+ },
1699
+ metaType: "preview",
1700
+ required: true,
1701
+ fluid: true,
1702
+ styling: "semantic",
1703
+ order: 1,
1704
+ width: 5,
1705
+ onlyDisplay: true,
1706
+ offset: 7,
1707
+ channel: "MOBILEPUSH",
1708
+ content: {
1709
+ title: "message-title2",
1710
+ message: "message-editor2",
1711
+ secondaryCta1: "secondary-cta-1-action",
1712
+ secondaryCta2: "secondary-cta-1-action2",
1713
+ appName: "",
1714
+ },
1715
+ },
1716
+ ],
1717
+ },
1718
+ ],
1719
+ },
1720
+ ],
1721
+ },
1722
+ ],
1723
+ },
1724
+ ],
1725
+ type: "tabs",
1726
+ defaultPanes: 1,
1727
+ additionalPanes: 0,
1728
+ },
1729
+ ],
1730
+ channel: "MOBILEPUSH",
1731
+ module: "Campaigns",
1732
+ type: "LAYOUT",
1733
+ },
1734
+ },
1735
+ isActive: true,
1736
+ },
1737
+ ],
1738
+ };
1739
+