adata-ui 4.0.34 → 4.0.35

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/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "4.0.34",
8
+ "version": "4.0.35",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -3,6 +3,9 @@ import AButton from "../button/Button.vue";
3
3
  import { useAppConfig, useI18n } from "#imports";
4
4
  import { navigateTo } from "#app";
5
5
  import { useLocalePath } from "#i18n";
6
+ const props = defineProps({
7
+ redirectPath: { type: String, required: true }
8
+ });
6
9
  const emit = defineEmits(["close"]);
7
10
  const { t } = useI18n();
8
11
  const appConfig = useAppConfig();
@@ -10,7 +13,7 @@ const mode = appConfig.adataUI.mode;
10
13
  const localePath = useLocalePath();
11
14
  function logIn() {
12
15
  const fullPath = encodeURIComponent(window.location.toString());
13
- return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}`), { external: true });
16
+ return navigateTo(localePath(`https://id.${mode}.kz/?url=${fullPath}/${props.redirectPath}`), { external: true });
14
17
  }
15
18
  function register() {
16
19
  return navigateTo(localePath(`https://id.${mode}.kz/register`), { external: true });
@@ -1,2 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ redirectPath: string;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
5
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.34",
3
+ "version": "4.0.35",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",