@memberstack/dom 2.0.2-beta.0 → 2.0.3

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 (87) hide show
  1. package/lib/index.d.mts +76 -61
  2. package/lib/index.d.ts +76 -61
  3. package/lib/index.js +840 -61
  4. package/lib/index.mjs +840 -61
  5. package/lib/{models-CTRKogoR.d.ts → models-CFT_ABd5.d.ts} +2 -2
  6. package/lib/testing/index.d.mts +25 -2
  7. package/lib/testing/index.d.ts +25 -2
  8. package/lib/testing/index.js +28 -6
  9. package/lib/testing/index.mjs +26 -5
  10. package/package.json +1 -1
  11. package/lib/auth/index.d.mts +0 -63
  12. package/lib/auth/index.d.ts +0 -63
  13. package/lib/auth/index.global.js +0 -244
  14. package/lib/auth/index.js +0 -161
  15. package/lib/auth/index.mjs +0 -123
  16. package/lib/constants/endpoints.d.mts +0 -5
  17. package/lib/constants/endpoints.d.ts +0 -5
  18. package/lib/constants/endpoints.global.js +0 -29
  19. package/lib/constants/endpoints.js +0 -32
  20. package/lib/constants/endpoints.mjs +0 -7
  21. package/lib/methods/dom/index.d.mts +0 -2
  22. package/lib/methods/dom/index.d.ts +0 -2
  23. package/lib/methods/dom/index.global.js +0 -2
  24. package/lib/methods/dom/index.js +0 -1
  25. package/lib/methods/dom/index.mjs +0 -0
  26. package/lib/methods/dom/main-dom.d.mts +0 -2
  27. package/lib/methods/dom/main-dom.d.ts +0 -2
  28. package/lib/methods/dom/main-dom.global.js +0 -30620
  29. package/lib/methods/dom/main-dom.js +0 -15611
  30. package/lib/methods/dom/main-dom.mjs +0 -15593
  31. package/lib/methods/dom/methods.d.mts +0 -100
  32. package/lib/methods/dom/methods.d.ts +0 -100
  33. package/lib/methods/dom/methods.global.js +0 -30827
  34. package/lib/methods/dom/methods.js +0 -335
  35. package/lib/methods/dom/methods.mjs +0 -302
  36. package/lib/methods/index.d.mts +0 -185
  37. package/lib/methods/index.d.ts +0 -185
  38. package/lib/methods/index.global.js +0 -46361
  39. package/lib/methods/index.js +0 -2530
  40. package/lib/methods/index.mjs +0 -2500
  41. package/lib/methods/requests/index.d.mts +0 -912
  42. package/lib/methods/requests/index.d.ts +0 -912
  43. package/lib/methods/requests/index.global.js +0 -15553
  44. package/lib/methods/requests/index.js +0 -2145
  45. package/lib/methods/requests/index.mjs +0 -2110
  46. package/lib/methods/requests/requests.d.mts +0 -43
  47. package/lib/methods/requests/requests.d.ts +0 -43
  48. package/lib/methods/requests/requests.global.js +0 -14528
  49. package/lib/methods/requests/requests.js +0 -244
  50. package/lib/methods/requests/requests.mjs +0 -210
  51. package/lib/models-BmZS-mc4.d.ts +0 -193
  52. package/lib/models-le7xaT4H.d.ts +0 -193
  53. package/lib/types/index.d.mts +0 -5
  54. package/lib/types/index.d.ts +0 -5
  55. package/lib/types/index.global.js +0 -19
  56. package/lib/types/index.js +0 -18
  57. package/lib/types/index.mjs +0 -0
  58. package/lib/types/params.d.mts +0 -946
  59. package/lib/types/params.d.ts +0 -946
  60. package/lib/types/params.global.js +0 -19
  61. package/lib/types/params.js +0 -18
  62. package/lib/types/params.mjs +0 -0
  63. package/lib/types/payloads.d.mts +0 -342
  64. package/lib/types/payloads.d.ts +0 -342
  65. package/lib/types/payloads.global.js +0 -19
  66. package/lib/types/payloads.js +0 -18
  67. package/lib/types/payloads.mjs +0 -0
  68. package/lib/types/translations.d.mts +0 -101
  69. package/lib/types/translations.d.ts +0 -101
  70. package/lib/types/translations.global.js +0 -19
  71. package/lib/types/translations.js +0 -18
  72. package/lib/types/translations.mjs +0 -0
  73. package/lib/types/utils/payloads.d.mts +0 -297
  74. package/lib/types/utils/payloads.d.ts +0 -297
  75. package/lib/types/utils/payloads.global.js +0 -19
  76. package/lib/types/utils/payloads.js +0 -18
  77. package/lib/types/utils/payloads.mjs +0 -0
  78. package/lib/utils/cookies.d.mts +0 -13
  79. package/lib/utils/cookies.d.ts +0 -13
  80. package/lib/utils/cookies.global.js +0 -261
  81. package/lib/utils/cookies.js +0 -190
  82. package/lib/utils/cookies.mjs +0 -148
  83. package/lib/utils/defaultMessageBox.d.mts +0 -5
  84. package/lib/utils/defaultMessageBox.d.ts +0 -5
  85. package/lib/utils/defaultMessageBox.global.js +0 -125
  86. package/lib/utils/defaultMessageBox.js +0 -130
  87. package/lib/utils/defaultMessageBox.mjs +0 -103
