@eworkbase/sdk 0.4.3 → 0.8.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/index.d.ts +2 -2
- package/dist/index.js +33 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/{types-BYBaqYve.d.ts → types-DjPBTfWP.d.ts} +3 -1
- package/dist/{types-npalCBRO.d.ts → types-DoDWh0mS.d.ts} +63 -4
- package/dist/ui/index.css +174 -66
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/markdown-links.d.ts +1 -1
- package/dist/ui/theme.css +43 -6
- package/dist/ui/theme.d.ts +4 -4
- package/dist/ui/theme.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as executionLogRecordSchema, i as executionLogEntrySchema, n as ExecutionLogEntryKind, r as ExecutionLogRecord, t as ExecutionLogEntry } from "./ExecutionLog.dto-ig9GUWhK.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as PluginViewDefinition, A as PluginLifecycleDispatchResult, At as PluginTaskResult, B as PluginProcessOutputMode, Bt as RoleToolEnvironment, C as PluginExecutionEvidence, Ct as PluginPromptQuestion, D as PluginHookId, Dt as PluginStoreApi, E as PluginFileChange, Et as PluginStatusCatalogEntry, F as PluginLogger, Ft as PluginViewCatalogEntry, G as PluginRepositoryStatus, Gt as roleToolsProposalSchema, H as PluginProcessRunOptions, Ht as RoleToolsProposal, I as PluginOverviewCardData, It as PluginWorkflowContribution, J as PluginSharedChanges, K as PluginSetupHooks, L as PluginOverviewCardDefinition, Lt as PluginWorkflowOutput, M as PluginLifecycleOutcome, Mt as PluginToastApi, N as PluginLifecyclePolicy, Nt as PluginToastLevel, O as PluginHookResult, Ot as PluginSystemContextService, P as PluginLifecycleStatus, Pt as PluginToastOptions, Q as PluginViewContribution, R as PluginOverviewCardStatus, Rt as workflowContributionSchema, S as PluginDisposable, St as PluginPromptChoice, T as PluginExecutionStatus, Tt as PluginPromptViewRequest, U as PluginProject, Ut as roleToolEnvironmentSchema, V as PluginProcessResult, Vt as RoleToolsApplied, W as PluginRepository, Wt as roleToolsAppliedSchema, X as PluginStatusDefinition, Y as PluginStatusContribution, Z as PluginToolContribution, _ as PluginCommandOption, _t as PluginLogEntry, a as PluginCapabilityReference, at as PluginAgentContextCatalogEntry, b as PluginContextExposure, bt as PluginLogService, c as PluginCommandCategory, ct as PluginCapabilityCommandRequest, d as PluginCommandDefinition, dt as PluginColoredMessage, et as PluginViewLayout, f as PluginCommandDetails, ft as PluginCommandCatalogEntry, g as PluginCommandLogPolicy, gt as PluginInteractiveLogger, h as PluginCommandExecutionResult, ht as PluginHostServices, i as PluginCapabilityKind, it as WorkbasePluginDefinition, j as PluginLifecycleHook, jt as PluginTaskService, k as PluginInvocationContext, kt as PluginTaskDescriptor, l as PluginCommandContext, lt as PluginCapabilityResolveRequest, m as PluginCommandExecutionMode, mt as PluginExecutionService, n as PluginAgentContextDefinition, nt as PluginViewRequest, o as PluginCardAction, ot as PluginAgentPolicy, p as PluginCommandEffect, pt as PluginConfigApi, q as PluginSharedChangeKind, r as PluginAgentScope, rt as PluginWorkspace, s as PluginCommandArgument, st as PluginCapabilityCatalog, t as PluginAgentContextContribution, tt as PluginViewMethod, u as PluginCommandContribution, ut as PluginCapabilityService, v as PluginCommandTransaction, vt as PluginLogQueryRequest, w as PluginExecutionSnapshot, wt as PluginPromptType, x as PluginContributionSnapshot, xt as PluginPromptApi, y as PluginContext, yt as PluginLogQueryResult, z as PluginProcessApi, zt as PluginToolsService } from "./types-DoDWh0mS.js";
|
|
3
3
|
export * from "zod";
|
|
4
4
|
//#region src/definition.d.ts
|
|
5
5
|
export declare const PLUGIN_API_VERSION = 2;
|
|
@@ -7,4 +7,4 @@ type DefinedWorkbasePlugin = Readonly<WorkbasePluginDefinition>;
|
|
|
7
7
|
export declare function definePlugin(definition: WorkbasePluginDefinition): DefinedWorkbasePlugin;
|
|
8
8
|
export declare function isDefinedPlugin(value: unknown): value is DefinedWorkbasePlugin;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { type DefinedWorkbasePlugin, type ExecutionLogEntry, ExecutionLogEntryKind, type ExecutionLogRecord, type PluginAgentContextCatalogEntry, type PluginAgentContextContribution, type PluginAgentContextDefinition, type PluginAgentPolicy, PluginAgentScope, type PluginCapabilityCatalog, type PluginCapabilityCommandRequest, PluginCapabilityKind, type PluginCapabilityReference, type PluginCapabilityResolveRequest, type PluginCapabilityService, type PluginCardAction, type PluginColoredMessage, type PluginCommandArgument, type PluginCommandCatalogEntry, PluginCommandCategory, type PluginCommandContext, type PluginCommandContribution, type PluginCommandDefinition, type PluginCommandDetails, PluginCommandEffect, PluginCommandExecutionMode, type PluginCommandExecutionResult, type PluginCommandOption, PluginCommandTransaction, type PluginConfigApi, type PluginContext, PluginContextExposure, type PluginContributionSnapshot, type PluginDisposable, type PluginExecutionEvidence, type PluginExecutionService, type PluginExecutionSnapshot, PluginExecutionStatus, type PluginFileChange, PluginHookId, type PluginHookResult, type PluginHostServices, type PluginInteractiveLogger, type PluginInvocationContext, type PluginLifecycleDispatchResult, type PluginLifecycleHook, type PluginLifecycleOutcome, PluginLifecyclePolicy, PluginLifecycleStatus, type PluginLogEntry, type PluginLogQueryRequest, type PluginLogQueryResult, type PluginLogService, type PluginLogger, type PluginProcessApi, PluginProcessOutputMode, type PluginProcessResult, type PluginProcessRunOptions, type PluginProject, type PluginPromptApi, type PluginPromptChoice, type PluginPromptQuestion, type PluginPromptType, type PluginPromptViewRequest, type PluginRepository, PluginRepositoryStatus, type PluginSetupHooks, PluginSharedChangeKind, type PluginSharedChanges, type PluginStatusCatalogEntry, type PluginStatusContribution, type PluginStatusDefinition, type PluginStoreApi, type PluginSystemContextService, type PluginTaskDescriptor, type PluginTaskResult, type PluginTaskService, type PluginToastApi, type PluginToastLevel, type PluginToastOptions, type PluginToolContribution, PluginToolsService, type PluginViewCatalogEntry, type PluginViewContribution, type PluginViewDefinition, PluginViewLayout, PluginViewMethod, type PluginViewRequest, type PluginWorkspace, RoleToolEnvironment, RoleToolsApplied, RoleToolsProposal, type WorkbasePluginDefinition, executionLogEntrySchema, executionLogRecordSchema, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema };
|
|
10
|
+
export { type DefinedWorkbasePlugin, type ExecutionLogEntry, ExecutionLogEntryKind, type ExecutionLogRecord, type PluginAgentContextCatalogEntry, type PluginAgentContextContribution, type PluginAgentContextDefinition, type PluginAgentPolicy, PluginAgentScope, type PluginCapabilityCatalog, type PluginCapabilityCommandRequest, PluginCapabilityKind, type PluginCapabilityReference, type PluginCapabilityResolveRequest, type PluginCapabilityService, type PluginCardAction, type PluginColoredMessage, type PluginCommandArgument, type PluginCommandCatalogEntry, PluginCommandCategory, type PluginCommandContext, type PluginCommandContribution, type PluginCommandDefinition, type PluginCommandDetails, PluginCommandEffect, PluginCommandExecutionMode, type PluginCommandExecutionResult, PluginCommandLogPolicy, type PluginCommandOption, PluginCommandTransaction, type PluginConfigApi, type PluginContext, PluginContextExposure, type PluginContributionSnapshot, type PluginDisposable, type PluginExecutionEvidence, type PluginExecutionService, type PluginExecutionSnapshot, PluginExecutionStatus, type PluginFileChange, PluginHookId, type PluginHookResult, type PluginHostServices, type PluginInteractiveLogger, type PluginInvocationContext, type PluginLifecycleDispatchResult, type PluginLifecycleHook, type PluginLifecycleOutcome, PluginLifecyclePolicy, PluginLifecycleStatus, type PluginLogEntry, type PluginLogQueryRequest, type PluginLogQueryResult, type PluginLogService, type PluginLogger, type PluginOverviewCardData, type PluginOverviewCardDefinition, type PluginOverviewCardStatus, type PluginProcessApi, PluginProcessOutputMode, type PluginProcessResult, type PluginProcessRunOptions, type PluginProject, type PluginPromptApi, type PluginPromptChoice, type PluginPromptQuestion, type PluginPromptType, type PluginPromptViewRequest, type PluginRepository, PluginRepositoryStatus, type PluginSetupHooks, PluginSharedChangeKind, type PluginSharedChanges, type PluginStatusCatalogEntry, type PluginStatusContribution, type PluginStatusDefinition, type PluginStoreApi, type PluginSystemContextService, type PluginTaskDescriptor, type PluginTaskResult, type PluginTaskService, type PluginToastApi, type PluginToastLevel, type PluginToastOptions, type PluginToolContribution, PluginToolsService, type PluginViewCatalogEntry, type PluginViewContribution, type PluginViewDefinition, PluginViewLayout, PluginViewMethod, type PluginViewRequest, type PluginWorkflowContribution, type PluginWorkflowOutput, type PluginWorkspace, RoleToolEnvironment, RoleToolsApplied, RoleToolsProposal, type WorkbasePluginDefinition, executionLogEntrySchema, executionLogRecordSchema, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema, workflowContributionSchema };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,11 @@ let PluginCommandEffect = /* @__PURE__ */ function(PluginCommandEffect) {
|
|
|
70
70
|
PluginCommandEffect["LongRunning"] = "longRunning";
|
|
71
71
|
return PluginCommandEffect;
|
|
72
72
|
}({});
|
|
73
|
+
let PluginCommandLogPolicy = /* @__PURE__ */ function(PluginCommandLogPolicy) {
|
|
74
|
+
PluginCommandLogPolicy["Always"] = "always";
|
|
75
|
+
PluginCommandLogPolicy["OnIssue"] = "onIssue";
|
|
76
|
+
return PluginCommandLogPolicy;
|
|
77
|
+
}({});
|
|
73
78
|
let PluginCommandTransaction = /* @__PURE__ */ function(PluginCommandTransaction) {
|
|
74
79
|
PluginCommandTransaction["None"] = "none";
|
|
75
80
|
PluginCommandTransaction["ProjectMutation"] = "projectMutation";
|
|
@@ -125,6 +130,7 @@ let PluginContextExposure = /* @__PURE__ */ function(PluginContextExposure) {
|
|
|
125
130
|
}({});
|
|
126
131
|
let PluginViewMethod = /* @__PURE__ */ function(PluginViewMethod) {
|
|
127
132
|
PluginViewMethod["CardActions"] = "workbase.cardActions";
|
|
133
|
+
PluginViewMethod["OverviewCard"] = "workbase.overviewCard";
|
|
128
134
|
return PluginViewMethod;
|
|
129
135
|
}({});
|
|
130
136
|
//#endregion
|
|
@@ -293,4 +299,30 @@ const executionLogRecordSchema = z.object({
|
|
|
293
299
|
context: executionContextSchema.optional()
|
|
294
300
|
});
|
|
295
301
|
//#endregion
|
|
296
|
-
|
|
302
|
+
//#region src/WorkflowContribution.dto.ts
|
|
303
|
+
/** Serializable opt-in for workflow nodes and the result fields a condition may read. */
|
|
304
|
+
const name = z.string().trim().min(1).max(120);
|
|
305
|
+
const fieldKey = z.string().regex(/^[A-Za-z][A-Za-z0-9_]{0,63}$/).refine((key) => ![
|
|
306
|
+
"constructor",
|
|
307
|
+
"prototype",
|
|
308
|
+
"__proto__"
|
|
309
|
+
].includes(key));
|
|
310
|
+
const outputField = z.discriminatedUnion("type", [
|
|
311
|
+
z.object({
|
|
312
|
+
type: z.literal("boolean"),
|
|
313
|
+
label: name
|
|
314
|
+
}).strict(),
|
|
315
|
+
z.object({
|
|
316
|
+
type: z.literal("number"),
|
|
317
|
+
label: name,
|
|
318
|
+
unit: name.optional()
|
|
319
|
+
}).strict(),
|
|
320
|
+
z.object({
|
|
321
|
+
type: z.literal("enum"),
|
|
322
|
+
label: name,
|
|
323
|
+
values: z.array(name).min(1).max(64)
|
|
324
|
+
}).strict()
|
|
325
|
+
]);
|
|
326
|
+
const workflowContributionSchema = z.union([z.literal(true), z.object({ outputs: z.record(fieldKey, outputField).refine((fields) => Object.keys(fields).length <= 32) }).strict()]);
|
|
327
|
+
//#endregion
|
|
328
|
+
export { ExecutionLogEntryKind, PLUGIN_API_VERSION, PluginAgentScope, PluginCapabilityKind, PluginCommandCategory, PluginCommandEffect, PluginCommandExecutionMode, PluginCommandLogPolicy, PluginCommandTransaction, PluginContextExposure, PluginExecutionStatus, PluginHookId, PluginLifecyclePolicy, PluginLifecycleStatus, PluginProcessOutputMode, PluginRepositoryStatus, PluginSharedChangeKind, PluginViewLayout, PluginViewMethod, definePlugin, executionLogEntrySchema, executionLogRecordSchema, isDefinedPlugin, roleToolEnvironmentSchema, roleToolsAppliedSchema, roleToolsProposalSchema, workflowContributionSchema };
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as PluginCommandExecutionResult, w as PluginExecutionSnapshot } from "./types-DoDWh0mS.js";
|
|
2
2
|
//#region src/ui/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Browser authoring API and transport contracts for Workbase plugin views.
|
|
@@ -14,6 +14,8 @@ interface PluginUiViewIdentity extends PluginUiContextIdentity {
|
|
|
14
14
|
readonly title: string;
|
|
15
15
|
}
|
|
16
16
|
interface PluginUiInitializationPayload {
|
|
17
|
+
/** Accepted configuration for a view that refreshes in place. */
|
|
18
|
+
readonly configurationRevision?: string;
|
|
17
19
|
/** Changes when the workspace is prepared again; route changes retain the same generation. */
|
|
18
20
|
readonly activationGeneration?: number;
|
|
19
21
|
readonly locale: string;
|
|
@@ -99,6 +99,36 @@ interface PluginToolsService {
|
|
|
99
99
|
readonly applyRoleTools: (proposalId: string) => Promise<RoleToolsApplied>;
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region src/WorkflowContribution.dto.d.ts
|
|
103
|
+
declare const outputField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"boolean">;
|
|
105
|
+
label: z.ZodString;
|
|
106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<"number">;
|
|
108
|
+
label: z.ZodString;
|
|
109
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
type: z.ZodLiteral<"enum">;
|
|
112
|
+
label: z.ZodString;
|
|
113
|
+
values: z.ZodArray<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>], "type">;
|
|
115
|
+
declare const workflowContributionSchema: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
116
|
+
outputs: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
type: z.ZodLiteral<"boolean">;
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
type: z.ZodLiteral<"number">;
|
|
121
|
+
label: z.ZodString;
|
|
122
|
+
unit: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"enum">;
|
|
125
|
+
label: z.ZodString;
|
|
126
|
+
values: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>], "type">>;
|
|
128
|
+
}, z.core.$strict>]>;
|
|
129
|
+
type PluginWorkflowContribution = z.infer<typeof workflowContributionSchema>;
|
|
130
|
+
type PluginWorkflowOutput = z.infer<typeof outputField>;
|
|
131
|
+
//#endregion
|
|
102
132
|
//#region src/host-services.d.ts
|
|
103
133
|
interface PluginColoredMessage {
|
|
104
134
|
readonly color?: string;
|
|
@@ -176,6 +206,7 @@ interface PluginConfigApi {
|
|
|
176
206
|
readonly replace: (config: Readonly<Record<string, unknown>>) => Promise<Readonly<Record<string, unknown>>>;
|
|
177
207
|
}
|
|
178
208
|
interface PluginCommandCatalogEntry {
|
|
209
|
+
readonly workflow?: PluginWorkflowContribution;
|
|
179
210
|
readonly background?: boolean;
|
|
180
211
|
readonly agent?: PluginAgentPolicy;
|
|
181
212
|
readonly arguments?: readonly PluginCommandArgument[];
|
|
@@ -214,6 +245,7 @@ interface PluginCapabilityResolveRequest {
|
|
|
214
245
|
readonly pluginId: string;
|
|
215
246
|
}
|
|
216
247
|
interface PluginStatusCatalogEntry {
|
|
248
|
+
readonly workflow?: Exclude<PluginWorkflowContribution, true>;
|
|
217
249
|
readonly description: string;
|
|
218
250
|
readonly id: string;
|
|
219
251
|
readonly input?: ZodType;
|
|
@@ -243,7 +275,8 @@ interface PluginCapabilityCatalog {
|
|
|
243
275
|
}
|
|
244
276
|
interface PluginCapabilityService {
|
|
245
277
|
readonly catalog: () => PluginCapabilityCatalog;
|
|
246
|
-
|
|
278
|
+
/** OnIssue is available to automatic workspace lifecycle calls. Other calls keep full logs. */
|
|
279
|
+
readonly executeCommand: (request: PluginCapabilityCommandRequest, logPolicy?: PluginCommandLogPolicy) => Promise<PluginCommandExecutionResult>;
|
|
247
280
|
readonly resolveContext: (request: PluginCapabilityResolveRequest) => Promise<unknown>;
|
|
248
281
|
readonly resolveStatus: (request: PluginCapabilityResolveRequest) => Promise<unknown>;
|
|
249
282
|
}
|
|
@@ -271,7 +304,8 @@ interface PluginLogQueryResult {
|
|
|
271
304
|
}
|
|
272
305
|
interface PluginLogService {
|
|
273
306
|
readonly query: (request?: PluginLogQueryRequest) => Promise<PluginLogQueryResult>;
|
|
274
|
-
|
|
307
|
+
/** Reads an owned execution or one of its directly owned child logs in this workspace. */
|
|
308
|
+
readonly get: (executionId: string, childLogId?: string) => Promise<ExecutionLogRecord>;
|
|
275
309
|
}
|
|
276
310
|
interface PluginTaskDescriptor {
|
|
277
311
|
readonly id: string;
|
|
@@ -407,6 +441,10 @@ declare enum PluginCommandEffect {
|
|
|
407
441
|
Immediate = "immediate",
|
|
408
442
|
LongRunning = "longRunning"
|
|
409
443
|
}
|
|
444
|
+
declare enum PluginCommandLogPolicy {
|
|
445
|
+
Always = "always",
|
|
446
|
+
OnIssue = "onIssue"
|
|
447
|
+
}
|
|
410
448
|
declare enum PluginCommandTransaction {
|
|
411
449
|
None = "none",
|
|
412
450
|
ProjectMutation = "projectMutation"
|
|
@@ -552,6 +590,7 @@ interface PluginCommandContext extends PluginInvocationContext {
|
|
|
552
590
|
readonly executionId: string;
|
|
553
591
|
}
|
|
554
592
|
interface PluginCommandDefinition {
|
|
593
|
+
readonly workflow?: PluginWorkflowContribution;
|
|
555
594
|
/** Explicit host-owned background execution; transaction must be None. */
|
|
556
595
|
readonly background?: boolean;
|
|
557
596
|
/** Required for ProjectMutation; read-only and evaluated before the write lease is used. */
|
|
@@ -596,7 +635,8 @@ interface PluginViewRequest {
|
|
|
596
635
|
readonly method: string;
|
|
597
636
|
}
|
|
598
637
|
declare enum PluginViewMethod {
|
|
599
|
-
CardActions = "workbase.cardActions"
|
|
638
|
+
CardActions = "workbase.cardActions",
|
|
639
|
+
OverviewCard = "workbase.overviewCard"
|
|
600
640
|
}
|
|
601
641
|
/** Repository-card shortcuts; visibility, tooltip and view input belong to the plugin. */
|
|
602
642
|
interface PluginCardAction {
|
|
@@ -606,7 +646,22 @@ interface PluginCardAction {
|
|
|
606
646
|
readonly tooltip: string;
|
|
607
647
|
readonly params?: Readonly<Record<string, unknown>>;
|
|
608
648
|
}
|
|
649
|
+
type PluginOverviewCardStatus = "error" | "neutral" | "ready" | "warning" | "working";
|
|
650
|
+
interface PluginOverviewCardData {
|
|
651
|
+
readonly detail?: string;
|
|
652
|
+
readonly status: PluginOverviewCardStatus;
|
|
653
|
+
readonly value: string;
|
|
654
|
+
}
|
|
655
|
+
interface PluginOverviewCardDefinition {
|
|
656
|
+
/** Lucide icon name in kebab-case. */
|
|
657
|
+
readonly icon: string;
|
|
658
|
+
readonly order?: number;
|
|
659
|
+
readonly resolve: (context: PluginInvocationContext) => PluginOverviewCardData | Promise<PluginOverviewCardData>;
|
|
660
|
+
readonly tone?: "blue" | "teal" | "yellow";
|
|
661
|
+
}
|
|
609
662
|
interface PluginViewDefinition {
|
|
663
|
+
/** Refresh configuration through onInit while keeping the current document and its drafts. */
|
|
664
|
+
readonly refreshConfigurationInPlace?: boolean;
|
|
610
665
|
/** Read-only; return an empty array when this repository has no available shortcut. */
|
|
611
666
|
readonly cardActions?: (repositoryId: string, context: PluginInvocationContext) => readonly PluginCardAction[] | Promise<readonly PluginCardAction[]>;
|
|
612
667
|
readonly description?: string;
|
|
@@ -614,12 +669,14 @@ interface PluginViewDefinition {
|
|
|
614
669
|
readonly handlers?: Readonly<Record<string, (input: unknown, context: PluginInvocationContext) => unknown | Promise<unknown>>>;
|
|
615
670
|
readonly id: string;
|
|
616
671
|
readonly layout?: PluginViewLayout;
|
|
672
|
+
readonly overviewCard?: PluginOverviewCardDefinition;
|
|
617
673
|
readonly order?: number;
|
|
618
674
|
readonly request?: (request: PluginViewRequest, context: PluginInvocationContext) => unknown | Promise<unknown>;
|
|
619
675
|
readonly slot: string;
|
|
620
676
|
readonly title?: string;
|
|
621
677
|
}
|
|
622
678
|
interface PluginStatusDefinition {
|
|
679
|
+
readonly workflow?: Exclude<PluginWorkflowContribution, true>;
|
|
623
680
|
readonly description: string;
|
|
624
681
|
readonly id: string;
|
|
625
682
|
readonly input?: ZodType;
|
|
@@ -701,10 +758,12 @@ interface PluginAgentContextContribution {
|
|
|
701
758
|
readonly pluginId: string;
|
|
702
759
|
}
|
|
703
760
|
interface PluginViewContribution {
|
|
761
|
+
readonly refreshConfigurationInPlace?: boolean;
|
|
704
762
|
readonly hasCardActions: boolean;
|
|
705
763
|
readonly entry: string;
|
|
706
764
|
readonly id: string;
|
|
707
765
|
readonly layout: PluginViewLayout;
|
|
766
|
+
readonly overviewCard?: Omit<PluginOverviewCardDefinition, "resolve">;
|
|
708
767
|
readonly order: number;
|
|
709
768
|
readonly pluginId: string;
|
|
710
769
|
readonly slot: string;
|
|
@@ -723,4 +782,4 @@ interface PluginContributionSnapshot {
|
|
|
723
782
|
readonly views: readonly PluginViewContribution[];
|
|
724
783
|
}
|
|
725
784
|
//#endregion
|
|
726
|
-
export {
|
|
785
|
+
export { PluginViewDefinition as $, PluginLifecycleDispatchResult as A, PluginTaskResult as At, PluginProcessOutputMode as B, RoleToolEnvironment as Bt, PluginExecutionEvidence as C, PluginPromptQuestion as Ct, PluginHookId as D, PluginStoreApi as Dt, PluginFileChange as E, PluginStatusCatalogEntry as Et, PluginLogger as F, PluginViewCatalogEntry as Ft, PluginRepositoryStatus as G, roleToolsProposalSchema as Gt, PluginProcessRunOptions as H, RoleToolsProposal as Ht, PluginOverviewCardData as I, PluginWorkflowContribution as It, PluginSharedChanges as J, PluginSetupHooks as K, PluginOverviewCardDefinition as L, PluginWorkflowOutput as Lt, PluginLifecycleOutcome as M, PluginToastApi as Mt, PluginLifecyclePolicy as N, PluginToastLevel as Nt, PluginHookResult as O, PluginSystemContextService as Ot, PluginLifecycleStatus as P, PluginToastOptions as Pt, PluginViewContribution as Q, PluginOverviewCardStatus as R, workflowContributionSchema as Rt, PluginDisposable as S, PluginPromptChoice as St, PluginExecutionStatus as T, PluginPromptViewRequest as Tt, PluginProject as U, roleToolEnvironmentSchema as Ut, PluginProcessResult as V, RoleToolsApplied as Vt, PluginRepository as W, roleToolsAppliedSchema as Wt, PluginStatusDefinition as X, PluginStatusContribution as Y, PluginToolContribution as Z, PluginCommandOption as _, PluginLogEntry as _t, PluginCapabilityReference as a, PluginAgentContextCatalogEntry as at, PluginContextExposure as b, PluginLogService as bt, PluginCommandCategory as c, PluginCapabilityCommandRequest as ct, PluginCommandDefinition as d, PluginColoredMessage as dt, PluginViewLayout as et, PluginCommandDetails as f, PluginCommandCatalogEntry as ft, PluginCommandLogPolicy as g, PluginInteractiveLogger as gt, PluginCommandExecutionResult as h, PluginHostServices as ht, PluginCapabilityKind as i, WorkbasePluginDefinition as it, PluginLifecycleHook as j, PluginTaskService as jt, PluginInvocationContext as k, PluginTaskDescriptor as kt, PluginCommandContext as l, PluginCapabilityResolveRequest as lt, PluginCommandExecutionMode as m, PluginExecutionService as mt, PluginAgentContextDefinition as n, PluginViewRequest as nt, PluginCardAction as o, PluginAgentPolicy as ot, PluginCommandEffect as p, PluginConfigApi as pt, PluginSharedChangeKind as q, PluginAgentScope as r, PluginWorkspace as rt, PluginCommandArgument as s, PluginCapabilityCatalog as st, PluginAgentContextContribution as t, PluginViewMethod as tt, PluginCommandContribution as u, PluginCapabilityService as ut, PluginCommandTransaction as v, PluginLogQueryRequest as vt, PluginExecutionSnapshot as w, PluginPromptType as wt, PluginContributionSnapshot as x, PluginPromptApi as xt, PluginContext as y, PluginLogQueryResult as yt, PluginProcessApi as z, PluginToolsService as zt };
|
package/dist/ui/index.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** 共享插件工作面、配置布局与控件密度;业务视图保留在各插件内。 */
|
|
1
2
|
@layer base, mantine, components;
|
|
2
3
|
@import "./theme.css";
|
|
3
4
|
|
|
@@ -6,9 +7,10 @@
|
|
|
6
7
|
--color-foreground: #342f28;
|
|
7
8
|
--color-muted: #6c675f;
|
|
8
9
|
--color-tertiary: #756f66;
|
|
10
|
+
--color-disabled: #aaa49a;
|
|
9
11
|
--color-border: #e2dfd6;
|
|
10
12
|
--color-border-strong: #c9c4b8;
|
|
11
|
-
--color-surface: #
|
|
13
|
+
--color-surface: #ffffff;
|
|
12
14
|
--color-surface-muted: #f3f2ed;
|
|
13
15
|
--color-surface-raised: #faf9f5;
|
|
14
16
|
--color-table-row: #fcfbf7;
|
|
@@ -49,6 +51,7 @@ p {
|
|
|
49
51
|
h1 {
|
|
50
52
|
margin-bottom: 4px;
|
|
51
53
|
font-size: 22px;
|
|
54
|
+
line-height: 1.4;
|
|
52
55
|
letter-spacing: -0.02em;
|
|
53
56
|
}
|
|
54
57
|
|
|
@@ -60,8 +63,14 @@ h2 {
|
|
|
60
63
|
.app-shell {
|
|
61
64
|
display: grid;
|
|
62
65
|
width: 100%;
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
min-width: 0;
|
|
67
|
+
height: 100dvh;
|
|
68
|
+
min-height: 0;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
align-content: start;
|
|
71
|
+
gap: 24px;
|
|
72
|
+
padding: 24px;
|
|
73
|
+
background: var(--color-surface);
|
|
65
74
|
}
|
|
66
75
|
|
|
67
76
|
.page-header,
|
|
@@ -91,7 +100,7 @@ h2 {
|
|
|
91
100
|
.panel-heading p {
|
|
92
101
|
margin-bottom: 0;
|
|
93
102
|
color: var(--color-muted);
|
|
94
|
-
font-size:
|
|
103
|
+
font-size: var(--workbase-type-body);
|
|
95
104
|
line-height: 1.5;
|
|
96
105
|
}
|
|
97
106
|
|
|
@@ -251,47 +260,131 @@ h2 {
|
|
|
251
260
|
/** Shared configuration workbench: navigation, reading and explicit editing. */
|
|
252
261
|
[hidden] { display: none !important; }
|
|
253
262
|
.configuration-toolbar, .configuration-toolbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
.
|
|
257
|
-
|
|
258
|
-
|
|
263
|
+
|
|
264
|
+
/** A stable title and mode switch share the leading edge; contextual actions occupy the trailing space. */
|
|
265
|
+
.plugin-toolbar {
|
|
266
|
+
position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
|
|
267
|
+
flex-wrap: wrap; flex-shrink: 0; gap: 10px 20px; min-height: 76px;
|
|
268
|
+
padding: 16px var(--workbase-page-inset); background: var(--color-surface-raised);
|
|
269
|
+
}
|
|
270
|
+
.plugin-surface { font-family: var(--workbase-font-sans); font-size: var(--workbase-type-body); line-height: 1.55; }
|
|
271
|
+
.plugin-toolbar h1 { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--color-foreground); font: 600 var(--workbase-type-title)/1.3 var(--workbase-font-sans); letter-spacing: -.025em; }
|
|
272
|
+
.plugin-toolbar[data-tone="blue"] { --plugin-icon-color: var(--color-accent); }
|
|
273
|
+
.plugin-toolbar[data-tone="teal"] { --plugin-icon-color: var(--color-success); }
|
|
274
|
+
.plugin-toolbar[data-tone="yellow"] { --plugin-icon-color: var(--color-primary-foreground); }
|
|
275
|
+
.plugin-title-icon { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 7px; border-radius: 10px; color: var(--plugin-icon-color); background: color-mix(in srgb, var(--plugin-icon-color) 10%, var(--color-surface)); stroke-width: 1.7; }
|
|
276
|
+
.plugin-toolbar[data-tone="yellow"] .plugin-title-icon { background: color-mix(in srgb, var(--color-primary) 34%, var(--color-surface)); }
|
|
277
|
+
.plugin-toolbar :is(.page-description, .change-name) { padding-inline-start: 43px; font-size: var(--workbase-type-meta); line-height: 1.6; }
|
|
278
|
+
.plugin-toolbar:has(> .configuration-page-tabs) {
|
|
279
|
+
display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-content: start; align-items: center;
|
|
280
|
+
justify-content: start; grid-auto-rows: minmax(40px, auto);
|
|
281
|
+
}
|
|
282
|
+
.plugin-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; justify-self: end; gap: 8px; }
|
|
283
|
+
@media (max-width: 640px) {
|
|
284
|
+
.plugin-toolbar { min-height: 60px; gap: 8px 12px; padding-block: 10px; }
|
|
285
|
+
}
|
|
286
|
+
@media (max-width: 455px) {
|
|
287
|
+
.plugin-toolbar:has(> .configuration-page-tabs) { grid-template-columns: max-content minmax(0, 1fr); }
|
|
288
|
+
.plugin-toolbar-actions { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.plugin-panes { gap: var(--workbase-panel-gap); padding: 0 var(--workbase-page-inset) var(--workbase-panel-gap); }
|
|
292
|
+
.plugin-pane { min-width: 0; border-radius: var(--workbase-panel-radius); background: var(--color-surface); box-shadow: var(--workbase-panel-shadow); }
|
|
293
|
+
|
|
294
|
+
/** Health and connection views share status, facts and maintenance surfaces. */
|
|
295
|
+
.status-page {
|
|
296
|
+
--status-inset: var(--workbase-page-inset);
|
|
297
|
+
gap: var(--workbase-panel-gap); padding: 0 0 var(--status-inset); background: var(--color-surface-raised);
|
|
298
|
+
}
|
|
299
|
+
.status-page > :not(.plugin-toolbar) { margin-inline: var(--status-inset); }
|
|
300
|
+
.status-page .page-description { margin: 0; }
|
|
301
|
+
.status-page .status-panel,
|
|
302
|
+
.status-page .maintenance-content {
|
|
303
|
+
display: flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
justify-content: space-between;
|
|
306
|
+
flex-wrap: wrap;
|
|
307
|
+
gap: 12px 20px;
|
|
308
|
+
}
|
|
309
|
+
.status-page .status-panel {
|
|
310
|
+
padding: clamp(20px, 2.4vw, 32px);
|
|
311
|
+
background: var(--color-surface);
|
|
312
|
+
border-radius: var(--workbase-panel-radius); box-shadow: var(--workbase-panel-shadow);
|
|
313
|
+
}
|
|
314
|
+
.status-panel .status-content { flex: 1 1 260px; min-width: 0; }
|
|
315
|
+
.status-panel .status-content p { margin: 8px 0 0; max-width: 65ch; font-size: var(--workbase-type-body); line-height: 1.65; overflow-wrap: anywhere; }
|
|
316
|
+
.status-page .status-facts {
|
|
317
|
+
display: grid;
|
|
318
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
319
|
+
gap: 16px 24px;
|
|
320
|
+
margin-block: 0;
|
|
321
|
+
padding: var(--status-inset); background: var(--color-surface);
|
|
322
|
+
border-radius: var(--workbase-panel-radius); box-shadow: var(--workbase-panel-shadow);
|
|
323
|
+
}
|
|
324
|
+
@media (max-width: 880px) {
|
|
325
|
+
.status-page .status-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
326
|
+
}
|
|
327
|
+
@media (max-width: 420px) {
|
|
328
|
+
.status-page .status-facts { grid-template-columns: minmax(0, 1fr); }
|
|
329
|
+
}
|
|
330
|
+
.status-facts div { min-width: 0; }
|
|
331
|
+
.status-facts dt, .status-page .maintenance-content p { color: var(--color-muted); font-size: var(--workbase-type-meta); line-height: 1.6; }
|
|
332
|
+
.status-facts dd { margin: 4px 0 0; font-size: var(--workbase-type-body); font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
333
|
+
.status-page .maintenance { padding: 8px var(--status-inset); background: var(--color-surface); border-radius: var(--workbase-panel-radius); }
|
|
334
|
+
.status-page .maintenance summary { width: fit-content; padding-block: 9px; color: var(--color-foreground); font-size: var(--workbase-type-body); font-weight: 500; cursor: pointer; }
|
|
335
|
+
.status-page .maintenance summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--mantine-radius-sm); }
|
|
336
|
+
.status-page .maintenance-content { padding-block: 4px 12px; }
|
|
337
|
+
.status-page .maintenance-content p { margin: 0; }
|
|
338
|
+
.status-page .loading-message { display: flex; align-items: center; gap: 8px; padding-block: 16px; color: var(--color-muted); font-size: var(--workbase-type-body); }
|
|
339
|
+
.status-page .operation-feedback { padding-top: 8px; }
|
|
340
|
+
|
|
341
|
+
.configuration-page-tabs { display: inline-flex; align-items: center; gap: 2px; width: max-content; max-width: 100%; padding: 4px; border-radius: 10px; background: var(--color-surface-muted); }
|
|
342
|
+
.configuration-page-tabs button { min-height: 32px; border: 0; border-radius: 7px; background: transparent; padding: 4px 13px; color: var(--color-muted); font: inherit; font-size: var(--workbase-type-body); font-weight: 600; cursor: pointer; white-space: nowrap; }
|
|
343
|
+
.configuration-page-tabs button:hover { color: var(--color-foreground); }
|
|
344
|
+
.configuration-page-tabs button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-foreground); box-shadow: 0 1px 4px rgb(55 48 31 / 13%); }
|
|
345
|
+
.configuration-page-tabs button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
|
|
346
|
+
.configuration-manager { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; font-size: var(--workbase-type-body); line-height: 1.6; }
|
|
347
|
+
.configuration-manager > :not(.configuration-resource-grid) { flex-shrink: 0; }
|
|
259
348
|
.configuration-view { min-width: 0; }
|
|
260
349
|
.configuration-manager ::selection { color: var(--color-primary-foreground); background: var(--color-primary); }
|
|
261
350
|
.configuration-manager :is(input, textarea) { caret-color: var(--color-brand); }
|
|
262
|
-
.configuration-manager :is(pre, .configuration-items) { scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
|
|
263
|
-
.configuration-navigation { display: flex; align-items: center; justify-content: space-between; gap:
|
|
264
|
-
.configuration-tabs { display: flex; align-
|
|
265
|
-
.configuration-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; padding:
|
|
266
|
-
.configuration-tabs button[aria-pressed="true"] { color: var(--color-foreground);
|
|
351
|
+
.configuration-manager :is(pre, .configuration-items, .configuration-detail) { scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
|
|
352
|
+
.configuration-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
|
|
353
|
+
.configuration-tabs { display: flex; align-items: center; min-width: 0; gap: 4px; overflow-x: auto; }
|
|
354
|
+
.configuration-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--color-muted); font: inherit; font-weight: 500; cursor: pointer; }
|
|
355
|
+
.configuration-tabs button[aria-pressed="true"] { color: var(--color-foreground); background: var(--color-brand-weak); font-weight: 600; }
|
|
267
356
|
.configuration-tabs button:hover:not(:disabled) { color: var(--color-foreground); }
|
|
268
|
-
.configuration-tabs button span { color: var(--color-muted); font-size:
|
|
357
|
+
.configuration-tabs button span { color: var(--color-muted); font-size: var(--workbase-type-meta); font-variant-numeric: tabular-nums; }
|
|
269
358
|
.configuration-tabs button:disabled { cursor: not-allowed; opacity: .5; }
|
|
270
359
|
.configuration-manager :is(button, input, select, textarea, summary, pre):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
|
|
271
|
-
.configuration-
|
|
272
|
-
.configuration-
|
|
273
|
-
.configuration-list
|
|
274
|
-
.configuration-
|
|
275
|
-
.configuration-
|
|
360
|
+
.configuration-navigation .configuration-tabs button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
|
|
361
|
+
.configuration-manager .configuration-resource-grid { display: grid; flex: 1; grid-template-columns: clamp(260px, 29.5%, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--workbase-panel-gap); min-height: min(480px, 65dvh); }
|
|
362
|
+
.configuration-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 14px; border-radius: var(--workbase-panel-radius); background: var(--color-surface); box-shadow: var(--workbase-panel-shadow); }
|
|
363
|
+
.configuration-list > :not(.configuration-items) { flex-shrink: 0; }
|
|
364
|
+
.configuration-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 12px; }
|
|
365
|
+
.configuration-manager .configuration-list-heading h2 { margin: 0; font-size: var(--workbase-type-section); font-weight: 600; }
|
|
366
|
+
.configuration-search { width: 100%; min-height: 36px; min-width: 0; padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface); color: var(--color-foreground); font: inherit; font-size: var(--workbase-type-meta); }
|
|
276
367
|
.configuration-search::placeholder, .configuration-field :is(input, textarea)::placeholder { color: var(--color-tertiary); opacity: 1; }
|
|
277
368
|
.configuration-search:disabled { cursor: not-allowed; opacity: .5; background: var(--color-surface-muted); }
|
|
278
|
-
.configuration-items { display: grid; align-content: start; gap: 4px;
|
|
369
|
+
.configuration-items { display: grid; flex: 1; align-content: start; gap: 4px; min-height: 0; padding: 8px 4px 4px; overflow: auto; }
|
|
279
370
|
.configuration-item { position: relative; min-width: 0; }
|
|
280
371
|
.configuration-row { display: grid; gap: 5px; width: 100%; padding: 12px; padding-inline-end: 44px; border: 1px solid transparent; border-radius: 6px; text-align: left; color: inherit; background: transparent; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
|
|
281
|
-
.configuration-row strong { font-size:
|
|
282
|
-
.configuration-row span { color: var(--color-muted); font-size:
|
|
372
|
+
.configuration-row strong { font-size: var(--workbase-type-body); font-weight: 600; line-height: 1.5; }
|
|
373
|
+
.configuration-row span { color: var(--color-muted); font-size: var(--workbase-type-meta); line-height: 1.5; }
|
|
283
374
|
.configuration-row:hover:not(:disabled) { background: var(--color-surface-muted); }
|
|
284
|
-
.configuration-row[aria-current="true"] { border-color: var(--color-
|
|
375
|
+
.configuration-row[aria-current="true"] { border-color: transparent; background: var(--color-brand-weak); box-shadow: inset 3px 0 var(--color-primary); }
|
|
285
376
|
.configuration-row[aria-current="true"] strong { color: var(--color-brand-deep); }
|
|
286
377
|
.configuration-row:disabled { cursor: not-allowed; }
|
|
287
|
-
.configuration-editing-notice { margin: 0 0 12px; color: var(--color-muted); font-size:
|
|
378
|
+
.configuration-editing-notice { margin: 0 0 12px; color: var(--color-muted); font-size: var(--workbase-type-meta); }
|
|
288
379
|
.configuration-row:disabled:not([aria-current="true"]) { opacity: .6; }
|
|
289
|
-
.configuration-manager .configuration-list-footer { display: flex; justify-content: flex-start; margin:
|
|
290
|
-
.configuration-detail { display: flex; flex-direction: column; min-width: 0; }
|
|
291
|
-
.configuration-detail
|
|
380
|
+
.configuration-manager .configuration-list-footer { display: flex; justify-content: flex-start; margin: 20px 4px 0; padding: 12px; border-radius: 8px; background: var(--color-surface-raised); color: var(--color-muted); font-size: var(--workbase-type-meta); line-height: 1.7; }
|
|
381
|
+
.configuration-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; border-radius: var(--workbase-panel-radius); background: var(--color-surface); box-shadow: var(--workbase-panel-shadow); }
|
|
382
|
+
.configuration-detail > :not(.configuration-detail-body) { flex-shrink: 0; }
|
|
383
|
+
.configuration-detail:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
|
|
384
|
+
.configuration-detail-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 26px 32px 8px; }
|
|
292
385
|
.configuration-detail-header.is-editing { position: sticky; top: 0; z-index: 2; background: var(--color-surface); }
|
|
293
386
|
.configuration-header-feedback { flex-basis: 100%; display: grid; gap: 12px; }
|
|
294
|
-
.configuration-manager .configuration-header-feedback > p { margin: 0; font-size:
|
|
387
|
+
.configuration-manager .configuration-header-feedback > p { margin: 0; font-size: var(--workbase-type-meta); }
|
|
295
388
|
.configuration-header-feedback .mantine-Alert-root { margin: 0; }
|
|
296
389
|
.configuration-detail-header > div { min-width: 0; }
|
|
297
390
|
.configuration-delete { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 28px; height: 28px; padding: 4px; opacity: 0; pointer-events: none; }
|
|
@@ -301,47 +394,47 @@ h2 {
|
|
|
301
394
|
@media (hover: none), (pointer: coarse) {
|
|
302
395
|
.configuration-delete { opacity: 1; pointer-events: auto; }
|
|
303
396
|
}
|
|
304
|
-
.configuration-manager .configuration-detail-header h2 { margin: 0; font-size:
|
|
305
|
-
.configuration-manager .configuration-detail-header p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; color: var(--color-muted); font-size:
|
|
306
|
-
.configuration-detail-header code { font-size:
|
|
307
|
-
.configuration-mode { padding
|
|
397
|
+
.configuration-manager .configuration-detail-header h2 { margin: 0; font-size: var(--workbase-type-detail); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
|
|
398
|
+
.configuration-manager .configuration-detail-header p { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; color: var(--color-muted); font-size: var(--workbase-type-meta); }
|
|
399
|
+
.configuration-detail-header code { font-size: var(--workbase-type-meta); overflow-wrap: anywhere; }
|
|
400
|
+
.configuration-mode { padding: 2px 8px; border-radius: 6px; background: var(--color-surface-muted); }
|
|
308
401
|
.configuration-detail-body { flex: 1; min-width: 0; padding: 28px 32px 32px; }
|
|
309
402
|
.configuration-section + .configuration-section, .configuration-section + .configuration-disclosure { margin-top: 28px; }
|
|
310
|
-
.configuration-manager .configuration-section h3, .configuration-tasks legend { margin: 0 0 14px; color: var(--color-foreground); font-size:
|
|
403
|
+
.configuration-manager .configuration-section h3, .configuration-tasks legend { margin: 0 0 14px; color: var(--color-foreground); font-size: var(--workbase-type-section); font-weight: 600; line-height: 1.5; }
|
|
311
404
|
.configuration-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
|
|
312
405
|
.configuration-manager .configuration-section-heading h3 { margin: 0; }
|
|
313
|
-
.configuration-manager .configuration-notice { margin: 0; color: var(--color-muted); font-size:
|
|
406
|
+
.configuration-manager .configuration-notice { margin: 0; color: var(--color-muted); font-size: var(--workbase-type-body); line-height: 1.7; overflow-wrap: anywhere; }
|
|
314
407
|
.configuration-items > .configuration-notice { padding: 12px 4px; }
|
|
315
|
-
.configuration-manager .configuration-feedback { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-foreground); background: var(--color-surface-raised); font-size:
|
|
408
|
+
.configuration-manager .configuration-feedback { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-foreground); background: var(--color-surface-raised); font-size: var(--workbase-type-body); }
|
|
316
409
|
.configuration-manager .mantine-Alert-root { margin-bottom: 16px; }
|
|
317
|
-
.configuration-reading { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 32px; color: var(--color-muted); font-size:
|
|
410
|
+
.configuration-reading { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 32px; color: var(--color-muted); font-size: var(--workbase-type-meta); border-bottom: 1px solid var(--color-border); }
|
|
318
411
|
.configuration-empty { margin: auto; max-width: 480px; padding: 48px 32px; }
|
|
319
|
-
.configuration-manager .configuration-empty h2 { margin: 0 0 12px; font-size:
|
|
320
|
-
.configuration-manager .configuration-empty p { margin: 8px 0 0; color: var(--color-muted); font-size:
|
|
412
|
+
.configuration-manager .configuration-empty h2 { margin: 0 0 12px; font-size: var(--workbase-type-detail); font-weight: 600; }
|
|
413
|
+
.configuration-manager .configuration-empty p { margin: 8px 0 0; color: var(--color-muted); font-size: var(--workbase-type-body); line-height: 1.8; }
|
|
321
414
|
.configuration-loading { padding: 32px; color: var(--color-muted); }
|
|
322
|
-
.configuration-field { display: grid; align-content: start; gap: 8px; min-width: 0; font-size:
|
|
415
|
+
.configuration-field { display: grid; align-content: start; gap: 8px; min-width: 0; font-size: var(--workbase-type-body); font-weight: 500; }
|
|
323
416
|
.configuration-field + .configuration-field, .configuration-fields + .configuration-field { margin-top: 16px; }
|
|
324
417
|
.configuration-notice + .configuration-field { margin-top: 16px; }
|
|
325
418
|
.configuration-field :is(input, select, textarea), .configuration-file-picker select { width: 100%; min-width: 0; padding: 10px 12px; color: var(--color-foreground); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 6px; font: inherit; font-weight: 400; line-height: 1.6; }
|
|
326
419
|
.configuration-field :is(input, select) { min-height: 40px; }
|
|
327
420
|
.configuration-field input[readonly] { color: var(--color-muted); background: var(--color-surface-raised); }
|
|
328
421
|
.configuration-field textarea { line-height: 1.8; resize: vertical; }
|
|
329
|
-
.configuration-field .configuration-code-editor { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size:
|
|
330
|
-
.configuration-hint { color: var(--color-muted); font-size:
|
|
422
|
+
.configuration-field .configuration-code-editor { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--workbase-type-meta); line-height: 1.75; tab-size: 2; }
|
|
423
|
+
.configuration-hint { color: var(--color-muted); font-size: var(--workbase-type-meta); font-weight: 400; line-height: 1.6; }
|
|
331
424
|
.configuration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
|
|
332
425
|
.configuration-fields > .configuration-field { margin: 0; }
|
|
333
426
|
.configuration-form { display: flex; flex: 1; flex-direction: column; min-width: 0; }
|
|
334
427
|
.configuration-form > fieldset { min-width: 0; border: 0; margin: 0; }
|
|
335
|
-
.configuration-document-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom:
|
|
428
|
+
.configuration-document-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: 12px; color: var(--color-muted); font-size: var(--workbase-type-meta); overflow-wrap: anywhere; }
|
|
336
429
|
.configuration-document-bar > span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
|
|
337
430
|
.configuration-file-picker { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
|
|
338
|
-
.configuration-file-picker select { width: auto; font-size:
|
|
339
|
-
.configuration-manager .configuration-content { max-height: 520px; margin: 0; padding: 20px; border
|
|
340
|
-
.configuration-manager .configuration-prose { max-width: 72ch; color: var(--color-foreground); font-size:
|
|
431
|
+
.configuration-file-picker select { width: auto; font-size: var(--workbase-type-meta); padding: 6px 8px; }
|
|
432
|
+
.configuration-manager .configuration-content { max-height: 520px; margin: 0; padding: 20px; border-radius: 8px; background: var(--color-surface-raised); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--workbase-type-meta); line-height: 1.8; }
|
|
433
|
+
.configuration-manager .configuration-prose { max-width: 72ch; color: var(--color-foreground); font-size: var(--workbase-type-body); line-height: 1.85; overflow-wrap: anywhere; }
|
|
341
434
|
.configuration-manager .configuration-prose :is(h1, h2, h3, h4) { margin: 28px 0 12px; line-height: 1.5; font-weight: 600; }
|
|
342
|
-
.configuration-manager .configuration-prose h1 { font-size:
|
|
343
|
-
.configuration-manager .configuration-prose h2 { font-size:
|
|
344
|
-
.configuration-manager .configuration-prose :is(h3, h4) { font-size:
|
|
435
|
+
.configuration-manager .configuration-prose h1 { font-size: var(--workbase-type-detail); }
|
|
436
|
+
.configuration-manager .configuration-prose h2 { font-size: var(--workbase-type-section); }
|
|
437
|
+
.configuration-manager .configuration-prose :is(h3, h4) { font-size: var(--workbase-type-section); }
|
|
345
438
|
.configuration-manager .configuration-prose > :first-child { margin-top: 0; }
|
|
346
439
|
.configuration-manager .configuration-prose > :last-child { margin-bottom: 0; }
|
|
347
440
|
.configuration-manager .configuration-prose p { margin: 12px 0; }
|
|
@@ -352,46 +445,61 @@ h2 {
|
|
|
352
445
|
.configuration-prose pre { max-width: 100%; padding: 16px; overflow-x: auto; background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 6px; }
|
|
353
446
|
.configuration-prose pre code { padding: 0; background: transparent; }
|
|
354
447
|
.configuration-prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 1px solid var(--color-border-strong); color: var(--color-muted); }
|
|
355
|
-
.configuration-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size:
|
|
448
|
+
.configuration-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--workbase-type-body); }
|
|
356
449
|
.configuration-prose :is(td, th) { padding: 8px 12px; border: 1px solid var(--color-border); text-align: left; }
|
|
357
450
|
.configuration-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
|
|
358
|
-
.configuration-facts dt { margin-bottom: 5px; color: var(--color-muted); font-size:
|
|
359
|
-
.configuration-facts dd { margin: 0; font-size:
|
|
451
|
+
.configuration-facts dt { margin-bottom: 5px; color: var(--color-muted); font-size: var(--workbase-type-meta); }
|
|
452
|
+
.configuration-facts dd { margin: 0; font-size: var(--workbase-type-body); overflow-wrap: anywhere; }
|
|
360
453
|
.configuration-tasks { min-width: 0; padding: 0; border: 0; }
|
|
361
454
|
.configuration-tasks legend { padding: 0; }
|
|
362
455
|
.configuration-tasks > label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; overflow-wrap: anywhere; }
|
|
363
456
|
.configuration-tasks input { flex-shrink: 0; width: 16px; height: 16px; margin: 3px 0; accent-color: var(--color-brand); }
|
|
364
457
|
.configuration-tasks label span { display: grid; gap: 3px; }
|
|
365
|
-
.configuration-tasks strong, .configuration-task-list strong { font-size:
|
|
366
|
-
.configuration-tasks small, .configuration-task-list span { color: var(--color-muted); font-size:
|
|
458
|
+
.configuration-tasks strong, .configuration-task-list strong { font-size: var(--workbase-type-body); font-weight: 500; }
|
|
459
|
+
.configuration-tasks small, .configuration-task-list span { color: var(--color-muted); font-size: var(--workbase-type-meta); }
|
|
367
460
|
.configuration-task-list { list-style: none; padding: 0; margin: 0; }
|
|
368
461
|
.configuration-task-list li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
|
|
369
|
-
.configuration-disclosure { margin-top:
|
|
370
|
-
.configuration-disclosure summary { width: fit-content; padding: 4px 0; font-size:
|
|
371
|
-
.configuration-disclosure summary span { margin-left: 10px; color: var(--color-muted); font-size:
|
|
462
|
+
.configuration-disclosure { margin-top: 10px; padding: 8px 14px; border-radius: 8px; background: var(--color-surface-raised); }
|
|
463
|
+
.configuration-disclosure summary { width: fit-content; padding: 4px 0; font-size: var(--workbase-type-body); font-weight: 500; cursor: pointer; }
|
|
464
|
+
.configuration-disclosure summary span { margin-left: 10px; color: var(--color-muted); font-size: var(--workbase-type-meta); font-weight: 400; }
|
|
372
465
|
.configuration-disclosure[open] > summary { margin-bottom: 16px; }
|
|
373
|
-
.configuration-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding: 16px 24px; border-
|
|
374
|
-
.configuration-manager .configuration-footer p { flex: 1 1 220px; margin: 0; color: var(--color-muted); font-size:
|
|
466
|
+
.configuration-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding: 16px 24px; border-radius: 0 0 var(--workbase-panel-radius) var(--workbase-panel-radius); background: var(--color-surface-raised); }
|
|
467
|
+
.configuration-manager .configuration-footer p { flex: 1 1 220px; margin: 0; color: var(--color-muted); font-size: var(--workbase-type-meta); line-height: 1.6; }
|
|
375
468
|
.configuration-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
|
|
376
469
|
@media (max-width: 900px) {
|
|
377
470
|
.configuration-manager .configuration-resource-grid { grid-template-columns: 200px minmax(0, 1fr); }
|
|
378
471
|
.configuration-detail-header { padding: 22px 24px; }
|
|
379
472
|
.configuration-detail-body { padding: 24px; }
|
|
380
|
-
.configuration-tabs { gap: 18px; }
|
|
381
473
|
}
|
|
382
474
|
@media (max-width: 720px) {
|
|
383
|
-
.configuration-navigation {
|
|
384
|
-
.configuration-
|
|
385
|
-
.configuration-
|
|
386
|
-
.configuration-
|
|
475
|
+
.configuration-navigation { gap: 12px; }
|
|
476
|
+
.configuration-navigation > button { flex-shrink: 0; }
|
|
477
|
+
.configuration-tabs button { padding-inline: 8px; }
|
|
478
|
+
.configuration-manager .configuration-resource-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content minmax(min(12rem, 40dvh), 1fr); }
|
|
479
|
+
.configuration-manager[data-editing="true"] .configuration-resource-grid { grid-template-rows: minmax(0, 1fr); }
|
|
387
480
|
.configuration-manager[data-editing="true"] .configuration-list { display: none; }
|
|
388
|
-
.configuration-items { max-height: 176px; }
|
|
481
|
+
.configuration-items { max-height: min(176px, 24dvh); }
|
|
389
482
|
.configuration-list-footer { margin-top: 12px; }
|
|
390
483
|
.configuration-detail-header { padding: 20px; gap: 12px; }
|
|
391
484
|
.configuration-detail-body { padding: 24px 20px; }
|
|
392
485
|
.configuration-fields, .configuration-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
|
|
393
486
|
.configuration-empty { padding: 36px 20px; }
|
|
394
|
-
.configuration-footer { padding: 16px 20px; border-radius: 0 0
|
|
487
|
+
.configuration-footer { padding: 16px 20px; border-radius: 0 0 var(--mantine-radius-lg) var(--mantine-radius-lg); }
|
|
395
488
|
.configuration-actions { margin-left: auto; }
|
|
396
489
|
.configuration-disclosure summary span { display: block; margin: 4px 0 0 16px; }
|
|
397
490
|
}
|
|
491
|
+
|
|
492
|
+
@media (max-width: 560px) {
|
|
493
|
+
.configuration-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(108px, .85fr); align-items: center; gap: 10px 12px; padding: 12px; }
|
|
494
|
+
.configuration-list-heading { gap: 6px; padding: 0; }
|
|
495
|
+
.configuration-manager .configuration-list-heading h2 { font-size: var(--workbase-type-section); }
|
|
496
|
+
.configuration-search { min-height: 32px; padding-block: 4px; }
|
|
497
|
+
.configuration-items { grid-column: 1 / -1; display: flex; align-items: stretch; gap: 6px; min-width: 0; padding: 4px; }
|
|
498
|
+
.configuration-item { display: flex; flex: 0 0 auto; max-width: 85%; }
|
|
499
|
+
.configuration-row { align-content: center; gap: 0; min-height: 36px; padding: 5px 11px; }
|
|
500
|
+
.configuration-item:has(.configuration-delete) .configuration-row { padding-inline-end: 36px; }
|
|
501
|
+
.configuration-row strong { font-size: var(--workbase-type-body); }
|
|
502
|
+
.configuration-row span { font-size: var(--workbase-type-meta); }
|
|
503
|
+
.configuration-manager .configuration-list-footer { grid-column: 1 / -1; margin: 0; padding: 0; background: transparent; }
|
|
504
|
+
.configuration-manager p.configuration-list-footer { display: none; }
|
|
505
|
+
}
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as PluginUiToastOptions, D as WorkbasePluginUi, E as PluginUiViewIdentity, O as WorkbasePluginUiDefinition, S as PluginUiStatus, T as PluginUiView, _ as PluginUiNavigateOptions, a as PluginUiContextIdentity, b as PluginUiPromptOptions, c as PluginUiDesktopOpenResult, d as PluginUiFileSelectOptions, f as PluginUiFileSelectionItemType, g as PluginUiInitializationPayload, h as PluginUiHostMethods, i as PluginUiCommands, l as PluginUiExecutionChange, m as PluginUiHostError, n as PluginUiClientMethods, o as PluginUiControllerOptions, p as PluginUiFileSelectionScope, r as PluginUiCommandExecuteOptions, s as PluginUiDesktopOpenOptions, t as PluginDesktopTarget, u as PluginUiFileFilter, v as PluginUiOutputOptions, w as PluginUiTransportConnection, x as PluginUiPromptType, y as PluginUiPromptChoice } from "../types-
|
|
1
|
+
import { C as PluginUiToastOptions, D as WorkbasePluginUi, E as PluginUiViewIdentity, O as WorkbasePluginUiDefinition, S as PluginUiStatus, T as PluginUiView, _ as PluginUiNavigateOptions, a as PluginUiContextIdentity, b as PluginUiPromptOptions, c as PluginUiDesktopOpenResult, d as PluginUiFileSelectOptions, f as PluginUiFileSelectionItemType, g as PluginUiInitializationPayload, h as PluginUiHostMethods, i as PluginUiCommands, l as PluginUiExecutionChange, m as PluginUiHostError, n as PluginUiClientMethods, o as PluginUiControllerOptions, p as PluginUiFileSelectionScope, r as PluginUiCommandExecuteOptions, s as PluginUiDesktopOpenOptions, t as PluginDesktopTarget, u as PluginUiFileFilter, v as PluginUiOutputOptions, w as PluginUiTransportConnection, x as PluginUiPromptType, y as PluginUiPromptChoice } from "../types-DjPBTfWP.js";
|
|
2
2
|
//#region src/ui/controller.d.ts
|
|
3
3
|
export declare function createPluginUiController(definition: WorkbasePluginUiDefinition, options: PluginUiControllerOptions): WorkbasePluginUi;
|
|
4
4
|
//#endregion
|
package/dist/ui/index.js
CHANGED
|
@@ -194,6 +194,7 @@ function assertInitializationPayload(value) {
|
|
|
194
194
|
}
|
|
195
195
|
function isInitializationPayload(value) {
|
|
196
196
|
if (!isRecord(value)) return false;
|
|
197
|
+
if (value.configurationRevision !== void 0 && typeof value.configurationRevision !== "string") return false;
|
|
197
198
|
if (value.activationGeneration !== void 0 && (!Number.isSafeInteger(value.activationGeneration) || Number(value.activationGeneration) < 0)) return false;
|
|
198
199
|
return isContextIdentity(value.project) && isContextIdentity(value.workspace) && isViewIdentity(value.view);
|
|
199
200
|
}
|
package/dist/ui/theme.css
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
/** Shared Mantine appearance for the desktop shell and isolated plugin views. */
|
|
2
2
|
@layer components {
|
|
3
|
+
:root {
|
|
4
|
+
--workbase-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
5
|
+
--workbase-type-title: 24px;
|
|
6
|
+
--workbase-type-detail: 20px;
|
|
7
|
+
--workbase-type-section: 16px;
|
|
8
|
+
--workbase-type-body: 14px;
|
|
9
|
+
--workbase-type-meta: 12px;
|
|
10
|
+
--workbase-page-inset: clamp(16px, 2.3vw, 32px);
|
|
11
|
+
--workbase-panel-gap: clamp(10px, 1.35vw, 20px);
|
|
12
|
+
--workbase-panel-radius: 12px;
|
|
13
|
+
--workbase-panel-shadow: 0 2px 7px -3px rgb(58 48 26 / 12%), 0 8px 26px -15px rgb(58 48 26 / 12%);
|
|
14
|
+
}
|
|
15
|
+
@media (max-width: 640px) {
|
|
16
|
+
:root { --workbase-type-title: 22px; }
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
.mantine-Badge-root {
|
|
4
20
|
width: fit-content;
|
|
5
21
|
height: auto;
|
|
@@ -36,7 +52,7 @@
|
|
|
36
52
|
.mantine-ActionIcon-root {
|
|
37
53
|
flex-shrink: 0;
|
|
38
54
|
font-weight: 600;
|
|
39
|
-
transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
|
|
55
|
+
transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
|
|
40
56
|
}
|
|
41
57
|
|
|
42
58
|
.mantine-Button-inner,
|
|
@@ -54,6 +70,8 @@
|
|
|
54
70
|
.workbase-brand-control[data-variant="filled"]:not(:disabled):not([data-disabled]) {
|
|
55
71
|
border-color: var(--color-primary-hover);
|
|
56
72
|
color: var(--color-primary-foreground);
|
|
73
|
+
background: var(--color-primary);
|
|
74
|
+
box-shadow: 0 1px 2px rgb(80 46 0 / 8%);
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
.workbase-brand-control[data-variant="light"] {
|
|
@@ -61,7 +79,19 @@
|
|
|
61
79
|
background: var(--color-brand-weak);
|
|
62
80
|
}
|
|
63
81
|
|
|
64
|
-
.workbase-brand-control[data-variant="subtle"] { color: var(--color-
|
|
82
|
+
.workbase-brand-control[data-variant="subtle"] { color: var(--color-muted); }
|
|
83
|
+
|
|
84
|
+
.mantine-Button-root:focus-visible,
|
|
85
|
+
.mantine-ActionIcon-root:focus-visible,
|
|
86
|
+
.mantine-Tabs-tab:focus-visible {
|
|
87
|
+
outline: 2px solid var(--color-accent);
|
|
88
|
+
outline-offset: 2px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.workbase-brand-control[data-variant="filled"]:active:not(:disabled):not([data-disabled]) {
|
|
92
|
+
background: var(--color-primary-hover);
|
|
93
|
+
box-shadow: inset 0 1px 2px rgb(0 0 0 / 16%);
|
|
94
|
+
}
|
|
65
95
|
|
|
66
96
|
.workbase-status-teal { --workbase-status-color: var(--color-success); }
|
|
67
97
|
.workbase-status-orange { --workbase-status-color: var(--color-warning); }
|
|
@@ -94,13 +124,17 @@
|
|
|
94
124
|
@media (hover: hover) {
|
|
95
125
|
.mantine-Button-root[data-variant="default"]:hover:not(:disabled),
|
|
96
126
|
.mantine-ActionIcon-root[data-variant="default"]:hover:not(:disabled) {
|
|
97
|
-
border-color: var(--color-
|
|
98
|
-
background: var(--color-
|
|
127
|
+
border-color: var(--color-border-strong);
|
|
128
|
+
background: var(--color-surface-muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.workbase-brand-control[data-variant="filled"]:hover:not(:disabled):not([data-disabled]) {
|
|
132
|
+
background: var(--color-primary-hover);
|
|
99
133
|
}
|
|
100
134
|
|
|
101
135
|
.workbase-brand-control[data-variant="subtle"]:hover:not(:disabled) {
|
|
102
136
|
color: var(--color-brand-deep);
|
|
103
|
-
background: var(--color-
|
|
137
|
+
background: var(--color-surface-muted);
|
|
104
138
|
}
|
|
105
139
|
}
|
|
106
140
|
|
|
@@ -174,9 +208,12 @@
|
|
|
174
208
|
|
|
175
209
|
.mantine-Tabs-tab[data-active] {
|
|
176
210
|
border-color: var(--color-primary-hover);
|
|
177
|
-
color: var(--color-
|
|
211
|
+
color: var(--color-foreground);
|
|
212
|
+
background: var(--color-brand-weak);
|
|
178
213
|
}
|
|
179
214
|
|
|
215
|
+
.mantine-Tabs-tab:hover:not([data-active]) { background: var(--color-surface-muted); }
|
|
216
|
+
|
|
180
217
|
.mantine-Tabs-panel { margin-top: 12px; }
|
|
181
218
|
.mantine-Modal-title { color: var(--color-brand-deep); font-size: 18px; font-weight: 600; }
|
|
182
219
|
.mantine-Modal-overlay { background: rgb(0 0 0 / 45%); }
|
package/dist/ui/theme.d.ts
CHANGED
|
@@ -14,15 +14,15 @@ export declare const workbaseUiTheme: {
|
|
|
14
14
|
readonly xs: "0.25rem";
|
|
15
15
|
readonly sm: "0.25rem";
|
|
16
16
|
readonly md: "0.375rem";
|
|
17
|
-
readonly lg: "0.
|
|
17
|
+
readonly lg: "0.625rem";
|
|
18
18
|
readonly xl: "0.75rem";
|
|
19
19
|
};
|
|
20
20
|
readonly fontFamily: "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif";
|
|
21
21
|
readonly fontSizes: {
|
|
22
22
|
readonly xs: "0.75rem";
|
|
23
23
|
readonly sm: "0.875rem";
|
|
24
|
-
readonly md: "
|
|
25
|
-
readonly lg: "
|
|
24
|
+
readonly md: "1rem";
|
|
25
|
+
readonly lg: "1.125rem";
|
|
26
26
|
readonly xl: "1.25rem";
|
|
27
27
|
};
|
|
28
28
|
readonly colors: {
|
|
@@ -46,7 +46,7 @@ export declare const workbaseUiTheme: {
|
|
|
46
46
|
};
|
|
47
47
|
readonly Badge: {
|
|
48
48
|
readonly defaultProps: {
|
|
49
|
-
readonly radius: "
|
|
49
|
+
readonly radius: "sm";
|
|
50
50
|
};
|
|
51
51
|
readonly classNames: typeof badgeClassNames;
|
|
52
52
|
};
|
package/dist/ui/theme.js
CHANGED
|
@@ -19,15 +19,15 @@ const workbaseUiTheme = {
|
|
|
19
19
|
xs: "0.25rem",
|
|
20
20
|
sm: "0.25rem",
|
|
21
21
|
md: "0.375rem",
|
|
22
|
-
lg: "0.
|
|
22
|
+
lg: "0.625rem",
|
|
23
23
|
xl: "0.75rem"
|
|
24
24
|
},
|
|
25
25
|
fontFamily: "Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif",
|
|
26
26
|
fontSizes: {
|
|
27
27
|
xs: "0.75rem",
|
|
28
28
|
sm: "0.875rem",
|
|
29
|
-
md: "
|
|
30
|
-
lg: "
|
|
29
|
+
md: "1rem",
|
|
30
|
+
lg: "1.125rem",
|
|
31
31
|
xl: "1.25rem"
|
|
32
32
|
},
|
|
33
33
|
colors: {
|
|
@@ -108,7 +108,7 @@ const workbaseUiTheme = {
|
|
|
108
108
|
Input: { defaultProps: { autoCapitalize: "none" } },
|
|
109
109
|
Textarea: { defaultProps: { autoCapitalize: "none" } },
|
|
110
110
|
Badge: {
|
|
111
|
-
defaultProps: { radius: "
|
|
111
|
+
defaultProps: { radius: "sm" },
|
|
112
112
|
classNames: badgeClassNames
|
|
113
113
|
},
|
|
114
114
|
Button: {
|