@saasquatch/squatch-js 2.5.0 → 2.5.1-0
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/CHANGELOG.md +326 -326
- package/LICENSE +20 -20
- package/README.md +145 -145
- package/demo/sandbox.ts +124 -124
- package/demo/toolbar.tsx +526 -526
- package/dist/squatch.esm.js +1 -1
- package/dist/squatch.js +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/squatch.min.js.map +1 -1
- package/dist/squatch.modern.js +1 -1
- package/dist/squatch.modern.js.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +105 -105
package/CHANGELOG.md
CHANGED
|
@@ -1,326 +1,326 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [2.5.0] - 2023-05-16
|
|
11
|
-
|
|
12
|
-
### Removed
|
|
13
|
-
|
|
14
|
-
- Removed WidgetApi.cookieUser method and associated usage
|
|
15
|
-
|
|
16
|
-
### Changed
|
|
17
|
-
|
|
18
|
-
- Widgets.render now queries renderWidget rather than cookieUser api method
|
|
19
|
-
- Added squatch.widget function to render a widget without user upsert
|
|
20
|
-
|
|
21
|
-
- Example:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
var initObj = {
|
|
25
|
-
widgetType: "<MY_WIDGET>",
|
|
26
|
-
engagementMedium: "EMBED",
|
|
27
|
-
container: ".myContainer",
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
squatch
|
|
31
|
-
.widget(initObj)
|
|
32
|
-
.then(function (response) {
|
|
33
|
-
const widget = response.widget
|
|
34
|
-
})
|
|
35
|
-
.catch(function (error) {
|
|
36
|
-
console.log(error);
|
|
37
|
-
});
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
- Added auto-popup widget support:
|
|
41
|
-
- Reads `_saasquatchExtra` from the URL on load
|
|
42
|
-
- Renders the encoded widget from `_saasquatchExtra` parameter as a Popup Widget on load
|
|
43
|
-
|
|
44
|
-
## [2.4.3] - 2023-04-20
|
|
45
|
-
|
|
46
|
-
### Changed
|
|
47
|
-
- Updated license copyright to be in line with SaaSquatch open-source policy.
|
|
48
|
-
|
|
49
|
-
## [2.4.2] - 2023-04-10
|
|
50
|
-
|
|
51
|
-
### Added
|
|
52
|
-
|
|
53
|
-
- Added value to return data `squatchReferralCookie` to retrieve the encoded cookie
|
|
54
|
-
|
|
55
|
-
- Example:
|
|
56
|
-
|
|
57
|
-
```js
|
|
58
|
-
squatch
|
|
59
|
-
.api()
|
|
60
|
-
.squatchReferralCookie()
|
|
61
|
-
.then(function (response) {
|
|
62
|
-
const cookie = response.encodedCookie;
|
|
63
|
-
});
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## [2.4.1] - 2022-09-23
|
|
67
|
-
|
|
68
|
-
### Added
|
|
69
|
-
|
|
70
|
-
- Added event idempotencyKey to types
|
|
71
|
-
|
|
72
|
-
## [2.4.0] - 2022-03-15
|
|
73
|
-
|
|
74
|
-
### Changed
|
|
75
|
-
|
|
76
|
-
- EmbedWidget now supports a `container` as either a selector or an HTMLElement as a parameter
|
|
77
|
-
|
|
78
|
-
- Widget contents will be loaded in a hidden widget and can be opened and closed with `widget.open()` and `widget.close()`
|
|
79
|
-
|
|
80
|
-
- Example:
|
|
81
|
-
|
|
82
|
-
```js
|
|
83
|
-
var initObj = {
|
|
84
|
-
id: "testUser",
|
|
85
|
-
accountId: "testUser",
|
|
86
|
-
widgetType: "<MY_WIDGET>",
|
|
87
|
-
user: {
|
|
88
|
-
id: "testUser",
|
|
89
|
-
accountId: "testUser",
|
|
90
|
-
},
|
|
91
|
-
jwt: "<MY_JWT>",
|
|
92
|
-
engagementMedium: "EMBED",
|
|
93
|
-
container: ".myContainer",
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
squatch
|
|
97
|
-
.widgets()
|
|
98
|
-
.upsertUser(initObj)
|
|
99
|
-
.then(function (response) {
|
|
100
|
-
widget = response.widget;
|
|
101
|
-
widget.open();
|
|
102
|
-
})
|
|
103
|
-
.catch(function (error) {
|
|
104
|
-
console.log(error);
|
|
105
|
-
});
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
- PopupWidget now supports a `trigger` as a selector
|
|
109
|
-
|
|
110
|
-
- provides the ability to use a class other than `.squatchpop` for opening the widget
|
|
111
|
-
|
|
112
|
-
- `sq:refresh` event is sent when `.open()` is called on EmbedWidget and PopupWidget
|
|
113
|
-
|
|
114
|
-
## [2.3.1] - 2022-01-11
|
|
115
|
-
|
|
116
|
-
### Changed
|
|
117
|
-
|
|
118
|
-
- Reduced resize timeout to 500ms from 5000ms
|
|
119
|
-
|
|
120
|
-
## [2.3.0] - 2021-05-19
|
|
121
|
-
|
|
122
|
-
### Added
|
|
123
|
-
|
|
124
|
-
- Typescript definitions
|
|
125
|
-
- CommonJS/ES modules build for smaller bundle sizes when using squatch-js from NPM
|
|
126
|
-
|
|
127
|
-
### Changed
|
|
128
|
-
|
|
129
|
-
- `main` is now a CommonJS build instead of a UMD build
|
|
130
|
-
|
|
131
|
-
## [2.2.1] - 2020-06-17
|
|
132
|
-
|
|
133
|
-
### Changed
|
|
134
|
-
|
|
135
|
-
- Remove the need to have JS Options, so that older clients can upgrade to squatch.js v2 easily.
|
|
136
|
-
|
|
137
|
-
## [2.2.0] - 2020-06-12
|
|
138
|
-
|
|
139
|
-
### Added
|
|
140
|
-
|
|
141
|
-
- Reads `_saasquatch` from the URL and stores a 1st-party cookie on the specified landing page's domain.
|
|
142
|
-
- Sets `cookies` on users during an upsert **automatically**
|
|
143
|
-
|
|
144
|
-
```js
|
|
145
|
-
{
|
|
146
|
-
user: {
|
|
147
|
-
id: "abc",
|
|
148
|
-
accountId: "abc",
|
|
149
|
-
cookies: "SAASQUATCHCOOKIE",
|
|
150
|
-
...
|
|
151
|
-
}
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
- Reads the 1st-party cookie when using `autofill`
|
|
155
|
-
|
|
156
|
-
```js
|
|
157
|
-
squatch
|
|
158
|
-
.api()
|
|
159
|
-
.squatchReferralCookie()
|
|
160
|
-
.then(function (response) {
|
|
161
|
-
element.value = response.codes["program-id"];
|
|
162
|
-
});
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
## [2.1.8] - 2020-05-25
|
|
166
|
-
|
|
167
|
-
No release notes.
|
|
168
|
-
|
|
169
|
-
## [2.1.7] - 2020-05-21
|
|
170
|
-
|
|
171
|
-
No release notes.
|
|
172
|
-
|
|
173
|
-
## [2.1.6] - 2019-04-15
|
|
174
|
-
|
|
175
|
-
No release notes.
|
|
176
|
-
|
|
177
|
-
## [2.1.5] - 2019-02-19
|
|
178
|
-
|
|
179
|
-
No release notes.
|
|
180
|
-
|
|
181
|
-
## [2.1.4] - 2019-01-03
|
|
182
|
-
|
|
183
|
-
No release notes.
|
|
184
|
-
|
|
185
|
-
## [2.1.3] - 2018-12-05
|
|
186
|
-
|
|
187
|
-
No release notes.
|
|
188
|
-
|
|
189
|
-
## [2.1.2] - 2018-10-22
|
|
190
|
-
|
|
191
|
-
No release notes.
|
|
192
|
-
|
|
193
|
-
## [2.1.1] - 2018-10-19
|
|
194
|
-
|
|
195
|
-
### Fixed
|
|
196
|
-
|
|
197
|
-
- POPUP Widget in iOS Safari is not clickable when is hidden anymore
|
|
198
|
-
|
|
199
|
-
## [2.1.0] - 2018-09-26
|
|
200
|
-
|
|
201
|
-
No release notes.
|
|
202
|
-
|
|
203
|
-
## [2.0.17] - 2017-12-21
|
|
204
|
-
|
|
205
|
-
### Fixed
|
|
206
|
-
|
|
207
|
-
- Fixed content-type detection bug
|
|
208
|
-
|
|
209
|
-
## [2.0.16] - 2017-10-24
|
|
210
|
-
|
|
211
|
-
### Fixed
|
|
212
|
-
|
|
213
|
-
- Fix scrolling issue to allow scrolling within popup modal
|
|
214
|
-
|
|
215
|
-
## [2.0.15] - 2017-10-12
|
|
216
|
-
|
|
217
|
-
### Added
|
|
218
|
-
|
|
219
|
-
- Support for scrolling popup in mobile
|
|
220
|
-
|
|
221
|
-
## [2.0.14] - 2017-10-11
|
|
222
|
-
|
|
223
|
-
### Fixed
|
|
224
|
-
|
|
225
|
-
- Fix registration form message in popup
|
|
226
|
-
|
|
227
|
-
## [2.0.13] - 2017-08-03
|
|
228
|
-
|
|
229
|
-
No release notes.
|
|
230
|
-
|
|
231
|
-
## [2.0.12] - 2017-07-18
|
|
232
|
-
|
|
233
|
-
No release notes.
|
|
234
|
-
|
|
235
|
-
## [2.0.11] - 2017-07-18
|
|
236
|
-
|
|
237
|
-
No release notes.
|
|
238
|
-
|
|
239
|
-
## [2.0.10] - 2017-06-30
|
|
240
|
-
|
|
241
|
-
No release notes.
|
|
242
|
-
|
|
243
|
-
## [2.0.9] - 2017-06-08
|
|
244
|
-
|
|
245
|
-
No release notes.
|
|
246
|
-
|
|
247
|
-
## [2.0.8] - 2017-06-08
|
|
248
|
-
|
|
249
|
-
No release notes.
|
|
250
|
-
|
|
251
|
-
## [2.0.7] - 2017-04-24
|
|
252
|
-
|
|
253
|
-
No release notes.
|
|
254
|
-
|
|
255
|
-
## [2.0.6] - 2017-02-14
|
|
256
|
-
|
|
257
|
-
### Fixed
|
|
258
|
-
|
|
259
|
-
- Fix share tracking
|
|
260
|
-
- Ignore CONVERSION_WIDGET widget rules when there's no referrals
|
|
261
|
-
|
|
262
|
-
### Changed
|
|
263
|
-
|
|
264
|
-
- Auto-fill content type check changed to non-case sensitive
|
|
265
|
-
|
|
266
|
-
## [2.0.5] - 2016-12-07
|
|
267
|
-
|
|
268
|
-
No release notes.
|
|
269
|
-
|
|
270
|
-
## [2.0.4] - 2016-12-06
|
|
271
|
-
|
|
272
|
-
No release notes.
|
|
273
|
-
|
|
274
|
-
## [2.0.3] - 2016-11-30
|
|
275
|
-
|
|
276
|
-
No release notes.
|
|
277
|
-
|
|
278
|
-
## [2.0.2] - 2016-11-29
|
|
279
|
-
|
|
280
|
-
No release notes.
|
|
281
|
-
|
|
282
|
-
## [2.0.1] - 2016-11-25
|
|
283
|
-
|
|
284
|
-
No release notes.
|
|
285
|
-
|
|
286
|
-
## [2.0.0] - 2016-11-25
|
|
287
|
-
|
|
288
|
-
No release notes.
|
|
289
|
-
|
|
290
|
-
[unreleased]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.5.0...HEAD
|
|
291
|
-
[2.5.0]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.1...@saasquatch%2Fsquatch-js@2.5.0
|
|
292
|
-
[2.4.3]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.2...@saasquatch%2Fsquatch-js@2.4.3
|
|
293
|
-
[2.4.2]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.1...@saasquatch%2Fsquatch-js@2.4.2
|
|
294
|
-
[2.4.1]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.0...@saasquatch%2Fsquatch-js@2.4.1
|
|
295
|
-
[2.4.0]: https://github.com/saasquatch/squatch-js/compare/v2.3.1...@saasquatch%2Fsquatch-js@2.4.0
|
|
296
|
-
[2.3.1]: https://github.com/saasquatch/squatch-js/compare/v2.3.0...v2.3.1
|
|
297
|
-
[2.3.0]: https://github.com/saasquatch/squatch-js/compare/v2.2.1...v2.3.0
|
|
298
|
-
[2.2.1]: https://github.com/saasquatch/squatch-js/compare/v2.2.0...v2.2.1
|
|
299
|
-
[2.2.0]: https://github.com/saasquatch/squatch-js/compare/v2.1.8...v2.2.0
|
|
300
|
-
[2.1.8]: https://github.com/saasquatch/squatch-js/compare/v2.1.7...v2.1.8
|
|
301
|
-
[2.1.7]: https://github.com/saasquatch/squatch-js/compare/v2.1.6...v2.1.7
|
|
302
|
-
[2.1.6]: https://github.com/saasquatch/squatch-js/compare/v2.1.5...v2.1.6
|
|
303
|
-
[2.1.5]: https://github.com/saasquatch/squatch-js/compare/v2.1.4...v2.1.5
|
|
304
|
-
[2.1.4]: https://github.com/saasquatch/squatch-js/compare/v2.1.3...v2.1.4
|
|
305
|
-
[2.1.3]: https://github.com/saasquatch/squatch-js/compare/v2.1.2...v2.1.3
|
|
306
|
-
[2.1.2]: https://github.com/saasquatch/squatch-js/compare/v2.1.1...v2.1.2
|
|
307
|
-
[2.1.1]: https://github.com/saasquatch/squatch-js/compare/v2.1.0...v2.1.1
|
|
308
|
-
[2.1.0]: https://github.com/saasquatch/squatch-js/compare/v2.0.17...v2.1.0
|
|
309
|
-
[2.0.17]: https://github.com/saasquatch/squatch-js/compare/v2.0.16...v2.0.17
|
|
310
|
-
[2.0.16]: https://github.com/saasquatch/squatch-js/compare/v2.0.15...v2.0.16
|
|
311
|
-
[2.0.15]: https://github.com/saasquatch/squatch-js/compare/v2.0.14...v2.0.15
|
|
312
|
-
[2.0.14]: https://github.com/saasquatch/squatch-js/compare/v2.0.13...v2.0.14
|
|
313
|
-
[2.0.13]: https://github.com/saasquatch/squatch-js/compare/v2.0.12...v2.0.13
|
|
314
|
-
[2.0.12]: https://github.com/saasquatch/squatch-js/compare/v2.0.11...v2.0.12
|
|
315
|
-
[2.0.11]: https://github.com/saasquatch/squatch-js/compare/v2.0.10...v2.0.11
|
|
316
|
-
[2.0.10]: https://github.com/saasquatch/squatch-js/compare/v2.0.9...v2.0.10
|
|
317
|
-
[2.0.9]: https://github.com/saasquatch/squatch-js/compare/v2.0.8...v2.0.9
|
|
318
|
-
[2.0.8]: https://github.com/saasquatch/squatch-js/compare/v2.0.7...v2.0.8
|
|
319
|
-
[2.0.7]: https://github.com/saasquatch/squatch-js/compare/v2.0.6...v2.0.7
|
|
320
|
-
[2.0.6]: https://github.com/saasquatch/squatch-js/compare/v2.0.5...v2.0.6
|
|
321
|
-
[2.0.5]: https://github.com/saasquatch/squatch-js/compare/v2.0.4...v2.0.5
|
|
322
|
-
[2.0.4]: https://github.com/saasquatch/squatch-js/compare/v2.0.3...v2.0.4
|
|
323
|
-
[2.0.3]: https://github.com/saasquatch/squatch-js/compare/v2.0.2...v2.0.3
|
|
324
|
-
[2.0.2]: https://github.com/saasquatch/squatch-js/compare/v2.0.1...v2.0.2
|
|
325
|
-
[2.0.1]: https://github.com/saasquatch/squatch-js/compare/v2.0.0...v2.0.1
|
|
326
|
-
[2.0.0]: https://github.com/saasquatch/squatch-js/releases/tag/v2.0.0
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [2.5.0] - 2023-05-16
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- Removed WidgetApi.cookieUser method and associated usage
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Widgets.render now queries renderWidget rather than cookieUser api method
|
|
19
|
+
- Added squatch.widget function to render a widget without user upsert
|
|
20
|
+
|
|
21
|
+
- Example:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
var initObj = {
|
|
25
|
+
widgetType: "<MY_WIDGET>",
|
|
26
|
+
engagementMedium: "EMBED",
|
|
27
|
+
container: ".myContainer",
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
squatch
|
|
31
|
+
.widget(initObj)
|
|
32
|
+
.then(function (response) {
|
|
33
|
+
const widget = response.widget
|
|
34
|
+
})
|
|
35
|
+
.catch(function (error) {
|
|
36
|
+
console.log(error);
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
- Added auto-popup widget support:
|
|
41
|
+
- Reads `_saasquatchExtra` from the URL on load
|
|
42
|
+
- Renders the encoded widget from `_saasquatchExtra` parameter as a Popup Widget on load
|
|
43
|
+
|
|
44
|
+
## [2.4.3] - 2023-04-20
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
- Updated license copyright to be in line with SaaSquatch open-source policy.
|
|
48
|
+
|
|
49
|
+
## [2.4.2] - 2023-04-10
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- Added value to return data `squatchReferralCookie` to retrieve the encoded cookie
|
|
54
|
+
|
|
55
|
+
- Example:
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
squatch
|
|
59
|
+
.api()
|
|
60
|
+
.squatchReferralCookie()
|
|
61
|
+
.then(function (response) {
|
|
62
|
+
const cookie = response.encodedCookie;
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## [2.4.1] - 2022-09-23
|
|
67
|
+
|
|
68
|
+
### Added
|
|
69
|
+
|
|
70
|
+
- Added event idempotencyKey to types
|
|
71
|
+
|
|
72
|
+
## [2.4.0] - 2022-03-15
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
|
|
76
|
+
- EmbedWidget now supports a `container` as either a selector or an HTMLElement as a parameter
|
|
77
|
+
|
|
78
|
+
- Widget contents will be loaded in a hidden widget and can be opened and closed with `widget.open()` and `widget.close()`
|
|
79
|
+
|
|
80
|
+
- Example:
|
|
81
|
+
|
|
82
|
+
```js
|
|
83
|
+
var initObj = {
|
|
84
|
+
id: "testUser",
|
|
85
|
+
accountId: "testUser",
|
|
86
|
+
widgetType: "<MY_WIDGET>",
|
|
87
|
+
user: {
|
|
88
|
+
id: "testUser",
|
|
89
|
+
accountId: "testUser",
|
|
90
|
+
},
|
|
91
|
+
jwt: "<MY_JWT>",
|
|
92
|
+
engagementMedium: "EMBED",
|
|
93
|
+
container: ".myContainer",
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
squatch
|
|
97
|
+
.widgets()
|
|
98
|
+
.upsertUser(initObj)
|
|
99
|
+
.then(function (response) {
|
|
100
|
+
widget = response.widget;
|
|
101
|
+
widget.open();
|
|
102
|
+
})
|
|
103
|
+
.catch(function (error) {
|
|
104
|
+
console.log(error);
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- PopupWidget now supports a `trigger` as a selector
|
|
109
|
+
|
|
110
|
+
- provides the ability to use a class other than `.squatchpop` for opening the widget
|
|
111
|
+
|
|
112
|
+
- `sq:refresh` event is sent when `.open()` is called on EmbedWidget and PopupWidget
|
|
113
|
+
|
|
114
|
+
## [2.3.1] - 2022-01-11
|
|
115
|
+
|
|
116
|
+
### Changed
|
|
117
|
+
|
|
118
|
+
- Reduced resize timeout to 500ms from 5000ms
|
|
119
|
+
|
|
120
|
+
## [2.3.0] - 2021-05-19
|
|
121
|
+
|
|
122
|
+
### Added
|
|
123
|
+
|
|
124
|
+
- Typescript definitions
|
|
125
|
+
- CommonJS/ES modules build for smaller bundle sizes when using squatch-js from NPM
|
|
126
|
+
|
|
127
|
+
### Changed
|
|
128
|
+
|
|
129
|
+
- `main` is now a CommonJS build instead of a UMD build
|
|
130
|
+
|
|
131
|
+
## [2.2.1] - 2020-06-17
|
|
132
|
+
|
|
133
|
+
### Changed
|
|
134
|
+
|
|
135
|
+
- Remove the need to have JS Options, so that older clients can upgrade to squatch.js v2 easily.
|
|
136
|
+
|
|
137
|
+
## [2.2.0] - 2020-06-12
|
|
138
|
+
|
|
139
|
+
### Added
|
|
140
|
+
|
|
141
|
+
- Reads `_saasquatch` from the URL and stores a 1st-party cookie on the specified landing page's domain.
|
|
142
|
+
- Sets `cookies` on users during an upsert **automatically**
|
|
143
|
+
|
|
144
|
+
```js
|
|
145
|
+
{
|
|
146
|
+
user: {
|
|
147
|
+
id: "abc",
|
|
148
|
+
accountId: "abc",
|
|
149
|
+
cookies: "SAASQUATCHCOOKIE",
|
|
150
|
+
...
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
- Reads the 1st-party cookie when using `autofill`
|
|
155
|
+
|
|
156
|
+
```js
|
|
157
|
+
squatch
|
|
158
|
+
.api()
|
|
159
|
+
.squatchReferralCookie()
|
|
160
|
+
.then(function (response) {
|
|
161
|
+
element.value = response.codes["program-id"];
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## [2.1.8] - 2020-05-25
|
|
166
|
+
|
|
167
|
+
No release notes.
|
|
168
|
+
|
|
169
|
+
## [2.1.7] - 2020-05-21
|
|
170
|
+
|
|
171
|
+
No release notes.
|
|
172
|
+
|
|
173
|
+
## [2.1.6] - 2019-04-15
|
|
174
|
+
|
|
175
|
+
No release notes.
|
|
176
|
+
|
|
177
|
+
## [2.1.5] - 2019-02-19
|
|
178
|
+
|
|
179
|
+
No release notes.
|
|
180
|
+
|
|
181
|
+
## [2.1.4] - 2019-01-03
|
|
182
|
+
|
|
183
|
+
No release notes.
|
|
184
|
+
|
|
185
|
+
## [2.1.3] - 2018-12-05
|
|
186
|
+
|
|
187
|
+
No release notes.
|
|
188
|
+
|
|
189
|
+
## [2.1.2] - 2018-10-22
|
|
190
|
+
|
|
191
|
+
No release notes.
|
|
192
|
+
|
|
193
|
+
## [2.1.1] - 2018-10-19
|
|
194
|
+
|
|
195
|
+
### Fixed
|
|
196
|
+
|
|
197
|
+
- POPUP Widget in iOS Safari is not clickable when is hidden anymore
|
|
198
|
+
|
|
199
|
+
## [2.1.0] - 2018-09-26
|
|
200
|
+
|
|
201
|
+
No release notes.
|
|
202
|
+
|
|
203
|
+
## [2.0.17] - 2017-12-21
|
|
204
|
+
|
|
205
|
+
### Fixed
|
|
206
|
+
|
|
207
|
+
- Fixed content-type detection bug
|
|
208
|
+
|
|
209
|
+
## [2.0.16] - 2017-10-24
|
|
210
|
+
|
|
211
|
+
### Fixed
|
|
212
|
+
|
|
213
|
+
- Fix scrolling issue to allow scrolling within popup modal
|
|
214
|
+
|
|
215
|
+
## [2.0.15] - 2017-10-12
|
|
216
|
+
|
|
217
|
+
### Added
|
|
218
|
+
|
|
219
|
+
- Support for scrolling popup in mobile
|
|
220
|
+
|
|
221
|
+
## [2.0.14] - 2017-10-11
|
|
222
|
+
|
|
223
|
+
### Fixed
|
|
224
|
+
|
|
225
|
+
- Fix registration form message in popup
|
|
226
|
+
|
|
227
|
+
## [2.0.13] - 2017-08-03
|
|
228
|
+
|
|
229
|
+
No release notes.
|
|
230
|
+
|
|
231
|
+
## [2.0.12] - 2017-07-18
|
|
232
|
+
|
|
233
|
+
No release notes.
|
|
234
|
+
|
|
235
|
+
## [2.0.11] - 2017-07-18
|
|
236
|
+
|
|
237
|
+
No release notes.
|
|
238
|
+
|
|
239
|
+
## [2.0.10] - 2017-06-30
|
|
240
|
+
|
|
241
|
+
No release notes.
|
|
242
|
+
|
|
243
|
+
## [2.0.9] - 2017-06-08
|
|
244
|
+
|
|
245
|
+
No release notes.
|
|
246
|
+
|
|
247
|
+
## [2.0.8] - 2017-06-08
|
|
248
|
+
|
|
249
|
+
No release notes.
|
|
250
|
+
|
|
251
|
+
## [2.0.7] - 2017-04-24
|
|
252
|
+
|
|
253
|
+
No release notes.
|
|
254
|
+
|
|
255
|
+
## [2.0.6] - 2017-02-14
|
|
256
|
+
|
|
257
|
+
### Fixed
|
|
258
|
+
|
|
259
|
+
- Fix share tracking
|
|
260
|
+
- Ignore CONVERSION_WIDGET widget rules when there's no referrals
|
|
261
|
+
|
|
262
|
+
### Changed
|
|
263
|
+
|
|
264
|
+
- Auto-fill content type check changed to non-case sensitive
|
|
265
|
+
|
|
266
|
+
## [2.0.5] - 2016-12-07
|
|
267
|
+
|
|
268
|
+
No release notes.
|
|
269
|
+
|
|
270
|
+
## [2.0.4] - 2016-12-06
|
|
271
|
+
|
|
272
|
+
No release notes.
|
|
273
|
+
|
|
274
|
+
## [2.0.3] - 2016-11-30
|
|
275
|
+
|
|
276
|
+
No release notes.
|
|
277
|
+
|
|
278
|
+
## [2.0.2] - 2016-11-29
|
|
279
|
+
|
|
280
|
+
No release notes.
|
|
281
|
+
|
|
282
|
+
## [2.0.1] - 2016-11-25
|
|
283
|
+
|
|
284
|
+
No release notes.
|
|
285
|
+
|
|
286
|
+
## [2.0.0] - 2016-11-25
|
|
287
|
+
|
|
288
|
+
No release notes.
|
|
289
|
+
|
|
290
|
+
[unreleased]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.5.0...HEAD
|
|
291
|
+
[2.5.0]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.1...@saasquatch%2Fsquatch-js@2.5.0
|
|
292
|
+
[2.4.3]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.2...@saasquatch%2Fsquatch-js@2.4.3
|
|
293
|
+
[2.4.2]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.1...@saasquatch%2Fsquatch-js@2.4.2
|
|
294
|
+
[2.4.1]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.4.0...@saasquatch%2Fsquatch-js@2.4.1
|
|
295
|
+
[2.4.0]: https://github.com/saasquatch/squatch-js/compare/v2.3.1...@saasquatch%2Fsquatch-js@2.4.0
|
|
296
|
+
[2.3.1]: https://github.com/saasquatch/squatch-js/compare/v2.3.0...v2.3.1
|
|
297
|
+
[2.3.0]: https://github.com/saasquatch/squatch-js/compare/v2.2.1...v2.3.0
|
|
298
|
+
[2.2.1]: https://github.com/saasquatch/squatch-js/compare/v2.2.0...v2.2.1
|
|
299
|
+
[2.2.0]: https://github.com/saasquatch/squatch-js/compare/v2.1.8...v2.2.0
|
|
300
|
+
[2.1.8]: https://github.com/saasquatch/squatch-js/compare/v2.1.7...v2.1.8
|
|
301
|
+
[2.1.7]: https://github.com/saasquatch/squatch-js/compare/v2.1.6...v2.1.7
|
|
302
|
+
[2.1.6]: https://github.com/saasquatch/squatch-js/compare/v2.1.5...v2.1.6
|
|
303
|
+
[2.1.5]: https://github.com/saasquatch/squatch-js/compare/v2.1.4...v2.1.5
|
|
304
|
+
[2.1.4]: https://github.com/saasquatch/squatch-js/compare/v2.1.3...v2.1.4
|
|
305
|
+
[2.1.3]: https://github.com/saasquatch/squatch-js/compare/v2.1.2...v2.1.3
|
|
306
|
+
[2.1.2]: https://github.com/saasquatch/squatch-js/compare/v2.1.1...v2.1.2
|
|
307
|
+
[2.1.1]: https://github.com/saasquatch/squatch-js/compare/v2.1.0...v2.1.1
|
|
308
|
+
[2.1.0]: https://github.com/saasquatch/squatch-js/compare/v2.0.17...v2.1.0
|
|
309
|
+
[2.0.17]: https://github.com/saasquatch/squatch-js/compare/v2.0.16...v2.0.17
|
|
310
|
+
[2.0.16]: https://github.com/saasquatch/squatch-js/compare/v2.0.15...v2.0.16
|
|
311
|
+
[2.0.15]: https://github.com/saasquatch/squatch-js/compare/v2.0.14...v2.0.15
|
|
312
|
+
[2.0.14]: https://github.com/saasquatch/squatch-js/compare/v2.0.13...v2.0.14
|
|
313
|
+
[2.0.13]: https://github.com/saasquatch/squatch-js/compare/v2.0.12...v2.0.13
|
|
314
|
+
[2.0.12]: https://github.com/saasquatch/squatch-js/compare/v2.0.11...v2.0.12
|
|
315
|
+
[2.0.11]: https://github.com/saasquatch/squatch-js/compare/v2.0.10...v2.0.11
|
|
316
|
+
[2.0.10]: https://github.com/saasquatch/squatch-js/compare/v2.0.9...v2.0.10
|
|
317
|
+
[2.0.9]: https://github.com/saasquatch/squatch-js/compare/v2.0.8...v2.0.9
|
|
318
|
+
[2.0.8]: https://github.com/saasquatch/squatch-js/compare/v2.0.7...v2.0.8
|
|
319
|
+
[2.0.7]: https://github.com/saasquatch/squatch-js/compare/v2.0.6...v2.0.7
|
|
320
|
+
[2.0.6]: https://github.com/saasquatch/squatch-js/compare/v2.0.5...v2.0.6
|
|
321
|
+
[2.0.5]: https://github.com/saasquatch/squatch-js/compare/v2.0.4...v2.0.5
|
|
322
|
+
[2.0.4]: https://github.com/saasquatch/squatch-js/compare/v2.0.3...v2.0.4
|
|
323
|
+
[2.0.3]: https://github.com/saasquatch/squatch-js/compare/v2.0.2...v2.0.3
|
|
324
|
+
[2.0.2]: https://github.com/saasquatch/squatch-js/compare/v2.0.1...v2.0.2
|
|
325
|
+
[2.0.1]: https://github.com/saasquatch/squatch-js/compare/v2.0.0...v2.0.1
|
|
326
|
+
[2.0.0]: https://github.com/saasquatch/squatch-js/releases/tag/v2.0.0
|