@memberstack/dom 1.9.27 → 1.9.29

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.
Files changed (62) hide show
  1. package/lib/auth/index.d.mts +9 -0
  2. package/lib/auth/index.d.ts +7 -5
  3. package/lib/auth/index.js +131 -75
  4. package/lib/auth/index.mjs +104 -0
  5. package/lib/constants/endpoints.d.mts +5 -0
  6. package/lib/constants/endpoints.d.ts +3 -1
  7. package/lib/constants/endpoints.js +30 -5
  8. package/lib/constants/endpoints.mjs +7 -0
  9. package/lib/index.d.mts +74 -0
  10. package/lib/index.d.ts +59 -34
  11. package/lib/index.js +14863 -6
  12. package/lib/index.mjs +14835 -0
  13. package/lib/methods/dom/index.d.mts +2 -0
  14. package/lib/methods/dom/index.d.ts +2 -0
  15. package/lib/methods/dom/index.mjs +0 -0
  16. package/lib/methods/dom/main-dom.d.mts +14 -0
  17. package/lib/methods/dom/main-dom.d.ts +4 -2
  18. package/lib/methods/dom/main-dom.js +13249 -12459
  19. package/lib/methods/dom/main-dom.mjs +13749 -0
  20. package/lib/methods/dom/methods.d.mts +12 -0
  21. package/lib/methods/dom/methods.d.ts +10 -8
  22. package/lib/methods/dom/methods.js +13943 -130
  23. package/lib/methods/dom/methods.mjs +13943 -0
  24. package/lib/methods/index.d.mts +79 -0
  25. package/lib/methods/index.d.ts +58 -35
  26. package/lib/methods/index.js +14855 -90
  27. package/lib/methods/index.mjs +14832 -0
  28. package/lib/methods/requests/index.d.mts +72 -0
  29. package/lib/methods/requests/index.d.ts +60 -40
  30. package/lib/methods/requests/index.js +899 -693
  31. package/lib/methods/requests/index.mjs +878 -0
  32. package/lib/methods/requests/requests.d.mts +31 -0
  33. package/lib/methods/requests/requests.d.ts +8 -4
  34. package/lib/methods/requests/requests.js +168 -117
  35. package/lib/methods/requests/requests.mjs +140 -0
  36. package/lib/types/index.d.mts +3 -0
  37. package/lib/types/index.d.ts +3 -2
  38. package/lib/types/index.js +16 -17
  39. package/lib/types/index.mjs +0 -0
  40. package/lib/types/params.d.mts +206 -0
  41. package/lib/types/params.d.ts +78 -33
  42. package/lib/types/params.js +17 -2
  43. package/lib/types/params.mjs +0 -0
  44. package/lib/types/payloads.d.mts +64 -0
  45. package/lib/types/payloads.d.ts +51 -43
  46. package/lib/types/payloads.js +17 -2
  47. package/lib/types/payloads.mjs +0 -0
  48. package/lib/types/utils/payloads.d.mts +296 -0
  49. package/lib/types/utils/payloads.d.ts +42 -5
  50. package/lib/types/utils/payloads.js +17 -3
  51. package/lib/types/utils/payloads.mjs +0 -0
  52. package/lib/utils/cookies.d.mts +7 -0
  53. package/lib/utils/cookies.d.ts +7 -5
  54. package/lib/utils/cookies.js +109 -55
  55. package/lib/utils/cookies.mjs +85 -0
  56. package/lib/utils/defaultMessageBox.d.mts +5 -0
  57. package/lib/utils/defaultMessageBox.d.ts +5 -3
  58. package/lib/utils/defaultMessageBox.js +113 -36
  59. package/lib/utils/defaultMessageBox.mjs +93 -0
  60. package/package.json +16 -10
  61. package/lib/utils/fileInput.d.ts +0 -1
  62. package/lib/utils/fileInput.js +0 -16
