@modern-js/devtools-kit 2.36.0 → 2.37.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.
package/dist/client.d.ts CHANGED
@@ -22,10 +22,15 @@ export declare class PackageDefinition {
22
22
  export declare class AssetDefinition {
23
23
  logo: string;
24
24
  }
25
+ export declare class AnnouncementDefinition {
26
+ src: string;
27
+ fallback: string;
28
+ }
25
29
  export declare class ClientDefinition {
26
30
  name: NameDefinition;
27
31
  packages: PackageDefinition;
28
32
  assets: AssetDefinition;
33
+ announcement: AnnouncementDefinition;
29
34
  }
30
35
  export interface IframeTabView {
31
36
  type: 'iframe';
package/dist/client.js CHANGED
@@ -28,6 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var client_exports = {};
30
30
  __export(client_exports, {
31
+ AnnouncementDefinition: () => AnnouncementDefinition,
31
32
  AssetDefinition: () => AssetDefinition,
32
33
  ClientDefinition: () => ClientDefinition,
33
34
  NameDefinition: () => NameDefinition,
@@ -52,15 +53,23 @@ class AssetDefinition {
52
53
  this.logo = import_logo.default;
53
54
  }
54
55
  }
56
+ class AnnouncementDefinition {
57
+ constructor() {
58
+ this.src = "https://raw.githubusercontent.com/web-infra-dev/modern.js/main/ANNOUNCEMENT.md";
59
+ this.fallback = "https://modernjs.dev/";
60
+ }
61
+ }
55
62
  class ClientDefinition {
56
63
  constructor() {
57
64
  this.name = new NameDefinition();
58
65
  this.packages = new PackageDefinition();
59
66
  this.assets = new AssetDefinition();
67
+ this.announcement = new AnnouncementDefinition();
60
68
  }
61
69
  }
62
70
  // Annotate the CommonJS export names for ESM import in node:
63
71
  0 && (module.exports = {
72
+ AnnouncementDefinition,
64
73
  AssetDefinition,
65
74
  ClientDefinition,
66
75
  NameDefinition,
package/package.json CHANGED
@@ -8,6 +8,9 @@
8
8
  "url": "https://github.com/web-infra-dev/modern.js",
9
9
  "directory": "packages/cli/plugin-tailwind"
10
10
  },
11
+ "files": [
12
+ "dist"
13
+ ],
11
14
  "license": "MIT",
12
15
  "keywords": [
13
16
  "react",
@@ -15,25 +18,38 @@
15
18
  "modern",
16
19
  "modern.js"
17
20
  ],
18
- "version": "2.36.0",
21
+ "version": "2.37.0",
19
22
  "jsnext:source": "./src/index.ts",
20
23
  "types": "./dist/types/index.d.ts",
21
24
  "main": "./dist/index.js",
22
25
  "exports": {
23
26
  ".": {
24
27
  "jsnext:source": "./src/index.ts",
28
+ "types": "./dist/index.d.ts",
25
29
  "default": "./dist/index.js"
26
30
  },
31
+ "./runtime": {
32
+ "jsnext:source": "./src/runtime/index.ts",
33
+ "types": "./dist/runtime/index.d.ts",
34
+ "default": "./dist/runtime/index.js"
35
+ },
27
36
  "./package.json": {
28
37
  "default": "./package.json"
29
38
  }
30
39
  },
40
+ "typesVersions": {
41
+ "*": {
42
+ "runtime": [
43
+ "./dist/runtime/index.d.ts"
44
+ ]
45
+ }
46
+ },
31
47
  "dependencies": {
32
- "@geist-ui/core": "^2.3.8",
48
+ "@radix-ui/themes": "^2.0.0",
33
49
  "ufo": "^1.2.0",
34
50
  "ws": "8.13.0",
35
- "@modern-js/types": "2.36.0",
36
- "@modern-js/utils": "2.36.0"
51
+ "@modern-js/types": "2.37.0",
52
+ "@modern-js/utils": "2.37.0"
37
53
  },
38
54
  "devDependencies": {
39
55
  "@swc/helpers": "0.5.1",
@@ -42,14 +58,14 @@
42
58
  "react": "~18.2.0",
43
59
  "type-fest": "^4.1.0",
44
60
  "typescript": "^5",
45
- "@modern-js/app-tools": "2.36.0",
46
- "@modern-js/builder-rspack-provider": "2.36.0",
47
- "@modern-js/builder-shared": "2.36.0",
48
- "@modern-js/builder-webpack-provider": "2.36.0",
49
- "@modern-js/core": "2.36.0",
50
- "@modern-js/module-tools": "2.36.0",
51
- "@modern-js/types": "2.36.0",
52
- "@scripts/build": "2.36.0"
61
+ "@modern-js/app-tools": "2.37.0",
62
+ "@modern-js/builder-rspack-provider": "2.37.0",
63
+ "@modern-js/builder-shared": "2.37.0",
64
+ "@modern-js/builder-webpack-provider": "2.37.0",
65
+ "@modern-js/core": "2.37.0",
66
+ "@modern-js/module-tools": "2.37.0",
67
+ "@modern-js/types": "2.37.0",
68
+ "@scripts/build": "2.37.0"
53
69
  },
54
70
  "peerDependencies": {
55
71
  "react": "~18.2.0"
@@ -62,7 +78,7 @@
62
78
  },
63
79
  "scripts": {
64
80
  "new": "modern-lib new",
65
- "dev": "SKIP_DTS=true modern-lib build --watch",
81
+ "dev": "modern-lib build --watch",
66
82
  "build": "modern-lib build",
67
83
  "test": "jest --passWithNoTests"
68
84
  }