webcake-ui-kit 1.3.8 → 1.3.9

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": "webcake-ui-kit",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "UI Kit for Vue 2 && 3 - Pure Options API",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -69,14 +69,11 @@ function open(config) {
69
69
  const vm = ensureContainer()
70
70
  if (!vm) return function () {}
71
71
 
72
- // Per-call placement/offset override (applied before add so the container
73
- // is positioned correctly when the message enters).
74
- if (config.placement != null || config.offset != null) {
75
- vm.configure({
76
- placement: config.placement,
77
- offset: config.offset
78
- })
79
- }
72
+ // Always resolve placement/offset — per-call value wins, falls back to globalConfig.
73
+ vm.configure({
74
+ placement: config.placement != null ? config.placement : globalConfig.placement,
75
+ offset: config.offset != null ? config.offset : globalConfig.offset
76
+ })
80
77
 
81
78
  const type = config.type || 'info'
82
79
  const duration = config.duration !== undefined ? config.duration : type === 'loading' ? 0 : globalConfig.duration