mod-build 3.4.29-beta.1 → 3.4.31

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": "mod-build",
3
- "version": "3.4.29-beta.1",
3
+ "version": "3.4.31",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -22,15 +22,18 @@ var quoteFooterData = function(siteData) {
22
22
  privacyLinks: [
23
23
  {
24
24
  text: 'California Privacy',
25
- anchor: 'ccpa'
25
+ anchor: 'ccpa',
26
+ modal: true
26
27
  },
27
28
  {
28
29
  text: 'New York Privacy',
29
- anchor: 'nyna'
30
+ anchor: 'nyna',
31
+ modal: true
30
32
  },
31
33
  {
32
34
  text: 'Do Not Sell My Personal Information',
33
- anchor: 'uspi'
35
+ anchor: 'https://privacy-central.securiti.ai/#/dsr/983cfd4b-c36a-4601-89e9-b651e5a05708',
36
+ modal: false
34
37
  }
35
38
  ],
36
39
  links: [
@@ -20,7 +20,7 @@
20
20
  data-load="/modals{{this.url}}index.html"
21
21
  {{/xif}}
22
22
  >
23
- {{this.name}}
23
+ {{{this.name}}}
24
24
  </a>
25
25
  </li>
26
26
  {{/each}}
@@ -42,7 +42,7 @@
42
42
  data-load="/modals{{this.url}}index.html"
43
43
  {{/xif}}
44
44
  >
45
- {{this.name}}
45
+ {{{this.name}}}
46
46
  </a>
47
47
  </li>
48
48
  {{/each}}
@@ -24,7 +24,19 @@
24
24
  {{#xif "this.privacylinks === 'top'"}}
25
25
  <div class="footer__links">
26
26
  {{#each quoteFooterData.privacyLinks}}
27
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">{{{this.text}}}</a>
27
+ <a
28
+ {{#xif "this.modal === true" }}
29
+ href="{{../links.privacy}}"
30
+ data-load="{{#if this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
31
+ data-bind="modal-link"
32
+ data-anchor="#{{this.anchor}}"
33
+ {{/xif}}
34
+ {{#xif "this.modal === false" }}
35
+ href="{{this.anchor}}"
36
+ target="_blank"
37
+ rel="noopener noreferrer"
38
+ {{/xif}}
39
+ >{{{this.text}}}</a>
28
40
  {{/each}}
29
41
  <!--
30
42
  - Define the customPrivacyLinks array of objects in template.js / siteconfig.js
@@ -32,7 +44,19 @@
32
44
  -->
33
45
  {{#if this.customPrivacyLinks}}
34
46
  {{#each this.customPrivacyLinks}}
35
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">{{{this.text}}}</a>
47
+ <a
48
+ {{#xif "this.modal === true" }}
49
+ href="{{../links.privacy}}"
50
+ data-load="{{#if this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
51
+ data-bind="modal-link"
52
+ data-anchor="#{{this.anchor}}"
53
+ {{/xif}}
54
+ {{#xif "this.modal === false" }}
55
+ href="{{this.anchor}}"
56
+ target="_blank"
57
+ rel="noopener noreferrer"
58
+ {{/xif}}
59
+ >{{{this.text}}}</a>
36
60
  {{/each}}
37
61
  {{/if}}
38
62
  </div>
@@ -51,8 +75,9 @@
51
75
 
52
76
  <div class="footer__links">
53
77
  {{#each quoteFooterData.links}}
54
- <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}} {{/if}}>
55
- {{this.text}}
78
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}
79
+ data-load="{{#if this.variation}}/modals/{{this.url}}/index.html{{else}}./modals/{{this.url}}/index.html{{/if}}" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}} {{/if}}>
80
+ {{{this.text}}}
56
81
  </a>
57
82
  {{/each}}
58
83
  <!--
@@ -61,7 +86,7 @@
61
86
  -->
62
87
  {{#if this.customFooterLinks}}
63
88
  {{#each this.customFooterLinks}}
64
- <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
89
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="{{#if this.variation}}/modals/{{this.url}}/index.html{{else}}./modals/{{this.url}}/index.html{{/if}}" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}" {{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{{this.text}}}</a>
65
90
  {{/each}}
66
91
  {{/if}}
67
92
  </div>
@@ -69,7 +94,19 @@
69
94
  {{#xif "this.privacylinks === 'bottom'"}}
70
95
  <div class="footer__links">
71
96
  {{#each quoteFooterData.privacyLinks}}
72
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">{{{this.text}}}</a>
97
+ <a
98
+ {{#xif "this.modal === true" }}
99
+ href="{{../links.privacy}}"
100
+ data-load="{{#if this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
101
+ data-bind="modal-link"
102
+ data-anchor="#{{this.anchor}}"
103
+ {{/xif}}
104
+ {{#xif "this.modal === false" }}
105
+ href="{{this.anchor}}"
106
+ target="_blank"
107
+ rel="noopener noreferrer"
108
+ {{/xif}}
109
+ >{{{this.text}}}</a>
73
110
  {{/each}}
74
111
  <!--
75
112
  - Define the customPrivacyLinks array of objects in template.js / siteconfig.js
@@ -77,7 +114,19 @@
77
114
  -->
78
115
  {{#if this.customPrivacyLinks}}
79
116
  {{#each this.customPrivacyLinks}}
80
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">{{{this.text}}}</a>
117
+ <a
118
+ {{#xif "this.modal === true" }}
119
+ href="{{../links.privacy}}"
120
+ data-load="{{#if this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
121
+ data-bind="modal-link"
122
+ data-anchor="#{{this.anchor}}"
123
+ {{/xif}}
124
+ {{#xif "this.modal === false" }}
125
+ href="{{this.anchor}}"
126
+ target="_blank"
127
+ rel="noopener noreferrer"
128
+ {{/xif}}
129
+ >{{{this.text}}}</a>
81
130
  {{/each}}
82
131
  {{/if}}
83
132
  </div>
@@ -25,7 +25,19 @@
25
25
  <ul class="footer__links">
26
26
  {{#each quoteFooterData.privacyLinks}}
27
27
  <li>
28
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">
28
+ <a
29
+ {{#xif "this.modal === true" }}
30
+ href="{{../links.privacy}}"
31
+ data-load="{{#if ../this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
32
+ data-bind="modal-link"
33
+ data-anchor="#{{this.anchor}}"
34
+ {{/xif}}
35
+ {{#xif "this.modal === false" }}
36
+ href="{{this.anchor}}"
37
+ target="_blank"
38
+ rel="noopener noreferrer"
39
+ {{/xif}}
40
+ >
29
41
  {{{this.text}}}
30
42
  </a>
31
43
  </li>
@@ -37,7 +49,19 @@
37
49
  {{#if this.customPrivacyLinks}}
38
50
  {{#each this.customPrivacyLinks}}
39
51
  <li>
40
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">
52
+ <a
53
+ {{#xif "this.modal === true" }}
54
+ href="{{../links.privacy}}"
55
+ data-load="{{#if ../this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
56
+ data-bind="modal-link"
57
+ data-anchor="#{{this.anchor}}"
58
+ {{/xif}}
59
+ {{#xif "this.modal === false" }}
60
+ href="{{this.anchor}}"
61
+ target="_blank"
62
+ rel="noopener noreferrer"
63
+ {{/xif}}
64
+ >
41
65
  {{{this.text}}}
42
66
  </a>
43
67
  </li>
@@ -50,7 +74,8 @@
50
74
  <ul class="footer__links">
51
75
  {{#each quoteFooterData.links}}
52
76
  <li>
53
- <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
77
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}
78
+ data-load="{{#if ../this.variation}}/modals/{{this.url}}/index.html{{else}}./modals/{{this.url}}/index.html{{/if}}" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{{this.text}}}</a>
54
79
  </li>
55
80
  {{/each}}
56
81
  <!--
@@ -60,7 +85,8 @@
60
85
  {{#if this.customFooterLinks}}
61
86
  {{#each this.customFooterLinks}}
62
87
  <li>
63
- <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}data-load="./modals/{{this.url}}/index.html" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{this.text}}</a>
88
+ <a href="{{#if this.modal}}/{{this.url}}{{else}}{{this.url}}{{/if}}" {{#xif "this.modal === true" }}
89
+ data-load="{{#if ../this.variation}}/modals/{{this.url}}/index.html{{else}}./modals/{{this.url}}/index.html{{/if}}" data-bind="modal-link"{{/xif}} {{#if this.target}}target="{{this.target}}"{{#xif "this.target === '_blank'"}} rel="noopener noreferrer"{{/xif}}{{/if}}>{{{this.text}}}</a>
64
90
  </li>
65
91
  {{/each}}
66
92
  {{/if}}
@@ -83,7 +109,19 @@
83
109
  <ul class="footer__links">
84
110
  {{#each quoteFooterData.privacyLinks}}
85
111
  <li>
86
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">
112
+ <a
113
+ {{#xif "this.modal === true" }}
114
+ href="{{../links.privacy}}"
115
+ data-load="{{#if ../this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
116
+ data-bind="modal-link"
117
+ data-anchor="#{{this.anchor}}"
118
+ {{/xif}}
119
+ {{#xif "this.modal === false" }}
120
+ href="{{this.anchor}}"
121
+ target="_blank"
122
+ rel="noopener noreferrer"
123
+ {{/xif}}
124
+ >
87
125
  {{{this.text}}}
88
126
  </a>
89
127
  </li>
@@ -95,7 +133,19 @@
95
133
  {{#if this.customPrivacyLinks}}
96
134
  {{#each this.customPrivacyLinks}}
97
135
  <li>
98
- <a href="{{../links.privacy}}" data-load="./modals/privacy/index.html" data-bind="modal-link" data-anchor="#{{this.anchor}}">
136
+ <a
137
+ {{#xif "this.modal === true" }}
138
+ href="{{../links.privacy}}"
139
+ data-load="{{#if ../this.variation}}/modals/privacy/index.html{{else}}./modals/privacy/index.html{{/if}}"
140
+ data-bind="modal-link"
141
+ data-anchor="#{{this.anchor}}"
142
+ {{/xif}}
143
+ {{#xif "this.modal === false" }}
144
+ href="{{this.anchor}}"
145
+ target="_blank"
146
+ rel="noopener noreferrer"
147
+ {{/xif}}
148
+ >
99
149
  {{{this.text}}}
100
150
  </a>
101
151
  </li>