langie 1.9.25 → 1.9.26

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.
Files changed (47) hide show
  1. package/dist/components/InterfaceLanguageSelect.vue.d.ts +65 -0
  2. package/dist/components/LanguageSelect.vue.d.ts +59 -0
  3. package/dist/components/index.cjs +66 -39
  4. package/dist/components/index.cjs.map +1 -1
  5. package/dist/components/index.css +81 -116
  6. package/dist/components/index.css.map +1 -1
  7. package/dist/components/index.d.ts +4 -0
  8. package/dist/components/index.mjs +66 -39
  9. package/dist/components/index.mjs.map +1 -1
  10. package/dist/components/lt.vue.d.ts +37 -0
  11. package/dist/components/types.d.ts +20 -0
  12. package/dist/composables/types.d.ts +8 -0
  13. package/dist/composables/useLangie-batching.d.ts +48 -0
  14. package/dist/composables/useLangie-core.d.ts +21 -0
  15. package/dist/constants/colors.d.ts +82 -0
  16. package/dist/constants.d.ts +29 -0
  17. package/dist/core.cjs +17 -8
  18. package/dist/core.cjs.map +1 -1
  19. package/dist/core.d.ts +10 -85
  20. package/dist/core.mjs +16 -8
  21. package/dist/core.mjs.map +1 -1
  22. package/dist/index.cjs +52 -45
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.css +81 -81
  25. package/dist/index.css.map +1 -1
  26. package/dist/index.d.ts +19 -163
  27. package/dist/index.mjs +52 -45
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/language-aliases/african.d.ts +2 -0
  30. package/dist/language-aliases/asian.d.ts +2 -0
  31. package/dist/language-aliases/european.d.ts +2 -0
  32. package/dist/language-aliases/index.d.ts +3 -0
  33. package/dist/language-aliases/types.d.ts +5 -0
  34. package/dist/language-aliases.d.ts +1 -0
  35. package/dist/search-utils.d.ts +4 -0
  36. package/dist/{core.d.cts → types.d.ts} +5 -39
  37. package/dist/useLangie.d.ts +55 -0
  38. package/dist/utils/cache.d.ts +33 -0
  39. package/dist/utils/debug.d.ts +1 -0
  40. package/dist/utils/getCountryCode.d.ts +3 -0
  41. package/dist/utils/languageMapping.d.ts +13 -0
  42. package/dist/utils/regionMapping.d.ts +18 -0
  43. package/dist/utils/theme.d.ts +9 -0
  44. package/package.json +9 -5
  45. package/dist/index.d.cts +0 -165
  46. package/dist/teleport.d.cts +0 -2
  47. package/dist/teleport.d.ts +0 -2
@@ -1,16 +1,43 @@
1
1
  /**
2
- * langie v1.9.25
2
+ * langie v1.9.26
3
3
  * (c) 2026 nlit
4
4
  * @license Apache-2.0
5
- *
5
+ *
6
6
  * Licensed under the Apache License, Version 2.0
7
7
  * http://www.apache.org/licenses/LICENSE-2.0
8
8
  */
9
9
 
10
- // vue-script:/Users/nlit/projects/langie-sdk/src/components/LanguageSelect.vue?type=script
10
+ // vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
11
11
  import { useCssVars as _useCssVars, defineComponent as _defineComponent } from "vue";
12
12
  import { createCommentVNode as _createCommentVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, Fragment as _Fragment, normalizeClass as _normalizeClass } from "vue";
13
13
  import "@vueform/multiselect/themes/default.css";
