@financial-times/o-tracking
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -120,2 +120,5 @@ import Delegate from "ftdomdelegate"; | ||
export { init }; | ||
var click = { | ||
init | ||
}; | ||
export { click }; |
@@ -80,2 +80,5 @@ import core from "../core.js"; | ||
export { init }; | ||
var view = { | ||
init | ||
}; | ||
export { view }; |
@@ -7,6 +7,6 @@ import { set, get, destroy as destroySetting } from "./core/settings.js"; | ||
import { page } from "./events/page-view.js"; | ||
import { init as initClick } from "./events/click.js"; | ||
import { click } from "./events/click.js"; | ||
import core from "./core.js"; | ||
import { merge, broadcast } from "./utils.js"; | ||
import { init as initView } from "./events/component-view.js"; | ||
import { view } from "./events/component-view.js"; | ||
var initEvent = event.init; | ||
@@ -197,8 +197,8 @@ var initPage = page.init; | ||
init, | ||
click: initClick, | ||
click, | ||
event, | ||
page, | ||
view: initView, | ||
view, | ||
getRootID: core.getRootID | ||
}; | ||
export default tracking; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.init = void 0; | ||
exports.click = void 0; | ||
@@ -136,2 +136,5 @@ var _ftdomdelegate = _interopRequireDefault(require("ftdomdelegate")); | ||
exports.init = init; | ||
var click = { | ||
init | ||
}; | ||
exports.click = click; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.init = void 0; | ||
exports.view = void 0; | ||
@@ -95,2 +95,5 @@ var _core = _interopRequireDefault(require("../core.js")); | ||
exports.init = init; | ||
var view = { | ||
init | ||
}; | ||
exports.view = view; |
@@ -215,6 +215,6 @@ "use strict"; | ||
init, | ||
click: _click.init, | ||
click: _click.click, | ||
event: _custom.event, | ||
page: _pageView.page, | ||
view: _componentView.init, | ||
view: _componentView.view, | ||
getRootID: _core.default.getRootID | ||
@@ -221,0 +221,0 @@ }; |
@@ -16,3 +16,3 @@ { | ||
"name": "@financial-times/o-tracking", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Origami module for FT tracking.", | ||
@@ -19,0 +19,0 @@ "dependencies": { |
@@ -121,4 +121,6 @@ import Delegate from 'ftdomdelegate'; | ||
export { | ||
const click = { | ||
init | ||
}; | ||
export { click }; |
@@ -83,3 +83,8 @@ import core from '../core.js'; | ||
export { init }; | ||
const view = { | ||
init | ||
}; | ||
export { view }; | ||
@@ -7,6 +7,6 @@ import {set, get, destroy as destroySetting} from './core/settings.js'; | ||
import {page} from './events/page-view.js'; | ||
import {init as initClick} from './events/click.js'; | ||
import {click} from './events/click.js'; | ||
import core from './core.js'; | ||
import { merge, broadcast } from './utils.js'; | ||
import {init as initView} from './events/component-view.js'; | ||
import {view} from './events/component-view.js'; | ||
@@ -197,6 +197,6 @@ const initEvent = event.init; | ||
init, | ||
click: initClick, | ||
click, | ||
event, | ||
page, | ||
view: initView, | ||
view, | ||
getRootID: core.getRootID | ||
@@ -203,0 +203,0 @@ }; |
@@ -10,3 +10,3 @@ /* eslint-env mocha */ | ||
import core from '../../src/javascript/core.js'; | ||
import {init as initClick} from '../../src/javascript/events/click.js'; | ||
import {click} from '../../src/javascript/events/click.js'; | ||
import {init as initSession} from '../../src/javascript/core/session.js'; | ||
@@ -41,3 +41,3 @@ | ||
initClick("blah", '#anchorA'); | ||
click.init("blah", '#anchorA'); | ||
@@ -81,3 +81,3 @@ const aLinkToGoogle = document.createElement('a'); | ||
initClick("blah", '#anchorB'); | ||
click.init("blah", '#anchorB'); | ||
@@ -121,3 +121,3 @@ const aLinkToGoogle = document.createElement('a'); | ||
initClick("blah", '#anchorC'); | ||
click.init("blah", '#anchorC'); | ||
@@ -162,5 +162,5 @@ const aLinkToSecuredrop = document.createElement('a'); | ||
initClick("blah", '#anchorD'); | ||
click.init("blah", '#anchorD'); | ||
core.track.resetHistory(); // initClick() makes a call to track() so clearing the history here to avoid false positives | ||
core.track.resetHistory(); // click.init() makes a call to track() so clearing the history here to avoid false positives | ||
@@ -204,5 +204,5 @@ const aLinkToPageOnSameDomain = document.createElement('a'); | ||
initClick("blah", '#anchorE'); | ||
click.init("blah", '#anchorE'); | ||
core.track.resetHistory(); // initClick() makes a call to track() so clearing the history here to avoid false positives | ||
core.track.resetHistory(); // click.init() makes a call to track() so clearing the history here to avoid false positives | ||
@@ -209,0 +209,0 @@ const aLinkToPageOnSameDomain = document.createElement('a'); |
@@ -10,3 +10,3 @@ /* eslint-env mocha */ | ||
import {init as initSession} from '../../src/javascript/core/session.js'; | ||
import {init as initComponentView} from '../../src/javascript/events/component-view.js'; | ||
import {view} from '../../src/javascript/events/component-view.js'; | ||
@@ -92,3 +92,3 @@ const config = { | ||
createTargetComponent(attributes, text); | ||
initComponentView(); | ||
view.init(); | ||
viewed(targetComponent); | ||
@@ -130,3 +130,3 @@ }); | ||
initComponentView(opts); | ||
view.init(opts); | ||
viewed(targetComponent); | ||
@@ -150,3 +150,3 @@ }); | ||
initComponentView(opts); | ||
view.init(opts); | ||
viewed(targetComponent); | ||
@@ -169,3 +169,3 @@ }); | ||
initComponentView(opts); | ||
view.init(opts); | ||
viewed(targetComponent); | ||
@@ -193,3 +193,3 @@ }); | ||
initComponentView(opts); | ||
view.init(opts); | ||
viewed(targetComponent); | ||
@@ -196,0 +196,0 @@ }); |
Sorry, the diff of this file is not supported yet
8270
337488