@sumup/collector
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import TrackingContext from './TrackingContext'; | ||
export default TrackingContext; | ||
export { TrackingContext } from './TrackingContext'; |
@@ -17,3 +17,2 @@ /** | ||
import { TrackingContextKeys as ContextKeys } from '../../types'; | ||
declare const TrackingContext: React.Context<ContextKeys>; | ||
export default TrackingContext; | ||
export declare const TrackingContext: React.Context<ContextKeys>; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import TrackingElement from './TrackingElement'; | ||
export default TrackingElement; | ||
export { TrackingElement } from './TrackingElement'; |
@@ -20,3 +20,2 @@ /** | ||
} | ||
declare const TrackingElement: ({ name, label, children }: TrackingElementProps) => JSX.Element; | ||
export default TrackingElement; | ||
export declare function TrackingElement({ name, label, children, }: TrackingElementProps): JSX.Element; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import TrackingRoot from './TrackingRoot'; | ||
export default TrackingRoot; | ||
export { TrackingRoot } from './TrackingRoot'; |
@@ -20,3 +20,3 @@ /** | ||
}; | ||
declare const TrackingRoot: ({ name, onDispatch, children }: Props) => JSX.Element; | ||
export default TrackingRoot; | ||
export declare function TrackingRoot({ name, onDispatch, children, }: Props): JSX.Element; | ||
export {}; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import TrackingView from './TrackingView'; | ||
export default TrackingView; | ||
export { TrackingView } from './TrackingView'; |
@@ -17,3 +17,2 @@ /** | ||
import { TrackingProviderProps as ProviderProps } from '../../types'; | ||
declare const TrackingView: ({ name, children }: ProviderProps) => JSX.Element; | ||
export default TrackingView; | ||
export declare function TrackingView({ name, children }: ProviderProps): JSX.Element; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import useBaseTrigger from './useBaseTrigger'; | ||
export default useBaseTrigger; | ||
export { useBaseTrigger } from './useBaseTrigger'; |
@@ -15,4 +15,3 @@ /** | ||
*/ | ||
import { Events, Dispatch } from '../../types'; | ||
declare const useBaseTrigger: (event: Events) => ({ component, label, customParameters }: Dispatch) => void | undefined; | ||
export default useBaseTrigger; | ||
import { Events, DispatchFn } from '../../types'; | ||
export declare function useBaseTrigger(event: Events): DispatchFn; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import useClickTrigger from './useClickTrigger'; | ||
export default useClickTrigger; | ||
export { useClickTrigger } from './useClickTrigger'; |
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
declare const useClickTrigger: () => ({ component, label, customParameters }: import("../../types").Dispatch) => void | undefined; | ||
export default useClickTrigger; | ||
import { DispatchFn } from '../../types'; | ||
export declare const useClickTrigger: () => DispatchFn; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import usePageActiveTrigger from './usePageActiveTrigger'; | ||
export default usePageActiveTrigger; | ||
export { usePageActiveTrigger } from './usePageActiveTrigger'; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
declare const usePageActiveTrigger: (initial?: boolean | undefined) => void; | ||
export default usePageActiveTrigger; | ||
export declare function usePageActiveTrigger(initial?: boolean): void; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import usePageViewTrigger from './usePageViewTrigger'; | ||
export default usePageViewTrigger; | ||
export { usePageViewTrigger } from './usePageViewTrigger'; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
declare const usePageViewTrigger: () => () => void | undefined; | ||
export default usePageViewTrigger; | ||
export declare const usePageViewTrigger: () => (() => void); |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import usePrevious from './usePrevious'; | ||
export default usePrevious; | ||
export { usePrevious } from './usePrevious'; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
declare const usePrevious: <T>(value: T) => T; | ||
export default usePrevious; | ||
export declare function usePrevious<T>(value: T): T; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import useSectionExpandedTrigger from './useSectionExpandedTrigger'; | ||
export default useSectionExpandedTrigger; | ||
export { useSectionExpandedTrigger } from './useSectionExpandedTrigger'; |
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
declare const useSectionExpandedTrigger: () => ({ component, label, customParameters }: import("../../types").Dispatch) => void | undefined; | ||
export default useSectionExpandedTrigger; | ||
import { DispatchFn } from '../../types'; | ||
export declare const useSectionExpandedTrigger: () => DispatchFn; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import useSubmitTrigger from './useSubmitTrigger'; | ||
export default useSubmitTrigger; | ||
export { useSubmitTrigger } from './useSubmitTrigger'; |
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
declare const useSubmitTrigger: () => ({ component, label, customParameters }: import("../../types").Dispatch) => void | undefined; | ||
export default useSubmitTrigger; | ||
import { DispatchFn } from '../../types'; | ||
export declare const useSubmitTrigger: () => DispatchFn; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import useVisibilityChange from './useVisibilityChange'; | ||
export default useVisibilityChange; | ||
export { useVisibilityChange } from './useVisibilityChange'; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
declare const useVisibilityChange: (callback: (isVisible: boolean) => void, initial?: boolean) => void; | ||
export default useVisibilityChange; | ||
export declare function useVisibilityChange(callback: (isVisible: boolean) => void, initial?: boolean): void; |
@@ -15,15 +15,14 @@ /** | ||
*/ | ||
import TrackingRoot from './components/TrackingRoot'; | ||
import TrackingView from './components/TrackingView'; | ||
import TrackingElement from './components/TrackingElement'; | ||
import useClickTrigger from './hooks/useClickTrigger'; | ||
import useSubmitTrigger from './hooks/useSubmitTrigger'; | ||
import usePageViewTrigger from './hooks/usePageViewTrigger'; | ||
import usePageActiveTrigger from './hooks/usePageActiveTrigger'; | ||
import useSectionExpandedTrigger from './hooks/useSectionExpandedTrigger'; | ||
import getFlushedPayload from './plugins/getFlushedPayload'; | ||
import * as Types from './types'; | ||
export { TrackingRoot, TrackingView, TrackingElement, useClickTrigger, useSubmitTrigger, usePageViewTrigger, usePageActiveTrigger, useSectionExpandedTrigger, getFlushedPayload }; | ||
export { TrackingRoot } from './components/TrackingRoot'; | ||
export { TrackingView } from './components/TrackingView'; | ||
export { TrackingElement } from './components/TrackingElement'; | ||
export { useClickTrigger } from './hooks/useClickTrigger'; | ||
export { useSubmitTrigger } from './hooks/useSubmitTrigger'; | ||
export { usePageViewTrigger } from './hooks/usePageViewTrigger'; | ||
export { usePageActiveTrigger } from './hooks/usePageActiveTrigger'; | ||
export { useSectionExpandedTrigger } from './hooks/useSectionExpandedTrigger'; | ||
export { getFlushedPayload } from './plugins/getFlushedPayload'; | ||
export declare type Dispatch = Types.Dispatch; | ||
export declare type Events = Types.Events; | ||
export declare type Payload = Types.Payload; |
@@ -1,1 +0,15 @@ | ||
import*as e from"react";var t=e.createContext({app:void 0,view:void 0,elementTree:[]}),n=function(n){var r=n.name,a=n.onDispatch,i=n.children,o=e.useMemo((function(){return{app:r,dispatch:a,elementTree:[]}}),[r,a]);return e.createElement(t.Provider,{value:o},i)},r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function i(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e}var o,u=function(n){var a=n.name,i=n.children,o=e.useContext(t),u=e.useMemo((function(){return r(r({},o),{view:a})}),[o,a]);return e.createElement(t.Provider,{value:u},i)},c=function(n){var o=n.name,u=n.label,c=n.children,l=e.useContext(t),v=u?o+"|"+u:o,s=e.useMemo((function(){return r(r({},l),{elementTree:i(i([],a(l.elementTree)),[v])})}),[l,v]);return e.createElement(t.Provider,{value:s},c)},l=function(n){var r=e.useContext(t),a=r.dispatch,i=r.app,o=r.view,u=r.elementTree;return e.useCallback((function(e){var t=e.component,r=e.label,c=e.customParameters;return a&&a({app:i,view:o,elementTree:u,event:n,component:t,label:r,timestamp:Date.now(),customParameters:c})}),[i,a,u,n,o])};!function(e){e.click="click",e.view="view",e.load="load",e.pageView="page-view",e.pageReactivated="page-reactivated",e.submit="submit",e.browserBack="browser-back",e.sectionExpanded="section-expanded"}(o||(o={}));var v=function(){return l(o.click)},s=function(){return l(o.submit)},f=function(){var t=l(o.pageView);return e.useCallback((function(){return t({})}),[t])},m=function(t,n){void 0===n&&(n=!0);var r,i,o=a(e.useState(n),2),u=o[0],c=o[1],l=(r=u,i=e.useRef(r),e.useEffect((function(){i.current=r}),[r]),i.current);e.useEffect((function(){var e=function(){c(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),l!==u&&t(u)},d=function(e){var t=l(o.pageReactivated);m((function(e){return e&&t({})}),e)},p=function(){return l(o.sectionExpanded)},b=function(e,t){var n=e.reduce((function(e,t){var n=t.customParameters||{};return r(r({},e),n)}),{}),a=Object.keys(n).reduce((function(e,t){var n;return r(r({},e),((n={})[t]=void 0,n))}),{});return r(r({},t),{customParameters:r(r({},a),t.customParameters),_clear:!0})};export{c as TrackingElement,n as TrackingRoot,u as TrackingView,b as getFlushedPayload,v as useClickTrigger,d as usePageActiveTrigger,f as usePageViewTrigger,p as useSectionExpandedTrigger,s as useSubmitTrigger}; | ||
import*as e from"react";var t=e.createContext({app:void 0,view:void 0,elementTree:[]});function n(n){var r=n.name,a=n.onDispatch,i=n.children,o=e.useMemo((function(){return{app:r,dispatch:a,elementTree:[]}}),[r,a]);return e.createElement(t.Provider,{value:o},i)} | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var r,a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function o(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e}function u(n){var r=n.name,i=n.children,o=e.useContext(t),u=e.useMemo((function(){return a(a({},o),{view:r})}),[o,r]);return e.createElement(t.Provider,{value:u},i)}function c(n){var r=n.name,u=n.label,c=n.children,l=e.useContext(t),v=u?r+"|"+u:r,s=e.useMemo((function(){return a(a({},l),{elementTree:o(o([],i(l.elementTree)),[v])})}),[l,v]);return e.createElement(t.Provider,{value:s},c)}function l(n){var r=e.useContext(t),a=r.dispatch,i=r.app,o=r.view,u=r.elementTree;return e.useCallback((function(e){var t=e.component,r=e.label,c=e.customParameters;return a&&a({app:i,view:o,elementTree:u,event:n,component:t,label:r,timestamp:Date.now(),customParameters:c})}),[i,a,u,n,o])}!function(e){e.click="click",e.view="view",e.load="load",e.pageView="page-view",e.pageReactivated="page-reactivated",e.submit="submit",e.browserBack="browser-back",e.sectionExpanded="section-expanded"}(r||(r={}));var v=function(){return l(r.click)},s=function(){return l(r.submit)},f=function(){var t=l(r.pageView);return e.useCallback((function(){return t({})}),[t])};function m(t,n){void 0===n&&(n=!0);var r,a,o=i(e.useState(n),2),u=o[0],c=o[1],l=(r=u,a=e.useRef(r),e.useEffect((function(){a.current=r}),[r]),a.current);e.useEffect((function(){var e=function(){c(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),l!==u&&t(u)}function d(e){var t=l(r.pageReactivated);m((function(e){return e&&t({})}),e)}var p=function(){return l(r.sectionExpanded)};function b(e,t){var n=e.reduce((function(e,t){var n=t.customParameters||{};return a(a({},e),n)}),{}),r=Object.keys(n).reduce((function(e,t){var n;return a(a({},e),((n={})[t]=void 0,n))}),{});return a(a({},t),{customParameters:a(a({},r),t.customParameters),_clear:!0})}export{c as TrackingElement,n as TrackingRoot,u as TrackingView,b as getFlushedPayload,v as useClickTrigger,d as usePageActiveTrigger,f as usePageViewTrigger,p as useSectionExpandedTrigger,s as useSubmitTrigger}; |
@@ -1,1 +0,16 @@ | ||
"use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),r=t.createContext({app:void 0,view:void 0,elementTree:[]}),n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,i=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(a)throw a.error}}return u}function i(e,t){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e}var u,o=function(e){var n=t.useContext(r),a=n.dispatch,i=n.app,u=n.view,o=n.elementTree;return t.useCallback((function(t){var r=t.component,n=t.label,c=t.customParameters;return a&&a({app:i,view:u,elementTree:o,event:e,component:r,label:n,timestamp:Date.now(),customParameters:c})}),[i,a,o,e,u])};!function(e){e.click="click",e.view="view",e.load="load",e.pageView="page-view",e.pageReactivated="page-reactivated",e.submit="submit",e.browserBack="browser-back",e.sectionExpanded="section-expanded"}(u||(u={}));var c=function(e,r){void 0===r&&(r=!0);var n,i,u=a(t.useState(r),2),o=u[0],c=u[1],s=(n=o,i=t.useRef(n),t.useEffect((function(){i.current=n}),[n]),i.current);t.useEffect((function(){var e=function(){c(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),s!==o&&e(o)};exports.TrackingElement=function(e){var u=e.name,o=e.label,c=e.children,s=t.useContext(r),l=o?u+"|"+o:u,f=t.useMemo((function(){return n(n({},s),{elementTree:i(i([],a(s.elementTree)),[l])})}),[s,l]);return t.createElement(r.Provider,{value:f},c)},exports.TrackingRoot=function(e){var n=e.name,a=e.onDispatch,i=e.children,u=t.useMemo((function(){return{app:n,dispatch:a,elementTree:[]}}),[n,a]);return t.createElement(r.Provider,{value:u},i)},exports.TrackingView=function(e){var a=e.name,i=e.children,u=t.useContext(r),o=t.useMemo((function(){return n(n({},u),{view:a})}),[u,a]);return t.createElement(r.Provider,{value:o},i)},exports.getFlushedPayload=function(e,t){var r=e.reduce((function(e,t){var r=t.customParameters||{};return n(n({},e),r)}),{}),a=Object.keys(r).reduce((function(e,t){var r;return n(n({},e),((r={})[t]=void 0,r))}),{});return n(n({},t),{customParameters:n(n({},a),t.customParameters),_clear:!0})},exports.useClickTrigger=function(){return o(u.click)},exports.usePageActiveTrigger=function(e){var t=o(u.pageReactivated);c((function(e){return e&&t({})}),e)},exports.usePageViewTrigger=function(){var e=o(u.pageView);return t.useCallback((function(){return e({})}),[e])},exports.useSectionExpandedTrigger=function(){return o(u.sectionExpanded)},exports.useSubmitTrigger=function(){return o(u.submit)}; | ||
"use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react")),r=t.createContext({app:void 0,view:void 0,elementTree:[]}); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var n,i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)u.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return u}function u(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function o(e){var n=t.useContext(r),i=n.dispatch,a=n.app,u=n.view,o=n.elementTree;return t.useCallback((function(t){var r=t.component,n=t.label,c=t.customParameters;return i&&i({app:a,view:u,elementTree:o,event:e,component:r,label:n,timestamp:Date.now(),customParameters:c})}),[a,i,o,e,u])}!function(e){e.click="click",e.view="view",e.load="load",e.pageView="page-view",e.pageReactivated="page-reactivated",e.submit="submit",e.browserBack="browser-back",e.sectionExpanded="section-expanded"}(n||(n={}));function c(e,r){void 0===r&&(r=!0);var n,i,u=a(t.useState(r),2),o=u[0],c=u[1],s=(n=o,i=t.useRef(n),t.useEffect((function(){i.current=n}),[n]),i.current);t.useEffect((function(){var e=function(){c(!document.hidden)};return document.addEventListener("visibilitychange",e),function(){document.removeEventListener("visibilitychange",e)}}),[]),s!==o&&e(o)}exports.TrackingElement=function(e){var n=e.name,o=e.label,c=e.children,s=t.useContext(r),l=o?n+"|"+o:n,f=t.useMemo((function(){return i(i({},s),{elementTree:u(u([],a(s.elementTree)),[l])})}),[s,l]);return t.createElement(r.Provider,{value:f},c)},exports.TrackingRoot=function(e){var n=e.name,i=e.onDispatch,a=e.children,u=t.useMemo((function(){return{app:n,dispatch:i,elementTree:[]}}),[n,i]);return t.createElement(r.Provider,{value:u},a)},exports.TrackingView=function(e){var n=e.name,a=e.children,u=t.useContext(r),o=t.useMemo((function(){return i(i({},u),{view:n})}),[u,n]);return t.createElement(r.Provider,{value:o},a)},exports.getFlushedPayload=function(e,t){var r=e.reduce((function(e,t){var r=t.customParameters||{};return i(i({},e),r)}),{}),n=Object.keys(r).reduce((function(e,t){var r;return i(i({},e),((r={})[t]=void 0,r))}),{});return i(i({},t),{customParameters:i(i({},n),t.customParameters),_clear:!0})},exports.useClickTrigger=function(){return o(n.click)},exports.usePageActiveTrigger=function(e){var t=o(n.pageReactivated);c((function(e){return e&&t({})}),e)},exports.usePageViewTrigger=function(){var e=o(n.pageView);return t.useCallback((function(){return e({})}),[e])},exports.useSectionExpandedTrigger=function(){return o(n.sectionExpanded)},exports.useSubmitTrigger=function(){return o(n.submit)}; |
@@ -26,3 +26,2 @@ /** | ||
*/ | ||
declare const getFlushedPayload: (previousPayloads: Payload[], payload: Payload) => Payload; | ||
export default getFlushedPayload; | ||
export declare function getFlushedPayload(previousPayloads: Payload[], payload: Payload): Payload; |
@@ -15,3 +15,2 @@ /** | ||
*/ | ||
import getFlushedPayload from './getFlushedPayload'; | ||
export default getFlushedPayload; | ||
export { getFlushedPayload } from './getFlushedPayload'; |
@@ -46,2 +46,3 @@ /** | ||
} | ||
export declare type DispatchFn = (dispatch: Dispatch) => void; | ||
export interface TrackingContextKeys { | ||
@@ -51,3 +52,3 @@ app?: string; | ||
elementTree: ElementTree; | ||
dispatch?: (e: Payload) => void; | ||
dispatch?: (payload: Payload) => void; | ||
setView?: (view: string) => void; | ||
@@ -54,0 +55,0 @@ } |
{ | ||
"name": "@sumup/collector", | ||
"sideEffects": false, | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "build/index.js", | ||
@@ -29,8 +29,8 @@ "module": "build/index.es.js", | ||
"devDependencies": { | ||
"@sumup/foundry": "^3.5.1", | ||
"@sumup/foundry": "^4.0.1", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/react-hooks": "^7.0.1", | ||
"@testing-library/react": "^12.1.0", | ||
"@testing-library/react-hooks": "^7.0.2", | ||
"@types/jest": "^27.0.1", | ||
"@types/react": "^17.0.18", | ||
"@types/react": "^17.0.20", | ||
"@types/react-dom": "^17.0.9", | ||
@@ -42,3 +42,3 @@ "cz-conventional-changelog": "3.3.0", | ||
"react-test-renderer": "^17.0.2", | ||
"rollup": "^2.56.2", | ||
"rollup": "^2.56.3", | ||
"rollup-plugin-peer-deps-external": "^2.2.0", | ||
@@ -49,3 +49,3 @@ "rollup-plugin-terser": "^7.0.2", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64853
733