@bikdotai/bik-widgets 1.0.0 → 1.0.1
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/dist-package/chunks/node_modules_lottie-web_build_player_lottie_light_js.927c24cd7bf65e593181.js +1 -0
- package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_desktop_module_css.1efff8cddc83e0d3401c.js +1 -0
- package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_mobile_module_css.dc9f2aa849ff133f141e.js +1 -0
- package/dist-package/chunks/src_components_UserDetailsV2_userDetailsV2_module_css.2a5fcc435fb3f37d0034.js +1 -0
- package/dist-package/chunks/src_components_checkbox_checkbox_module_css.be362d6b95515915d752.js +1 -0
- package/dist-package/chunks/src_components_countryCodePicker_countriesDropdown_module_css.a1c8409dacb9abf0dfce.js +1 -0
- package/dist-package/chunks/src_components_couponDetails_couponPreviewDesktop_module_css.ba5ab63e0394cc8a886f.js +1 -0
- package/dist-package/chunks/src_components_couponDetails_couponPreviewMobile_module_css.12642fbc4c56a68af36a.js +1 -0
- package/dist-package/chunks/src_components_couponDetails_coupon_module_css.828bdce7a75e349ebbb1.js +1 -0
- package/dist-package/chunks/src_components_inputComponents_Dropdown_module_css.7a0ce85538bef9add9d6.js +1 -0
- package/dist-package/chunks/src_components_selectedCountry_selectedCountryPreviewDesktop_module_css.7f3139377b37f12d921f.js +1 -0
- package/dist-package/chunks/src_components_selectedCountry_selectedCountryPreviewMobile_module_css.fed0a331046797ed5973.js +1 -0
- package/dist-package/chunks/src_components_selectedCountry_selectedCountry_module_css.630e2d9d9273a276f88c.js +1 -0
- package/dist-package/chunks/src_widgets_BottomDrawer_config_ts.c222c906d3920af1e1cb.js +1 -0
- package/dist-package/chunks/src_widgets_BottomDrawer_index_tsx.e9213fe49b5889e994e2.js +1 -0
- package/dist-package/chunks/src_widgets_CaptivateBanner_config_ts.9aaaf84faf2c9d249a49.js +1 -0
- package/dist-package/chunks/src_widgets_CaptivateBanner_index_tsx.af1c8798259dec2cb3fb.js +1 -0
- package/dist-package/chunks/src_widgets_CaptivateBanner_previewDesktop_module_css.934a120419e64fdcea21.js +1 -0
- package/dist-package/chunks/src_widgets_CaptivateBanner_previewMobile_module_css.ea372353d7adf8c386ed.js +1 -0
- package/dist-package/chunks/src_widgets_CaptivateBanner_style_module_css.ed1acad346401f481abc.js +1 -0
- package/dist-package/chunks/src_widgets_CentrallyAlignedPopup_config_ts.ddfca241b6f1a15049e3.js +1 -0
- package/dist-package/chunks/src_widgets_CentrallyAlignedPopup_index_tsx.d7599511d8519b775ec2.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_config_ts.ec522622f042ce691399.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_index_tsx.d56025f4ea5792718067.js +2 -0
- package/dist-package/chunks/src_widgets_DirectReward_previewStyles_thankYouPreviewDesktop_module_css.5a86965d82116b2d7b91.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_previewStyles_thankYouPreviewMobile_module_css.c93d0e8be4e1f183bcfa.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_previewStyles_userDetailsPreviewDesktop_module_css.d1d862bb3b3a826e6368.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_previewStyles_userDetailsPreviewMobile_module_css.b6bed87791445adb8886.js +1 -0
- package/dist-package/chunks/src_widgets_DirectReward_style_module_css.8d53a303557c3ca8323a.js +1 -0
- package/dist-package/chunks/src_widgets_ExitIntentHook_tsx.36222875fcd0408c040e.js +1 -0
- package/dist-package/chunks/src_widgets_STW_config_ts.a12b07b7f62eb0ea6dc0.js +1 -0
- package/dist-package/chunks/src_widgets_STW_index_tsx.e6bce54b3f841b9f2113.js +2 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_thankyouPreviewDesktop_module_css.eda5e42e4f6cd9d87904.js +1 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_thankyouPreviewMobile_module_css.2da674c296feaef1b037.js +1 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_userInputsPreviewDesktop_module_css.ea588b3bebcbf4eccf95.js +1 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_userInputsPreviewMobile_module_css.dc4596a5b41427fae2e2.js +1 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_wheelPreviewDesktop_module_css.8b9735c97d5240afc20a.js +1 -0
- package/dist-package/chunks/src_widgets_STW_previewStyles_wheelPreviewMobile_module_css.66ddd61f1aedef0ecaa0.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw1_tsx.e62b308fba62beb29793.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2Components_wheelDesign_tsx.925c7d3dd11bc361199d.js +2 -0
- package/dist-package/chunks/src_widgets_STW_stw2Pages_couponDetails_tsx.aa4f9803222126c1d645.js +2 -0
- package/dist-package/chunks/src_widgets_STW_stw2Pages_style_module_css.3a683c60c6678865aee1.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2Pages_userDetails_tsx.da1c0b70a43507bcacd0.js +2 -0
- package/dist-package/chunks/src_widgets_STW_stw2Pages_wheel_tsx.a25f6eedaf43920b3f13.js +2 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_thankyouPreviewDesktop_module_css.4d86be690aa2ac02d42d.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_thankyouPreviewMobile_module_css.514e8bc036d20099217f.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_userInputsPreviewDesktop_module_css.7dcb9e7b063e981a2730.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_userInputsPreviewMobile_module_css.c2e5280360cd4298e0df.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_wheelPreviewDesktop_module_css.7aaac3771035b1929dca.js +1 -0
- package/dist-package/chunks/src_widgets_STW_stw2PreviewStyles_wheelPreviewMobile_module_css.e8042369ff79890e7ff4.js +1 -0
- package/dist-package/chunks/src_widgets_STW_style_module_css.dd14839c719d8ae26778.js +1 -0
- package/dist-package/chunks/src_widgets_ScratchCard_config_ts.a49cbd81b255752007b2.js +1 -0
- package/dist-package/chunks/src_widgets_ScratchCard_globalStyle_module_css.1844fdb9f244f7eea6a3.js +1 -0
- package/dist-package/chunks/src_widgets_ScratchCard_index_tsx.8e6339dbbe8791e2bbea.js +2 -0
- package/dist-package/chunks/src_widgets_ScratchCard_previewStyles_userDetailsPreviewDesktop_module_css.bf4e3d52d37c4a2c8653.js +1 -0
- package/dist-package/chunks/src_widgets_ScratchCard_previewStyles_userDetailsPreviewMobile_module_css.68bd5853e5a6f0136f54.js +1 -0
- package/dist-package/chunks/src_widgets_ShopifyForm_config_ts.ae68d20563321b24c42f.js +1 -0
- package/dist-package/chunks/src_widgets_ShopifyForm_index_tsx.7f33a3f0fffbd88444c0.js +1 -0
- package/dist-package/chunks/src_widgets_ShopifyForm_previewDesktop_module_css.f5bb8a66eec449599342.js +1 -0
- package/dist-package/chunks/src_widgets_ShopifyForm_previewMobile_module_css.84fab56fb812decfa88b.js +1 -0
- package/dist-package/chunks/src_widgets_ShopifyForm_style_module_css.93e042eb60d4e7a9969e.js +1 -0
- package/dist-package/chunks/src_widgets_SingleButtonRedirection_config_ts.b34f37a93d9f21ca12d2.js +1 -0
- package/dist-package/chunks/src_widgets_WebStories_config_ts.347332569990592c9215.js +1 -0
- package/dist-package/chunks/src_widgets_WebStories_index_css.82d92057971ad51334f8.js +1 -0
- package/dist-package/chunks/src_widgets_WebStories_index_tsx.03f74c2c52432896cce9.js +1 -0
- package/dist-package/chunks/src_widgets_WebStories_style_module_css.acd37b9a11117cfb851a.js +1 -0
- package/dist-package/chunks/src_widgets_index_tsx.d0409ffd2e3c285e9dd3.js +1 -0
- package/dist-package/index.css +31 -0
- package/dist-package/index.js +2 -0
- package/dist-package/src_components_UserDetailsV2_userDetailsV2_desktop_module_css.index.css +1 -0
- package/dist-package/src_components_UserDetailsV2_userDetailsV2_mobile_module_css.index.css +1 -0
- package/dist-package/src_components_UserDetailsV2_userDetailsV2_module_css.index.css +1 -0
- package/dist-package/src_components_checkbox_checkbox_module_css.index.css +1 -0
- package/dist-package/src_components_countryCodePicker_countriesDropdown_module_css.index.css +1 -0
- package/dist-package/src_components_couponDetails_couponPreviewDesktop_module_css.index.css +1 -0
- package/dist-package/src_components_couponDetails_couponPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_components_couponDetails_coupon_module_css.index.css +1 -0
- package/dist-package/src_components_inputComponents_Dropdown_module_css.index.css +1 -0
- package/dist-package/src_components_selectedCountry_selectedCountryPreviewDesktop_module_css.index.css +1 -0
- package/dist-package/src_components_selectedCountry_selectedCountryPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_components_selectedCountry_selectedCountry_module_css.index.css +1 -0
- package/dist-package/src_widgets_CaptivateBanner_previewDesktop_module_css.index.css +1 -0
- package/dist-package/src_widgets_CaptivateBanner_previewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_CaptivateBanner_style_module_css.index.css +1 -0
- package/dist-package/src_widgets_DirectReward_index_tsx.index.css +1 -0
- package/dist-package/src_widgets_DirectReward_previewStyles_thankYouPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_DirectReward_previewStyles_thankYouPreviewMobile_module_css.index.css +3 -0
- package/dist-package/src_widgets_DirectReward_previewStyles_userDetailsPreviewDesktop_module_css.index.css +1 -0
- package/dist-package/src_widgets_DirectReward_previewStyles_userDetailsPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_DirectReward_style_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_index_tsx.index.css +2 -0
- package/dist-package/src_widgets_STW_previewStyles_thankyouPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_previewStyles_thankyouPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_previewStyles_userInputsPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_previewStyles_userInputsPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_previewStyles_wheelPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_previewStyles_wheelPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_stw2Pages_style_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_thankyouPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_thankyouPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_userInputsPreviewDesktop_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_userInputsPreviewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_wheelPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_stw2PreviewStyles_wheelPreviewMobile_module_css.index.css +3 -0
- package/dist-package/src_widgets_STW_style_module_css.index.css +1 -0
- package/dist-package/src_widgets_ScratchCard_globalStyle_module_css.index.css +2 -0
- package/dist-package/src_widgets_ScratchCard_previewStyles_userDetailsPreviewDesktop_module_css.index.css +3 -0
- package/dist-package/src_widgets_ScratchCard_previewStyles_userDetailsPreviewMobile_module_css.index.css +3 -0
- package/dist-package/src_widgets_ShopifyForm_previewDesktop_module_css.index.css +1 -0
- package/dist-package/src_widgets_ShopifyForm_previewMobile_module_css.index.css +1 -0
- package/dist-package/src_widgets_ShopifyForm_style_module_css.index.css +1 -0
- package/dist-package/src_widgets_WebStories_index_css.index.css +1 -0
- package/dist-package/src_widgets_WebStories_index_tsx.index.css +3 -0
- package/dist-package/src_widgets_WebStories_style_module_css.index.css +1 -0
- package/package.json +17 -4
- package/.eslintrc +0 -22
- package/.eslintrc.js +0 -19
- package/.github/workflows/main.yml +0 -293
- package/.prettierignore +0 -13
- package/.prettierrc +0 -10
- package/cypress/apiHelper/endpoints.ts +0 -21
- package/cypress/apiHelper/executor.ts +0 -42
- package/cypress/e2e/bottomDrawer.cy.ts +0 -49
- package/cypress/e2e/directReward.cy.ts +0 -67
- package/cypress/e2e/scratchTheCard.cy.ts +0 -68
- package/cypress/e2e/stw.cy.ts +0 -82
- package/cypress/e2e/waRedirection.cy.ts +0 -46
- package/cypress/fixtures/payloads.ts +0 -330
- package/cypress/support/commands.ts +0 -37
- package/cypress/support/e2e.ts +0 -20
- package/cypress.staging.config.ts +0 -23
- package/jsconfig.json +0 -6
- package/localtest.sh +0 -10
- package/log-server.js +0 -86
- package/postcss.config.js +0 -8
- package/src/Globals.d.ts +0 -2
- package/src/assets/lottie/santa.json +0 -11722
- package/src/assets/svg/CalendarClockIcon.tsx +0 -30
- package/src/assets/svg/CalendarIcon.tsx +0 -24
- package/src/assets/svg/CheckIcon.tsx +0 -17
- package/src/assets/svg/ChevronIcon.tsx +0 -21
- package/src/assets/svg/Close.tsx +0 -39
- package/src/assets/svg/Confetti.tsx +0 -140
- package/src/assets/svg/Copy.tsx +0 -26
- package/src/assets/svg/DropdownCheckIcon.tsx +0 -35
- package/src/assets/svg/ErrorIcon.tsx +0 -27
- package/src/assets/svg/RadioIcon.tsx +0 -25
- package/src/assets/svg/UncheckedCheckboxIcon.tsx +0 -28
- package/src/assets/svg/UncheckedRadioIcon.tsx +0 -26
- package/src/assets/svg/info.tsx +0 -30
- package/src/assets/svg/qrcode.svg +0 -14
- package/src/bootstrap.tsx +0 -8
- package/src/components/CtaCard/index.tsx +0 -37
- package/src/components/CtaCard/preview.module.css +0 -32
- package/src/components/CtaCard/style.module.css +0 -32
- package/src/components/EmailInput/emailInputBox.tsx +0 -95
- package/src/components/Fab/index.tsx +0 -224
- package/src/components/Fab/preview.module.css +0 -28
- package/src/components/Fab/style.module.css +0 -37
- package/src/components/Icons/Call.tsx +0 -26
- package/src/components/Icons/Cross.tsx +0 -24
- package/src/components/Icons/Gmail.tsx +0 -61
- package/src/components/Icons/Instagram.tsx +0 -60
- package/src/components/Icons/LiveChat.tsx +0 -43
- package/src/components/Icons/Messenger.tsx +0 -57
- package/src/components/Icons/Send.tsx +0 -22
- package/src/components/Icons/Whatsapp.tsx +0 -24
- package/src/components/Shimmer/index.tsx +0 -12
- package/src/components/Shimmer/style.module.css +0 -37
- package/src/components/SmsInput/smsInputBox.tsx +0 -135
- package/src/components/UserDetailsV2/userDetailsV2.desktop.module.css +0 -52
- package/src/components/UserDetailsV2/userDetailsV2.mobile.module.css +0 -52
- package/src/components/UserDetailsV2/userDetailsV2.module.css +0 -81
- package/src/components/UserDetailsV2/userDetailsV2.tsx +0 -527
- package/src/components/WhatsappInput/Spinner.tsx +0 -26
- package/src/components/WhatsappInput/whatsappInput.module.css +0 -106
- package/src/components/WhatsappInput/whatsappInputBox.tsx +0 -155
- package/src/components/WhatsappInput/whatsappInputPreviewDesktop.module.css +0 -71
- package/src/components/WhatsappInput/whatsappInputPreviewMobile.module.css +0 -65
- package/src/components/checkbox/checkbox.module.css +0 -19
- package/src/components/checkbox/checkbox.tsx +0 -88
- package/src/components/countryCodePicker/countriesDropdown.module.css +0 -77
- package/src/components/countryCodePicker/countriesDropdown.tsx +0 -81
- package/src/components/couponDetails/coupon.module.css +0 -208
- package/src/components/couponDetails/coupon.tsx +0 -210
- package/src/components/couponDetails/couponPreviewDesktop.module.css +0 -158
- package/src/components/couponDetails/couponPreviewMobile.module.css +0 -164
- package/src/components/index.ts +0 -3
- package/src/components/inputComponents/Checkbox.module.css +0 -197
- package/src/components/inputComponents/Checkbox.tsx +0 -85
- package/src/components/inputComponents/DatePicker.module.css +0 -565
- package/src/components/inputComponents/DatePicker.tsx +0 -278
- package/src/components/inputComponents/Dropdown.module.css +0 -796
- package/src/components/inputComponents/Dropdown.tsx +0 -630
- package/src/components/inputComponents/InputBox.module.css +0 -401
- package/src/components/inputComponents/InputBox.tsx +0 -209
- package/src/components/selectedCountry/selectedCountry.module.css +0 -76
- package/src/components/selectedCountry/selectedCountry.tsx +0 -76
- package/src/components/selectedCountry/selectedCountryPreviewDesktop.module.css +0 -56
- package/src/components/selectedCountry/selectedCountryPreviewMobile.module.css +0 -57
- package/src/components/userDetailsForm/RenderCustomFields.tsx +0 -333
- package/src/components/userDetailsForm/userDetailsForm.tsx +0 -675
- package/src/hooks/index.ts +0 -4
- package/src/hooks/useExitIntent.ts +0 -452
- package/src/hooks/useIsMobile.tsx +0 -21
- package/src/hooks/useMessageEvent.ts +0 -8
- package/src/hooks/useTriggeredIntentDetails.ts +0 -43
- package/src/hooks/useUrlListerner.ts +0 -30
- package/src/hooks/useWebSocketLogger.ts +0 -59
- package/src/hooks/useWindowEvent.ts +0 -8
- package/src/icons/copyIcon.tsx +0 -26
- package/src/icons/crossIconDesktop.tsx +0 -20
- package/src/icons/crossIconMobile.tsx +0 -20
- package/src/index.html +0 -30
- package/src/index.ts +0 -32
- package/src/index.tsx +0 -1
- package/src/repo/widgetRepo.ts +0 -21
- package/src/types/customFields.ts +0 -73
- package/src/utilities/cookie.ts +0 -70
- package/src/utilities/customFieldTypeMapping.ts +0 -67
- package/src/utilities/customFieldValidation.ts +0 -201
- package/src/utilities/encryption.ts +0 -21
- package/src/utilities/exitIntentUtils.ts +0 -31
- package/src/utilities/global.css +0 -11
- package/src/utilities/languageUtilities.ts +0 -235
- package/src/utilities/localRunner.js +0 -26
- package/src/utilities/localRunner.ts +0 -27
- package/src/utilities/localStorage.ts +0 -40
- package/src/utilities/script.tsx +0 -15
- package/src/utilities/stringUtils.ts +0 -5
- package/src/utilities/styleUtils.ts +0 -134
- package/src/utilities/variables.ts +0 -11
- package/src/utilities/widgetUtils.js +0 -342
- package/src/utilities/widgetUtils.ts +0 -313
- package/src/widgets/BottomDrawer/config.ts +0 -41
- package/src/widgets/BottomDrawer/index.tsx +0 -116
- package/src/widgets/BottomDrawer/modal.tsx +0 -286
- package/src/widgets/BottomDrawer/preview.module.css +0 -122
- package/src/widgets/BottomDrawer/previewMobile.module.css +0 -124
- package/src/widgets/BottomDrawer/style.module.css +0 -279
- package/src/widgets/CaptivateBanner/captivateBanner.tsx +0 -200
- package/src/widgets/CaptivateBanner/config.ts +0 -72
- package/src/widgets/CaptivateBanner/index.tsx +0 -204
- package/src/widgets/CaptivateBanner/previewDesktop.module.css +0 -51
- package/src/widgets/CaptivateBanner/previewMobile.module.css +0 -51
- package/src/widgets/CaptivateBanner/style.module.css +0 -77
- package/src/widgets/CaptivateBanner/utils.ts +0 -104
- package/src/widgets/CentrallyAlignedPopup/config.ts +0 -42
- package/src/widgets/CentrallyAlignedPopup/index.tsx +0 -109
- package/src/widgets/CentrallyAlignedPopup/modal.tsx +0 -269
- package/src/widgets/CentrallyAlignedPopup/preview.module.css +0 -153
- package/src/widgets/CentrallyAlignedPopup/previewMobile.module.css +0 -153
- package/src/widgets/CentrallyAlignedPopup/style.module.css +0 -283
- package/src/widgets/DirectReward/components/couponDetails.tsx +0 -265
- package/src/widgets/DirectReward/components/userDetails.tsx +0 -117
- package/src/widgets/DirectReward/config.ts +0 -186
- package/src/widgets/DirectReward/directReward.tsx +0 -350
- package/src/widgets/DirectReward/index.tsx +0 -579
- package/src/widgets/DirectReward/previewStyles/thankYouPreviewDesktop.module.css +0 -276
- package/src/widgets/DirectReward/previewStyles/thankYouPreviewMobile.module.css +0 -303
- package/src/widgets/DirectReward/previewStyles/userDetailsPreviewDesktop.module.css +0 -511
- package/src/widgets/DirectReward/previewStyles/userDetailsPreviewMobile.module.css +0 -462
- package/src/widgets/DirectReward/style.module.css +0 -836
- package/src/widgets/ExitIntentHook.tsx +0 -28
- package/src/widgets/STW/api.ts +0 -70
- package/src/widgets/STW/components/svgFactory.tsx +0 -44
- package/src/widgets/STW/config.ts +0 -193
- package/src/widgets/STW/context.ts +0 -7
- package/src/widgets/STW/couponDetails.tsx +0 -121
- package/src/widgets/STW/index.tsx +0 -733
- package/src/widgets/STW/previewStyles/thankyouPreviewDesktop.module.css +0 -215
- package/src/widgets/STW/previewStyles/thankyouPreviewMobile.module.css +0 -205
- package/src/widgets/STW/previewStyles/userInputsPreviewDesktop.module.css +0 -732
- package/src/widgets/STW/previewStyles/userInputsPreviewMobile.module.css +0 -661
- package/src/widgets/STW/previewStyles/wheelPreviewDesktop.module.css +0 -498
- package/src/widgets/STW/previewStyles/wheelPreviewMobile.module.css +0 -497
- package/src/widgets/STW/stw1.tsx +0 -119
- package/src/widgets/STW/stw2Components/wheelDesign.tsx +0 -183
- package/src/widgets/STW/stw2Pages/couponDetails.tsx +0 -72
- package/src/widgets/STW/stw2Pages/stw2.tsx +0 -212
- package/src/widgets/STW/stw2Pages/style.module.css +0 -1226
- package/src/widgets/STW/stw2Pages/userDetails.tsx +0 -86
- package/src/widgets/STW/stw2Pages/wheel.tsx +0 -117
- package/src/widgets/STW/stw2PreviewStyles/thankyouPreviewDesktop.module.css +0 -835
- package/src/widgets/STW/stw2PreviewStyles/thankyouPreviewMobile.module.css +0 -787
- package/src/widgets/STW/stw2PreviewStyles/userInputsPreviewDesktop.module.css +0 -867
- package/src/widgets/STW/stw2PreviewStyles/userInputsPreviewMobile.module.css +0 -798
- package/src/widgets/STW/stw2PreviewStyles/wheelPreviewDesktop.module.css +0 -572
- package/src/widgets/STW/stw2PreviewStyles/wheelPreviewMobile.module.css +0 -559
- package/src/widgets/STW/style.module.css +0 -901
- package/src/widgets/STW/userDetails.tsx +0 -150
- package/src/widgets/STW/utility.ts +0 -664
- package/src/widgets/STW/wheel.tsx +0 -304
- package/src/widgets/ScratchCard/ScratchOff/scratchOff.tsx +0 -157
- package/src/widgets/ScratchCard/config.ts +0 -152
- package/src/widgets/ScratchCard/globalStyle.module.css +0 -931
- package/src/widgets/ScratchCard/index.tsx +0 -546
- package/src/widgets/ScratchCard/modal.tsx +0 -225
- package/src/widgets/ScratchCard/preview.module.css +0 -250
- package/src/widgets/ScratchCard/previewMobile.module.css +0 -247
- package/src/widgets/ScratchCard/previewStyles/userDetailsPreviewDesktop.module.css +0 -537
- package/src/widgets/ScratchCard/previewStyles/userDetailsPreviewMobile.module.css +0 -463
- package/src/widgets/ScratchCard/style.module.css +0 -220
- package/src/widgets/ShopifyForm/config.ts +0 -168
- package/src/widgets/ShopifyForm/index.tsx +0 -214
- package/src/widgets/ShopifyForm/previewDesktop.module.css +0 -117
- package/src/widgets/ShopifyForm/previewMobile.module.css +0 -131
- package/src/widgets/ShopifyForm/shopifyForm.tsx +0 -445
- package/src/widgets/ShopifyForm/style.module.css +0 -161
- package/src/widgets/SingleButtonRedirection/config.ts +0 -47
- package/src/widgets/SingleButtonRedirection/index.tsx +0 -121
- package/src/widgets/WebStories/config.ts +0 -105
- package/src/widgets/WebStories/index.css +0 -3
- package/src/widgets/WebStories/index.tsx +0 -282
- package/src/widgets/WebStories/style.module.css +0 -26
- package/src/widgets/index.tsx +0 -3
- package/src/widgets/utility.ts +0 -31
- package/tsconfig.json +0 -12
- package/webpack.config.js +0 -239
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap);
|
|
2
|
+
body.PyuO99xn{overflow:hidden}.IgPuoF_J{animation:mu5hR1kG 1.3s linear infinite;border-left:2px solid hsla(0,0%,100%,.3);border-top:2px solid hsla(0,0%,100%,.3);border-color:#fff hsla(0,0%,100%,.3) hsla(0,0%,100%,.3) #fff;border-radius:50%;border-style:solid;border-width:2px;display:block!important;height:20px;width:20px}.ul_ZHaR9{display:flex;font-family:inherit;justify-content:center;text-align:center}.ul_ZHaR9 *{font-family:inherit}.B1ikAMtj{background-color:rgba(0,0,0,.5);display:block!important;height:100%;left:0;position:fixed;top:0;width:100%;z-index:9999999999999}.lJfYwm16{align-items:center;display:flex;justify-content:flex-end;width:100%}.EojyUXxv{align-items:center;background-color:#fff;border-radius:50%;cursor:pointer;display:flex;height:32px;justify-content:center;margin-bottom:10px;width:32px}#gF66knCB:focus-visible{box-shadow:unset}.EojyUXxv svg{height:24px;width:24px}.iDGql7Pr{left:50%;max-width:700px;min-height:calc(54% + 60px);position:absolute;top:50%;transform:translate(-50%,-50%);width:50%;z-index:9999}._8CPZtVxq{align-items:center;background-color:#fff;border-radius:8px;box-shadow:0 4em 5em rgba(27,8,53,.2);display:flex;flex-direction:column;height:calc(100% - 60px);justify-content:space-evenly;min-height:400px;padding:20px 0;width:100%}._8CPZtVxq>svg{margin-bottom:8px}.K7214ZWY{display:flex;flex-direction:column;width:100%}#s59_Rp0b{color:#212121;font-size:20px;font-style:normal;font-weight:400;line-height:24px;margin:0}#s59_Rp0b,#ddwh4aCB{font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;text-align:center}#ddwh4aCB{color:#616161;font-size:12px;margin:8px 0 24px}#s59_Rp0b p,#ddwh4aCB p{font-family:inherit;margin-bottom:0}._VNQIsLo{background-color:#fff;box-shadow:0 0 11px 2px #00000082;height:2px;position:absolute;top:calc(100% - 2px);transform:rotate(-60deg);width:400%}.mnyDPg8e{align-items:center;color:#9e9e9e;cursor:pointer;display:flex;font-family:Inter;font-size:12px;font-weight:400;justify-content:flex-end;line-height:16px;margin-left:auto;margin-top:20px;padding-right:20px;text-align:center}.mnyDPg8e a{color:#9e9e9e;margin-right:8px;text-decoration:none}.mnyDPg8e svg{stroke:none!important;fill:none!important;height:unset!important;width:unset!important}.zjX45RdK{height:400px;position:absolute;top:-18%;width:400px}.fjRnzmhL{padding-top:316px}.ch6EIerG{padding-top:33px}#foXCDKJU{font-family:inherit;margin:0 auto;width:364px}.uIouts6z{display:flex;flex-direction:column;width:100%}.uIouts6z,.uIouts6z span{font-family:inherit}.uIouts6z input{background:#fff;border:1px solid #e0e0e0;border-radius:4px!important;box-shadow:none;font-family:inherit;height:48px;outline:none;padding:12px 24px;width:100%}input.OkmFQMpp::-webkit-inner-spin-button,input.OkmFQMpp::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#c7CRqwmY{color:#b92321!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:16px!important;margin:8px 0 0!important}#biVVWHgr{align-items:center;background:#731dcf;border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-family:inherit;font-size:16px;font-weight:600;height:48px;justify-content:center;line-height:20px;margin-bottom:8px;margin-top:20px;outline:none;padding:14px 0;position:relative;width:100%}.CQSg8h3r{font-size:14px;line-height:20px}.dAcSJho9{font-size:16px!important;line-height:24px}.P6wUoemE{font-size:28px;line-height:40px}.UjJiOTXJ{font-weight:400}.Ghm0tZf6{font-weight:600}#yuKUeWlk{border:21px solid #fff;border-radius:50%;box-shadow:0 5.75051px 51.7546px rgba(0,0,0,.24);height:100%;padding:0;top:0;width:100%}.JVTfMyj1{top:58%}.Od6Jy_P_{top:-55px}@keyframes a4IpRV2V{to{transform:rotate(1turn)}}@keyframes mu5hR1kG{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}#Wfx7ns4w{background:#fbbb18;border:10px solid #fff!important;border:0;border-radius:50%;color:#664006;cursor:pointer;font-family:Poppins;font-size:24px;font-style:normal;font-weight:700;height:23%;left:50%;line-height:35px;position:absolute;text-align:center;text-transform:uppercase;top:50%;transform:translate(-50%,-50%);width:23%}.YAmr0_uC{display:none!important}.JppFUa5Q{display:flex!important}#lP2y9NH7{align-items:center;animation:YpGG5hgr .7s ease-in forwards;background:#fce49b;border-radius:50%;box-shadow:0 13px 27px -5px rgba(50,50,93,.25),0 8px 16px -8px rgba(0,0,0,.3);cursor:pointer;display:flex;height:70px;justify-content:center;opacity:1;position:fixed;width:70px;z-index:9999}#lP2y9NH7 svg{fill:#fff}.kl3UcsKX{color:#b92321;display:block;font-size:12px;font-style:normal;font-weight:400;line-height:16px;margin-top:8px}#FX4v5VJ2{display:block;flex-direction:column}.bs08aBRA{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px;margin:8px 0}.bs08aBRA h2{color:#616161;font-family:inherit;margin:0}.bs08aBRA a{font-family:inherit}.Tf2K3KGn{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px}#FX4v5VJ2>h1{font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:28px;font-weight:600;line-height:40px}#FX4v5VJ2>h1,#FX4v5VJ2>h2{color:#212121;font-family:inherit;font-style:normal;text-align:center}#FX4v5VJ2>h2{font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;line-height:16px;margin-bottom:24px;margin-top:8px}#FX4v5VJ2>h2,.uUuNy83L{font-size:14px;font-weight:400}.uUuNy83L{color:#212121;font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-style:normal;line-height:20px;margin-bottom:8px}.EimPjtxb{background-color:#fff;border:1px solid #e0e0e0;border-radius:4px;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);display:inline-block;font-family:inherit;height:110px;overflow:scroll;position:absolute;z-index:1}.EimPjtxb a{color:#000;display:block;padding:12px 16px;text-decoration:none}.No_xma64,.EimPjtxb a{border-bottom:1px solid #e0e0e0;font-family:inherit}.No_xma64{align-items:center;display:flex;flex-direction:row;gap:8px;padding:12px 8px}.No_xma64:hover{background-color:#e0e0e0;cursor:pointer}.WJj5ps_0{display:flex;flex-direction:row;font-family:inherit;margin-top:24px;width:100%}.WJj5ps_0>div{font-family:inherit}.CewKq4CI{align-items:center;border:1px solid #e0e0e0;border-radius:8px;display:flex;flex-direction:row;font-family:inherit;gap:8px;height:48px;margin-top:8px;padding:12px 8px}.CewKq4CI h2{margin:0}.MlnmhLyq{border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #616161;display:block!important;float:left;font-size:0;height:0;line-height:0;width:0}.qYkLw_YA{height:24px;width:24px}.qp2Fv7IF{flex:2;font-family:inherit;margin-left:16px}#paXTO0lB,#pAtjJMVo{display:flex;margin:12px 0}#rsRLjOFR{display:block;margin:12px 0}#gSgEMuK2,#wsnmGbcr,#h2eGAVQL{display:flex;margin:12px 0}#w0Ze6eR4,#NV4pVa37{display:flex}.oSVDKh6l{display:block;font-family:inherit;margin:12px 0}.yHt2iTqK{display:flex;margin:12px 0}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes YpGG5hgr{0%{opacity:0}to{opacity:1}}.Pp6r_Rq1{border-radius:50%;box-shadow:0 5.75051px 51.7546px rgba(0,0,0,.24);height:400px;overflow:hidden;pointer-events:none;width:400px}.iQMUNjTE,.Pp6r_Rq1{align-items:center;display:flex;justify-content:center;position:relative}.iQMUNjTE,.r_YlaYvX{height:100%;width:100%}.r_YlaYvX{border:20px solid #fff;border-radius:50%;box-shadow:inset 5px 5px 25px 0 #00000010,inset -5px -5px 25px 0 #00000010;display:block!important;position:relative;z-index:13}.UQgLziGx{align-items:flex-start;bottom:50%;clip-path:polygon(100% 0,0 0,50% 100%);display:flex;font-family:inherit;height:180px;justify-content:center;padding-top:34px;pointer-events:none;position:absolute;transform-origin:bottom center;width:300px}.QSNF2YjN{font-family:inherit;text-align:center;width:50%}.geL64R3H{align-items:center;display:flex;justify-content:center;position:absolute}.FBTIx9HB{background:#fff;bottom:45px;clip-path:polygon(50% 0,0 100%,100% 100%);display:block!important;height:46px;position:absolute;width:31px}.UzJ8DYny{align-items:center;background-color:#f8bb19;border:10px solid #fff;border-radius:50%;box-shadow:0 0 25px 1px #00000052;cursor:pointer;display:flex;height:115px;justify-content:center;position:absolute;width:115px;z-index:1}.oWnRvkRG{color:#fff;font-family:Poppins;font-feature-settings:"tnum" on,"lnum" on;font-size:25px;font-style:normal;font-weight:700;line-height:35px;text-align:center}.UQgLziGx.DpIhMNnn{background-color:#a1deed}.UQgLziGx.wLUIayy7{background-color:#d97559;transform:rotate(60deg)}.UQgLziGx.EdKjoSv7{background-color:#fad56e;transform:rotate(120deg)}.UQgLziGx.QjVzarOs{background-color:#a1deed;transform:rotate(180deg)}.UQgLziGx.ruvFph2E{background-color:#d97559;transform:rotate(240deg)}.UQgLziGx.OgtggJ3r{background-color:#fad56e;transform:rotate(300deg)}.A7VxpCNj{align-items:center;display:flex;justify-content:center;position:absolute;top:-50px}.QSNF2YjN{font-size:14px;font-weight:900}.ZW095MbK:after{animation:Jmadwr1u 1s ease infinite;border:4px solid transparent;border-radius:50%;border-top-color:#fff;bottom:0;content:"";height:28px;left:0;margin:auto;position:absolute;right:0;top:0;width:28px}@keyframes Jmadwr1u{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}@media only screen and (max-width:768px){.iDGql7Pr{bottom:0;display:flex;flex-direction:column;left:unset;min-height:unset;top:unset;transform:unset;width:100%}#FX4v5VJ2{padding:0 18px}#FX4v5VJ2>h1{font-size:24px}.uUuNy83L{font-size:12px}.fjRnzmhL{padding:187px 10px 10px}.gQG8TZhd{padding-top:41px}._8CPZtVxq{border-radius:8px 8px 0 0;position:unset}.Pp6r_Rq1{height:320px;width:320px}.UQgLziGx{height:148px;padding-bottom:0;padding-top:30px}.UzJ8DYny{border:7px solid #fff;height:76px;width:76px}.oWnRvkRG{font-size:14px;font-weight:bolder;line-height:15px}.r_YlaYvX{border:12px solid #fff}.FBTIx9HB{bottom:35px;height:26px;width:19px}#s59_Rp0b{font-size:16px;font-weight:400;line-height:24px}#ddwh4aCB{font-size:14px;font-weight:600;line-height:24px;margin-bottom:16px}#s59_Rp0b p,#ddwh4aCB p{font-family:inherit}#FX4v5VJ2 p:nth-child(2){color:#212121;font-family:inherit;font-size:20px;font-weight:600;line-height:24px}#FX4v5VJ2 p:first-child{font-family:inherit;font-size:16px;font-weight:400;line-height:24px}#biVVWHgr{margin-top:16px}.lJfYwm16{justify-content:center}.HG55Z0H_{position:absolute;top:-70%}.A7VxpCNj{top:-160px}#foXCDKJU{font-family:inherit;width:90%}.WuxZnRwD{top:-15%!important}.UFH_Y0xg{padding:20px}.mnyDPg8e{justify-content:center;margin-left:0;margin-top:10px}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap);
|
|
2
|
+
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600;700;800;900&display=swap);
|
|
3
|
+
.INYTQN1O{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:383px}.Ti1hy9lp{display:flex;font-family:inherit;justify-content:center;text-align:center}.Ti1hy9lp *{font-family:inherit}.XpwH2Xok{display:none}.hoiAbGzg{background-color:#fff;border-radius:4px;display:flex;overflow:hidden;width:100%}.k7wuonJT{overflow:hidden;padding-bottom:56%;position:relative;width:40%}.Ax4674o2{height:100%;position:absolute;width:100%}.YN0nW8AE{background-color:#f2f9ff;width:60%}#IqbyT38e{align-items:center;cursor:pointer;display:flex;justify-content:flex-end;padding:16px 16px 0 0}#IqbyT38e svg{height:16px;width:16px}.ckfCplb8{margin:12px auto}.uNvAPHJB{display:block}.uNvAPHJB h1{font-feature-settings:"tnum" on,"lnum" on;font-size:13px;font-weight:600;line-height:10px;margin:0}.uNvAPHJB h1,.uNvAPHJB h4{color:#212121;font-family:Poppins;font-style:normal;text-align:center}.uNvAPHJB h4{font-feature-settings:"tnum" on,"lnum" on;font-size:11px;font-weight:400;line-height:14px;margin:4px 0 0}.uNvAPHJB h4 span{font-family:Poppins;font-size:9px;font-style:normal;font-weight:600;line-height:20px}.ZHKjNwSl{margin-top:8px}.ZHKjNwSl h4{color:#616161;font-family:Poppins;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:8px;font-style:normal;font-weight:400;margin:0;text-align:center}.TOv9s7qY{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:4px;display:flex;flex-direction:row;gap:16px;height:25px;margin-bottom:8px;margin-top:8px;overflow:hidden;padding:8px 8px 8px 16px}.TOv9s7qY input{border:none;box-shadow:none;font-size:9px;font-weight:400;line-height:16px;outline:none;pointer-events:none}.TOv9s7qY span{color:#212121;font-family:Inter;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:9px;font-style:normal;font-weight:400;line-height:16px}.ZHKjNwSl button{align-items:center;background:#731dcf;border:none;border-radius:4px;color:#fff;cursor:pointer;display:flex;font-family:Inter;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:10px;font-style:normal;font-weight:600;height:22px;justify-content:center;line-height:20px;margin-top:8px;outline:none;padding:14px 0;width:100%}.ZHKjNwSl button p{margin:0}.x_dR5vsl ._Pmsp5Ga button svg{margin-left:8px}.J7J1iOAI{align-items:center;color:#1877f2;display:flex;font-family:Inter;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:6px;font-style:normal;font-weight:400;justify-content:center;line-height:12px;margin:8px 0 0;text-align:center}.J7J1iOAI a{margin-right:4px}.J7J1iOAI svg{height:20px;width:20px}.ckfCplb8 a{color:#9e9e9e;text-decoration:none}.SLdtOlpI,.SLdtOlpI>div{font-family:inherit}#JOPrgnWe{display:block;margin:0 9px;padding-bottom:11px}#JOPrgnWe>h1{color:#212121;font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:16px;font-style:normal;font-weight:600;line-height:12px;text-align:center}#JOPrgnWe>h2{margin-top:8px;text-align:center}#JOPrgnWe>h2,.Bn_MA9Uq{color:#212121;font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:10px;font-style:normal;font-weight:400}.Bn_MA9Uq{line-height:12px;margin-bottom:0}#IFynQF6s,#_YUGE3vy,#WGjJaYZ9,#onNClmEA,#zwBdZT8q,#jZbcDiN4{margin:12px 0}.T8EMJOh2{display:block;font-family:inherit;margin:12px 0}.AqLa2LKi{display:flex;margin:12px 0}.jOvgPhnx{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px;margin-bottom:12px;pointer-events:none}.jOvgPhnx h2{color:#616161;margin-bottom:0;margin-top:0}.r6TBKu56{flex:2;font-family:inherit;margin-left:16px}.SLdtOlpI{display:flex;flex-direction:row;width:100%}.FxdsI_7R,.LB9_OH3I{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px}.LB9_OH3I{border:1px solid #e0e0e0;border-radius:8px;height:25px;margin-top:4px;padding:12px 8px;pointer-events:none}.LB9_OH3I h2{margin-bottom:0}.TxCwFu5Q{border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #616161;display:block!important;float:left;font-size:0;height:0;line-height:0;width:0}.LeEYCjXI{height:14px;position:unset;width:14px}.msXywlu1{display:flex;flex-direction:row;gap:8px;margin-top:2px;width:100%}.ELc67XIk{height:12px;width:10px}.dP8kD7Ga{align-items:center;border-radius:4px;display:flex;flex-direction:row;gap:4px;margin-top:8px;padding:6px 4px}.dP8kD7Ga,.VjY4I1RI{background-color:#fff;border:1px solid #e0e0e0}.VjY4I1RI{border-radius:4px;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);display:none;overflow:auto;position:absolute;z-index:1}.dP8kD7Ga:focus,.dP8kD7Ga:hover{background-color:#e0e0e0;cursor:pointer}.PZwFJgEh{font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:9px;font-style:normal;font-weight:400;line-height:16px;text-align:center}.mSdWk7M4{width:100%}.mSdWk7M4,.QmG0BzJJ{display:flex;flex-direction:row;gap:8px;margin-top:2px}#lRgDpr4B{font-family:inherit}.uP9ViM7B{display:flex;flex-direction:column;font-family:inherit;margin-top:4px;width:100%}.uP9ViM7B input{background:#fff;border:1px solid #e0e0e0;border-radius:4px;box-shadow:none;font-family:inherit;font-size:10px;height:25px;margin-left:0;outline:none;padding:4px 6px;pointer-events:none;width:100%}.uP9ViM7B span{color:#212121;font-family:inherit}#Wpw9oQOY{background:#731dcf;border:none;border-radius:8px;color:#fff;cursor:pointer;font-family:inherit;font-size:12px;font-weight:600;line-height:20px;margin-top:8px;outline:none;padding:4px 0;pointer-events:none;width:100%}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap);
|
|
2
|
+
@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&display=swap);
|
|
3
|
+
.frD9s83s{bottom:0;left:0;position:absolute;transform:unset;width:100%}.DHdK61JP{display:flex;font-family:inherit;justify-content:center;text-align:center}.DHdK61JP *{font-family:inherit}.c3ZIIGsP{background-color:#fff;border-radius:8px;border-radius:8px 8px 0 0;display:flex;flex-direction:column;height:unset;overflow:hidden;width:100%}.oZlxoKK_{overflow:hidden;padding-bottom:56%;position:relative;width:100%}.PoQeJajF{min-height:100%;position:absolute;vertical-align:unset;width:100%}.SyJLcLeF{background-color:#f2f9ff;height:100%;width:100%}#mjdkQRED{align-items:center;cursor:pointer;display:flex;display:none;justify-content:flex-end;padding:16px 16px 0 0}.hl63u6us{margin:0 auto;padding:10px 8px;width:auto}.xJo5QYjk h1{font-feature-settings:"tnum" on,"lnum" on;font-size:14px;font-weight:600;line-height:22px}.xJo5QYjk h1,.xJo5QYjk h4{color:#212121;font-family:Poppins;font-style:normal;margin:0;text-align:center}.xJo5QYjk h4{font-feature-settings:"tnum" on,"lnum" on;font-size:10px;font-weight:400;line-height:20px}.xJo5QYjk h4 span{font-family:Poppins;font-size:11px;font-style:normal;font-weight:600;line-height:20px}.USzBE41Y{margin-top:8px}.USzBE41Y h4{color:#616161;font-family:Poppins;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:8px;font-style:normal;font-weight:400;line-height:20px;margin:0;text-align:center}.XFLZPz4K{align-items:center;background:#fff;border:1px solid #e0e0e0;border-radius:4px;display:flex;flex-direction:row;font-size:12px;gap:16px;height:32px;margin-bottom:8px;margin-top:4px;overflow:hidden;padding:8px 8px 8px 16px}.XFLZPz4K input{border:none;box-shadow:none;outline:none;pointer-events:none}.XFLZPz4K span{color:#212121;font-family:Inter;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:12px;font-style:normal;font-weight:400;line-height:24px}.USzBE41Y button{background:#731dcf;border:none;border-radius:4px;color:#fff;cursor:pointer;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:12px;font-weight:600;height:27px;line-height:20px;margin-top:8px;outline:none;padding:14px 0;width:100%}.USzBE41Y button,.Etp05zJt{align-items:center;display:flex;font-family:Inter;font-style:normal;justify-content:center}.Etp05zJt{font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:10px;font-weight:400;line-height:16px;margin:12px 0 0;text-align:center}.Etp05zJt a{margin-right:4px}.Etp05zJt svg{height:20px;width:20px}.hl63u6us a{color:#9e9e9e;text-decoration:none}.IcfzU7_1{align-items:center;background-color:#fff;border-radius:50%;display:flex;height:18px;justify-content:center;margin:0 auto 16px;width:18px}.IcfzU7_1 svg{height:10px;width:10px}#h65DjQ2u{font-family:inherit;margin-top:16px}.wcPrKURp{display:flex;flex-direction:column;font-family:inherit;margin-top:4px;width:100%}.wcPrKURp input{background:#fff;border:1px solid #e0e0e0;border-radius:4px;box-shadow:none;font-family:inherit;font-size:10px;height:25px;margin-left:0;outline:none;padding:4px 6px;pointer-events:none;width:100%}#sA_QCDtB{color:#b92321;font-weight:400;line-height:16px;margin:8px 0 0}#sA_QCDtB,#vyj8cOl3{font-family:inherit;font-size:12px}#vyj8cOl3{background:#731dcf;border:none;border-radius:8px;color:#fff;cursor:pointer;font-weight:600;line-height:20px;margin-top:8px;outline:none;padding:4px 0;pointer-events:none;width:100%}.EA81gGqm,.EA81gGqm>div{font-family:inherit}#Yzu93s5o{display:block}#Yzu93s5o>h1{color:#212121;font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:16px;font-style:normal;font-weight:600;line-height:12px;text-align:center}#Yzu93s5o>h2{margin-top:8px;text-align:center}#Yzu93s5o>h2,.d1ibwBGD{color:#212121;font-family:inherit;font-feature-settings:"tnum" on,"lnum" on,"case" on,"ss04" on;font-size:10px;font-style:normal;font-weight:400}.d1ibwBGD{line-height:20px;margin-bottom:0}#IvyygvAe,#te__9Hf6,#aOZIrd1Y,#vo6S9WaC,#fgjRIkYB,#rg5gUI7G{margin:12px 0}.TNxJsBfC{display:block;font-family:inherit;margin:12px 0}.WxrcrMWf{display:flex;margin:12px 0}.A2bcwVq6{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px;margin-bottom:12px;pointer-events:none}.A2bcwVq6 h2{color:#616161;line-height:normal!important;margin-bottom:0;margin-top:0}.NZKC5he3{flex:2;margin-left:16px}.EA81gGqm{display:flex;flex-direction:row;margin-top:12px;width:100%}.tIw2OnW5,.hcRwYXsE{align-items:center;display:flex;flex-direction:row;font-family:inherit;gap:8px}.hcRwYXsE{border:1px solid #e0e0e0;border-radius:8px;height:25px;margin-top:4px;padding:12px 8px;pointer-events:none}.hcRwYXsE h2{margin-bottom:0}.i0GgYZTM{border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #616161;display:block!important;float:left;font-size:0;height:0;line-height:0;width:0}.dJq6z56y{height:14px;position:unset;width:14px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Wj2FWubl{height:auto;opacity:1;position:absolute;transition:opacity .3s ease,transform .3s ease;width:120px;z-index:2147483646}.itoZBQj_{align-items:center;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.2);display:flex;flex-direction:column;position:relative}.itoZBQj_ *{font-family:inherit}.BZpSnbYy{aspect-ratio:1.56;border-top-left-radius:4px;border-top-right-radius:4px;height:auto;margin:0;padding:0;width:100%}.wmUAHxwe{align-items:center;display:flex;flex:1;flex-direction:column;gap:3px;padding:0 6px}.uYHbj0YE{font-family:inherit;font-size:8px;font-weight:600;line-height:10px;text-align:center;p{margin:0;padding:0}}.BbXZ65BW{font-family:inherit;font-size:6px;font-weight:400;line-height:8px;text-align:center;p{margin:0;padding:0}}.gtjceZL8{align-items:center;border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:pointer;display:flex;height:15px;justify-content:center;position:absolute;width:15px;z-index:2147483647}.RdOIxNxU{border:none;border-radius:2px;cursor:pointer;font-size:8px;font-weight:600;line-height:10px;padding:2px;text-align:center;width:90%}.volXOTvB{line-height:0;margin:4px;padding:0;text-align:center;a{color:#212121;cursor:pointer;font-family:inherit;font-size:6px;font-weight:400;line-height:8px;text-decoration:underline;text-underline-offset:2px}}.MCmAm0qQ{height:20px;margin:6px 0;width:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.XGjUPKj7{background-color:rgba(0,0,0,.4);display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.oOd3HjHV{height:auto;opacity:1;position:fixed;transition:opacity .3s ease,transform .3s ease;width:80%;z-index:4}.lJFpclgc{align-items:center;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,.2);display:flex;flex-direction:column;gap:3px;position:relative}.lJFpclgc *{font-family:inherit}.R0JipeH9{aspect-ratio:1.56;border-top-left-radius:4px;border-top-right-radius:4px;height:auto;margin:0;padding:0;width:100%}.eNhcH9e8{align-items:center;display:flex;flex:1;flex-direction:column;gap:6px;padding:3px 9px}.i6SVek9u{font-family:inherit;font-size:8px;font-weight:600;line-height:10px;max-width:90%;text-align:center;p{margin:0;padding:0}}.zQZoAcF9{font-family:inherit;font-size:6px;font-weight:400;line-height:8px;max-width:90%;text-align:center;p{margin:0;padding:0}}.rNqZLq4Y{align-items:center;border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:pointer;display:flex;height:15px;justify-content:center;position:absolute;width:15px;z-index:5}.SgcUaLEw{border:none;border-radius:3px;cursor:pointer;font-size:8px;font-weight:600;line-height:10px;margin-top:4px;padding:3px;text-align:center;width:90%}.aPhWvhBq{margin:3px;padding:0;text-align:center;a{color:#212121;cursor:pointer;font-family:inherit;font-size:6px;font-weight:400;line-height:8px;text-decoration:underline;text-underline-offset:2px}}.DI1wGSOL{height:20px;margin:6px 0;width:auto}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.J7StTxYT{background-color:rgba(0,0,0,.4);display:block;height:100%;left:0;position:fixed;top:0;width:100%;z-index:2147483645}.PYygan4a{height:auto;opacity:1;position:fixed;transition:opacity .3s ease,transform .3s ease;width:380px;z-index:2147483646}.P2H2GfRi{align-items:center;border-radius:17px;box-shadow:0 2px 10px rgba(0,0,0,.2);display:flex;flex-direction:column;position:relative}.P2H2GfRi *{font-family:inherit}.AXEoMhXx{aspect-ratio:1.56;border-top-left-radius:17px;border-top-right-radius:17px;height:auto;margin:0;padding:0;width:100%}.CC3Kqdzx{align-items:center;display:flex;flex:1;flex-direction:column;gap:6px;min-height:186px;padding:16px 30px 0}.s4jRtXyx{font-family:inherit;font-size:18px;font-weight:600;line-height:24px;max-width:90%;text-align:center;p{margin:0;padding:0}}.Yn3h9wjW{font-family:inherit;font-size:13px;font-weight:400;line-height:16px;max-width:90%;text-align:center;p{margin:0;padding:0}}.XQnAOjt9{align-items:center;border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.2);cursor:pointer;display:flex;height:30px;justify-content:center;position:absolute;width:30px;z-index:2147483647}.vDAwcO_V{border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;line-height:16px;padding:10px;text-align:center;width:90%}.cUvVjyqQ{margin:4px 12px 12px;padding:0;text-align:center;a{color:#212121;cursor:pointer;font-family:inherit;font-size:10px;font-weight:400;line-height:12px;text-decoration:underline;text-underline-offset:3px}}.diY7JQPs{height:48px;margin:10px 0;width:auto}@media only screen and (max-width:768px){.PYygan4a{width:9%}.P2H2GfRi{gap:6px}.vDAwcO_V{font-size:14px;font-weight:400}.CC3Kqdzx{padding:12px 20px 0}.s4jRtXyx{font-size:16px;line-height:22px}.Yn3h9wjW{font-size:12px;line-height:16px}.diY7JQPs{height:38px;margin:8px 0;width:auto}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.X0wqYD9f{display:block!important}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.VJXw7Jdx{opacity:0;transition:visibility .2s linear,opacity .2s linear;visibility:hidden;z-index:-99999}.VJXw7Jdx,.v2HBnokr{background-color:rgba(0,0,0,.7);bottom:0;left:0;position:absolute;right:0;top:0}.v2HBnokr{opacity:1;visibility:visible;z-index:99999}
|
|
2
|
+
.X0wqYD9f{display:block!important}
|
|
3
|
+
.ehpA6ABP,.nsi9wuD9{height:104px;width:100px}.ehpA6ABP{-webkit-animation-duration:1s;-webkit-animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;-webkit-animation-name:ezaHeSzL;-webkit-animation-timing-function:linear;background:#f6f7f8;background-image:linear-gradient(90deg,#f6f7f8 0,#edeef1 20%,#f6f7f8 40%,#f6f7f8);background-repeat:no-repeat;background-size:800px 104px;display:inline-block;position:relative}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.VJXw7Jdx{opacity:0;transition:visibility .2s linear,opacity .2s linear;visibility:hidden;z-index:-99999}.VJXw7Jdx,.v2HBnokr{background-color:rgba(0,0,0,.7);bottom:0;left:0;position:absolute;right:0;top:0}.v2HBnokr{opacity:1;visibility:visible;z-index:99999}
|
package/package.json
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bikdotai/bik-widgets",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Follow below steps",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "dist-package/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"require": "./dist-package/index.js",
|
|
9
|
+
"default": "./dist-package/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./styles.css": "./dist-package/index.css"
|
|
12
|
+
},
|
|
13
|
+
"style": "dist-package/index.css",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist-package"
|
|
16
|
+
],
|
|
6
17
|
"scripts": {
|
|
7
18
|
"stats": "webpack --profile --json > stats.json",
|
|
8
19
|
"start": "webpack serve --mode=development --env stage=dev",
|
|
9
|
-
"build
|
|
10
|
-
"build
|
|
20
|
+
"build:package": "rm -rf dist-package && webpack --mode production --env stage=package infra=production",
|
|
21
|
+
"build": "npm run build:package",
|
|
22
|
+
"prepublishOnly": "npm run build:package",
|
|
11
23
|
"build-widgets": "rm -rf dist && webpack --mode production --env stage=widgets infra=staging",
|
|
12
24
|
"build-widgets-prod": "rm -rf dist && webpack --mode production --env stage=widgets infra=production",
|
|
13
25
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -47,6 +59,7 @@
|
|
|
47
59
|
"mocha": "^10.2.0",
|
|
48
60
|
"mochawesome": "^7.1.3",
|
|
49
61
|
"mochawesome-merge": "^4.3.0",
|
|
62
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
50
63
|
"nodemon": "^2.0.21",
|
|
51
64
|
"postcss": "^8.5.6",
|
|
52
65
|
"postcss-loader": "^8.2.0",
|
package/.eslintrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"plugin:react/recommended"
|
|
9
|
-
],
|
|
10
|
-
"overrides": [
|
|
11
|
-
],
|
|
12
|
-
"parserOptions": {
|
|
13
|
-
"ecmaVersion": "latest",
|
|
14
|
-
"sourceType": "module"
|
|
15
|
-
},
|
|
16
|
-
"plugins": [
|
|
17
|
-
"react"
|
|
18
|
-
],
|
|
19
|
-
"rules": {
|
|
20
|
-
"react/prop-types": "off"
|
|
21
|
-
}
|
|
22
|
-
}
|
package/.eslintrc.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: [
|
|
7
|
-
'eslint:recommended',
|
|
8
|
-
'plugin:react/recommended',
|
|
9
|
-
'plugin:@typescript-eslint/recommended',
|
|
10
|
-
],
|
|
11
|
-
overrides: [],
|
|
12
|
-
parser: '@typescript-eslint/parser',
|
|
13
|
-
parserOptions: {
|
|
14
|
-
ecmaVersion: 'latest',
|
|
15
|
-
sourceType: 'module',
|
|
16
|
-
},
|
|
17
|
-
plugins: ['react', '@typescript-eslint'],
|
|
18
|
-
rules: {},
|
|
19
|
-
};
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
name: CI/CD
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
types: [labeled]
|
|
5
|
-
env:
|
|
6
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
7
|
-
GCP_SERVICE_ACCOUNT_JSON: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test-widgets:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
if: ${{ github.event.label.name == 'test:stage' }}
|
|
13
|
-
steps:
|
|
14
|
-
- name: Set Run ID Variable
|
|
15
|
-
run: echo "GITHUB_RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
|
|
16
|
-
- name: Display Run ID
|
|
17
|
-
run: echo $GITHUB_RUN_ID
|
|
18
|
-
- name: Checkout code
|
|
19
|
-
uses: actions/checkout@v3
|
|
20
|
-
- name: Set up Node.js
|
|
21
|
-
uses: actions/setup-node@v3
|
|
22
|
-
with:
|
|
23
|
-
node-version: '16'
|
|
24
|
-
- name: Install dependencies
|
|
25
|
-
run: npm install --force
|
|
26
|
-
- name: Test widgets
|
|
27
|
-
run: npm run cypress-staging
|
|
28
|
-
|
|
29
|
-
build-widgets:
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
if: ${{ github.event.label.name == 'build:stage' }}
|
|
32
|
-
steps:
|
|
33
|
-
- name: Set Run ID Variable
|
|
34
|
-
run: echo "GITHUB_RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
|
|
35
|
-
- name: Display Run ID
|
|
36
|
-
run: echo $GITHUB_RUN_ID
|
|
37
|
-
- name: Checkout code
|
|
38
|
-
uses: actions/checkout@v3
|
|
39
|
-
- name: Set up Node.js
|
|
40
|
-
uses: actions/setup-node@v3
|
|
41
|
-
with:
|
|
42
|
-
node-version: '16'
|
|
43
|
-
- name: Install dependencies
|
|
44
|
-
run: npm install --force
|
|
45
|
-
- name: Build widgets
|
|
46
|
-
run: npm run build-widgets
|
|
47
|
-
- name: Upload artifacts
|
|
48
|
-
uses: actions/upload-artifact@v4
|
|
49
|
-
with:
|
|
50
|
-
name: dist
|
|
51
|
-
path: dist/
|
|
52
|
-
|
|
53
|
-
build-mfe:
|
|
54
|
-
runs-on: ubuntu-latest
|
|
55
|
-
if: ${{ github.event.label.name == 'build:stage' }}
|
|
56
|
-
steps:
|
|
57
|
-
- name: Set Run ID Variable
|
|
58
|
-
run: echo "GITHUB_RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
|
|
59
|
-
- name: Display Run ID
|
|
60
|
-
run: echo $GITHUB_RUN_ID
|
|
61
|
-
- name: Checkout code
|
|
62
|
-
uses: actions/checkout@v3
|
|
63
|
-
- name: Set up Node.js
|
|
64
|
-
uses: actions/setup-node@v3
|
|
65
|
-
with:
|
|
66
|
-
node-version: '16'
|
|
67
|
-
- name: Install dependencies
|
|
68
|
-
run: npm install --force
|
|
69
|
-
- name: Build mfe
|
|
70
|
-
run: npm run build-mfe
|
|
71
|
-
- name: Upload artifacts
|
|
72
|
-
uses: actions/upload-artifact@v4
|
|
73
|
-
with:
|
|
74
|
-
name: dist-mfe
|
|
75
|
-
path: dist-mfe/
|
|
76
|
-
|
|
77
|
-
build-widgets-prod:
|
|
78
|
-
runs-on: ubuntu-latest
|
|
79
|
-
if: ${{ github.event.label.name == 'build:prod'}}
|
|
80
|
-
steps:
|
|
81
|
-
- name: Set Run ID Variable
|
|
82
|
-
run: echo "GITHUB_RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
|
|
83
|
-
- name: Display Run ID
|
|
84
|
-
run: echo $GITHUB_RUN_ID
|
|
85
|
-
- name: Checkout code
|
|
86
|
-
uses: actions/checkout@v3
|
|
87
|
-
- name: Set up Node.js
|
|
88
|
-
uses: actions/setup-node@v3
|
|
89
|
-
with:
|
|
90
|
-
node-version: '16'
|
|
91
|
-
- name: Install dependencies
|
|
92
|
-
run: npm install --force
|
|
93
|
-
- name: Build widgets prod
|
|
94
|
-
run: npm run build-widgets-prod
|
|
95
|
-
- name: Upload artifacts
|
|
96
|
-
uses: actions/upload-artifact@v4
|
|
97
|
-
with:
|
|
98
|
-
name: dist
|
|
99
|
-
path: dist/
|
|
100
|
-
|
|
101
|
-
build-mfe-prod:
|
|
102
|
-
runs-on: ubuntu-latest
|
|
103
|
-
if: ${{ github.event.label.name == 'build:prod'}}
|
|
104
|
-
steps:
|
|
105
|
-
- name: Set Run ID Variable
|
|
106
|
-
run: echo "GITHUB_RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
|
|
107
|
-
- name: Display Run ID
|
|
108
|
-
run: echo $GITHUB_RUN_ID
|
|
109
|
-
- name: Checkout code
|
|
110
|
-
uses: actions/checkout@v3
|
|
111
|
-
- name: Set up Node.js
|
|
112
|
-
uses: actions/setup-node@v3
|
|
113
|
-
with:
|
|
114
|
-
node-version: '16'
|
|
115
|
-
- name: Install dependencies
|
|
116
|
-
run: npm install --force
|
|
117
|
-
- name: Build mfe prod
|
|
118
|
-
run: npm run build-mfe-prod
|
|
119
|
-
- name: Upload artifacts
|
|
120
|
-
uses: actions/upload-artifact@v4
|
|
121
|
-
with:
|
|
122
|
-
name: dist-mfe
|
|
123
|
-
path: dist-mfe/
|
|
124
|
-
|
|
125
|
-
upload-widgets:
|
|
126
|
-
needs: build-widgets
|
|
127
|
-
runs-on: ubuntu-latest
|
|
128
|
-
if: ${{ github.event.label.name == 'build:stage' }}
|
|
129
|
-
steps:
|
|
130
|
-
- name: Checkout repository
|
|
131
|
-
uses: actions/checkout@v3
|
|
132
|
-
- name: Authenticate with Google Cloud
|
|
133
|
-
uses: google-github-actions/auth@v2
|
|
134
|
-
with:
|
|
135
|
-
project_id: staging-bikayi
|
|
136
|
-
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}
|
|
137
|
-
- name: Set up Google Cloud SDK
|
|
138
|
-
uses: google-github-actions/setup-gcloud@v2
|
|
139
|
-
- name: Download artifacts
|
|
140
|
-
uses: actions/download-artifact@v4
|
|
141
|
-
with:
|
|
142
|
-
name: dist
|
|
143
|
-
path: dist/
|
|
144
|
-
- name: Clear existing old chunks folder
|
|
145
|
-
run: |
|
|
146
|
-
gsutil -m rm -r gs://bik-widget-mfe/bap/old-chunks/*
|
|
147
|
-
- name: Copy current chucks folder to old chunks folder
|
|
148
|
-
run: |
|
|
149
|
-
gsutil -m cp gs://bik-widget-mfe/bap/chunks/* gs://bik-widget-mfe/bap/old-chunks
|
|
150
|
-
- name: Clear existing chunks folder
|
|
151
|
-
run: |
|
|
152
|
-
gsutil -m rm -r gs://bik-widget-mfe/bap/chunks/*
|
|
153
|
-
- name: Upload artifacts to Google Cloud Storage
|
|
154
|
-
run: |
|
|
155
|
-
gsutil -m cp dist/chunks/* gs://bik-widget-mfe/bap/chunks
|
|
156
|
-
gsutil -m cp dist/chunks/*.map gs://bik-widget-mfe/bap/source-map
|
|
157
|
-
gsutil cp dist/vendor.js gs://bik-widget-mfe/bap/widget-vendor/vendor.js
|
|
158
|
-
gsutil cp dist/vendor.js.map gs://bik-widget-mfe/bap/source-map/vendor.js.map
|
|
159
|
-
gsutil cp dist/stw.js gs://bik-widget-mfe/bap/widget-stw/stw.js
|
|
160
|
-
gsutil cp dist/captivateBanner.js gs://bik-widget-mfe/bap/widget-captivate-banner/captivateBanner.js
|
|
161
|
-
gsutil cp dist/shopifyForm.js gs://bik-widget-mfe/bap/widget-shopify-form/shopifyForm.js
|
|
162
|
-
gsutil cp dist/stw.js.map gs://bik-widget-mfe/bap/source-map/stw.js.map
|
|
163
|
-
gsutil cp dist/bottomDrawer.js gs://bik-widget-mfe/bap/widget-bottom-drawer/bottomDrawer.js
|
|
164
|
-
gsutil cp dist/bottomDrawer.js.map gs://bik-widget-mfe/bap/source-map/bottomDrawer.js.map
|
|
165
|
-
gsutil cp dist/scratchCard.js gs://bik-widget-mfe/bap/widget-scratch-card/scratchCard.js
|
|
166
|
-
gsutil cp dist/directReward.js gs://bik-widget-mfe/bap/widget-direct-reward/directReward.js
|
|
167
|
-
gsutil cp dist/directReward.js.map gs://bik-widget-mfe/bap/source-map/directReward.js.map
|
|
168
|
-
gsutil cp dist/singleButtonRedirection.js gs://bik-widget-mfe/bap/widget-single-button-redirection/singleButtonRedirection.js
|
|
169
|
-
gsutil cp dist/singleButtonRedirection.js.map gs://bik-widget-mfe/bap/source-map/singleButtonRedirection.js.map
|
|
170
|
-
gsutil cp dist/centrallyAligned.js gs://bik-widget-mfe/bap/widget-centrally-aligned/centrallyAligned.js
|
|
171
|
-
gsutil cp dist/centrallyAligned.js.map gs://bik-widget-mfe/bap/source-map/centrallyAligned.js.map
|
|
172
|
-
- name: Clean up
|
|
173
|
-
run: |
|
|
174
|
-
echo "Uploaded artifacts to buckets successfully"
|
|
175
|
-
rm -rf dist/
|
|
176
|
-
rm -rf /tmp/$GITHUB_RUN_ID.json
|
|
177
|
-
|
|
178
|
-
upload-mfe:
|
|
179
|
-
needs: build-mfe
|
|
180
|
-
runs-on: ubuntu-latest
|
|
181
|
-
if: ${{ github.event.label.name == 'build:stage' }}
|
|
182
|
-
steps:
|
|
183
|
-
- name: Checkout repository
|
|
184
|
-
uses: actions/checkout@v3
|
|
185
|
-
- name: Authenticate with Google Cloud
|
|
186
|
-
uses: google-github-actions/auth@v2
|
|
187
|
-
with:
|
|
188
|
-
project_id: staging-bikayi
|
|
189
|
-
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}
|
|
190
|
-
- name: Set up Google Cloud SDK
|
|
191
|
-
uses: google-github-actions/setup-gcloud@v2
|
|
192
|
-
- name: Download artifacts
|
|
193
|
-
uses: actions/download-artifact@v4
|
|
194
|
-
with:
|
|
195
|
-
name: dist-mfe
|
|
196
|
-
path: dist-mfe/
|
|
197
|
-
- name: Clear existing old mfe chunks folder
|
|
198
|
-
run: |
|
|
199
|
-
gsutil -m rm -r gs://bik-widget-mfe/bap/mfe/old-chunks/*
|
|
200
|
-
- name: Copy current mfe chucks folder to old mfe chunks folder
|
|
201
|
-
run: |
|
|
202
|
-
gsutil -m cp gs://bik-widget-mfe/bap/mfe/chunks/* gs://bik-widget-mfe/bap/mfe/old-chunks
|
|
203
|
-
- name: Clear existing mfe chunks
|
|
204
|
-
run: |
|
|
205
|
-
gsutil -m rm -r gs://bik-widget-mfe/bap/mfe/chunks/*
|
|
206
|
-
- name: Upload artifacts to Google Cloud Storage
|
|
207
|
-
run: |
|
|
208
|
-
gsutil -m cp -r dist-mfe/* gs://bik-widget-mfe/bap/mfe
|
|
209
|
-
- name: Clean up
|
|
210
|
-
run: |
|
|
211
|
-
echo "Uploaded artifacts to buckets successfully"
|
|
212
|
-
rm -rf dist/
|
|
213
|
-
rm -rf /tmp/$GITHUB_RUN_ID.json
|
|
214
|
-
|
|
215
|
-
upload-widgets-prod:
|
|
216
|
-
needs: build-widgets-prod
|
|
217
|
-
runs-on: ubuntu-latest
|
|
218
|
-
if: ${{ github.event.label.name == 'build:prod'}}
|
|
219
|
-
steps:
|
|
220
|
-
- name: Checkout repository
|
|
221
|
-
uses: actions/checkout@v3
|
|
222
|
-
- name: Authenticate with Google Cloud
|
|
223
|
-
uses: google-github-actions/auth@v2
|
|
224
|
-
with:
|
|
225
|
-
project_id: bikai-d5ee5
|
|
226
|
-
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}
|
|
227
|
-
- name: Set up Google Cloud SDK
|
|
228
|
-
uses: google-github-actions/setup-gcloud@v2
|
|
229
|
-
- name: Download artifacts
|
|
230
|
-
uses: actions/download-artifact@v4
|
|
231
|
-
with:
|
|
232
|
-
name: dist
|
|
233
|
-
path: dist/
|
|
234
|
-
- name: Clear existing old chunks folder (PROD)
|
|
235
|
-
run: gsutil -m rm -r gs://bik-assets/bap/old-chunks/*
|
|
236
|
-
- name: Copy current chucks folder to old chunks folder (PROD)
|
|
237
|
-
run: |
|
|
238
|
-
gsutil -m cp gs://bik-assets/bap/chunks/* gs://bik-assets/bap/old-chunks
|
|
239
|
-
- name: Clear existing chunks folder (PROD)
|
|
240
|
-
run: |
|
|
241
|
-
gsutil -m rm -r gs://bik-assets/bap/chunks/*
|
|
242
|
-
- name: Upload artifacts to Google Cloud Storage (PROD)
|
|
243
|
-
run: |
|
|
244
|
-
gsutil -m cp -r dist/* gs://bik-assets/bap/mfe
|
|
245
|
-
gsutil -m cp dist/chunks/* gs://bik-assets/bap/chunks
|
|
246
|
-
gsutil -m cp dist/chunks/*.map gs://bik-assets/bap/source-map
|
|
247
|
-
gsutil cp dist/vendor.js gs://bik-assets/bap/widget-vendor/vendor.js
|
|
248
|
-
gsutil cp dist/vendor.js.map gs://bik-assets/bap/source-map/vendor.js.map
|
|
249
|
-
gsutil cp dist/stw.js gs://bik-assets/bap/widget-stw/stw.js
|
|
250
|
-
gsutil cp dist/captivateBanner.js gs://bik-assets/bap/widget-captivate-banner/captivateBanner.js
|
|
251
|
-
gsutil cp dist/shopifyForm.js gs://bik-assets/bap/widget-shopify-form/shopifyForm.js
|
|
252
|
-
gsutil cp dist/stw.js.map gs://bik-assets/bap/source-map/stw.js.map
|
|
253
|
-
gsutil cp dist/bottomDrawer.js gs://bik-assets/bap/widget-bottom-drawer/bottomDrawer.js
|
|
254
|
-
gsutil cp dist/bottomDrawer.js.map gs://bik-assets/bap/source-map/bottomDrawer.js.map
|
|
255
|
-
gsutil cp dist/scratchCard.js gs://bik-assets/bap/widget-scratch-card/scratchCard.js
|
|
256
|
-
gsutil cp dist/directReward.js gs://bik-assets/bap/widget-direct-reward/directReward.js
|
|
257
|
-
gsutil cp dist/directReward.js.map gs://bik-assets/bap/source-map/directReward.js.map
|
|
258
|
-
gsutil cp dist/singleButtonRedirection.js gs://bik-assets/bap/widget-single-button-redirection/singleButtonRedirection.js
|
|
259
|
-
gsutil cp dist/singleButtonRedirection.js.map gs://bik-assets/bap/source-map/singleButtonRedirection.js.map
|
|
260
|
-
gsutil cp dist/centrallyAligned.js gs://bik-assets/bap/widget-centrally-aligned/centrallyAligned.js
|
|
261
|
-
gsutil cp dist/centrallyAligned.js.map gs://bik-assets/bap/source-map/centrallyAligned.js.map
|
|
262
|
-
|
|
263
|
-
upload-mfe-prod:
|
|
264
|
-
needs: build-mfe-prod
|
|
265
|
-
runs-on: ubuntu-latest
|
|
266
|
-
if: ${{ github.event.label.name == 'build:prod'}}
|
|
267
|
-
steps:
|
|
268
|
-
- name: Checkout repository
|
|
269
|
-
uses: actions/checkout@v3
|
|
270
|
-
- name: Authenticate with Google Cloud
|
|
271
|
-
uses: google-github-actions/auth@v2
|
|
272
|
-
with:
|
|
273
|
-
project_id: bikai-d5ee5
|
|
274
|
-
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON }}
|
|
275
|
-
- name: Set up Google Cloud SDK
|
|
276
|
-
uses: google-github-actions/setup-gcloud@v2
|
|
277
|
-
- name: Download artifacts
|
|
278
|
-
uses: actions/download-artifact@v4
|
|
279
|
-
with:
|
|
280
|
-
name: dist-mfe
|
|
281
|
-
path: dist-mfe/
|
|
282
|
-
- name: Clear existing old mfe chunks folder (PROD)
|
|
283
|
-
run: |
|
|
284
|
-
gsutil -m rm -r gs://bik-assets/bap/mfe/old-chunks/*
|
|
285
|
-
- name: Copy current mfe chucks folder to old mfe chunks folder (PROD)
|
|
286
|
-
run: |
|
|
287
|
-
gsutil -m cp gs://bik-assets/bap/mfe/chunks/* gs://bik-assets/bap/mfe/old-chunks
|
|
288
|
-
- name: Clear existing mfe chunks (PROD)
|
|
289
|
-
run: |
|
|
290
|
-
gsutil -m rm -r gs://bik-assets/bap/mfe/chunks/*
|
|
291
|
-
- name: Upload artifacts to Google Cloud Storage (PROD)
|
|
292
|
-
run: |
|
|
293
|
-
gsutil -m cp -r dist-mfe/* gs://bik-assets/bap/mfe
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export function GetWidgetSrc(widgetId: string, templateId: string) {
|
|
2
|
-
return `${getBaseUrl()}/publicApiFunctions-getWidgetSourceV3/${templateId}/${Cypress.env('storeId')}/${widgetId}`;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export function GetVendorSrc() {
|
|
6
|
-
return `${getBaseUrl()}/publicApiFunctions-getCommonScripts/vendor`;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function GetEventRequest() {
|
|
10
|
-
return `${getBaseUrl('dm')}/publicApiFunctions-sendWidgetEvent`;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function GetCouponRequest() {
|
|
14
|
-
return `${getBaseUrl('dm')}/publicApiFunctions-fetchCouponCode`;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function getBaseUrl(balancer?: string) {
|
|
18
|
-
return Cypress.env('isProd')
|
|
19
|
-
? `https://bikapi.bikayi.app/bap/${balancer ?? 'static-scr'}`
|
|
20
|
-
: `https://api.staging.bik.ai/${balancer ?? 'dm'}`;
|
|
21
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { getBaseUrl } from './endpoints';
|
|
2
|
-
|
|
3
|
-
class ApiRequest {
|
|
4
|
-
baseURL;
|
|
5
|
-
defaultHeaders;
|
|
6
|
-
constructor() {
|
|
7
|
-
this.baseURL = getBaseUrl();
|
|
8
|
-
this.defaultHeaders = {
|
|
9
|
-
authorization: Cypress.env('accessToken'),
|
|
10
|
-
'bik-referer': 'bik',
|
|
11
|
-
'Content-Type': 'application/json',
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
get(url, queryParams = {}, headers = {}) {
|
|
16
|
-
return this.request('GET', url, queryParams, headers);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
post(url, body = {}, headers = {}) {
|
|
20
|
-
return this.request('POST', url, {}, headers, body);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
request(method, url, queryParams = {}, headers = {}, body = {}) {
|
|
24
|
-
const requestOptions = {
|
|
25
|
-
method,
|
|
26
|
-
url: `${this.baseURL}${url}`,
|
|
27
|
-
headers: {
|
|
28
|
-
...this.defaultHeaders,
|
|
29
|
-
...headers,
|
|
30
|
-
},
|
|
31
|
-
qs: queryParams,
|
|
32
|
-
body: {
|
|
33
|
-
...body,
|
|
34
|
-
storeId: Cypress.env('storeId'),
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return cy.request(requestOptions);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default ApiRequest;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetEventRequest,
|
|
3
|
-
GetVendorSrc,
|
|
4
|
-
GetWidgetSrc,
|
|
5
|
-
} from '../apiHelper/endpoints';
|
|
6
|
-
import ApiRequest from '../apiHelper/executor';
|
|
7
|
-
import { BOTTOM_DRAWER_PAYLOAD } from '../fixtures/payloads';
|
|
8
|
-
|
|
9
|
-
describe('Bottom drawer e2e', () => {
|
|
10
|
-
it('should make an API call, open a URL, and perform frontend testing', () => {
|
|
11
|
-
new ApiRequest()
|
|
12
|
-
.post('/utilApiFunctions-deleteAllWidgets', {
|
|
13
|
-
password: 'sn@1234@A',
|
|
14
|
-
})
|
|
15
|
-
.then(() => {
|
|
16
|
-
new ApiRequest()
|
|
17
|
-
.post('/widgetInfraApiFunctions-publishWidget', BOTTOM_DRAWER_PAYLOAD)
|
|
18
|
-
.then(response => {
|
|
19
|
-
expect(response.status).to.eq(200);
|
|
20
|
-
expect(response.body).to.have.property('widgetId');
|
|
21
|
-
let apiCalled = false;
|
|
22
|
-
const widgetId = response.body.widgetId;
|
|
23
|
-
const templateId = 'P29OopljI3TkkYdfxJE0';
|
|
24
|
-
cy.intercept('POST', GetEventRequest(), req => {
|
|
25
|
-
apiCalled = true;
|
|
26
|
-
req.continue();
|
|
27
|
-
}).as('apiCall');
|
|
28
|
-
cy.visit(Cypress.env('storeUrl'));
|
|
29
|
-
cy.get(`script[src^="${GetVendorSrc()}"]`, {
|
|
30
|
-
timeout: 10000,
|
|
31
|
-
}).should('exist');
|
|
32
|
-
cy.get(
|
|
33
|
-
`script[src^="${GetWidgetSrc(widgetId, templateId)}"]`,
|
|
34
|
-
).should('exist');
|
|
35
|
-
cy.get(`div[id="bik-widget-wrapper-${widgetId}"]`).should('exist');
|
|
36
|
-
cy.wrap(null).should(() => {
|
|
37
|
-
expect(apiCalled).to.be.true;
|
|
38
|
-
});
|
|
39
|
-
cy.get(`div[id="bik-widget-root-${widgetId}"]`).should('exist');
|
|
40
|
-
cy.get(`button[id="bik-bd-${widgetId}-cta-fab"]`).should('exist');
|
|
41
|
-
cy.get(`button[id="bik-bd-${widgetId}-cta-fab"]`).click();
|
|
42
|
-
cy.get(`button[id="bik-bd-${widgetId}-cta-whatsapp"]`).should(
|
|
43
|
-
'exist',
|
|
44
|
-
);
|
|
45
|
-
cy.get(`button[id="bik-bd-${widgetId}-cta-whatsapp"]`).click();
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
});
|