@zywave/notes-widget
Advanced tools
Comparing version 1.1.1 to 1.2.0-rc.2
@@ -156,2 +156,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
if (createdNote) { | ||
window.heap.track("Create Note", createdNote); | ||
const event = new CustomEvent('note-created', { detail: createdNote }); | ||
@@ -158,0 +159,0 @@ this.dispatchEvent(event); |
@@ -45,2 +45,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
redirectToDetails() { | ||
window.heap.track("View Note Details", this.note); | ||
window.location.href = this.notesUri + "/account/" + this.accountId + "/note/" + this.note.noteId; | ||
@@ -47,0 +48,0 @@ } |
@@ -23,2 +23,3 @@ import { LitElement } from 'lit'; | ||
private openAddNoteDialog; | ||
private trackEvent; | ||
private addCreatedNoteToList; | ||
@@ -25,0 +26,0 @@ } |
@@ -42,2 +42,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
this.trackEvent = () => { | ||
window.heap.track("View All Notes", {}); | ||
}; | ||
this.addCreatedNoteToList = (event) => { | ||
@@ -116,3 +119,4 @@ this._loadNotesTask = new Task(this, () => { | ||
type="secondary" | ||
> | ||
@click=${this.trackEvent} | ||
> | ||
<a href=${`${this.notesUri}/account/${this.accountId}`}></a> | ||
@@ -119,0 +123,0 @@ View all notes |
declare global { | ||
interface Window { | ||
zywave: any; | ||
heap: any; | ||
} | ||
@@ -5,0 +6,0 @@ } |
{ | ||
"name": "@zywave/notes-widget", | ||
"version": "1.1.1", | ||
"version": "1.2.0-rc.2", | ||
"description": "A custom web component for notes functionality through a widget", | ||
@@ -5,0 +5,0 @@ "main": "dist/notes-widget.js", |
@@ -189,2 +189,3 @@ import { LitElement, html, css, nothing } from 'lit'; | ||
if(createdNote) { | ||
window.heap.track("Create Note", createdNote); | ||
const event = new CustomEvent('note-created', {detail: createdNote}); | ||
@@ -191,0 +192,0 @@ this.dispatchEvent(event); |
@@ -109,2 +109,3 @@ import { LitElement, html, css, nothing } from 'lit'; | ||
private redirectToDetails() { | ||
window.heap.track("View Note Details", this.note) | ||
window.location.href = this.notesUri + "/account/" + this.accountId + "/note/" + this.note.noteId; | ||
@@ -111,0 +112,0 @@ } |
@@ -154,3 +154,4 @@ import { LitElement, html, css } from 'lit'; | ||
type="secondary" | ||
> | ||
@click=${this.trackEvent} | ||
> | ||
<a href=${`${this.notesUri}/account/${this.accountId}`}></a> | ||
@@ -198,2 +199,6 @@ View all notes | ||
private trackEvent = (): void => { | ||
window.heap.track("View All Notes", {}); | ||
} | ||
private addCreatedNoteToList = (event: NoteCreatedEvent): void =>{ | ||
@@ -200,0 +205,0 @@ this._loadNotesTask = new Task( |
declare global { | ||
interface Window { | ||
zywave: any; | ||
heap: any; | ||
} | ||
@@ -5,0 +6,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
280018
3487
2