@tapni/auth 0.0.170 → 0.0.172

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 (69) hide show
  1. package/README.md +2 -0
  2. package/dist/.vite/manifest.json +18 -10
  3. package/dist/.well-known/assetlinks.json +10 -12
  4. package/dist/.well-known/microsoft-identity-association.json +5 -5
  5. package/dist/{Account-6F9eRo1R.js → Account-BVGvxZ85.js} +31 -32
  6. package/dist/{QR-2Izy5Dj4.js → QR-DwjajyG2.js} +3 -3
  7. package/dist/TapniAuth.es.js +1 -1
  8. package/dist/TapniAuth.umd.js +9 -9
  9. package/dist/blank.html +31 -0
  10. package/dist/{install-co2F1hxN.js → install-B8fBS6C4.js} +752 -996
  11. package/dist/site.webmanifest +11 -1
  12. package/dist/style.css +1 -1
  13. package/dist/{web-NrPZl3qD.js → web-XbruGdlD.js} +2 -5
  14. package/package.json +64 -55
  15. package/src/.prettierrc.json +16 -0
  16. package/src/App.vue +249 -265
  17. package/src/components/Language.vue +66 -143
  18. package/src/components/LinkIcon.vue +174 -225
  19. package/src/components/ModalOverlay.vue +47 -50
  20. package/src/components/OTP.vue +64 -94
  21. package/src/components/SSO.vue +80 -111
  22. package/src/components/SSOPick.vue +93 -148
  23. package/src/eslint.config.js +15 -0
  24. package/src/install.js +9 -10
  25. package/src/main.js +54 -57
  26. package/src/mixins/apple.mixin.js +56 -54
  27. package/src/mixins/auth.mixin.js +21 -74
  28. package/src/mixins/facebook.mixin.js +67 -66
  29. package/src/mixins/global.mixin.js +107 -109
  30. package/src/mixins/google.mixin.js +53 -54
  31. package/src/mixins/mfa-auth.mixin.js +68 -68
  32. package/src/mixins/microsoft.mixin.js +67 -75
  33. package/src/mixins/okta.mixin.js +50 -57
  34. package/src/mixins/qr-auth.mixin.js +111 -107
  35. package/src/mixins/saml.mixin.js +97 -48
  36. package/src/router/index.js +6 -6
  37. package/src/routes.js +60 -66
  38. package/src/services/Api.js +55 -57
  39. package/src/services/AuthService.js +75 -75
  40. package/src/services/CompanyService.js +10 -10
  41. package/src/services/DeviceService.js +3 -3
  42. package/src/services/UserService.js +45 -45
  43. package/src/services/UtilService.js +256 -218
  44. package/src/store/auth.js +471 -543
  45. package/src/store/constants.js +1 -1
  46. package/src/store/event-bus.js +22 -22
  47. package/src/store/locales/cn.js +442 -458
  48. package/src/store/locales/de.js +438 -517
  49. package/src/store/locales/en.js +449 -510
  50. package/src/store/locales/es.js +442 -524
  51. package/src/store/locales/fr.js +442 -516
  52. package/src/store/locales/it.js +442 -514
  53. package/src/store/locales/kr.js +442 -491
  54. package/src/store/locales/lang.js +43 -43
  55. package/src/store/locales/sr.js +439 -492
  56. package/src/store/locales/tr.js +436 -487
  57. package/src/store/store.js +6 -6
  58. package/src/views/Account.vue +169 -207
  59. package/src/views/Callback.vue +36 -33
  60. package/src/views/Login.vue +220 -392
  61. package/src/views/MFA.vue +89 -103
  62. package/src/views/QR.vue +25 -28
  63. package/src/views/Register.vue +201 -205
  64. package/src/views/Reset.vue +132 -135
  65. package/src/views/Verify.vue +153 -151
  66. package/src/views/Welcome.vue +61 -60
  67. /package/dist/{web-L3jORB19.js → web-AXRKjAOB.js} +0 -0
  68. /package/dist/{web-5VtGcKeU.js → web-IFGkBi0t.js} +0 -0
  69. /package/dist/{web-AImUTDQQ.js → web-LIfHmYL2.js} +0 -0
