@intlify/devtools-types 11.4.18 → 12.0.0-alpha.10

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2024 kazuya kawaguchi
3
+ Copyright (c) 2024-present kazuya kawaguchi and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -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.mjs'
1
+ export * from './devtools-types.js'
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @intlify/devtools-types v12.0.0-alpha.10
3
+ * (c) 2016-present kazuya kawaguchi and contributors
4
+ * @license MIT
5
+ **/
package/package.json CHANGED
@@ -1,71 +1,63 @@
1
1
  {
2
2
  "name": "@intlify/devtools-types",
3
- "version": "11.4.18",
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.10",
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"
24
- },
25
- "files": [
26
- "index.js",
27
- "dist"
19
+ "keywords": [
20
+ "devtools",
21
+ "i18n",
22
+ "internationalization",
23
+ "intlify"
28
24
  ],
29
- "main": "index.js",
30
- "module": "dist/devtools-types.mjs",
31
- "types": "dist/devtools-types.d.ts",
32
- "dependencies": {
33
- "@intlify/shared": "11.4.18",
34
- "@intlify/core-base": "11.4.18"
25
+ "homepage": "https://github.com/intlify/vue-i18n/tree/master/packages/devtools-types#readme",
26
+ "publishConfig": {
27
+ "access": "public"
35
28
  },
36
29
  "engines": {
37
30
  "node": ">= 22"
38
31
  },
39
- "buildOptions": {
40
- "name": "IntlifyDevToolsTypes",
41
- "formats": [
42
- "mjs",
43
- "cjs"
44
- ]
45
- },
32
+ "type": "module",
33
+ "sideEffects": false,
34
+ "files": [
35
+ "dist"
36
+ ],
37
+ "module": "dist/devtools-types.js",
46
38
  "exports": {
47
39
  ".": {
48
40
  "types": "./dist/devtools-types.d.ts",
49
- "import": "./dist/devtools-types.mjs",
50
41
  "node": {
51
42
  "import": {
52
- "production": "./dist/devtools-types.prod.cjs",
53
- "development": "./dist/devtools-types.mjs",
54
- "default": "./dist/devtools-types.mjs"
55
- },
56
- "require": {
57
- "production": "./dist/devtools-types.prod.cjs",
58
- "development": "./dist/devtools-types.cjs",
59
- "default": "./index.js"
43
+ "development": "./dist/devtools-types.js",
44
+ "default": "./dist/devtools-types.js"
60
45
  }
61
- }
46
+ },
47
+ "import": "./dist/devtools-types.js"
62
48
  },
63
49
  "./dist/*": "./dist/*",
64
50
  "./package.json": "./package.json"
65
51
  },
66
- "funding": "https://github.com/sponsors/kazupon",
67
- "publishConfig": {
68
- "access": "public"
52
+ "types": "dist/devtools-types.d.ts",
53
+ "dependencies": {
54
+ "@intlify/core-base": "12.0.0-alpha.10",
55
+ "@intlify/shared": "12.0.0-alpha.10"
69
56
  },
70
- "sideEffects": false
57
+ "buildOptions": {
58
+ "name": "IntlifyDevToolsTypes",
59
+ "formats": [
60
+ "mjs"
61
+ ]
62
+ }
71
63
  }
@@ -1,7 +0,0 @@
1
- /*!
2
- * devtools-types v11.4.18
3
- * (c) 2026 kazuya kawaguchi
4
- * Released under the MIT License.
5
- */
6
- 'use strict';
7
-
@@ -1 +0,0 @@
1
- module.exports = require('../dist/devtools-types.cjs')
@@ -1 +0,0 @@
1
- module.exports = require('../dist/devtools-types.prod.cjs')
@@ -1,5 +0,0 @@
1
- /*!
2
- * devtools-types v11.4.18
3
- * (c) 2026 kazuya kawaguchi
4
- * Released under the MIT License.
5
- */
@@ -1,7 +0,0 @@
1
- /*!
2
- * devtools-types v11.4.18
3
- * (c) 2026 kazuya kawaguchi
4
- * Released under the MIT License.
5
- */
6
- 'use strict';
7
-
package/index.js DELETED
@@ -1,7 +0,0 @@
1
- 'use strict'
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./dist/devtools-types.prod.cjs')
5
- } else {
6
- module.exports = require('./dist/devtools-types.cjs')
7
- }