@authing/vue-ui-components 3.1.13-rc.8 → 3.1.15

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.
@@ -1,19 +1,19 @@
1
1
  <template>
2
- <div id="authing_guard_container" />
2
+ <div id="authing_guard_container"></div>
3
3
  </template>
4
4
 
5
5
  <script>
6
6
  import {
7
7
  getAuthClient,
8
8
  initAuthClient,
9
- GuardEventsCamelToKebabMap,
10
9
  GuardMode,
11
10
  GuardScenes,
12
11
  LoginMethods,
13
12
  RegisterMethods,
13
+ Guard as NativeGuard,
14
+ GuardEventsCamelToKebabMapping,
14
15
  } from "@authing/native-js-ui-components";
15
16
  import "@authing/native-js-ui-components/lib/index.min.css";
16
- import { Guard as NativeGuard } from "@authing/native-js-ui-components/lib/index.min.js";
17
17
 
18
18
  export {
19
19
  getAuthClient,
@@ -125,22 +125,21 @@ export default {
125
125
  },
126
126
  },
127
127
  mounted() {
128
- this.guardInstance = new NativeGuard(
129
- this.appId,
130
- this.mergeConfig,
131
- this.tenantId,
132
- this.authClient
133
- );
128
+ this.guardInstance = new NativeGuard({
129
+ appId: this.appId,
130
+ tenantId: this.tenantId,
131
+ config: this.mergeConfig,
132
+ authClient: this.authClient,
133
+ });
134
134
 
135
- const evts = Object.values(GuardEventsCamelToKebabMap);
136
- const kebabToCamelMap = Object.entries(GuardEventsCamelToKebabMap).reduce(
137
- (acc, [camel, kebab]) => {
138
- return Object.assign({}, acc, {
139
- [kebab]: camel,
140
- });
141
- },
142
- {}
143
- );
135
+ const evts = Object.values(GuardEventsCamelToKebabMapping);
136
+ const kebabToCamelMap = Object.entries(
137
+ GuardEventsCamelToKebabMapping
138
+ ).reduce((acc, [camel, kebab]) => {
139
+ return Object.assign({}, acc, {
140
+ [kebab]: camel,
141
+ });
142
+ }, {});
144
143
 
145
144
  const listeners = evts.reduce((acc, evtName) => {
146
145
  return Object.assign({}, acc, {