package/README.md CHANGED
@@ -25,7 +25,9 @@ npm run build
25
25
  ```sh
26
26
  npm run build-lib
27
27
  ```
28
+
28
29
  and then run
30
+
29
31
  ```sh
30
32
  npm publish
31
33
  ```
@@ -1,6 +1,7 @@
1
1
  {
2
- "_install-co2F1hxN.js": {
3
- "file": "install-co2F1hxN.js",
2
+ "_install-B8fBS6C4.js": {
3
+ "file": "install-B8fBS6C4.js",
4
+ "name": "install",
4
5
  "dynamicImports": [
5
6
  "src/views/Account.vue",
6
7
  "src/views/QR.vue",
@@ -11,44 +12,51 @@
11
12
  ]
12
13
  },
13
14
  "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
14
- "file": "web-NrPZl3qD.js",
15
+ "file": "web-XbruGdlD.js",
16
+ "name": "web",
15
17
  "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
16
18
  "isDynamicEntry": true
17
19
  },
18
20
  "node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
19
- "file": "web-L3jORB19.js",
21
+ "file": "web-AXRKjAOB.js",
22
+ "name": "web",
20
23
  "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
21
24
  "isDynamicEntry": true
22
25
  },
23
26
  "node_modules/@capacitor/preferences/dist/esm/web.js": {
24
- "file": "web-AImUTDQQ.js",
27
+ "file": "web-LIfHmYL2.js",
28
+ "name": "web",
25
29
  "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
26
30
  "isDynamicEntry": true
27
31
  },
28
32
  "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
29
- "file": "web-5VtGcKeU.js",
33
+ "file": "web-IFGkBi0t.js",
34
+ "name": "web",
30
35
  "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
31
36
  "isDynamicEntry": true
32
37
  },
33
38
  "src/install.js": {
34
39
  "file": "TapniAuth.umd.js",
40
+ "name": "install",
35
41
  "src": "src/install.js",
36
42
  "isEntry": true
37
43
  },
38
44
  "src/views/Account.vue": {
39
- "file": "Account-6F9eRo1R.js",
45
+ "file": "Account-BVGvxZ85.js",
46
+ "name": "Account",
40
47
  "src": "src/views/Account.vue",
41
48
  "isDynamicEntry": true,
42
49
  "imports": [
43
- "_install-co2F1hxN.js"
50
+ "_install-B8fBS6C4.js"
44
51
  ]
45
52
  },
46
53
  "src/views/QR.vue": {
47
- "file": "QR-2Izy5Dj4.js",
54
+ "file": "QR-DwjajyG2.js",
55
+ "name": "QR",
48
56
  "src": "src/views/QR.vue",
49
57
  "isDynamicEntry": true,
50
58
  "imports": [
51
- "_install-co2F1hxN.js"
59
+ "_install-B8fBS6C4.js"
52
60
  ]
53
61
  },