14
+
15
+ // #style-inject:#style-inject
16
+ function styleInject(css, { insertAt } = {}) {
17
+ if (!css || typeof document === "undefined") return;
18
+ const head = document.head || document.getElementsByTagName("head")[0];
19
+ const style = document.createElement("style");
20
+ style.type = "text/css";
21
+ if (insertAt === "top") {
22
+ if (head.firstChild) {
23
+ head.insertBefore(style, head.firstChild);
24
+ } else {
25
+ head.appendChild(style);
26
+ }
27
+ } else {
28
+ head.appendChild(style);
29
+ }
30
+ if (style.styleSheet) {
31
+ style.styleSheet.cssText = css;
32
+ } else {
33
+ style.appendChild(document.createTextNode(css));
34
+ }
35
+ }
36
+
37
+ // src/styles/teleport.css
38
+ styleInject(".multiselect-single-label,\n.multiselect-option {\n display: flex;\n align-items: center;\n}\n.lang-flag {\n width: 20px;\n height: 15px;\n margin-right: 10px;\n border: 1px solid var(--langie-flag-border, #eee);\n border-radius: 2px;\n object-fit: cover;\n}\n.is-dark .lang-flag {\n border-color: var(--langie-flag-border-dark, #4b5563);\n}\n.native-name {\n color: var(--langie-text-secondary, #6b7280);\n margin-left: 0.5rem;\n font-size: 0.9em;\n}\n.is-dark .native-name {\n color: var(--langie-text-secondary-dark, #9ca3af);\n}\n.multiselect-no-results,\n.multiselect-no-options {\n padding: 0.5rem 0.875rem;\n color: var(--langie-text-secondary, #6b7280);\n}\n.is-dark .multiselect-no-results,\n.is-dark .multiselect-no-options {\n color: var(--langie-text-secondary-dark, #9ca3af);\n}\n");
39
+
40
+ // vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
14
41
  import { ref, computed, nextTick } from "vue";
15
42
  import Multiselect from "@vueform/multiselect";
16
43
  import Fuse from "fuse.js";
@@ -556,7 +583,7 @@ var THEME_COLORS = {
556
583
  }
557
584
  };
558
585
 
