leadconduit-trustedform 1.16.1 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leadconduit-trustedform",
3
- "version": "1.16.1",
3
+ "version": "1.17.1",
4
4
  "description": "LeadConduit integration with TrustedForm",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,6 +18,7 @@
18
18
  },
19
19
  "license": "CC-BY-NC-ND-4.0",
20
20
  "dependencies": {
21
+ "@activeprospect/integration-components": "^3.0.0",
21
22
  "express": "^4.17.1",
22
23
  "leadconduit-integration": "^0.4.1",
23
24
  "leadconduit-integration-ui": "^1.1.4",
@@ -1,53 +0,0 @@
1
- <template>
2
- <div v-if="!isClaim">
3
- <header>
4
- Set Up TrustedForm Data Service
5
- </header>
6
- <section>
7
- <p>
8
- TrustedForm Data Service provides lead buyers with optimized lead data that helps them assess the value of a lead. It helps buyers identify the leads that are most likely to convert and effectively manage returns and rejections. At the time of purchase, or any time thereafter, the lead buyer can use the LeadConduit platform to access lead metadata (not PII) found in the TrustedForm certificates.
9
- </p>
10
- <p>
11
- <b>Note:</b> To access TrustedForm Data Service data, your lead source must use the TrustedForm script on their lead forms.
12
- </p>
13
- </section>
14
- <Navigation/>
15
- </div>
16
- <div v-else-if="isClaim">
17
- <header>
18
- TrustedForm Claim
19
- </header>
20
- <section>
21
- <span class="loading"></span> We're setting up your TrustedForm step now.
22
- </section>
23
- <Navigation :show-next="false"/>
24
- </div>
25
- </template>
26
-
27
- <script>
28
- import Navigation from './components/Navigation.vue';
29
-
30
- export default {
31
- data() {
32
- return {
33
- isClaim: false,
34
- };
35
- },
36
- components: {
37
- Navigation
38
- },
39
- mounted() {
40
- // if TrustedForm Claim integration is selected, wait 2 seconds and create flow
41
- // This prevents the modal from rapidly opening and slamming closed,
42
- // which is a jarring experience
43
-
44
- const { integration } = this.$store.state.config;
45
- if (integration.includes('claim')) {
46
- this.isClaim = true;
47
- setTimeout(() => {
48
- this.$store.dispatch('finish');
49
- }, 2000);
50
- }
51
- },
52
- };
53
- </script>
@@ -1,54 +0,0 @@
1
- <template>
2
- <div>
3
- <footer>
4
- <button @click="cancel" class="tertiary-control">Cancel</button>
5
- <button v-if="showPrev" @click="prev" class="tertiary-control">Prev</button>
6
- <slot name="footer"></slot>
7
- <button v-if="showNext" @click="next" class="primary" :disabled="disabled">Next</button>
8
- </footer>
9
- </div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- props: {
15
- title: String,
16
- showNext: {
17
- type: Boolean,
18
- default: true,
19
- },
20
- disabled: {
21
- type: Boolean,
22
- default: false
23
- }
24
- },
25
- data() {
26
- return {
27
- page: this.$router.currentRoute.path,
28
- showPrev: true,
29
- };
30
- },
31
- computed: {
32
- pageNo() {
33
- if (this.page === '/') return 1;
34
- return parseInt(this.page.slice(1), 10);
35
- },
36
- },
37
- methods: {
38
- cancel() {
39
- this.$store.dispatch('cancel');
40
- },
41
- prev() {
42
- this.$router.push(`/${this.pageNo - 1}`);
43
- },
44
- next() {
45
- this.$router.push(`/${this.pageNo + 1}`);
46
- },
47
- },
48
- mounted() {
49
- if (this.pageNo === 1) {
50
- this.showPrev = false;
51
- }
52
- },
53
- };
54
- </script>