@bikdotai/bik-component-library 0.0.441 → 0.0.442-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
|
-
import{
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import c from"../../assets/icons/search.svg.js";import{useReducer as r,useState as s,useEffect as l}from"react";import{COLORS as i}from"../../constants/Theme.js";import{Button as n}from"../button/Button.js";import{Input as d}from"../input/Input.js";import{StyledModal as a}from"../modals/styledModal.js";import{Spinner as h}from"../spinner/Spinner.js";import{Tag as u}from"../tag/Tag.js";import{CollectionsScreen as p}from"./collectionScreen.js";import{ProductsScreen as m}from"./productScreen.js";import{collectionsReducer as C,selectedColectionsReducer as b,CollectionIdContext as v}from"./reducers.js";import{SearchScreen as g}from"./searchScreen.js";import{SelectedScreen as f}from"./selectedScreen.js";import{ContainerStyle as y,ScrollContainerStyle as j}from"./style.js";import{OUT_OF_STOCK_ACTION as S}from"./type.js";const x=x=>{const{storeId:k,selectedItems:I,onClose:P,visible:T,zIndex:F,limit:O,hideCollectionCheckbox:D,hideProductCheckbox:E,outOfStockAction:R=S.BLUR,hideVariantCheckbox:w,selectProductsFromCustomCollection:B,hideSelectionCount:A,placeholderTitle:L="Search products..."}=x,[z,G]=r(C,{}),[$,V]=s("collections"),[H,K]=s(""),[M,U]=s(0),[Y,q]=s(!1),[J,N]=s(0),[Q,W]=s(""),[X,Z]=s(!1),[_,ee]=s(!1),[te,oe]=s(),[ce,re]=r(b,Object.keys(I).length>0?I:{});l((()=>{q(!0),ee(!0),x.collectionFetcher(M,k).then((e=>{G({type:"fetched",data:(null==e?void 0:e.collections)||{}}),q(!1),U((e=>e+1)),ee(!1)})).catch()}),[]),l((()=>{let e=0;Object.keys(ce||[]).forEach((t=>{var o;Object.keys((null===(o=ce[t])||void 0===o?void 0:o.products)||[]).forEach((o=>{var c,r;Object.keys((null===(r=null===(c=ce[t].products)||void 0===c?void 0:c[o])||void 0===r?void 0:r.variants)||[]).forEach((()=>{e+=1}))}))})),N(e)})),l((()=>{var e;H&&!(null===(e=null==z?void 0:z[H])||void 0===e?void 0:e.products)&&(q(!0),x.productFetcher(H,k).then((e=>{Object.keys(e).length&&G({type:"productsFetched",data:{collectionId:H,products:e}}),q(!1)})).catch())}),[H]),l((()=>{const e=setTimeout((()=>{Q.length?(Z(!0),x.searchFetcher(k,Q).then((e=>{oe(Object.assign({},e)),V("searchProducts"),q(!1),Z(!1)}))):V("collections")}),800);return()=>clearTimeout(e)}),[Q]);const se=()=>{re({type:"reset",data:{}})};return e(a,Object.assign({zIndex:F,open:T,onClose:()=>{P(),se()},headingTitle:"collections"===$||"products"===$?"Select Products":"view"===$?"Selected Products":"searchProducts"===$?"Searched Products":void 0,footerShadow:!0,centralContainerStyles:{width:"480px"},primaryButton:{buttonText:Y?"Loading...":"Add",disabled:Y||J<1||O&&J>O||!1,onClick:()=>{x.onAdd(ce,J),se()}},footerLeftCustomElement:A?e(t,{}):O&&J>O?e(u,{tagText:`You can only select ${O} products`,type:"negative"}):e(n,J>0?{onClick:()=>{V("view")},buttonText:`${J} products selected`,buttonType:"tertiaryGray"}:{disabled:!0,buttonText:`${J} products selected`,buttonType:"tertiaryGray"})},{children:o(y,{children:[!x.hideGlobalSearch&&e(t,{children:("collections"===$||"searchProducts"===$)&&e("div",Object.assign({style:{padding:"12px 24px",borderBottom:"1px solid #E0E0E0"}},{children:e(d,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>X?e(h,{size:"small",color:i.content.primary}):e(c,{})},id:"listInput",height:"24px",type:"text",value:Q,onChangeText:e=>{e.length&&e.trim().length?W(e):W("")},placeholder:L})}))}),o(j,{children:["collections"===$&&e(p,{customCollectionRestriction:x.customCollectionRestriction,dataLoading:_,collections:z,selectedCollectionsDispatch:re,setCollectionId:K,setScreen:V,selectedCollections:ce,collectionFetcher:x.collectionFetcher,storeId:k,collectionsDispatch:G,setSaveDisabled:q,pagingControls:{curPage:M,setCurPage:U},hideCollectionCheckbox:D}),"products"===$&&H&&e(v.Provider,Object.assign({value:H},{children:e(m,{hideInCollectionSearch:x.hideInCollectionSearch,customCollectionRestriction:x.customCollectionRestriction,productFetcher:x.productFetcher,setScreen:V,storeId:k,data:z[H],collectionsDispatch:G,selectedCollectionsDispatch:re,selectedData:ce,setSaveDisabled:q,searchInCollectionFetcher:x.searchInCollectionFetcher,hideProductCheckbox:E,outOfStockAction:R,hideVariantCheckbox:w,selectProductsFromCustomCollection:B})})),"view"===$&&e(f,{selectedCollections:ce||{},selectedCollectionsDispatch:re,setScreen:V,collections:z}),"searchProducts"===$&&e(g,{customCollectionRestriction:x.customCollectionRestriction,selectedCollections:ce||{},searchedCollections:te||{},selectedCollectionsDispatch:re,setScreen:V,collections:z,onBackPress:()=>{W(""),oe({})}})]})]})}))};export{x as ProductPickerModal};
|
|
@@ -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
|
-
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import c from"../../assets/icons/box.svg.js";import d from"../../assets/icons/search.svg.js";import{cloneDeep as
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import c from"../../assets/icons/box.svg.js";import d from"../../assets/icons/search.svg.js";import{cloneDeep as l}from"lodash";import{useContext as n,useState as r,useEffect as s}from"react";import{Tag as a}from"../tag/Tag.js";import{COLORS as u}from"../../constants/Theme.js";import{CheckBox as h}from"../checkBox/CheckBox.js";import{IconButton as p}from"../icon-button/IconButton.js";import{Input as v}from"../input/Input.js";import{BikShimmer as m}from"../shimmer/ShimmerComponent/BikShimmer.js";import{ShimmerImage as f}from"../shimmer-image/ShimmerImage.js";import{Spinner as y}from"../spinner/Spinner.js";import{BodyCaption as g,TitleRegular as b}from"../TypographyStyle.js";import{truncate as j}from"./collectionScreen.js";import{EmptyState as k}from"./emptyState.js";import{ProductHelper as C}from"./helpers/ProductHelper.js";import{CollectionIdContext as I}from"./reducers.js";import{ProductScreenHeader as O,ProductScreenCollectionCardStyle as x,ProductCardStyle as S}from"./style.js";import{OUT_OF_STOCK_ACTION as P}from"./type.js";import{liftTheStateUp as w}from"./utility.js";const D=o=>{const a=n(I),{data:f,collectionsDispatch:j,selectedData:C,selectedCollectionsDispatch:S,productFetcher:D,storeId:V,setScreen:A,setSaveDisabled:T,hideInCollectionSearch:B,customCollectionRestriction:F,hideProductCheckbox:R,outOfStockAction:U=P.BLUR,hideVariantCheckbox:H=!1,selectProductsFromCustomCollection:L=!1}=o,[W,z]=r(""),[K,N]=r(!1),[_,q]=r(f);s((()=>{const t=setTimeout((()=>{W.length?(N(!0),o.searchInCollectionFetcher(V,a,W).then((t=>{var e;const o=l(f);o.products={};for(const i of t)(null===(e=null==f?void 0:f.products)||void 0===e?void 0:e[i])&&(o.products[i]=f.products[i]);q(o),T(!1),N(!1)}))):q(f)}),800);return()=>clearTimeout(t)}),[W]);const G=!!F&&f.isSmartCollection,J=t=>{var e,o,i,c,d,l,n,r;let s=0,u=0;return!!((null===(o=null===(e=null==C?void 0:C[a])||void 0===e?void 0:e.products)||void 0===o?void 0:o[t])&&(null===(d=Object.keys((null===(c=null===(i=null==f?void 0:f.products)||void 0===i?void 0:i[t])||void 0===c?void 0:c.variants)||[]))||void 0===d||d.forEach((()=>u++)),Object.keys((null===(r=null===(n=null===(l=null==C?void 0:C[a])||void 0===l?void 0:l.products)||void 0===n?void 0:n[t])||void 0===r?void 0:r.variants)||[]).forEach((()=>s++)),s>0&&u!==s))};s((()=>{(null==f?void 0:f.products)||M()}),[]);const M=()=>{T(!0),N(!0),D(a,V).then((t=>{Object.keys(t).length&&(j({type:"productsFetched",data:{collectionId:a,products:t}}),q(Object.assign(Object.assign({},_),{products:t}))),T(!1),N(!1)})).catch()},Q=(t,e)=>{const o=w(e,f);S({type:t,data:Object.assign(Object.assign({},o),{isRestricted:F})})};return t("div",{children:[t(O,{children:[e(p,{Icon:i,height:16,onClick:()=>{A("collections")}}),e(g,Object.assign({style:{color:u.content.secondary}},{children:f.name}))]}),!B&&e("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e(v,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>K&&W.length?e(y,{size:"small",color:u.content.primary}):e(d,{})},id:"listInput",height:"24px",type:"text",value:W,onChangeText:t=>{t.length&&t.trim().length?z(t):z("")},placeholder:"Search products in this collection..."})})),t("div",{children:[Object.keys((null==_?void 0:_.products)||[]).length>0&&!G&&!W.length&&!R&&t(x,{children:[e(h,{isChecked:!!(null==C?void 0:C[a]),isPartiallyChecked:(t=>{var e;let o=0,i=0;if(C[t]){const c=null==f?void 0:f.products;c&&Object.keys(c).forEach((t=>{var e;const i=null===(e=c[t])||void 0===e?void 0:e.variants;i&&Object.keys(i).forEach((t=>o+=1))}));const d=null===(e=C[t])||void 0===e?void 0:e.products;return d&&Object.keys(d).forEach((t=>{var e;const o=null===(e=d[t])||void 0===e?void 0:e.variants;o&&Object.keys(o).forEach((()=>i+=1))})),i>0&&o!==i}return!1})(a),onValueChange:function(t){S(t?{type:"selected",data:{id:a,val:f}}:{type:"unselected",data:{id:a}})}}),e("div",Object.assign({style:{width:40,height:40}},{children:e(c,{})})),e(b,{children:"All Products"})]}),Object.keys((null==_?void 0:_.products)||[]).length?Object.keys(_.products||[]).map((t=>e(E,{outOfStockAction:U,collectionId:a,isProductPartiallyChecked:J(t),productId:t,data:_.products[t],selectedData:C,selectedCollectionsDispatch:S,viewOnly:!L&&!!G,upliftAdditions:Q,hideProductCheckbox:R,hideVariantCheckbox:H},t))):K?[1,2,3,4,5,6,7,8,9,10].map(((t,o)=>e("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e(m,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o))):e(k,{title:"No products to show",subtitle:W.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})]})]})},E=o=>{const{collectionId:i,productId:c,data:d,selectedData:l,selectedCollectionsDispatch:n,viewOnly:r,upliftAdditions:s,isProductPartiallyChecked:a,hideProductCheckbox:u,outOfStockAction:h,hideVariantCheckbox:p}=o,v=t=>{var e,o,d,n,r,s;if(!(null===(o=null===(e=null==l?void 0:l[i])||void 0===e?void 0:e.products)||void 0===o?void 0:o[c]))return!1;return!!(null===(s=null===(r=null===(n=null===(d=null==l?void 0:l[i])||void 0===d?void 0:d.products)||void 0===n?void 0:n[c])||void 0===r?void 0:r.variants)||void 0===s?void 0:s[t])};return t("div",{children:[e(V,{isVariant:!1,data:d,productId:c,collectionId:i,isSelected:!!(null===(f=null===(m=null==l?void 0:l[i])||void 0===m?void 0:m.products)||void 0===f?void 0:f[c]),isPartiallyChecked:a,selectedCollectionsDispatch:n,upliftAdditions:s,viewOnly:r,hideProductCheckbox:u,hideVariantCheckbox:p},c),Object.keys(d.variants||[]).map((t=>e(V,{isVariant:!0,hideVariantCheckbox:p,data:d.variants[t],variantId:t,productId:c,viewOnly:r,upliftAdditions:s,collectionId:i,isSelected:v(t),selectedCollectionsDispatch:n,outOfStockAction:h},t)))]});var m,f},V=i=>{const{isVariant:c,data:d,productId:l,collectionId:n,variantId:r,isSelected:s,selectedCollectionsDispatch:u,viewOnly:p,upliftAdditions:v,isPartiallyChecked:m,hideProductCheckbox:y,outOfStockAction:g,hideVariantCheckbox:k}=i,I=C.getProductLabels(d,g);return t(S,Object.assign({isVariant:c},{children:[c&&!p&&!k||!c&&!p&&!y?e(h,{isChecked:s,isPartiallyChecked:m||!1,onValueChange:function(t){c?t?v("variantSelected",{productId:l,variantId:r,collectionId:n,variant:d}):u({type:"variantUnselected",data:{productId:l,variantId:r,collectionId:n}}):t?v("productSelected",{productId:l,collectionId:n,product:d}):u({type:"productUnselected",data:{productId:l,collectionId:n}})}}):e(o,{}),e("div",{children:e(f,{width:40,height:40,imageUrl:d.image,alt:"Item",borderRadius:4})}),t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(b,{children:j(d.name,40,!0)}),I?e("div",Object.assign({style:{width:90,display:"flex"}},{children:e(a,{tagText:I,type:"warning",theme:"light"})})):e(o,{})]}))]}))};export{V as ProductCard,E as ProductGroup,D as ProductsScreen};
|
|
@@ -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
|
-
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as
|
|
1
|
+
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as l}from"../icon-button/IconButton.js";import{BodyCaption as r}from"../TypographyStyle.js";import{EmptyState as s}from"./emptyState.js";import{ProductGroup as c}from"./productScreen.js";import{SelectedScreenHeader as d}from"./style.js";import{liftTheStateUp as n}from"./utility.js";const u=u=>{const{customCollectionRestriction:v,selectedCollections:a,searchedCollections:p,selectedCollectionsDispatch:m,setScreen:h,collections:f,onBackPress:j}=u,y=(o,t)=>{var e,i,l,r,s,c,d,n,u;let v=0,p=0;return!!((null===(i=null===(e=null==a?void 0:a[o])||void 0===e?void 0:e.products)||void 0===i?void 0:i[t])&&(null===(c=Object.keys((null===(s=null===(r=null===(l=null==f?void 0:f[o])||void 0===l?void 0:l.products)||void 0===r?void 0:r[t])||void 0===s?void 0:s.variants)||[]))||void 0===c||c.forEach((()=>p++)),Object.keys((null===(u=null===(n=null===(d=null==a?void 0:a[o])||void 0===d?void 0:d.products)||void 0===n?void 0:n[t])||void 0===u?void 0:u.variants)||[]).forEach((()=>v++)),v>0&&p!==v))};return o("div",{children:[o(d,{children:[t(l,{Icon:i,onClick:()=>{h("collections"),j()}}),t(r,{children:"Searched Products"})]}),t("div",{children:Object.keys(p).length?t(e,{children:Object.keys(p).map((o=>{var e;return Object.keys((null===(e=null==p?void 0:p[o])||void 0===e?void 0:e.products)||[]).map((e=>{let i=!1;return(null==p?void 0:p.isCustom)&&(i=!0),t(c,{collectionId:o,upliftAdditions:(t,e)=>((o,t,e)=>{const i=n(e,p[o]);m({type:t,data:Object.assign(Object.assign({},i),{isRestricted:v})})})(o,t,e),productId:e,data:p[o].products[e],isProductPartiallyChecked:y(o,e),selectedData:a,selectedCollectionsDispatch:m,viewOnly:i},e)}))}))}):t(s,{title:"No search results found",subtitle:"We couldn’t find the product you were looking for."})})]})};export{u as SearchScreen};
|
|
@@ -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>;
|
|
@@ -9,7 +9,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
9
9
|
overflow-x: hidden;
|
|
10
10
|
`,n=e.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,11 +17,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
17
17
|
column-gap: 16px;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
|
-
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
background-color: ${i.surface.hovered};
|
|
23
|
-
}
|
|
24
|
-
`,r=e.div`
|
|
20
|
+
`,l=e.div`
|
|
25
21
|
display: flex;
|
|
26
22
|
flex-direction: row;
|
|
27
23
|
justify-content: center;
|
|
@@ -31,7 +27,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
31
27
|
display: flex;
|
|
32
28
|
flex-direction: column;
|
|
33
29
|
justify-content: center;
|
|
34
|
-
`,
|
|
30
|
+
`,r=e.div`
|
|
35
31
|
display: flex;
|
|
36
32
|
flex-direction: row;
|
|
37
33
|
max-height: 32px;
|
|
@@ -41,16 +37,16 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
41
37
|
align-items: center;
|
|
42
38
|
padding: 8px 16px;
|
|
43
39
|
margin-top: 16px;
|
|
44
|
-
`,
|
|
40
|
+
`,x=e.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=e.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,10 +55,6 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
59
55
|
justify-content: flex-start;
|
|
60
56
|
align-items: center;
|
|
61
57
|
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
62
|
-
:hover {
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
background-color: ${i.surface.hovered};
|
|
65
|
-
}
|
|
66
58
|
`,c=e.div`
|
|
67
59
|
display: flex;
|
|
68
60
|
flex-direction: row;
|
|
@@ -75,36 +67,4 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
75
67
|
`,a=e.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=e.div`
|
|
95
|
-
height: 72px;
|
|
96
|
-
width: 72px;
|
|
97
|
-
display: flex;
|
|
98
|
-
align-items: center;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
margin: 16px;
|
|
101
|
-
`;e.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 ${i.stroke.primary};
|
|
109
|
-
border-radius: 4px;
|
|
110
|
-
`;export{d as CollectionCardDetailStyle,r as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,x as ProductCardStyle,p as ProductScreenCollectionCardStyle,l as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader,g as VariantCardGridStyle,s as VariantCardListStyle};
|
|
70
|
+
`;export{d as CollectionCardDetailStyle,l as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,p as ProductCardStyle,x as ProductScreenCollectionCardStyle,r as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader};
|
|
@@ -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
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="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",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="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",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{l as ShimmerImage};
|
|
@@ -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
|
-
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import i from"../../assets/icons/cross.svg.js";import{Button as n}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as d,SideModalHeader as
|
|
1
|
+
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import i from"../../assets/icons/cross.svg.js";import{Button as n}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as d,SideModalHeader as m,SideModalBody as a,SideModalFooter as h,FooterButtonWrapper as l}from"./SideModal.style.js";const p=p=>r.createPortal(o(c,Object.assign({zIndex:p.zIndex},{children:t(d,Object.assign({width:p.width},{children:[t(m,{children:[o(s,{children:p.header}),!p.hideCrossButton&&o(i,{width:24,height:24,onClick:p.onClose})]}),o(a,{children:p.children}),t(h,Object.assign({footerDirection:p.footerDirection},{children:[t(l,Object.assign({footerDirection:p.footerDirection},{children:[o(n,Object.assign({},p.saveButtonProps)),o(n,Object.assign({},p.cancelButtonProps))]})),p.footerCustomComponent?p.footerCustomComponent:o(e,{})]}))]}))})),document.body);export{p as SideModal};
|
|
@@ -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>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"styled-components";import{COLORS as i}from"../../constants/Theme.js";import{ComponentZindex as e}from"../../constants/zindex.js";const o=t.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
5
|
-
z-index: ${
|
|
5
|
+
z-index: ${t=>t.zIndex||e.SIDE_MODAL};
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
background-color: rgba(0, 0, 0, 0.4);
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: flex-end;
|
|
12
|
-
`,
|
|
12
|
+
`,r=t.div`
|
|
13
13
|
height: 100%;
|
|
14
|
-
width: ${
|
|
14
|
+
width: ${t=>t.width||"566px"};
|
|
15
15
|
background: ${i.surface.standard};
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
|
-
`,
|
|
19
|
+
`,n=t.div`
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 60px;
|
|
22
22
|
position: sticky;
|
|
@@ -31,27 +31,24 @@ import e,{css as t}from"styled-components";import{COLORS as i}from"../../constan
|
|
|
31
31
|
svg:hover {
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,d=t.div`
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
padding: 24px;
|
|
37
|
-
height:
|
|
38
|
-
|
|
39
|
-
${Object.keys(i).map((e=>`${e}: ${i[e]};`)).join("\n")}
|
|
40
|
-
`}}
|
|
41
|
-
`,p=e.div`
|
|
37
|
+
height: calc(100% - 120px);
|
|
38
|
+
`,s=t.div`
|
|
42
39
|
height: 60px;
|
|
43
40
|
width: 100%;
|
|
44
41
|
position: sticky;
|
|
45
42
|
bottom: 0;
|
|
46
43
|
display: flex;
|
|
47
|
-
flex-direction: ${
|
|
44
|
+
flex-direction: ${t=>t.footerDirection||"row"};
|
|
48
45
|
justify-content: space-between;
|
|
49
46
|
align-items: center;
|
|
50
47
|
background: ${i.surface.standard};
|
|
51
48
|
border-top: 1px solid ${i.stroke.primary};
|
|
52
49
|
padding: 0px 24px;
|
|
53
|
-
`,
|
|
50
|
+
`,p=t.div`
|
|
54
51
|
display: flex;
|
|
55
|
-
flex-direction: ${
|
|
52
|
+
flex-direction: ${t=>t.footerDirection||"row"};
|
|
56
53
|
gap: 8px;
|
|
57
|
-
`;export{
|
|
54
|
+
`;export{p as FooterButtonWrapper,d as SideModalBody,r as SideModalContainer,s as SideModalFooter,n as SideModalHeader,o as SideModalStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:c,emptyColor:u,filledColor:a,onClick:d,asHovered:m,onHover:h}=s;const[g,p]=e(!1);return r((()=>{null==h||h(g)}),[g]),r((()=>{m||p(!1)}),[m]),m?o(l,{onClick:()=>{null==d||d("select")},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):g?o(l,{onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),style:{cursor:"pointer"},onClick:()=>{null==d||d("select")},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):c?o(l,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},onClick:()=>{null==d||d("de-select")},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):o(t,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},onClick:()=>{null==d||d("select")},width:i,height:i,color:null!=u?u:n.surface.standard})};export{s as Star};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import I from"@emotion/styled/base";import{jsx as g}from"react/jsx-runtime";import{useState as C,useMemo as A,useEffect as c}from"react";import{Star as l}from"./Star.js";const b=I("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)."}}),e=I=>{let{emptyColor:e,filledColor:t,onChange:i,value:Z,maxValue:o,starSize:G}=I;const[d,n]=C(null!=Z?Z:0),[s,m]=C(!1),[a,X]=C(0),p=A((()=>Array(null!=o?o:5).fill(null).map(((I,g)=>g+1))),[o]);return c((()=>{s&&i(d)}),[d]),c((()=>{m(!0)}),[]),g(b,{children:p.map((I=>g(l,{asHovered:!!a&&I<=a,size:null!=G?G:24,filled:a?void 0:I<=d,emptyColor:e,filledColor:t,onClick:g=>{n("de-select"===g?I<d?I:I-1:I)},onHover:g=>{X(g?I:0)}},I)))})};export{e as StarRating};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import n from"react";import{BodyCaption as r}from"../TypographyStyle.js";import{ValidTagTypeMap as t}from"./model.js";import{Tag as a}from"./Tag.styled.js";import{getTagIconColor as c}from"./themes.js";const o=o=>{let{tagText:s,LeadingIcon:l,TrailingIcon:g,onLeadingIconClicked:d,leadingIconId:m,trailingIconId:p,onTrailingIconClicked:j,theme:b="light",type:h="neutral",variant:u="regular",version:y,cursor:O}=o,I=s,f=b,T=h;t[u][h]||(T="neutral"),"circle"===u&&(f="dark","number"==typeof I&&I>99&&(I="99+"));const k={height:16,width:16,color:c(b,T),style:{display:"block"}};return e(a,Object.assign({cursor:O,theme:f,type:h,variant:u,version:y},{children:i("div",Object.assign({className:"container"},{children:[l&&e("button",Object.assign({className:"icon-leading",onClick:d,id:`${m}-wrapper`||"leading-icon-wrapper"},{children:n.createElement(l,Object.assign(Object.assign({},k),{id:m||"leading-icon"}))})),e(r,Object.assign({className:"text"},{children:I})),g&&e("button",Object.assign({className:"icon-trailing",onClick:j,id:`${p}-wrapper`||"trailing-icon-wrapper"},{children:n.createElement(g,Object.assign(Object.assign({},k),{id:p||"trailing-icon"}))}))]}))}))};o.displayName="Tag";export{o as Tag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as
|
|
1
|
+
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as X}from"./themes.js";const g=c("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var l;return null!==(l=c.cursor)&&void 0!==l?l:"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=>l(c.variant)),";background-color:",(c=>b(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 ${d(c.type)};`)," .text{color:",(c=>X(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== */"));export{g as Tag};
|
|
@@ -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
|
-
const e={regular:{negative:!0,warning:!0,positive:!0,neutral:!0,white:!0,purple:!0,blue:!0
|
|
1
|
+
const e={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}};export{e as ValidTagTypeMap};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COLORS as r}from"../../constants/Theme.js";const n={blue:{iconColor:{light:r.content.blue,dark:r.content.primaryInverse},textColor:{light:r.content.blue,dark:r.content.primaryInverse},border:r.stroke.blue.lightAlt,backgroundColor:{light:r.background.blue.light,dark:r.content.blue,circle:r.content.blue}},purple:{iconColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},textColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},border:r.stroke.brandLightAlt,backgroundColor:{light:r.background.brandLight,dark:r.background.inverse,circle:r.background.inverse}},negative:{iconColor:{light:r.content.negative,dark:r.content.primaryInverse},textColor:{light:r.content.negative,dark:r.content.primaryInverse},border:r.stroke.negative.lightAlt,backgroundColor:{light:r.background.negative.light,dark:r.background.negative.vibrant,circle:r.background.negative.vibrant}},positive:{iconColor:{light:r.content.positive,dark:r.content.primaryInverse},textColor:{light:r.content.positive,dark:r.content.primaryInverse},border:r.stroke.positive.lightAlt,backgroundColor:{light:r.background.positive.light,dark:r.background.positive.vibrant,circle:r.background.positive.vibrant}},warning:{iconColor:{light:r.content.warning,dark:r.content.primary},textColor:{light:r.content.warning,dark:r.content.primary},border:r.stroke.warning.lightAlt,backgroundColor:{light:r.background.warning.light,dark:r.background.warning.vibrant,circle:r.background.warning.vibrant}},neutral:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.background.inverse,circle:r.background.inverseLight}},white:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.standard,dark:r.background.inverse,circle:r.background.inverseLight}},grey:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.content.secondary,circle:r.content.secondary}}
|
|
1
|
+
import{COLORS as r}from"../../constants/Theme.js";const n={blue:{iconColor:{light:r.content.blue,dark:r.content.primaryInverse},textColor:{light:r.content.blue,dark:r.content.primaryInverse},border:r.stroke.blue.lightAlt,backgroundColor:{light:r.background.blue.light,dark:r.content.blue,circle:r.content.blue}},purple:{iconColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},textColor:{light:r.background.inverseLight,dark:r.content.primaryInverse},border:r.stroke.brandLightAlt,backgroundColor:{light:r.background.brandLight,dark:r.background.inverse,circle:r.background.inverse}},negative:{iconColor:{light:r.content.negative,dark:r.content.primaryInverse},textColor:{light:r.content.negative,dark:r.content.primaryInverse},border:r.stroke.negative.lightAlt,backgroundColor:{light:r.background.negative.light,dark:r.background.negative.vibrant,circle:r.background.negative.vibrant}},positive:{iconColor:{light:r.content.positive,dark:r.content.primaryInverse},textColor:{light:r.content.positive,dark:r.content.primaryInverse},border:r.stroke.positive.lightAlt,backgroundColor:{light:r.background.positive.light,dark:r.background.positive.vibrant,circle:r.background.positive.vibrant}},warning:{iconColor:{light:r.content.warning,dark:r.content.primary},textColor:{light:r.content.warning,dark:r.content.primary},border:r.stroke.warning.lightAlt,backgroundColor:{light:r.background.warning.light,dark:r.background.warning.vibrant,circle:r.background.warning.vibrant}},neutral:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.background.inverse,circle:r.background.inverseLight}},white:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.standard,dark:r.background.inverse,circle:r.background.inverseLight}},grey:{iconColor:{light:r.content.secondary,dark:r.content.primaryInverse},textColor:{light:r.content.secondary,dark:r.content.primaryInverse},border:r.stroke.primary,backgroundColor:{light:r.surface.subdued,dark:r.content.secondary,circle:r.content.secondary}}},t=(r,t)=>n[t].iconColor[r],o=(r,t)=>n[t].textColor[r],e=r=>n[r].border,i=(r,t)=>n[t].backgroundColor[r],a=r=>"regular"===r?"4px 8px":"2px 6px";export{e as generateBorder,i as getBackgroundColor,a as getPadding,t as getTagIconColor,o as getTextColor};
|
|
@@ -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
|
-
import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useEffect as o,useState as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useEffect as o,useState as i,useMemo as a}from"react";import n from"../../utils/StringUtils.js";import{StyledModal as r}from"../modals/styledModal.js";import{CHANNEL_TYPE as s}from"../template-preview/models/Channels.js";import{TemplateModalContext as c}from"./context/templateModalContext.js";import d from"./modalElements/Footer.js";import m from"./modalElements/TemplateSelectModalContent.js";import{convertPlaceholdersToBikDropdown as p}from"./utils/convertPlaceholdersToBikDropdown.js";const h=h=>{let{selectedTemplate:u,closeDialog:g,showVariableMapping:b,channel:v,htmlContent:f,templateVariables:C,onTemplateSelect:M,globalPlaceholders:S,showOnlyContent:j,whatsappSpecificPickerMeta:w,zIndex:P,showVariableModal:T,variableList:L,discountCode:y,setDiscountCode:E,onBackPress:V}=h;var k,x;o((()=>{O(f)}),[f]);const[D,I]=i(v===s.EMAIL?"desktop":"mobile"),[A,O]=i(f),[z,B]=i(!1),[F,H]=i(u),[$,N]=i(null!=C?C:[]),[U,W]=i(!1);const _=a((()=>p(S)),[S]);return e(c.Provider,Object.assign({value:{template:F,setTemplate:H,device:D,setDevice:I,display_content:A,setDisplayContent:O,originalVariableList:$,setOriginalVariableList:N,isError:z,setIsError:B,channel:v,globalNormalizedPlaceholders:_,templateSelectionTriggered:U,setTemplateSelectionTriggered:W}},{children:j?e(m,{channel:s.EMAIL,hideHeader:!0}):t(r,Object.assign({zIndex:P,centralContainerStyles:{width:v===s.EMAIL&&b?1e3:650},open:!0,onClose:()=>{null==g||g()},headingTitle:null==F?void 0:F.label,headingSubtitle:v===s.WHATSAPP?`${n.capitaliseFirstLetterOfString(null!==(k=null==F?void 0:F.category)&&void 0!==k?k:"")} • ${null!==(x=null==F?void 0:F.templateCategory)&&void 0!==x?x:""}`:"",onBackPress:()=>{null==V||V()}},{children:[e(m,{showVariableMapping:b,channel:v,whatsappSpecificPickerMeta:w,showVariableModal:T,variableList:L,discountCode:y,setDiscountCode:E}),M?e(d,{onSelect:function(){const e=null==M?void 0:M(F,$,null!=A?A:"");e?B(!!e):W(!0)}}):e(l,{})]}))}))};export{h as TemplateContextMapper};
|
|
@@ -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
|
-
import e,{useContext as t}from"react";import{CHANNEL_TYPE as
|
|
1
|
+
import e,{useContext as t}from"react";import{CHANNEL_TYPE as r}from"../../template-preview/models/Channels.js";const l=e.createContext({device:"desktop",templateSelectionTriggered:!1,display_content:null,originalVariableList:[],channel:r.EMAIL,template:null,isError:!1}),o=()=>t(l);export{l as TemplateModalContext,o as useTemplateModalContext};
|