@bikdotai/bik-component-library 0.0.440 → 0.0.441-beta.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/cjs/assets/icons/{drag_handle.svg.js → video_camcorder.svg.js} +1 -1
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +2 -4
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
- package/dist/cjs/components/accordion/Accordion.d.ts +0 -2
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +0 -1
- package/dist/cjs/components/accordion/Accordion.style.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +0 -12
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +5 -7
- package/dist/cjs/components/alerts/Alert.d.ts +1 -3
- package/dist/cjs/components/alerts/Alert.js +1 -1
- package/dist/cjs/components/alerts/Alert.styled.d.ts +1 -2
- package/dist/cjs/components/alerts/Alert.styled.js +4 -4
- package/dist/cjs/components/alerts/AlertHelper.d.ts +0 -5
- package/dist/cjs/components/alerts/AlertHelper.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
- package/dist/cjs/components/avatar/Avatar.js +1 -1
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +1 -2
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +0 -2
- package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
- package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +0 -5
- package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +0 -10
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +0 -1
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +7 -13
- package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +0 -12
- package/dist/cjs/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +0 -2
- package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -1
- package/dist/cjs/components/bik-layout/index.d.ts +0 -2
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.d.ts +0 -1
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -3
- package/dist/cjs/components/button/themes.d.ts +2 -3
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/cjs/components/colourInput/ColourInput.js +1 -1
- package/dist/cjs/components/curtain/Curtain.d.ts +0 -3
- package/dist/cjs/components/curtain/Curtain.js +1 -1
- package/dist/cjs/components/curtain/Curtain.styled.d.ts +0 -7
- package/dist/cjs/components/curtain/Curtain.styled.js +7 -22
- package/dist/cjs/components/curtain/CurtainHelper.d.ts +69 -11
- package/dist/cjs/components/curtain/CurtainHelper.js +1 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.js +1 -1
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +0 -2
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -6
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/type.d.ts +2 -2
- package/dist/cjs/components/discount-modal/type.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/type.d.ts +0 -1
- package/dist/cjs/components/helpers/FileUploaderHelper.js +1 -1
- package/dist/cjs/components/input/Input.d.ts +0 -3
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +0 -6
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +4 -17
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +4 -4
- package/dist/cjs/components/list-item/ListItem.js +1 -1
- package/dist/cjs/components/modals/Modal.d.ts +0 -2
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +0 -2
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +2 -3
- package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/cjs/components/plans/index.d.ts +0 -2
- package/dist/cjs/components/postPicker/postPicker.js +1 -1
- package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +0 -2
- package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +1 -13
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -1
- package/dist/cjs/components/product-picker-v2/modal.d.ts +4 -25
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +0 -7
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +0 -4
- package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/style.d.ts +0 -5
- package/dist/cjs/components/product-picker-v2/style.js +13 -53
- package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +1 -2
- package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.d.ts +2 -4
- package/dist/cjs/components/side-modal/SideModal.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +1 -4
- package/dist/cjs/components/side-modal/SideModal.style.js +1 -4
- package/dist/cjs/components/star-rating/Star.d.ts +0 -1
- package/dist/cjs/components/star-rating/Star.js +1 -1
- package/dist/cjs/components/star-rating/StarRating.d.ts +0 -1
- package/dist/cjs/components/star-rating/StarRating.js +1 -1
- package/dist/cjs/components/tag/Tag.js +1 -1
- package/dist/cjs/components/tag/Tag.styled.js +1 -1
- package/dist/cjs/components/tag/model.d.ts +1 -3
- package/dist/cjs/components/tag/model.js +1 -1
- package/dist/cjs/components/tag/themes.js +1 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +3 -9
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +0 -2
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +6 -6
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -3
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -5
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/TemplatePreview.d.ts +1 -2
- package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/constants/regexPatterns.js +1 -1
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
- package/dist/cjs/components/template-preview/index.d.ts +0 -1
- package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/cjs/components/tooltips/Tooltip.js +1 -1
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +0 -1
- package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +0 -25
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/helpers/index.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs/index.js +1 -1
- package/dist/esm/assets/icons/video_camcorder.svg.js +1 -0
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/esm/components/TablePagination/TablePagination.js +1 -1
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +2 -4
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
- package/dist/esm/components/accordion/Accordion.d.ts +0 -2
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +0 -1
- package/dist/esm/components/accordion/Accordion.style.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +0 -12
- package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.d.ts +0 -5
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +5 -7
- package/dist/esm/components/alerts/Alert.d.ts +1 -3
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/alerts/Alert.styled.d.ts +1 -2
- package/dist/esm/components/alerts/Alert.styled.js +5 -5
- package/dist/esm/components/alerts/AlertHelper.d.ts +0 -5
- package/dist/esm/components/alerts/AlertHelper.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
- package/dist/esm/components/avatar/Avatar.js +1 -1
- package/dist/esm/components/bik-layout/BikHeader.d.ts +1 -2
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +0 -2
- package/dist/esm/components/bik-layout/BikLayout.js +1 -1
- package/dist/esm/components/bik-layout/BikProfile.js +1 -1
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +0 -5
- package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +0 -10
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +0 -1
- package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
- package/dist/esm/components/bik-layout/MockMenus.d.ts +7 -13
- package/dist/esm/components/bik-layout/SidebarStyles.d.ts +0 -12
- package/dist/esm/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +0 -2
- package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
- package/dist/esm/components/bik-layout/index.d.ts +0 -2
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.d.ts +0 -1
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -3
- package/dist/esm/components/button/themes.d.ts +2 -3
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/esm/components/colourInput/ColourInput.js +1 -1
- package/dist/esm/components/curtain/Curtain.d.ts +0 -3
- package/dist/esm/components/curtain/Curtain.js +1 -1
- package/dist/esm/components/curtain/Curtain.styled.d.ts +0 -7
- package/dist/esm/components/curtain/Curtain.styled.js +4 -19
- package/dist/esm/components/curtain/CurtainHelper.d.ts +69 -11
- package/dist/esm/components/curtain/CurtainHelper.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +0 -2
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +5 -6
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/discount-modal/type.d.ts +2 -2
- package/dist/esm/components/discount-modal/type.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/type.d.ts +0 -1
- package/dist/esm/components/helpers/FileUploaderHelper.js +1 -1
- package/dist/esm/components/input/Input.d.ts +0 -3
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +0 -6
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +4 -17
- package/dist/esm/components/input-with-vars/InputWithVariables.js +3 -3
- package/dist/esm/components/list-item/ListItem.js +1 -1
- package/dist/esm/components/modals/Modal.d.ts +0 -2
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +0 -2
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +2 -3
- package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/esm/components/plans/index.d.ts +0 -2
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +0 -2
- package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +1 -13
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +4 -25
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +0 -7
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/searchScreen.d.ts +0 -4
- package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/style.d.ts +0 -5
- package/dist/esm/components/product-picker-v2/style.js +7 -47
- package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +1 -2
- package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/esm/components/side-modal/SideModal.d.ts +2 -4
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.style.d.ts +1 -4
- package/dist/esm/components/side-modal/SideModal.style.js +12 -15
- package/dist/esm/components/star-rating/Star.d.ts +0 -1
- package/dist/esm/components/star-rating/Star.js +1 -1
- package/dist/esm/components/star-rating/StarRating.d.ts +0 -1
- package/dist/esm/components/star-rating/StarRating.js +1 -1
- package/dist/esm/components/tag/Tag.js +1 -1
- package/dist/esm/components/tag/Tag.styled.js +1 -1
- package/dist/esm/components/tag/model.d.ts +1 -3
- package/dist/esm/components/tag/model.js +1 -1
- package/dist/esm/components/tag/themes.js +1 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +3 -9
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +1 -9
- package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +0 -2
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.d.ts +0 -4
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +0 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +1 -3
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +2 -5
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +3 -4
- package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +1 -4
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/TemplatePreview.d.ts +1 -2
- package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.d.ts +0 -1
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/constants/regexPatterns.js +1 -1
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.d.ts +1 -13
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
- package/dist/esm/components/template-preview/index.d.ts +0 -1
- package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +3 -46
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +0 -1
- package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
- package/dist/esm/constants/Theme.d.ts +0 -25
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/helpers/index.d.ts +0 -2
- package/dist/esm/index.d.ts +0 -3
- package/dist/esm/index.js +1 -1
- package/package.json +5 -7
- package/dist/cjs/_virtual/index.js +0 -1
- package/dist/cjs/_virtual/index2.js +0 -1
- package/dist/cjs/_virtual/index3.js +0 -1
- package/dist/cjs/_virtual/react-is.development.js +0 -1
- package/dist/cjs/_virtual/react-is.development2.js +0 -1
- package/dist/cjs/_virtual/react-is.production.min.js +0 -1
- package/dist/cjs/_virtual/react-is.production.min2.js +0 -1
- package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +0 -1
- package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js +0 -1
- package/dist/cjs/assets/icons/checkCircle.svg.js +0 -1
- package/dist/cjs/assets/icons/copy-code-icon.svg.js +0 -1
- package/dist/cjs/assets/icons/lto_icon.svg.js +0 -1
- package/dist/cjs/assets/icons/quotes.svg.js +0 -1
- package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +0 -12
- package/dist/cjs/components/bik-layout/FeatureModalV2.js +0 -1
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
- package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +0 -12
- package/dist/cjs/components/bik-layout/SidebarPopup.js +0 -1
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +0 -19
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +0 -1
- package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +0 -16
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +0 -19
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +0 -19
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +0 -1
- package/dist/cjs/components/product-picker-v2/variant.d.ts +0 -32
- package/dist/cjs/components/product-picker-v2/variant.js +0 -1
- package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +0 -21
- package/dist/cjs/components/product-picker-v2/variantComponents.js +0 -1
- package/dist/cjs/components/resizeImage/index.d.ts +0 -8
- package/dist/cjs/components/resizeImage/index.js +0 -1
- package/dist/cjs/components/slider/index.d.ts +0 -1
- package/dist/cjs/components/slider/slider.d.ts +0 -10
- package/dist/cjs/components/slider/slider.js +0 -1
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
- package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +0 -14
- package/dist/cjs/components/testimonial-card/TestimonialCard.js +0 -1
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +0 -1
- package/dist/cjs/components/testimonial-card/index.d.ts +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/dist/cjs/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/cjs/node_modules/@mui/base/useSlider/useSlider.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/isHostComponent.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
- package/dist/cjs/node_modules/@mui/base/utils/useSlotProps.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
- package/dist/cjs/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/blue.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/common.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/green.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/grey.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/lightBlue.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/orange.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/purple.js +0 -1
- package/dist/cjs/node_modules/@mui/material/colors/red.js +0 -1
- package/dist/cjs/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createMixins.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createPalette.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTransitions.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/createTypography.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/defaultTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/identifier.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/shadows.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/styled.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/useThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/material/styles/zIndex.js +0 -1
- package/dist/cjs/node_modules/@mui/material/utils/capitalize.js +0 -1
- package/dist/cjs/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
- package/dist/cjs/node_modules/@mui/styled-engine/index.js +0 -8
- package/dist/cjs/node_modules/@mui/system/esm/borders.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/colorManipulator.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/compose.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createStyled.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssGrid.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/memoize.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/merge.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/palette.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/sizing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/spacing.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/style.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useTheme.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/deepmerge.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/resolveProps.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/setRef.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
- package/dist/cjs/node_modules/object-assign/index.js +0 -7
- package/dist/cjs/node_modules/prop-types/checkPropTypes.js +0 -1
- package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/dist/cjs/node_modules/prop-types/index.js +0 -1
- package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/dist/cjs/node_modules/prop-types/lib/has.js +0 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/dist/cjs/node_modules/react-is/index.js +0 -1
- package/dist/cjs/utils/resizeImage.d.ts +0 -1
- package/dist/cjs/utils/resizeImage.js +0 -1
- package/dist/esm/_virtual/index.js +0 -1
- package/dist/esm/_virtual/index2.js +0 -1
- package/dist/esm/_virtual/index3.js +0 -1
- package/dist/esm/_virtual/react-is.development.js +0 -1
- package/dist/esm/_virtual/react-is.development2.js +0 -1
- package/dist/esm/_virtual/react-is.production.min.js +0 -1
- package/dist/esm/_virtual/react-is.production.min2.js +0 -1
- package/dist/esm/assets/icons/WhiteStarFilled.svg.js +0 -1
- package/dist/esm/assets/icons/bik_ai_stars_icon.svg.js +0 -1
- package/dist/esm/assets/icons/checkCircle.svg.js +0 -1
- package/dist/esm/assets/icons/copy-code-icon.svg.js +0 -1
- package/dist/esm/assets/icons/drag_handle.svg.js +0 -1
- package/dist/esm/assets/icons/lto_icon.svg.js +0 -1
- package/dist/esm/assets/icons/quotes.svg.js +0 -1
- package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +0 -12
- package/dist/esm/components/bik-layout/FeatureModalV2.js +0 -1
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +0 -13
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +0 -1
- package/dist/esm/components/bik-layout/SidebarPopup.d.ts +0 -12
- package/dist/esm/components/bik-layout/SidebarPopup.js +0 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +0 -19
- package/dist/esm/components/plans/NewSubscriptionPlan.js +0 -1
- package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +0 -16
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +0 -19
- package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +0 -19
- package/dist/esm/components/product-picker-v2/rearrangeScreen.js +0 -1
- package/dist/esm/components/product-picker-v2/variant.d.ts +0 -32
- package/dist/esm/components/product-picker-v2/variant.js +0 -1
- package/dist/esm/components/product-picker-v2/variantComponents.d.ts +0 -21
- package/dist/esm/components/product-picker-v2/variantComponents.js +0 -1
- package/dist/esm/components/resizeImage/index.d.ts +0 -8
- package/dist/esm/components/resizeImage/index.js +0 -1
- package/dist/esm/components/slider/index.d.ts +0 -1
- package/dist/esm/components/slider/slider.d.ts +0 -10
- package/dist/esm/components/slider/slider.js +0 -1
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +0 -12
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +0 -4
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +0 -6
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +0 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +0 -11
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +0 -1
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.d.ts +0 -2
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.js +0 -1
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +0 -9
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +0 -20
- package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +0 -14
- package/dist/esm/components/testimonial-card/TestimonialCard.js +0 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +0 -16
- package/dist/esm/components/testimonial-card/TestimonialCard.style.js +0 -1
- package/dist/esm/components/testimonial-card/index.d.ts +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +0 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -1
- package/dist/esm/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/esm/node_modules/@mui/base/useSlider/useSlider.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/appendOwnerState.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/areArraysEqual.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/extractEventHandlers.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/isHostComponent.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/mergeSlotProps.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/omitEventHandlers.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/resolveComponentProps.js +0 -1
- package/dist/esm/node_modules/@mui/base/utils/useSlotProps.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +0 -1
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/blue.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/common.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/green.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/grey.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/lightBlue.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/orange.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/purple.js +0 -1
- package/dist/esm/node_modules/@mui/material/colors/red.js +0 -1
- package/dist/esm/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createMixins.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTransitions.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/defaultTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/identifier.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/shadows.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/styled.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/useThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/material/styles/zIndex.js +0 -1
- package/dist/esm/node_modules/@mui/material/utils/capitalize.js +0 -1
- package/dist/esm/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +0 -1
- package/dist/esm/node_modules/@mui/styled-engine/index.js +0 -8
- package/dist/esm/node_modules/@mui/system/esm/borders.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/breakpoints.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/compose.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createStyled.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/cssGrid.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/memoize.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/merge.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/palette.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/propsToClassKey.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/sizing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/spacing.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/style.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useTheme.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +0 -1
- package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/resolveProps.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/setRef.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/useIsFocusVisible.js +0 -1
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden.js +0 -1
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -10
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +0 -10
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +0 -1
- package/dist/esm/node_modules/object-assign/index.js +0 -6
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -1
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +0 -1
- package/dist/esm/node_modules/prop-types/index.js +0 -1
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -1
- package/dist/esm/node_modules/prop-types/lib/has.js +0 -1
- package/dist/esm/node_modules/react-is/cjs/react-is.development.js +0 -9
- package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -9
- package/dist/esm/node_modules/react-is/index.js +0 -1
- package/dist/esm/utils/resizeImage.d.ts +0 -1
- package/dist/esm/utils/resizeImage.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/search.svg.js"),c=require("react"),o=require("../../constants/Theme.js"),s=require("../button/Button.js"),r=require("../input/Input.js"),l=require("../modals/styledModal.js"),n=require("../spinner/Spinner.js"),i=require("../tag/Tag.js"),d=require("./collectionScreen.js"),a=require("./productScreen.js"),u=require("./reducers.js"),h=require("./searchScreen.js"),p=require("./selectedScreen.js"),C=require("./style.js"),S=require("./type.js");exports.ProductPickerModal=j=>{const{storeId:x,selectedItems:b,onClose:g,visible:v,zIndex:y,limit:m,hideCollectionCheckbox:f,hideProductCheckbox:P,outOfStockAction:I=S.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:O,selectProductsFromCustomCollection:k,hideSelectionCount:T,placeholderTitle:q="Search products..."}=j,[F,E]=c.useReducer(u.collectionsReducer,{}),[R,D]=c.useState("collections"),[B,w]=c.useState(""),[A,L]=c.useState(0),[_,M]=c.useState(!1),[z,G]=c.useState(0),[$,K]=c.useState(""),[U,V]=c.useState(!1),[H,N]=c.useState(!1),[Y,J]=c.useState(),[Q,W]=c.useReducer(u.selectedColectionsReducer,Object.keys(b).length>0?b:{});c.useEffect((()=>{M(!0),N(!0),j.collectionFetcher(A,x).then((e=>{E({type:"fetched",data:(null==e?void 0:e.collections)||{}}),M(!1),L((e=>e+1)),N(!1)})).catch()}),[]),c.useEffect((()=>{let e=0;Object.keys(Q||[]).forEach((t=>{var c;Object.keys((null===(c=Q[t])||void 0===c?void 0:c.products)||[]).forEach((c=>{var o,s;Object.keys((null===(s=null===(o=Q[t].products)||void 0===o?void 0:o[c])||void 0===s?void 0:s.variants)||[]).forEach((()=>{e+=1}))}))})),G(e)})),c.useEffect((()=>{var e;B&&!(null===(e=null==F?void 0:F[B])||void 0===e?void 0:e.products)&&(M(!0),j.productFetcher(B,x).then((e=>{Object.keys(e).length&&E({type:"productsFetched",data:{collectionId:B,products:e}}),M(!1)})).catch())}),[B]),c.useEffect((()=>{const e=setTimeout((()=>{$.length?(V(!0),j.searchFetcher(x,$).then((e=>{J(Object.assign({},e)),D("searchProducts"),M(!1),V(!1)}))):D("collections")}),800);return()=>clearTimeout(e)}),[$]);const X=()=>{W({type:"reset",data:{}})};return e.jsx(l.StyledModal,Object.assign({zIndex:y,open:v,onClose:()=>{g(),X()},headingTitle:"collections"===R||"products"===R?"Select Products":"view"===R?"Selected Products":"searchProducts"===R?"Searched Products":void 0,footerShadow:!0,centralContainerStyles:{width:"480px"},primaryButton:{buttonText:_?"Loading...":"Add",disabled:_||z<1||m&&z>m||!1,onClick:()=>{j.onAdd(Q,z),X()}},footerLeftCustomElement:T?e.jsx(e.Fragment,{}):m&&z>m?e.jsx(i.Tag,{tagText:`You can only select ${m} products`,type:"negative"}):z>0?e.jsx(s.Button,{onClick:()=>{D("view")},buttonText:`${z} products selected`,buttonType:"tertiaryGray"}):e.jsx(s.Button,{disabled:!0,buttonText:`${z} products selected`,buttonType:"tertiaryGray"})},{children:e.jsxs(C.ContainerStyle,{children:[!j.hideGlobalSearch&&e.jsx(e.Fragment,{children:("collections"===R||"searchProducts"===R)&&e.jsx("div",Object.assign({style:{padding:"12px 24px",borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(r.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>U?e.jsx(n.Spinner,{size:"small",color:o.COLORS.content.primary}):e.jsx(t.default,{})},id:"listInput",height:"24px",type:"text",value:$,onChangeText:e=>{e.length&&e.trim().length?K(e):K("")},placeholder:q})}))}),e.jsxs(C.ScrollContainerStyle,{children:["collections"===R&&e.jsx(d.CollectionsScreen,{customCollectionRestriction:j.customCollectionRestriction,dataLoading:H,collections:F,selectedCollectionsDispatch:W,setCollectionId:w,setScreen:D,selectedCollections:Q,collectionFetcher:j.collectionFetcher,storeId:x,collectionsDispatch:E,setSaveDisabled:M,pagingControls:{curPage:A,setCurPage:L},hideCollectionCheckbox:f}),"products"===R&&B&&e.jsx(u.CollectionIdContext.Provider,Object.assign({value:B},{children:e.jsx(a.ProductsScreen,{hideInCollectionSearch:j.hideInCollectionSearch,customCollectionRestriction:j.customCollectionRestriction,productFetcher:j.productFetcher,setScreen:D,storeId:x,data:F[B],collectionsDispatch:E,selectedCollectionsDispatch:W,selectedData:Q,setSaveDisabled:M,searchInCollectionFetcher:j.searchInCollectionFetcher,hideProductCheckbox:P,outOfStockAction:I,hideVariantCheckbox:O,selectProductsFromCustomCollection:k})})),"view"===R&&e.jsx(p.SelectedScreen,{selectedCollections:Q||{},selectedCollectionsDispatch:W,setScreen:D,collections:F}),"searchProducts"===R&&e.jsx(h.SearchScreen,{customCollectionRestriction:j.customCollectionRestriction,selectedCollections:Q||{},searchedCollections:Y||{},selectedCollectionsDispatch:W,setScreen:D,collections:F,onBackPress:()=>{K(""),J({})}})]})]})}))};
|
|
@@ -18,9 +18,6 @@ interface ProductsScreenInterface {
|
|
|
18
18
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
19
19
|
hideVariantCheckbox?: boolean;
|
|
20
20
|
selectProductsFromCustomCollection?: boolean;
|
|
21
|
-
renderWithoutModal?: boolean;
|
|
22
|
-
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
23
|
-
hideProductVariants?: boolean;
|
|
24
21
|
}
|
|
25
22
|
export declare const ProductsScreen: (props: ProductsScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
26
23
|
interface ProductGroupInterface {
|
|
@@ -35,8 +32,6 @@ interface ProductGroupInterface {
|
|
|
35
32
|
hideProductCheckbox?: boolean;
|
|
36
33
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
37
34
|
hideVariantCheckbox?: boolean;
|
|
38
|
-
hideProductVariants?: boolean;
|
|
39
|
-
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
40
35
|
}
|
|
41
36
|
export declare const ProductGroup: (props: ProductGroupInterface) => import("react/jsx-runtime").JSX.Element;
|
|
42
37
|
interface ProductCardInterface {
|
|
@@ -53,8 +48,6 @@ interface ProductCardInterface {
|
|
|
53
48
|
hideProductCheckbox?: boolean;
|
|
54
49
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
55
50
|
hideVariantCheckbox?: boolean;
|
|
56
|
-
hideProductVariants?: boolean;
|
|
57
|
-
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
58
51
|
}
|
|
59
52
|
export declare const ProductCard: (props: ProductCardInterface) => import("react/jsx-runtime").JSX.Element;
|
|
60
53
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),i=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),c=require("lodash"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),i=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),c=require("lodash"),s=require("react"),r=require("../tag/Tag.js"),d=require("../../constants/Theme.js"),l=require("../checkBox/CheckBox.js"),n=require("../icon-button/IconButton.js"),a=require("../input/Input.js"),u=require("../shimmer/ShimmerComponent/BikShimmer.js"),h=require("../shimmer-image/ShimmerImage.js"),p=require("../spinner/Spinner.js"),v=require("../TypographyStyle.js"),j=require("./collectionScreen.js"),x=require("./emptyState.js"),y=require("./helpers/ProductHelper.js"),g=require("./reducers.js"),C=require("./style.js"),m=require("./type.js"),b=require("./utility.js");const k=t=>{const{collectionId:i,productId:o,data:c,selectedData:s,selectedCollectionsDispatch:r,viewOnly:d,upliftAdditions:l,isProductPartiallyChecked:n,hideProductCheckbox:a,outOfStockAction:u,hideVariantCheckbox:h}=t,p=e=>{var t,c,r,d,l,n;if(!(null===(c=null===(t=null==s?void 0:s[i])||void 0===t?void 0:t.products)||void 0===c?void 0:c[o]))return!1;return!!(null===(n=null===(l=null===(d=null===(r=null==s?void 0:s[i])||void 0===r?void 0:r.products)||void 0===d?void 0:d[o])||void 0===l?void 0:l.variants)||void 0===n?void 0:n[e])};return e.jsxs("div",{children:[e.jsx(O,{isVariant:!1,data:c,productId:o,collectionId:i,isSelected:!!(null===(j=null===(v=null==s?void 0:s[i])||void 0===v?void 0:v.products)||void 0===j?void 0:j[o]),isPartiallyChecked:n,selectedCollectionsDispatch:r,upliftAdditions:l,viewOnly:d,hideProductCheckbox:a,hideVariantCheckbox:h},o),Object.keys(c.variants||[]).map((t=>e.jsx(O,{isVariant:!0,hideVariantCheckbox:h,data:c.variants[t],variantId:t,productId:o,viewOnly:d,upliftAdditions:l,collectionId:i,isSelected:p(t),selectedCollectionsDispatch:r,outOfStockAction:u},t)))]});var v,j},O=t=>{const{isVariant:i,data:o,productId:c,collectionId:s,variantId:d,isSelected:n,selectedCollectionsDispatch:a,viewOnly:u,upliftAdditions:p,isPartiallyChecked:x,hideProductCheckbox:g,outOfStockAction:m,hideVariantCheckbox:b}=t,k=y.ProductHelper.getProductLabels(o,m);return e.jsxs(C.ProductCardStyle,Object.assign({isVariant:i},{children:[i&&!u&&!b||!i&&!u&&!g?e.jsx(l.CheckBox,{isChecked:n,isPartiallyChecked:x||!1,onValueChange:function(e){i?e?p("variantSelected",{productId:c,variantId:d,collectionId:s,variant:o}):a({type:"variantUnselected",data:{productId:c,variantId:d,collectionId:s}}):e?p("productSelected",{productId:c,collectionId:s,product:o}):a({type:"productUnselected",data:{productId:c,collectionId:s}})}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:e.jsx(h.ShimmerImage,{width:40,height:40,imageUrl:o.image,alt:"Item",borderRadius:4})}),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(v.TitleRegular,{children:j.truncate(o.name,40,!0)}),k?e.jsx("div",Object.assign({style:{width:90,display:"flex"}},{children:e.jsx(r.Tag,{tagText:k,type:"warning",theme:"light"})})):e.jsx(e.Fragment,{})]}))]}))};exports.ProductCard=O,exports.ProductGroup=k,exports.ProductsScreen=r=>{const h=s.useContext(g.CollectionIdContext),{data:j,collectionsDispatch:y,selectedData:O,selectedCollectionsDispatch:f,productFetcher:I,storeId:S,setScreen:P,setSaveDisabled:q,hideInCollectionSearch:E,customCollectionRestriction:T,hideProductCheckbox:w,outOfStockAction:D=m.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:A=!1,selectProductsFromCustomCollection:B=!1}=r,[V,R]=s.useState(""),[F,U]=s.useState(!1),[_,H]=s.useState(j);s.useEffect((()=>{const e=setTimeout((()=>{V.length?(U(!0),r.searchInCollectionFetcher(S,h,V).then((e=>{var t;const i=c.cloneDeep(j);i.products={};for(const o of e)(null===(t=null==j?void 0:j.products)||void 0===t?void 0:t[o])&&(i.products[o]=j.products[o]);H(i),q(!1),U(!1)}))):H(j)}),800);return()=>clearTimeout(e)}),[V]);const L=!!T&&j.isSmartCollection,K=e=>{var t,i,o,c,s,r,d,l;let n=0,a=0;return!!((null===(i=null===(t=null==O?void 0:O[h])||void 0===t?void 0:t.products)||void 0===i?void 0:i[e])&&(null===(s=Object.keys((null===(c=null===(o=null==j?void 0:j.products)||void 0===o?void 0:o[e])||void 0===c?void 0:c.variants)||[]))||void 0===s||s.forEach((()=>a++)),Object.keys((null===(l=null===(d=null===(r=null==O?void 0:O[h])||void 0===r?void 0:r.products)||void 0===d?void 0:d[e])||void 0===l?void 0:l.variants)||[]).forEach((()=>n++)),n>0&&a!==n))};s.useEffect((()=>{(null==j?void 0:j.products)||N()}),[]);const N=()=>{q(!0),U(!0),I(h,S).then((e=>{Object.keys(e).length&&(y({type:"productsFetched",data:{collectionId:h,products:e}}),H(Object.assign(Object.assign({},_),{products:e}))),q(!1),U(!1)})).catch()},W=(e,t)=>{const i=b.liftTheStateUp(t,j);f({type:e,data:Object.assign(Object.assign({},i),{isRestricted:T})})};return e.jsxs("div",{children:[e.jsxs(C.ProductScreenHeader,{children:[e.jsx(n.IconButton,{Icon:t.default,height:16,onClick:()=>{P("collections")}}),e.jsx(v.BodyCaption,Object.assign({style:{color:d.COLORS.content.secondary}},{children:j.name}))]}),!E&&e.jsx("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(a.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>F&&V.length?e.jsx(p.Spinner,{size:"small",color:d.COLORS.content.primary}):e.jsx(o.default,{})},id:"listInput",height:"24px",type:"text",value:V,onChangeText:e=>{e.length&&e.trim().length?R(e):R("")},placeholder:"Search products in this collection..."})})),e.jsxs("div",{children:[Object.keys((null==_?void 0:_.products)||[]).length>0&&!L&&!V.length&&!w&&e.jsxs(C.ProductScreenCollectionCardStyle,{children:[e.jsx(l.CheckBox,{isChecked:!!(null==O?void 0:O[h]),isPartiallyChecked:(e=>{var t;let i=0,o=0;if(O[e]){const c=null==j?void 0:j.products;c&&Object.keys(c).forEach((e=>{var t;const o=null===(t=c[e])||void 0===t?void 0:t.variants;o&&Object.keys(o).forEach((e=>i+=1))}));const s=null===(t=O[e])||void 0===t?void 0:t.products;return s&&Object.keys(s).forEach((e=>{var t;const i=null===(t=s[e])||void 0===t?void 0:t.variants;i&&Object.keys(i).forEach((()=>o+=1))})),o>0&&i!==o}return!1})(h),onValueChange:function(e){f(e?{type:"selected",data:{id:h,val:j}}:{type:"unselected",data:{id:h}})}}),e.jsx("div",Object.assign({style:{width:40,height:40}},{children:e.jsx(i.default,{})})),e.jsx(v.TitleRegular,{children:"All Products"})]}),Object.keys((null==_?void 0:_.products)||[]).length?Object.keys(_.products||[]).map((t=>e.jsx(k,{outOfStockAction:D,collectionId:h,isProductPartiallyChecked:K(t),productId:t,data:_.products[t],selectedData:O,selectedCollectionsDispatch:f,viewOnly:!B&&!!L,upliftAdditions:W,hideProductCheckbox:w,hideVariantCheckbox:A},t))):F?[1,2,3,4,5,6,7,8,9,10].map(((t,i)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(u.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),i))):e.jsx(x.EmptyState,{title:"No products to show",subtitle:V.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})]})]})};
|
|
@@ -11,10 +11,6 @@ interface SearchScreenInterface {
|
|
|
11
11
|
[key: string]: Collection;
|
|
12
12
|
};
|
|
13
13
|
onBackPress: () => void;
|
|
14
|
-
hideVariantCheckbox?: boolean;
|
|
15
|
-
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
16
|
-
hideProductVariants?: boolean;
|
|
17
|
-
hideProductCheckbox?: boolean;
|
|
18
14
|
}
|
|
19
15
|
export declare const SearchScreen: (props: SearchScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
20
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),o=require("../icon-button/IconButton.js"),i=require("../TypographyStyle.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),o=require("../icon-button/IconButton.js"),i=require("../TypographyStyle.js"),l=require("./emptyState.js"),s=require("./productScreen.js"),r=require("./style.js"),c=require("./utility.js");exports.SearchScreen=d=>{const{customCollectionRestriction:n,selectedCollections:u,searchedCollections:a,selectedCollectionsDispatch:v,setScreen:j,collections:p,onBackPress:h}=d,y=(e,t)=>{var o,i,l,s,r,c,d,n,a;let v=0,j=0;return!!((null===(i=null===(o=null==u?void 0:u[e])||void 0===o?void 0:o.products)||void 0===i?void 0:i[t])&&(null===(c=Object.keys((null===(r=null===(s=null===(l=null==p?void 0:p[e])||void 0===l?void 0:l.products)||void 0===s?void 0:s[t])||void 0===r?void 0:r.variants)||[]))||void 0===c||c.forEach((()=>j++)),Object.keys((null===(a=null===(n=null===(d=null==u?void 0:u[e])||void 0===d?void 0:d.products)||void 0===n?void 0:n[t])||void 0===a?void 0:a.variants)||[]).forEach((()=>v++)),v>0&&j!==v))};return e.jsxs("div",{children:[e.jsxs(r.SelectedScreenHeader,{children:[e.jsx(o.IconButton,{Icon:t.default,onClick:()=>{j("collections"),h()}}),e.jsx(i.BodyCaption,{children:"Searched Products"})]}),e.jsx("div",{children:Object.keys(a).length?e.jsx(e.Fragment,{children:Object.keys(a).map((t=>{var o;return Object.keys((null===(o=null==a?void 0:a[t])||void 0===o?void 0:o.products)||[]).map((o=>{let i=!1;return(null==a?void 0:a.isCustom)&&(i=!0),e.jsx(s.ProductGroup,{collectionId:t,upliftAdditions:(e,o)=>((e,t,o)=>{const i=c.liftTheStateUp(o,a[e]);v({type:t,data:Object.assign(Object.assign({},i),{isRestricted:n})})})(t,e,o),productId:o,data:a[t].products[o],isProductPartiallyChecked:y(t,o),selectedData:u,selectedCollectionsDispatch:v,viewOnly:i},o)}))}))}):e.jsx(l.EmptyState,{title:"No search results found",subtitle:"We couldn’t find the product you were looking for."})})]})};
|
|
@@ -2,7 +2,6 @@ export declare const ContainerStyle: import("styled-components").StyledComponent
|
|
|
2
2
|
export declare const ScrollContainerStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const CollectionCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
-
isActive: boolean;
|
|
6
5
|
}, never>;
|
|
7
6
|
export declare const CollectionCardInfoStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
7
|
export declare const CollectionCardDetailStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -10,10 +9,6 @@ export declare const ProductScreenHeader: import("styled-components").StyledComp
|
|
|
10
9
|
export declare const ProductScreenCollectionCardStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
10
|
export declare const ProductCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
12
11
|
isVariant: boolean;
|
|
13
|
-
isActive: boolean;
|
|
14
12
|
}, never>;
|
|
15
13
|
export declare const SelectedScreenHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
14
|
export declare const CollectionNameHolder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
-
export declare const VariantCardListStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
-
export declare const VariantCardGridStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
-
export declare const StyledHeaderRightIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e);const l=i.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
background-color: white;
|
|
4
4
|
max-height: 600px;
|
|
5
5
|
min-height: 600px;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
`,
|
|
7
|
+
`,r=i.default.div`
|
|
8
8
|
overflow-y: scroll;
|
|
9
9
|
overflow-x: hidden;
|
|
10
|
-
`,
|
|
10
|
+
`,n=i.default.div`
|
|
11
11
|
height: 64px;
|
|
12
|
-
background-color: ${e=>e.isDisabled?"#F0F0F0":
|
|
12
|
+
background-color: ${e=>e.isDisabled?"#F0F0F0":"white"};
|
|
13
13
|
border-bottom: 1px solid #e0e0e0;
|
|
14
14
|
padding: 12px 24px;
|
|
15
15
|
display: flex;
|
|
@@ -17,21 +17,17 @@
|
|
|
17
17
|
column-gap: 16px;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
|
-
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
background-color: ${t.COLORS.surface.hovered};
|
|
23
|
-
}
|
|
24
|
-
`,n=o.default.div`
|
|
20
|
+
`,d=i.default.div`
|
|
25
21
|
display: flex;
|
|
26
22
|
flex-direction: row;
|
|
27
23
|
justify-content: center;
|
|
28
24
|
align-items: center;
|
|
29
25
|
column-gap: 18px;
|
|
30
|
-
`,a=
|
|
26
|
+
`,a=i.default.div`
|
|
31
27
|
display: flex;
|
|
32
28
|
flex-direction: column;
|
|
33
29
|
justify-content: center;
|
|
34
|
-
`,
|
|
30
|
+
`,c=i.default.div`
|
|
35
31
|
display: flex;
|
|
36
32
|
flex-direction: row;
|
|
37
33
|
max-height: 32px;
|
|
@@ -41,16 +37,16 @@
|
|
|
41
37
|
align-items: center;
|
|
42
38
|
padding: 8px 16px;
|
|
43
39
|
margin-top: 16px;
|
|
44
|
-
`,
|
|
40
|
+
`,x=i.default.div`
|
|
45
41
|
display: flex;
|
|
46
42
|
flex-direction: row;
|
|
47
43
|
column-gap: 16px;
|
|
48
44
|
padding: 12px 16px;
|
|
49
45
|
border-bottom: 1px solid #e0e0e0;
|
|
50
46
|
align-items: center;
|
|
51
|
-
`,
|
|
47
|
+
`,p=i.default.div`
|
|
52
48
|
height: 64px;
|
|
53
|
-
background-color:
|
|
49
|
+
background-color: white;
|
|
54
50
|
border-bottom: 1px solid #e0e0e0;
|
|
55
51
|
padding: 12px 16px;
|
|
56
52
|
display: flex;
|
|
@@ -59,11 +55,7 @@
|
|
|
59
55
|
justify-content: flex-start;
|
|
60
56
|
align-items: center;
|
|
61
57
|
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
62
|
-
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
background-color: ${t.COLORS.surface.hovered};
|
|
65
|
-
}
|
|
66
|
-
`,s=o.default.div`
|
|
58
|
+
`,s=i.default.div`
|
|
67
59
|
display: flex;
|
|
68
60
|
flex-direction: row;
|
|
69
61
|
max-height: 32px;
|
|
@@ -72,39 +64,7 @@
|
|
|
72
64
|
justify-content: flex-start;
|
|
73
65
|
align-items: center;
|
|
74
66
|
padding: 8px 16px;
|
|
75
|
-
`,f=
|
|
67
|
+
`,f=i.default.div`
|
|
76
68
|
display: flex;
|
|
77
69
|
flex-direction: column;
|
|
78
|
-
|
|
79
|
-
height: 72px;
|
|
80
|
-
background: white;
|
|
81
|
-
padding: 12px 16px;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: row;
|
|
84
|
-
gap: 16px;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
|
|
88
|
-
.tooltip-title-tag {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex: 1;
|
|
91
|
-
flex-direction: column;
|
|
92
|
-
gap: 2px;
|
|
93
|
-
}
|
|
94
|
-
`,g=o.default.div`
|
|
95
|
-
height: 72px;
|
|
96
|
-
width: 72px;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
margin: 16px;
|
|
101
|
-
`;o.default.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
width: 32px;
|
|
104
|
-
height: 32px;
|
|
105
|
-
padding: 6px;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
align-items: center;
|
|
108
|
-
border: 1px solid ${t.COLORS.stroke.primary};
|
|
109
|
-
border-radius: 4px;
|
|
110
|
-
`,exports.CollectionCardDetailStyle=a,exports.CollectionCardInfoStyle=n,exports.CollectionCardStyle=d,exports.CollectionNameHolder=f,exports.ContainerStyle=r,exports.ProductCardStyle=x,exports.ProductScreenCollectionCardStyle=c,exports.ProductScreenHeader=p,exports.ScrollContainerStyle=l,exports.SelectedScreenHeader=s,exports.VariantCardGridStyle=g,exports.VariantCardListStyle=u;
|
|
70
|
+
`;exports.CollectionCardDetailStyle=a,exports.CollectionCardInfoStyle=d,exports.CollectionCardStyle=n,exports.CollectionNameHolder=f,exports.ContainerStyle=l,exports.ProductCardStyle=p,exports.ProductScreenCollectionCardStyle=x,exports.ProductScreenHeader=c,exports.ScrollContainerStyle=r,exports.SelectedScreenHeader=s;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ShimmerImageProps = {
|
|
3
3
|
imageUrl: string;
|
|
4
|
-
width: number
|
|
4
|
+
width: number;
|
|
5
5
|
height: number;
|
|
6
6
|
alt?: string;
|
|
7
7
|
borderRadius?: number;
|
|
8
8
|
defaultImageUrl?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const DEFAULT_IMAGE = "https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";
|
|
11
10
|
export declare const ShimmerImage: React.FC<ShimmerImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../shimmer/ShimmerComponent/BikShimmer.js");const i="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../shimmer/ShimmerComponent/BikShimmer.js");const i="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";exports.ShimmerImage=s=>{let{imageUrl:a,width:o,height:l,borderRadius:d,alt:n,defaultImageUrl:m=i}=s;const[u,c]=r.useState(!0),[h,g]=r.useState(!1);return r.useEffect((()=>{const e=new Image;return e.src=a,e.onload=()=>{g(!1),c(!1)},e.onerror=()=>{g(!0),c(!1)},()=>{e.onload=null,e.onerror=null}}),[a]),e.jsxs("div",Object.assign({style:{position:"relative",width:o,height:l,borderRadius:d}},{children:[u&&e.jsx(t.BikShimmer,{boxes:[{height:`${l}px`,width:`${o}px`,marginTop:"0px"}]}),h?e.jsx("img",{src:m,alt:null!=n?n:"Image",style:{borderRadius:null!=d?d:0,display:"block",width:"100%",height:"100%"}}):e.jsx("img",{src:a,alt:null!=n?n:"Image",style:{borderRadius:null!=d?d:0,display:u?"none":"block",width:"100%",height:"100%"}})]}))};
|
|
@@ -7,11 +7,9 @@ export interface SideModalProps {
|
|
|
7
7
|
footerDirection?: 'row' | 'row-reverse';
|
|
8
8
|
hideCrossButton?: boolean;
|
|
9
9
|
width?: string;
|
|
10
|
-
saveButtonProps
|
|
11
|
-
cancelButtonProps
|
|
10
|
+
saveButtonProps: ButtonProps;
|
|
11
|
+
cancelButtonProps: ButtonProps;
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
zIndex?: number;
|
|
14
|
-
hideFooter?: boolean;
|
|
15
|
-
bodyStyle?: React.CSSProperties;
|
|
16
14
|
}
|
|
17
15
|
export declare const SideModal: React.FC<SideModalProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react-dom"),o=require("../../assets/icons/cross.svg.js"),r=require("../button/Button.js"),s=require("../TypographyStyle.js"),i=require("./SideModal.style.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(t);exports.SideModal=t=>d.default.createPortal(e.jsx(i.SideModalStyle,Object.assign({zIndex:t.zIndex},{children:e.jsxs(i.SideModalContainer,Object.assign({width:t.width},{children:[e.jsxs(i.SideModalHeader,{children:[e.jsx(s.TitleMedium,{children:t.header}),!t.hideCrossButton&&e.jsx(o.default,{width:24,height:24,onClick:t.onClose})]}),e.jsx(i.SideModalBody,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react-dom"),o=require("../../assets/icons/cross.svg.js"),r=require("../button/Button.js"),s=require("../TypographyStyle.js"),i=require("./SideModal.style.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=n(t);exports.SideModal=t=>d.default.createPortal(e.jsx(i.SideModalStyle,Object.assign({zIndex:t.zIndex},{children:e.jsxs(i.SideModalContainer,Object.assign({width:t.width},{children:[e.jsxs(i.SideModalHeader,{children:[e.jsx(s.TitleMedium,{children:t.header}),!t.hideCrossButton&&e.jsx(o.default,{width:24,height:24,onClick:t.onClose})]}),e.jsx(i.SideModalBody,{children:t.children}),e.jsxs(i.SideModalFooter,Object.assign({footerDirection:t.footerDirection},{children:[e.jsxs(i.FooterButtonWrapper,Object.assign({footerDirection:t.footerDirection},{children:[e.jsx(r.Button,Object.assign({},t.saveButtonProps)),e.jsx(r.Button,Object.assign({},t.cancelButtonProps))]})),t.footerCustomComponent?t.footerCustomComponent:e.jsx(e.Fragment,{})]}))]}))})),document.body);
|
|
@@ -5,10 +5,7 @@ export declare const SideModalContainer: import("styled-components").StyledCompo
|
|
|
5
5
|
width?: string | undefined;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const SideModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
hideFooter?: boolean | undefined;
|
|
10
|
-
bodyStyle: React.CSSProperties;
|
|
11
|
-
}, never>;
|
|
8
|
+
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
9
|
export declare const SideModalFooter: import("styled-components").StyledComponent<"div", any, {
|
|
13
10
|
footerDirection?: "row" | "row-reverse" | undefined;
|
|
14
11
|
}, never>;
|
|
@@ -34,10 +34,7 @@
|
|
|
34
34
|
`,s=d.default.div`
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
padding: 24px;
|
|
37
|
-
height:
|
|
38
|
-
${t=>{let{bodyStyle:o}=t;return e.css`
|
|
39
|
-
${Object.keys(o).map((e=>`${e}: ${o[e]};`)).join("\n")}
|
|
40
|
-
`}}
|
|
37
|
+
height: calc(100% - 120px);
|
|
41
38
|
`,p=d.default.div`
|
|
42
39
|
height: 60px;
|
|
43
40
|
width: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../../constants/Theme.js"),o=require("../../assets/icons/starEmpty.svg.js"),s=require("../../assets/icons/starFilled.svg.js");exports.Star=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("../../constants/Theme.js"),o=require("../../assets/icons/starEmpty.svg.js"),s=require("../../assets/icons/starFilled.svg.js");exports.Star=n=>{let{size:l,filled:u,emptyColor:i,filledColor:a,onClick:c,asHovered:d,onHover:h}=n;const[v,f]=r.useState(!1);return r.useEffect((()=>{null==h||h(v)}),[v]),r.useEffect((()=>{d||f(!1)}),[d]),d?e.jsx(s.default,{onClick:()=>{null==c||c("select")},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{cursor:"pointer"},width:l,height:l,color:null!=a?a:t.COLORS.background.warning.vibrant}):v?e.jsx(s.default,{onMouseLeave:()=>f(!1),onMouseEnter:()=>f(!0),style:{cursor:"pointer"},onClick:()=>{null==c||c("select")},width:l,height:l,color:null!=a?a:t.COLORS.background.warning.vibrant}):u?e.jsx(s.default,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{cursor:"pointer"},onClick:()=>{null==c||c("de-select")},width:l,height:l,color:null!=a?a:t.COLORS.background.warning.vibrant}):e.jsx(o.default,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),style:{cursor:"pointer"},onClick:()=>{null==c||c("select")},width:l,height:l,color:null!=i?i:t.COLORS.surface.standard})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var I=require("@emotion/styled/base"),g=require("react/jsx-runtime"),C=require("react"),A=require("./Star.js");function c(I){return I&&"object"==typeof I&&"default"in I?I:{default:I}}const l=c(I).default("div","production"===process.env.NODE_ENV?{target:"e1yh3w250"}:{target:"e1yh3w250",label:"Container"})("production"===process.env.NODE_ENV?{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center"}:{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN0YXJSYXRpbmcudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUk2QiIsImZpbGUiOiJTdGFyUmF0aW5nLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGpzeCBhcyBfanN4IH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgdXNlRWZmZWN0LCB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgU3RhciB9IGZyb20gJy4vU3Rhcic7XHJcbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRnYXA6IDEycHg7XG5cdGp1c3RpZnktY29udGVudDogc3RhcnQ7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xyXG5leHBvcnQgY29uc3QgU3RhclJhdGluZyA9ICh7IGVtcHR5Q29sb3IsIGZpbGxlZENvbG9yLCBvbkNoYW5nZSwgdmFsdWUsIG1heFZhbHVlLCBzdGFyU2l6ZSB9KSA9PiB7XHJcbiAgICBjb25zdCBbc3RhcnMsIHNldFN0YXJzXSA9IHVzZVN0YXRlKHZhbHVlICE9PSBudWxsICYmIHZhbHVlICE9PSB2b2lkIDAgPyB2YWx1ZSA6IDApO1xyXG4gICAgY29uc3QgW21vdW50ZWQsIHNldE1vdW50ZWRGbGFnXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IFtob3ZlcmVkU3Rhciwgc2V0SG92ZXJlZFN0YXJdID0gdXNlU3RhdGUoMCk7XHJcbiAgICBjb25zdCBhcnIgPSB1c2VNZW1vKCgpID0+IHtcclxuICAgICAgICBjb25zdCBsaW1pdCA9IG1heFZhbHVlICE9PSBudWxsICYmIG1heFZhbHVlICE9PSB2b2lkIDAgPyBtYXhWYWx1ZSA6IDU7XHJcbiAgICAgICAgcmV0dXJuIEFycmF5KGxpbWl0KVxyXG4gICAgICAgICAgICAuZmlsbChudWxsKVxyXG4gICAgICAgICAgICAubWFwKChfLCBpZHgpID0+IGlkeCArIDEpO1xyXG4gICAgfSwgW21heFZhbHVlXSk7XHJcbiAgICB1c2VFZmZlY3QoKCkgPT4ge1xyXG4gICAgICAgIGlmIChtb3VudGVkKSB7XHJcbiAgICAgICAgICAgIG9uQ2hhbmdlKHN0YXJzKTtcclxuICAgICAgICB9XHJcbiAgICB9LCBbc3RhcnNdKTtcclxuICAgIHVzZUVmZmVjdCgoKSA9PiB7XHJcbiAgICAgICAgc2V0TW91bnRlZEZsYWcodHJ1ZSk7XHJcbiAgICB9LCBbXSk7XHJcbiAgICByZXR1cm4gKF9qc3goQ29udGFpbmVyLCB7IGNoaWxkcmVuOiBhcnIubWFwKChpZHgpID0+IChfanN4KFN0YXIsIHsgYXNIb3ZlcmVkOiBob3ZlcmVkU3RhciA/IGlkeCA8PSBob3ZlcmVkU3RhciA6IGZhbHNlLCBzaXplOiBzdGFyU2l6ZSAhPT0gbnVsbCAmJiBzdGFyU2l6ZSAhPT0gdm9pZCAwID8gc3RhclNpemUgOiAyNCwgZmlsbGVkOiBob3ZlcmVkU3RhciA/IHVuZGVmaW5lZCA6IGlkeCA8PSBzdGFycywgZW1wdHlDb2xvcjogZW1wdHlDb2xvciwgZmlsbGVkQ29sb3I6IGZpbGxlZENvbG9yLCBvbkNsaWNrOiAoYWN0aW9uKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBpZiAoYWN0aW9uID09PSAnZGUtc2VsZWN0Jykge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmIChpZHggPCBzdGFycykge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzZXRTdGFycyhpZHgpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0U3RhcnMoaWR4IC0gMSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2V0U3RhcnMoaWR4KTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSwgb25Ib3ZlcjogKGhvdmVyZWQpID0+IHtcclxuICAgICAgICAgICAgICAgIGlmIChob3ZlcmVkKVxyXG4gICAgICAgICAgICAgICAgICAgIHNldEhvdmVyZWRTdGFyKGlkeCk7XHJcbiAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICBzZXRIb3ZlcmVkU3RhcigwKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfSB9LCBpZHgpKSkgfSkpO1xyXG59O1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1TdGFyUmF0aW5nLmpzLm1hcCJdfQ== */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}});exports.StarRating=I=>{let{emptyColor:c,filledColor:e,onChange:t,value:b,maxValue:i,starSize:s}=I;const[Z,d]=C.useState(null!=b?b:0),[u,n]=C.useState(!1),[o,G]=C.useState(0),a=C.useMemo((()=>Array(null!=i?i:5).fill(null).map(((I,g)=>g+1))),[i]);return C.useEffect((()=>{u&&t(Z)}),[Z]),C.useEffect((()=>{n(!0)}),[]),g.jsx(l,{children:a.map((I=>g.jsx(A.Star,{asHovered:!!o&&I<=o,size:null!=s?s:24,filled:o?void 0:I<=Z,emptyColor:c,filledColor:e,onClick:g=>{d("de-select"===g?I<Z?I:I-1:I)},onHover:g=>{G(g?I:0)}},I)))})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),a=require("../TypographyStyle.js"),n=require("./model.js"),r=require("./Tag.styled.js"),t=require("./themes.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(i);const l=i=>{let{tagText:s,LeadingIcon:l,TrailingIcon:o,onLeadingIconClicked:d,leadingIconId:g,trailingIconId:u,onTrailingIconClicked:p,theme:j="light",type:b="neutral",variant:y="regular",version:h,cursor:m}=i,T=s,x=j,O=b;n.ValidTagTypeMap[y][b]||(O="neutral"),"circle"===y&&(x="dark","number"==typeof T&&T>99&&(T="99+"));const I={height:16,width:16,color:t.getTagIconColor(j,O),style:{display:"block"}};return e.jsx(r.Tag,Object.assign({cursor:m,theme:x,type:b,variant:y,version:h},{children:e.jsxs("div",Object.assign({className:"container"},{children:[l&&e.jsx("button",Object.assign({className:"icon-leading",onClick:d,id:`${g}-wrapper`||"leading-icon-wrapper"},{children:c.default.createElement(l,Object.assign(Object.assign({},I),{id:g||"leading-icon"}))})),e.jsx(a.BodyCaption,Object.assign({className:"text"},{children:T})),o&&e.jsx("button",Object.assign({className:"icon-trailing",onClick:p,id:`${u}-wrapper`||"trailing-icon-wrapper"},{children:c.default.createElement(o,Object.assign(Object.assign({},I),{id:u||"trailing-icon"}))}))]}))}))};l.displayName="Tag",exports.Tag=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),e=require("./themes.js");function l(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),e=require("./themes.js");function l(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}const d=l(c).default("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var e;return null!==(e=c.cursor)&&void 0!==e?e:"default"}),";",(c=>"regular"===c.variant?"display: block;\n\t\t height: 26px;\n\t\t":"height: 20px;")," .container{display:flex;align-items:center;gap:6px;padding:",(c=>e.getPadding(c.variant)),";background-color:",(c=>e.getBackgroundColor(c.theme,c.type)),";border-radius:",(c=>"regular"===c.variant?"4px":"12px"),";",(c=>"light"===c.theme&&`border: ${"2.0"===c.version?.5:1}px solid ${e.generateBorder(c.type)};`)," .text{color:",(c=>e.getTextColor(c.theme,c.type)),";}.icon-trailing{all:unset;display:flex;}.icon-leading{all:unset;display:flex;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhZy5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUU4QiIsImZpbGUiOiJUYWcuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgZ2VuZXJhdGVCb3JkZXIsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0UGFkZGluZywgZ2V0VGV4dENvbG9yLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZC5kaXYgYFxuXHRjdXJzb3I6ICR7KHByb3BzKSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHByb3BzLmN1cnNvcikgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RlZmF1bHQnOyB9fTtcblx0JHsocHJvcHMpID0+IHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJ1xyXG4gICAgPyBgZGlzcGxheTogYmxvY2s7XG5cdFx0ICAgICBoZWlnaHQ6IDI2cHg7XG5cdFx0YFxyXG4gICAgOiBgaGVpZ2h0OiAyMHB4O2B9XG5cdC5jb250YWluZXIge1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRnYXA6IDZweDtcblx0XHRwYWRkaW5nOiAkeyhwcm9wcykgPT4gZ2V0UGFkZGluZyhwcm9wcy52YXJpYW50KX07XG5cblx0XHRiYWNrZ3JvdW5kLWNvbG9yOiAkeyhwcm9wcykgPT4gZ2V0QmFja2dyb3VuZENvbG9yKHByb3BzLnRoZW1lLCBwcm9wcy50eXBlKX07XG5cblx0XHRib3JkZXItcmFkaXVzOiAkeyhwcm9wcykgPT4gKHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJyA/ICc0cHgnIDogJzEycHgnKX07XG5cblx0XHQkeyhwcm9wcykgPT4gcHJvcHMudGhlbWUgPT09ICdsaWdodCcgJiZcclxuICAgIGBib3JkZXI6ICR7cHJvcHMudmVyc2lvbiA9PT0gJzIuMCcgPyAwLjUgOiAxfXB4IHNvbGlkICR7Z2VuZXJhdGVCb3JkZXIocHJvcHMudHlwZSl9O2B9XG5cblx0XHQudGV4dCB7XG5cdFx0XHRjb2xvcjogJHsocHJvcHMpID0+IGdldFRleHRDb2xvcihwcm9wcy50aGVtZSwgcHJvcHMudHlwZSl9O1xuXHRcdH1cblxuXHRcdC5pY29uLXRyYWlsaW5nIHtcblx0XHRcdGFsbDogdW5zZXQ7XG5cdFx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdH1cblxuXHRcdC5pY29uLWxlYWRpbmcge1xuXHRcdFx0YWxsOiB1bnNldDtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1UYWcuc3R5bGVkLmpzLm1hcCJdfQ== */"));exports.Tag=d;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { MouseEventHandler } from 'react';
|
|
3
3
|
export type TagTheme = 'light' | 'dark';
|
|
4
4
|
export type TagVariant = 'regular' | 'circle';
|
|
5
|
-
export type TagType = 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey'
|
|
5
|
+
export type TagType = 'negative' | 'warning' | 'positive' | 'neutral' | 'white' | 'purple' | 'blue' | 'grey';
|
|
6
6
|
export declare const ValidTagTypeMap: {
|
|
7
7
|
regular: {
|
|
8
8
|
negative: boolean;
|
|
@@ -12,7 +12,6 @@ export declare const ValidTagTypeMap: {
|
|
|
12
12
|
white: boolean;
|
|
13
13
|
purple: boolean;
|
|
14
14
|
blue: boolean;
|
|
15
|
-
ai: boolean;
|
|
16
15
|
};
|
|
17
16
|
circle: {
|
|
18
17
|
negative: boolean;
|
|
@@ -21,7 +20,6 @@ export declare const ValidTagTypeMap: {
|
|
|
21
20
|
neutral: boolean;
|
|
22
21
|
blue: boolean;
|
|
23
22
|
grey: boolean;
|
|
24
|
-
ai: boolean;
|
|
25
23
|
};
|
|
26
24
|
};
|
|
27
25
|
export interface TagProps extends React.BaseHTMLAttributes<HTMLDivElement> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ValidTagTypeMap={regular:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ValidTagTypeMap={regular:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0},circle:{negative:!0,warning:!0,positive:!0,neutral:!0,blue:!0,grey:!0}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../constants/Theme.js");const e={blue:{iconColor:{light:r.COLORS.content.blue,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.blue,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.blue.lightAlt,backgroundColor:{light:r.COLORS.background.blue.light,dark:r.COLORS.content.blue,circle:r.COLORS.content.blue}},purple:{iconColor:{light:r.COLORS.background.inverseLight,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.background.inverseLight,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.brandLightAlt,backgroundColor:{light:r.COLORS.background.brandLight,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverse}},negative:{iconColor:{light:r.COLORS.content.negative,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.negative,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.negative.lightAlt,backgroundColor:{light:r.COLORS.background.negative.light,dark:r.COLORS.background.negative.vibrant,circle:r.COLORS.background.negative.vibrant}},positive:{iconColor:{light:r.COLORS.content.positive,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.positive,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.positive.lightAlt,backgroundColor:{light:r.COLORS.background.positive.light,dark:r.COLORS.background.positive.vibrant,circle:r.COLORS.background.positive.vibrant}},warning:{iconColor:{light:r.COLORS.content.warning,dark:r.COLORS.content.primary},textColor:{light:r.COLORS.content.warning,dark:r.COLORS.content.primary},border:r.COLORS.stroke.warning.lightAlt,backgroundColor:{light:r.COLORS.background.warning.light,dark:r.COLORS.background.warning.vibrant,circle:r.COLORS.background.warning.vibrant}},neutral:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.subdued,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverseLight}},white:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.standard,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverseLight}},grey:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.subdued,dark:r.COLORS.content.secondary,circle:r.COLORS.content.secondary}}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../constants/Theme.js");const e={blue:{iconColor:{light:r.COLORS.content.blue,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.blue,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.blue.lightAlt,backgroundColor:{light:r.COLORS.background.blue.light,dark:r.COLORS.content.blue,circle:r.COLORS.content.blue}},purple:{iconColor:{light:r.COLORS.background.inverseLight,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.background.inverseLight,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.brandLightAlt,backgroundColor:{light:r.COLORS.background.brandLight,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverse}},negative:{iconColor:{light:r.COLORS.content.negative,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.negative,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.negative.lightAlt,backgroundColor:{light:r.COLORS.background.negative.light,dark:r.COLORS.background.negative.vibrant,circle:r.COLORS.background.negative.vibrant}},positive:{iconColor:{light:r.COLORS.content.positive,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.positive,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.positive.lightAlt,backgroundColor:{light:r.COLORS.background.positive.light,dark:r.COLORS.background.positive.vibrant,circle:r.COLORS.background.positive.vibrant}},warning:{iconColor:{light:r.COLORS.content.warning,dark:r.COLORS.content.primary},textColor:{light:r.COLORS.content.warning,dark:r.COLORS.content.primary},border:r.COLORS.stroke.warning.lightAlt,backgroundColor:{light:r.COLORS.background.warning.light,dark:r.COLORS.background.warning.vibrant,circle:r.COLORS.background.warning.vibrant}},neutral:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.subdued,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverseLight}},white:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.standard,dark:r.COLORS.background.inverse,circle:r.COLORS.background.inverseLight}},grey:{iconColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},textColor:{light:r.COLORS.content.secondary,dark:r.COLORS.content.primaryInverse},border:r.COLORS.stroke.primary,backgroundColor:{light:r.COLORS.surface.subdued,dark:r.COLORS.content.secondary,circle:r.COLORS.content.secondary}}};exports.generateBorder=r=>e[r].border,exports.getBackgroundColor=(r,t)=>e[t].backgroundColor[r],exports.getPadding=r=>"regular"===r?"4px 8px":"2px 6px",exports.getTagIconColor=(r,t)=>e[t].iconColor[r],exports.getTextColor=(r,t)=>e[t].textColor[r];
|
|
@@ -3,7 +3,7 @@ import { CHANNEL_TYPE } from '../template-preview/models/Channels';
|
|
|
3
3
|
import { EmailTemplateType } from '../template-preview/models/EmailTemplate';
|
|
4
4
|
import { SMSTemplateType } from '../template-preview/models/SmsTemplate';
|
|
5
5
|
import { CUSTOM_VARIABLE, GlobalPlaceholderType } from '../template-preview/models/TemplateMeta';
|
|
6
|
-
import {
|
|
6
|
+
import { WhatsAppPickerMeta, WhatsAppTemplate, WhatsAppTemplateVariables } from '../template-preview/models/WhatsAppTemplate';
|
|
7
7
|
export interface TemplateContextMapperProps {
|
|
8
8
|
selectedTemplate: WhatsAppTemplate | EmailTemplateType | SMSTemplateType;
|
|
9
9
|
closeDialog?: () => void;
|
|
@@ -11,7 +11,7 @@ export interface TemplateContextMapperProps {
|
|
|
11
11
|
channel: CHANNEL_TYPE;
|
|
12
12
|
globalPlaceholders: GlobalPlaceholderType;
|
|
13
13
|
/** List of variables being used in this template */
|
|
14
|
-
templateVariables: CUSTOM_VARIABLE[]
|
|
14
|
+
templateVariables: CUSTOM_VARIABLE[];
|
|
15
15
|
/** Only for initial-UI-purpose for the modal */
|
|
16
16
|
htmlContent: string;
|
|
17
17
|
showOnlyContent?: boolean;
|
|
@@ -20,14 +20,8 @@ export interface TemplateContextMapperProps {
|
|
|
20
20
|
zIndex?: number;
|
|
21
21
|
showVariableModal?: boolean;
|
|
22
22
|
variableList?: VariableListInterfaceV2[];
|
|
23
|
-
variableListForImage?: VariableListInterfaceV2[];
|
|
24
23
|
onBackPress?: () => void;
|
|
25
24
|
discountCode?: string;
|
|
26
25
|
setDiscountCode?: (code: string) => void;
|
|
27
|
-
enabledCustomText?: boolean;
|
|
28
|
-
showSampleValues?: boolean;
|
|
29
|
-
disableEditVariable?: boolean;
|
|
30
|
-
pod?: POD;
|
|
31
|
-
extras?: ExtrasWhatsapp;
|
|
32
26
|
}
|
|
33
|
-
export declare const TemplateContextMapper: ({ selectedTemplate, closeDialog, showVariableMapping, channel, htmlContent, templateVariables, onTemplateSelect, globalPlaceholders, showOnlyContent, whatsappSpecificPickerMeta, zIndex, showVariableModal, variableList, discountCode, setDiscountCode, onBackPress,
|
|
27
|
+
export declare const TemplateContextMapper: ({ selectedTemplate, closeDialog, showVariableMapping, channel, htmlContent, templateVariables, onTemplateSelect, globalPlaceholders, showOnlyContent, whatsappSpecificPickerMeta, zIndex, showVariableModal, variableList, discountCode, setDiscountCode, onBackPress, }: TemplateContextMapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("../../utils/StringUtils.js"),a=require("../modals/styledModal.js"),s=require("../template-preview/models/Channels.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("../../utils/StringUtils.js"),a=require("../modals/styledModal.js"),s=require("../template-preview/models/Channels.js"),o=require("./context/templateModalContext.js"),i=require("./modalElements/Footer.js"),r=require("./modalElements/TemplateSelectModalContent.js"),n=require("./utils/convertPlaceholdersToBikDropdown.js");exports.TemplateContextMapper=d=>{let{selectedTemplate:c,closeDialog:u,showVariableMapping:p,channel:m,htmlContent:h,templateVariables:g,onTemplateSelect:C,globalPlaceholders:S,showOnlyContent:v,whatsappSpecificPickerMeta:b,zIndex:j,showVariableModal:M,variableList:T,discountCode:E,setDiscountCode:P,onBackPress:x}=d;var L,f;t.useEffect((()=>{A(h)}),[h]);const[w,q]=t.useState(m===s.CHANNEL_TYPE.EMAIL?"desktop":"mobile"),[y,A]=t.useState(h),[N,k]=t.useState(!1),[D,V]=t.useState(c),[_,H]=t.useState(null!=g?g:[]),[I,O]=t.useState(!1);const B=t.useMemo((()=>n.convertPlaceholdersToBikDropdown(S)),[S]);return e.jsx(o.TemplateModalContext.Provider,Object.assign({value:{template:D,setTemplate:V,device:w,setDevice:q,display_content:y,setDisplayContent:A,originalVariableList:_,setOriginalVariableList:H,isError:N,setIsError:k,channel:m,globalNormalizedPlaceholders:B,templateSelectionTriggered:I,setTemplateSelectionTriggered:O}},{children:v?e.jsx(r.default,{channel:s.CHANNEL_TYPE.EMAIL,hideHeader:!0}):e.jsxs(a.StyledModal,Object.assign({zIndex:j,centralContainerStyles:{width:m===s.CHANNEL_TYPE.EMAIL&&p?1e3:650},open:!0,onClose:()=>{null==u||u()},headingTitle:null==D?void 0:D.label,headingSubtitle:m===s.CHANNEL_TYPE.WHATSAPP?`${l.default.capitaliseFirstLetterOfString(null!==(L=null==D?void 0:D.category)&&void 0!==L?L:"")} • ${null!==(f=null==D?void 0:D.templateCategory)&&void 0!==f?f:""}`:"",onBackPress:()=>{null==x||x()}},{children:[e.jsx(r.default,{showVariableMapping:p,channel:m,whatsappSpecificPickerMeta:b,showVariableModal:M,variableList:T,discountCode:E,setDiscountCode:P}),C?e.jsx(i.default,{onSelect:function(){const e=null==C?void 0:C(D,_,null!=y?y:"");e?k(!!e):O(!0)}}):e.jsx(e.Fragment,{})]}))}))};
|
|
@@ -3,7 +3,7 @@ import { CHANNEL_TYPE } from "../../template-preview/models/Channels";
|
|
|
3
3
|
import { EmailTemplateType } from "../../template-preview/models/EmailTemplate";
|
|
4
4
|
import { SMSTemplateType } from "../../template-preview/models/SmsTemplate";
|
|
5
5
|
import { CUSTOM_VARIABLE, globalNormalizedPlaceholdersType } from "../../template-preview/models/TemplateMeta";
|
|
6
|
-
import {
|
|
6
|
+
import { WhatsAppTemplate, WhatsAppTemplateVariables } from "../../template-preview/models/WhatsAppTemplate";
|
|
7
7
|
export type DEVICE_TYPES = 'desktop' | 'mobile';
|
|
8
8
|
export declare const TemplateModalContext: React.Context<{
|
|
9
9
|
device: DEVICE_TYPES;
|
|
@@ -21,10 +21,6 @@ export declare const TemplateModalContext: React.Context<{
|
|
|
21
21
|
globalNormalizedPlaceholders?: globalNormalizedPlaceholdersType[] | undefined;
|
|
22
22
|
templateSelectionTriggered: boolean;
|
|
23
23
|
setTemplateSelectionTriggered?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
24
|
-
enabledCustomText?: boolean | undefined;
|
|
25
|
-
disableEditVariable?: boolean | undefined;
|
|
26
|
-
pod?: string | undefined;
|
|
27
|
-
extras?: ExtrasWhatsapp | undefined;
|
|
28
24
|
}>;
|
|
29
25
|
export declare const useTemplateModalContext: () => {
|
|
30
26
|
device: DEVICE_TYPES;
|
|
@@ -42,8 +38,4 @@ export declare const useTemplateModalContext: () => {
|
|
|
42
38
|
globalNormalizedPlaceholders?: globalNormalizedPlaceholdersType[] | undefined;
|
|
43
39
|
templateSelectionTriggered: boolean;
|
|
44
40
|
setTemplateSelectionTriggered?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
45
|
-
enabledCustomText?: boolean | undefined;
|
|
46
|
-
disableEditVariable?: boolean | undefined;
|
|
47
|
-
pod?: string | undefined;
|
|
48
|
-
extras?: ExtrasWhatsapp | undefined;
|
|
49
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../template-preview/models/Channels.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../template-preview/models/Channels.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const r=l(e).default.createContext({device:"desktop",templateSelectionTriggered:!1,display_content:null,originalVariableList:[],channel:t.CHANNEL_TYPE.EMAIL,template:null,isError:!1});exports.TemplateModalContext=r,exports.useTemplateModalContext=()=>e.useContext(r);
|
|
@@ -6,10 +6,8 @@ export interface BodyProps {
|
|
|
6
6
|
whatsappSpecificPickerMeta?: WhatsAppPickerMeta;
|
|
7
7
|
showVariableModal?: boolean;
|
|
8
8
|
variableList?: VariableListInterfaceV2[];
|
|
9
|
-
variableListForImage?: VariableListInterfaceV2[];
|
|
10
9
|
discountCode?: string;
|
|
11
10
|
setDiscountCode?: (code: string) => void;
|
|
12
|
-
showSampleValues?: boolean;
|
|
13
11
|
}
|
|
14
12
|
declare const Body: (props: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export default Body;
|