@i18n-micro/devtools-ui 1.0.3 → 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.
@@ -40,20 +40,20 @@ export declare function createI18nState(): {
40
40
  plural?: (string | import('@i18n-micro/types').PluralFunc) | undefined;
41
41
  disablePageLocales?: boolean | undefined;
42
42
  fallbackLocale?: string | undefined;
43
- localeCookie?: string | undefined;
43
+ localeCookie?: string | null | undefined;
44
44
  debug?: boolean | undefined;
45
45
  globalLocaleRoutes?: import('@i18n-micro/types').GlobalLocaleRoutes;
46
46
  customRegexMatcher?: (string | RegExp) | undefined;
47
47
  noPrefixRedirect?: boolean | undefined;
48
48
  canonicalQueryWhitelist?: string[] | undefined;
49
49
  excludePatterns?: (string | RegExp)[] | undefined;
50
+ localizedRouteNamePrefix?: string | undefined;
50
51
  routeLocales?: Record<string, string[]> | undefined;
51
52
  routeDisableMeta?: Record<string, boolean | string[]> | undefined;
52
53
  missingWarn?: boolean | undefined;
53
- experimental?: {
54
- i18nPreviousPageFallback?: boolean | undefined;
55
- hmr?: boolean | undefined;
56
- } | undefined;
54
+ previousPageFallback?: boolean | undefined;
55
+ hmr?: boolean | undefined;
56
+ experimental?: Record<string, unknown> | undefined;
57
57
  }, ModuleOptions | {
58
58
  locales?: {
59
59
  [x: string]: unknown;
@@ -89,20 +89,20 @@ export declare function createI18nState(): {
89
89
  plural?: (string | import('@i18n-micro/types').PluralFunc) | undefined;
90
90
  disablePageLocales?: boolean | undefined;
91
91
  fallbackLocale?: string | undefined;
92
- localeCookie?: string | undefined;
92
+ localeCookie?: string | null | undefined;
93
93
  debug?: boolean | undefined;
94
94
  globalLocaleRoutes?: import('@i18n-micro/types').GlobalLocaleRoutes;
95
95
  customRegexMatcher?: (string | RegExp) | undefined;
96
96
  noPrefixRedirect?: boolean | undefined;
97
97
  canonicalQueryWhitelist?: string[] | undefined;
98
98
  excludePatterns?: (string | RegExp)[] | undefined;
99
+ localizedRouteNamePrefix?: string | undefined;
99
100
  routeLocales?: Record<string, string[]> | undefined;
100
101
  routeDisableMeta?: Record<string, boolean | string[]> | undefined;
101
102
  missingWarn?: boolean | undefined;
102
- experimental?: {
103
- i18nPreviousPageFallback?: boolean | undefined;
104
- hmr?: boolean | undefined;
105
- } | undefined;
103
+ previousPageFallback?: boolean | undefined;
104
+ hmr?: boolean | undefined;
105
+ experimental?: Record<string, unknown> | undefined;
106
106
  }>;
107
107
  selectedFileContent: import('vue').Ref<TranslationContent, TranslationContent>;
108
108
  bridge: Readonly<import('vue').Ref<{
@@ -163,20 +163,20 @@ export declare function useI18nState(): {
163
163
  plural?: (string | import('@i18n-micro/types').PluralFunc) | undefined;
164
164
  disablePageLocales?: boolean | undefined;
165
165
  fallbackLocale?: string | undefined;
166
- localeCookie?: string | undefined;
166
+ localeCookie?: string | null | undefined;
167
167
  debug?: boolean | undefined;
168
168
  globalLocaleRoutes?: import('@i18n-micro/types').GlobalLocaleRoutes;
169
169
  customRegexMatcher?: (string | RegExp) | undefined;
170
170
  noPrefixRedirect?: boolean | undefined;
171
171
  canonicalQueryWhitelist?: string[] | undefined;
172
172
  excludePatterns?: (string | RegExp)[] | undefined;
173
+ localizedRouteNamePrefix?: string | undefined;
173
174
  routeLocales?: Record<string, string[]> | undefined;
174
175
  routeDisableMeta?: Record<string, boolean | string[]> | undefined;
175
176
  missingWarn?: boolean | undefined;
176
- experimental?: {
177
- i18nPreviousPageFallback?: boolean | undefined;
178
- hmr?: boolean | undefined;
179
- } | undefined;
177
+ previousPageFallback?: boolean | undefined;
178
+ hmr?: boolean | undefined;
179
+ experimental?: Record<string, unknown> | undefined;
180
180
  }, ModuleOptions | {
181
181
  locales?: {
182
182
  [x: string]: unknown;
@@ -212,20 +212,20 @@ export declare function useI18nState(): {
212
212
  plural?: (string | import('@i18n-micro/types').PluralFunc) | undefined;
213
213
  disablePageLocales?: boolean | undefined;
214
214
  fallbackLocale?: string | undefined;
215
- localeCookie?: string | undefined;
215
+ localeCookie?: string | null | undefined;
216
216
  debug?: boolean | undefined;
217
217
  globalLocaleRoutes?: import('@i18n-micro/types').GlobalLocaleRoutes;
218
218
  customRegexMatcher?: (string | RegExp) | undefined;
219
219
  noPrefixRedirect?: boolean | undefined;
220
220
  canonicalQueryWhitelist?: string[] | undefined;
221
221
  excludePatterns?: (string | RegExp)[] | undefined;
222
+ localizedRouteNamePrefix?: string | undefined;
222
223
  routeLocales?: Record<string, string[]> | undefined;
223
224
  routeDisableMeta?: Record<string, boolean | string[]> | undefined;
224
225
  missingWarn?: boolean | undefined;
225
- experimental?: {
226
- i18nPreviousPageFallback?: boolean | undefined;
227
- hmr?: boolean | undefined;
228
- } | undefined;
226
+ previousPageFallback?: boolean | undefined;
227
+ hmr?: boolean | undefined;
228
+ experimental?: Record<string, unknown> | undefined;
229
229
  }>;
230
230
  selectedFileContent: import('vue').Ref<TranslationContent, TranslationContent>;
231
231
  bridge: Readonly<import('vue').Ref<{
package/dist/index.es.js CHANGED
@@ -441,11 +441,11 @@ function la(e) {
441
441
  o !== e && (e.prevSub = o, o && (o.nextSub = e)), pe.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
442
442
  }
443
443
  }
444
- const on = /* @__PURE__ */ new WeakMap(), Wt = Symbol(
444
+ const on = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ Symbol(
445
445
  pe.NODE_ENV !== "production" ? "Object iterate" : ""
446
- ), rn = Symbol(
446
+ ), rn = /* @__PURE__ */ Symbol(
447
447
  pe.NODE_ENV !== "production" ? "Map keys iterate" : ""
448
- ), Ao = Symbol(
448
+ ), Ao = /* @__PURE__ */ Symbol(
449
449
  pe.NODE_ENV !== "production" ? "Array iterate" : ""
450
450
  );
451
451
  function Ce(e, t, o) {
@@ -1650,7 +1650,7 @@ function jt(e, t, o, r) {
1650
1650
  ]), tt());
1651
1651
  }
1652
1652
  }
1653
- const Ta = Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e) => e && (e.disabled || e.disabled === ""), ti = (e) => e && (e.defer || e.defer === ""), oi = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ri = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, sn = (e, t) => {
1653
+ const Ta = /* @__PURE__ */ Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e) => e && (e.disabled || e.disabled === ""), ti = (e) => e && (e.defer || e.defer === ""), oi = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ri = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, sn = (e, t) => {
1654
1654
  const o = e && e.to;
1655
1655
  if (ve(o))
1656
1656
  if (t) {
@@ -1882,7 +1882,7 @@ function Aa(e, t, o, r) {
1882
1882
  const n = t.targetStart = o(""), i = t.targetAnchor = o("");
1883
1883
  return n[Ta] = i, e && (r(n, e), r(i, e)), i;
1884
1884
  }
1885
- const _t = Symbol("_leaveCb"), tr = Symbol("_enterCb");
1885
+ const _t = /* @__PURE__ */ Symbol("_leaveCb"), tr = /* @__PURE__ */ Symbol("_enterCb");
1886
1886
  function Wl() {
1887
1887
  const e = {
1888
1888
  isMounted: !1,
@@ -2261,7 +2261,7 @@ const Ha = "components";
2261
2261
  function ic(e, t) {
2262
2262
  return Ka(Ha, e, !0, t) || e;
2263
2263
  }
2264
- const Ua = Symbol.for("v-ndc");
2264
+ const Ua = /* @__PURE__ */ Symbol.for("v-ndc");
2265
2265
  function Ba(e) {
2266
2266
  return ve(e) ? Ka(Ha, e, !1) || e : e || Ua;
2267
2267
  }
@@ -2908,7 +2908,7 @@ function $o(e, t, o = !1) {
2908
2908
  v.NODE_ENV !== "production" && O(`injection "${String(e)}" not found.`);
2909
2909
  } else v.NODE_ENV !== "production" && O("inject() can only be used inside setup() or functional components.");
2910
2910
  }
2911
- const wc = Symbol.for("v-scx"), mc = () => {
2911
+ const wc = /* @__PURE__ */ Symbol.for("v-scx"), mc = () => {
2912
2912
  {
2913
2913
  const e = $o(wc);
2914
2914
  return e || v.NODE_ENV !== "production" && O(
@@ -4449,7 +4449,7 @@ const fs = (e) => e.__isSuspense;
4449
4449
  function Kc(e, t) {
4450
4450
  t && t.pendingBranch ? L(e) ? t.effects.push(...e) : t.effects.push(e) : _a(e);
4451
4451
  }
4452
- const re = Symbol.for("v-fgt"), qo = Symbol.for("v-txt"), Ee = Symbol.for("v-cmt"), To = Symbol.for("v-stc"), Do = [];
4452
+ const re = /* @__PURE__ */ Symbol.for("v-fgt"), qo = /* @__PURE__ */ Symbol.for("v-txt"), Ee = /* @__PURE__ */ Symbol.for("v-cmt"), To = /* @__PURE__ */ Symbol.for("v-stc"), Do = [];
4453
4453
  let Be = null;
4454
4454
  function y(e = !1) {
4455
4455
  Do.push(Be = e ? null : []);
@@ -5192,7 +5192,7 @@ const bs = wn ? (e) => wn.createHTML(e) : (e) => e, dd = "http://www.w3.org/2000
5192
5192
  o ? o.previousSibling : t.lastChild
5193
5193
  ];
5194
5194
  }
5195
- }, Ct = "transition", yo = "animation", Lo = Symbol("_vtc"), ys = {
5195
+ }, Ct = "transition", yo = "animation", Lo = /* @__PURE__ */ Symbol("_vtc"), ys = {
5196
5196
  name: String,
5197
5197
  type: String,
5198
5198
  css: {
@@ -5360,7 +5360,7 @@ function bd(e, t, o) {
5360
5360
  const r = e[Lo];
5361
5361
  r && (t = (t ? [t, ...r] : [...r]).join(" ")), t == null ? e.removeAttribute("class") : o ? e.setAttribute("class", t) : e.className = t;
5362
5362
  }
5363
- const Er = Symbol("_vod"), _s = Symbol("_vsh"), yd = {
5363
+ const Er = /* @__PURE__ */ Symbol("_vod"), _s = /* @__PURE__ */ Symbol("_vsh"), yd = {
5364
5364
  // used for prop mismatch check during hydration
5365
5365
  name: "show",
5366
5366
  beforeMount(e, { value: t }, { transition: o }) {
@@ -5381,7 +5381,7 @@ const Er = Symbol("_vod"), _s = Symbol("_vsh"), yd = {
5381
5381
  function _o(e, t) {
5382
5382
  e.style.display = t ? e[Er] : "none", e[_s] = !t;
5383
5383
  }
5384
- const _d = Symbol(Ve.NODE_ENV !== "production" ? "CSS_VAR_TEXT" : ""), xd = /(?:^|;)\s*display\s*:/;
5384
+ const _d = /* @__PURE__ */ Symbol(Ve.NODE_ENV !== "production" ? "CSS_VAR_TEXT" : ""), xd = /(?:^|;)\s*display\s*:/;
5385
5385
  function kd(e, t, o) {
5386
5386
  const r = e.style, n = ve(o);
5387
5387
  let i = !1;
@@ -5482,7 +5482,7 @@ function At(e, t, o, r) {
5482
5482
  function Od(e, t, o, r) {
5483
5483
  e.removeEventListener(t, o, r);
5484
5484
  }
5485
- const Pi = Symbol("_vei");
5485
+ const Pi = /* @__PURE__ */ Symbol("_vei");
5486
5486
  function Sd(e, t, o, r, n = null) {
5487
5487
  const i = e[Pi] || (e[Pi] = {}), a = i[t];
5488
5488
  if (r && a)
@@ -5820,7 +5820,7 @@ function zi(e) {
5820
5820
  const t = e.target;
5821
5821
  t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
5822
5822
  }
5823
- const Nt = Symbol("_assign");
5823
+ const Nt = /* @__PURE__ */ Symbol("_assign");
5824
5824
  function Hi(e, t, o) {
5825
5825
  return t && (e = e.trim()), o && (e = $r(e)), e;
5826
5826
  }
@@ -6053,7 +6053,7 @@ function Yd() {
6053
6053
  cd();
6054
6054
  }
6055
6055
  Gd.NODE_ENV !== "production" && Yd();
6056
- const Ns = Symbol("i18n-state");
6056
+ const Ns = /* @__PURE__ */ Symbol("i18n-state");
6057
6057
  function Xd() {
6058
6058
  const e = ne(!0), t = ne(""), o = ne({}), r = ne({}), n = ne({}), i = ne(null), a = (w) => {
6059
6059
  i.value = w;