@ecopages/dev-toolbar 0.2.0-beta.35 → 0.2.0-beta.36

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/README.md CHANGED
@@ -24,6 +24,8 @@ pnpm add -D @ecopages/dev-toolbar
24
24
 
25
25
  During `ecopages dev`, core bundles your configured package to `/_dev_toolbar.js` and injects the dev manifest for the Deps panel. Restart the dev server after toolbar client changes.
26
26
 
27
+ `@ecopages/dev-toolbar` mirrors the core manifest contract locally for browser bundling (`src/api/manifest-contract.ts`); keep it in sync via `manifest-contract.test.ts`.
28
+
27
29
  Disable per project with `devToolbar: { enabled: false }`, or per process with `ECOPAGES_DEV_TOOLBAR=false`.
28
30
 
29
31
  ## Built-in apps
@@ -56,6 +58,7 @@ To replace this reference toolbar:
56
58
  - `src/shell/eco-dev-toolbar.tsx` — Radiant light-DOM host (JSX `render()`, no shadow root); panel positioning is pure CSS
57
59
  - `src/shell/motion.ts` — WAAPI motion for stealth dock reveal only; panel show/hide is CSS
58
60
  - `src/apps/*-panel.tsx` — Radiant JSX panels (navigation, deps, islands, a11y, settings)
59
- - `src/api/` — manifest and app contracts
60
- - `src/apps/` — built-in toolbar apps
61
+ - `src/api/manifest-contract.ts` — browser-local mirror of the core dev manifest contract
62
+ - `src/api/dev-manifest.ts` — internal DOM read/write for `#__ECO_DEV_MANIFEST__`
63
+ - `src/api/types.ts` — toolbar app host contracts
61
64
  - `src/shell/` — custom element host, SVG icons, styles, and `ensureDevToolbarStyles()` (optional CSS override for BYO toolbars)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/dev-toolbar",
3
- "version": "0.2.0-beta.35",
3
+ "version": "0.2.0-beta.36",
4
4
  "description": "Development toolbar for Ecopages",
5
5
  "keywords": [
6
6
  "ecopages",
@@ -22,10 +22,6 @@
22
22
  "types": "./src/api/types.d.ts",
23
23
  "default": "./src/api/types.js"
24
24
  },
25
- "./manifest": {
26
- "types": "./src/api/dev-manifest.d.ts",
27
- "default": "./src/api/dev-manifest.js"
28
- },
29
25
  "./config.ts": {
30
26
  "types": "./src/config.d.ts",
31
27
  "default": "./src/config.js"
@@ -33,10 +29,6 @@
33
29
  "./api.ts": {
34
30
  "types": "./src/api/types.d.ts",
35
31
  "default": "./src/api/types.js"
36
- },
37
- "./manifest.ts": {
38
- "types": "./src/api/dev-manifest.d.ts",
39
- "default": "./src/api/dev-manifest.js"
40
32
  }
41
33
  },
42
34
  "repository": {
@@ -1,24 +1,4 @@
1
- export declare const DEV_MANIFEST_ELEMENT_ID = "__ECO_DEV_MANIFEST__";
2
- export type DevManifestAsset = {
3
- srcUrl?: string;
4
- kind: 'script' | 'stylesheet';
5
- packageRole?: string;
6
- inline?: boolean;
7
- };
8
- export type DevManifestPageBrowserGraph = {
9
- entryAssets: DevManifestAsset[];
10
- chunkAssets: DevManifestAsset[];
11
- };
12
- /**
13
- * Server-serialized development metadata injected into HTML responses.
14
- */
15
- export type EcoDevManifest = {
16
- route: string;
17
- integration?: string;
18
- pageBrowserGraph?: DevManifestPageBrowserGraph;
19
- vendorUrls: string[];
20
- devTransformUrls: string[];
21
- };
1
+ import { type EcoDevManifest } from './manifest-contract.js';
22
2
  /**
23
3
  * Parses `#__ECO_DEV_MANIFEST__` from the active document.
24
4
  *
@@ -1,4 +1,4 @@
1
- export const DEV_MANIFEST_ELEMENT_ID = '__ECO_DEV_MANIFEST__';
1
+ import { DEV_MANIFEST_ELEMENT_ID } from './manifest-contract.js';
2
2
  /**
3
3
  * Parses `#__ECO_DEV_MANIFEST__` from the active document.
4
4
  *
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Browser-local mirror of `@ecopages/core/dev-toolbar/dev-toolbar-manifest-contract`.
3
+ *
4
+ * @remarks Dev-toolbar is browser-bundled separately; Rolldown cannot resolve core
5
+ * package export subpaths from the client entry. Keep in sync with core via
6
+ * `manifest-contract.test.ts`.
7
+ */
8
+ export declare const DEV_MANIFEST_ELEMENT_ID = "__ECO_DEV_MANIFEST__";
9
+ export type DevManifestAsset = {
10
+ srcUrl?: string;
11
+ kind: 'script' | 'stylesheet';
12
+ packageRole?: string;
13
+ inline?: boolean;
14
+ };
15
+ export type DevManifestPageBrowserGraph = {
16
+ entryAssets: DevManifestAsset[];
17
+ chunkAssets: DevManifestAsset[];
18
+ };
19
+ export type EcoDevManifest = {
20
+ route: string;
21
+ integration?: string;
22
+ pageBrowserGraph?: DevManifestPageBrowserGraph;
23
+ vendorUrls: string[];
24
+ devTransformUrls: string[];
25
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Browser-local mirror of `@ecopages/core/dev-toolbar/dev-toolbar-manifest-contract`.
3
+ *
4
+ * @remarks Dev-toolbar is browser-bundled separately; Rolldown cannot resolve core
5
+ * package export subpaths from the client entry. Keep in sync with core via
6
+ * `manifest-contract.test.ts`.
7
+ */
8
+ export const DEV_MANIFEST_ELEMENT_ID = '__ECO_DEV_MANIFEST__';
@@ -1,4 +1,4 @@
1
- import type { EcoDevManifest } from './dev-manifest.js';
1
+ import type { EcoDevManifest } from './manifest-contract.js';
2
2
  export type DevToolbarBadge = {
3
3
  count?: number;
4
4
  severity?: 'info' | 'warning' | 'error';
@@ -1,7 +1,7 @@
1
1
  /** @jsxImportSource @ecopages/jsx */
2
2
  import { RadiantElement } from '@ecopages/radiant';
3
3
  import type { JsxCustomElementAttributes } from '@ecopages/jsx';
4
- import { type EcoDevManifest } from '../api/dev-manifest.js';
4
+ import type { EcoDevManifest } from '../api/manifest-contract.js';
5
5
  import { type NavigationTelemetrySnapshot } from '../runtime/navigation-telemetry.js';
6
6
  export declare class EcoDevToolbarNavigation extends RadiantElement {
7
7
  snapshot: NavigationTelemetrySnapshot | undefined;
@@ -6,7 +6,7 @@ import '../apps/deps-panel.js';
6
6
  import '../apps/islands-panel.js';
7
7
  import '../apps/navigation-panel.js';
8
8
  import '../apps/settings-panel.js';
9
- import { type EcoDevManifest } from '../api/dev-manifest.js';
9
+ import type { EcoDevManifest } from '../api/manifest-contract.js';
10
10
  import type { DevToolbarBadge } from '../api/types.js';
11
11
  import { DEV_TOOLBAR_ELEMENT_NAME } from '../runtime/constants.js';
12
12
  import { type DevToolbarPlacement } from '../runtime/preferences.js';