@adminforth/login-captcha 1.0.2 → 1.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.
package/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/CaptchaWidget.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 1,863 bytes received 58 bytes 3,842.00 bytes/sec
11
- total size is 1,646 speedup is 0.86
10
+ sent 1,995 bytes received 58 bytes 4,106.00 bytes/sec
11
+ total size is 1,778 speedup is 0.87
@@ -1,12 +1,15 @@
1
1
  <template>
2
2
  <div class="w-full flex justify-center items-center">
3
- <div :id="props.meta.containerId"></div>
3
+ <div :id="props.meta.containerId" :data-theme="theme"></div>
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
8
  import { onMounted, ref } from 'vue';
9
9
  import { callAdminForthApi } from '@/utils';
10
+ import { useCoreStore } from '@/stores/core';
11
+
12
+ const coreStore = useCoreStore();
10
13
 
11
14
  interface Props {
12
15
  meta: {
@@ -24,6 +27,7 @@ const token = ref(null);
24
27
  const emit = defineEmits(
25
28
  ["update:disableLoginButton"]
26
29
  )
30
+ const theme = coreStore.theme;
27
31
 
28
32
  onMounted(() => {
29
33
  const fnName = props.meta.renderWidgetFunctionName;
@@ -1,12 +1,15 @@
1
1
  <template>
2
2
  <div class="w-full flex justify-center items-center">
3
- <div :id="props.meta.containerId"></div>
3
+ <div :id="props.meta.containerId" :data-theme="theme"></div>
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
8
  import { onMounted, ref } from 'vue';
9
9
  import { callAdminForthApi } from '@/utils';
10
+ import { useCoreStore } from '@/stores/core';
11
+
12
+ const coreStore = useCoreStore();
10
13
 
11
14
  interface Props {
12
15
  meta: {
@@ -24,6 +27,7 @@ const token = ref(null);
24
27
  const emit = defineEmits(
25
28
  ["update:disableLoginButton"]
26
29
  )
30
+ const theme = coreStore.theme;
27
31
 
28
32
  onMounted(() => {
29
33
  const fnName = props.meta.renderWidgetFunctionName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/login-captcha",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",