@modern-js/devtools-kit 2.35.1 → 2.36.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.
@@ -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
  }
package/dist/client.js ADDED
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var client_exports = {};
30
+ __export(client_exports, {
31
+ AssetDefinition: () => AssetDefinition,
32
+ ClientDefinition: () => ClientDefinition,
33
+ NameDefinition: () => NameDefinition,
34
+ PackageDefinition: () => PackageDefinition
35
+ });
36
+ module.exports = __toCommonJS(client_exports);
37
+ var import_logo = __toESM(require("./logo"));
38
+ class NameDefinition {
39
+ constructor() {
40
+ this.formalName = "Modern.js";
41
+ this.casualName = "modern.js";
42
+ this.prefixName = "_modern_js";
43
+ }
44
+ }
45
+ class PackageDefinition {
46
+ constructor() {
47
+ this.appTools = "@modern-js/app-tools";
48
+ }
49
+ }
50
+ class AssetDefinition {
51
+ constructor() {
52
+ this.logo = import_logo.default;
53
+ }
54
+ }
55
+ class ClientDefinition {
56
+ constructor() {
57
+ this.name = new NameDefinition();
58
+ this.packages = new PackageDefinition();
59
+ this.assets = new AssetDefinition();
60
+ }
61
+ }
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ AssetDefinition,
65
+ ClientDefinition,
66
+ NameDefinition,
67
+ PackageDefinition
68
+ });
@@ -0,0 +1 @@
1
+ export declare const ROUTE_BASENAME = "/__devtools";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
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
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
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";
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ ROUTE_BASENAME
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
@@ -1,7 +1,30 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var src_exports = {};
17
+ module.exports = __toCommonJS(src_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);
21
+ __reExport(src_exports, require("./utils"), module.exports);
22
+ __reExport(src_exports, require("./constants"), module.exports);
23
+ // Annotate the CommonJS export names for ESM import in node:
24
+ 0 && (module.exports = {
25
+ ...require("./server"),
26
+ ...require("./client"),
27
+ ...require("./mount-point"),
28
+ ...require("./utils"),
29
+ ...require("./constants")
4
30
  });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./types"), exports);
7
- _export_star._(require("./utils"), exports);
@@ -1,12 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return _default;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
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
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
15
  }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var logo_exports = {};
20
+ __export(logo_exports, {
21
+ default: () => logo_default
10
22
  });
23
+ module.exports = __toCommonJS(logo_exports);
11
24
  const encoded = `PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzMiIHZpZXdCb3g9IjAgMCA0NSAzMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMzEzOjUxNDkpIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTguODIwNzcgMjAuMjg2OUM3Ljg0NzU5IDE3LjE1NzEgNy45NjgyNiAxMy43ODk0IDkuMTYyOTggMTAu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NTYgNi41NjM2NyA2Ljk1ODU1IDYuNjY1NDYgNy4wNjA2M0M2Ljc2NzI2IDcuMTYyNyA2Ljg0NzkyIDcuMjgzODYgNi45MDI4MSA3LjQxNzE1QzYuOTU3NzEgNy41NTA0NSA2Ljk4NTc3IDcuNjkzMjcgNi45ODUzOCA3LjgzNzQzWiIgZmlsbD0iIzRFQ0FGRiIvPjwvZz48L3N2Zz4=`;
12
- const _default = `data:image/svg+xml;base64,${encoded}`;
25
+ var logo_default = `data:image/svg+xml;base64,${encoded}`;
@@ -1,8 +1,7 @@
1
1
  export interface MountPointFunctions {
2
2
  getLocation: () => string;
3
3
  }
4
- export interface SetupClientOptions {
4
+ export interface SetupClientOptions extends Record<string, any> {
5
5
  endpoint?: string;
6
- version?: string | boolean;
7
6
  dataSource?: string;
8
7
  }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var mount_point_exports = {};
16
+ module.exports = __toCommonJS(mount_point_exports);
package/dist/server.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var server_exports = {};
16
+ module.exports = __toCommonJS(server_exports);
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/dist/utils.js CHANGED
@@ -1,13 +1,26 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "applyShortenAliases", {
6
- enumerable: true,
7
- get: function() {
8
- return applyShortenAliases;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
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
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
15
  }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var utils_exports = {};
20
+ __export(utils_exports, {
21
+ applyShortenAliases: () => applyShortenAliases
10
22
  });
23
+ module.exports = __toCommonJS(utils_exports);
11
24
  function applyShortenAliases(resource, aliases) {
12
25
  if (!aliases)
13
26
  return resource;
@@ -17,3 +30,7 @@ function applyShortenAliases(resource, aliases) {
17
30
  }
18
31
  return ret;
19
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ applyShortenAliases
36
+ });
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.35.1",
18
+ "version": "2.36.0",
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": "2.35.1",
36
- "@modern-js/utils": "2.35.1"
35
+ "@modern-js/types": "2.36.0",
36
+ "@modern-js/utils": "2.36.0"
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": "2.35.1",
46
- "@modern-js/builder-rspack-provider": "2.35.1",
47
- "@modern-js/builder-shared": "2.35.1",
48
- "@modern-js/builder-webpack-provider": "2.35.1",
49
- "@modern-js/core": "2.35.1",
50
- "@modern-js/module-tools": "2.35.1",
51
- "@modern-js/types": "2.35.1",
52
- "@scripts/build": "2.35.1"
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"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "react": "~18.2.0"
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for (var name in all)
7
- Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- NameDefinition: function() {
14
- return NameDefinition;
15
- },
16
- PackageDefinition: function() {
17
- return PackageDefinition;
18
- },
19
- AssetDefinition: function() {
20
- return AssetDefinition;
21
- },
22
- ClientDefinition: function() {
23
- return ClientDefinition;
24
- }
25
- });
26
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
27
- const _logo = /* @__PURE__ */ _interop_require_default._(require("./logo"));
28
- class NameDefinition {
29
- constructor() {
30
- this.formalName = "Modern.js";
31
- this.casualName = "modern.js";
32
- this.prefixName = "_modern_js";
33
- }
34
- }
35
- class PackageDefinition {
36
- constructor() {
37
- this.appTools = "@modern-js/app-tools";
38
- }
39
- }
40
- class AssetDefinition {
41
- constructor() {
42
- this.logo = _logo.default;
43
- }
44
- }
45
- class ClientDefinition {
46
- constructor() {
47
- this.name = new NameDefinition();
48
- this.packages = new PackageDefinition();
49
- this.assets = new AssetDefinition();
50
- }
51
- }
@@ -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';
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- const _export_star = require("@swc/helpers/_/_export_star");
6
- _export_star._(require("./server"), exports);
7
- _export_star._(require("./client"), exports);
8
- _export_star._(require("./mount-point"), exports);
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
File without changes
File without changes