@jetshop/core 5.16.1 → 5.17.0-alpha.f7018eb5
Sign up to get free protection for your applications and to get access to all the features.
- package/global.d.ts +26 -2
- package/package.json +2 -2
- package/ChannelHandler/ChannelHandler.d.ts +0 -53
- package/ChannelHandler/ChannelHandler.js +0 -114
- package/ChannelHandler/ChannelHandler.js.map +0 -1
- package/ChannelHandler/channelUtils.d.ts +0 -73
- package/ChannelHandler/channelUtils.js +0 -313
- package/ChannelHandler/channelUtils.js.map +0 -1
- package/ChannelHandler/redirectUtils.d.ts +0 -4
- package/ChannelHandler/redirectUtils.js +0 -50
- package/ChannelHandler/redirectUtils.js.map +0 -1
- package/analytics/Analytics.d.ts +0 -18
- package/analytics/Analytics.js +0 -57
- package/analytics/Analytics.js.map +0 -1
- package/analytics/AnalyticsProvider.d.ts +0 -54
- package/analytics/AnalyticsProvider.js +0 -229
- package/analytics/AnalyticsProvider.js.map +0 -1
- package/analytics/deprecatedTracking.d.ts +0 -17
- package/analytics/deprecatedTracking.js +0 -33
- package/analytics/deprecatedTracking.js.map +0 -1
- package/analytics/integrations/ga4.d.ts +0 -28
- package/analytics/integrations/ga4.js +0 -189
- package/analytics/integrations/ga4.js.map +0 -1
- package/analytics/integrations/gtag/gtag.d.ts +0 -8
- package/analytics/integrations/gtag/gtag.js +0 -209
- package/analytics/integrations/gtag/gtag.js.map +0 -1
- package/analytics/integrations/gtag/index.d.ts +0 -1
- package/analytics/integrations/gtag/index.js +0 -2
- package/analytics/integrations/gtag/index.js.map +0 -1
- package/analytics/integrations/gtm/gtm.d.ts +0 -12
- package/analytics/integrations/gtm/gtm.js +0 -227
- package/analytics/integrations/gtm/gtm.js.map +0 -1
- package/analytics/integrations/gtm/index.d.ts +0 -1
- package/analytics/integrations/gtm/index.js +0 -2
- package/analytics/integrations/gtm/index.js.map +0 -1
- package/analytics/integrations/gtm/referrerModifier.d.ts +0 -1
- package/analytics/integrations/gtm/referrerModifier.js +0 -62
- package/analytics/integrations/gtm/referrerModifier.js.map +0 -1
- package/analytics/integrations/releware/index.d.ts +0 -3
- package/analytics/integrations/releware/index.js +0 -39
- package/analytics/integrations/releware/index.js.map +0 -1
- package/analytics/integrations/unslugify.d.ts +0 -1
- package/analytics/integrations/unslugify.js +0 -16
- package/analytics/integrations/unslugify.js.map +0 -1
- package/analytics/trackerRegistry.d.ts +0 -113
- package/analytics/trackerRegistry.js +0 -222
- package/analytics/trackerRegistry.js.map +0 -1
- package/analytics/tracking.d.ts +0 -14
- package/analytics/tracking.js +0 -72
- package/analytics/tracking.js.map +0 -1
- package/analytics/utils/breadcrumbsWithoutProduct.d.ts +0 -1
- package/analytics/utils/breadcrumbsWithoutProduct.js +0 -9
- package/analytics/utils/breadcrumbsWithoutProduct.js.map +0 -1
- package/analytics/utils/script.d.ts +0 -8
- package/analytics/utils/script.js +0 -40
- package/analytics/utils/script.js.map +0 -1
- package/analytics/webVitals.d.ts +0 -5
- package/analytics/webVitals.js +0 -39
- package/analytics/webVitals.js.map +0 -1
- package/boot/AuthHandler.d.ts +0 -14
- package/boot/AuthHandler.js +0 -39
- package/boot/AuthHandler.js.map +0 -1
- package/boot/PreviewHandler.d.ts +0 -7
- package/boot/PreviewHandler.js +0 -14
- package/boot/PreviewHandler.js.map +0 -1
- package/boot/SharedTree.d.ts +0 -25
- package/boot/SharedTree.js +0 -29
- package/boot/SharedTree.js.map +0 -1
- package/boot/addMissingConfig.d.ts +0 -5
- package/boot/addMissingConfig.js +0 -34
- package/boot/addMissingConfig.js.map +0 -1
- package/boot/apollo.d.ts +0 -21
- package/boot/apollo.js +0 -198
- package/boot/apollo.js.map +0 -1
- package/boot/client/entrypoint.d.ts +0 -1
- package/boot/client/entrypoint.js +0 -5
- package/boot/client/entrypoint.js.map +0 -1
- package/boot/client/index.d.ts +0 -1
- package/boot/client/index.js +0 -2
- package/boot/client/index.js.map +0 -1
- package/boot/client/startClient.d.ts +0 -4
- package/boot/client/startClient.js +0 -144
- package/boot/client/startClient.js.map +0 -1
- package/boot/server/IntervalQuery.d.ts +0 -32
- package/boot/server/IntervalQuery.js +0 -95
- package/boot/server/IntervalQuery.js.map +0 -1
- package/boot/server/PersistedApolloClient.d.ts +0 -20
- package/boot/server/PersistedApolloClient.js +0 -40
- package/boot/server/PersistedApolloClient.js.map +0 -1
- package/boot/server/asyncErrorHandler.d.ts +0 -3
- package/boot/server/asyncErrorHandler.js +0 -5
- package/boot/server/asyncErrorHandler.js.map +0 -1
- package/boot/server/breakpointMiddleware.d.ts +0 -3
- package/boot/server/breakpointMiddleware.js +0 -10
- package/boot/server/breakpointMiddleware.js.map +0 -1
- package/boot/server/createApolloServer.d.ts +0 -28
- package/boot/server/createApolloServer.js +0 -144
- package/boot/server/createApolloServer.js.map +0 -1
- package/boot/server/createDevServer.d.ts +0 -14
- package/boot/server/createDevServer.js +0 -30
- package/boot/server/createDevServer.js.map +0 -1
- package/boot/server/createRenderer.d.ts +0 -28
- package/boot/server/createRenderer.js +0 -237
- package/boot/server/createRenderer.js.map +0 -1
- package/boot/server/createServer.d.ts +0 -14
- package/boot/server/createServer.js +0 -42
- package/boot/server/createServer.js.map +0 -1
- package/boot/server/entrypoint.d.ts +0 -1
- package/boot/server/entrypoint.js +0 -36
- package/boot/server/entrypoint.js.map +0 -1
- package/boot/server/getPrefetchFiles.d.ts +0 -10
- package/boot/server/getPrefetchFiles.js +0 -20
- package/boot/server/getPrefetchFiles.js.map +0 -1
- package/boot/server/getPreloadAssets.d.ts +0 -10
- package/boot/server/getPreloadAssets.js +0 -18
- package/boot/server/getPreloadAssets.js.map +0 -1
- package/boot/server/index.d.ts +0 -9
- package/boot/server/index.js +0 -123
- package/boot/server/index.js.map +0 -1
- package/boot/server/listen.d.ts +0 -13
- package/boot/server/listen.js +0 -17
- package/boot/server/listen.js.map +0 -1
- package/boot/server/persistedQueries/PersistedClient.d.ts +0 -22
- package/boot/server/persistedQueries/PersistedClient.js +0 -58
- package/boot/server/persistedQueries/PersistedClient.js.map +0 -1
- package/boot/server/persistedQueries/getPersistedQueriesForRequest.d.ts +0 -3
- package/boot/server/persistedQueries/getPersistedQueriesForRequest.js +0 -27
- package/boot/server/persistedQueries/getPersistedQueriesForRequest.js.map +0 -1
- package/boot/server/salesSource.d.ts +0 -8
- package/boot/server/salesSource.js +0 -16
- package/boot/server/salesSource.js.map +0 -1
- package/boot/utils/createIntOptions.d.ts +0 -6
- package/boot/utils/createIntOptions.js +0 -19
- package/boot/utils/createIntOptions.js.map +0 -1
- package/boot/utils/queryLoggingMiddleware.d.ts +0 -2
- package/boot/utils/queryLoggingMiddleware.js +0 -15
- package/boot/utils/queryLoggingMiddleware.js.map +0 -1
- package/boot/utils/uid.d.ts +0 -3
- package/boot/utils/uid.js +0 -20
- package/boot/utils/uid.js.map +0 -1
- package/cart/AddToCartFormik.d.ts +0 -42
- package/cart/AddToCartFormik.js +0 -77
- package/cart/AddToCartFormik.js.map +0 -1
- package/cart/useAddToCart.d.ts +0 -88
- package/cart/useAddToCart.js +0 -119
- package/cart/useAddToCart.js.map +0 -1
- package/cart/useCart.d.ts +0 -0
- package/cart/useCart.js +0 -1
- package/cart/useCart.js.map +0 -1
- package/components/Auth/CustomerFormContainer.d.ts +0 -0
- package/components/Auth/CustomerFormContainer.js +0 -1
- package/components/Auth/CustomerFormContainer.js.map +0 -1
- package/components/Auth/CustomerUpdateForm.d.ts +0 -32
- package/components/Auth/CustomerUpdateForm.js +0 -122
- package/components/Auth/CustomerUpdateForm.js.map +0 -1
- package/components/Auth/ForgotPasswordProvider.d.ts +0 -71
- package/components/Auth/ForgotPasswordProvider.js +0 -57
- package/components/Auth/ForgotPasswordProvider.js.map +0 -1
- package/components/Auth/ResetPasswordProvider.d.ts +0 -88
- package/components/Auth/ResetPasswordProvider.js +0 -78
- package/components/Auth/ResetPasswordProvider.js.map +0 -1
- package/components/Auth/SSN.d.ts +0 -12
- package/components/Auth/SSN.js +0 -35
- package/components/Auth/SSN.js.map +0 -1
- package/components/Auth/SSNLookupContainer.d.ts +0 -15
- package/components/Auth/SSNLookupContainer.js +0 -20
- package/components/Auth/SSNLookupContainer.js.map +0 -1
- package/components/Auth/SignupFormContainer.d.ts +0 -19
- package/components/Auth/SignupFormContainer.js +0 -82
- package/components/Auth/SignupFormContainer.js.map +0 -1
- package/components/Auth/UpdatePasswordForm.d.ts +0 -44
- package/components/Auth/UpdatePasswordForm.js +0 -98
- package/components/Auth/UpdatePasswordForm.js.map +0 -1
- package/components/Auth/formFieldsFromSettings.d.ts +0 -65
- package/components/Auth/formFieldsFromSettings.js +0 -77
- package/components/Auth/formFieldsFromSettings.js.map +0 -1
- package/components/Auth/formatSignupInput.d.ts +0 -8
- package/components/Auth/formatSignupInput.js +0 -43
- package/components/Auth/formatSignupInput.js.map +0 -1
- package/components/Auth/signup-context.d.ts +0 -36
- package/components/Auth/signup-context.js +0 -72
- package/components/Auth/signup-context.js.map +0 -1
- package/components/Auth/signup-field-translations.d.ts +0 -3
- package/components/Auth/signup-field-translations.js +0 -44
- package/components/Auth/signup-field-translations.js.map +0 -1
- package/components/Auth/signupSubmit.d.ts +0 -6
- package/components/Auth/signupSubmit.js +0 -57
- package/components/Auth/signupSubmit.js.map +0 -1
- package/components/Auth/useAddressFields.d.ts +0 -22
- package/components/Auth/useAddressFields.js +0 -33
- package/components/Auth/useAddressFields.js.map +0 -1
- package/components/Auth/useCustomer.d.ts +0 -116
- package/components/Auth/useCustomer.js +0 -189
- package/components/Auth/useCustomer.js.map +0 -1
- package/components/Auth/useLoginFields.d.ts +0 -20
- package/components/Auth/useLoginFields.js +0 -21
- package/components/Auth/useLoginFields.js.map +0 -1
- package/components/Auth/useSignupForm.d.ts +0 -7
- package/components/Auth/useSignupForm.js +0 -15
- package/components/Auth/useSignupForm.js.map +0 -1
- package/components/AuthContext/AuthContext.d.ts +0 -8
- package/components/AuthContext/AuthContext.js +0 -9
- package/components/AuthContext/AuthContext.js.map +0 -1
- package/components/AuthContext/AuthProvider.d.ts +0 -6
- package/components/AuthContext/AuthProvider.js +0 -85
- package/components/AuthContext/AuthProvider.js.map +0 -1
- package/components/AuthContext/LogOut.d.ts +0 -5
- package/components/AuthContext/LogOut.js +0 -15
- package/components/AuthContext/LogOut.js.map +0 -1
- package/components/AuthContext/useAuth.d.ts +0 -6
- package/components/AuthContext/useAuth.js +0 -21
- package/components/AuthContext/useAuth.js.map +0 -1
- package/components/BreakpointProvider.d.ts +0 -21
- package/components/BreakpointProvider.js +0 -24
- package/components/BreakpointProvider.js.map +0 -1
- package/components/Cart/CartIdContext.d.ts +0 -11
- package/components/Cart/CartIdContext.js +0 -61
- package/components/Cart/CartIdContext.js.map +0 -1
- package/components/ChannelContext/ChannelContext.d.ts +0 -21
- package/components/ChannelContext/ChannelContext.js +0 -4
- package/components/ChannelContext/ChannelContext.js.map +0 -1
- package/components/ChannelContext/ChannelProvider.d.ts +0 -10
- package/components/ChannelContext/ChannelProvider.js +0 -45
- package/components/ChannelContext/ChannelProvider.js.map +0 -1
- package/components/ChannelContext/index.d.ts +0 -2
- package/components/ChannelContext/index.js +0 -3
- package/components/ChannelContext/index.js.map +0 -1
- package/components/ChannelContext/useCountrySettings.d.ts +0 -8
- package/components/ChannelContext/useCountrySettings.js +0 -24
- package/components/ChannelContext/useCountrySettings.js.map +0 -1
- package/components/ConfigProvider.d.ts +0 -108
- package/components/ConfigProvider.js +0 -20
- package/components/ConfigProvider.js.map +0 -1
- package/components/DynamicRoute/CategoryRoute.d.ts +0 -13
- package/components/DynamicRoute/CategoryRoute.js +0 -56
- package/components/DynamicRoute/CategoryRoute.js.map +0 -1
- package/components/DynamicRoute/ContentRoute.d.ts +0 -14
- package/components/DynamicRoute/ContentRoute.js +0 -28
- package/components/DynamicRoute/ContentRoute.js.map +0 -1
- package/components/DynamicRoute/CustomerRoute.d.ts +0 -0
- package/components/DynamicRoute/CustomerRoute.js +0 -1
- package/components/DynamicRoute/CustomerRoute.js.map +0 -1
- package/components/DynamicRoute/PreviewRoute.d.ts +0 -17
- package/components/DynamicRoute/PreviewRoute.js +0 -58
- package/components/DynamicRoute/PreviewRoute.js.map +0 -1
- package/components/DynamicRoute/ProductByArticlenumber.d.ts +0 -5
- package/components/DynamicRoute/ProductByArticlenumber.js +0 -22
- package/components/DynamicRoute/ProductByArticlenumber.js.map +0 -1
- package/components/DynamicRoute/ProductRoute.d.ts +0 -15
- package/components/DynamicRoute/ProductRoute.js +0 -65
- package/components/DynamicRoute/ProductRoute.js.map +0 -1
- package/components/DynamicRoute/RouteResolver.d.ts +0 -22
- package/components/DynamicRoute/RouteResolver.js +0 -65
- package/components/DynamicRoute/RouteResolver.js.map +0 -1
- package/components/DynamicRoute/Status.d.ts +0 -14
- package/components/DynamicRoute/Status.js +0 -20
- package/components/DynamicRoute/Status.js.map +0 -1
- package/components/DynamicRoute/index.d.ts +0 -17
- package/components/DynamicRoute/index.js +0 -96
- package/components/DynamicRoute/index.js.map +0 -1
- package/components/Filters/index.d.ts +0 -1
- package/components/Filters/index.js +0 -2
- package/components/Filters/index.js.map +0 -1
- package/components/Filters/utils/replaceInSearch.d.ts +0 -14
- package/components/Filters/utils/replaceInSearch.js +0 -23
- package/components/Filters/utils/replaceInSearch.js.map +0 -1
- package/components/Filters/utils/updateHistory.d.ts +0 -25
- package/components/Filters/utils/updateHistory.js +0 -30
- package/components/Filters/utils/updateHistory.js.map +0 -1
- package/components/Fonts/CustomFont.d.ts +0 -14
- package/components/Fonts/CustomFont.js +0 -17
- package/components/Fonts/CustomFont.js.map +0 -1
- package/components/Fonts/GoogleFont.d.ts +0 -10
- package/components/Fonts/GoogleFont.js +0 -35
- package/components/Fonts/GoogleFont.js.map +0 -1
- package/components/Fonts/TypekitFont.d.ts +0 -16
- package/components/Fonts/TypekitFont.js +0 -25
- package/components/Fonts/TypekitFont.js.map +0 -1
- package/components/Fonts/injectFont.d.ts +0 -11
- package/components/Fonts/injectFont.js +0 -30
- package/components/Fonts/injectFont.js.map +0 -1
- package/components/Head.d.ts +0 -11
- package/components/Head.js +0 -84
- package/components/Head.js.map +0 -1
- package/components/Mutation/AddToCart/addToCartUtils.d.ts +0 -18
- package/components/Mutation/AddToCart/addToCartUtils.js +0 -52
- package/components/Mutation/AddToCart/addToCartUtils.js.map +0 -1
- package/components/Mutation/AddToCartFormik.d.ts +0 -53
- package/components/Mutation/AddToCartFormik.js +0 -173
- package/components/Mutation/AddToCartFormik.js.map +0 -1
- package/components/Mutation/DecrementQuantity.d.ts +0 -4
- package/components/Mutation/DecrementQuantity.js +0 -35
- package/components/Mutation/DecrementQuantity.js.map +0 -1
- package/components/Mutation/IncrementQuantity.d.ts +0 -4
- package/components/Mutation/IncrementQuantity.js +0 -35
- package/components/Mutation/IncrementQuantity.js.map +0 -1
- package/components/Mutation/RemoveFromCart.d.ts +0 -5
- package/components/Mutation/RemoveFromCart.js +0 -52
- package/components/Mutation/RemoveFromCart.js.map +0 -1
- package/components/Mutation/SetQuantity.d.ts +0 -4
- package/components/Mutation/SetQuantity.js +0 -37
- package/components/Mutation/SetQuantity.js.map +0 -1
- package/components/Mutation/SubscribeToNewsletter.d.ts +0 -4
- package/components/Mutation/SubscribeToNewsletter.js +0 -30
- package/components/Mutation/SubscribeToNewsletter.js.map +0 -1
- package/components/Mutation/SubscribeToStockNotifications.d.ts +0 -4
- package/components/Mutation/SubscribeToStockNotifications.js +0 -31
- package/components/Mutation/SubscribeToStockNotifications.js.map +0 -1
- package/components/Mutation/cartMutationUtils.d.ts +0 -28
- package/components/Mutation/cartMutationUtils.js +0 -109
- package/components/Mutation/cartMutationUtils.js.map +0 -1
- package/components/Mutation/useDecrementQuantity.d.ts +0 -11
- package/components/Mutation/useDecrementQuantity.js +0 -54
- package/components/Mutation/useDecrementQuantity.js.map +0 -1
- package/components/Mutation/useIncrementQuantity.d.ts +0 -11
- package/components/Mutation/useIncrementQuantity.js +0 -54
- package/components/Mutation/useIncrementQuantity.js.map +0 -1
- package/components/Mutation/useRemoveFromCart.d.ts +0 -13
- package/components/Mutation/useRemoveFromCart.js +0 -50
- package/components/Mutation/useRemoveFromCart.js.map +0 -1
- package/components/Mutation/useSetQuantity.d.ts +0 -12
- package/components/Mutation/useSetQuantity.js +0 -38
- package/components/Mutation/useSetQuantity.js.map +0 -1
- package/components/Notifications/Notifications.d.ts +0 -15
- package/components/Notifications/Notifications.js +0 -27
- package/components/Notifications/Notifications.js.map +0 -1
- package/components/Notifications/index.d.ts +0 -2
- package/components/Notifications/index.js +0 -3
- package/components/Notifications/index.js.map +0 -1
- package/components/Notifications/notificationMachine.d.ts +0 -30
- package/components/Notifications/notificationMachine.js +0 -74
- package/components/Notifications/notificationMachine.js.map +0 -1
- package/components/Notifications/notificationsMachine.d.ts +0 -37
- package/components/Notifications/notificationsMachine.js +0 -66
- package/components/Notifications/notificationsMachine.js.map +0 -1
- package/components/Notifications/useNotification.d.ts +0 -9
- package/components/Notifications/useNotification.js +0 -27
- package/components/Notifications/useNotification.js.map +0 -1
- package/components/OpenGraph/OpenGraphGeneralPageData.d.ts +0 -25
- package/components/OpenGraph/OpenGraphGeneralPageData.js +0 -37
- package/components/OpenGraph/OpenGraphGeneralPageData.js.map +0 -1
- package/components/OpenGraph/OpenGraphProductData.d.ts +0 -25
- package/components/OpenGraph/OpenGraphProductData.js +0 -49
- package/components/OpenGraph/OpenGraphProductData.js.map +0 -1
- package/components/OpenGraph/index.d.ts +0 -2
- package/components/OpenGraph/index.js +0 -3
- package/components/OpenGraph/index.js.map +0 -1
- package/components/Pagination/PaginationContainer.d.ts +0 -2
- package/components/Pagination/PaginationContainer.js +0 -5
- package/components/Pagination/PaginationContainer.js.map +0 -1
- package/components/Pagination/PaginationContext.d.ts +0 -14
- package/components/Pagination/PaginationContext.js +0 -4
- package/components/Pagination/PaginationContext.js.map +0 -1
- package/components/Pagination/PaginationProvider.d.ts +0 -19
- package/components/Pagination/PaginationProvider.js +0 -95
- package/components/Pagination/PaginationProvider.js.map +0 -1
- package/components/PreviewContext.d.ts +0 -10
- package/components/PreviewContext.js +0 -27
- package/components/PreviewContext.js.map +0 -1
- package/components/ProductConfigurationProvider/ProductConfigurationContext.d.ts +0 -13
- package/components/ProductConfigurationProvider/ProductConfigurationContext.js +0 -5
- package/components/ProductConfigurationProvider/ProductConfigurationContext.js.map +0 -1
- package/components/ProductConfigurationProvider/ProductConfigurationProvider.d.ts +0 -6
- package/components/ProductConfigurationProvider/ProductConfigurationProvider.js +0 -50
- package/components/ProductConfigurationProvider/ProductConfigurationProvider.js.map +0 -1
- package/components/Query/CartProvider.d.ts +0 -22
- package/components/Query/CartProvider.js +0 -68
- package/components/Query/CartProvider.js.map +0 -1
- package/components/SortOrder/SortOrderContainer.d.ts +0 -40
- package/components/SortOrder/SortOrderContainer.js +0 -108
- package/components/SortOrder/SortOrderContainer.js.map +0 -1
- package/components/SortOrder/SortOrderContext.d.ts +0 -9
- package/components/SortOrder/SortOrderContext.js +0 -9
- package/components/SortOrder/SortOrderContext.js.map +0 -1
- package/components/StructuredData/SiteLinksSearchStructuredData.d.ts +0 -3
- package/components/StructuredData/SiteLinksSearchStructuredData.js +0 -25
- package/components/StructuredData/SiteLinksSearchStructuredData.js.map +0 -1
- package/components/StructuredData/StructuredBreadcrumbData.d.ts +0 -12
- package/components/StructuredData/StructuredBreadcrumbData.js +0 -55
- package/components/StructuredData/StructuredBreadcrumbData.js.map +0 -1
- package/components/StructuredData/StructuredCategoryData.d.ts +0 -16
- package/components/StructuredData/StructuredCategoryData.js +0 -18
- package/components/StructuredData/StructuredCategoryData.js.map +0 -1
- package/components/StructuredData/StructuredData.d.ts +0 -9
- package/components/StructuredData/StructuredData.js +0 -7
- package/components/StructuredData/StructuredData.js.map +0 -1
- package/components/StructuredData/StructuredPageData.d.ts +0 -16
- package/components/StructuredData/StructuredPageData.js +0 -17
- package/components/StructuredData/StructuredPageData.js.map +0 -1
- package/components/StructuredData/StructuredProductData.d.ts +0 -18
- package/components/StructuredData/StructuredProductData.js +0 -43
- package/components/StructuredData/StructuredProductData.js.map +0 -1
- package/components/StructuredData/index.d.ts +0 -5
- package/components/StructuredData/index.js +0 -6
- package/components/StructuredData/index.js.map +0 -1
- package/data/cache.d.ts +0 -3
- package/data/cache.js +0 -21
- package/data/cache.js.map +0 -1
- package/data/fragmentTypes.d.ts +0 -8
- package/data/fragmentTypes.js +0 -84
- package/data/fragmentTypes.js.map +0 -1
- package/data/fragments/index.d.ts +0 -1
- package/data/fragments/index.js +0 -2
- package/data/fragments/index.js.map +0 -1
- package/errorReporting.browser.d.ts +0 -3
- package/errorReporting.browser.js +0 -12
- package/errorReporting.browser.js.map +0 -1
- package/errorReporting.d.ts +0 -3
- package/errorReporting.js +0 -20
- package/errorReporting.js.map +0 -1
- package/errorReporting.server.d.ts +0 -3
- package/errorReporting.server.js +0 -12
- package/errorReporting.server.js.map +0 -1
- package/errorReporting.shared.d.ts +0 -5
- package/errorReporting.shared.js +0 -17
- package/errorReporting.shared.js.map +0 -1
- package/experiments/ExperimentsProvider.d.ts +0 -4
- package/experiments/ExperimentsProvider.js +0 -29
- package/experiments/ExperimentsProvider.js.map +0 -1
- package/experiments/selectExperimentVariant.d.ts +0 -3
- package/experiments/selectExperimentVariant.js +0 -35
- package/experiments/selectExperimentVariant.js.map +0 -1
- package/experiments/useExperiment.d.ts +0 -2
- package/experiments/useExperiment.js +0 -11
- package/experiments/useExperiment.js.map +0 -1
- package/helpers/decodeUrlQuery.d.ts +0 -9
- package/helpers/decodeUrlQuery.js +0 -27
- package/helpers/decodeUrlQuery.js.map +0 -1
- package/helpers/distance.d.ts +0 -7
- package/helpers/distance.js +0 -13
- package/helpers/distance.js.map +0 -1
- package/helpers/encodeVariant.d.ts +0 -3
- package/helpers/encodeVariant.js +0 -25
- package/helpers/encodeVariant.js.map +0 -1
- package/helpers/getBreakpointsFromValues.d.ts +0 -6
- package/helpers/getBreakpointsFromValues.js +0 -15
- package/helpers/getBreakpointsFromValues.js.map +0 -1
- package/helpers/getCartItemVariant.d.ts +0 -7
- package/helpers/getCartItemVariant.js +0 -9
- package/helpers/getCartItemVariant.js.map +0 -1
- package/helpers/getErrorDetail.d.ts +0 -7
- package/helpers/getErrorDetail.js +0 -12
- package/helpers/getErrorDetail.js.map +0 -1
- package/helpers/getHeaders.d.ts +0 -6
- package/helpers/getHeaders.js +0 -4
- package/helpers/getHeaders.js.map +0 -1
- package/helpers/isRelativeUrl.d.ts +0 -1
- package/helpers/isRelativeUrl.js +0 -4
- package/helpers/isRelativeUrl.js.map +0 -1
- package/helpers/logError.d.ts +0 -1
- package/helpers/logError.js +0 -17
- package/helpers/logError.js.map +0 -1
- package/helpers/logWarningInDev.d.ts +0 -1
- package/helpers/logWarningInDev.js +0 -7
- package/helpers/logWarningInDev.js.map +0 -1
- package/helpers/throwErrorInDev.d.ts +0 -6
- package/helpers/throwErrorInDev.js +0 -15
- package/helpers/throwErrorInDev.js.map +0 -1
- package/helpers/uniqueId.d.ts +0 -5
- package/helpers/uniqueId.js +0 -10
- package/helpers/uniqueId.js.map +0 -1
- package/hooks/Channels/useChannelSettings.d.ts +0 -7
- package/hooks/Channels/useChannelSettings.js +0 -12
- package/hooks/Channels/useChannelSettings.js.map +0 -1
- package/hooks/Filters/useBooleanFilter.d.ts +0 -8
- package/hooks/Filters/useBooleanFilter.js +0 -21
- package/hooks/Filters/useBooleanFilter.js.map +0 -1
- package/hooks/Filters/useFilters.d.ts +0 -3
- package/hooks/Filters/useFilters.js +0 -16
- package/hooks/Filters/useFilters.js.map +0 -1
- package/hooks/Filters/useListFilter.d.ts +0 -10
- package/hooks/Filters/useListFilter.js +0 -38
- package/hooks/Filters/useListFilter.js.map +0 -1
- package/hooks/Filters/useMultiFilter.d.ts +0 -13
- package/hooks/Filters/useMultiFilter.js +0 -50
- package/hooks/Filters/useMultiFilter.js.map +0 -1
- package/hooks/Filters/useRangeFilter.d.ts +0 -10
- package/hooks/Filters/useRangeFilter.js +0 -36
- package/hooks/Filters/useRangeFilter.js.map +0 -1
- package/hooks/Filters/useSortOrder.d.ts +0 -11
- package/hooks/Filters/useSortOrder.js +0 -22
- package/hooks/Filters/useSortOrder.js.map +0 -1
- package/hooks/PackageProducts/index.d.ts +0 -2
- package/hooks/PackageProducts/index.js +0 -3
- package/hooks/PackageProducts/index.js.map +0 -1
- package/hooks/PackageProducts/usePackageProductItem.d.ts +0 -17
- package/hooks/PackageProducts/usePackageProductItem.js +0 -27
- package/hooks/PackageProducts/usePackageProductItem.js.map +0 -1
- package/hooks/PackageProducts/usePackageProducts.d.ts +0 -19
- package/hooks/PackageProducts/usePackageProducts.js +0 -346
- package/hooks/PackageProducts/usePackageProducts.js.map +0 -1
- package/hooks/Product/index.d.ts +0 -1
- package/hooks/Product/index.js +0 -2
- package/hooks/Product/index.js.map +0 -1
- package/hooks/Product/useStockStatus.d.ts +0 -9
- package/hooks/Product/useStockStatus.js +0 -26
- package/hooks/Product/useStockStatus.js.map +0 -1
- package/hooks/Product/useSwitchToVariantImage.d.ts +0 -9
- package/hooks/Product/useSwitchToVariantImage.js +0 -21
- package/hooks/Product/useSwitchToVariantImage.js.map +0 -1
- package/hooks/ProductList/ProductListContext.d.ts +0 -7
- package/hooks/ProductList/ProductListContext.js +0 -111
- package/hooks/ProductList/ProductListContext.js.map +0 -1
- package/hooks/ProductList/action-creators.d.ts +0 -46
- package/hooks/ProductList/action-creators.js +0 -297
- package/hooks/ProductList/action-creators.js.map +0 -1
- package/hooks/ProductList/index.d.ts +0 -118
- package/hooks/ProductList/index.js +0 -22
- package/hooks/ProductList/index.js.map +0 -1
- package/hooks/ProductList/list-transforms.d.ts +0 -75
- package/hooks/ProductList/list-transforms.js +0 -107
- package/hooks/ProductList/list-transforms.js.map +0 -1
- package/hooks/ProductList/product-list-reducer.d.ts +0 -76
- package/hooks/ProductList/product-list-reducer.js +0 -198
- package/hooks/ProductList/product-list-reducer.js.map +0 -1
- package/hooks/ProductList/useProductList.d.ts +0 -13
- package/hooks/ProductList/useProductList.js +0 -94
- package/hooks/ProductList/useProductList.js.map +0 -1
- package/hooks/ProductList/useProductListItems.d.ts +0 -10
- package/hooks/ProductList/useProductListItems.js +0 -49
- package/hooks/ProductList/useProductListItems.js.map +0 -1
- package/hooks/ProductList/validate-product.d.ts +0 -6
- package/hooks/ProductList/validate-product.js +0 -41
- package/hooks/ProductList/validate-product.js.map +0 -1
- package/hooks/Subscriptions/useNewsletterSubscription.d.ts +0 -38
- package/hooks/Subscriptions/useNewsletterSubscription.js +0 -42
- package/hooks/Subscriptions/useNewsletterSubscription.js.map +0 -1
- package/hooks/Subscriptions/useStockNotifications.d.ts +0 -36
- package/hooks/Subscriptions/useStockNotifications.js +0 -38
- package/hooks/Subscriptions/useStockNotifications.js.map +0 -1
- package/hooks/Subscriptions/useStoreSubscriptions.d.ts +0 -48
- package/hooks/Subscriptions/useStoreSubscriptions.js +0 -151
- package/hooks/Subscriptions/useStoreSubscriptions.js.map +0 -1
- package/hooks/useAddMultipleToCart.d.ts +0 -27
- package/hooks/useAddMultipleToCart.js +0 -114
- package/hooks/useAddMultipleToCart.js.map +0 -1
- package/hooks/useChannels.d.ts +0 -1
- package/hooks/useChannels.js +0 -10
- package/hooks/useChannels.js.map +0 -1
- package/hooks/useCustomerOrdersQuery.d.ts +0 -21
- package/hooks/useCustomerOrdersQuery.js +0 -21
- package/hooks/useCustomerOrdersQuery.js.map +0 -1
- package/hooks/useDeleteAccountMutation.d.ts +0 -15
- package/hooks/useDeleteAccountMutation.js +0 -39
- package/hooks/useDeleteAccountMutation.js.map +0 -1
- package/hooks/useDynamicPrice.d.ts +0 -3
- package/hooks/useDynamicPrice.js +0 -25
- package/hooks/useDynamicPrice.js.map +0 -1
- package/hooks/useFreeShippingCheck.d.ts +0 -15
- package/hooks/useFreeShippingCheck.js +0 -31
- package/hooks/useFreeShippingCheck.js.map +0 -1
- package/hooks/useGeolocation.d.ts +0 -11
- package/hooks/useGeolocation.js +0 -34
- package/hooks/useGeolocation.js.map +0 -1
- package/hooks/useInfinitePagination.d.ts +0 -37
- package/hooks/useInfinitePagination.js +0 -139
- package/hooks/useInfinitePagination.js.map +0 -1
- package/hooks/useLogError.d.ts +0 -1
- package/hooks/useLogError.js +0 -8
- package/hooks/useLogError.js.map +0 -1
- package/hooks/useLoginMutation.d.ts +0 -12
- package/hooks/useLoginMutation.js +0 -15
- package/hooks/useLoginMutation.js.map +0 -1
- package/hooks/useLoginRedirect.d.ts +0 -4
- package/hooks/useLoginRedirect.js +0 -37
- package/hooks/useLoginRedirect.js.map +0 -1
- package/hooks/useOrderDetailQuery.d.ts +0 -20
- package/hooks/useOrderDetailQuery.js +0 -29
- package/hooks/useOrderDetailQuery.js.map +0 -1
- package/hooks/usePreconnectLinks.d.ts +0 -10
- package/hooks/usePreconnectLinks.js +0 -30
- package/hooks/usePreconnectLinks.js.map +0 -1
- package/hooks/usePrice.d.ts +0 -41
- package/hooks/usePrice.js +0 -73
- package/hooks/usePrice.js.map +0 -1
- package/hooks/useProductVariants/index.d.ts +0 -1
- package/hooks/useProductVariants/index.js +0 -2
- package/hooks/useProductVariants/index.js.map +0 -1
- package/hooks/useProductVariants/useProductVariants.d.ts +0 -19
- package/hooks/useProductVariants/useProductVariants.js +0 -203
- package/hooks/useProductVariants/useProductVariants.js.map +0 -1
- package/hooks/useProductVariants/useVariantFromUrl.d.ts +0 -5
- package/hooks/useProductVariants/useVariantFromUrl.js +0 -16
- package/hooks/useProductVariants/useVariantFromUrl.js.map +0 -1
- package/hooks/useRoutePreload.d.ts +0 -24
- package/hooks/useRoutePreload.js +0 -40
- package/hooks/useRoutePreload.js.map +0 -1
- package/hooks/useShopConfig.d.ts +0 -1
- package/hooks/useShopConfig.js +0 -11
- package/hooks/useShopConfig.js.map +0 -1
- package/hooks/useThrowErrorInDev.d.ts +0 -1
- package/hooks/useThrowErrorInDev.js +0 -8
- package/hooks/useThrowErrorInDev.js.map +0 -1
- package/hooks/useThunkReducer.d.ts +0 -7
- package/hooks/useThunkReducer.js +0 -24
- package/hooks/useThunkReducer.js.map +0 -1
- package/hooks/useWarningInDev.d.ts +0 -1
- package/hooks/useWarningInDev.js +0 -10
- package/hooks/useWarningInDev.js.map +0 -1
- package/inServer.d.ts +0 -1
- package/inServer.js +0 -3
- package/inServer.js.map +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -2
- package/index.js.map +0 -1
- package/integrations/addwishSchemaExtension.d.ts +0 -35
- package/integrations/addwishSchemaExtension.js +0 -141
- package/integrations/addwishSchemaExtension.js.map +0 -1
- package/integrations/nostoSchemaExtension.d.ts +0 -5
- package/integrations/nostoSchemaExtension.js +0 -77
- package/integrations/nostoSchemaExtension.js.map +0 -1
- package/integrations/sluggishSchemaExtension.d.ts +0 -2
- package/integrations/sluggishSchemaExtension.js +0 -27
- package/integrations/sluggishSchemaExtension.js.map +0 -1
- package/polyfills.d.ts +0 -1
- package/polyfills.js +0 -38
- package/polyfills.js.map +0 -1
- package/resolvers/filters/boolFilter.d.ts +0 -3
- package/resolvers/filters/boolFilter.js +0 -85
- package/resolvers/filters/boolFilter.js.map +0 -1
- package/resolvers/filters/defaultActiveFilters.d.ts +0 -3
- package/resolvers/filters/defaultActiveFilters.js +0 -9
- package/resolvers/filters/defaultActiveFilters.js.map +0 -1
- package/resolvers/filters/filterParams.d.ts +0 -3
- package/resolvers/filters/filterParams.js +0 -85
- package/resolvers/filters/filterParams.js.map +0 -1
- package/resolvers/filters/filters.d.ts +0 -5
- package/resolvers/filters/filters.js +0 -79
- package/resolvers/filters/filters.js.map +0 -1
- package/resolvers/filters/index.d.ts +0 -27
- package/resolvers/filters/index.js +0 -8
- package/resolvers/filters/index.js.map +0 -1
- package/resolvers/filters/listFilter.d.ts +0 -7
- package/resolvers/filters/listFilter.js +0 -74
- package/resolvers/filters/listFilter.js.map +0 -1
- package/resolvers/filters/listFilterItem.d.ts +0 -3
- package/resolvers/filters/listFilterItem.js +0 -123
- package/resolvers/filters/listFilterItem.js.map +0 -1
- package/resolvers/filters/multiListFilter.d.ts +0 -5
- package/resolvers/filters/multiListFilter.js +0 -196
- package/resolvers/filters/multiListFilter.js.map +0 -1
- package/resolvers/filters/multiListFilterList.d.ts +0 -3
- package/resolvers/filters/multiListFilterList.js +0 -56
- package/resolvers/filters/multiListFilterList.js.map +0 -1
- package/resolvers/filters/rangeFilter.d.ts +0 -5
- package/resolvers/filters/rangeFilter.js +0 -138
- package/resolvers/filters/rangeFilter.js.map +0 -1
- package/resolvers/filters/updateQueryString.d.ts +0 -12
- package/resolvers/filters/updateQueryString.js +0 -117
- package/resolvers/filters/updateQueryString.js.map +0 -1
- package/resolvers/index.d.ts +0 -37
- package/resolvers/index.js +0 -38
- package/resolvers/index.js.map +0 -1
- package/sentry/client.d.ts +0 -1
- package/sentry/client.js +0 -30
- package/sentry/client.js.map +0 -1
- package/sentry/common.d.ts +0 -1
- package/sentry/common.js +0 -5
- package/sentry/common.js.map +0 -1
- package/sentry/server.d.ts +0 -1
- package/sentry/server.js +0 -20
- package/sentry/server.js.map +0 -1
- package/sentry/utils.d.ts +0 -1
- package/sentry/utils.js +0 -2
- package/sentry/utils.js.map +0 -1
- package/server/graphql.d.ts +0 -20
- package/server/graphql.js +0 -119
- package/server/graphql.js.map +0 -1
- package/server/index.d.ts +0 -2
- package/server/index.js +0 -3
- package/server/index.js.map +0 -1
- package/server/tracking/facebook.d.ts +0 -5
- package/server/tracking/facebook.js +0 -148
- package/server/tracking/facebook.js.map +0 -1
- package/server/tracking/middleware.d.ts +0 -8
- package/server/tracking/middleware.js +0 -15
- package/server/tracking/middleware.js.map +0 -1
- package/time.d.ts +0 -1
- package/time.js +0 -6
- package/time.js.map +0 -1
package/errorReporting.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errorReporting.js","sourceRoot":"","sources":["errorReporting.ts"],"names":[],"mappings":"AAEA;;;;;;;EAOE;AACF,SAAS,cAAc,CAAC,KAAY,EAAE,KAAc;IAClD,IAAI,MAAc,CAAC;IACnB,IAAI,aAAa,EAAE;QACjB,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC;KACrD;SAAM;QACL,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC;KACtD;IACD,OAAO,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,eAAe,cAAc,CAAC"}
|
package/errorReporting.server.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as Sentry from '@sentry/node';
|
2
|
-
import { convertAnyToError } from './errorReporting.shared';
|
3
|
-
export default (error, extra = {}) => {
|
4
|
-
Sentry.withScope((scope) => {
|
5
|
-
// https://github.com/getsentry/sentry-javascript/issues/1607#issuecomment-425974249
|
6
|
-
Object.keys(extra).forEach((key) => {
|
7
|
-
scope.setExtra(key, extra[key]);
|
8
|
-
});
|
9
|
-
Sentry.captureException(convertAnyToError(error));
|
10
|
-
});
|
11
|
-
};
|
12
|
-
//# sourceMappingURL=errorReporting.server.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errorReporting.server.js","sourceRoot":"","sources":["errorReporting.server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,EAAU,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAe,CAAC,KAAY,EAAE,QAAgB,EAAE,EAAE,EAAE;IAClD,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;QACzB,oFAAoF;QACpF,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/errorReporting.shared.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
export const convertAnyToError = (error) => {
|
2
|
-
const errorType = Object.prototype.toString.call(error);
|
3
|
-
try {
|
4
|
-
switch (errorType) {
|
5
|
-
case '[object Error]':
|
6
|
-
return error;
|
7
|
-
case '[object String]':
|
8
|
-
return new Error(error);
|
9
|
-
default:
|
10
|
-
return new Error(JSON.stringify(error));
|
11
|
-
}
|
12
|
-
}
|
13
|
-
catch (err) {
|
14
|
-
return err;
|
15
|
-
}
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=errorReporting.shared.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errorReporting.shared.js","sourceRoot":"","sources":["errorReporting.shared.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAU,EAAE,EAAE;IAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxD,IAAI;QACF,QAAQ,SAAS,EAAE;YACjB,KAAK,gBAAgB;gBACnB,OAAO,KAAK,CAAC;YAEf,KAAK,iBAAiB;gBACpB,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC;YAE1B;gBACE,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;SAC3C;KACF;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,GAAG,CAAC;KACZ;AACH,CAAC,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import React, { createContext, useMemo, useEffect } from 'react';
|
2
|
-
import { useCookies } from 'react-cookie';
|
3
|
-
import { useTracker } from '../analytics/Analytics';
|
4
|
-
import { trackExperimentEvent } from '../analytics/tracking';
|
5
|
-
export const ExperimentsContext = createContext(null);
|
6
|
-
const ExperimentsProvider = ({ children }) => {
|
7
|
-
const [cookies] = useCookies(['optimizeExperiment']);
|
8
|
-
const value = useMemo(() => {
|
9
|
-
if (!cookies.optimizeExperiment) {
|
10
|
-
return {
|
11
|
-
experiment: null,
|
12
|
-
variant: null
|
13
|
-
};
|
14
|
-
}
|
15
|
-
const [experiment, variant] = cookies.optimizeExperiment.split('.');
|
16
|
-
return {
|
17
|
-
experiment,
|
18
|
-
variant: parseInt(variant, 10)
|
19
|
-
};
|
20
|
-
}, [cookies]);
|
21
|
-
const track = useTracker();
|
22
|
-
useEffect(() => track(trackExperimentEvent({
|
23
|
-
id: value.experiment,
|
24
|
-
variant: value.variant
|
25
|
-
})), [value, track]);
|
26
|
-
return (React.createElement(ExperimentsContext.Provider, { value: value }, children));
|
27
|
-
};
|
28
|
-
export default ExperimentsProvider;
|
29
|
-
//# sourceMappingURL=ExperimentsProvider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ExperimentsProvider.js","sourceRoot":"","sources":["ExperimentsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;AAEtD,MAAM,mBAAmB,GAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrD,MAAM,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAErD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE;QACzB,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;YAC/B,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,IAAI;aACd,CAAC;SACH;QAED,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEpE,OAAO;YACL,UAAU;YACV,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC;SAC/B,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAE3B,SAAS,CACP,GAAG,EAAE,CACH,KAAK,CACH,oBAAoB,CAAC;QACnB,EAAE,EAAE,KAAK,CAAC,UAAU;QACpB,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CACH,EACH,CAAC,KAAK,EAAE,KAAK,CAAC,CACf,CAAC;IAEF,OAAO,CACL,oBAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IACtC,QAAQ,CACmB,CAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
function selectExperimentVariant(config, selectedVariant) {
|
2
|
-
// If no experiment is configured, do nothing.
|
3
|
-
if (!config) {
|
4
|
-
return null;
|
5
|
-
}
|
6
|
-
// A valid cookie has the format xxxxxxxx.n where the first part is the experiment id and the second part is the variant index
|
7
|
-
const parts = (selectedVariant || '').split('.');
|
8
|
-
if (parts.length === 2) {
|
9
|
-
const [experiment, variant] = parts;
|
10
|
-
// Make sure the cookie refers to the currently configured experiment
|
11
|
-
if (experiment === config.experimentId) {
|
12
|
-
// Make sure that the variant index is withing the amount of variants we have configured
|
13
|
-
if (parseInt(variant, 10) < config.variantWeights.length) {
|
14
|
-
return selectedVariant;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
const totalWeights = config.variantWeights.reduce((sum, cur) => sum + cur, 0);
|
19
|
-
const absoluteWeights = config.variantWeights.map(weight => weight / totalWeights);
|
20
|
-
// We either have no previous cookie, or an invalid one, so let's select a variant and set up the cookie
|
21
|
-
const randomValue = Math.random();
|
22
|
-
const variantCount = absoluteWeights.length;
|
23
|
-
let i = 0, sum = 0;
|
24
|
-
for (; i < variantCount; i++) {
|
25
|
-
if (randomValue < sum + absoluteWeights[i]) {
|
26
|
-
break;
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
sum += absoluteWeights[i];
|
30
|
-
}
|
31
|
-
}
|
32
|
-
return `${config.experimentId}.${i}`;
|
33
|
-
}
|
34
|
-
export default selectExperimentVariant;
|
35
|
-
//# sourceMappingURL=selectExperimentVariant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"selectExperimentVariant.js","sourceRoot":"","sources":["selectExperimentVariant.ts"],"names":[],"mappings":"AAEA,SAAS,uBAAuB,CAC9B,MAAsB,EACtB,eAAuB;IAEvB,8CAA8C;IAC9C,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IAED,8HAA8H;IAC9H,MAAM,KAAK,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEjD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC;QAEpC,qEAAqE;QACrE,IAAI,UAAU,KAAK,MAAM,CAAC,YAAY,EAAE;YACtC,wFAAwF;YACxF,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE;gBACxD,OAAO,eAAe,CAAC;aACxB;SACF;KACF;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9E,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAC/C,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,YAAY,CAChC,CAAC;IAEF,wGAAwG;IACxG,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAElC,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC;IAC5C,IAAI,CAAC,GAAG,CAAC,EACP,GAAG,GAAG,CAAC,CAAC;IAEV,OAAO,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE;QAC5B,IAAI,WAAW,GAAG,GAAG,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE;YAC1C,MAAM;SACP;aAAM;YACL,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;SAC3B;KACF;IAED,OAAO,GAAG,MAAM,CAAC,YAAY,IAAI,CAAC,EAAE,CAAC;AACvC,CAAC;AAED,eAAe,uBAAuB,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { useContext } from 'react';
|
2
|
-
import { ExperimentsContext } from './ExperimentsProvider';
|
3
|
-
const useExperiment = (experimentId, variantIndex) => {
|
4
|
-
const { experiment, variant } = useContext(ExperimentsContext);
|
5
|
-
return (experiment !== null &&
|
6
|
-
variant !== null &&
|
7
|
-
experiment === experimentId &&
|
8
|
-
variant === variantIndex);
|
9
|
-
};
|
10
|
-
export default useExperiment;
|
11
|
-
//# sourceMappingURL=useExperiment.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useExperiment.js","sourceRoot":"","sources":["useExperiment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,aAAa,GAAG,CAAC,YAAoB,EAAE,YAAoB,EAAE,EAAE;IACnE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC/D,OAAO,CACL,UAAU,KAAK,IAAI;QACnB,OAAO,KAAK,IAAI;QAChB,UAAU,KAAK,YAAY;QAC3B,OAAO,KAAK,YAAY,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
const UTF16toUTF8 = (UTF16String) => decodeURIComponent(UTF16String.split('')
|
2
|
-
.map(c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2))
|
3
|
-
.join(''));
|
4
|
-
const decodeUrlQuery = ({ urlQuery, parametersToBeDecoded = [] }) => {
|
5
|
-
const decodedUrl = Object.assign({}, urlQuery);
|
6
|
-
for (const param of parametersToBeDecoded) {
|
7
|
-
let value = decodedUrl[param];
|
8
|
-
try {
|
9
|
-
value = UTF16toUTF8(universalDecode(value));
|
10
|
-
}
|
11
|
-
catch (error) {
|
12
|
-
// Not Base64 encoded
|
13
|
-
}
|
14
|
-
decodedUrl[param] = value;
|
15
|
-
}
|
16
|
-
return decodedUrl;
|
17
|
-
};
|
18
|
-
function universalDecode(str) {
|
19
|
-
if (__IN_SERVER__) {
|
20
|
-
return Buffer.from(str, 'base64').toString('latin1');
|
21
|
-
}
|
22
|
-
else {
|
23
|
-
return atob(str);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
export default decodeUrlQuery;
|
27
|
-
//# sourceMappingURL=decodeUrlQuery.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"decodeUrlQuery.js","sourceRoot":"","sources":["decodeUrlQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,EAAE,CAC1C,kBAAkB,CAChB,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;KAClB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/D,IAAI,CAAC,EAAE,CAAC,CACZ,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,EACtB,QAAQ,EACR,qBAAqB,GAAG,EAAE,EAI3B,EAAE,EAAE;IACH,MAAM,UAAU,qBAAQ,QAAQ,CAAE,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,qBAAqB,EAAE;QACzC,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI;YACF,KAAK,GAAG,WAAW,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;SAC7C;QAAC,OAAO,KAAK,EAAE;YACd,qBAAqB;SACtB;QACD,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;KAC3B;IACD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI,aAAa,EAAE;QACjB,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;KACtD;SAAM;QACL,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;KAClB;AACH,CAAC;AAED,eAAe,cAAc,CAAC"}
|
package/helpers/distance.d.ts
DELETED
package/helpers/distance.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
/** Calculates distance in km between two coordinates */
|
2
|
-
export const distance = (pointA, pointB) => {
|
3
|
-
const p = 0.017453292519943295; // Math.PI / 180
|
4
|
-
const c = Math.cos;
|
5
|
-
const a = 0.5 -
|
6
|
-
c((pointB.latitude - pointA.latitude) * p) / 2 +
|
7
|
-
(c(pointA.latitude * p) *
|
8
|
-
c(pointB.latitude * p) *
|
9
|
-
(1 - c((pointB.longitude - pointA.longitude) * p))) /
|
10
|
-
2;
|
11
|
-
return 12742 * Math.asin(Math.sqrt(a)); // 2 * R; R = 6371 km
|
12
|
-
};
|
13
|
-
//# sourceMappingURL=distance.js.map
|
package/helpers/distance.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"distance.js","sourceRoot":"","sources":["distance.ts"],"names":[],"mappings":"AAKA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAkB,EAAE,MAAkB,EAAE,EAAE;IACjE,MAAM,CAAC,GAAG,oBAAoB,CAAC,CAAC,gBAAgB;IAChD,MAAM,CAAC,GAA0B,IAAI,CAAC,GAAG,CAAC;IAC1C,MAAM,CAAC,GACL,GAAG;QACH,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;QAC9C,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;YACrB,CAAC,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;YACtB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACnD,CAAC,CAAC;IAEN,OAAO,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB;AAC/D,CAAC,CAAC"}
|
package/helpers/encodeVariant.js
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
const encodeVariantValues = (variant) => {
|
2
|
-
var _a;
|
3
|
-
let encoding = '?att=';
|
4
|
-
if (!variant) {
|
5
|
-
return (encoding = '');
|
6
|
-
}
|
7
|
-
try {
|
8
|
-
encoding += universalEncode((_a = variant.values) === null || _a === void 0 ? void 0 : _a.join('|'));
|
9
|
-
}
|
10
|
-
catch (_b) {
|
11
|
-
// Cannot be encoded
|
12
|
-
encoding = '';
|
13
|
-
}
|
14
|
-
return encoding;
|
15
|
-
};
|
16
|
-
function universalEncode(str) {
|
17
|
-
if (__IN_SERVER__) {
|
18
|
-
return new Buffer(str).toString('base64');
|
19
|
-
}
|
20
|
-
else {
|
21
|
-
return btoa(str);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
export default encodeVariantValues;
|
25
|
-
//# sourceMappingURL=encodeVariant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"encodeVariant.js","sourceRoot":"","sources":["encodeVariant.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,OAAuB,EAAE,EAAE;;IACtD,IAAI,QAAQ,GAAG,OAAO,CAAC;IAEvB,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;KACxB;IAED,IAAI;QACF,QAAQ,IAAI,eAAe,CAAC,MAAA,OAAO,CAAC,MAAM,0CAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KACxD;IAAC,WAAM;QACN,oBAAoB;QACpB,QAAQ,GAAG,EAAE,CAAC;KACf;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI,aAAa,EAAE;QACjB,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;KAC3C;SAAM;QACL,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;KAClB;AACH,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
function getBreakpointsFromValues(values, breakpointLabels) {
|
2
|
-
return values.reduce((acc, cur, index) => {
|
3
|
-
if (cur) {
|
4
|
-
return acc.concat({
|
5
|
-
breakpoint: breakpointLabels[index],
|
6
|
-
value: cur
|
7
|
-
});
|
8
|
-
}
|
9
|
-
else {
|
10
|
-
return acc;
|
11
|
-
}
|
12
|
-
}, []);
|
13
|
-
}
|
14
|
-
export default getBreakpointsFromValues;
|
15
|
-
//# sourceMappingURL=getBreakpointsFromValues.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getBreakpointsFromValues.js","sourceRoot":"","sources":["getBreakpointsFromValues.ts"],"names":[],"mappings":"AAKA,SAAS,wBAAwB,CAAI,MAAW,EAAE,gBAA0B;IAC1E,OAAO,MAAM,CAAC,MAAM,CAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;QACxD,IAAI,GAAG,EAAE;YACP,OAAO,GAAG,CAAC,MAAM,CAAC;gBAChB,UAAU,EAAE,gBAAgB,CAAC,KAAK,CAAC;gBACnC,KAAK,EAAE,GAAG;aACX,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,GAAG,CAAC;SACZ;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,eAAe,wBAAwB,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
export default function getCartItemVariant(cartItem) {
|
2
|
-
var _a, _b, _c, _d;
|
3
|
-
const isVariant = cartItem.variant;
|
4
|
-
const variantImage = (_b = (_a = cartItem === null || cartItem === void 0 ? void 0 : cartItem.variant) === null || _a === void 0 ? void 0 : _a.images) === null || _b === void 0 ? void 0 : _b[0];
|
5
|
-
const hasVariantImage = !!variantImage;
|
6
|
-
const variantValues = (_d = (_c = cartItem === null || cartItem === void 0 ? void 0 : cartItem.variant) === null || _c === void 0 ? void 0 : _c.values) !== null && _d !== void 0 ? _d : [];
|
7
|
-
return { isVariant, hasVariantImage, variantImage, variantValues };
|
8
|
-
}
|
9
|
-
//# sourceMappingURL=getCartItemVariant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getCartItemVariant.js","sourceRoot":"","sources":["getCartItemVariant.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,QAAkB;;IAC3D,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC;IACnC,MAAM,YAAY,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,0CAAE,MAAM,0CAAG,CAAC,CAAC,CAAC;IACpD,MAAM,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IACvC,MAAM,aAAa,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,0CAAE,MAAM,mCAAI,EAAE,CAAC;IAEtD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AACrE,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export default function getErrorDetail(error) {
|
2
|
-
var _a;
|
3
|
-
const graphQLErrors = (_a = error === null || error === void 0 ? void 0 : error.graphQLErrors) !== null && _a !== void 0 ? _a : [];
|
4
|
-
const codes = graphQLErrors
|
5
|
-
.map(error => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })
|
6
|
-
.filter(Boolean);
|
7
|
-
const data = graphQLErrors
|
8
|
-
.map(error => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.data; })
|
9
|
-
.filter(Boolean);
|
10
|
-
return { codes, data };
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=getErrorDetail.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getErrorDetail.js","sourceRoot":"","sources":["getErrorDetail.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAkB;;IACvD,MAAM,aAAa,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,aAAa,mCAAI,EAAE,CAAC;IAEjD,MAAM,KAAK,GAAG,aAAa;SACxB,GAAG,CAAC,KAAK,CAAC,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACrC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,MAAM,IAAI,GAAG,aAAa;SACvB,GAAG,CAAC,KAAK,CAAC,EAAE,WAAC,OAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,IAAI,CAAA,EAAA,CAAC;SACrC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEnB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC"}
|
package/helpers/getHeaders.d.ts
DELETED
package/helpers/getHeaders.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getHeaders.js","sourceRoot":"","sources":["getHeaders.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,UAAU,CACxB,GAAgE,EAChE,GAAa;IAEb,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function isRelativeUrl(url?: string): boolean;
|
package/helpers/isRelativeUrl.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"isRelativeUrl.js","sourceRoot":"","sources":["isRelativeUrl.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAC1E,CAAC"}
|
package/helpers/logError.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export default function logError(condition: boolean, msg: Error | string, extras?: any): void;
|
package/helpers/logError.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
import pick from 'lodash.pick';
|
2
|
-
export default function logError(condition, msg, extras) {
|
3
|
-
if (!condition) {
|
4
|
-
return;
|
5
|
-
}
|
6
|
-
const err = msg instanceof Error ? msg : new Error(msg);
|
7
|
-
const output = pick(err, [
|
8
|
-
'message',
|
9
|
-
'stack',
|
10
|
-
'graphQLErrors',
|
11
|
-
'networkError',
|
12
|
-
'status',
|
13
|
-
'statusCode'
|
14
|
-
]);
|
15
|
-
console.error('Error:\n', output, '\nExtras:\n', extras);
|
16
|
-
}
|
17
|
-
//# sourceMappingURL=logError.js.map
|
package/helpers/logError.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logError.js","sourceRoot":"","sources":["logError.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,SAAkB,EAClB,GAAmB,EACnB,MAAY;IAEZ,IAAI,CAAC,SAAS,EAAE;QACd,OAAO;KACR;IAED,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE;QACvB,SAAS;QACT,OAAO;QACP,eAAe;QACf,cAAc;QACd,QAAQ;QACR,YAAY;KACb,CAAC,CAAC;IAEH,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function logWarningInDev(condition: boolean, msg: string): void;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"logWarningInDev.js","sourceRoot":"","sources":["logWarningInDev.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAkB,EAAE,GAAW;IACrE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,IAAI,SAAS;YAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClC;AACH,CAAC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* If `condition` is true it throws error with `msg` in dev and `console.error`s `msg` otherwise
|
3
|
-
* @param condition
|
4
|
-
* @param msg
|
5
|
-
*/
|
6
|
-
export default function throwErrorInDev(condition, msg, info = 'n/a') {
|
7
|
-
if (process.env.NODE_ENV !== 'production') {
|
8
|
-
if (!condition) {
|
9
|
-
return;
|
10
|
-
}
|
11
|
-
console.error(msg, 'Info:', info);
|
12
|
-
throw new Error(msg);
|
13
|
-
}
|
14
|
-
}
|
15
|
-
//# sourceMappingURL=throwErrorInDev.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"throwErrorInDev.js","sourceRoot":"","sources":["throwErrorInDev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,SAAkB,EAClB,GAAW,EACX,OAAY,KAAK;IAEjB,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,IAAI,CAAC,SAAS,EAAE;YACd,OAAO;SACR;QAED,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QAElC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;KACtB;AACH,CAAC"}
|
package/helpers/uniqueId.d.ts
DELETED
package/helpers/uniqueId.js
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
let id = 0;
|
2
|
-
/**
|
3
|
-
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
4
|
-
* @param prefix The value to prefix the ID with.
|
5
|
-
*/
|
6
|
-
export default function uniqueId(prefix = '') {
|
7
|
-
id++;
|
8
|
-
return `${prefix}${id}`;
|
9
|
-
}
|
10
|
-
//# sourceMappingURL=uniqueId.js.map
|
package/helpers/uniqueId.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"uniqueId.js","sourceRoot":"","sources":["uniqueId.ts"],"names":[],"mappings":"AAAA,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,MAAM,GAAG,EAAE;IAC1C,EAAE,EAAE,CAAC;IAEL,OAAO,GAAG,MAAM,GAAG,EAAE,EAAE,CAAC;AAC1B,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { useContext } from 'react';
|
2
|
-
import ChannelContext from '@jetshop/core/components/ChannelContext';
|
3
|
-
export function useChannelSettings() {
|
4
|
-
const context = useContext(ChannelContext);
|
5
|
-
const selectedChannelSettings = Object.assign({}, context.selectedChannel.settings);
|
6
|
-
// default incVat to true
|
7
|
-
if (typeof selectedChannelSettings.pricesIncVat === 'undefined') {
|
8
|
-
selectedChannelSettings.pricesIncVat = true;
|
9
|
-
}
|
10
|
-
return selectedChannelSettings;
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=useChannelSettings.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useChannelSettings.js","sourceRoot":"","sources":["useChannelSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,cAAc,MAAM,yCAAyC,CAAC;AAErE,MAAM,UAAU,kBAAkB;IAChC,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAE3C,MAAM,uBAAuB,qBAAQ,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAE,CAAC;IAExE,yBAAyB;IACzB,IAAI,OAAO,uBAAuB,CAAC,YAAY,KAAK,WAAW,EAAE;QAC/D,uBAAuB,CAAC,YAAY,GAAG,IAAI,CAAC;KAC7C;IAED,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { useMutation } from '@apollo/react-hooks';
|
2
|
-
import gql from 'graphql-tag';
|
3
|
-
export function useBooleanFilter(args) {
|
4
|
-
const [setBoolFilterMutation] = useMutation(gql `
|
5
|
-
mutation SetBool {
|
6
|
-
setBoolFilter(id: $id, value: $value) @client {
|
7
|
-
value @client
|
8
|
-
}
|
9
|
-
}
|
10
|
-
`);
|
11
|
-
function apply({ value }) {
|
12
|
-
return setBoolFilterMutation({
|
13
|
-
variables: {
|
14
|
-
id: args.filter.id,
|
15
|
-
value
|
16
|
-
}
|
17
|
-
});
|
18
|
-
}
|
19
|
-
return { apply };
|
20
|
-
}
|
21
|
-
//# sourceMappingURL=useBooleanFilter.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useBooleanFilter.js","sourceRoot":"","sources":["useBooleanFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,GAAG,MAAM,aAAa,CAAC;AAO9B,MAAM,UAAU,gBAAgB,CAAC,IAA+B;IAC9D,MAAM,CAAC,qBAAqB,CAAC,GAAG,WAAW,CAGzC,GAAG,CAAA;;;;;;GAMJ,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,EAAE,KAAK,EAAsB;QAC1C,OAAO,qBAAqB,CAAC;YAC3B,SAAS,EAAE;gBACT,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE;gBAClB,KAAK;aACN;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { useMutation } from '@apollo/react-hooks';
|
2
|
-
import gql from 'graphql-tag';
|
3
|
-
export function useFilters() {
|
4
|
-
const [clearFiltersMutation] = useMutation(gql `
|
5
|
-
mutation ClearFilters {
|
6
|
-
clearAllFilters @client
|
7
|
-
}
|
8
|
-
`);
|
9
|
-
function clearAllFilters() {
|
10
|
-
return clearFiltersMutation();
|
11
|
-
}
|
12
|
-
return {
|
13
|
-
clearAllFilters
|
14
|
-
};
|
15
|
-
}
|
16
|
-
//# sourceMappingURL=useFilters.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useFilters.js","sourceRoot":"","sources":["useFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,GAAG,MAAM,aAAa,CAAC;AAG9B,MAAM,UAAU,UAAU;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAA8B,GAAG,CAAA;;;;GAI1E,CAAC,CAAC;IACH,SAAS,eAAe;QACtB,OAAO,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,OAAO;QACL,eAAe;KAChB,CAAC;AACJ,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { ListFilter } from '../../types';
|
2
|
-
export declare function useListFilter(args: {
|
3
|
-
filter: ListFilter;
|
4
|
-
}): {
|
5
|
-
apply: ({ value, set }: {
|
6
|
-
value: string;
|
7
|
-
set?: boolean;
|
8
|
-
}) => Promise<import("react-apollo").ExecutionResult<ListFilter>>;
|
9
|
-
clear: () => Promise<import("react-apollo").ExecutionResult<any>>;
|
10
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { useMutation } from 'react-apollo';
|
2
|
-
import gql from 'graphql-tag';
|
3
|
-
export function useListFilter(args) {
|
4
|
-
const [toggleActiveMutation] = useMutation(gql `
|
5
|
-
mutation toggleActiveListItem(
|
6
|
-
$value: String!
|
7
|
-
$parentId: String!
|
8
|
-
$set: Boolean
|
9
|
-
) {
|
10
|
-
toggleListFilterItem(value: $value, parentId: $parentId, set: $set)
|
11
|
-
@client {
|
12
|
-
isActive @client
|
13
|
-
}
|
14
|
-
}
|
15
|
-
`);
|
16
|
-
const [clearFilterMutation] = useMutation(gql `
|
17
|
-
mutation ClearListFilter($id: String!) {
|
18
|
-
clearListFilter(id: $id) @client
|
19
|
-
}
|
20
|
-
`);
|
21
|
-
function clear() {
|
22
|
-
const filter = args.filter;
|
23
|
-
return clearFilterMutation({ variables: { id: filter.id } });
|
24
|
-
}
|
25
|
-
function apply({ value, set }) {
|
26
|
-
const filter = args.filter;
|
27
|
-
// Update filters in the client state
|
28
|
-
return toggleActiveMutation({
|
29
|
-
variables: {
|
30
|
-
parentId: filter.id,
|
31
|
-
value,
|
32
|
-
set
|
33
|
-
}
|
34
|
-
});
|
35
|
-
}
|
36
|
-
return { apply, clear };
|
37
|
-
}
|
38
|
-
//# sourceMappingURL=useListFilter.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useListFilter.js","sourceRoot":"","sources":["useListFilter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,GAAG,MAAM,aAAa,CAAC;AAE9B,MAAM,UAAU,aAAa,CAAC,IAA4B;IACxD,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,CAGxC,GAAG,CAAA;;;;;;;;;;;GAWJ,CAAC,CAAC;IAEH,MAAM,CAAC,mBAAmB,CAAC,GAAG,WAAW,CAAC,GAAG,CAAA;;;;GAI5C,CAAC,CAAC;IAEH,SAAS,KAAK;QACZ,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAE3B,OAAO,mBAAmB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,SAAS,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,EAAoC;QAC7D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,qCAAqC;QACrC,OAAO,oBAAoB,CAAC;YAC1B,SAAS,EAAE;gBACT,QAAQ,EAAE,MAAM,CAAC,EAAE;gBACnB,KAAK;gBACL,GAAG;aACJ;SACF,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC1B,CAAC"}
|