@@ -1,125 +0,0 @@
1
- var MemberstackDOM = (() => {
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/defaultMessageBox.ts
21
- var defaultMessageBox_exports = {};
22
- __export(defaultMessageBox_exports, {
23
- addErrorBox: () => addErrorBox,
24
- addSuccessBox: () => addSuccessBox,
25
- initCSS: () => initCSS
26
- });
27
- var closeIcon;
28
- if (typeof window !== "undefined") {
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>`;
33
- }
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);
48
- };
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);
63
- };
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
- @media screen and (max-width: 768px) {
99
- .ms-error-message {
100
- bottom: 12px;
101
- width: calc(100% - 24px);
102
- max-width: none;
103
- padding: 10px 12px;
104
- font-size: 14px;
105
- line-height: 20px;
106
- }
107
- }
108
- #ms-status-icon {
109
- width: 20px;
110
- height: 20px;
111
- margin-right: 12px;
112
- }
113
- #ms-status-close {
114
- margin-left: 20px;
115
- cursor: pointer;
116
- }
117
- #ms-status-close svg {
118
- height: 12px;
119
- }`;
120
- cssEl.setAttribute("data-ms-style", "");
121
- cssEl.appendChild(document.createTextNode(css));
122
- document.head.appendChild(cssEl);
123
- };
124
- return __toCommonJS(defaultMessageBox_exports);
125
- })();
@@ -1,130 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/utils/defaultMessageBox.ts
21
- var defaultMessageBox_exports = {};
22
- __export(defaultMessageBox_exports, {
23
- addErrorBox: () => addErrorBox,
24
- addSuccessBox: () => addSuccessBox,
25
- initCSS: () => initCSS
26
- });
27
- module.exports = __toCommonJS(defaultMessageBox_exports);
28
- var closeIcon;
29
- if (typeof window !== "undefined") {
30
- closeIcon = document.createElement("div");
31
- closeIcon.setAttribute("id", "ms-status-close");
32
- closeIcon.setAttribute("data-ms-message-close", "");
33
- 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>`;
34
- }
35
- var addSuccessBox = () => {
36
- const successStatusIcon = document.createElement("div");
37
- successStatusIcon.setAttribute("id", "ms-status-icon");
38
- 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>`;
39
- const successHTML = `<div data-ms-message class="ms-error-message">
40
- ${successStatusIcon.outerHTML}
41
- <div id="ms-message" data-ms-message-text></div>
42
- ${closeIcon.outerHTML}
43
- </div>`;
44
- const successdiv = document.createElement("div");
45
- successdiv.setAttribute("data-ms-message", "success");
46
- successdiv.innerHTML = successHTML;
47
- successdiv.style.display = "none";
48
- document.body.appendChild(successdiv);
49
- };
50
- var addErrorBox = () => {
51
- const errorStatusIcon = document.createElement("div");
52
- errorStatusIcon.setAttribute("id", "ms-status-icon");
53
- 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>`;
54
- const errorHTML = `<div data-ms-message class="ms-error-message">
55
- ${errorStatusIcon.outerHTML}
56
- <div id="ms-message" data-ms-message-text></div>
57
- ${closeIcon.outerHTML}
58
- </div>`;
59
- const errordiv = document.createElement("div");
60
- errordiv.setAttribute("data-ms-message", "error");
61
- errordiv.innerHTML = errorHTML;
62
- errordiv.style.display = "none";
63
- document.body.appendChild(errordiv);
64
- };
65
- var initCSS = () => {
66
- const cssEl = document.createElement("style");
67
- const css = `
68
- @keyframes fadeIn {
69
- 0% {
70
- opacity: 0;
71
- }
72
- 100% {
73
- opacity: 1;
74
- }
75
- }
76
- .ms-error-message {
77
- position: fixed;
78
- left: 50%;
79
- bottom: 3%;
80
- transform: translate(-50%, -50%);
81
- margin: 0 auto;
82
- z-index: 10000000;
83
- display: flex;
84
- align-items: center;
85
- padding: 12px 16px;
86
- border-radius: 8px;
87
- background-color: #0A0A0A;
88
- color: #fff;
89
- font-size: 16.8px;
90
- line-height: 28px;
91
- font-weight: 500;
92
- transform-origin: center;
93
- animation: fadeIn 0.2s ease-in;
94
- -webkit-animation: fadeIn 0.2s ease-in;
95
- -moz-animation: fadeIn 0.2s ease-in;
96
- -o-animation: fadeIn 0.2s ease-in;
97
- -ms-animation: fadeIn 0.2s ease-in;
98
- }
99
- @media screen and (max-width: 768px) {
100
- .ms-error-message {
101
- bottom: 12px;
102
- width: calc(100% - 24px);
103
- max-width: none;
104
- padding: 10px 12px;
105
- font-size: 14px;
106
- line-height: 20px;
107
- }
108
- }
109
- #ms-status-icon {
110
- width: 20px;
111
- height: 20px;
112
- margin-right: 12px;
113
- }
114
- #ms-status-close {
115
- margin-left: 20px;
116
- cursor: pointer;
117
- }
118
- #ms-status-close svg {
119
- height: 12px;
120
- }`;
121
- cssEl.setAttribute("data-ms-style", "");
122
- cssEl.appendChild(document.createTextNode(css));
123
- document.head.appendChild(cssEl);
124
- };
125
- // Annotate the CommonJS export names for ESM import in node:
126
- 0 && (module.exports = {
127
- addErrorBox,
128
- addSuccessBox,
129
- initCSS
130
- });
@@ -1,103 +0,0 @@
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
- @media screen and (max-width: 768px) {
74
- .ms-error-message {
75
- bottom: 12px;
76
- width: calc(100% - 24px);
77
- max-width: none;
78
- padding: 10px 12px;
79
- font-size: 14px;
80
- line-height: 20px;
81
- }
82
- }
83
- #ms-status-icon {
84
- width: 20px;
85
- height: 20px;
86
- margin-right: 12px;
87
- }
88
- #ms-status-close {
89
- margin-left: 20px;
90
- cursor: pointer;
91
- }
92
- #ms-status-close svg {
93
- height: 12px;
94
- }`;
95
- cssEl.setAttribute("data-ms-style", "");
96
- cssEl.appendChild(document.createTextNode(css));
97
- document.head.appendChild(cssEl);
98
- };
99
- export {
100
- addErrorBox,
101
- addSuccessBox,
102
- initCSS
103
- };