From 93da3c76453b11a67f7219ce019aad4816e75ec5 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 14 Jun 2024 16:02:08 -0500 Subject: [PATCH] updated samples Signed-off-by: Matt Bruce --- .../JSON/Samples/TileleListSample.json | 1101 +++++++++++++++-- .../JSON/Samples/TileletSample.json | 65 +- .../JSON/Samples/TitlelockupSample.json | 64 + 3 files changed, 1064 insertions(+), 166 deletions(-) create mode 100644 JSONCreator_iOS/JSONCreator/JSON/Samples/TitlelockupSample.json diff --git a/JSONCreator_iOS/JSONCreator/JSON/Samples/TileleListSample.json b/JSONCreator_iOS/JSONCreator/JSON/Samples/TileleListSample.json index c049532..4e2c01b 100644 --- a/JSONCreator_iOS/JSONCreator/JSON/Samples/TileleListSample.json +++ b/JSONCreator_iOS/JSONCreator/JSON/Samples/TileleListSample.json @@ -1,145 +1,982 @@ { - "ResponseInfo": {}, - "Page": { - "pageType": "contactUs", - "screenHeading": "Select an international plan", - "template": "list", - "molecules": [ - { - "moleculeName": "listItem", - "molecule": { - "directionalIcon": { - "size": "medium" - }, - "moleculeName": "tilelet", - "color": "stone", - "subTitle": { - "textColor": "" - "text": "You are enrolled in Auto Pay & paper-free billing." - }, - "title": { - "text": "You’re getting $50 off on your monthly bill." - }, - "action": { - "actionType": "openPage", - "pageType": "managePmts", - "presentationStyle": "push", - "title": "Auto Pay discount" - } - } + "Page":{ + "ResponseInfo":{ + "type":"Success", + "code":"00000" }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "buttonGroup", - "childWidthPercentage": 50, - "buttons": [ + "pageType":"prospectWelcomeTrial", + "backgroundColor":"white", + "tabBarIndex":0, + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"AProspect" + }, + "line":{ + "moleculeName":"line", + "type":"none" + }, + "header":{ + "moleculeName":"headerH1", + "useVerticalMargins":true, + "topPadding":32, + "bottomPadding":32, + "titleLockup":{ + "moleculeName":"titleLockup", + "title":{ + "moleculeName":"label", + "text":"Join Verizon\nand stay\nconnected.", + "fontStyle":"BoldTitle2XLarge" + } + } + }, + "template":"list", + "molecules":[ + { + "moleculeName":"listItem", + "useHorizontalMargins":false, + "useVerticalMargins":false, + "molecule":{ + "moleculeName":"carousel", + "accessibilityText":"carousel", + "pagingMolecule":{ + "moleculeName":"barsCarouselIndicator", + "position":-20 + }, + "height":285, + "spacing":12, + "itemWidthPercent":85, + "useHorizontalMargins":true, + "leftPadding":16, + "rightPadding":16, + "molecules":[ + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "horizontalAlignment":"fill", + "molecule":{ + "moleculeName":"tileContainer", + "color":"black", + "showDropShadow":true, + "backgroundImage":"https://s7.vzw.com/is/image/VerizonWireless/Free%20trial%20BG", + "padding":"padding6X", + "molecule":{ + "moleculeName":"stack", + "axis":"vertical", + "molecules":[ + { + "moleculeName":"stackItem", + "spacing":0, + "molecule":{ + "moleculeName":"label", + "text":"Verizon\nFree Trial", + "fontStyle":"BoldTitleXLarge", + "textColor":"white" + } + }, + { + "moleculeName":"stackItem", + "spacing":8, + "molecule":{ + "moleculeName":"label", + "text":"Try the network America relies on, free for 30 days.", + "fontStyle":"RegularTitleSmall", + "textColor":"white" + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "verticalAlignment":"center", + "molecule":{ + "moleculeName":"button", + "title":"Try Verizon", + "inverted":true, + "action":{ + "openOauthWebView":true, + "tabBarHidden":true, + "selected":false, + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Try Verizon", + "vzdl.page.sourceChannel":"mva" + }, + "requestURL":"https:\/\/mobile-exp-qa1-west-2.vzw.com\/mobile\/nsa\/nos\/gw\/launchapp\/unauthenticatedWebview", + "extraParameters":{ + "browserUrl":"https:\/\/vzwqa1.verizonwireless.com\/sales\/digital\/trial.html?identifier=iPhone15%2C5&s_ecid=31408684872825763424743718268318966933&intcmp=mva-vzw-prospect_discover-startFreeTrial&fromdeeplink=false", + "flowName":"freeTrialRegistration" + }, + "disableNativeAction":false, + "showNativeNavigation":true, + "customUserAgent":"MY_VZW_APP;IOS;17.0;iPhone15,5;11.6.0;VZW-MFA-IOS", + "openInWebview":true, + "disableOfflineDevice":false, + "hideUrl":true, + "actionType":"openPage", + "pageType":"trialFlow", + "presentationStyle":"push", + "isSelected":false, + "hideWebNavigation":true, + "enableNativeScroll":true + } + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "molecule":{ + "moleculeName":"link", + "title":"Share with a friend", + "inverted":true, + "action":{ + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Share with a friend", + "vzdl.page.sourceChannel":"mva" + }, + "actionType":"share", + "items":[ + { + "type":"text", + "value":"Join the best mobile network. Try the best network free for 30 days." + }, + { + "type":"url", + "value":"https:\/\/m-sit.vzw.com\/feEru7GF" + } + ] + } + } + } + ] + } + } + }, + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "horizontalAlignment":"fill", + "molecule":{ + "moleculeName":"tileContainer", + "color":"white", + "padding":"padding6X", + "showDropShadow": true, + "molecule":{ + "moleculeName":"stack", + "axis":"vertical", + "molecules":[ + { + "moleculeName":"stackItem", + "spacing":0, + "molecule":{ + "moleculeName":"label", + "text":"Bring your\nown device", + "fontStyle":"BoldTitleXLarge", + "textColor":"red" + } + }, + { + "moleculeName": "stackItem", + "useHorizontalMargins": false, + "molecule": { + "moleculeName": "label", + "text": "312-497-7419\n372-345-7419", + "fontStyle": "RegularMicro", + "numberOfLines": 2 + + } + } + ] + } + } + } + ] + } + }, + { + "moleculeName":"listItem", + "useHorizontalMargins":false, + "topPadding":48, + "bottomPadding":0, + "molecule":{ + "moleculeName":"carousel", + "accessibilityText":"carousel", + "pagingMolecule":{ + "moleculeName":"barsCarouselIndicator", + "position":-20 + }, + "height":92, + "spacing":12, + "itemWidthPercent":45, + "useHorizontalMargins":true, + "leftPadding":16, + "rightPadding":16, + "molecules":[ + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "molecule":{ + "moleculeName":"tilelet", + "color":"white", + "padding":"small", + "showDropShadow":true, + "title":{ + "moleculeName":"label", + "text":"Deals", + "fontStyle":"BoldTitleSmall" + }, + "directionalIcon":{ + "size":"small", + "surface":"light" + }, + "action":{ + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Deals", + "vzdl.page.sourceChannel":"mva" + }, + "actionType":"openPage", + "presentationStyle":"push", + "pageType":"deals" + } + } + }, + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "molecule":{ + "moleculeName":"tilelet", + "color":"white", + "padding":"small", + "showDropShadow":true, + "title":{ + "moleculeName":"label", + "text":"Shop phones", + "fontStyle":"BoldTitleSmall" + }, + "directionalIcon":{ + "size":"small", + "surface":"light" + }, + "action":{ + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Shop phones", + "vzdl.page.sourceChannel":"mva" + }, + "actionType":"openPage", + "presentationStyle":"push", + "pageType":"smartphones" + } + } + }, + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "molecule":{ + "moleculeName":"tilelet", + "color":"white", + "padding":"small", + "showDropShadow":true, + "title":{ + "moleculeName":"label", + "text":"Shop plans", + "fontStyle":"BoldTitleSmall" + }, + "directionalIcon":{ + "size":"small", + "surface":"light" + }, + "action":{ + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Shop plans", + "vzdl.page.sourceChannel":"mva" + }, + "actionType":"openPage", + "presentationStyle":"push", + "pageType":"plans" + } + } + } + ] + } + }, + { + "bottomPadding":0, + "molecule":{ + "fontStyle":"BoldTitleMedium", + "textAlignment":"center", + "moleculeName":"label", + "accessibilityTraits":[ + "header" + ], + "text":"The network America relies on." + }, + "topPadding":48, + "moleculeName":"listItem", + "horizontalAlignment":"center" + }, + { + "molecule":{ + "moleculeName":"stack", + "axis":"horizontal", + "molecules":[ + { + "moleculeName":"stackItem", + "horizontalAlignment":"fill", + "molecule":{ + "moleculeName":"icon", + "name":"signal-broadcast", + "size":"large", + "color":"red" + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "molecule":{ + "moleculeName":"label", + "text":"5G Nationwide covers 200+ million people in 2,700+ cities.", + "fontStyle":"RegularBodyMedium" + } + } + ] + }, + "topPadding":24, + "moleculeName":"listItem", + "bottomPadding":0 + }, + { + "molecule":{ + "moleculeName":"stack", + "axis":"horizontal", + "molecules":[ + { + "moleculeName":"stackItem", + "horizontalAlignment":"fill", + "molecule":{ + "moleculeName":"icon", + "name":"award", + "size":"large", + "color":"red" + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "molecule":{ + "moleculeName":"label", + "text":"Highest in Customer Satisfaction with Small Business Wireless Service.", + "fontStyle":"RegularBodyMedium" + } + } + ] + }, + "topPadding":16, + "moleculeName":"listItem", + "bottomPadding":0 + }, + { + "bottomPadding":0, + "molecule":{ + "style":"secondary", + "moleculeName":"button", + "accessibilityTraits":[ + "link" + ], + "title":"Check our mobile coverage map", + "action":{ + "analyticsData":{ + "vzdl.page.id":"prospect_3_0_discover", + "vzdl.page.name":"prospect_discover", + "vzdl.page.displayChannel":"mva", + "vzdl.page.linkName":"Check our mobile coverage map", + "vzdl.page.sourceChannel":"mva" + }, + "actionType":"openPage", + "pageType":"coverage" + } + }, + "topPadding":24, + "moleculeName":"listItem", + "horizontalAlignment":"center" + }, + { + "moleculeName":"listItem", + "hideArrow":true, + "topPadding":48, + "bottomPadding":0, + "horizontalAlignment":"fill", + "molecule":{ + "moleculeName":"tileContainer", + "showDropShadow":true, + "color":"red", + "backgroundImage":"https://ss7.vzw.com/is/image/VerizonWireless/Home%20BG", + "padding":"padding6X", + "molecule":{ + "moleculeName":"stack", + "molecules":[ + { + "moleculeName":"stackItem", + "spacing":0, + "horizontalAlignment":"leading", + "molecule":{ + "fontStyle":"BoldTitleXLarge", + "textColor":"white", + "moleculeName":"label", + "text":"Get home internet and save." + } + }, + { + "moleculeName":"stackItem", + "spacing":8, + "horizontalAlignment":"leading", + "molecule":{ + "fontStyle":"RegularBodyLarge", + "textColor":"white", + "moleculeName":"label", + "text":"Switch to Verizon Home Internet\nstarting at a low price, guaranteed." + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "molecule":{ + "fontStyle":"BoldMicro", + "textColor":"white", + "moleculeName":"label", + "text":"Starting at" + } + }, + { + "moleculeName":"stackItem", + "spacing":0, + "horizontalAlignment":"leading", + "molecule":{ + "moleculeName":"stack", + "axis":"horizontal", + "molecules":[ + { + "spacing":0, + "moleculeName":"stackItem", + "verticalAlignment":"leading", + "horizontalAlignment":"fill", + "molecule":{ + "fontStyle":"BoldTitleLarge", + "textColor":"white", + "moleculeName":"label", + "text":"$" + } + }, + { + "spacing":0, + "moleculeName":"stackItem", + "verticalAlignment":"fill", + "horizontalAlignment":"fill", + "molecule":{ + "fontStyle":"BoldFeatureMedium", + "textColor":"white", + "moleculeName":"label", + "text":"35" + } + }, + { + "spacing":0, + "moleculeName":"stackItem", + "verticalAlignment":"trailing", + "horizontalAlignment":"fill", + "molecule":{ + "fontStyle":"BoldMicro", + "textColor":"white", + "moleculeName":"label", + "text":"\/mo." + } + } + ] + } + }, + { + "moleculeName":"stackItem", + "horizontalAlignment":"leading", + "molecule":{ + "moleculeName":"button", + "action":{ + "analyticsData":{ + "vzdl.page.linkName":"Home internet Get started" + }, + "actionType":"openPage", + "pageType":"home" + }, + "accessibilityText":"Get started with Get Verizon Home Internet and save.", + "title":"Get started", + "size":"small", + "inverted":true + } + } + ] + } + } + } + ] + }, + "ModuleMap":{ + "tabBar":{ + "tabs":[ { - "moleculeName": "button", - "title": "Cancel", - "style": "secondary", - "groupName": "default", - "action": { - "actionType": "openPage", - "pageType": "updateProfile", - "extraParameters": { - "from": "none" - } - }, - "presentationStyle": "push" + "title":"Discover", + "image":"tab_discover", + "tabBarIndex":0, + "action":{ + "actionType":"openPage", + "pageType":"prospectWelcomeTrial", + "presentationStyle":"root" + } }, { - "moleculeName": "button", - "title": "Submit", - "style": "primary", - "groupName": "default", - "action": { - "actionType": "openPage", - "pageType": "updateProfile", - "extraParameters": { - "from": "none" - }, - "presentationStyle": "push" - } + "title":"Account", + "image":"tab_account", + "tabBarIndex":1, + "action":{ + "actionType":"openPage", + "pageType":"trialDashboard", + "presentationStyle":"root" + } + }, + { + "title":"Shop", + "image":"tab_shop_3_0", + "tabBarIndex":2, + "action":{ + "actionType":"openPage", + "pageType":"shop", + "requestURL":"https:\/\/mobile-exp-qa3.vzw.com\/mobile\/nsa\/nos\/gw\/launchapp\/unauthenticatedWebview", + "presentationStyle":"root" + } + }, + { + "title":"Stores", + "image":"nav_stores_black", + "tabBarIndex":3, + "action":{ + "actionType":"openPage", + "pageType":"rtlStoreJourney", + "presentationStyle":"root", + "extraParameters":{ + "fromPage":"rtlStoreJourney", + "makeFavourite":"N" + } + } } - ] - } + ] }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "tileContainer", - "height": 300, - "width": 200, - "color": "black", - "backgroundEffect": { - "type": "gradient", - "firstColor": "#148B8E", - "secondColor": "#FB835B" + "SearchField":{ + "searchField":{ + "moleculeName":"searchTextField", + "placeholder":"What are you looking for?", + "fieldKey":"searchInput" + }, + "searchAction":{ + "actionType":"openPage", + "pageType":"search" + }, + "searchDoneAction":{ + "actionType":"openPage", + "pageType":"searchDone" + } + }, + "HabContent":{ + "habSearch":{ + "label":{ + "moleculeName":"label", + "text":"How can we help?" + }, + "image":{ + "moleculeName":"image", + "image":"hab_search_black", + "width":17, + "height":17 + }, + "image_inverted":{ + "moleculeName":"image", + "image":"hab_search_white", + "width":17, + "height":17 + }, + "action":{ + "actionType":"openURL", + "browserUrl":"https://www.verizon.com/onesearch/search?source=MFNative", + "openInWebview":true, + "showNativeNavigation":true } - } + }, + "habAssistant":{ + "label":{ + "moleculeName":"label", + "text":"Chat with the Verizon Assistant" + }, + "image":{ + "moleculeName":"image", + "image":"hab_assistant_black", + "width":20, + "height":20 + }, + "image_inverted":{ + "moleculeName":"image", + "image":"hab_assistant_white", + "width":20, + "height":20 + }, + "action":{ + "actionType":"openPanel", + "panel":"right" + } + }, + "habLiveChat":{ + "label":{ + "moleculeName":"label", + "text":"Chat with an agent" + }, + "image":{ + "moleculeName":"image", + "image":"hab_live_chat_black", + "imageFormat":"gif", + "width":20, + "height":20 + }, + "image_inverted":{ + "moleculeName":"image", + "image":"hab_live_chat_white", + "imageFormat":"gif", + "width":20, + "height":20 + }, + "action":{ + "actionType":"openPanel", + "panel":"right" + } + }, + "habLiveChatNewMessages":{ + "label":{ + "moleculeName":"label", + "text":"Return to chat with an agent" + }, + "image":{ + "moleculeName":"image", + "image":"hab_live_chat_newmessage_black", + "imageFormat":"gif", + "width":20, + "height":20 + }, + "image_inverted":{ + "moleculeName":"image", + "image":"hab_live_chat_newmessage_white", + "imageFormat":"gif", + "width":20, + "height":20 + }, + "action":{ + "actionType":"openPanel", + "panel":"right" + } + } }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "notification", - "headline": { - "moleculeName": "label", - "text": "Headline" - } - } + "SavedCart":{ + "ButtonMap":{ + "PrimaryButton":{ + "actionType":"openPage", + "pageType":"cart" + } + }, + "itemCount":0, + "IS_SHARED_CART":true }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "badgeIndicator", - "inverted": false, - "number": 23, - "fillColor": "green", - "borderColorLight": "#148b8e", - "borderColorDark": "#fb835b", - "kind": "numbered", - "maximumDigits": "two", - "size": "small", - "leadingCharacter": "+", - "trailingText": "/year" - - } + "webParams":{ + "mvaServerDomainUrl":"https://mobile-exp-qa3.vzw.com", + "lob":"vzp", + "isTabBarFlowAllowed":"true" }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "buttonIcon", - "iconName": "right-caret-bold", - "showBadgeIndicator": true, - "action": { - "actionType": "noop" - }, - "badgeIndicator": { - "moleculeName": "badgeIndicator", - "number": 23, - "kind": "numbered", - "maximumDigits": "two", - "size": "small" - } - } - }, - { - "moleculeName": "listItem", - "molecule": { - "moleculeName": "imageButton", - "image": { - "moleculeName": "image", - "image": "externalLink", - "height": 20, - "width": 20 - }, - "action": { - "actionType": "noop" - } - } + "navigationPatterns":{ + "cache":true, + "cachePolicy":{ + "persist":true, + "expiry":"1714571431134" + }, + "A":{ + "moleculeName":"navigationBar", + "additionalLeftButtons":[ + { + "accessibilityText":"Verizon logo, tap anytime to scroll to top of page", + "moleculeName":"navigationImageButton", + "image":"nav_vz_mark", + "imageRenderingMode":"alwaysOriginal", + "action":{ + "analyticsData":{ + "vzdl.page.linkName":"global black bar nav: vz icon" + }, + "actionType":"scrollToTop" + } + } + ], + "additionalRightButtons":[ + { + "accessibilityText":"Stores", + "moleculeName":"navigationImageButton", + "image":"nav_stores_black", + "action":{ + "actionType":"openPage", + "analyticsData":{ + "vzdl.page.linkName":"global black bar nav:store" + }, + "pageType":"rtlStoreJourney", + "extraParameters":{ + "locale":"EN" + }, + "requestURL":"https:\/\/vzwqa1.verizonwireless.com\/digital\/nsa\/nos\/gw\/retail\/rtlStoreJourney", + "title":"Stores" + } + } + ] + }, + "AProspect":{ + "moleculeName":"navigationBar", + "additionalLeftButtons":[ + { + "accessibilityText":"Verizon logo, tap anytime to scroll to top of page", + "moleculeName":"navigationImageButton", + "image":"nav_vz_mark", + "imageRenderingMode":"alwaysOriginal", + "action":{ + "analyticsData":{ + "vzdl.page.linkName":"global black bar nav: vz icon" + }, + "actionType":"scrollToTop" + } + } + ], + "additionalRightButtons":[ + { + "moleculeName":"navigationLabelButton", + "title":"Sign in", + "action":{ + "appContext":"mobileFirstSS", + "analyticsData":{ + "vzdl.target.engagement.intent":"customer sign in", + "vzdl.page.displayChannel":"MVA", + "vzdl.page.linkName":"I'm a customer" + }, + "requestURL":"https:\/\/mobile-exp.vzw.com\/mobile\/nsa\/nos\/gw\/launchapp\/oauthSignIn?", + "extraParameters":{ + "oAuthLaunchAppFlow":"Y" + }, + "actionType":"openPage", + "pageType":"userSignIn", + "presentationStyle":"root" + } + } + ] + }, + "B":{ + "moleculeName":"navigationBar" + }, + "D":{ + "moleculeName":"navigationBar", + "backButton":{ + "accessibilityText":"Close", + "moleculeName":"navigationImageButton", + "image":"nav_close", + "action":{ + "analyticsData":{ + "vzwi.mvmapp.LinkName":"close" + }, + "title":"Close", + "actionType":"back", + "pageType":"back" + } + } + }, + "E":{ + "moleculeName":"navigationBar" + } } - ], - "middle": {} - } + }, + "PageMap":{ + "shop":{ + "pageType":"shop", + "template":"webView", + "browserUrl":"https:\/\/vzwqa3.verizonwireless.com\/sales\/next\/shop.html?isShopFlow=true&entrypoint=tabbar&isProspect=true", + "cache":true, + "tabBarIndex":1, + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"AProspect" + } + }, + "cart":{ + "pageType":"cart", + "template":"webView", + "browserUrl":"https://www.verizon.com/sales/next/expresscheckout.html?pageName=cart&fromMVA=true&preConfigCart=true&isShopFlow=true&entrypoint=carticon", + "tabBarHidden":true, + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "deals":{ + "pageType":"deals", + "template":"webView", + "browserUrl":"https://www.verizon.com/deals", + "tabBarHidden":true, + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "smartphones":{ + "pageType":"smartphones", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/smartphones", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "plans":{ + "pageType":"plans", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/plans", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "coverage":{ + "pageType":"coverage", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/coverage-map", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "home":{ + "pageType":"home", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/home", + "backgroundColor":"black", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "homeavailability":{ + "pageType":"homeavailability", + "template":"webView", + "tabBarHidden":true, + "backgroundColor":"black", + "browserUrl":"https://www.verizon.com/home#checkAvailability", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "legal":{ + "pageType":"legal", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/about/terms-conditions/overview", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "feedback":{ + "pageType":"feedback", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/about/terms-conditions/overview", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "preowned":{ + "pageType":"preowned", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/certified-pre-owned", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "tablets":{ + "pageType":"tablets", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/tablets", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "watches":{ + "pageType":"watches", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/connected-devices", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "hotspots":{ + "pageType":"hotspots", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/internet-devices", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "accessories":{ + "pageType":"accessories", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/products", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + }, + "tradein":{ + "pageType":"tradein", + "template":"webView", + "tabBarHidden":true, + "browserUrl":"https://www.verizon.com/trade-in", + "navigationBar":{ + "moleculeName":"navigationBar", + "pattern":"B" + } + } + } } diff --git a/JSONCreator_iOS/JSONCreator/JSON/Samples/TileletSample.json b/JSONCreator_iOS/JSONCreator/JSON/Samples/TileletSample.json index e9b5dda..ae6b10c 100644 --- a/JSONCreator_iOS/JSONCreator/JSON/Samples/TileletSample.json +++ b/JSONCreator_iOS/JSONCreator/JSON/Samples/TileletSample.json @@ -22,40 +22,37 @@ { "moleculeName": "stackItem", "molecule": - { - "directionalIcon": { - "size": "medium" - }, - "moleculeName": "tilelet", - "subTitle": { - "text": "You are enrolled in Auto Pay & paper-free billing." - }, - "title": { - "text": "You’re getting $50 off on your monthly bill." - }, - "action": { - "actionType": "openPage", - "analyticsData": { - "vzdl.page.displayChannel": "mva", - "vzwi.mvmapp.pageTypeLink": "settingsLanding|Auto Pay discount", - "vzdl.page.id": "settingslanding", - "vzdl.page.linkName": "Auto Pay discount", - "vzdl.page.sourceChannel": "mva", - "vzdl.page.name": "settings landing" - }, - "pageType": "managePmts", - "presentationStyle": "push", - "requestURL": "https://mobile-exp-qa2.vzw.com/mobile/nsa/nos/gw/launchapp/l2/webview", - "extraParameters": { - "pageTitle": "Auto Pay discount", - "screenHeading": "Auto Pay discount", - "browserUrl": "https://vzwqa2.verizonwireless.com/digital/nsa/secure/ui/payment/settings#/enrollAandP", - "locale": "EN", - "flowName": "accountsettings" - }, - "title": "Auto Pay discount" - } - } + + { + "moleculeName": "tilelet", + "color": "white", + "showDropShadow": true, + "title": { + "moleculeName": "label", + "text": "Activate your perks.", + "fontStyle": "BoldTitleSmall", + "textColor": "#F50A23" + }, + "subTitle": { + "text": "You have ${activePerks} out of ${totalPerks} perks active.", + "textColor": "#000000" + }, + "action": { + "actionType": "openPage", + "analyticsData": { + "vzdl.page.id": "onboardingHub" + }, + "pageType": "tasks", + "presentationStyle": "push", + "requestURL": "${mva_edgecast_domain}/mobile/nsa/nos/gw/launchapp/l2/webview", + "extraParameters": { + "browserUrl": "https://${domain}/digital/nsa/secure/ui/products/producthub/home" + } + }, + "directionalIcon": { + "size": "medium" + } + } } ] }, diff --git a/JSONCreator_iOS/JSONCreator/JSON/Samples/TitlelockupSample.json b/JSONCreator_iOS/JSONCreator/JSON/Samples/TitlelockupSample.json new file mode 100644 index 0000000..3b3f734 --- /dev/null +++ b/JSONCreator_iOS/JSONCreator/JSON/Samples/TitlelockupSample.json @@ -0,0 +1,64 @@ +{ + "Page": { + "template": "stack", + "pageType": "moleculeStack", + "screenHeading": "Tilet Sample", + "hideFabOverlay": true, + "suppressPostLaunchRequests": false, + "tabBarHidden": true, + "header": { + "moleculeName": "header", + "molecule": { + "moleculeName": "headlineBody", + "headline": { + "moleculeName": "label", + "text": "Tilet Variations" + } + } + }, + "stack": { + "moleculeName": "stack", + "molecules": [ + { + "moleculeName": "stackItem", + "molecule": + { + "moleculeName":"carousel", + "accessibilityText":"carousel", + "pagingMolecule":{ + "moleculeName":"barsCarouselIndicator", + "position":-20 + }, + "height":180, + "spacing":12, + "itemWidthPercent":45, + "useHorizontalMargins":true, + "leftPadding":16, + "rightPadding":16, + "molecules":[ + { + "moleculeName":"carouselItem", + "useVerticalMargins":false, + "useHorizontalMargins":false, + "molecule": + { + "moleculeName": "titleLockup", + "title": { + "moleculeName": "label", + "text": "Activate your perks.", + "fontStyle": "BoldTitleSmall" + }, + "subTitle": { + "moleculeName": "label", + "text": "You have ${activePerks} out of ${totalPerks} perks active." + } + } + } + ] + } + } + ] + }, + "footer": {} + } +}