54
62
  "style.css": {
@@ -1,12 +1,10 @@
1
- [{
2
- "relation": ["delegate_permission/common.handle_all_urls"],
3
- "target": {
4
- "namespace": "android_app",
5
- "package_name": "co.tapni.app",
6
- "sha256_cert_fingerprints":
7
- [
8
- "B5:E6:1C:2F:E6:57:A8:A8:53:E9:10:4D:40:7C:A4:1C:61:A6:05:B1:67:19:3B:87:BA:5D:FD:F7:62:1B:E7:94",
9
- "54:D6:D1:9A:91:74:AD:8E:51:C3:63:53:55:CB:A1:B3:D2:A4:79:AF:5E:93:A0:DC:9E:01:8A:4E:60:4D:C3:60"
10
- ]
11
- }
12
- }]
1
+ [
2
+ {
3
+ "relation": ["delegate_permission/common.handle_all_urls"],
4
+ "target": {
5
+ "namespace": "android_app",
6
+ "package_name": "co.tapni.app",
7
+ "sha256_cert_fingerprints": ["B5:E6:1C:2F:E6:57:A8:A8:53:E9:10:4D:40:7C:A4:1C:61:A6:05:B1:67:19:3B:87:BA:5D:FD:F7:62:1B:E7:94", "54:D6:D1:9A:91:74:AD:8E:51:C3:63:53:55:CB:A1:B3:D2:A4:79:AF:5E:93:A0:DC:9E:01:8A:4E:60:4D:C3:60"]
8
+ }
9
+ }
10
+ ]
@@ -1,7 +1,7 @@
1
1
  {
2
- "associatedApplications": [
3
- {
4
- "applicationId": "6c0662cb-3333-436d-a092-b5a37c50599e"
5
- }
6
- ]
2
+ "associatedApplications": [
3
+ {
4
+ "applicationId": "6c0662cb-3333-436d-a092-b5a37c50599e"
5
+ }
6
+ ]
7
7
  }
@@ -1,13 +1,12 @@
1
- import { _ as l, A as d, E as r } from "./install-co2F1hxN.js";
2
- import { openBlock as g, createElementBlock as u, createElementVNode as t, toDisplayString as i, createCommentVNode as a, pushScopeId as p, popScopeId as _ } from "vue";
3
- var h = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4
- const m = {
1
+ import { _ as l, A as d, E as g } from "./install-B8fBS6C4.js";
2
+ import { createElementBlock as r, openBlock as u, createElementVNode as t, createCommentVNode as a, toDisplayString as i, pushScopeId as p, popScopeId as h } from "vue";
3
+ const _ = {
5
4
  mixins: [d],
6
5
  data() {
7
6
  return {
8
7
  expanded: !1,
9
8
  addAccountReady: !1,
10
- appVersion: h.APP_VERSION
9
+ appVersion: void 0
11
10
  };
12
11
  },
13
12
  async mounted() {
@@ -29,85 +28,85 @@ const m = {
29
28
  this.$router.push("/mfa");
30
29
  },
31
30
  toggleLanguageModal() {
32
- r.$emit("toggleSSOLanguageModal");
31
+ g.$emit("toggleSSOLanguageModal");
33
32
  },
34
33
  logoutAccount() {
35
34
  this.logout({ refreshToken: this.refreshTokens[0], sendRequest: !0 });
36
35
  }
37
36
  }
38
- }, o = (e) => (p("data-v-992c1e64"), e = e(), _(), e), f = {
37
+ }, o = (e) => (p("data-v-a8acf931"), e = e(), h(), e), m = {
39
38
  class: "page-login content-boxed content-boxed-padding center-text",
40
39
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
41
- }, v = /* @__PURE__ */ o(() => /* @__PURE__ */ t("br", null, null, -1)), A = { class: "bold full-top no-bottom center-text" }, E = { class: "full-bottom half-top center-text color-black font-16" };
42
- const L = { class: "container" }, P = { class: "settingsCard pointer left-text" }, b = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
40
+ }, f = /* @__PURE__ */ o(() => /* @__PURE__ */ t("br", null, null, -1)), v = { class: "bold full-top no-bottom center-text" }, b = { class: "full-bottom half-top center-text color-black font-16" };
41
+ const L = { class: "container" }, w = { class: "settingsCard pointer left-text" }, x = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
43
42
  /* @__PURE__ */ t("img", {
44
43
  src: "https://cdn.tapni.co/icons/newSettings.svg",
45
44
  style: { width: "50px", "border-radius": "20px" }
46
45
  })
47
- ], -1)), S = { class: "middle" }, k = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
46
+ ], -1)), A = { class: "middle" }, k = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
48
47
  /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
49
- ], -1)), w = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), x = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
48
+ ], -1)), S = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), y = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
50
49
  /* @__PURE__ */ t("img", {
51
50
  src: "https://cdn.tapni.co/icons/newPublicProfile.svg",
52
51
  style: { width: "50px", "border-radius": "20px" }
53
52
  })
54
- ], -1)), I = { class: "middle" }, O = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
53
+ ], -1)), E = { class: "middle" }, V = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
55
54
  /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
56
- ], -1)), V = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), T = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
55
+ ], -1)), N = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), M = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
57
56
  /* @__PURE__ */ t("img", {
58
57
  src: "https://cdn.tapni.co/icons/newLogout.svg",
59
58
  style: { width: "50px", "border-radius": "20px" }
60
59
  })
