@cut-workbench/workbench 0.1.0 → 0.3.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/init.d.ts CHANGED
@@ -14,6 +14,7 @@
14
14
  */
15
15
  import { type CutEditorHandle, type CutEventMap } from '@cut-workbench/core/engine';
16
16
  import { type HostBridge, type Project, type SerializedProject, type StoragePort } from '@cut-workbench/core';
17
+ import { type CutWorkbenchToolbarOptions } from './CutWorkbench';
17
18
  import type { WorkbenchConfig } from './context';
18
19
  import type { CutThemeTokens } from './theme-tokens';
19
20
  export interface InitCutWorkbenchOptions {
@@ -37,6 +38,8 @@ export interface InitCutWorkbenchOptions {
37
38
  };
38
39
  /** 是否强制能力探测阻断页 */
39
40
  enforceCapability?: boolean;
41
+ /** 顶栏的局部自定义(品牌 / 工程名 / 状态 / 追加动作 / 文案) */
42
+ toolbar?: CutWorkbenchToolbarOptions;
40
43
  /** 容器 className(控制高度等) */
41
44
  className?: string;
42
45
  /** 是否在初始化后自动保存(每次结构性变更后节流保存) */
@@ -0,0 +1,6 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ // src/lab-disabled.ts
3
+ var LabPage = () => null;
4
+ exports.LabPage = LabPage;
5
+
6
+ //# sourceMappingURL=lab-disabled.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-disabled.cjs","names":[],"sources":["../src/lab-disabled.ts"],"sourcesContent":["/**\n * `@cut-workbench/workbench/lab-disabled`:lab 的构建期空实现。\n *\n * 宿主在 `resolve.alias` 里把 `@cut-workbench/workbench/lab` 指到本文件后:\n * - 主包不会再引用 lab chunk,打包器也就不会产出它;\n * - `@webav/av-recorder` 整个被排除出产物(实验室的录屏卡片是它唯一使用者);\n * - 类型与接口保持不变,宿主代码无需分支。\n *\n * 这是「关掉 lab」唯一可靠的方式:`config.features.lab = false` 只是运行时\n * 开关,打包器看不到它,动态 chunk 照样产出(详见 ./lab.ts 顶部说明)。\n */\nimport type { ComponentType } from 'react'\n\nexport const LabPage: ComponentType = () => null\n"],"mappings":";;AAaA,IAAa,gBAA+B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `@cut-workbench/workbench/lab-disabled`:lab 的构建期空实现。
3
+ *
4
+ * 宿主在 `resolve.alias` 里把 `@cut-workbench/workbench/lab` 指到本文件后:
5
+ * - 主包不会再引用 lab chunk,打包器也就不会产出它;
6
+ * - `@webav/av-recorder` 整个被排除出产物(实验室的录屏卡片是它唯一使用者);
7
+ * - 类型与接口保持不变,宿主代码无需分支。
8
+ *
9
+ * 这是「关掉 lab」唯一可靠的方式:`config.features.lab = false` 只是运行时
10
+ * 开关,打包器看不到它,动态 chunk 照样产出(详见 ./lab.ts 顶部说明)。
11
+ */
12
+ import type { ComponentType } from 'react';
13
+ export declare const LabPage: ComponentType;
@@ -0,0 +1,5 @@
1
+ // src/lab-disabled.ts
2
+ var LabPage = () => null;
3
+ export { LabPage };
4
+
5
+ //# sourceMappingURL=lab-disabled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lab-disabled.js","names":[],"sources":["../src/lab-disabled.ts"],"sourcesContent":["/**\n * `@cut-workbench/workbench/lab-disabled`:lab 的构建期空实现。\n *\n * 宿主在 `resolve.alias` 里把 `@cut-workbench/workbench/lab` 指到本文件后:\n * - 主包不会再引用 lab chunk,打包器也就不会产出它;\n * - `@webav/av-recorder` 整个被排除出产物(实验室的录屏卡片是它唯一使用者);\n * - 类型与接口保持不变,宿主代码无需分支。\n *\n * 这是「关掉 lab」唯一可靠的方式:`config.features.lab = false` 只是运行时\n * 开关,打包器看不到它,动态 chunk 照样产出(详见 ./lab.ts 顶部说明)。\n */\nimport type { ComponentType } from 'react'\n\nexport const LabPage: ComponentType = () => null\n"],"mappings":";AAaA,IAAa,gBAA+B"}