@i18n-micro/devtools-ui 1.0.3 → 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.
@@ -1,5 +1,5 @@
1
- import { I18nDevToolsBridge, TranslationContent } from './interface';
2
1
  import { Locale } from '@i18n-micro/types';
2
+ import { I18nDevToolsBridge, TranslationContent } from './interface';
3
3
  /**
4
4
  * Adapter interface for accessing i18n instance data
5
5
  * Each framework package will implement this adapter for their specific i18n instance
@@ -3,7 +3,7 @@ interface LoaderProps {
3
3
  size?: 'sm' | 'md' | 'lg';
4
4
  }
5
5
  declare const _default: import('vue').DefineComponent<LoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LoaderProps> & Readonly<{}>, {
6
- size: "sm" | "md" | "lg";
7
6
  message: string;
7
+ size: "sm" | "md" | "lg";
8
8
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
9
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { InjectionKey } from 'vue';
2
- import { I18nDevToolsBridge, LocaleData, TranslationContent, ModuleOptions } from '../types';
2
+ import { I18nDevToolsBridge, LocaleData, ModuleOptions, TranslationContent } from '../types';
3
3
  export declare const I18N_STATE_KEY: InjectionKey<ReturnType<typeof createI18nState>>;
4
4
  export declare function createI18nState(): {
5
5
  isLoading: import('vue').Ref<boolean, boolean>;
@@ -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.d.ts CHANGED
@@ -10,10 +10,10 @@ export { I18nDevToolsElement };
10
10
  * This should be called once before using the element
11
11
  */
12
12
  export declare function register(): void;
13
- export type { I18nDevToolsBridge } from './bridge/interface';
14
- export { createBridge } from './bridge/create-bridge';
15
13
  export type { BridgeAdapter, CreateBridgeOptions } from './bridge/create-bridge';
14
+ export { createBridge } from './bridge/create-bridge';
15
+ export type { I18nDevToolsBridge } from './bridge/interface';
16
16
  export { createRpcClient } from './rpc/client';
17
17
  export { setupRpcHost } from './rpc/host';
18
- export type { JsonRpcRequest, JsonRpcResponse, JsonRpcEvent } from './rpc/types';
19
- export type { LocaleData, TranslationContent, JSONValue, TreeNode, } from './types';
18
+ export type { JsonRpcEvent, JsonRpcRequest, JsonRpcResponse } from './rpc/types';
19
+ export type { JSONValue, LocaleData, TranslationContent, TreeNode, } from './types';