@saasquatch/squatch-js 2.8.3-0 → 2.8.3-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/CHANGELOG.md +29 -8
- package/coverage/clover.xml +630 -593
- package/coverage/coverage-final.json +22 -20
- package/coverage/lcov.info +1087 -997
- package/dist/squatch.cjs.js +273 -16
- package/dist/squatch.cjs.js.map +1 -1
- package/dist/squatch.esm.js +748 -436
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +70 -61
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +2 -2
- package/dist/types.d.ts +134 -1
- package/dist/utils/logger.d.ts +4 -1
- package/dist/widgets/PopupWidget.d.ts +3 -2
- package/dist/widgets/SkeletonTemplate.d.ts +1 -3
- package/dist/widgets/Widget.d.ts +12 -1
- package/package.json +1 -2
- package/dist/SkeletonTemplate-CIRGs_GB.js +0 -258
- package/dist/SkeletonTemplate-CIRGs_GB.js.map +0 -1
- package/dist/SkeletonTemplate-hwDwv3Ys.cjs +0 -250
- package/dist/SkeletonTemplate-hwDwv3Ys.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.8.3] - 2026-03-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Preconnect and dns-prefetch resource hints for Cloudinary and Google Fonts to improve widget load performance
|
|
15
|
+
- Initial height support from `brandingConfig.loadingHeight` for both embed and popup widgets
|
|
16
|
+
- Loading skeleton displayed in declarative widgets while widget content loads
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Replaced `debug` npm package with lightweight custom logger (~4-5KB bundle savings)
|
|
21
|
+
- Switched from `resize-observer-polyfill` to native `ResizeObserver`
|
|
22
|
+
- Enabled esbuild minification in Vite build config
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Fixed `brandingConfig` being undefined for passwordless widgets in `Widgets.render()`
|
|
27
|
+
- Fixed popup widget `_createPopupDialog` to accept brandingConfig as parameter
|
|
28
|
+
|
|
29
|
+
## [2.8.2] - 2026-03-16
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Fixed bug where brandingConfig was not being applied to auto-popup widgets
|
|
34
|
+
|
|
10
35
|
## [2.8.1] - 2025-11-17
|
|
11
36
|
|
|
12
37
|
### Fixed
|
|
@@ -60,9 +85,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
60
85
|
### Added
|
|
61
86
|
|
|
62
87
|
- SquatchJS now supports declarative widget initialization
|
|
63
|
-
|
|
64
88
|
- For rendering widgets and API calls, squatchjs respects configurations set on the following:
|
|
65
|
-
|
|
66
89
|
- `window.squatchToken`: Signed JWT for calls to the SaaSquatch API -- [How to generate valid JWT Tokens](https://docs.saasquatch.com/topics/json-web-tokens#example-building-the-jwt)
|
|
67
90
|
- `window.squatchTenant`: SaaSquatch tenant alias
|
|
68
91
|
- `window.squatchConfig`: Additional configuration overrides (Optional)
|
|
@@ -72,9 +95,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
72
95
|
- Note: If window.squatchToken is undefined, widgets will be rendered as [Instant Access widgets.](https://docs.saasquatch.com/topics/widget-types#instant-access-widgets)
|
|
73
96
|
|
|
74
97
|
- Widget components added:
|
|
75
|
-
|
|
76
98
|
- `<squatch-embed></squatch-embed>`
|
|
77
|
-
|
|
78
99
|
- widget: Specifies the SaaSquatch widgetType identifier of the desired widget
|
|
79
100
|
- Required
|
|
80
101
|
- Changing this attribute's value causes the widget to reload
|
|
@@ -180,7 +201,6 @@ squatch
|
|
|
180
201
|
### Changed
|
|
181
202
|
|
|
182
203
|
- EmbedWidget now supports a `container` as either a selector or an HTMLElement as a parameter
|
|
183
|
-
|
|
184
204
|
- Widget contents will be loaded in a hidden widget and can be opened and closed with `widget.open()` and `widget.close()`
|
|
185
205
|
|
|
186
206
|
- Example:
|
|
@@ -212,7 +232,6 @@ squatch
|
|
|
212
232
|
```
|
|
213
233
|
|
|
214
234
|
- PopupWidget now supports a `trigger` as a selector
|
|
215
|
-
|
|
216
235
|
- provides the ability to use a class other than `.squatchpop` for opening the widget
|
|
217
236
|
|
|
218
237
|
- `sq:refresh` event is sent when `.open()` is called on EmbedWidget and PopupWidget
|
|
@@ -393,8 +412,10 @@ No release notes.
|
|
|
393
412
|
|
|
394
413
|
No release notes.
|
|
395
414
|
|
|
396
|
-
[unreleased]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.8.
|
|
397
|
-
[2.8.
|
|
415
|
+
[unreleased]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.8.3...HEAD
|
|
416
|
+
[2.8.3]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.8.2...@saasquatch%2Fsquatch-js@2.8.3
|
|
417
|
+
[2.8.2]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.8.1...@saasquatch%2Fsquatch-js@2.8.2
|
|
418
|
+
[2.8.1]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.8.0...@saasquatch%2Fsquatch-js@2.8.1
|
|
398
419
|
[2.8.0]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.7.0...@saasquatch%2Fsquatch-js@2.8.0
|
|
399
420
|
[2.7.0]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.6.3...@saasquatch%2Fsquatch-js@2.7.0
|
|
400
421
|
[2.6.3]: https://github.com/saasquatch/squatch-js/compare/@saasquatch%2Fsquatch-js@2.6.2...@saasquatch%2Fsquatch-js@2.6.3
|