559
- // vue-script:/Users/nlit/projects/langie-sdk/src/components/LanguageSelect.vue?type=script
586
+ // vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
560
587
  var _hoisted_1 = {
561
588
  key: 0,
562
589
  class: "multiselect-single-label"
@@ -596,35 +623,35 @@ var LanguageSelect_default = /* @__PURE__ */ _defineComponent({
596
623
  emits: ["update:modelValue"],
597
624
  setup(__props, { emit: __emit }) {
598
625
  _useCssVars((_ctx) => ({
599
- "25bc3fde-THEME_COLORS.light.background": _unref(THEME_COLORS).light.background,
600
- "25bc3fde-THEME_COLORS.light.backgroundDisabled": _unref(THEME_COLORS).light.backgroundDisabled,
601
- "25bc3fde-THEME_COLORS.light.border": _unref(THEME_COLORS).light.border,
602
- "25bc3fde-THEME_COLORS.light.ring": _unref(THEME_COLORS).light.ring,
603
- "25bc3fde-THEME_COLORS.light.placeholder": _unref(THEME_COLORS).light.placeholder,
604
- "25bc3fde-THEME_COLORS.light.optionPointed": _unref(THEME_COLORS).light.optionPointed,
605
- "25bc3fde-THEME_COLORS.light.optionPointedText": _unref(THEME_COLORS).light.optionPointedText,
606
- "25bc3fde-THEME_COLORS.light.optionSelected": _unref(THEME_COLORS).light.optionSelected,
607
- "25bc3fde-THEME_COLORS.light.optionSelectedText": _unref(THEME_COLORS).light.optionSelectedText,
608
- "25bc3fde-THEME_COLORS.light.dropdownBackground": _unref(THEME_COLORS).light.dropdownBackground,
609
- "25bc3fde-THEME_COLORS.light.dropdownBorder": _unref(THEME_COLORS).light.dropdownBorder,
610
- "25bc3fde-THEME_COLORS.light.dropdownText": _unref(THEME_COLORS).light.dropdownText,
611
- "25bc3fde-THEME_COLORS.light.tagBackground": _unref(THEME_COLORS).light.tagBackground,
612
- "25bc3fde-THEME_COLORS.dark.background": _unref(THEME_COLORS).dark.background,
613
- "25bc3fde-THEME_COLORS.dark.backgroundDisabled": _unref(THEME_COLORS).dark.backgroundDisabled,
614
- "25bc3fde-THEME_COLORS.dark.border": _unref(THEME_COLORS).dark.border,
615
- "25bc3fde-THEME_COLORS.dark.placeholder": _unref(THEME_COLORS).dark.placeholder,
616
- "25bc3fde-THEME_COLORS.dark.ring": _unref(THEME_COLORS).dark.ring,
617
- "25bc3fde-THEME_COLORS.dark.optionPointed": _unref(THEME_COLORS).dark.optionPointed,
618
- "25bc3fde-THEME_COLORS.dark.optionPointedText": _unref(THEME_COLORS).dark.optionPointedText,
619
- "25bc3fde-THEME_COLORS.dark.optionSelected": _unref(THEME_COLORS).dark.optionSelected,
620
- "25bc3fde-THEME_COLORS.dark.optionSelectedText": _unref(THEME_COLORS).dark.optionSelectedText,
621
- "25bc3fde-THEME_COLORS.dark.dropdownBackground": _unref(THEME_COLORS).dark.dropdownBackground,
622
- "25bc3fde-THEME_COLORS.dark.dropdownBorder": _unref(THEME_COLORS).dark.dropdownBorder,
623
- "25bc3fde-THEME_COLORS.dark.dropdownText": _unref(THEME_COLORS).dark.dropdownText,
624
- "25bc3fde-COLORS.border.flag": _unref(COLORS).border.flag,
625
- "25bc3fde-COLORS.border.dark": _unref(COLORS).border.dark,
626
- "25bc3fde-COLORS.text.secondary": _unref(COLORS).text.secondary,
627
- "25bc3fde-COLORS.neutral.gray400": _unref(COLORS).neutral.gray400
626
+ "5b09cc17-THEME_COLORS.light.background": _unref(THEME_COLORS).light.background,
627
+ "5b09cc17-THEME_COLORS.light.backgroundDisabled": _unref(THEME_COLORS).light.backgroundDisabled,
628
+ "5b09cc17-THEME_COLORS.light.border": _unref(THEME_COLORS).light.border,
629
+ "5b09cc17-THEME_COLORS.light.ring": _unref(THEME_COLORS).light.ring,
630
+ "5b09cc17-THEME_COLORS.light.placeholder": _unref(THEME_COLORS).light.placeholder,
631
+ "5b09cc17-THEME_COLORS.light.optionPointed": _unref(THEME_COLORS).light.optionPointed,
632
+ "5b09cc17-THEME_COLORS.light.optionPointedText": _unref(THEME_COLORS).light.optionPointedText,
633
+ "5b09cc17-THEME_COLORS.light.optionSelected": _unref(THEME_COLORS).light.optionSelected,
634
+ "5b09cc17-THEME_COLORS.light.optionSelectedText": _unref(THEME_COLORS).light.optionSelectedText,
635
+ "5b09cc17-THEME_COLORS.light.dropdownBackground": _unref(THEME_COLORS).light.dropdownBackground,
636
+ "5b09cc17-THEME_COLORS.light.dropdownBorder": _unref(THEME_COLORS).light.dropdownBorder,
637
+ "5b09cc17-THEME_COLORS.light.dropdownText": _unref(THEME_COLORS).light.dropdownText,
638
+ "5b09cc17-THEME_COLORS.light.tagBackground": _unref(THEME_COLORS).light.tagBackground,
639
+ "5b09cc17-THEME_COLORS.dark.background": _unref(THEME_COLORS).dark.background,
640
+ "5b09cc17-THEME_COLORS.dark.backgroundDisabled": _unref(THEME_COLORS).dark.backgroundDisabled,
641
+ "5b09cc17-THEME_COLORS.dark.border": _unref(THEME_COLORS).dark.border,
642
+ "5b09cc17-THEME_COLORS.dark.placeholder": _unref(THEME_COLORS).dark.placeholder,
643
+ "5b09cc17-THEME_COLORS.dark.ring": _unref(THEME_COLORS).dark.ring,
644
+ "5b09cc17-THEME_COLORS.dark.optionPointed": _unref(THEME_COLORS).dark.optionPointed,
645
+ "5b09cc17-THEME_COLORS.dark.optionPointedText": _unref(THEME_COLORS).dark.optionPointedText,
646
+ "5b09cc17-THEME_COLORS.dark.optionSelected": _unref(THEME_COLORS).dark.optionSelected,
647
+ "5b09cc17-THEME_COLORS.dark.optionSelectedText": _unref(THEME_COLORS).dark.optionSelectedText,
648
+ "5b09cc17-THEME_COLORS.dark.dropdownBackground": _unref(THEME_COLORS).dark.dropdownBackground,
649
+ "5b09cc17-THEME_COLORS.dark.dropdownBorder": _unref(THEME_COLORS).dark.dropdownBorder,
650
+ "5b09cc17-THEME_COLORS.dark.dropdownText": _unref(THEME_COLORS).dark.dropdownText,
651
+ "5b09cc17-COLORS.border.flag": _unref(COLORS).border.flag,
652
+ "5b09cc17-COLORS.border.dark": _unref(COLORS).border.dark,
653
+ "5b09cc17-COLORS.text.secondary": _unref(COLORS).text.secondary,
654
+ "5b09cc17-COLORS.neutral.gray400": _unref(COLORS).neutral.gray400
628
655
  }));
629
656
  const getFlagCode = (lang) => {
630
657
  const flagCode = lang.flag_country || lang.code;
@@ -898,9 +925,9 @@ var LanguageSelect_default = /* @__PURE__ */ _defineComponent({
898
925
 
899
926
  // src/components/LanguageSelect.vue
900
927
  var LanguageSelect_default2 = LanguageSelect_default;
901
- LanguageSelect_default.__scopeId = "data-v-25bc3fde";
928
+ LanguageSelect_default.__scopeId = "data-v-5b09cc17";
902
929
 
903
- // vue-script:/Users/nlit/projects/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
930
+ // vue-script:/builds/codelits/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
904
931
  import { defineComponent as _defineComponent2 } from "vue";
905
932
  import { openBlock as _openBlock2, createBlock as _createBlock2, createCommentVNode as _createCommentVNode2, createElementVNode as _createElementVNode2, unref as _unref2, toDisplayString as _toDisplayString2, normalizeClass as _normalizeClass2, createElementBlock as _createElementBlock2 } from "vue";
906
933
  import { computed as computed2, watch as watch2, onMounted, ref as ref3 } from "vue";
@@ -2002,7 +2029,7 @@ function useLangie(options = {}) {
2002
2029
  return instance;
2003
2030
  }
2004
2031
 
2005
- // vue-script:/Users/nlit/projects/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
2032
+ // vue-script:/builds/codelits/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
2006
2033
  var _hoisted_12 = { class: "interface-language-select-wrapper" };
2007
2034
  var _hoisted_22 = { class: "loader-text" };
2008
2035
  var InterfaceLanguageSelect_default = /* @__PURE__ */ _defineComponent2({
@@ -2185,9 +2212,9 @@ var InterfaceLanguageSelect_default = /* @__PURE__ */ _defineComponent2({
2185
2212
 
2186
2213
  // src/components/InterfaceLanguageSelect.vue
2187
2214
  var InterfaceLanguageSelect_default2 = InterfaceLanguageSelect_default;
2188
- InterfaceLanguageSelect_default.__scopeId = "data-v-7192f8c0";
2215
+ InterfaceLanguageSelect_default.__scopeId = "data-v-258d337a";
2189
2216
 
2190
- // vue-script:/Users/nlit/projects/langie-sdk/src/components/lt.vue?type=script
2217
+ // vue-script:/builds/codelits/langie-sdk/src/components/lt.vue?type=script
2191
2218
  import { defineComponent as _defineComponent3 } from "vue";
2192
2219
  import { toDisplayString as _toDisplayString3, openBlock as _openBlock3, createElementBlock as _createElementBlock3, Transition as _Transition, withCtx as _withCtx2, createBlock as _createBlock3 } from "vue";
2193
2220
  import { computed as computed3, useSlots, watch as watch3 } from "vue";
@@ -2279,7 +2306,7 @@ var lt_default = /* @__PURE__ */ _defineComponent3({
2279
2306
 
2280
2307
  // src/components/lt.vue
2281
2308
  var lt_default2 = lt_default;
2282
- lt_default.__scopeId = "data-v-14a7b6f6";
2309
+ lt_default.__scopeId = "data-v-3341698b";
2283
2310
  export {
2284
2311
  InterfaceLanguageSelect_default2 as InterfaceLanguageSelect,
2285
2312
  LanguageSelect_default2 as LanguageSelect,