@@ -1,42 +1,119 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initCSS = exports.addErrorBox = exports.addSuccessBox = void 0;
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/utils/defaultMessageBox.ts
20
+ var defaultMessageBox_exports = {};
21
+ __export(defaultMessageBox_exports, {
22
+ addErrorBox: () => addErrorBox,
23
+ addSuccessBox: () => addSuccessBox,
24
+ initCSS: () => initCSS
25
+ });
26
+ module.exports = __toCommonJS(defaultMessageBox_exports);
4
27
  var closeIcon;
5
28
  if (typeof window !== "undefined") {
6
- closeIcon = document.createElement("div");
7
- closeIcon.setAttribute("id", "ms-status-close");
8
- closeIcon.setAttribute("data-ms-message-close", "");
9
- closeIcon.innerHTML = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z\" fill=\"white\"/></svg>";
29
+ closeIcon = document.createElement("div");
30
+ closeIcon.setAttribute("id", "ms-status-close");
31
+ closeIcon.setAttribute("data-ms-message-close", "");
32
+ closeIcon.innerHTML = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="white"/></svg>`;
10
33
  }
11
- var addSuccessBox = function () {
12
- var successStatusIcon = document.createElement("div");
13
- successStatusIcon.setAttribute("id", "ms-status-icon");
14
- successStatusIcon.innerHTML = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"#62d37f\"/><path d=\"M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm4.59-12.42L8 12.17 5.41 9.59 4 11l4 4 8-8-1.41-1.42Z\" fill=\"#fff\"/></svg>";
15
- var successHTML = "<div data-ms-message class=\"ms-error-message\">\n\t\t".concat(successStatusIcon.outerHTML, "\n\t\t<div id=\"ms-message\" data-ms-message-text></div>\n\t\t").concat(closeIcon.outerHTML, "\n\t\t</div>");
16
- var successdiv = document.createElement("div");
17
- successdiv.setAttribute("data-ms-message", "success");
18
- successdiv.innerHTML = successHTML;
19
- successdiv.style.display = "none";
20
- document.body.appendChild(successdiv);
34
+ var addSuccessBox = () => {
35
+ const successStatusIcon = document.createElement("div");
36
+ successStatusIcon.setAttribute("id", "ms-status-icon");
37
+ successStatusIcon.innerHTML = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="#62d37f"/><path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm4.59-12.42L8 12.17 5.41 9.59 4 11l4 4 8-8-1.41-1.42Z" fill="#fff"/></svg>`;
38
+ const successHTML = `<div data-ms-message class="ms-error-message">
39
+ ${successStatusIcon.outerHTML}
40
+ <div id="ms-message" data-ms-message-text></div>
41
+ ${closeIcon.outerHTML}
42
+ </div>`;
43
+ const successdiv = document.createElement("div");
44
+ successdiv.setAttribute("data-ms-message", "success");
45
+ successdiv.innerHTML = successHTML;
46
+ successdiv.style.display = "none";
47
+ document.body.appendChild(successdiv);
21
48
  };
