@adstage/web-sdk 2.2.0 โ 2.2.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/dist/index.cjs.js
CHANGED
|
@@ -394,6 +394,7 @@ class BaseAdRenderer {
|
|
|
394
394
|
display: 'block',
|
|
395
395
|
'max-width': '100%',
|
|
396
396
|
height: 'auto',
|
|
397
|
+
'object-position': 'center', // ๐ฏ ์ด๋ฏธ์ง ํญ์ ์ค์ ์ ๋ ฌ
|
|
397
398
|
};
|
|
398
399
|
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ์๋ง ํฌ๊ธฐ ์ ํ
|
|
399
400
|
const parsedWidth = this.parseSizeValue(slot?.width);
|
|
@@ -402,6 +403,7 @@ class BaseAdRenderer {
|
|
|
402
403
|
styles.width = '100%';
|
|
403
404
|
styles.height = '100%';
|
|
404
405
|
styles['object-fit'] = 'cover';
|
|
406
|
+
styles['object-position'] = 'center'; // ๐ฏ ํฌ๊ธฐ ์กฐ์ ์์๋ ์ค์ ์ ๋ ฌ
|
|
405
407
|
}
|
|
406
408
|
return styles;
|
|
407
409
|
}
|
|
@@ -2920,6 +2922,7 @@ class AdsModule {
|
|
|
2920
2922
|
img.style.width = '100%';
|
|
2921
2923
|
img.style.height = '100%';
|
|
2922
2924
|
img.style.objectFit = 'cover';
|
|
2925
|
+
img.style.objectPosition = 'center'; // ๐ฏ ํด๋ฐฑ ์ด๋ฏธ์ง๋ ์ค์ ์ ๋ ฌ
|
|
2923
2926
|
adElement.appendChild(img);
|
|
2924
2927
|
}
|
|
2925
2928
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -392,6 +392,7 @@ class BaseAdRenderer {
|
|
|
392
392
|
display: 'block',
|
|
393
393
|
'max-width': '100%',
|
|
394
394
|
height: 'auto',
|
|
395
|
+
'object-position': 'center', // ๐ฏ ์ด๋ฏธ์ง ํญ์ ์ค์ ์ ๋ ฌ
|
|
395
396
|
};
|
|
396
397
|
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ์๋ง ํฌ๊ธฐ ์ ํ
|
|
397
398
|
const parsedWidth = this.parseSizeValue(slot?.width);
|
|
@@ -400,6 +401,7 @@ class BaseAdRenderer {
|
|
|
400
401
|
styles.width = '100%';
|
|
401
402
|
styles.height = '100%';
|
|
402
403
|
styles['object-fit'] = 'cover';
|
|
404
|
+
styles['object-position'] = 'center'; // ๐ฏ ํฌ๊ธฐ ์กฐ์ ์์๋ ์ค์ ์ ๋ ฌ
|
|
403
405
|
}
|
|
404
406
|
return styles;
|
|
405
407
|
}
|
|
@@ -2918,6 +2920,7 @@ class AdsModule {
|
|
|
2918
2920
|
img.style.width = '100%';
|
|
2919
2921
|
img.style.height = '100%';
|
|
2920
2922
|
img.style.objectFit = 'cover';
|
|
2923
|
+
img.style.objectPosition = 'center'; // ๐ฏ ํด๋ฐฑ ์ด๋ฏธ์ง๋ ์ค์ ์ ๋ ฌ
|
|
2921
2924
|
adElement.appendChild(img);
|
|
2922
2925
|
}
|
|
2923
2926
|
}
|
package/dist/index.standalone.js
CHANGED
|
@@ -392,6 +392,7 @@ class BaseAdRenderer {
|
|
|
392
392
|
display: 'block',
|
|
393
393
|
'max-width': '100%',
|
|
394
394
|
height: 'auto',
|
|
395
|
+
'object-position': 'center', // ๐ฏ ์ด๋ฏธ์ง ํญ์ ์ค์ ์ ๋ ฌ
|
|
395
396
|
};
|
|
396
397
|
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ์๋ง ํฌ๊ธฐ ์ ํ
|
|
397
398
|
const parsedWidth = this.parseSizeValue(slot?.width);
|
|
@@ -400,6 +401,7 @@ class BaseAdRenderer {
|
|
|
400
401
|
styles.width = '100%';
|
|
401
402
|
styles.height = '100%';
|
|
402
403
|
styles['object-fit'] = 'cover';
|
|
404
|
+
styles['object-position'] = 'center'; // ๐ฏ ํฌ๊ธฐ ์กฐ์ ์์๋ ์ค์ ์ ๋ ฌ
|
|
403
405
|
}
|
|
404
406
|
return styles;
|
|
405
407
|
}
|
|
@@ -2918,6 +2920,7 @@ class AdsModule {
|
|
|
2918
2920
|
img.style.width = '100%';
|
|
2919
2921
|
img.style.height = '100%';
|
|
2920
2922
|
img.style.objectFit = 'cover';
|
|
2923
|
+
img.style.objectPosition = 'center'; // ๐ฏ ํด๋ฐฑ ์ด๋ฏธ์ง๋ ์ค์ ์ ๋ ฌ
|
|
2921
2924
|
adElement.appendChild(img);
|
|
2922
2925
|
}
|
|
2923
2926
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adstage/web-sdk",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "AdStage Web SDK - Production-ready marketing platform SDK with auto-initialization and
|
|
3
|
+
"version": "2.2.1",
|
|
4
|
+
"description": "AdStage Web SDK - Production-ready marketing platform SDK with auto-initialization, dynamic sizing, and centered image positioning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -1119,6 +1119,7 @@ export class AdsModule implements BaseModule {
|
|
|
1119
1119
|
img.style.width = '100%';
|
|
1120
1120
|
img.style.height = '100%';
|
|
1121
1121
|
img.style.objectFit = 'cover';
|
|
1122
|
+
img.style.objectPosition = 'center'; // ๐ฏ ํด๋ฐฑ ์ด๋ฏธ์ง๋ ์ค์ ์ ๋ ฌ
|
|
1122
1123
|
adElement.appendChild(img);
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
@@ -110,6 +110,7 @@ export abstract class BaseAdRenderer implements AdRenderer {
|
|
|
110
110
|
display: 'block',
|
|
111
111
|
'max-width': '100%',
|
|
112
112
|
height: 'auto',
|
|
113
|
+
'object-position': 'center', // ๐ฏ ์ด๋ฏธ์ง ํญ์ ์ค์ ์ ๋ ฌ
|
|
113
114
|
};
|
|
114
115
|
|
|
115
116
|
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ์๋ง ํฌ๊ธฐ ์ ํ
|
|
@@ -120,6 +121,7 @@ export abstract class BaseAdRenderer implements AdRenderer {
|
|
|
120
121
|
styles.width = '100%';
|
|
121
122
|
styles.height = '100%';
|
|
122
123
|
styles['object-fit'] = 'cover';
|
|
124
|
+
styles['object-position'] = 'center'; // ๐ฏ ํฌ๊ธฐ ์กฐ์ ์์๋ ์ค์ ์ ๋ ฌ
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
return styles;
|