pukaad-ui-lib 1.262.0 → 1.264.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.262.0",
4
+ "version": "1.264.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
- background: boolean;
68
- modal: boolean;
69
67
  responsive: boolean;
70
68
  restore: boolean;
71
69
  checkCrossOrigin: boolean;
72
70
  checkOrientation: boolean;
73
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
74
73
  guides: boolean;
75
74
  highlight: boolean;
75
+ background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
64
64
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
65
65
  src: string;
66
66
  center: boolean;
67
- background: boolean;
68
- modal: boolean;
69
67
  responsive: boolean;
70
68
  restore: boolean;
71
69
  checkCrossOrigin: boolean;
72
70
  checkOrientation: boolean;
73
71
  crossorigin: "" | "anonymous" | "use-credentials";
72
+ modal: boolean;
74
73
  guides: boolean;
75
74
  highlight: boolean;
75
+ background: boolean;
76
76
  autoCrop: boolean;
77
77
  movable: boolean;
78
78
  rotatable: boolean;
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <component v-for="modal in modals" :key="modal.key" :is="modal.component" :email="props.email" :phone="props.phone"
3
3
  mode="secure" @complete="(data) => handleComplete(modal.key, data)"
4
- :confirmed-text="isLastStep ? '\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19' : '\u0E16\u0E31\u0E14\u0E44\u0E1B'" @close="isOpen = false" v-model="modalStates[modal.key]" />
4
+ :confirmed-text="isLastStep ? '\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19' : '\u0E16\u0E31\u0E14\u0E44\u0E1B'" @close="isOpen = false" v-model="modalStates[modal.key]"
5
+ :request-path="modal.key === 'phoneOTP' ? '/otp/phone-request' : void 0"
6
+ :verify-path="modal.key === 'phoneOTP' ? '/otp/phone-verify' : void 0"
7
+ />
5
8
  </template>
6
9
 
7
10
  <script setup>
@@ -21,6 +21,7 @@ const modelValue = useVModel(props, "modelValue", emits, {
21
21
  v-bind="$attrs"
22
22
  v-model="modelValue"
23
23
  data-slot="input"
24
+ autocomplete="off"
24
25
  :class="
25
26
  cn(
26
27
  'font-body-large',
@@ -17,7 +17,7 @@ const delegatedProps = reactiveOmit(props, "class");
17
17
  v-bind="delegatedProps"
18
18
  :class="
19
19
  cn(
20
- 'bg-muted text-body-medium dark:text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]',
20
+ 'bg-muted font-body-medium dark:text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[4px]',
21
21
  props.class
22
22
  )
23
23
  "
@@ -14,12 +14,16 @@ export const useApi = () => {
14
14
  },
15
15
  // Interceptors
16
16
  onRequest({ request, options }) {
17
+ const headers = new Headers(options.headers);
17
18
  const token = secId.value;
18
19
  if (token) {
19
- const headers = new Headers(options.headers);
20
20
  headers.set("Authorization", `Bearer ${token}`);
21
- options.headers = headers;
22
21
  }
22
+ const provinceId = config.public.APP_PROVINCE_ID;
23
+ if (provinceId) {
24
+ headers.set("X-Province-ID", provinceId);
25
+ }
26
+ options.headers = headers;
23
27
  },
24
28
  onResponseError({ response }) {
25
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.262.0",
3
+ "version": "1.264.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",