@desource/phone-mask-vue 1.0.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @desource/phone-mask-vue
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Core Upgrades:
8
+ - Optimized bundle size of core package
9
+
10
+ - Updated dependencies []:
11
+ - @desource/phone-mask@1.1.1
12
+
13
+ ## 1.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - Svelte Upgrades:
18
+ - Added attachment `phoneMaskAttachment` for usage in native input (for Svelte 5.29+ versions)
19
+ - Added action `phoneMaskAction` for usage in native input (for Svelte 5.0+ versions)
20
+ - Improved keyboard country selection flow and active-descendant accessibility behavior
21
+ - Refined dropdown/key navigation handling and related focus behavior
22
+ - `usePhoneMask` now exposes `formatter` in the return object
23
+
24
+ - Vue Upgrades:
25
+ - Directive was refactored to align with Svelte action
26
+ - Improved keyboard country selection flow and active-descendant accessibility behavior
27
+ - Refined dropdown/key navigation handling and related focus behavior
28
+ - `usePhoneMask` now exposes `formatter` in the return object
29
+
30
+ - React Upgrades:
31
+ - Improved keyboard country selection flow and active-descendant accessibility behavior
32
+ - Refined dropdown/key navigation handling and related focus behavior
33
+ - `usePhoneMask` now exposes `formatter` in the return object
34
+
35
+ - Core Upgrades:
36
+ - Fixed edge cases in mask variant selection and improved input handler robustness
37
+ - Applied reliability-focused refactors in formatter/handlers and build script generation logic
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @desource/phone-mask@1.1.0
43
+
3
44
  ## 1.0.0
4
45
 
5
46
  ### Major Changes
package/README.md CHANGED
@@ -19,7 +19,7 @@ Beautiful, accessible, extreme small & tree-shakeable Vue 3 phone input with aut
19
19
  - ♿ **Accessible** — ARIA labels, keyboard navigation
20
20
  - 📱 **Mobile-friendly** — Optimized for touch devices
21
21
  - 🎯 **TypeScript** — Full type safety
22
- - 🧩 **Two modes** — Component or directive
22
+ - 🧩 **Three modes** — Component, composable, or directive
23
23
  - ⚡ **Optimized** — Tree-shaking and code splitting
24
24
 
25
25
  ## 📦 Installation
@@ -515,12 +515,15 @@ interface UsePhoneMaskOptions {
515
515
 
516
516
  ```ts
517
517
  interface UsePhoneMaskReturn {
518
- // Ref to attach to your input element - REQUIRED
518
+ // Ref to attach to your input element
519
519
  inputRef: ShallowRef<HTMLInputElement | null>;
520
520
 
521
521
  // Raw digits without formatting (e.g., "1234567890")
522
522
  digits: ComputedRef<string>;
523
523
 
524
+ // Phone formatter instance
525
+ formatter: ComputedRef<FormatterHelpers>;
526
+
524
527
  // Full phone number with country code (e.g., "+11234567890")
525
528
  full: ComputedRef<string>;
526
529