61
- ], -1)), N = { class: "middle" }, R = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
60
+ ], -1)), C = { class: "middle" }, T = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
62
61
  /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
63
62
  ], -1));
64
- function y(e, n, C, D, M, c) {
65
- return g(), u("div", f, [
66
- v,
67
- t("h1", A, i(e.ssoLang[e.appLanguage].welcome), 1),
68
- t("p", E, i(e.account.email), 1),
63
+ function $(e, n, B, I, R, c) {
64
+ return u(), r("div", m, [
65
+ f,
66
+ t("h1", v, i(e.ssoLang[e.appLanguage].welcome), 1),
67
+ t("p", b, i(e.account.email), 1),
69
68
  (e.display, a("", !0)),
70
69
  t("div", L, [
71
70
  a("", !0),
72
- t("div", P, [
71
+ t("div", w, [
73
72
  t("div", {
74
73
  class: "device",
75
74
  onClick: n[4] || (n[4] = (...s) => c.toggleAccountSettingsModal && c.toggleAccountSettingsModal(...s))
76
75
  }, [
77
- b,
78
- t("div", S, [
76
+ x,
77
+ t("div", A, [
79
78
  t("h4", null, i(e.ssoLang[e.appLanguage].mfa), 1)
80
79
  ]),
81
80
  k
82
81
  ]),
83
- w,
82
+ S,
84
83
  t("div", {
85
84
  class: "device",
86
85
  onClick: n[5] || (n[5] = (...s) => c.toggleLanguageModal && c.toggleLanguageModal(...s))
87
86
  }, [
88
- x,
89
- t("div", I, [
87
+ y,
88
+ t("div", E, [
90
89
  t("h4", null, i(e.ssoLang[e.appLanguage].change_language), 1)
91
90
  ]),
92
- O
91
+ V
93
92
  ]),
94
- V,
93
+ N,
95
94
  t("div", {
96
95
  class: "device",
97
96
  onClick: n[6] || (n[6] = (...s) => c.logoutAccount && c.logoutAccount(...s))
98
97
  }, [
99
- T,
100
- t("div", N, [
98
+ M,
99
+ t("div", C, [
101
100
  t("h4", null, i(e.ssoLang[e.appLanguage].logout), 1)
102
101
  ]),
103
- R
102
+ T
104
103
  ]),
105
104
  a("", !0)
106
105
  ])
107
106
  ])
108
107
  ]);
109
108
  }
110
- const U = /* @__PURE__ */ l(m, [["render", y], ["__scopeId", "data-v-992c1e64"]]);
109
+ const O = /* @__PURE__ */ l(_, [["render", $], ["__scopeId", "data-v-a8acf931"]]);
111
110
  export {
112
- U as default
111
+ O as default
113
112
  };
@@ -1,5 +1,5 @@
1
- import { _ as s, A as a, Q as i } from "./install-co2F1hxN.js";
2
- import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
1
+ import { _ as s, A as a, Q as i } from "./install-B8fBS6C4.js";
2
+ import { resolveComponent as l, createElementBlock as _, openBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
3
3
  const g = {
4
4
  name: "AuthQR",
5
5
  mixins: [a, i]
@@ -10,7 +10,7 @@ const g = {
10
10
  }, null, -1), f = /* @__PURE__ */ n("br", null, null, -1), y = /* @__PURE__ */ n("br", null, null, -1), C = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, v = { class: "center-text" }, k = /* @__PURE__ */ n("br", null, null, -1), q = /* @__PURE__ */ n("br", null, null, -1), w = /* @__PURE__ */ n("br", null, null, -1);
11
11
  function x(e, A, Q, R, $, N) {
12
12
  const t = l("router-link");
13
- return _(), r("div", h, [
13
+ return r(), _("div", h, [
14
14
  n("h5", c, o(e.ssoLang[e.appLanguage].use_tapni_on_the_web), 1),
15
15
  m,
16
16
  n("div", L, [
@@ -1,4 +1,4 @@
1
- import { i as f } from "./install-co2F1hxN.js";
1
+ import { i as f } from "./install-B8fBS6C4.js";
2
2
  export {
3
3
  f as default
4
4
  };