22
- exports.addSuccessBox = addSuccessBox;
23
- var addErrorBox = function () {
24
- var errorStatusIcon = document.createElement("div");
25
- errorStatusIcon.setAttribute("id", "ms-status-icon");
26
- errorStatusIcon.innerHTML = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z\" fill=\"#E40023\"/></svg>";
27
- var errorHTML = "<div data-ms-message class=\"ms-error-message\">\n\t\t".concat(errorStatusIcon.outerHTML, "\n\t\t<div id=\"ms-message\" data-ms-message-text></div>\n\t\t").concat(closeIcon.outerHTML, "\n\t\t</div>");
28
- var errordiv = document.createElement("div");
29
- errordiv.setAttribute("data-ms-message", "error");
30
- errordiv.innerHTML = errorHTML;
31
- errordiv.style.display = "none";
32
- document.body.appendChild(errordiv);
49
+ var addErrorBox = () => {
50
+ const errorStatusIcon = document.createElement("div");
51
+ errorStatusIcon.setAttribute("id", "ms-status-icon");
52
+ errorStatusIcon.innerHTML = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z" fill="#E40023"/></svg>`;
53
+ const errorHTML = `<div data-ms-message class="ms-error-message">
54
+ ${errorStatusIcon.outerHTML}
55
+ <div id="ms-message" data-ms-message-text></div>
56
+ ${closeIcon.outerHTML}
57
+ </div>`;
58
+ const errordiv = document.createElement("div");
59
+ errordiv.setAttribute("data-ms-message", "error");
60
+ errordiv.innerHTML = errorHTML;
61
+ errordiv.style.display = "none";
62
+ document.body.appendChild(errordiv);
33
63
  };
34
- exports.addErrorBox = addErrorBox;
35
- var initCSS = function () {
36
- var cssEl = document.createElement("style");
37
- var css = "\n\t\t@keyframes fadeIn {\n\t\t\t0% {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t100% {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t\t.ms-error-message { \n\t\t\t\tposition: fixed;\n\t\t\t\tleft: 50%;\n\t\t\t\tbottom: 3%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\tmargin: 0 auto;\n\t\t\t\tz-index: 10000000; \n\t\t\t\tdisplay: flex; \n\t\t\t\talign-items: center;\n\t\t\t\tpadding: 12px 16px;\n\t\t\t\tborder-radius: 8px; \n\t\t\t\tbackground-color: #0A0A0A; \n\t\t\t\tcolor: #fff; \n\t\t\t\tfont-size: 16.8px; \n\t\t\t\tline-height: 28px; \n\t\t\t\tfont-weight: 500; \n\t\t\t\ttransform-origin: center;\n\t\t\t\tanimation: fadeIn 0.2s ease-in;\n\t\t\t\t-webkit-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-moz-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-o-animation: fadeIn 0.2s ease-in;\n\t\t\t\t-ms-animation: fadeIn 0.2s ease-in;\n\t\t\t}\n\t\t\t#ms-status-icon {\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tmargin-right: 12px;\n\t\t\t\t}\n\t\t\t\t#ms-status-close {\n\t\t\t\t\tmargin-left: 20px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t}\n\t\t\t\t\t#ms-status-close svg {\n\t\t\t\t\t\theight: 12px;\n\t\t\t\t\t}";
38
- cssEl.setAttribute("data-ms-style", "");
39
- cssEl.appendChild(document.createTextNode(css));
40
- document.head.appendChild(cssEl);
64
+ var initCSS = () => {
65
+ const cssEl = document.createElement("style");
66
+ const css = `
67
+ @keyframes fadeIn {
68
+ 0% {
69
+ opacity: 0;
70
+ }
71
+ 100% {
72
+ opacity: 1;
73
+ }
74
+ }
75
+ .ms-error-message {
76
+ position: fixed;
77
+ left: 50%;
78
+ bottom: 3%;
79
+ transform: translate(-50%, -50%);
80
+ margin: 0 auto;
81
+ z-index: 10000000;
82
+ display: flex;
83
+ align-items: center;
84
+ padding: 12px 16px;
85
+ border-radius: 8px;
86
+ background-color: #0A0A0A;
87
+ color: #fff;
88
+ font-size: 16.8px;
89
+ line-height: 28px;
90
+ font-weight: 500;
91
+ transform-origin: center;
92
+ animation: fadeIn 0.2s ease-in;
93
+ -webkit-animation: fadeIn 0.2s ease-in;
94
+ -moz-animation: fadeIn 0.2s ease-in;
95
+ -o-animation: fadeIn 0.2s ease-in;
96
+ -ms-animation: fadeIn 0.2s ease-in;
97
+ }
98
+ #ms-status-icon {
99
+ width: 20px;
100
+ height: 20px;
101
+ margin-right: 12px;
102
+ }
103
+ #ms-status-close {
104
+ margin-left: 20px;
105
+ cursor: pointer;
106
+ }
107
+ #ms-status-close svg {
108
+ height: 12px;
109
+ }`;
110
+ cssEl.setAttribute("data-ms-style", "");
111
+ cssEl.appendChild(document.createTextNode(css));
112
+ document.head.appendChild(cssEl);
41
113
  };
42
- exports.initCSS = initCSS;
114
+ // Annotate the CommonJS export names for ESM import in node:
115
+ 0 && (module.exports = {
116
+ addErrorBox,
117
+ addSuccessBox,
118
+ initCSS
119
+ });
@@ -0,0 +1,93 @@
1
+ // src/utils/defaultMessageBox.ts
2
+ var closeIcon;
3
+ if (typeof window !== "undefined") {
4
+ closeIcon = document.createElement("div");
5
+ closeIcon.setAttribute("id", "ms-status-close");
6
+ closeIcon.setAttribute("data-ms-message-close", "");
7
+ closeIcon.innerHTML = `<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" fill="white"/></svg>`;
8
+ }
9
+ var addSuccessBox = () => {
10
+ const successStatusIcon = document.createElement("div");
11
+ successStatusIcon.setAttribute("id", "ms-status-icon");
12
+ successStatusIcon.innerHTML = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="#62d37f"/><path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm4.59-12.42L8 12.17 5.41 9.59 4 11l4 4 8-8-1.41-1.42Z" fill="#fff"/></svg>`;
13
+ const successHTML = `<div data-ms-message class="ms-error-message">
14
+ ${successStatusIcon.outerHTML}
15
+ <div id="ms-message" data-ms-message-text></div>
16
+ ${closeIcon.outerHTML}
17
+ </div>`;
18
+ const successdiv = document.createElement("div");
19
+ successdiv.setAttribute("data-ms-message", "success");
20
+ successdiv.innerHTML = successHTML;
21
+ successdiv.style.display = "none";
22
+ document.body.appendChild(successdiv);
23
+ };
24
+ var addErrorBox = () => {
25
+ const errorStatusIcon = document.createElement("div");
26
+ errorStatusIcon.setAttribute("id", "ms-status-icon");
27
+ errorStatusIcon.innerHTML = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z" fill="#E40023"/></svg>`;
28
+ const errorHTML = `<div data-ms-message class="ms-error-message">
29
+ ${errorStatusIcon.outerHTML}
30
+ <div id="ms-message" data-ms-message-text></div>
31
+ ${closeIcon.outerHTML}
32
+ </div>`;
33
+ const errordiv = document.createElement("div");
34
+ errordiv.setAttribute("data-ms-message", "error");
35
+ errordiv.innerHTML = errorHTML;
36
+ errordiv.style.display = "none";
37
+ document.body.appendChild(errordiv);
38
+ };
39
+ var initCSS = () => {
40
+ const cssEl = document.createElement("style");
41
+ const css = `
42
+ @keyframes fadeIn {
43
+ 0% {
44
+ opacity: 0;
45
+ }
46
+ 100% {
47
+ opacity: 1;
48
+ }
49
+ }
50
+ .ms-error-message {
51
+ position: fixed;
52
+ left: 50%;
53
+ bottom: 3%;
54
+ transform: translate(-50%, -50%);
55
+ margin: 0 auto;
56
+ z-index: 10000000;
57
+ display: flex;
58
+ align-items: center;
59
+ padding: 12px 16px;
60
+ border-radius: 8px;
61
+ background-color: #0A0A0A;
62
+ color: #fff;
63
+ font-size: 16.8px;
64
+ line-height: 28px;
65
+ font-weight: 500;
66
+ transform-origin: center;
67
+ animation: fadeIn 0.2s ease-in;
68
+ -webkit-animation: fadeIn 0.2s ease-in;
69
+ -moz-animation: fadeIn 0.2s ease-in;
70
+ -o-animation: fadeIn 0.2s ease-in;
71
+ -ms-animation: fadeIn 0.2s ease-in;
72
+ }
73
+ #ms-status-icon {
74
+ width: 20px;
75
+ height: 20px;
76
+ margin-right: 12px;
77
+ }
78
+ #ms-status-close {
79
+ margin-left: 20px;
80
+ cursor: pointer;
81
+ }
82
+ #ms-status-close svg {
83
+ height: 12px;
84
+ }`;
85
+ cssEl.setAttribute("data-ms-style", "");
86
+ cssEl.appendChild(document.createTextNode(css));
87
+ document.head.appendChild(cssEl);
88
+ };
89
+ export {
90
+ addErrorBox,
91
+ addSuccessBox,
92
+ initCSS
93
+ };
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@memberstack/dom",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "main": "./lib/index.js",
5
+ "module": "./lib/index.mjs",
6
+ "types": "./lib/index.d.ts",
5
7
  "files": [
6
8
  "lib/**/*"
7
9
  ],
@@ -13,20 +15,24 @@
13
15
  "js-cookie": "^3.0.1"
14
16
  },
15
17
  "scripts": {
16
- "prepublishOnly": "yarn workspace prebuilt-uis build && npx tsc",
17
- "prepublishOnly:porter-dev": "yarn workspace prebuilt-uis build && npx tsc && yarn replace:vars:local endpoint=https://dev-client.memberstack.com",
18
+ "dev": "tsup --format esm,cjs --dts --watch --env.API_ENDPOINT=https://client.memberstack.com",
19
+ "build": "tsup --format esm,cjs --dts --env.API_ENDPOINT=https://client.memberstack.com",
20
+ "prepublishOnly": "yarn workspace prebuilt-uis build && yarn build:local",
21
+ "prepublishOnly:porter-prod": "yarn workspace prebuilt-uis build && tsup --format esm,cjs --dts --env.API_ENDPOINT=https://client.memberstack.com",
22
+ "prepublishOnly:porter-dev": "yarn workspace prebuilt-uis build && tsup --format esm,cjs --dts --env.API_ENDPOINT=https://dev-client.memberstack.com",
18
23
  "watch": "tsc-watch",
19
- "watch:dev": "tsc-watch --onSuccess 'yarn replace:vars:local'",
20
- "watch:dev-ngrok": "tsc-watch --onSuccess 'yarn replace:vars:local endpoint=https://client-testing.ngrok.io'",
21
- "watch:dev-api": "tsc-watch --onSuccess 'yarn replace:vars:local endpoint=https://dev-client.memberstack.com'",
22
- "clean": "rm -rf node_modules",
23
- "replace:vars:local": "ts-node utils/replaceDynamicVars -development",
24
+ "watch:dev": "tsup --format esm,cjs --dts --watch --env.API_ENDPOINT=http://localhost:3005",
25
+ "watch:dev-ngrok": "tsup --format esm,cjs --dts --watch --env.API_ENDPOINT=https://client-testing.ngrok.io",
26
+ "watch:dev-api": "tsup --format esm,cjs --dts --watch --env.API_ENDPOINT=https://dev-client.memberstack.com",
27
+ "clean": "rm -rf node_modules lib",
24
28
  "deploy:latest": "npx np --tag latest --no-tests --any-branch",
25
29
  "deploy:next": "npx np --tag next --no-tests --any-branch",
26
- "build:local": "npx tsc"
30
+ "build:local": "tsup --format esm,cjs --dts"
27
31
  },
28
32
  "devDependencies": {
29
33
  "replace-in-file": "^6.3.5",
30
- "ts-jest": "^26.5.6"
34
+ "ts-jest": "^26.5.6",
35
+ "tsc-watch": "^6.0.4",
36
+ "tsup": "^7.2.0"
31
37
  }
32
38
  }
@@ -1 +0,0 @@
1
- export declare const createFileInputElement: () => HTMLInputElement;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFileInputElement = void 0;
4
- var createFileInputElement = function () {
5
- var fileInputField = document.createElement("input");
6
- fileInputField.setAttribute("required", "");
7
- fileInputField.setAttribute("type", "file");
8
- fileInputField.setAttribute("accept", "image/*");
9
- fileInputField.setAttribute("profile-image", "true");
10
- fileInputField.setAttribute("name", "profile-image");
11
- fileInputField.setAttribute("data-name", "File");
12
- fileInputField.setAttribute("hidden", "");
13
- fileInputField.setAttribute("tabindex", "-1");
14
- return fileInputField;
15
- };
16
- exports.createFileInputElement = createFileInputElement;