@modern-js/devtools-kit 0.0.0-nightly-20230924160547 → 0.0.0-nightly-20230926160605

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/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @modern-js/devtools-kit
2
2
 
3
- ## 0.0.0-nightly-20230924160547
3
+ ## 0.0.0-nightly-20230926160605
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - @modern-js/types@0.0.0-nightly-20230924160547
8
- - @modern-js/utils@0.0.0-nightly-20230924160547
7
+ - @modern-js/types@0.0.0-nightly-20230926160605
8
+ - @modern-js/utils@0.0.0-nightly-20230926160605
@@ -26,4 +26,15 @@ export declare class ClientDefinition {
26
26
  name: NameDefinition;
27
27
  packages: PackageDefinition;
28
28
  assets: AssetDefinition;
29
+ }
30
+ export interface IframeTabView {
31
+ type: 'iframe';
32
+ src: string;
33
+ }
34
+ export type CustomTabView = IframeTabView;
35
+ export interface CustomTab {
36
+ name: string;
37
+ title: string;
38
+ view: CustomTabView;
39
+ icon?: string;
29
40
  }
@@ -0,0 +1 @@
1
+ export declare const ROUTE_BASENAME = "/__devtools";
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -11,16 +15,14 @@ var __copyProps = (to, from, except, desc) => {
11
15
  }
12
16
  return to;
13
17
  };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var types_exports = {};
17
- module.exports = __toCommonJS(types_exports);
18
- __reExport(types_exports, require("./server"), module.exports);
19
- __reExport(types_exports, require("./client"), module.exports);
20
- __reExport(types_exports, require("./mount-point"), module.exports);
19
+ var constants_exports = {};
20
+ __export(constants_exports, {
21
+ ROUTE_BASENAME: () => ROUTE_BASENAME
22
+ });
23
+ module.exports = __toCommonJS(constants_exports);
24
+ const ROUTE_BASENAME = "/__devtools";
21
25
  // Annotate the CommonJS export names for ESM import in node:
22
26
  0 && (module.exports = {
23
- ...require("./server"),
24
- ...require("./client"),
25
- ...require("./mount-point")
27
+ ROUTE_BASENAME
26
28
  });
package/dist/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export * from './types';
2
- export * from './utils';
1
+ export * from './server';
2
+ export * from './client';
3
+ export * from './mount-point';
4
+ export * from './utils';
5
+ export * from './constants';
package/dist/index.js CHANGED
@@ -15,10 +15,16 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
16
  var src_exports = {};
17
17
  module.exports = __toCommonJS(src_exports);
18
- __reExport(src_exports, require("./types"), module.exports);
18
+ __reExport(src_exports, require("./server"), module.exports);
19
+ __reExport(src_exports, require("./client"), module.exports);
20
+ __reExport(src_exports, require("./mount-point"), module.exports);
19
21
  __reExport(src_exports, require("./utils"), module.exports);
22
+ __reExport(src_exports, require("./constants"), module.exports);
20
23
  // Annotate the CommonJS export names for ESM import in node:
21
24
  0 && (module.exports = {
22
- ...require("./types"),
23
- ...require("./utils")
25
+ ...require("./server"),
26
+ ...require("./client"),
27
+ ...require("./mount-point"),
28
+ ...require("./utils"),
29
+ ...require("./constants")
24
30
  });
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ShortenAlias } from './types';
1
+ import { ShortenAlias } from './client';
2
2
  export declare function applyShortenAliases(resource: string, aliases?: ShortenAlias[]): string;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20230924160547",
18
+ "version": "0.0.0-nightly-20230926160605",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/index.js",
@@ -32,8 +32,8 @@
32
32
  "@geist-ui/core": "^2.3.8",
33
33
  "ufo": "^1.2.0",
34
34
  "ws": "8.13.0",
35
- "@modern-js/types": "0.0.0-nightly-20230924160547",
36
- "@modern-js/utils": "0.0.0-nightly-20230924160547"
35
+ "@modern-js/types": "0.0.0-nightly-20230926160605",
36
+ "@modern-js/utils": "0.0.0-nightly-20230926160605"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@swc/helpers": "0.5.1",
@@ -42,14 +42,14 @@
42
42
  "react": "~18.2.0",
43
43
  "type-fest": "^4.1.0",
44
44
  "typescript": "^5",
45
- "@modern-js/app-tools": "0.0.0-nightly-20230924160547",
46
- "@modern-js/builder-rspack-provider": "0.0.0-nightly-20230924160547",
47
- "@modern-js/builder-shared": "0.0.0-nightly-20230924160547",
48
- "@modern-js/builder-webpack-provider": "0.0.0-nightly-20230924160547",
49
- "@modern-js/core": "0.0.0-nightly-20230924160547",
50
- "@modern-js/module-tools": "0.0.0-nightly-20230924160547",
51
- "@modern-js/types": "0.0.0-nightly-20230924160547",
52
- "@scripts/build": "0.0.0-nightly-20230924160547"
45
+ "@modern-js/app-tools": "0.0.0-nightly-20230926160605",
46
+ "@modern-js/builder-rspack-provider": "0.0.0-nightly-20230926160605",
47
+ "@modern-js/builder-shared": "0.0.0-nightly-20230926160605",
48
+ "@modern-js/builder-webpack-provider": "0.0.0-nightly-20230926160605",
49
+ "@modern-js/core": "0.0.0-nightly-20230926160605",
50
+ "@modern-js/module-tools": "0.0.0-nightly-20230926160605",
51
+ "@modern-js/types": "0.0.0-nightly-20230926160605",
52
+ "@scripts/build": "0.0.0-nightly-20230926160605"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "react": "~18.2.0"
@@ -1,14 +0,0 @@
1
- export interface IframeTabView {
2
- type: 'iframe';
3
- src: string;
4
- }
5
- export type CustomTabView = IframeTabView;
6
- export interface CustomTab {
7
- name: string;
8
- title: string;
9
- view: CustomTabView;
10
- icon?: string;
11
- }
12
- export * from './server';
13
- export * from './client';
14
- export * from './mount-point';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes