@authing/vue-ui-components 3.1.25 → 4.0.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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Authing
3
+ Copyright (c) 2019-present Authing
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -3,26 +3,9 @@
3
3
  </template>
4
4
 
5
5
  <script>
6
- import {
7
- getAuthClient,
8
- initAuthClient,
9
- GuardMode,
10
- GuardScenes,
11
- LoginMethods,
12
- RegisterMethods,
13
- Guard as NativeGuard,
14
- GuardEventsCamelToKebabMapping,
15
- } from "@authing/native-js-ui-components";
6
+ import { Guard as NativeGuard } from "@authing/native-js-ui-components";
16
7
  import "@authing/native-js-ui-components/lib/index.min.css";
17
-
18
- export {
19
- getAuthClient,
20
- initAuthClient,
21
- GuardMode,
22
- GuardScenes,
23
- LoginMethods,
24
- RegisterMethods,
25
- };
8
+ export * from "@authing/native-js-ui-components";
26
9
 
27
10
  const callbackEvent = ["before-login", "before-register"];
28
11
 
@@ -133,9 +116,7 @@ export default {
133
116
  });
134
117
 
135
118
  const evts = Object.values(GuardEventsCamelToKebabMapping);
136
- const kebabToCamelMap = Object.entries(
137
- GuardEventsCamelToKebabMapping
138
- ).reduce((acc, [camel, kebab]) => {
119
+ const kebabToCamelMap = Object.entries(GuardEventsCamelToKebabMapping).reduce((acc, [camel, kebab]) => {
139
120
  return Object.assign({}, acc, {
140
121
  [kebab]: camel,
141
122
  });
@@ -161,9 +142,7 @@ export default {
161
142
  });
162
143
  }, {});
163
144
 
164
- evts.forEach((evtName) =>
165
- this.guardInstance.on(evtName, listeners[evtName])
166
- );
145
+ evts.forEach((evtName) => this.guardInstance.on(evtName, listeners[evtName]));
167
146
 
168
147
  if (this.localVisible) {
169
148
  this.guardInstance.show();
@@ -1,9 +1,9 @@
1
- import AuthingGuard from './AuthingGuard'
1
+ // import AuthingGuard from './AuthingGuard'
2
2
  import Guard from './Guard'
3
3
  import '@authing/native-js-ui-components/lib/index.min.css'
4
4
 
5
5
  const components = [
6
- AuthingGuard,
6
+ // AuthingGuard,
7
7
  Guard
8
8
  ]
9
9
  // 全局注册
@@ -17,7 +17,7 @@ const install = (app) => {
17
17
  export {
18
18
  install,
19
19
  Guard,
20
- AuthingGuard
20
+ // AuthingGuard
21
21
  }
22
22
 
23
23
  export default {