@bikdotai/bik-component-library 0.0.733-beta.1 → 0.0.733-beta.2
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/Ai_event_generating.svg.js +1 -1
- package/dist/cjs/assets/icons/expressionless_emoji.svg.js +1 -0
- package/dist/cjs/assets/icons/sad_emoji.svg.js +1 -0
- package/dist/cjs/assets/icons/smiley_emoji.svg.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.d.ts +2 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connectorPosition.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +22 -2
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/types/index.d.ts +1 -2
- package/dist/cjs/components/SearchFilter/components/DatePickerButton.d.ts +1 -1
- package/dist/cjs/components/SearchFilter/components/DateRangeOnlyButton.d.ts +1 -1
- package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.d.ts +1 -1
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/cjs/components/SearchFilter/types/SearchFilter.type.d.ts +1 -1
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
- package/dist/cjs/components/accordion/Accordion.d.ts +35 -2
- package/dist/cjs/components/accordion/Accordion.style.d.ts +1 -1
- package/dist/cjs/components/analytics-card/AnalyticsCard.d.ts +1 -1
- package/dist/cjs/components/analytics-card/AnalyticsCard.styled.d.ts +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +17 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.d.ts +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +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/VerticalBarGraph/VerticalGraph.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.d.ts +3 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.d.ts +3 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.d.ts +8 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +25 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/index.d.ts +1 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/scoreBlock/types.d.ts +54 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/index.d.ts +1 -0
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +1 -1
- package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +1 -1
- package/dist/cjs/components/bik-layout/SidebarSkeleton.d.ts +1 -1
- package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +1 -1
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +27 -1
- package/dist/cjs/components/floating-input-dropdown/FloatingInputDropdown.d.ts +1 -1
- package/dist/cjs/components/image-cropper/BikImageCropper.d.ts +6 -1
- package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +1 -1
- package/dist/cjs/components/input/ChipInput.js +1 -1
- package/dist/cjs/components/input/Input-helper.d.ts +1 -1
- package/dist/cjs/components/input/Input.d.ts +71 -1
- package/dist/cjs/components/input/Input.styled.d.ts +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +1 -1
- package/dist/cjs/components/list-item/ListItem.d.ts +17 -1
- package/dist/cjs/components/list-item/ListItem.styled.d.ts +1 -1
- package/dist/cjs/components/list-item/themes.d.ts +1 -1
- package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.d.ts +8 -0
- package/dist/cjs/components/multi-level-dropdown/GroupedMenuList.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MenuItem.d.ts +8 -0
- package/dist/cjs/components/multi-level-dropdown/MenuItem.js +1 -0
- package/dist/cjs/components/multi-level-dropdown/MenuList.d.ts +3 -2
- package/dist/cjs/components/multi-level-dropdown/MenuList.js +1 -1
- package/dist/cjs/components/postPicker/postPicker.js +1 -1
- package/dist/cjs/components/product-picker-v2/ProductPickerTag.d.ts +2 -2
- package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +3 -3
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +4 -3
- package/dist/cjs/components/product-picker-v2/index.d.ts +1 -1
- package/dist/cjs/components/product-picker-v2/modal.d.ts +58 -2
- package/dist/cjs/components/product-picker-v2/product.d.ts +3 -2
- package/dist/cjs/components/product-picker-v2/productInfoOverlay.d.ts +2 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +3 -3
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +4 -3
- package/dist/cjs/components/product-picker-v2/reducers.d.ts +1 -1
- package/dist/cjs/components/product-picker-v2/reducers.js +1 -1
- package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +4 -3
- package/dist/cjs/components/product-picker-v2/selectedScreen.d.ts +4 -3
- package/dist/cjs/components/product-picker-v2/type.d.ts +0 -65
- package/dist/cjs/components/product-picker-v2/utility.d.ts +3 -3
- package/dist/cjs/components/product-picker-v2/utility.js +1 -1
- package/dist/cjs/components/product-picker-v2/variant.d.ts +12 -2
- package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +3 -2
- package/dist/cjs/components/sample-button/SampleButton.d.ts +16 -1
- package/dist/cjs/components/sample-button/SampleButton.styled.d.ts +1 -1
- package/dist/cjs/components/sample-button/themes.d.ts +1 -1
- package/dist/cjs/components/searchBar/searchBar.d.ts +1 -1
- package/dist/cjs/components/spinner/Spinner.d.ts +0 -1
- package/dist/cjs/components/spinner/Spinner.js +4 -5
- package/dist/cjs/components/spinner/lotties/black.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/brand.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/red.json.js +1 -0
- package/dist/cjs/components/spinner/lotties/white.json.js +1 -0
- package/dist/cjs/components/spinner/themes.d.ts +0 -3
- package/dist/cjs/components/spinner/themes.js +1 -1
- package/dist/cjs/components/stepper/Stepper.d.ts +17 -1
- package/dist/cjs/components/stepper/Stepper.styled.d.ts +1 -1
- package/dist/cjs/components/stepper/StepperService.d.ts +1 -1
- package/dist/cjs/components/stepper/themes.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +9 -9
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +7 -7
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.d.ts +4 -6
- package/dist/cjs/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +10 -10
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +14 -3
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +5 -5
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/Footer.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/QualityWarningModal.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +4 -5
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +2 -2
- package/dist/cjs/components/template-context-mapper/utils/highlightFor.d.ts +1 -1
- package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/cjs/components/template-preview/models/WhatsappCarouselTemplate.d.ts +2 -2
- package/dist/cjs/components/variable-picker-v3/SubHeaderItems.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/assets/icons/Ai_event_generating.svg.js +1 -1
- package/dist/esm/assets/icons/expressionless_emoji.svg.js +1 -0
- package/dist/esm/assets/icons/sad_emoji.svg.js +1 -0
- package/dist/esm/assets/icons/smiley_emoji.svg.js +1 -0
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.d.ts +2 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connectorPosition.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/PropertyCustomProcessor.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +22 -2
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderAPI.type.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/types/index.d.ts +1 -2
- package/dist/esm/components/SearchFilter/components/DatePickerButton.d.ts +1 -1
- package/dist/esm/components/SearchFilter/components/DateRangeOnlyButton.d.ts +1 -1
- package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.d.ts +1 -1
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/esm/components/SearchFilter/types/SearchFilter.type.d.ts +1 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +1 -1
- package/dist/esm/components/accordion/Accordion.d.ts +35 -2
- package/dist/esm/components/accordion/Accordion.style.d.ts +1 -1
- package/dist/esm/components/analytics-card/AnalyticsCard.d.ts +1 -1
- package/dist/esm/components/analytics-card/AnalyticsCard.styled.d.ts +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +17 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChipChannelFooter.d.ts +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMultiChip.d.ts +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/VerticalBarGraph/VerticalGraph.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.d.ts +3 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/Chip.js +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.d.ts +3 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/HorizontalBar.js +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.d.ts +8 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.d.ts +25 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.styled.js +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/index.d.ts +1 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/scoreBlock/types.d.ts +54 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/index.d.ts +1 -0
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +1 -1
- package/dist/esm/components/bik-layout/SidebarPopup.d.ts +1 -1
- package/dist/esm/components/bik-layout/SidebarSkeleton.d.ts +1 -1
- package/dist/esm/components/bik-layout/SidebarStyles.d.ts +1 -1
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +27 -1
- package/dist/esm/components/floating-input-dropdown/FloatingInputDropdown.d.ts +1 -1
- package/dist/esm/components/image-cropper/BikImageCropper.d.ts +6 -1
- package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +1 -1
- package/dist/esm/components/input/ChipInput.js +1 -1
- package/dist/esm/components/input/Input-helper.d.ts +1 -1
- package/dist/esm/components/input/Input.d.ts +71 -1
- package/dist/esm/components/input/Input.styled.d.ts +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +1 -1
- package/dist/esm/components/list-item/ListItem.d.ts +17 -1
- package/dist/esm/components/list-item/ListItem.styled.d.ts +1 -1
- package/dist/esm/components/list-item/themes.d.ts +1 -1
- package/dist/esm/components/multi-level-dropdown/GroupedMenuList.d.ts +8 -0
- package/dist/esm/components/multi-level-dropdown/GroupedMenuList.js +1 -0
- package/dist/esm/components/multi-level-dropdown/MenuItem.d.ts +8 -0
- package/dist/esm/components/multi-level-dropdown/MenuItem.js +1 -0
- package/dist/esm/components/multi-level-dropdown/MenuList.d.ts +3 -2
- package/dist/esm/components/multi-level-dropdown/MenuList.js +1 -1
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/product-picker-v2/ProductPickerTag.d.ts +2 -2
- package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +3 -3
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +4 -3
- package/dist/esm/components/product-picker-v2/index.d.ts +1 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +58 -2
- package/dist/esm/components/product-picker-v2/product.d.ts +3 -2
- package/dist/esm/components/product-picker-v2/productInfoOverlay.d.ts +2 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +3 -3
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +4 -3
- package/dist/esm/components/product-picker-v2/reducers.d.ts +1 -1
- package/dist/esm/components/product-picker-v2/reducers.js +1 -1
- package/dist/esm/components/product-picker-v2/searchScreen.d.ts +4 -3
- package/dist/esm/components/product-picker-v2/selectedScreen.d.ts +4 -3
- package/dist/esm/components/product-picker-v2/type.d.ts +0 -65
- package/dist/esm/components/product-picker-v2/utility.d.ts +3 -3
- package/dist/esm/components/product-picker-v2/utility.js +1 -1
- package/dist/esm/components/product-picker-v2/variant.d.ts +12 -2
- package/dist/esm/components/product-picker-v2/variantComponents.d.ts +3 -2
- package/dist/esm/components/sample-button/SampleButton.d.ts +16 -1
- package/dist/esm/components/sample-button/SampleButton.styled.d.ts +1 -1
- package/dist/esm/components/sample-button/themes.d.ts +1 -1
- package/dist/esm/components/searchBar/searchBar.d.ts +1 -1
- package/dist/esm/components/spinner/Spinner.d.ts +0 -1
- package/dist/esm/components/spinner/Spinner.js +6 -7
- package/dist/esm/components/spinner/lotties/black.json.js +1 -0
- package/dist/esm/components/spinner/lotties/brand.json.js +1 -0
- package/dist/esm/components/spinner/lotties/red.json.js +1 -0
- package/dist/esm/components/spinner/lotties/white.json.js +1 -0
- package/dist/esm/components/spinner/themes.d.ts +0 -3
- package/dist/esm/components/spinner/themes.js +1 -1
- package/dist/esm/components/stepper/Stepper.d.ts +17 -1
- package/dist/esm/components/stepper/Stepper.styled.d.ts +1 -1
- package/dist/esm/components/stepper/StepperService.d.ts +1 -1
- package/dist/esm/components/stepper/themes.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +9 -9
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +7 -7
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.d.ts +4 -6
- package/dist/esm/components/template-context-mapper/helpers/WebpushTemplateHelper.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +10 -10
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWebpushTemplate.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.d.ts +14 -3
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppCarouselTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/Footer.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/esm/components/template-context-mapper/modalElements/QualityWarningModal.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateAnalyticsComponent.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.d.ts +4 -5
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/useEditWhtasappTemplateMedia.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/convertPlaceholdersToBikDropdown.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.d.ts +2 -2
- package/dist/esm/components/template-context-mapper/utils/highlightFor.d.ts +1 -1
- package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/esm/components/template-preview/models/WhatsappCarouselTemplate.d.ts +2 -2
- package/dist/esm/components/variable-picker-v3/SubHeaderItems.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +4 -3
- package/dist/cjs/_virtual/_cloneBuffer.js +0 -1
- package/dist/cjs/_virtual/_nodeUtil.js +0 -1
- package/dist/cjs/_virtual/isBuffer.js +0 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderEnum.type.d.ts +0 -21
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderEnum.type.js +0 -1
- package/dist/cjs/components/accordion/Accordion.model.d.ts +0 -35
- package/dist/cjs/components/analytics-card/AnalyticsCard.model.d.ts +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.model.d.ts +0 -18
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.d.ts +0 -2
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LazyCharts.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.d.ts +0 -7
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.d.ts +0 -6
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +0 -1
- package/dist/cjs/components/bik-layout/Sidebar.model.d.ts +0 -27
- package/dist/cjs/components/image-cropper/BikImageCropper.model.d.ts +0 -6
- package/dist/cjs/components/input/Input.model.d.ts +0 -72
- package/dist/cjs/components/list-item/List.model.d.ts +0 -18
- package/dist/cjs/components/sample-button/SampleButton.model.d.ts +0 -17
- package/dist/cjs/components/stepper/Stepper.model.d.ts +0 -17
- package/dist/cjs/components/template-context-mapper/modalElements/modal.d.ts +0 -13
- package/dist/cjs/node_modules/lodash/_DataView.js +0 -1
- package/dist/cjs/node_modules/lodash/_Hash.js +0 -1
- package/dist/cjs/node_modules/lodash/_ListCache.js +0 -1
- package/dist/cjs/node_modules/lodash/_Map.js +0 -1
- package/dist/cjs/node_modules/lodash/_MapCache.js +0 -1
- package/dist/cjs/node_modules/lodash/_Promise.js +0 -1
- package/dist/cjs/node_modules/lodash/_Set.js +0 -1
- package/dist/cjs/node_modules/lodash/_Stack.js +0 -1
- package/dist/cjs/node_modules/lodash/_Symbol.js +0 -1
- package/dist/cjs/node_modules/lodash/_Uint8Array.js +0 -1
- package/dist/cjs/node_modules/lodash/_WeakMap.js +0 -1
- package/dist/cjs/node_modules/lodash/_arrayEach.js +0 -1
- package/dist/cjs/node_modules/lodash/_arrayFilter.js +0 -1
- package/dist/cjs/node_modules/lodash/_arrayLikeKeys.js +0 -1
- package/dist/cjs/node_modules/lodash/_arrayPush.js +0 -1
- package/dist/cjs/node_modules/lodash/_assignValue.js +0 -1
- package/dist/cjs/node_modules/lodash/_assocIndexOf.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseAssign.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseAssignIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseAssignValue.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseClone.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseCreate.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseGetAllKeys.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseGetTag.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseIsArguments.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseIsMap.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseIsNative.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseIsSet.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseIsTypedArray.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseKeys.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseKeysIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseTimes.js +0 -1
- package/dist/cjs/node_modules/lodash/_baseUnary.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneArrayBuffer.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneBuffer.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneDataView.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneRegExp.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneSymbol.js +0 -1
- package/dist/cjs/node_modules/lodash/_cloneTypedArray.js +0 -1
- package/dist/cjs/node_modules/lodash/_copyArray.js +0 -1
- package/dist/cjs/node_modules/lodash/_copyObject.js +0 -1
- package/dist/cjs/node_modules/lodash/_copySymbols.js +0 -1
- package/dist/cjs/node_modules/lodash/_copySymbolsIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_coreJsData.js +0 -1
- package/dist/cjs/node_modules/lodash/_defineProperty.js +0 -1
- package/dist/cjs/node_modules/lodash/_freeGlobal.js +0 -1
- package/dist/cjs/node_modules/lodash/_getAllKeys.js +0 -1
- package/dist/cjs/node_modules/lodash/_getAllKeysIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_getMapData.js +0 -1
- package/dist/cjs/node_modules/lodash/_getNative.js +0 -1
- package/dist/cjs/node_modules/lodash/_getPrototype.js +0 -1
- package/dist/cjs/node_modules/lodash/_getRawTag.js +0 -1
- package/dist/cjs/node_modules/lodash/_getSymbols.js +0 -1
- package/dist/cjs/node_modules/lodash/_getSymbolsIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_getTag.js +0 -1
- package/dist/cjs/node_modules/lodash/_getValue.js +0 -1
- package/dist/cjs/node_modules/lodash/_hashClear.js +0 -1
- package/dist/cjs/node_modules/lodash/_hashDelete.js +0 -1
- package/dist/cjs/node_modules/lodash/_hashGet.js +0 -1
- package/dist/cjs/node_modules/lodash/_hashHas.js +0 -1
- package/dist/cjs/node_modules/lodash/_hashSet.js +0 -1
- package/dist/cjs/node_modules/lodash/_initCloneArray.js +0 -1
- package/dist/cjs/node_modules/lodash/_initCloneByTag.js +0 -1
- package/dist/cjs/node_modules/lodash/_initCloneObject.js +0 -1
- package/dist/cjs/node_modules/lodash/_isIndex.js +0 -1
- package/dist/cjs/node_modules/lodash/_isKeyable.js +0 -1
- package/dist/cjs/node_modules/lodash/_isMasked.js +0 -1
- package/dist/cjs/node_modules/lodash/_isPrototype.js +0 -1
- package/dist/cjs/node_modules/lodash/_listCacheClear.js +0 -1
- package/dist/cjs/node_modules/lodash/_listCacheDelete.js +0 -1
- package/dist/cjs/node_modules/lodash/_listCacheGet.js +0 -1
- package/dist/cjs/node_modules/lodash/_listCacheHas.js +0 -1
- package/dist/cjs/node_modules/lodash/_listCacheSet.js +0 -1
- package/dist/cjs/node_modules/lodash/_mapCacheClear.js +0 -1
- package/dist/cjs/node_modules/lodash/_mapCacheDelete.js +0 -1
- package/dist/cjs/node_modules/lodash/_mapCacheGet.js +0 -1
- package/dist/cjs/node_modules/lodash/_mapCacheHas.js +0 -1
- package/dist/cjs/node_modules/lodash/_mapCacheSet.js +0 -1
- package/dist/cjs/node_modules/lodash/_nativeCreate.js +0 -1
- package/dist/cjs/node_modules/lodash/_nativeKeys.js +0 -1
- package/dist/cjs/node_modules/lodash/_nativeKeysIn.js +0 -1
- package/dist/cjs/node_modules/lodash/_nodeUtil.js +0 -1
- package/dist/cjs/node_modules/lodash/_objectToString.js +0 -1
- package/dist/cjs/node_modules/lodash/_overArg.js +0 -1
- package/dist/cjs/node_modules/lodash/_root.js +0 -1
- package/dist/cjs/node_modules/lodash/_stackClear.js +0 -1
- package/dist/cjs/node_modules/lodash/_stackDelete.js +0 -1
- package/dist/cjs/node_modules/lodash/_stackGet.js +0 -1
- package/dist/cjs/node_modules/lodash/_stackHas.js +0 -1
- package/dist/cjs/node_modules/lodash/_stackSet.js +0 -1
- package/dist/cjs/node_modules/lodash/_toSource.js +0 -1
- package/dist/cjs/node_modules/lodash/cloneDeep.js +0 -1
- package/dist/cjs/node_modules/lodash/eq.js +0 -1
- package/dist/cjs/node_modules/lodash/isArguments.js +0 -1
- package/dist/cjs/node_modules/lodash/isArray.js +0 -1
- package/dist/cjs/node_modules/lodash/isArrayLike.js +0 -1
- package/dist/cjs/node_modules/lodash/isBuffer.js +0 -1
- package/dist/cjs/node_modules/lodash/isFunction.js +0 -1
- package/dist/cjs/node_modules/lodash/isLength.js +0 -1
- package/dist/cjs/node_modules/lodash/isMap.js +0 -1
- package/dist/cjs/node_modules/lodash/isObject.js +0 -1
- package/dist/cjs/node_modules/lodash/isObjectLike.js +0 -1
- package/dist/cjs/node_modules/lodash/isSet.js +0 -1
- package/dist/cjs/node_modules/lodash/isTypedArray.js +0 -1
- package/dist/cjs/node_modules/lodash/keys.js +0 -1
- package/dist/cjs/node_modules/lodash/keysIn.js +0 -1
- package/dist/cjs/node_modules/lodash/stubArray.js +0 -1
- package/dist/cjs/node_modules/lodash/stubFalse.js +0 -1
- package/dist/esm/_virtual/_cloneBuffer.js +0 -1
- package/dist/esm/_virtual/_nodeUtil.js +0 -1
- package/dist/esm/_virtual/isBuffer.js +0 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderEnum.type.d.ts +0 -21
- package/dist/esm/components/QueryBuilder/types/QueryBuilderEnum.type.js +0 -1
- package/dist/esm/components/accordion/Accordion.model.d.ts +0 -35
- package/dist/esm/components/analytics-card/AnalyticsCard.model.d.ts +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.model.d.ts +0 -18
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LazyCharts.d.ts +0 -2
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LazyCharts.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.d.ts +0 -7
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.d.ts +0 -6
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +0 -1
- package/dist/esm/components/bik-layout/Sidebar.model.d.ts +0 -27
- package/dist/esm/components/image-cropper/BikImageCropper.model.d.ts +0 -6
- package/dist/esm/components/input/Input.model.d.ts +0 -72
- package/dist/esm/components/list-item/List.model.d.ts +0 -18
- package/dist/esm/components/sample-button/SampleButton.model.d.ts +0 -17
- package/dist/esm/components/stepper/Stepper.model.d.ts +0 -17
- package/dist/esm/components/template-context-mapper/modalElements/modal.d.ts +0 -13
- package/dist/esm/node_modules/lodash/_DataView.js +0 -1
- package/dist/esm/node_modules/lodash/_Hash.js +0 -1
- package/dist/esm/node_modules/lodash/_ListCache.js +0 -1
- package/dist/esm/node_modules/lodash/_Map.js +0 -1
- package/dist/esm/node_modules/lodash/_MapCache.js +0 -1
- package/dist/esm/node_modules/lodash/_Promise.js +0 -1
- package/dist/esm/node_modules/lodash/_Set.js +0 -1
- package/dist/esm/node_modules/lodash/_Stack.js +0 -1
- package/dist/esm/node_modules/lodash/_Symbol.js +0 -1
- package/dist/esm/node_modules/lodash/_Uint8Array.js +0 -1
- package/dist/esm/node_modules/lodash/_WeakMap.js +0 -1
- package/dist/esm/node_modules/lodash/_arrayEach.js +0 -1
- package/dist/esm/node_modules/lodash/_arrayFilter.js +0 -1
- package/dist/esm/node_modules/lodash/_arrayLikeKeys.js +0 -1
- package/dist/esm/node_modules/lodash/_arrayPush.js +0 -1
- package/dist/esm/node_modules/lodash/_assignValue.js +0 -1
- package/dist/esm/node_modules/lodash/_assocIndexOf.js +0 -1
- package/dist/esm/node_modules/lodash/_baseAssign.js +0 -1
- package/dist/esm/node_modules/lodash/_baseAssignIn.js +0 -1
- package/dist/esm/node_modules/lodash/_baseAssignValue.js +0 -1
- package/dist/esm/node_modules/lodash/_baseClone.js +0 -1
- package/dist/esm/node_modules/lodash/_baseCreate.js +0 -1
- package/dist/esm/node_modules/lodash/_baseGetAllKeys.js +0 -1
- package/dist/esm/node_modules/lodash/_baseGetTag.js +0 -1
- package/dist/esm/node_modules/lodash/_baseIsArguments.js +0 -1
- package/dist/esm/node_modules/lodash/_baseIsMap.js +0 -1
- package/dist/esm/node_modules/lodash/_baseIsNative.js +0 -1
- package/dist/esm/node_modules/lodash/_baseIsSet.js +0 -1
- package/dist/esm/node_modules/lodash/_baseIsTypedArray.js +0 -1
- package/dist/esm/node_modules/lodash/_baseKeys.js +0 -1
- package/dist/esm/node_modules/lodash/_baseKeysIn.js +0 -1
- package/dist/esm/node_modules/lodash/_baseTimes.js +0 -1
- package/dist/esm/node_modules/lodash/_baseUnary.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneArrayBuffer.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneBuffer.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneDataView.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneRegExp.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneSymbol.js +0 -1
- package/dist/esm/node_modules/lodash/_cloneTypedArray.js +0 -1
- package/dist/esm/node_modules/lodash/_copyArray.js +0 -1
- package/dist/esm/node_modules/lodash/_copyObject.js +0 -1
- package/dist/esm/node_modules/lodash/_copySymbols.js +0 -1
- package/dist/esm/node_modules/lodash/_copySymbolsIn.js +0 -1
- package/dist/esm/node_modules/lodash/_coreJsData.js +0 -1
- package/dist/esm/node_modules/lodash/_defineProperty.js +0 -1
- package/dist/esm/node_modules/lodash/_freeGlobal.js +0 -1
- package/dist/esm/node_modules/lodash/_getAllKeys.js +0 -1
- package/dist/esm/node_modules/lodash/_getAllKeysIn.js +0 -1
- package/dist/esm/node_modules/lodash/_getMapData.js +0 -1
- package/dist/esm/node_modules/lodash/_getNative.js +0 -1
- package/dist/esm/node_modules/lodash/_getPrototype.js +0 -1
- package/dist/esm/node_modules/lodash/_getRawTag.js +0 -1
- package/dist/esm/node_modules/lodash/_getSymbols.js +0 -1
- package/dist/esm/node_modules/lodash/_getSymbolsIn.js +0 -1
- package/dist/esm/node_modules/lodash/_getTag.js +0 -1
- package/dist/esm/node_modules/lodash/_getValue.js +0 -1
- package/dist/esm/node_modules/lodash/_hashClear.js +0 -1
- package/dist/esm/node_modules/lodash/_hashDelete.js +0 -1
- package/dist/esm/node_modules/lodash/_hashGet.js +0 -1
- package/dist/esm/node_modules/lodash/_hashHas.js +0 -1
- package/dist/esm/node_modules/lodash/_hashSet.js +0 -1
- package/dist/esm/node_modules/lodash/_initCloneArray.js +0 -1
- package/dist/esm/node_modules/lodash/_initCloneByTag.js +0 -1
- package/dist/esm/node_modules/lodash/_initCloneObject.js +0 -1
- package/dist/esm/node_modules/lodash/_isIndex.js +0 -1
- package/dist/esm/node_modules/lodash/_isKeyable.js +0 -1
- package/dist/esm/node_modules/lodash/_isMasked.js +0 -1
- package/dist/esm/node_modules/lodash/_isPrototype.js +0 -1
- package/dist/esm/node_modules/lodash/_listCacheClear.js +0 -1
- package/dist/esm/node_modules/lodash/_listCacheDelete.js +0 -1
- package/dist/esm/node_modules/lodash/_listCacheGet.js +0 -1
- package/dist/esm/node_modules/lodash/_listCacheHas.js +0 -1
- package/dist/esm/node_modules/lodash/_listCacheSet.js +0 -1
- package/dist/esm/node_modules/lodash/_mapCacheClear.js +0 -1
- package/dist/esm/node_modules/lodash/_mapCacheDelete.js +0 -1
- package/dist/esm/node_modules/lodash/_mapCacheGet.js +0 -1
- package/dist/esm/node_modules/lodash/_mapCacheHas.js +0 -1
- package/dist/esm/node_modules/lodash/_mapCacheSet.js +0 -1
- package/dist/esm/node_modules/lodash/_nativeCreate.js +0 -1
- package/dist/esm/node_modules/lodash/_nativeKeys.js +0 -1
- package/dist/esm/node_modules/lodash/_nativeKeysIn.js +0 -1
- package/dist/esm/node_modules/lodash/_nodeUtil.js +0 -1
- package/dist/esm/node_modules/lodash/_objectToString.js +0 -1
- package/dist/esm/node_modules/lodash/_overArg.js +0 -1
- package/dist/esm/node_modules/lodash/_root.js +0 -1
- package/dist/esm/node_modules/lodash/_stackClear.js +0 -1
- package/dist/esm/node_modules/lodash/_stackDelete.js +0 -1
- package/dist/esm/node_modules/lodash/_stackGet.js +0 -1
- package/dist/esm/node_modules/lodash/_stackHas.js +0 -1
- package/dist/esm/node_modules/lodash/_stackSet.js +0 -1
- package/dist/esm/node_modules/lodash/_toSource.js +0 -1
- package/dist/esm/node_modules/lodash/cloneDeep.js +0 -1
- package/dist/esm/node_modules/lodash/eq.js +0 -1
- package/dist/esm/node_modules/lodash/isArguments.js +0 -1
- package/dist/esm/node_modules/lodash/isArray.js +0 -1
- package/dist/esm/node_modules/lodash/isArrayLike.js +0 -1
- package/dist/esm/node_modules/lodash/isBuffer.js +0 -1
- package/dist/esm/node_modules/lodash/isFunction.js +0 -1
- package/dist/esm/node_modules/lodash/isLength.js +0 -1
- package/dist/esm/node_modules/lodash/isMap.js +0 -1
- package/dist/esm/node_modules/lodash/isObject.js +0 -1
- package/dist/esm/node_modules/lodash/isObjectLike.js +0 -1
- package/dist/esm/node_modules/lodash/isSet.js +0 -1
- package/dist/esm/node_modules/lodash/isTypedArray.js +0 -1
- package/dist/esm/node_modules/lodash/keys.js +0 -1
- package/dist/esm/node_modules/lodash/keysIn.js +0 -1
- package/dist/esm/node_modules/lodash/stubArray.js +0 -1
- package/dist/esm/node_modules/lodash/stubFalse.js +0 -1
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
export type Variant = 'default' | 'selected' | 'inactive' | 'error' | 'readonly' | 'placeholder' | 'separator';
|
|
3
|
+
export interface ListItemElement {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ListItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
variant?: Variant;
|
|
9
|
+
subText?: string;
|
|
10
|
+
listItem: ListItemElement;
|
|
11
|
+
onSelect?: (ListItemElement: any) => void;
|
|
12
|
+
leadingIcon?: JSX.Element;
|
|
13
|
+
trailingIcon?: JSX.Element;
|
|
14
|
+
borderBottom?: string;
|
|
15
|
+
customComponent?: JSX.Element;
|
|
16
|
+
customListItemLabel?: JSX.Element;
|
|
17
|
+
version?: '1.0' | '2.0';
|
|
18
|
+
}
|
|
3
19
|
export declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Variant } from './
|
|
2
|
+
import type { Variant } from './ListItem';
|
|
3
3
|
export declare const ListItem: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GroupedOption, MultiLevelDropdownOption } from './type';
|
|
3
|
+
export declare const GroupedMenuList: React.FC<{
|
|
4
|
+
width: string;
|
|
5
|
+
onDropdownItemClick?: (option: MultiLevelDropdownOption, parents: MultiLevelDropdownOption[]) => void;
|
|
6
|
+
option: GroupedOption;
|
|
7
|
+
parents: MultiLevelDropdownOption[];
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../constants/Theme.js"),r=require("../TypographyStyle.js"),o=require("./MenuItem.js"),s=require("./MultiLevelDropdown.styled.js");exports.GroupedMenuList=n=>{let{width:i,onDropdownItemClick:p,option:u,parents:d}=n;return e.jsxRuntimeExports.jsxs(s.GroupedMenuListContainer,{children:[e.jsxRuntimeExports.jsx(r.BodyTiny,Object.assign({style:{padding:"4px 8px 4px 12px",cursor:"default"},color:t.COLORS.content.placeholder},{children:u.label})),u.options.map(((t,r)=>e.jsxRuntimeExports.jsx(o.MenuItem,{width:i,onDropdownItemClick:p,option:t,parents:d},r)))]})};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MultiLevelDropdownOption, SingleOption } from './type';
|
|
3
|
+
export declare const MenuItem: React.FC<{
|
|
4
|
+
width: string;
|
|
5
|
+
onDropdownItemClick?: (option: MultiLevelDropdownOption, parents: MultiLevelDropdownOption[]) => void;
|
|
6
|
+
option: SingleOption;
|
|
7
|
+
parents: MultiLevelDropdownOption[];
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../assets/icons/chevronRight2.svg.js"),n=require("react"),s=require("../../constants/Theme.js"),i=require("../TypographyStyle.js"),o=require("./MultiLevelDropdown.styled.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(n);const d=l.default.lazy((()=>Promise.resolve().then((function(){return require("./MenuList.js")})).then((e=>({default:e.MenuList})))));exports.MenuItem=r=>{let{width:u,onDropdownItemClick:a,option:c,parents:p}=r;var x,j,m,h,R,g,v;const[O,b]=l.default.useState(!1),[C,f]=l.default.useState(!1),[S,E]=l.default.useState({top:0,left:0}),L=n.useRef({top:0,left:0});return e.jsxRuntimeExports.jsxs(o.MenuItemWrapper,Object.assign({onMouseEnter:e=>{b(!0),(e=>{const t=e.currentTarget.getBoundingClientRect();E({top:t.top,left:t.right}),L.current={top:t.top,left:t.right}})(e)},onMouseLeave:()=>{b(!1)},onClick:()=>{var e,t;!a||null!==(e=c.disabled)&&void 0!==e&&e||(null===(t=c.children)||void 0===t?void 0:t.length)||a(c,p)},id:"menuItemWrapper",style:{cursor:null!==(x=c.disabled)&&void 0!==x&&x?"not-allowed":"pointer",backgroundColor:null!==(j=c.disabled)&&void 0!==j&&j?s.COLORS.surface.standard:"transparent"}},{children:[c.customComponent?c.customComponent:e.jsxRuntimeExports.jsxs(o.MenuItemContainer,Object.assign({isSelected:c.selected,isSubMenuOpen:O,isHovered:C,isDisabled:null!==(m=c.disabled)&&void 0!==m&&m},{children:[e.jsxRuntimeExports.jsxs(o.ContentContainer,{children:[c.leadingIcon&&e.jsxRuntimeExports.jsx(o.LeadingIconContainer,{children:c.leadingIcon}),e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsx(i.BodyCaption,Object.assign({style:{color:null!==(h=c.disabled)&&void 0!==h&&h?s.COLORS.content.inactive:c.selected||C?s.COLORS.content.positive:s.COLORS.content.primary}},{children:c.label})),c.subText&&e.jsxRuntimeExports.jsx(i.BodyTiny,Object.assign({style:{color:null!==(R=c.disabled)&&void 0!==R&&R?s.COLORS.content.inactive:c.selected||C?s.COLORS.content.positive:s.COLORS.content.secondary,marginTop:"2px"}},{children:c.subText}))]})]}),c.children&&c.children.length>0?e.jsxRuntimeExports.jsx(o.TrailingIconContainer,{children:e.jsxRuntimeExports.jsx(t.default,{width:16,height:16,color:null!==(g=c.disabled)&&void 0!==g&&g?s.COLORS.content.inactive:c.selected||C?s.COLORS.content.positive:s.COLORS.content.primary})}):c.trailingIcon?e.jsxRuntimeExports.jsx(o.TrailingIconContainer,{children:c.trailingIcon}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})]})),!(null!==(v=c.disabled)&&void 0!==v&&v)&&c.children&&c.children.length>0&&O&&e.jsxRuntimeExports.jsx(o.SubMenuContainer,Object.assign({width:u,className:"submenu",onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)},{children:e.jsxRuntimeExports.jsx(o.StyledSubMenuWrapper,Object.assign({width:u,top:S.top,left:S.left},{children:e.jsxRuntimeExports.jsx(o.SubMenuListContainer,{children:e.jsxRuntimeExports.jsx(n.Suspense,Object.assign({fallback:e.jsxRuntimeExports.jsx("div",{children:"Loading..."})},{children:e.jsxRuntimeExports.jsx(d,{width:u,onDropdownItemClick:a,options:c.children,parents:[...p,c]})}))})}))}))]}))};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { MultiLevelDropdownOption } from './type';
|
|
2
|
-
export declare
|
|
3
|
+
export declare const MenuList: React.FC<{
|
|
3
4
|
width: string;
|
|
4
5
|
onDropdownItemClick?: (option: MultiLevelDropdownOption, parents: MultiLevelDropdownOption[]) => void;
|
|
5
6
|
options: MultiLevelDropdownOption[];
|
|
6
7
|
parents: MultiLevelDropdownOption[];
|
|
7
|
-
}
|
|
8
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("./GroupedMenuList.js"),o=require("./MenuItem.js"),n=require("./MultiLevelDropdown.styled.js");exports.MenuList=r=>{let{width:s,onDropdownItemClick:i,options:u,parents:p}=r;return e.jsxRuntimeExports.jsx(n.StyledMenuList,{children:u.map(((n,r)=>"value"in n?e.jsxRuntimeExports.jsx(o.MenuItem,{width:s,onDropdownItemClick:i,option:n,parents:p},r):"options"in n&&n.options.length>0?e.jsxRuntimeExports.jsx(t.GroupedMenuList,{width:s,onDropdownItemClick:i,option:n,parents:p},r):void 0))})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../assets/icons/searchIcon.js"),s=require("react"),r=require("./PostPicker.styled.js"),a=require("../tag/Tag.js"),i=require("../TypographyStyle.js"),n=require("../../utils/unCamelCase.js"),o=require("../../constants/colors.js"),l=require("../../constants/Theme.js"),d=require("../../assets/icons/instagram.svg.js"),c=require("../../assets/icons/warning.svg.js");require("../tooltips/Tooltip.js"),require("../analytics-chips-and-dropdowns/CommonStyles.js");var p=require("../analytics-chips-and-dropdowns/AnalyticsDropdown.js");require("../analytics-chips-and-dropdowns/AnalyticsMetric.js"),require("../shimmer/ShimmerComponent/ShimmerStyled.js"),require("../../utils/DateUtils.js"),require("../analytics-chips-and-dropdowns/chart/utils/calcPercentage.js"),require("../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),require("react-bootstrap"),require("../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js"),require("../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js"),require("../analytics-chips-and-dropdowns/chart/Pie/PieChart.js"),require("../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js"),require("../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js"),require("../analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js");var u,m,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../assets/icons/searchIcon.js"),s=require("react"),r=require("./PostPicker.styled.js"),a=require("../tag/Tag.js"),i=require("../TypographyStyle.js"),n=require("../../utils/unCamelCase.js"),o=require("../../constants/colors.js"),l=require("../../constants/Theme.js"),d=require("../../assets/icons/instagram.svg.js"),c=require("../../assets/icons/warning.svg.js");require("../tooltips/Tooltip.js"),require("../analytics-chips-and-dropdowns/CommonStyles.js");var p=require("../analytics-chips-and-dropdowns/AnalyticsDropdown.js");require("../analytics-chips-and-dropdowns/AnalyticsMetric.js"),require("../shimmer/ShimmerComponent/ShimmerStyled.js"),require("../../utils/DateUtils.js"),require("../analytics-chips-and-dropdowns/chart/utils/calcPercentage.js"),require("../analytics-chips-and-dropdowns/chart/LineChart/LineChart.js"),require("react-bootstrap"),require("../analytics-chips-and-dropdowns/chart/scoreBlock/ScoreBlock.js"),require("../analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js"),require("../analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js"),require("../analytics-chips-and-dropdowns/chart/Pie/PieChart.js"),require("../analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.js"),require("../analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarDistributionChart.model.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarGraph/FunnelVerticalBarGraph.js"),require("../analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js"),require("../analytics-chips-and-dropdowns/chart/heatmap/HeatMapVertical.js"),require("../analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js");var u,m,h=require("../modals/styledModal.js"),x=require("../shimmer/ShimmerComponent/BikShimmer.js"),y=require("../shimmer-image/ShimmerImage.js"),j=require("../states/StateComponent.js");require("../../_virtual/_tslib.js"),exports.MEDIA_TYPES=void 0,(u=exports.MEDIA_TYPES||(exports.MEDIA_TYPES={})).STORY="story",u.POST="post",u.REEL="reel",exports.DateKeys=void 0,(m=exports.DateKeys||(exports.DateKeys={})).Today="Today",m["7_Days"]="7",m["30_Days"]="30",m.custom="custom",m.Yesterday="Yesterday";const g=[{label:"Today",value:"today",key:exports.DateKeys.Today,typeValue:[new Date,new Date]},{label:"Last 7 days",value:"7 days",key:exports.DateKeys["7_Days"],typeValue:[new Date((new Date).setDate((new Date).getDate()-6)),new Date]},{label:"Last 30 days",value:"30 days",key:exports.DateKeys["30_Days"],typeValue:[new Date((new Date).setDate((new Date).getDate()-29)),new Date]},{label:"Custom range",value:"calender",key:exports.DateKeys.custom,isCustom:!0,dateRangeSelectionOptions:{selectRange:!0,maxDate:new Date((new Date).setMonth((new Date).getMonth()+3))}}];exports.PostPicker=u=>{var m,E;const[S,w]=s.useState(null!==(m=u.previouslySelected)&&void 0!==m?m:[]),[D,v]=s.useState(""),[C,R]=s.useState(!1),[T,b]=s.useState(u.media),[f,O]=s.useState(!1),[q,k]=s.useState(!1),[B,P]=s.useState(!1),I=s.useRef(null);s.useEffect((()=>{u.media.length||(R(!0),setTimeout((()=>{R(!1)}),2e3)),w(u.selected||[])}),[]),s.useEffect((()=>{u.media.length>0&&(b(u.media),R(!1))}),[null===(E=null==u?void 0:u.media)||void 0===E?void 0:E.length]),s.useEffect((()=>{S.length>0&&v("")}),[S.length]),s.useEffect((()=>{f&&(b(u.media),k(!1))}),[f]),s.useEffect((()=>{const e=e=>{document.getElementById("analytic-dropdown").contains(e.target)||P(!B)},t=document.getElementById("post-picker");return t&&t.addEventListener("click",e),()=>{t&&t.removeEventListener("click",e)}}));return e.jsxRuntimeExports.jsx("div",Object.assign({ref:I},{children:e.jsxRuntimeExports.jsxs(h.StyledModal,Object.assign({zIndex:201,open:u.showModal,headingTitle:u.title,onClose:u.onClose,centralContainerStyles:{width:1071,height:u.showFilter?650:564},primaryButton:{disabled:!T.length,buttonType:"primary",buttonText:`Select ${n.unCamelCase(u.mediaType)}`,onClick:()=>{S.length?u.onSelect(S):v(`Please select a ${u.mediaType} to proceed`)}},secondaryButton:{buttonType:"secondary",buttonText:"Back",onClick:()=>u.onClose()},footerLeftCustomElement:D?e.jsxRuntimeExports.jsx(a.Tag,{tagText:D,type:"negative",LeadingIcon:c.default}):S.length?e.jsxRuntimeExports.jsxs(i.BodySecondary,{children:[S.length," selected"]}):null,id:"post-picker"},{children:[u.showFilter&&e.jsxRuntimeExports.jsxs("div",Object.assign({style:{marginTop:24,marginBottom:24,padding:"0 24px",display:"flex",flexDirection:"row",gap:8,alignItems:"center"}},{children:[e.jsxRuntimeExports.jsx(p.AnalyticsDropdown,{options:g,placeholder:"posted on",resetDropdown:f,onOptionSelected:e=>{var t,s;let r=null,a=null;"Custom range"===e.label?(r=(null===(t=null==e?void 0:e.selectedRange)||void 0===t?void 0:t[0])||new Date,a=(null===(s=null==e?void 0:e.selectedRange)||void 0===s?void 0:s[1])||new Date):(r=e.typeValue[0],a=e.typeValue[1]);const i=u.media.filter((e=>function(e,t,s){const r=new Date(e),a=new Date(t),i=new Date(s);return r>=a&&r<=i}(e.timestamp,r,a)));b(i),k(!0),O(!1)},closeDropdown:B}),q&&e.jsxRuntimeExports.jsx(i.ButtonRegular,Object.assign({color:l.COLORS.content.secondary,onClick:()=>O(!0),style:{cursor:"pointer"}},{children:"Clear"}))]})),C?e.jsxRuntimeExports.jsx("div",Object.assign({style:{padding:"0 24px"}},{children:e.jsxRuntimeExports.jsx(x.BikShimmer,{boxes:[{width:(u.mediaType==exports.MEDIA_TYPES.POST?148:104)+"px",height:(u.mediaType==exports.MEDIA_TYPES.POST?148:172)+"px"}]})})):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:T&&T.length?e.jsxRuntimeExports.jsx(r.StyledProductGrid,Object.assign({mediaType:u.mediaType},{children:T.map((t=>{return e.jsxRuntimeExports.jsxs(r.StyledProduct,Object.assign({mediaType:u.mediaType,className:""+(s=t,a=S,a.some((e=>e.id===s.id))?"selected":""),onClick:()=>{return e=t,void w((()=>S.find((t=>t.id===e.id))?S.filter((t=>t.id!==e.id)):!u.limit||S.length<u.limit?[...S,e]:(v(`Only ${u.limit} ${u.mediaType}s can be selected`),S)));var e}},{children:[e.jsxRuntimeExports.jsx(y.ShimmerImage,{imageUrl:t.imageUrl,width:u.mediaType==exports.MEDIA_TYPES.POST?148:104,height:u.mediaType==exports.MEDIA_TYPES.POST?148:172,alt:t.overlayCaption}),e.jsxRuntimeExports.jsxs("div",Object.assign({className:"overlay"},{children:[e.jsxRuntimeExports.jsx("a",Object.assign({target:"_blank",rel:"noreferrer",href:t.redirectionUrl},{children:e.jsxRuntimeExports.jsxs("div",Object.assign({className:"overlay__redirection"},{children:[e.jsxRuntimeExports.jsx(d.default,{height:22,width:22}),e.jsxRuntimeExports.jsx(i.BodyPrimary,Object.assign({color:o.PRIMARY,style:{fontWeight:500}},{children:"View"}))]}))})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"overlay__caption"},{children:e.jsxRuntimeExports.jsx(i.BodyCaption,Object.assign({color:l.COLORS.content.placeholder},{children:t.overlayCaption}))}))]}))]}),t.id);var s,a}))})):e.jsxRuntimeExports.jsx("div",Object.assign({style:{justifyContent:"center",alignItems:"center",display:"flex",height:422}},{children:u.media.length?T.length?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}):e.jsxRuntimeExports.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"}},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",backgroundColor:`${l.COLORS.background.inverse}`,borderRadius:"50%"}},{children:e.jsxRuntimeExports.jsx(t.SearchIcon,{color:l.COLORS.content.primaryInverse})})),e.jsxRuntimeExports.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"}},{children:[e.jsxRuntimeExports.jsx(i.TitleMedium,{children:"No results found"}),e.jsxRuntimeExports.jsx(i.BodyPrimary,{children:"Sorry we could not find any results for the selected filter"})]})),e.jsxRuntimeExports.jsx("div",Object.assign({onClick:()=>{O(!0)},style:{cursor:"pointer"}},{children:e.jsxRuntimeExports.jsx(i.ButtonLarge,Object.assign({color:`${l.COLORS.content.brand}`},{children:"Clear Filter"}))}))]})):e.jsxRuntimeExports.jsx(j.StateComponent,{states:j.StateInterface.WARNING,heading:`No ${u.mediaType}s on your account`,subline:`There seems to be no ${u.mediaType}s on your account`,isButtonEnabled:!1,width:400})}))})]}))}))},exports.dateOptions=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TagType } from '../tag/model';
|
|
2
|
+
import { Product, ProductVariant } from './modal';
|
|
3
3
|
export type ProductPickerTagType = {
|
|
4
4
|
isVariant: boolean;
|
|
5
5
|
data: Product | ProductVariant;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { Collection, CollectionFetcherReturn, SelectedItems } from '.';
|
|
4
|
+
import { CollectionsActions, SelectedCollectionsActions } from './reducers';
|
|
5
5
|
export declare const truncate: (str: string, n: number, useWordBoundary: boolean) => string;
|
|
6
6
|
interface CollectionsScreenInterface {
|
|
7
7
|
customCollectionRestriction?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { TagType } from "../../tag/model";
|
|
2
|
+
import { Product, ProductVariant, SelectedItems } from '../modal';
|
|
3
|
+
import { OUT_OF_STOCK_ACTION } from '../type';
|
|
4
|
+
import { ProductVariantForRearrange } from '../variant';
|
|
4
5
|
export declare class ProductHelper {
|
|
5
6
|
/**
|
|
6
7
|
* how to know if a product is out of stock? currentCombination.quantity === 0 (OOS)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './modal';
|
|
2
|
-
export
|
|
2
|
+
export { ScreenName } from './type';
|
|
@@ -1,7 +1,63 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { ButtonProps } from '../button/model';
|
|
4
|
+
import { FooterForNonModalI, OUT_OF_STOCK_ACTION, ScreenName } from './type';
|
|
5
|
+
export interface ProductVariant {
|
|
6
|
+
name: string;
|
|
7
|
+
price: string;
|
|
8
|
+
image: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
skipSync?: boolean;
|
|
11
|
+
displayOrder?: number | null;
|
|
12
|
+
fbStatus?: FbProductStatus;
|
|
13
|
+
description?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
actualPrice?: string;
|
|
16
|
+
currency?: string;
|
|
17
|
+
skuId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Product {
|
|
20
|
+
name: string;
|
|
21
|
+
image: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
variants?: {
|
|
24
|
+
[key: string]: ProductVariant;
|
|
25
|
+
};
|
|
26
|
+
id?: string;
|
|
27
|
+
handle?: string;
|
|
28
|
+
currency?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface Collection {
|
|
31
|
+
name: string;
|
|
32
|
+
image: string;
|
|
33
|
+
isSmartCollection: boolean;
|
|
34
|
+
products?: {
|
|
35
|
+
[key: string]: Product;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export type SelectedItems = {
|
|
39
|
+
[key: string]: Collection;
|
|
40
|
+
};
|
|
41
|
+
export type SearchedItems = {
|
|
42
|
+
collections: SelectedItems;
|
|
43
|
+
products: SelectedItems;
|
|
44
|
+
};
|
|
45
|
+
export type CollectionFetcherReturn = Promise<{
|
|
46
|
+
collections: {
|
|
47
|
+
[key: string]: {
|
|
48
|
+
image: string;
|
|
49
|
+
name: string;
|
|
50
|
+
isSmartCollection: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
export type ProductFetcherReturn = Promise<{
|
|
55
|
+
[key: string]: Product;
|
|
56
|
+
}>;
|
|
57
|
+
export type FbStatusFetcherReturn = Promise<{
|
|
58
|
+
[key: string]: FbProductStatus;
|
|
59
|
+
}>;
|
|
60
|
+
export type FbProductStatus = 'APPROVED' | 'REJECTED';
|
|
5
61
|
export type ProductPickerInterface = {
|
|
6
62
|
hideGlobalSearch?: boolean;
|
|
7
63
|
hideInCollectionSearch?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { Product, ProductVariant, SelectedItems } from './modal';
|
|
3
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
4
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
4
5
|
interface ProductGroupInterface {
|
|
5
6
|
collectionId: string;
|
|
6
7
|
productId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Product, ProductVariant } from './modal';
|
|
2
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
2
3
|
/**
|
|
3
4
|
* When user presses i icon on a product, we show the overlay.
|
|
4
5
|
* In case of a product, contains products image, product name & description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { Collection, FbStatusFetcherReturn, Product, ProductFetcherReturn, ProductVariant, SelectedItems } from '.';
|
|
4
|
+
import { CollectionsActions, SelectedCollectionsActions } from './reducers';
|
|
5
5
|
import { OUT_OF_STOCK_ACTION } from './type';
|
|
6
6
|
interface ProductsScreenInterface {
|
|
7
7
|
hideInCollectionSearch?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../assets/icons/arrow_left.svg.js"),s=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../node_modules/react/jsx-runtime.js"),t=require("../../assets/icons/arrow_left.svg.js"),s=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),r=require("lodash"),c=require("react"),n=require("../../constants/Theme.js"),i=require("../checkBox/CheckBox.js"),l=require("../icon-button/IconButton.js"),u=require("../InfiniteScroll/InfiniteScroll.js"),d=require("../input/Input.js"),a=require("../spinner/Spinner.js"),p=require("../TypographyStyle.js"),h=require("./emptyState.js"),j=require("./product.js"),x=require("./ProductPickerShimmer.js"),v=require("./reducers.js"),g=require("./style.js"),y=require("./type.js"),m=require("./utility.js");exports.ProductsScreen=O=>{var b,f;const{data:k,collectionsDispatch:C,selectedData:P,selectedCollectionsDispatch:E,productFetcher:R,storeId:S,setScreen:I,setSaveDisabled:q,hideInCollectionSearch:A,customCollectionRestriction:D,hideProductCheckbox:T,outOfStockAction:V=y.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:L=!1,selectProductsFromCustomCollection:F=!1,pickerType:w,hideProductVariants:B,fbStatusFetcher:_,onProductDetailClick:U,showProductDetailInfoIcon:K,scrollContainerRef:M,appType:N}=O,H=c.useContext(v.CollectionIdContext),J=c.useRef(0),W=c.useRef(!1),[z,G]=c.useState(""),[Q,X]=c.useState(!1),[Y,Z]=c.useState(k),$=c.useRef(!0),ee=c.useRef(!1);c.useEffect((()=>{if($.current)return void($.current=!1);const e=setTimeout((()=>{z.length?(X(!0),O.searchInCollectionFetcher(S,H,z,N).then((e=>{const t=r.cloneDeep(k);t.products=e,Z(t);const s=m.getVariantIdsToFetchAtProductLevel(null!=e?e:{});se(s,null!=e?e:{},!0),q(!1),X(!1)}))):Z(k)}),800);return()=>clearTimeout(e)}),[z]);c.useEffect((()=>{var e,t,s,o;ee.current=!1,J.current=Math.floor((null===(t=Object.keys(null!==(e=k.products)&&void 0!==e?e:{}))||void 0===t?void 0:t.length)/10);const r=m.getVariantIdsToFetchAtProductLevel(null!==(s=k.products)&&void 0!==s?s:{});se(r,null!==(o=k.products)&&void 0!==o?o:{})}),[H]);const te=!!D&&k.isSmartCollection;c.useEffect((()=>{(null==k?void 0:k.products)||oe(10)}),[]);const se=(e,t,s)=>{_||(s?m.markVariantsAsApprovedProductsLevel(t,C,H,Y,Z):m.markVariantsAsApprovedProductsLevel(t,C,H)),e.length>0&&_&&_(S,e,N).then((e=>{const o=Object.assign({},t);Object.keys(t).forEach((s=>{var r,c;Object.keys(null!==(c=null===(r=null==t?void 0:t[s])||void 0===r?void 0:r.variants)&&void 0!==c?c:{}).forEach((r=>{var c,n;const i=null===(c=null==t?void 0:t[s].variants)||void 0===c?void 0:c[r];i&&"REJECTED"===e[r]?i.fbStatus="REJECTED":i&&"APPROVED"===e[r]&&(i.fbStatus="APPROVED");const l=null===(n=null==o?void 0:o[s])||void 0===n?void 0:n.variants;l&&l[r]&&(l[r]=i)}))})),s?(Z((e=>{const t=Object.assign({},e);return t.products=o,t})),C({type:"productsPaged",data:{collectionId:H,products:o}})):C({type:"productsPaged",data:{collectionId:H,products:o}})})).catch((e=>{s?m.markVariantsAsApprovedProductsLevel(t,C,H,Y,Z):m.markVariantsAsApprovedProductsLevel(t,C,H)}))},oe=e=>{q(!0),X(!0),R(H,S,N,e,0).then((t=>{if(Object.keys(t).length||(ee.current=!0),Object.keys(t).length){Z(Object.assign(Object.assign({},Y),{products:t}));const e=m.getVariantIdsToFetchAtProductLevel(t);se(e,t),J.current=1}e||E({type:"selected",data:{id:H,val:Object.assign(Object.assign({},k),{products:t})}}),q(!1),X(!1)})).catch()},re=(e,t)=>{const s=m.liftTheStateUp(t,k);E({type:e,data:Object.assign(Object.assign({},s),{isRestricted:D})})},ce=!!(null==P?void 0:P[H])&&!!Object.keys(null!==(f=null===(b=null==P?void 0:P[H])||void 0===b?void 0:b.products)&&void 0!==f?f:{}).length;return e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsxs(g.ProductScreenHeader,{children:[e.jsxRuntimeExports.jsx(l.IconButton,{Icon:t.default,height:16,onClick:()=>{I("collections")}}),e.jsxRuntimeExports.jsx(p.BodyCaption,Object.assign({style:{color:n.COLORS.content.secondary}},{children:k.name}))]}),!A&&e.jsxRuntimeExports.jsx("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e.jsxRuntimeExports.jsx(d.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>Q&&z.length?e.jsxRuntimeExports.jsx(a.Spinner,{size:"small",color:n.COLORS.content.primary}):e.jsxRuntimeExports.jsx(o.default,{})},id:"listInput",height:"24px",type:"text",value:z,onChangeText:e=>{e.length&&e.trim().length?G(e):G("")},placeholder:"Search using ID, Name or SKU ID"})})),Object.keys((null==Y?void 0:Y.products)||[]).length>0&&!te&&!z.length&&!T&&"-1"!==H&&e.jsxRuntimeExports.jsxs(g.ProductScreenCollectionCardStyle,{children:[e.jsxRuntimeExports.jsx(i.CheckBox,{isChecked:ce,isPartiallyChecked:m.isCollectionPartiallyChecked(H,Y,P,B),onValueChange:function(e){e?oe():E({type:"unselected",data:{id:H}})}}),e.jsxRuntimeExports.jsx("div",Object.assign({style:{width:40,height:40}},{children:e.jsxRuntimeExports.jsx(s.default,{})})),e.jsxRuntimeExports.jsx(p.TitleRegular,{children:"All Products"})]}),e.jsxRuntimeExports.jsx(u.InfiniteScroll,Object.assign({hasData:!(Object.keys((null==Y?void 0:Y.products)||[]).length<10)&&!!Object.keys((null==Y?void 0:Y.products)||[]).length,fetchMore:()=>(W.current=!0,R(H,S,N,10,J.current).then((e=>{let t=!1;if(Object.keys(e).length||(t=!0),Object.keys(e).length){const t=Y;t.products=Object.assign(Object.assign({},Y.products),e),Z(Object.assign({},t));const s=m.getVariantIdsToFetchAtProductLevel(e);se(s,e)}return q(!1),W.current=!1,J.current+=1,t}))),containerRef:M},{children:Object.keys((null==Y?void 0:Y.products)||[]).length?Object.keys(Y.products||[]).map((t=>e.jsxRuntimeExports.jsx(j.ProductGroup,{outOfStockAction:V,collectionId:H,isProductPartiallyChecked:m.isProductPartiallyChecked(H,t,P,Y,B),productId:t,data:Y.products[t],selectedData:P,selectedCollectionsDispatch:E,viewOnly:!F&&!!te,upliftAdditions:re,hideProductCheckbox:T,hideVariantCheckbox:L,hideProductVariants:B,pickerType:w,onProductDetailClick:U,showProductDetailInfoIcon:K},t))):Q?e.jsxRuntimeExports.jsx(x.ProductPickerShimmer,{limit:10}):e.jsxRuntimeExports.jsx(h.EmptyState,{title:"No products to show",subtitle:z.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})}))]})};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import { FbStatusFetcherReturn, SelectedItems } from '.';
|
|
4
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
5
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
6
|
interface RearrangeScreenInterface {
|
|
6
7
|
selectedCollections: SelectedItems;
|
|
7
8
|
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash");const e=require("react").createContext("");exports.CollectionIdContext=e,exports.collectionsReducer=function(t,e){let a={};switch(e.type){case"fetched":return a=Object.assign({},e.data),a;case"productsFetched":return a=Object.assign({},t),a[e.data.collectionId].products=e.data.products,a;case"paged":return a=Object.assign(Object.assign({},t),e.data),a;case"productsPaged":return a=Object.assign({},t),a[e.data.collectionId].products=Object.assign(Object.assign({},a[e.data.collectionId].products),e.data.products),a;case"searched":a=Object.assign({},t);for(const t in e.data)t in a||(a[t]=e.data[t]);return a;default:return{}}},exports.paginationReducer=function(t,e){let a={};switch(e.type){case"paginate":a=Object.assign({},t);for(const t in e.data)if(Object.prototype.hasOwnProperty.call(e.data,t)){const s=e.data[t];if(Object.prototype.hasOwnProperty.call(a,t)){const e=a[t];a[t]=Object.assign(Object.assign({},e),{products:Object.assign(Object.assign({},e.products),s.products)})}else a[t]=s}return a;case"update":return a=Object.assign({},t),a;case"set":return a=Object.assign(Object.assign({},t),e.data),a;case"filter":a={};for(const s in t)if(s in e.data){const c=Object.assign({},t[s]),d=e.data[s],o={};for(const t in c.products)if(t in d.products){const e=Object.assign({},c.products[t]),a=d.products[t],s={};for(const t in e.variants)t in a.variants&&(s[t]=Object.assign({},e.variants[t]));Object.keys(s).length>0&&(e.variants=s,o[t]=e)}Object.keys(o).length>0&&(c.products=o,a[s]=c)}return a;default:return t}},exports.searchReducer=function(t,e){let a={collections:{},products:{}};switch(e.type){case"set":return e.data;case"setProducts":return a=Object.assign({},t),a.products=e.data,a;default:return t}},exports.selectedColectionsReducer=function(e,a){var s,c,d,o,r,n,i,l,u,p,v;let O={},g="",b="",j="";switch(a.type){case"selected":return O=t.cloneDeep(e),a.data.val.isSmartCollection&&(a.data.isRestricted&&(O={}),O.isCustom=!0),O[a.data.id]=a.data.val,O;case"unselected":return O=t.cloneDeep(e),(null==O?void 0:O.isCustom)&&(O.isCustom=!1),delete O[a.data.id],O;case"productUnselected":return O=t.cloneDeep(e),g=a.data.productId,b=a.data.collectionId,delete O[b].products[g],Object.keys(O[b].products).length||((null==O?void 0:O.isCustom)&&(O.isCustom=!1),delete O[b]),O;case"productSelected":return O=t.cloneDeep(e),g=a.data.productId,b=a.data.collectionId,(null===(s=a.data.catalogOnlyData)||void 0===s?void 0:s.isSmartCollection)&&(a.data.isRestricted&&(O={}),O.isCustom=!0),(null==O?void 0:O[b])||(O[b]=a.data.catalogOnlyData,O[b].products={}),O[b].products[g]=a.data.product,O;case"variantSelected":return O=t.cloneDeep(e),g=a.data.productId,b=a.data.collectionId,j=a.data.variantId,(null===(c=a.data.catalogOnlyData)||void 0===c?void 0:c.isSmartCollection)&&(a.data.isRestricted&&(O={}),O.isCustom=!0),(null==O?void 0:O[b])||(O[b]=a.data.catalogOnlyData,O[b].products={},O[b].products[g]=a.data.productOnlyData,O[b].products[g].variants={}),(null===(d=null==O?void 0:O[b])||void 0===d?void 0:d.products)||(O[b].products={}),(null===(r=null===(o=null==O?void 0:O[b])||void 0===o?void 0:o.products)||void 0===r?void 0:r[g])||(O[b].products[g]=a.data.productOnlyData,O[b].products[g].variants={}),O[b].products[g].variants||(O[b].products[g].variants={}),O[b].products[g].variants[j]=a.data.variant,O;case"variantUnselected":return O=t.cloneDeep(e),g=a.data.productId,b=a.data.collectionId,j=a.data.variantId,(null===(i=null===(n=O[b].products[g])||void 0===n?void 0:n.variants)||void 0===i?void 0:i[j])&&delete O[b].products[g].variants[j],Object.keys(null!==(p=null===(u=null===(l=O[b].products)||void 0===l?void 0:l[g])||void 0===u?void 0:u.variants)&&void 0!==p?p:{}).length||(delete O[b].products[g],Object.keys(O[b].products).length||((null===(v=O[b])||void 0===v?void 0:v.isSmartCollection)&&(O.isCustom=!1),delete O[b])),O;case"update":return O=Object.assign({},e),O;case"reset":return{};default:return e}};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
3
|
+
import { Collection, FbStatusFetcherReturn, SearchedItems, SelectedItems } from '.';
|
|
4
|
+
import { SearchReducerActions, SelectedCollectionsActions } from './reducers';
|
|
5
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
6
|
interface SearchScreenInterface {
|
|
6
7
|
customCollectionRestriction?: boolean;
|
|
7
8
|
selectedCollections: SelectedItems;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
3
|
+
import { Collection, FbStatusFetcherReturn, SelectedItems } from '.';
|
|
4
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
5
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
6
|
interface SelectedScreenInterface {
|
|
6
7
|
selectedCollections: SelectedItems;
|
|
7
8
|
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
@@ -17,68 +17,3 @@ export declare enum ScreenName {
|
|
|
17
17
|
SearchProducts = "searchProducts",
|
|
18
18
|
Products = "products"
|
|
19
19
|
}
|
|
20
|
-
export type FbProductStatus = 'APPROVED' | 'REJECTED';
|
|
21
|
-
export interface ProductVariant {
|
|
22
|
-
name: string;
|
|
23
|
-
price: string;
|
|
24
|
-
image: string;
|
|
25
|
-
quantity: number;
|
|
26
|
-
skipSync?: boolean;
|
|
27
|
-
displayOrder?: number | null;
|
|
28
|
-
fbStatus?: FbProductStatus;
|
|
29
|
-
description?: string;
|
|
30
|
-
id?: string;
|
|
31
|
-
actualPrice?: string;
|
|
32
|
-
currency?: string;
|
|
33
|
-
skuId?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface Product {
|
|
36
|
-
name: string;
|
|
37
|
-
image: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
variants?: {
|
|
40
|
-
[key: string]: ProductVariant;
|
|
41
|
-
};
|
|
42
|
-
id?: string;
|
|
43
|
-
handle?: string;
|
|
44
|
-
currency?: string;
|
|
45
|
-
}
|
|
46
|
-
export interface Collection {
|
|
47
|
-
name: string;
|
|
48
|
-
image: string;
|
|
49
|
-
isSmartCollection: boolean;
|
|
50
|
-
products?: {
|
|
51
|
-
[key: string]: Product;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export type SelectedItems = {
|
|
55
|
-
[key: string]: Collection;
|
|
56
|
-
};
|
|
57
|
-
export type SearchedItems = {
|
|
58
|
-
collections: SelectedItems;
|
|
59
|
-
products: SelectedItems;
|
|
60
|
-
};
|
|
61
|
-
export type CollectionFetcherReturn = Promise<{
|
|
62
|
-
collections: {
|
|
63
|
-
[key: string]: {
|
|
64
|
-
image: string;
|
|
65
|
-
name: string;
|
|
66
|
-
isSmartCollection: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}>;
|
|
70
|
-
export type ProductFetcherReturn = Promise<{
|
|
71
|
-
[key: string]: Product;
|
|
72
|
-
}>;
|
|
73
|
-
export type FbStatusFetcherReturn = Promise<{
|
|
74
|
-
[key: string]: FbProductStatus;
|
|
75
|
-
}>;
|
|
76
|
-
/**
|
|
77
|
-
* Extended type from Product Variant, which contains ids and name.
|
|
78
|
-
*/
|
|
79
|
-
export type ProductVariantForRearrange = ProductVariant & {
|
|
80
|
-
variantId: string;
|
|
81
|
-
productId: string;
|
|
82
|
-
collectionId: string;
|
|
83
|
-
productName: string;
|
|
84
|
-
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ApplicationType } from '@bikdotai/bik-models/growth/models/bik-store';
|
|
2
|
+
import { Collection, FbStatusFetcherReturn, Product, ProductVariant, SearchedItems, SelectedItems } from './modal';
|
|
3
|
+
import { CollectionsActions } from './reducers';
|
|
4
4
|
export declare const liftTheStateUp: (payload: any, data: any) => any;
|
|
5
5
|
export declare function paginateSelectedItems(selectedItems: SelectedItems, limit: number, offset: number): {
|
|
6
6
|
[key: string]: Collection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("lodash");function l(o,l,t){if(!o)return{};const i=Object.keys(o).slice(t,t+l),n={};return i.forEach((l=>{n[l]=o[l]})),n}const t=(o,l,t)=>{Object.keys(o).forEach((l=>{var t,i;const n=null!==(i=null===(t=o[l])||void 0===t?void 0:t.products)&&void 0!==i?i:{};Object.keys(n).forEach((t=>{var i,n,d,v;const s=null!==(v=null===(d=null===(n=null===(i=o[l])||void 0===i?void 0:i.products)||void 0===n?void 0:n[t])||void 0===d?void 0:d.variants)&&void 0!==v?v:{};Object.keys(s).forEach((i=>{var n,d,v,s;const e=null===(s=null===(v=null===(d=null===(n=o[l])||void 0===n?void 0:n.products)||void 0===d?void 0:d[t])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[i];e&&!e.fbStatus&&(e.fbStatus="APPROVED")}))}))})),l({type:t,data:o})};exports.fetchFbStatusCollection=function(o,l,i,n,d){let v=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"paged";d||t(o,n,v);const s=(o=>{const l=[];return Object.keys(o).forEach((t=>{var i,n;const d=null!==(n=null===(i=o[t])||void 0===i?void 0:i.products)&&void 0!==n?n:{};Object.keys(d).forEach((i=>{var n,d,v,s;const e=null!==(s=null===(v=null===(d=null===(n=o[t])||void 0===n?void 0:n.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((n=>{var d,v,s,e;const u=null===(e=null===(s=null===(v=null===(d=o[t])||void 0===d?void 0:d.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[n];(null==u?void 0:u.fbStatus)||l.push(n)}))}))})),l})(o);s.length>0&&d&&d(l,s,i).then((l=>{const t=Object.assign({},o);Object.keys(t).forEach((o=>{var i,n;const d=null!==(n=null===(i=t[o])||void 0===i?void 0:i.products)&&void 0!==n?n:{};Object.keys(d).forEach((i=>{var n,d,v,s;const e=null!==(s=null===(v=null===(d=null===(n=t[o])||void 0===n?void 0:n.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)&&void 0!==s?s:{};Object.keys(e).forEach((n=>{var d,v,s,e;const u=null===(e=null===(s=null===(v=null===(d=t[o])||void 0===d?void 0:d.products)||void 0===v?void 0:v[i])||void 0===s?void 0:s.variants)||void 0===e?void 0:e[n];u&&"REJECTED"===l[n]?u.fbStatus="REJECTED":u&&"APPROVED"===l[n]&&(u.fbStatus="APPROVED")}))}))})),n({type:v,data:t})})).catch((l=>{console.error("Error in fbStatusFetcher",l),t(o,n,v)}))},exports.getSkuId=(o,l)=>{var t;if(l)return o.skuId;const i=Object.values(null!==(t=null==o?void 0:o.variants)&&void 0!==t?t:{});return 1===i.length&&i[0].name.includes(o.name)?i[0].skuId:""},exports.getVariantIdsToFetchAtProductLevel=(o,l)=>{const t=[];return Object.keys(null!=o?o:{}).forEach((i=>{var n,d;const v=null!==(d=null===(n=null==o?void 0:o[i])||void 0===n?void 0:n.variants)&&void 0!==d?d:{};Object.keys(v).forEach((n=>{var d,v,s,e,u;let r;r=l?null===(s=null===(v=null===(d=null==l?void 0:l.products)||void 0===d?void 0:d[i])||void 0===v?void 0:v.variants)||void 0===s?void 0:s[n]:null===(u=null===(e=null==o?void 0:o[i])||void 0===e?void 0:e.variants)||void 0===u?void 0:u[n],(null==r?void 0:r.fbStatus)||t.push(n)}))})),t},exports.isCollectionPartiallyChecked=function(o,l,t){var i,n,d,v;let s=0,e=0;if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]){const v=null!==(i=null==l?void 0:l.products)&&void 0!==i?i:{};s=Object.keys(v).length;const u=null!==(d=null===(n=t[o])||void 0===n?void 0:n.products)&&void 0!==d?d:{};e=Object.keys(u).length}else if(t[o]){const i=null==l?void 0:l.products;i&&Object.keys(i).forEach((o=>{var l;const t=null===(l=i[o])||void 0===l?void 0:l.variants;t&&Object.keys(t).forEach((o=>s+=1))}));const n=null===(v=t[o])||void 0===v?void 0:v.products;if(n&&Object.keys(n).forEach((o=>{var l;const t=null===(l=n[o])||void 0===l?void 0:l.variants;t&&Object.keys(t).forEach((o=>e+=1))})),s<=0&&e>0)return!1}return e>0&&s!==e},exports.isProductPartiallyChecked=(o,l,t,i,n)=>{var d,v,s,e,u,r,c,a,p,b,O,f,j,h,y,g,k,E,P;let D=0,S=0;if(null===(v=null===(d=null==t?void 0:t[o])||void 0===d?void 0:d.products)||void 0===v?void 0:v[l]){if(n)return!1;const d=(null===(u=null===(e=null===(s=null==t?void 0:t[o])||void 0===s?void 0:s.products)||void 0===e?void 0:e[l])||void 0===u?void 0:u.variants)||[];if(1===Object.keys(d).length)for(const i in d){const n=null===(c=null===(r=null==t?void 0:t[o])||void 0===r?void 0:r.products)||void 0===c?void 0:c[l],d=null===(O=null===(b=null===(p=null===(a=null==t?void 0:t[o])||void 0===a?void 0:a.products)||void 0===p?void 0:p[l])||void 0===b?void 0:b.variants)||void 0===O?void 0:O[i];if(null===(f=null==d?void 0:d.name)||void 0===f?void 0:f.includes(null!==(j=null==n?void 0:n.name)&&void 0!==j?j:""))return!1}if(null===(g=Object.keys((null===(y=null===(h=null==i?void 0:i.products)||void 0===h?void 0:h[l])||void 0===y?void 0:y.variants)||[]))||void 0===g||g.forEach((()=>S++)),Object.keys((null===(P=null===(E=null===(k=null==t?void 0:t[o])||void 0===k?void 0:k.products)||void 0===E?void 0:E[l])||void 0===P?void 0:P.variants)||[]).forEach((()=>D++)),D>0&&S!==D)return!0}return!1},exports.liftTheStateUp=(l,t)=>{const i=o.cloneDeep(t);if(delete i.products,(l=Object.assign(Object.assign({},l),{catalogOnlyData:i})).productId&&t.products){const n=o.cloneDeep(t.products[l.productId]);(null==n?void 0:n.variants)&&delete n.variants,l=Object.assign(Object.assign({},l),{catalogOnlyData:i,productOnlyData:n})}return l},exports.markVariantsAsApprovedProductsLevel=(o,l,t,i,n)=>{const d=Object.assign({},o);if(Object.keys(o).forEach((l=>{var t,i;Object.keys(null!==(i=null===(t=null==o?void 0:o[l])||void 0===t?void 0:t.variants)&&void 0!==i?i:{}).forEach((t=>{var i,n;const v=null===(i=null==o?void 0:o[l].variants)||void 0===i?void 0:i[t];v&&(v.fbStatus="APPROVED");const s=null===(n=null==d?void 0:d[l])||void 0===n?void 0:n.variants;s&&s[t]&&(s[t]=v)}))})),i&&n){const o=Object.assign({},i);o.products=d,n(o),l({type:"productsPaged",data:{collectionId:t,products:d}})}else l({type:"productsPaged",data:{collectionId:t,products:d}})},exports.paginateSelectedItems=function(o,t,i){var n;const d={};let v=0;for(const s in o)if(Object.prototype.hasOwnProperty.call(o,s)){const e=o[s],u=l(e.products,t,i-v);u&&Object.keys(u).length>0&&(d[s]=Object.assign(Object.assign({},e),{products:u})),v+=Object.keys(null!==(n=e.products)&&void 0!==n?n:{}).length}return d},exports.shouldShowVariant=o=>{const l=Object.keys(o.variants||[]);let t=!1;return!(l.length<=1)||(l.forEach((l=>{var i,n;t=null!==(n=null===(i=o.variants)||void 0===i?void 0:i[l].name.includes(o.name))&&void 0!==n&&n})),!t)},exports.updateAllVariantsForSelectedProducts=(l,t,i)=>Object.keys(l).reduce(((n,d)=>{var v;return d in t?(n[d]=Object.assign(Object.assign({},l[d]),{products:Object.keys(null!==(v=l[d].products)&&void 0!==v?v:{}).reduce(((n,v)=>{var s,e,u,r,c,a,p,b,O,f;const j=null===(s=t[d].products)||void 0===s?void 0:s[v],h=null===(r=null===(u=null===(e=null==i?void 0:i.products)||void 0===e?void 0:e[d])||void 0===u?void 0:u.products)||void 0===r?void 0:r[v];return j?n[v]=Object.assign(Object.assign({},(null===(c=l[d].products)||void 0===c?void 0:c[v])||{}),{allVariants:o.cloneDeep(j.variants)}):h?n[v]=Object.assign(Object.assign({},(null===(a=l[d].products)||void 0===a?void 0:a[v])||{}),{allVariants:o.cloneDeep(h.variants)}):(null===(b=null===(p=l[d].products)||void 0===p?void 0:p[v])||void 0===b?void 0:b.allVariants)&&(n[v]=Object.assign(Object.assign({},(null===(O=l[d].products)||void 0===O?void 0:O[v])||{}),{allVariants:o.cloneDeep(null===(f=l[d].products)||void 0===f?void 0:f[v].allVariants)})),n}),{})}),n):n}),{});
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { ProductVariant } from './modal';
|
|
3
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
4
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
|
+
/**
|
|
6
|
+
* Extended type from Product Variant, which contains ids and name.
|
|
7
|
+
*/
|
|
8
|
+
export type ProductVariantForRearrange = ProductVariant & {
|
|
9
|
+
variantId: string;
|
|
10
|
+
productId: string;
|
|
11
|
+
collectionId: string;
|
|
12
|
+
productName: string;
|
|
13
|
+
};
|
|
4
14
|
/**
|
|
5
15
|
* Props type for variant card in rearrange screen
|
|
6
16
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import { OUT_OF_STOCK_ACTION
|
|
2
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
3
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
4
|
+
import { ProductVariantForRearrange } from './variant';
|
|
4
5
|
/**
|
|
5
6
|
* Props for list of variants - applicable both in list and grid view
|
|
6
7
|
*/
|
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
export type Color = 'primary' | 'secondary' | 'success' | 'error' | 'warn';
|
|
3
|
+
export type Variant = 'solid' | 'outline' | 'text';
|
|
4
|
+
export interface SampleButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
/**
|
|
6
|
+
* The color of the Button.
|
|
7
|
+
*
|
|
8
|
+
* @default 'primary'
|
|
9
|
+
*/
|
|
10
|
+
color?: Color;
|
|
11
|
+
/**
|
|
12
|
+
* The visual style of the Button.
|
|
13
|
+
*
|
|
14
|
+
* @default 'solid'
|
|
15
|
+
*/
|
|
16
|
+
variant?: Variant;
|
|
17
|
+
}
|
|
3
18
|
export declare const SampleButton: import("react").ForwardRefExoticComponent<SampleButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { Color, Variant } from './SampleButton
|
|
2
|
+
import type { Color, Variant } from './SampleButton';
|
|
3
3
|
export declare const SampleButton: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Color, Variant } from './SampleButton
|
|
1
|
+
import type { Color, Variant } from './SampleButton';
|
|
2
2
|
export declare function getTheme(color: Color, variant: Variant): import("@emotion/utils").SerializedStyles;
|