@authing/vue-ui-components 3.0.12-rc.1 → 3.0.12-rc.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authing/vue-ui-components",
3
3
  "description": "Authing Vue UI components",
4
- "version": "3.0.12-rc.1",
4
+ "version": "3.0.12-rc.6",
5
5
  "keywords": [
6
6
  "vue",
7
7
  "vuejs",
@@ -33,7 +33,7 @@
33
33
  "registry": "https://registry.npmjs.org"
34
34
  },
35
35
  "dependencies": {
36
- "@authing/native-js-ui-components": "3.0.12"
36
+ "@authing/native-js-ui-components": "^3.0.12"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/core": "^7.4.0",
@@ -79,4 +79,4 @@
79
79
  "> 10%",
80
80
  "last 2 versions"
81
81
  ]
82
- }
82
+ }
@@ -6,7 +6,6 @@
6
6
  import {
7
7
  getAuthClient,
8
8
  initAuthClient,
9
- Guard as NativeGuard,
10
9
  GuardEventsCamelToKebabMap,
11
10
  GuardMode,
12
11
  GuardScenes,
@@ -14,8 +13,16 @@ import {
14
13
  RegisterMethods,
15
14
  } from "@authing/native-js-ui-components";
16
15
  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
- export { getAuthClient, initAuthClient, GuardMode, GuardScenes, LoginMethods, RegisterMethods };
18
+ export {
19
+ getAuthClient,
20
+ initAuthClient,
21
+ GuardMode,
22
+ GuardScenes,
23
+ LoginMethods,
24
+ RegisterMethods,
25
+ };
19
26
 
20
27
  const format = (a, b) => {
21
28
  return !a || a === "false" ? b : true;
@@ -101,10 +108,16 @@ export default {
101
108
  mounted() {
102
109
  this.config = this.config || {};
103
110
  this.config.mode = this.mode ? this.mode : this.config.mode;
104
- this.config.autoRegister = this.autoRegister ? this.autoRegister : this.config.autoRegister;
111
+ this.config.autoRegister = this.autoRegister
112
+ ? this.autoRegister
113
+ : this.config.autoRegister;
105
114
  this.config.isSSO = this.isSSO ? this.isSSO : this.config.isSSO;
106
- this.config.clickCloseable = this.clickCloseable ? this.clickCloseable : this.config.clickCloseable;
107
- this.config.escCloseable = this.escCloseable ? this.escCloseable : this.config.escCloseable;
115
+ this.config.clickCloseable = this.clickCloseable
116
+ ? this.clickCloseable
117
+ : this.config.clickCloseable;
118
+ this.config.escCloseable = this.escCloseable
119
+ ? this.escCloseable
120
+ : this.config.escCloseable;
108
121
 
109
122
  // this.config.autoRegister = format(this.autoRegister, this.config.autoRegister)
110
123
  // this.config.isSSO = format(this.isSSO, this.config.isSSO)
@@ -114,11 +127,14 @@ export default {
114
127
  const guard = new NativeGuard(this.appId, this.config);
115
128
 
116
129
  const evts = Object.values(GuardEventsCamelToKebabMap);
117
- const kebabToCamelMap = Object.entries(GuardEventsCamelToKebabMap).reduce((acc, [camel, kebab]) => {
118
- return Object.assign({}, acc, {
119
- [kebab]: camel,
120
- });
121
- }, {});
130
+ const kebabToCamelMap = Object.entries(GuardEventsCamelToKebabMap).reduce(
131
+ (acc, [camel, kebab]) => {
132
+ return Object.assign({}, acc, {
133
+ [kebab]: camel,
134
+ });
135
+ },
136
+ {}
137
+ );
122
138
 
123
139
  const listeners = evts.reduce((acc, evtName) => {
124
140
  return Object.assign({}, acc, {
@@ -3,4 +3,5 @@ import Guard from "./Guard.vue";
3
3
 
4
4
  export * from "./AuthingGuard.vue";
5
5
  export * from "./Guard.vue";
6
+
6
7
  export { AuthingGuard, Guard };
package/vue.config.js CHANGED
@@ -1,36 +1,33 @@
1
- const path = require('path')
1
+ const path = require("path");
2
2
 
3
3
  module.exports = {
4
4
  lintOnSave: false,
5
5
 
6
- outputDir: './docs',
7
- publicPath: './',
6
+ outputDir: "./docs",
7
+ publicPath: "./",
8
8
 
9
9
  configureWebpack: {
10
10
  entry: {
11
- app: path.resolve(__dirname, './docs-src/main.js'),
11
+ app: path.resolve(__dirname, "./docs-src/main.js"),
12
12
  },
13
13
  resolve: {
14
14
  alias: {
15
- '@style': path.resolve(__dirname, './src/style/imports.styl'),
16
- '@': path.resolve(__dirname, './docs-src'),
15
+ "@style": path.resolve(__dirname, "./src/style/imports.styl"),
16
+ "@": path.resolve(__dirname, "./docs-src"),
17
17
  },
18
18
  },
19
19
  },
20
20
 
21
- chainWebpack: config => {
22
- config.module
23
- .rule('js')
24
- .include
25
- .add(path.resolve(__dirname, './docs-src'))
21
+ chainWebpack: (config) => {
22
+ config.module.rule("js").include.add(path.resolve(__dirname, "./docs-src"));
26
23
 
27
24
  config.module
28
- .rule('vue')
29
- .use('vue-loader')
30
- .loader('vue-loader')
31
- .tap(options => {
32
- options.compilerOptions.preserveWhitespace = true
33
- return options
34
- })
25
+ .rule("vue")
26
+ .use("vue-loader")
27
+ .loader("vue-loader")
28
+ .tap((options) => {
29
+ options.compilerOptions.preserveWhitespace = true;
30
+ return options;
31
+ });
35
32
  },
36
- }
33
+ };