@intlify/devtools-types 12.0.0-alpha.1 → 12.0.0-alpha.11

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,101 +1,54 @@
1
- import type { CoreMissingType } from '@intlify/core-base';
2
- import type { Emittable } from '@intlify/shared';
3
- import type { Locale } from '@intlify/core-base';
4
- import type { MessageFunction } from '@intlify/core-base';
5
- import type { Path } from '@intlify/core-base';
6
- import type { PathValue } from '@intlify/core-base';
7
- import type { ResourceNode } from '@intlify/core-base';
8
-
9
- export declare type AdditionalPayloads = {
10
- meta?: Record<string, unknown>;
11
- };
12
-
13
- export declare type IntlifyDevToolsEmitter = Emittable<IntlifyDevToolsEmitterHooks>;
14
-
15
- export declare type IntlifyDevToolsEmitterHooks = {
16
- 'i18n:init': IntlifyDevToolsHookPayloads['i18n:init'];
17
- 'function:translate': IntlifyDevToolsHookPayloads['function:translate'];
18
- };
19
-
20
- export declare type IntlifyDevToolsHookPayloads = {
21
- 'i18n:init': {
22
- timestamp: number;
23
- i18n: unknown;
24
- version: string;
25
- } & AdditionalPayloads;
26
- 'function:translate': {
27
- timestamp: number;
28
- message: string | number;
29
- key: string;
30
- locale: string;
31
- format?: string;
32
- } & AdditionalPayloads;
33
- };
34
-
35
- export declare type IntlifyDevToolsHooks = 'i18n:init' | 'function:translate';
36
-
37
- export declare interface IntlifyRecord {
38
- id: number;
39
- i18n: unknown;
40
- version: string;
41
- types: Record<string, string | symbol>;
42
- }
43
-
44
- export declare type VueDevToolsEmitter = Emittable<VueDevToolsEmitterEvents>;
45
-
46
- export declare type VueDevToolsEmitterEvents = {
47
- 'compile-error': VueDevToolsTimelineEventPayloads['compile-error'];
48
- missing: VueDevToolsTimelineEventPayloads['missing'];
49
- fallback: VueDevToolsTimelineEventPayloads['fallback'];
50
- 'message-resolve': VueDevToolsTimelineEventPayloads['message-resolve'];
51
- 'message-compilation': VueDevToolsTimelineEventPayloads['message-compilation'];
52
- 'message-evaluation': VueDevToolsTimelineEventPayloads['message-evaluation'];
53
- };
54
-
55
- export declare type VueDevToolsIDs = 'vue-devtools-plugin-vue-i18n' | 'vue-i18n-resource-inspector' | 'vue-i18n-timeline';
56
-
57
- export declare type VueDevToolsTimelineEventPayloads = {
58
- 'compile-error': {
59
- message: string;
60
- error: string;
61
- start?: number;
62
- end?: number;
63
- groupId?: string;
64
- };
65
- missing: {
66
- locale: Locale;
67
- key: Path;
68
- type: CoreMissingType;
69
- groupId?: string;
70
- };
71
- fallback: {
72
- key: Path;
73
- type: CoreMissingType;
74
- from?: Locale;
75
- to: Locale | 'global';
76
- groupId?: string;
77
- };
78
- 'message-resolve': {
79
- type: 'message-resolve';
80
- key: Path;
81
- message: PathValue;
82
- time: number;
83
- groupId?: string;
84
- };
85
- 'message-compilation': {
86
- type: 'message-compilation';
87
- message: string | ResourceNode | MessageFunction;
88
- time: number;
89
- groupId?: string;
90
- };
91
- 'message-evaluation': {
92
- type: 'message-evaluation';
93
- value: unknown;
94
- time: number;
95
- groupId?: string;
96
- };
97
- };
98
-
99
- export declare type VueDevToolsTimelineEvents = 'compile-error' | 'missing' | 'fallback' | 'message-resolve' | 'message-compilation' | 'message-evaluation';
100
-
101
- export { }
1
+ import { CoreMissingType, Locale, MessageFunction, Path, PathValue, ResourceNode } from "@intlify/core-base";
2
+ import { Emittable } from "@intlify/shared";
3
+ export type VueDevToolsIDs = "vue-devtools-plugin-vue-i18n" | "vue-i18n-resource-inspector" | "vue-i18n-timeline";
4
+ export type VueDevToolsTimelineEvents = "compile-error" | "missing" | "fallback" | "message-resolve" | "message-compilation" | "message-evaluation";
5
+ export type VueDevToolsTimelineEventPayloads = {
6
+ "compile-error": {
7
+ message: string;
8
+ error: string;
9
+ start?: number;
10
+ end?: number;
11
+ groupId?: string;
12
+ };
13
+ missing: {
14
+ locale: Locale;
15
+ key: Path;
16
+ type: CoreMissingType;
17
+ groupId?: string;
18
+ };
19
+ fallback: {
20
+ key: Path;
21
+ type: CoreMissingType;
22
+ from?: Locale;
23
+ to: Locale | "global";
24
+ groupId?: string;
25
+ };
26
+ "message-resolve": {
27
+ type: "message-resolve";
28
+ key: Path;
29
+ message: PathValue;
30
+ time: number;
31
+ groupId?: string;
32
+ };
33
+ "message-compilation": {
34
+ type: "message-compilation";
35
+ message: string | ResourceNode | MessageFunction;
36
+ time: number;
37
+ groupId?: string;
38
+ };
39
+ "message-evaluation": {
40
+ type: "message-evaluation";
41
+ value: unknown;
42
+ time: number;
43
+ groupId?: string;
44
+ };
45
+ };
46
+ export type VueDevToolsEmitterEvents = {
47
+ "compile-error": VueDevToolsTimelineEventPayloads["compile-error"];
48
+ missing: VueDevToolsTimelineEventPayloads["missing"];
49
+ fallback: VueDevToolsTimelineEventPayloads["fallback"];
50
+ "message-resolve": VueDevToolsTimelineEventPayloads["message-resolve"];
51
+ "message-compilation": VueDevToolsTimelineEventPayloads["message-compilation"];
52
+ "message-evaluation": VueDevToolsTimelineEventPayloads["message-evaluation"];
53
+ };
54
+ export type VueDevToolsEmitter = Emittable<VueDevToolsEmitterEvents>;
@@ -1 +1 @@
1
- export * from '../dist/devtools-types.js'
1
+ export * from './devtools-types.js'
@@ -1,5 +1,5 @@
1
- /*!
2
- * devtools-types v12.0.0-alpha.1
3
- * (c) 2016-present kazuya kawaguchi and contributors
4
- * Released under the MIT License.
5
- */
1
+ /**
2
+ * @intlify/devtools-types v12.0.0-alpha.11
3
+ * (c) 2016-present kazuya kawaguchi and contributors
4
+ * @license MIT
5
+ **/
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
1
  {
2
2
  "name": "@intlify/devtools-types",
3
- "version": "12.0.0-alpha.1",
4
3
  "description": "@intlify/devtools-types",
5
- "keywords": [
6
- "devtools",
7
- "i18n",
8
- "internationalization",
9
- "intlify"
10
- ],
11
- "license": "MIT",
4
+ "version": "12.0.0-alpha.11",
12
5
  "author": {
13
6
  "name": "kazuya kawaguchi",
14
7
  "email": "kawakazu80@gmail.com"
15
8
  },
16
- "homepage": "https://github.com/intlify/vue-i18n/tree/master/packages/devtools-types#readme",
9
+ "license": "MIT",
10
+ "funding": "https://github.com/sponsors/kazupon",
11
+ "bugs": {
12
+ "url": "https://github.com/intlify/vue-i18n/issues"
13
+ },
17
14
  "repository": {
18
15
  "type": "git",
19
16
  "url": "git+https://github.com/intlify/vue-i18n.git",
20
17
  "directory": "packages/devtools-types"
21
18
  },
22
- "bugs": {
23
- "url": "https://github.com/intlify/vue-i18n/issues"
19
+ "keywords": [
20
+ "devtools",
21
+ "i18n",
22
+ "internationalization",
23
+ "intlify"
24
+ ],
25
+ "homepage": "https://github.com/intlify/vue-i18n/tree/master/packages/devtools-types#readme",
26
+ "publishConfig": {
27
+ "access": "public"
24
28
  },
29
+ "engines": {
30
+ "node": ">= 22"
31
+ },
32
+ "type": "module",
33
+ "sideEffects": false,
25
34
  "files": [
26
35
  "dist"
27
36
  ],
28
37
  "module": "dist/devtools-types.js",
29
- "types": "dist/devtools-types.d.ts",
30
- "dependencies": {
31
- "@intlify/core-base": "12.0.0-alpha.1",
32
- "@intlify/shared": "12.0.0-alpha.1"
33
- },
34
- "engines": {
35
- "node": ">= 16"
36
- },
37
- "buildOptions": {
38
- "name": "IntlifyDevToolsTypes",
39
- "formats": [
40
- "mjs"
41
- ]
42
- },
43
38
  "exports": {
44
39
  ".": {
45
40
  "types": "./dist/devtools-types.d.ts",
46
- "import": "./dist/devtools-types.js",
47
41
  "node": {
48
42
  "import": {
49
- "production": "./dist/devtools-types.prod.js",
50
43
  "development": "./dist/devtools-types.js",
51
44
  "default": "./dist/devtools-types.js"
52
45
  }
53
- }
46
+ },
47
+ "import": "./dist/devtools-types.js"
54
48
  },
55
49
  "./dist/*": "./dist/*",
56
50
  "./package.json": "./package.json"
57
51
  },
58
- "funding": "https://github.com/sponsors/kazupon",
59
- "publishConfig": {
60
- "access": "public"
52
+ "types": "dist/devtools-types.d.ts",
53
+ "dependencies": {
54
+ "@intlify/core-base": "12.0.0-alpha.11",
55
+ "@intlify/shared": "12.0.0-alpha.11"
61
56
  },
62
- "sideEffects": false
57
+ "buildOptions": {
58
+ "name": "IntlifyDevToolsTypes",
59
+ "formats": [
60
+ "mjs"
61
+ ]
62
+ }
63
63
  }