@adobe/acc-js-sdk 1.1.39 → 1.1.40

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.
@@ -3,6 +3,13 @@ layout: page
3
3
  title: Change Log
4
4
  ---
5
5
 
6
+ <section class="changelog"><h1>Version 1.1.40</h1>
7
+ <h2>2023/09/27</h2>
8
+ <li>
9
+ Every upload creates a new iframe is added to the body tag which takes up some space resulting in the scrollbar. Fix this by allowing CSS attributes on the iFrame.
10
+ </li>
11
+ </section>
12
+
6
13
  <section class="changelog"><h1>Version 1.1.39</h1>
7
14
  <h2>2023/09/20</h2>
8
15
  <li>
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@adobe/acc-js-sdk",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@adobe/acc-js-sdk",
9
- "version": "1.1.39",
9
+ "version": "1.1.40",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "axios": "^1.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/acc-js-sdk",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "ACC Javascript SDK",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://github.com/adobe/acc-js-sdk#readme",
package/src/client.js CHANGED
@@ -606,8 +606,12 @@ const fileUploader = (client) => {
606
606
  throw okay;
607
607
  }
608
608
  const iframe = document.createElement('iframe');
609
+ iframe.style.display = 'block';
609
610
  iframe.style.height = 0;
610
611
  iframe.style.width = 0;
612
+ if(options && options.className) {
613
+ iframe.className = options.className;
614
+ }
611
615
  document.controller = { // Written to support https://git.corp.adobe.com/Campaign/ac/blob/v6-master/nl/datakit/nl/jsp/uploadFile.jsp
612
616
  uploadFileCallBack: async (data) => {
613
617
  if (!data || data.length !== 1) {