@everymatrix/player-step-up-auth 0.1.0

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 (56) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-bf4d774c.js +1330 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/player-step-up-auth-2fac8df5.js +617 -0
  6. package/dist/cjs/player-step-up-auth.cjs.entry.js +10 -0
  7. package/dist/cjs/player-step-up-auth.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/player-step-up-auth/index.js +1 -0
  10. package/dist/collection/components/player-step-up-auth/player-step-up-auth.css +131 -0
  11. package/dist/collection/components/player-step-up-auth/player-step-up-auth.js +543 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/types.js +0 -0
  14. package/dist/collection/utils/utils.js +177 -0
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/index-c6eee6d8.js +1302 -0
  17. package/dist/esm/index.js +2 -0
  18. package/dist/esm/loader.js +11 -0
  19. package/dist/esm/player-step-up-auth-009badea.js +615 -0
  20. package/dist/esm/player-step-up-auth.entry.js +2 -0
  21. package/dist/esm/player-step-up-auth.js +20 -0
  22. package/dist/index.cjs.js +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/player-step-up-auth/index.esm.js +1 -0
  25. package/dist/player-step-up-auth/p-3b187b6e.entry.js +1 -0
  26. package/dist/player-step-up-auth/p-c6a4faff.js +2 -0
  27. package/dist/player-step-up-auth/p-e1255160.js +1 -0
  28. package/dist/player-step-up-auth/p-f97ac666.js +1 -0
  29. package/dist/player-step-up-auth/player-step-up-auth.esm.js +1 -0
  30. package/dist/stencil.config.dev.js +19 -0
  31. package/dist/stencil.config.js +18 -0
  32. package/dist/storybook/main.js +43 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  35. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/stencil.config.d.ts +2 -0
  36. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/storybook/main.d.ts +3 -0
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/packages/stencil/player-step-up-auth/storybook/preview.d.ts +70 -0
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/index.d.ts +3 -0
  40. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  41. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  42. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-step-up-auth/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/player-step-up-auth/index.d.ts +1 -0
  44. package/dist/types/components/player-step-up-auth/player-step-up-auth.d.ts +168 -0
  45. package/dist/types/components.d.ts +93 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  48. package/dist/types/utils/types.d.ts +0 -0
  49. package/dist/types/utils/utils.d.ts +2 -0
  50. package/loader/cdn.js +1 -0
  51. package/loader/index.cjs.js +1 -0
  52. package/loader/index.d.ts +24 -0
  53. package/loader/index.es2017.js +1 -0
  54. package/loader/index.js +2 -0
  55. package/loader/package.json +11 -0
  56. package/package.json +27 -0
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bf4d774c.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-step-up-auth.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["player-step-up-auth.cjs",[[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"showResendOtp":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/player-step-up-auth/player-step-up-auth.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1 @@
1
+ export { PlayerStepUpAuth } from './player-step-up-auth';
@@ -0,0 +1,131 @@
1
+ .OtpPopupOverlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background: var(--emw--color-overlay, rgba(0, 0, 0, 0.5));
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+
13
+ .OtpButton {
14
+ font-family: var(--emw--button-typography);
15
+ border: var(--emw--button-border, none);
16
+ border-radius: var(--emw--button-border-radius, 3px);
17
+ border-color: var(--emw--button-border-color);
18
+ background-color: var(--emw--button-background-color, var(--emw--color-primary, #007bff));
19
+ color: var(--emw--button-typography, var(--emw--color-white, #fff));
20
+ padding: 10px 20px;
21
+ cursor: pointer;
22
+ font-size: 16px;
23
+ }
24
+ .OtpButton.error {
25
+ background: var(--emw--color-error, #dd3434);
26
+ }
27
+
28
+ .OtpPopupContent {
29
+ position: relative;
30
+ background: var(--emw--color-white, #fff);
31
+ padding: 20px;
32
+ border-radius: 5px;
33
+ text-align: center;
34
+ min-width: 25%;
35
+ min-height: 200px;
36
+ display: flex;
37
+ flex-direction: column;
38
+ justify-content: center;
39
+ gap: 20px;
40
+ }
41
+ .OtpPopupContent .OtpError {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: 20px;
45
+ align-items: center;
46
+ }
47
+ .OtpPopupContent .OtpError .OtpErrorHeader {
48
+ display: flex;
49
+ justify-content: center;
50
+ gap: 5px;
51
+ }
52
+ .OtpPopupContent .OtpError h2 {
53
+ margin: 0;
54
+ }
55
+ .OtpPopupContent .OtpError svg {
56
+ width: 25px;
57
+ fill: var(--emw--color-error, #dd3434);
58
+ }
59
+
60
+ .OtpFieldWrapper {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 10px;
64
+ }
65
+ .OtpFieldWrapper h2 {
66
+ margin: 0;
67
+ }
68
+
69
+ .OtpField {
70
+ display: flex;
71
+ justify-content: center;
72
+ }
73
+
74
+ .OtpField input {
75
+ width: 24px;
76
+ font-size: 32px;
77
+ padding: 10px;
78
+ text-align: center;
79
+ border-radius: 5px;
80
+ margin: 2px;
81
+ border: 2px solid var(--emw--otp-border-color, #55525c);
82
+ font-weight: bold;
83
+ outline: none;
84
+ transition: all 0.1s;
85
+ }
86
+ .OtpField input.space {
87
+ margin-right: 1rem !important;
88
+ }
89
+
90
+ .OtpField input:focus {
91
+ border: 2px solid var(--emw--color-primary, #007bff);
92
+ box-shadow: 0 0 2px 2px var(--emw--color-primary, #007bff);
93
+ }
94
+
95
+ .OtpActionButtons {
96
+ display: flex;
97
+ justify-content: space-between;
98
+ }
99
+
100
+ .OtpErrorMessage {
101
+ color: var(--emw--color-error, #dd3434);
102
+ font-weight: bold;
103
+ }
104
+
105
+ .OtpLoaderContainer {
106
+ width: 100%;
107
+ height: 100%;
108
+ display: flex;
109
+ justify-content: center;
110
+ align-items: center;
111
+ }
112
+
113
+ .OtpLoader {
114
+ width: 48px;
115
+ height: 48px;
116
+ border: 5px solid var(--emw--color-secondary, #b3d8ff);
117
+ border-bottom-color: var(--emw--color-primary, #007bff);
118
+ border-radius: 50%;
119
+ display: inline-block;
120
+ box-sizing: border-box;
121
+ animation: rotation 1s linear infinite;
122
+ }
123
+
124
+ @keyframes rotation {
125
+ 0% {
126
+ transform: rotate(0deg);
127
+ }
128
+ 100% {
129
+ transform: rotate(360deg);
130
+ }
131
+ }