@yugoo-design/dsh-design-studio-ui 0.1.0-beta.3 → 0.1.0-beta.4
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 +11 -0
- package/lib/index.d.ts +21 -3
- package/lib/index.js +391 -356
- package/licenses/dsh-distribution.json +35 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,6 +98,17 @@ render with sample-only ports; the shared UI imports no Panel implementation.
|
|
|
98
98
|
`onDraftDirtyChange` guards host closure and navigation. Confirmation locks a
|
|
99
99
|
local draft, not a published Kit; preview alone never starts execution.
|
|
100
100
|
|
|
101
|
+
The optional host-neutral `renderSelect: StudioSelectRenderer` port supplies the
|
|
102
|
+
shared choice control for Bundle/Kit versions, Mindset working-copy recovery and
|
|
103
|
+
the two Kit preview Bundle selectors. DSH's standalone browser page and Companion
|
|
104
|
+
inject the existing Panel control; Studio UI imports only the local port types.
|
|
105
|
+
Hosts without the port retain a controlled native select. Values, empty choices,
|
|
106
|
+
unknown stored values and disabled options remain caller-owned. Studio supplies
|
|
107
|
+
its compact 32px trigger geometry and semantic token bridge; the shared popup
|
|
108
|
+
keeps keyboard/focus handling and carries its own styles. Recovery menus stay
|
|
109
|
+
inside an open native dialog's top layer. This changes presentation only, not
|
|
110
|
+
working-copy, preview, CAS or save operations.
|
|
111
|
+
|
|
101
112
|
`dsh-design-studio-ui` is the shared React Studio. Its sidebar contains Kits
|
|
102
113
|
and Bundles, with Kits as the entry view. A host may additionally expose the
|
|
103
114
|
accepted Component Library capability. A compact breadcrumb/refresh bar sits
|
package/lib/index.d.ts
CHANGED
|
@@ -129,6 +129,22 @@ declare class StudioPanelDraftController {
|
|
|
129
129
|
dispose(): void;
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
+
//#region src/StudioSelect.d.ts
|
|
133
|
+
/** Host-neutral control contract; choosing only reports the exact caller value. */
|
|
134
|
+
interface StudioSelectProps {
|
|
135
|
+
readonly value: string;
|
|
136
|
+
readonly options: readonly {
|
|
137
|
+
readonly value: string;
|
|
138
|
+
readonly label: string;
|
|
139
|
+
readonly disabled?: boolean;
|
|
140
|
+
}[];
|
|
141
|
+
readonly onValueChange: (value: string) => void;
|
|
142
|
+
readonly disabled?: boolean;
|
|
143
|
+
readonly 'aria-label': string;
|
|
144
|
+
readonly className?: string;
|
|
145
|
+
}
|
|
146
|
+
type StudioSelectRenderer = (props: StudioSelectProps) => ReactElement;
|
|
147
|
+
//#endregion
|
|
132
148
|
//#region src/trial-controller.d.ts
|
|
133
149
|
/** Trial transport: hosts own snapshots, isolation and native execution. */
|
|
134
150
|
type StudioTrialSource = {
|
|
@@ -589,13 +605,15 @@ interface StudioWorkspaceProps {
|
|
|
589
605
|
readonly instances?: StudioInstanceClient;
|
|
590
606
|
/** Trusted host-owned catalog and sample-only shared renderer. */
|
|
591
607
|
readonly componentLibrary?: StudioComponentLibrary;
|
|
608
|
+
/** Optional host-owned shared choice control; no Panel implementation enters Studio UI. */
|
|
609
|
+
readonly renderSelect?: StudioSelectRenderer;
|
|
592
610
|
/** Optional inert content import/export; only Kit adoption requires Kit authoring. */
|
|
593
611
|
readonly contentClient?: StudioContentClient;
|
|
594
612
|
/** Lets the host guard dialog closure as well as internal navigation. */
|
|
595
613
|
readonly onDraftDirtyChange?: (dirty: boolean) => void;
|
|
596
614
|
}
|
|
597
615
|
/** Read-only Studio surface: one complete page with global nav, sidebar, and workspace main. */
|
|
598
|
-
declare function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
616
|
+
declare function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, renderSelect, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }: StudioWorkspaceProps): ReactElement;
|
|
599
617
|
//#endregion
|
|
600
618
|
//#region src/styles.d.ts
|
|
601
619
|
/**
|
|
@@ -605,7 +623,7 @@ declare function StudioWorkspace({ client, controller: supplied, authoring, kitA
|
|
|
605
623
|
* purple brand accents, neutral text and radii follow the Yugoo UI. The stylesheet is scoped so
|
|
606
624
|
* embedded and Companion hosts share it without importing a host/Core theme.
|
|
607
625
|
*/
|
|
608
|
-
declare const STUDIO_WORKSPACE_CSS = "\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px 14px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-search-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-search-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;margin:0 20px 18px;border:1px solid var(--ds-border);border-radius:10px;background:#fff}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n.ygd-studio-draft-layout{display:flex;flex:1;min-height:0;overflow:hidden;font-size:14px}\n.ygd-studio-draft-list{width:210px;flex-shrink:0;overflow:auto;border-right:1px solid var(--ds-border,#e5e7eb);padding:12px}\n.ygd-studio-draft-list>button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}\n.ygd-studio-draft-list>button[aria-current]{background:var(--ds-bg-hover,#f1f5f9);border-color:var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-list small{opacity:.7;overflow-wrap:anywhere}\n.ygd-studio-draft-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:auto}\n.ygd-studio-draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-toolbar>span{font-size:12px;opacity:.7}\n.ygd-studio-draft-toolbar>button{font:inherit;padding:6px 10px;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;background:var(--ds-bg,#fff);color:inherit;cursor:pointer}\n.ygd-studio-draft-toolbar>button:disabled{opacity:.45;cursor:default}\n.ygd-studio-draft-sources{padding:12px}\n.ygd-studio-draft-sources summary{cursor:pointer}\n.ygd-studio-draft-sources fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:12px 0}\n.ygd-studio-draft-sources label{display:flex;flex-direction:column;gap:6px;min-width:0}\n.ygd-studio-draft-sources textarea{height:220px;resize:vertical;font:12px/1.5 monospace;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;padding:8px;color:inherit;background:var(--ds-bg,#fff)}\n.ygd-studio-draft-preview{flex:1;min-height:320px;position:relative;overflow:auto;padding:12px}\n/* Archive stages form one scrolling document, not competing flex editors. */\n.ygd-studio-archive .ygd-studio-content-body{display:block}\n.ygd-studio-archive .ygd-studio-draft-editor{flex:none;overflow:visible;gap:12px;padding:16px 0}\n.ygd-studio-archive .ygd-studio-draft-editor>button{align-self:flex-start}\n.ygd-studio-archive h2,.ygd-studio-archive h3{font-size:14px;font-weight:600;margin:0}\n.ygd-studio-archive p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-archive details{margin:12px 0}\n.ygd-studio-archive summary{cursor:pointer}\n.ygd-studio-archive .ygd-studio-draft-list{width:auto;border-right:0}\n.ygd-studio-archive fieldset.ygd-studio-draft-sources{display:grid;gap:12px;border:0;padding:0}\n.ygd-studio-archive .ygd-studio-draft-sources input{width:100%}\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-purpose{font:400 12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);flex:1;min-width:140px;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:#fff;color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{max-width:280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-btn-soft{background:var(--ds-primary-light);color:var(--ds-primary-dark);border-color:transparent}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-filter-row>span{margin-right:auto}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n.ygd-studio-mindset-inline{padding:8px 16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-mindset-inline .ygd-studio-draft-toolbar{display:flex;align-items:center;gap:8px}\n.ygd-studio-mindset-inline button,.ygd-studio-mindset-recovery select{font:inherit;min-height:30px;border:1px solid var(--ds-border);border-radius:8px;padding:4px 10px;background:#fff;color:var(--ds-text)}\n.ygd-studio-mindset-inline button:last-of-type{background:var(--ds-primary);color:white;border-color:transparent}\n.ygd-studio-mindset-inline button:disabled{opacity:.5}\n.ygd-studio-mindset-inline textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;padding:12px;font:13px/1.6 var(--ds-mono-font);border:1px solid var(--ds-border);border-radius:8px;resize:vertical}\n.ygd-studio-mindset-inline pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}\n.ygd-studio-mindset-inline .ygd-studio-draft-sources{display:grid;gap:10px}\n.ygd-studio-mindset-inline:has(textarea)+.ygd-studio-mindset-document{display:none}\n.ygd-studio-mindset-recovery{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:fixed;left:-200px;top:0;bottom:0;z-index:var(--ds-z-drawer);\n transition:left var(--ds-duration-normal);width:200px}\n .ygd-studio-sidebar.open{left:0}\n .ygd-studio-menu-btn{display:flex;position:fixed;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-content-header{padding:8px 16px}\n.ygd-studio-bundle-main .ygd-studio-hero-actions{margin:0}\n.ygd-studio-bundle-main .ygd-studio-workplane-bar{min-height:36px;padding:0 16px;margin:0}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}.ygd-studio-workspace-body{margin:0 12px 12px}}\n";
|
|
626
|
+
declare const STUDIO_WORKSPACE_CSS = "\n.ygd-studio-component-browser{display:flex;flex:1;min-width:0;min-height:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-directory{width:240px;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:12px;border-right:1px solid var(--ds-border);min-height:0}\n.ygd-studio-component-directory>.ygd-studio-search-input{width:100%;min-width:0}\n.ygd-studio-component-catalog-tabs{display:flex;gap:4px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px;padding:3px}\n.ygd-studio-component-catalog-tabs button{flex:1;min-width:0;border:0;border-radius:5px;padding:6px 4px;font:inherit;font-size:12px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-catalog-tabs button[aria-selected=true]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-component-list{overflow:auto;min-height:0;flex:1}\n.ygd-studio-component-directory-group summary{font-size:14px;font-weight:500;padding:8px;cursor:pointer}\n.ygd-studio-component-directory-item{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);margin-left:24px;gap:3px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ds-text);text-align:left;font:inherit;font-size:14px;overflow-wrap:anywhere;cursor:pointer}\n.ygd-studio-component-directory-item:hover{background:var(--ds-bg-hover,#f5f4f9)}\n.ygd-studio-component-directory-item[aria-current=page]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-components code{font-family:var(--ds-mono-font,'Consolas',ui-monospace,monospace)}\n.ygd-studio-component-list code{display:block;font-size:11px;color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-component-tree.dsh-panel-workspace-tree{padding:0;min-width:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-group{width:auto;padding:0;border:0}\n.ygd-studio-component-tree .dsh-panel-workspace-tree-body{display:grid;gap:4px}\n.ygd-studio-component-detail{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}\n.ygd-studio-component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 12px}\n.ygd-studio-component-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-heading h2{font-size:18px;line-height:24px;font-weight:500}\n.ygd-studio-component-heading code,.ygd-studio-component-support{font-size:12px;color:var(--ds-text-secondary);overflow-wrap:anywhere}\n.ygd-studio-component-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}\n.ygd-studio-component-library-version{font-family:var(--ds-body-font);font-size:12px;font-variant-numeric:tabular-nums;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--ds-primary-light);color:var(--ds-text-secondary)}\n.ygd-studio-component-tabs{display:flex;gap:20px}\n.ygd-studio-component-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 0;font:inherit;font-size:14px;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-component-tabs button[aria-selected=true]{border-color:var(--ds-primary);color:var(--ds-primary)}\n.ygd-studio-component-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}\n.ygd-studio-component-preview{flex:1;min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:16px;background:var(--ds-background)}\n.ygd-studio-component-stage{width:100%;min-width:0;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface)}\n.ygd-studio-component-preview-inline .ygd-studio-component-stage{max-width:880px;margin:0 auto;padding:16px}\n.ygd-studio-component-preview-navigation .ygd-studio-component-stage{max-width:360px;padding:12px;min-height:240px}\n.ygd-studio-component-preview-inline .dsh-design-panel,.ygd-studio-component-preview-navigation .dsh-design-panel{height:auto;min-height:0}\n.ygd-studio-component-preview-workspace{overflow:hidden}\n.ygd-studio-component-preview-workspace .ygd-studio-component-stage{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-dock-panel-body{flex:1;min-height:0;overflow:hidden}\n.ygd-studio-component-preview-workspace .dsh-design-panel{height:100%;min-height:0}\n.ygd-studio-component-library-info{max-width:760px;padding:8px 20px 24px;overflow:auto;display:flex;flex-direction:column;gap:24px;font-size:14px;line-height:1.6}\n.ygd-studio-component-library-info dl{margin:0;border-top:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dl>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-component-library-info dt{color:var(--ds-text-secondary)}\n.ygd-studio-component-library-info dd{margin:0;overflow-wrap:anywhere}\n.ygd-studio-component-library-info code{font-size:12px}\n.ygd-studio-component-library-note{color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-doc{padding:16px 20px;display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0;line-height:1.6;font-size:14px}\n.ygd-studio-component-doc pre{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ds-bg-secondary,#f7f7f9);border:1px solid var(--ds-border);border-radius:8px;padding:12px;margin:0}\n.ygd-studio-component-doc h3{font-size:14px;font-weight:500}\n.ygd-studio-component-doc summary{cursor:pointer}\n.ygd-studio-component-feedback{padding:8px 20px;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-component-feedback[role=alert]{color:var(--ds-danger,#bd3540)}\n.ygd-studio-component-unavailable{margin:auto;padding:24px;max-width:480px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;line-height:1.6}\n.ygd-studio-component-unavailable h3{font-size:16px;font-weight:500}\n@media(max-width:760px){.ygd-studio-component-directory{width:180px}.ygd-studio-component-heading{align-items:flex-start;flex-direction:column;padding:12px}.ygd-studio-component-toolbar{padding:0 12px 8px;flex-wrap:wrap}.ygd-studio-component-preview{padding:12px}.ygd-studio-component-library-info dl>div{grid-template-columns:1fr;gap:4px}}\n@media(max-width:480px){.ygd-studio-component-directory{width:140px;padding:8px}.ygd-studio-component-tabs{gap:12px}.ygd-studio-component-tabs button{font-size:12px}.ygd-studio-component-list button{font-size:12px}.ygd-studio-component-doc{padding:12px}}\n.ygd-studio-back{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ds-text-secondary);cursor:pointer}\n.ygd-studio-back:hover{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-back:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-header-title-group:has(>.ygd-studio-back){padding-left:0;flex-wrap:nowrap}\n.ygd-studio-header-title-group:has(>.ygd-studio-back)>.ygd-studio-kitmark{position:static;flex-shrink:0}\n.ygd-studio-loading{display:flex;align-items:center;justify-content:center;flex:1;min-height:96px;width:100%;align-self:stretch}\n.ygd-studio-spinner{position:relative;display:inline-block;overflow:hidden;width:180px;height:2px;background:var(--ds-primary-light,#e5f0ed)}\n.ygd-studio-spinner::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;background:var(--ds-primary,#3f9e8b);animation:ygd-studio-progress 1.6s ease-in-out infinite}\n@keyframes ygd-studio-progress{0%{transform:translateX(-110%);opacity:.45}50%{opacity:1}100%{transform:translateX(310%);opacity:.45}}\n@media(prefers-reduced-motion:reduce){.ygd-studio-spinner::before{animation:none;width:100%;opacity:.8}}\n.ygd-studio-trial{margin-top:8px;font-size:14px}\n.ygd-studio-trial .ygd-studio-summary-card{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;box-shadow:none}\n.ygd-studio-trial button{min-height:32px;padding:5px 10px;border:1px solid #e8e8e8;border-radius:8px;background:#f7f7f7;color:#272727;font:inherit;cursor:pointer;width:fit-content}\n.ygd-studio-trial button:disabled{opacity:.5;cursor:default}\n.ygd-studio-trial textarea{display:block;margin-top:6px;padding:8px;border:1px solid #dfdfdf;border-radius:8px;font:inherit;background:#fff;color:#272727;resize:vertical}\n.ygd-studio-trial small{color:#6d6d6d;overflow-wrap:anywhere}\n.ygd-studio-trial button:focus-visible,.ygd-studio-trial textarea:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-workspace{\n --ds-primary:#7c5af6;--ds-primary-light:#f7f4fe;--ds-primary-dark:#6849d8;--ds-primary-active:#5032bc;\n --ds-secondary:#64748B;--ds-accent:#0EA5E9;\n --ds-background:#F7F7F7;--ds-surface:#FFFFFF;\n --ds-text:#272727;--ds-text-secondary:#6d6d6d;--ds-border:#E8E8E8;\n --ds-success:#059669;--ds-warning:#D97706;--ds-error:#DC2626;--ds-info:#0284C7;\n --ds-heading-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-body-font:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;\n --ds-mono-font:'JetBrains Mono','Fira Code','Consolas',monospace;\n --ds-base-font-size:14px;--ds-heading-weight:600;--ds-line-height:1.5;\n --ds-radius:8px;\n --ds-shadow:0 1px 3px rgba(0,0,0,.03);\n --ds-density-padding:12px;\n --ds-duration-fast:120ms;--ds-duration-normal:200ms;\n --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;--ds-space-5:24px;--ds-space-6:32px;\n --ds-z-drawer:30;\n box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;\n background:var(--ds-background);color:var(--ds-text);\n font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}\n.ygd-studio-workspace *{box-sizing:border-box}\n.ygd-studio-workspace .ygd-studio-select{\n --ds-bg-white:var(--ds-surface);--ds-fill-5:var(--ds-border);--ds-border-default:var(--ds-border);\n --ds-text-primary:var(--ds-text);--ds-icon-outline-default:var(--ds-text-secondary);\n --ds-brand-light-bg-default:var(--ds-primary-light);--ds-brand-text-primary:var(--ds-primary-dark);\n --ds-radius-4:var(--ds-radius);--ygd-panel-control-focus:var(--ds-primary);\n display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;height:32px;\n padding:4px 10px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:inherit;line-height:20px;text-align:start;cursor:pointer}\n.ygd-studio-select:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-select:disabled{cursor:not-allowed;opacity:.6}\nbutton.ygd-studio-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\nbutton.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:center;color:var(--ds-text-secondary)}\n.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}\n\n/* Narrow-viewport drawer toggle; positioned by the responsive block below */\n.ygd-studio-menu-btn{display:none;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--ds-border);\n background:var(--ds-surface);cursor:pointer;color:var(--ds-text-secondary);font-size:16px;border-radius:var(--ds-radius);\n box-shadow:var(--ds-shadow)}\n.ygd-studio-menu-btn:hover{background:var(--ds-background);color:var(--ds-text)}\n\n/* Shell */\n.ygd-studio-body{display:flex;flex:1;min-height:0}\n.ygd-studio-sidebar{width:176px;padding:20px 12px 12px;flex-shrink:0;background:var(--ds-background);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow-y:auto}\n.ygd-studio-sidebar-logo{padding:0 6px 24px;font-family:var(--ds-heading-font);\n font-weight:var(--ds-heading-weight);font-size:18px;color:var(--ds-text);letter-spacing:-.6px;white-space:nowrap}\n.ygd-studio-sidebar-nav{padding:var(--ds-space-2) 0}\n.ygd-studio-sidebar-item{display:block;width:100%;padding:8px 10px;margin:2px 0;min-height:36px;border-radius:8px;font-size:14px;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-sidebar-item:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-sidebar-item[aria-current=\"page\"]{color:var(--ds-primary-dark);background:var(--ds-primary-light);font-weight:500}\n.ygd-studio-stage{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-topbar{height:46px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--ds-border);background:#fff;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-topbar span span{padding:0 10px;color:#b2b2b2}\n.ygd-studio-topbar-actions{display:flex;align-items:center;gap:12px}\n.ygd-studio-language{display:flex;align-items:center;padding:2px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-background)}\n.ygd-studio-sidebar-footer{margin-top:auto;padding:16px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}\n.ygd-studio-sidebar-utilities{width:100%}\n.ygd-studio-sidebar-footer>.ygd-studio-language{margin-left:4px}\n.ygd-studio-language button{height:30px;min-width:38px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--ds-text-secondary);font:400 14px/20px var(--ds-body-font);cursor:pointer}\n.ygd-studio-language button[aria-pressed=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark);font-weight:500}\n.ygd-studio-language button:focus-visible{outline:2px solid var(--ds-primary);outline-offset:1px}\n.ygd-studio-main{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}\n\n/* Content header */\n.ygd-studio-content-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;\n min-height:48px;padding:8px 20px;background:transparent;border-bottom:0;flex-shrink:0}\n.ygd-studio-header-title-group{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:nowrap;min-height:32px;min-width:0}\n.ygd-studio-header-title-group>.ygd-studio-kitmark{position:static;width:32px;height:32px;border-radius:8px}\n.ygd-studio-header-title-group>.ygd-studio-kitmark svg{width:20px;height:20px}\n.ygd-studio-header-title-group>.ygd-studio-search-input{height:32px;min-height:32px;min-width:0}\n.ygd-studio-page-title{font-family:var(--ds-heading-font);font-weight:500;font-size:18px;line-height:24px;color:var(--ds-text);letter-spacing:-.5px;min-width:0;overflow-wrap:anywhere}\n.ygd-studio-subtitle{font-size:12px;color:var(--ds-text-secondary);margin:0}\n.ygd-studio-context-label{display:none}\n.ygd-studio-version-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-readonly-badge{font-size:11px;padding:2px 8px;border-radius:var(--ds-radius);background:var(--ds-background);\n border:1px solid var(--ds-border);color:var(--ds-text-secondary);white-space:nowrap;font-weight:500}\n.ygd-studio-mounted-ref{font-size:11px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-1)}\n.ygd-studio-mounted-ref strong{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb{display:flex;align-items:center;gap:var(--ds-space-2);font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-breadcrumb-sep{color:var(--ds-border)}\n.ygd-studio-breadcrumb-current{color:var(--ds-text);font-weight:500}\n.ygd-studio-breadcrumb-button{border:none;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}\n.ygd-studio-breadcrumb-button:hover{color:var(--ds-primary)}\n\n/* Workplane tabs */\n.ygd-studio-workplane-bar{display:flex;gap:23px;border-bottom:1px solid var(--ds-border);background:transparent;\n margin:0 20px 14px;padding:0;flex-shrink:0;flex-wrap:wrap}\n.ygd-studio-workplane-tab{padding:0 2px 9px;font-size:13px;font-weight:500;\n color:var(--ds-text-secondary);cursor:pointer;border:none;background:none;border-bottom:2px solid transparent;\n font-family:var(--ds-body-font);transition:color var(--ds-duration-fast),border-color var(--ds-duration-fast)}\n.ygd-studio-workplane-tab:hover{color:var(--ds-text)}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-primary);border-bottom-color:var(--ds-primary)}\n\n/* Content body */\n.ygd-studio-content-body{flex:1;min-height:0;overflow-y:auto;padding:0 20px 18px;display:flex;flex-direction:column}\n/* File workspaces own their shared outer margins; do not add a second Kit inset. */\n.ygd-studio-kit-files-body{padding:0;overflow:hidden}\n\n/* Bundle search */\n.ygd-studio-search{margin-bottom:var(--ds-space-4);max-width:400px}\n.ygd-studio-search-input{width:100%;height:34px;min-height:34px;margin:0;padding:0 10px;font-size:13px;\n font-family:var(--ds-body-font);color:var(--ds-text);background:var(--ds-surface);\n border:1px solid var(--ds-border);border-radius:var(--ds-radius);outline:none;\n transition:border-color var(--ds-duration-fast)}\n.ygd-studio-search-input:focus{border-color:var(--ds-primary)}\n.ygd-studio-search-input::placeholder{color:var(--ds-text-secondary)}\n\n/* Shared Kit / Bundle catalog cards */\n.ygd-studio-kits-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-kit-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:15px;display:flex;flex-direction:column;gap:0;min-width:0;text-align:left;font:inherit;color:inherit;\n cursor:pointer;transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-kit-card:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-kit-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-2)}\n.ygd-studio-kit-card-name{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:15px;color:var(--ds-text)}\n.ygd-studio-kit-card-meta{display:flex;flex-direction:column;gap:var(--ds-space-1)}\n.ygd-studio-kit-card-meta-row{font-size:12px;color:var(--ds-text-secondary);display:flex;align-items:center;gap:var(--ds-space-2)}\n.ygd-studio-meta-label{color:var(--ds-text-secondary);min-width:80px}\n.ygd-studio-meta-value{color:var(--ds-text)}\n.ygd-studio-kit-card-actions{margin-top:var(--ds-space-1);padding-top:var(--ds-space-3);border-top:1px solid var(--ds-border)}\n.ygd-studio-btn-primary{display:inline-flex;align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);\n font-size:12px;font-weight:500;font-family:var(--ds-body-font);color:#fff;background:var(--ds-primary);border:none;\n border-radius:var(--ds-radius);cursor:pointer;transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-trial button.ygd-studio-btn-primary{background:var(--ds-primary);color:#fff;border-color:transparent}\n.ygd-studio-trial button.ygd-studio-btn-primary:hover{background:var(--ds-primary-dark)}\n.ygd-studio-trial button.ygd-studio-btn-primary:active{background:var(--ds-primary-active)}\n.ygd-studio-btn-link{font-size:12px;color:var(--ds-primary);cursor:pointer;border:none;background:none;\n font-family:var(--ds-body-font);padding:var(--ds-space-1) var(--ds-space-2);border-radius:var(--ds-radius);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-btn-link:hover{background:var(--ds-background)}\n\n/* Empty state */\n.ygd-studio-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-6);text-align:center;color:var(--ds-text-secondary);font-size:14px}\n\n/* Bundle items */\n.ygd-studio-bundles-list{display:flex;flex-direction:column;gap:var(--ds-space-3)}\n.ygd-studio-bundle-item{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-3);\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);transition:box-shadow var(--ds-duration-fast)}\n.ygd-studio-bundle-item:hover{box-shadow:var(--ds-shadow)}\n.ygd-studio-bundle-info{display:flex;flex-direction:column;gap:var(--ds-space-1);min-width:0;flex:1}\n.ygd-studio-bundle-name-row{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-bundle-name{font-weight:500;font-size:14px;color:var(--ds-text)}\n.ygd-studio-bundle-id{font-family:var(--ds-mono-font);font-size:11px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-purpose{font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-bundle-item-card{align-items:flex-start}\n.ygd-studio-card-description{font-size:12px;line-height:1.6;color:var(--ds-text-secondary);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}\n.ygd-studio-card-description .ygd-studio-markdown{max-width:none;font-size:12px;line-height:1.6;color:var(--ds-text-secondary)}\n.ygd-studio-card-description .ygd-studio-markdown p,\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{margin-bottom:var(--ds-space-1)}\n.ygd-studio-card-description .ygd-studio-markdown ul,\n.ygd-studio-card-description .ygd-studio-markdown ol{padding-left:var(--ds-space-4)}\n.ygd-studio-card-description .ygd-studio-markdown li{margin-bottom:2px}\n.ygd-studio-card-description .ygd-studio-markdown strong{color:var(--ds-text);font-weight:600}\n.ygd-studio-bundle-actions{flex-shrink:0}\n\n/* Document toolbar (rich/source toggle) */\n.ygd-studio-doc-toolbar{display:flex;align-items:center;gap:var(--ds-space-2);margin-bottom:var(--ds-space-3);flex-shrink:0}\n.ygd-studio-doc-toggle-group{display:inline-flex;border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n overflow:hidden;background:var(--ds-surface)}\n.ygd-studio-doc-toggle{padding:var(--ds-space-1) var(--ds-space-3);font-size:12px;line-height:18px;border:none;\n background:var(--ds-surface);color:var(--ds-text-secondary);cursor:pointer;font-family:var(--ds-body-font);\n transition:color var(--ds-duration-fast),background var(--ds-duration-fast)}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border-left:1px solid var(--ds-border)}\n.ygd-studio-doc-toggle:hover{color:var(--ds-text);background:var(--ds-background)}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:var(--ds-primary);color:#fff}\n.ygd-studio-doc-meta{margin-left:auto;font-size:11px;color:var(--ds-text-secondary);font-family:var(--ds-mono-font)}\n\n/* Frontmatter + rich markdown */\n.ygd-studio-frontmatter{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3) var(--ds-space-4);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);\n font-size:12px;line-height:1.6;color:var(--ds-text-secondary);white-space:pre-wrap;word-break:break-word}\n.ygd-studio-markdown{max-width:800px;font-size:var(--ds-base-font-size);line-height:1.7;color:var(--ds-text)}\n.ygd-studio-markdown h1{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:20px;margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown h2{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:16px;margin-top:var(--ds-space-5);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown h3,.ygd-studio-markdown h4{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;margin-top:var(--ds-space-4);margin-bottom:var(--ds-space-2)}\n.ygd-studio-markdown p{margin-bottom:var(--ds-space-3)}\n.ygd-studio-markdown ul,.ygd-studio-markdown ol{margin-bottom:var(--ds-space-3);padding-left:var(--ds-space-5)}\n.ygd-studio-markdown li{margin-bottom:var(--ds-space-1)}\n.ygd-studio-markdown code{font-family:var(--ds-mono-font);font-size:12px;background:var(--ds-background);padding:1px 4px;border-radius:3px;color:var(--ds-text)}\n.ygd-studio-markdown pre{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);\n padding:var(--ds-space-3);margin-bottom:var(--ds-space-4);font-family:var(--ds-mono-font);font-size:12px;line-height:1.6;overflow-x:auto}\n.ygd-studio-markdown pre code{background:none;padding:0}\n.ygd-studio-markdown-table-scroll{max-width:100%;overflow-x:auto;margin-bottom:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius)}\n.ygd-studio-markdown-table-scroll:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-markdown table{width:100%;border-collapse:collapse;font-size:inherit;line-height:1.6}\n.ygd-studio-markdown th,.ygd-studio-markdown td{padding:8px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-markdown th{background:var(--ds-background);font-weight:600}\n.ygd-studio-markdown th+th,.ygd-studio-markdown td+td{border-left:1px solid var(--ds-border)}\n.ygd-studio-markdown tbody tr:last-child td{border-bottom:0}\n.ygd-studio-markdown tbody tr:nth-child(even){background:var(--ds-background)}\n\n/* Code viewer with line numbers; fills the remaining height of its flex parent */\n.ygd-studio-code-frame{flex:1 1 auto;min-height:min(64vh,52rem);display:flex;flex-direction:column;\n background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-code-scroll{flex:1;min-height:0;overflow:auto;padding:var(--ds-space-4) 0}\n.ygd-studio-code-view{display:flex;font-family:var(--ds-mono-font);font-size:13px;line-height:1.6;color:var(--ds-text)}\n.ygd-studio-line-numbers{width:44px;flex-shrink:0;text-align:right;padding:0 var(--ds-space-3);color:var(--ds-text-secondary);\n font-size:12px;line-height:1.6;user-select:none;border-right:1px solid var(--ds-border);margin-right:var(--ds-space-3);white-space:pre}\n.ygd-studio-code-body{margin:0;padding:0 var(--ds-space-4) 0 0;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;\n font-family:var(--ds-mono-font);font-size:13px;line-height:1.6}\n\n/* Summaries */\n.ygd-studio-summary-panel{margin-top:var(--ds-space-5);border-top:1px solid var(--ds-border);padding-top:var(--ds-space-4)}\n.ygd-studio-summary-title{font-family:var(--ds-heading-font);font-weight:var(--ds-heading-weight);font-size:14px;color:var(--ds-text);margin-bottom:var(--ds-space-3)}\n.ygd-studio-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}\n.ygd-studio-summary-card{background:var(--ds-background);border:1px solid var(--ds-border);border-radius:var(--ds-radius);padding:var(--ds-space-3)}\n.ygd-studio-summary-card-title{font-size:12px;font-weight:600;color:var(--ds-text-secondary);margin-bottom:var(--ds-space-2);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-summary-field{display:flex;justify-content:space-between;gap:var(--ds-space-2);padding:var(--ds-space-1) 0;font-size:12px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-summary-field:last-child{border-bottom:none}\n.ygd-studio-summary-field-name{color:var(--ds-text)}\n.ygd-studio-summary-field-type{font-family:var(--ds-mono-font);color:var(--ds-text-secondary);font-size:11px}\n\n/* Native Panel readonly placeholder */\n.ygd-studio-panel-container{margin-top:var(--ds-space-5);border:1px solid var(--ds-border);border-radius:var(--ds-radius);overflow:hidden}\n.ygd-studio-panel-header{padding:var(--ds-space-2) var(--ds-space-3);background:var(--ds-background);\n border-bottom:1px solid var(--ds-border);font-size:12px;font-weight:600;color:var(--ds-text-secondary);\n display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}\n.ygd-studio-panel-badge{font-size:10px;padding:1px 6px;border-radius:var(--ds-radius);background:var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-panel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;\n padding:var(--ds-space-5);text-align:center;color:var(--ds-text-secondary);gap:var(--ds-space-2)}\n.ygd-studio-panel-placeholder-text{font-size:13px}\n.ygd-studio-panel-placeholder-sub{font-size:11px;opacity:.7}\n\n/* Bundle workspace two-pane body */\n.ygd-studio-workspace-body{flex:1;display:flex;min-height:0;overflow:hidden;margin:0 20px 18px;border:1px solid var(--ds-border);border-radius:10px;background:#fff}\n.ygd-studio-workspace [hidden]{display:none!important}\n.ygd-studio-file-tree-pane{width:240px;flex-shrink:0;background:var(--ds-surface);border-right:1px solid var(--ds-border);\n display:flex;flex-direction:column;overflow:hidden}\n.ygd-studio-file-tree-header{padding:var(--ds-space-2) var(--ds-space-3);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);border-bottom:1px solid var(--ds-border)}\n.ygd-studio-file-tree{flex:1;overflow-y:auto;padding:var(--ds-space-2) 0}\n.ygd-studio-tree-section{padding:var(--ds-space-2) var(--ds-space-3) var(--ds-space-1);font-size:11px;font-weight:600;\n color:var(--ds-text-secondary);text-transform:uppercase;letter-spacing:.03em}\n.ygd-studio-tree-node{display:flex;align-items:center;gap:var(--ds-space-2);width:100%;padding:var(--ds-space-1) var(--ds-space-3);\n font-size:13px;color:var(--ds-text);cursor:pointer;border:none;background:none;text-align:left;font-family:var(--ds-body-font);\n transition:background var(--ds-duration-fast)}\n.ygd-studio-tree-node:hover{background:var(--ds-background)}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-tree-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.ygd-studio-content-pane{flex:1;display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:var(--ds-space-4) var(--ds-space-5)}\n\n/* Diagnostics */\n.ygd-studio-diagnostics{margin:var(--ds-space-3) var(--ds-space-5) 0;padding:10px 14px;border-radius:var(--ds-radius);\n border:1px solid #FECACA;background:#FEF2F2;color:var(--ds-error);list-style:none;font-size:13px}\n\n/* Explicit sample-only authoring. Runtime Panel descendants keep their own styles. */\n.ygd-studio-draft-layout{display:flex;flex:1;min-height:0;overflow:hidden;font-size:14px}\n.ygd-studio-draft-list{width:210px;flex-shrink:0;overflow:auto;border-right:1px solid var(--ds-border,#e5e7eb);padding:12px}\n.ygd-studio-draft-list>button{display:flex;flex-direction:column;gap:4px;width:100%;padding:10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:inherit;font:inherit;cursor:pointer}\n.ygd-studio-draft-list>button[aria-current]{background:var(--ds-bg-hover,#f1f5f9);border-color:var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-list small{opacity:.7;overflow-wrap:anywhere}\n.ygd-studio-draft-editor{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;overflow:auto}\n.ygd-studio-draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid var(--ds-border,#e5e7eb)}\n.ygd-studio-draft-toolbar>span{font-size:12px;opacity:.7}\n.ygd-studio-draft-toolbar>button{font:inherit;padding:6px 10px;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;background:var(--ds-bg,#fff);color:inherit;cursor:pointer}\n.ygd-studio-draft-toolbar>button:disabled{opacity:.45;cursor:default}\n.ygd-studio-draft-sources{padding:12px}\n.ygd-studio-draft-sources summary{cursor:pointer}\n.ygd-studio-draft-sources fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;padding:12px 0}\n.ygd-studio-draft-sources label{display:flex;flex-direction:column;gap:6px;min-width:0}\n.ygd-studio-draft-sources textarea{height:220px;resize:vertical;font:12px/1.5 monospace;border:1px solid var(--ds-border,#d1d5db);border-radius:6px;padding:8px;color:inherit;background:var(--ds-bg,#fff)}\n.ygd-studio-draft-preview{flex:1;min-height:320px;position:relative;overflow:auto;padding:12px}\n/* Archive stages form one scrolling document, not competing flex editors. */\n.ygd-studio-archive .ygd-studio-content-body{display:block}\n.ygd-studio-archive .ygd-studio-draft-editor{flex:none;overflow:visible;gap:12px;padding:16px 0}\n.ygd-studio-archive .ygd-studio-draft-editor>button{align-self:flex-start}\n.ygd-studio-archive h2,.ygd-studio-archive h3{font-size:14px;font-weight:600;margin:0}\n.ygd-studio-archive p{margin:0;overflow-wrap:anywhere}\n.ygd-studio-archive details{margin:12px 0}\n.ygd-studio-archive summary{cursor:pointer}\n.ygd-studio-archive .ygd-studio-draft-list{width:auto;border-right:0}\n.ygd-studio-archive fieldset.ygd-studio-draft-sources{display:grid;gap:12px;border:0;padding:0}\n.ygd-studio-archive .ygd-studio-draft-sources input{width:100%}\n/* Approved compact Studio composition; neutral controls measured on yugoo.cn. */\n.ygd-studio-content-header:has(.ygd-studio-breadcrumb){display:block}\n.ygd-studio-content-header .ygd-studio-breadcrumb{margin-bottom:10px}\n.ygd-studio-content-header>div:has(>.ygd-studio-header-title-group){display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;width:100%;min-width:0}\n.ygd-studio-content-header>div:has(>.ygd-studio-hero-actions)>.ygd-studio-header-title-group{flex:1 1 200px}\n.ygd-studio-hero-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;flex-wrap:wrap;max-width:100%}\n.ygd-studio-hero-actions .ygd-studio-trial{position:relative}\n.ygd-studio-hero-actions .ygd-studio-trial:has([aria-expanded=\"true\"]){width:auto}\n.ygd-studio-hero-actions .ygd-studio-trial>.ygd-studio-summary-card{position:absolute;right:0;top:100%;z-index:20;width:min(480px,75vw);max-height:65vh;overflow:auto;box-shadow:0 8px 30px #0002}\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin-top:8px;margin-right:6px}\n.ygd-studio-file-tree-pane{width:230px;background:#f8f9fb}\n.ygd-studio-file-tree{padding:8px 0}\n.ygd-studio-tree-node,.ygd-studio-tree-folder>summary{height:28px;min-height:28px;display:flex;align-items:center;gap:6px;padding:0 10px;font:400 13px/28px var(--ds-body-font);color:#404957;white-space:nowrap;cursor:pointer}\n.ygd-studio-tree-folder>summary{list-style:none}\n.ygd-studio-tree-folder>summary::-webkit-details-marker{display:none}\n.ygd-studio-tree-folder>summary:hover,.ygd-studio-tree-node:hover{background:#eef0f4}\n.ygd-studio-tree-children{margin-left:14px;padding-left:8px;border-left:1px solid #e3e6ec}\n.ygd-studio-chevron{width:10px;flex:0 0 10px;color:#8793a6;font-size:16px}\n.ygd-studio-tree-folder[open]>summary .ygd-studio-chevron{transform:rotate(90deg)}\n.ygd-studio-file-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;color:#8793a6}\n.ygd-studio-file-icon.markdown{color:#698aaf}.ygd-studio-file-icon.config{color:#a98e4e}\n.ygd-studio-tree-node[aria-current=\"true\"]{background:var(--ds-primary-light);box-shadow:inset 2px 0 var(--ds-primary);color:var(--ds-primary-dark)}\n.ygd-studio-file-path{font:12px var(--ds-body-font);color:var(--ds-text-secondary);padding-bottom:12px;overflow-wrap:anywhere}\n.ygd-studio-content-pane{padding:14px 20px;background:#fff}\n.ygd-studio-mindset-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:14px;min-height:0;flex:1}\n.ygd-studio-document-card{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:#fff;overflow:hidden}\n.ygd-studio-document-card>.ygd-studio-doc-toolbar{padding:9px 14px;border-bottom:1px solid var(--ds-border);margin:0}\n.ygd-studio-document-name{font:500 13px var(--ds-mono-font);margin-right:auto}\n.ygd-studio-file-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;flex:1;min-width:180px}\n.ygd-studio-file-heading>.ygd-studio-document-name{margin-right:0;overflow-wrap:anywhere}\n.ygd-studio-file-purpose{font:400 12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);flex:1;min-width:140px;overflow-wrap:anywhere}\n.ygd-studio-file-info{flex:0 0 224px;box-sizing:border-box;min-height:0;overflow:auto;border-left:1px solid var(--ds-border);padding:16px;background:var(--ds-surface,#fafafa)}\n.ygd-studio-file-info h3{margin:0 0 8px;font:500 13px/1.5 var(--ds-body-font)}\n.ygd-studio-file-info .ygd-studio-markdown{font:400 12px/1.7 var(--ds-body-font);color:var(--ds-text-secondary);max-width:none}\n.ygd-studio-file-info .ygd-studio-markdown p{margin:0 0 8px}\n.ygd-studio-file-info .ygd-studio-markdown ul{padding-left:16px;margin:0}\n.ygd-studio-card-meta{font-size:11px;line-height:1.6;color:var(--ds-text-secondary);margin:0 0 12px}\n@media(max-width:1100px){.ygd-studio-file-info{flex-basis:180px;padding:12px}}\n@media(max-width:800px){\n .ygd-studio-files-layout{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}\n .ygd-studio-files-layout>.ygd-studio-file-tree-pane{grid-row:1 / 3;width:150px}\n .ygd-studio-files-layout>.ygd-studio-content-pane{grid-column:2;grid-row:1;min-height:0}\n .ygd-studio-files-layout>.ygd-studio-file-info{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--ds-border);max-height:140px}\n}\n.ygd-studio-doc-meta{margin-left:0}\n.ygd-studio-kitmark{width:43px;height:43px;border-radius:11px;background:#ededed;color:#575757;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}\n.ygd-studio-kitmark svg{width:24px;height:24px}\n.ygd-studio-btn-secondary{border:1px solid var(--ds-border);border-radius:8px;padding:6px 11px;background:white;font:500 13px var(--ds-body-font);color:var(--ds-text);cursor:pointer;white-space:nowrap}\n.ygd-studio-btn-secondary:disabled{color:#aaa;cursor:not-allowed;background:#fafafa}\n.ygd-studio-instance-actions{display:flex;gap:6px}\n.ygd-studio-modal{width:min(640px,90vw);max-height:82vh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--ds-border);border-radius:12px;background:#fff;color:var(--ds-text);font:14px/1.6 var(--ds-body-font)}\n.ygd-studio-modal::backdrop{background:#0005}\n.ygd-studio-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}\n.ygd-studio-modal h2{font-size:18px}.ygd-studio-modal>header button{border:0;background:none;font:24px var(--ds-body-font);cursor:pointer;color:#6d6d6d}\n.ygd-studio-modal>p{margin:10px 0;color:var(--ds-text-secondary);font-size:13px}\n.ygd-studio-modal .ygd-studio-code-frame{min-height:0;max-height:60vh}.ygd-studio-modal .ygd-studio-code-scroll{max-height:60vh}\n.ygd-studio-topbar{gap:12px}.ygd-studio-topbar>span{display:flex;align-items:center;gap:8px}\n.ygd-studio-content-header .ygd-studio-breadcrumb{display:none}\n.ygd-studio-filter-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-filter-row input{max-width:280px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-item{display:flex;flex-direction:column;align-items:stretch;padding:15px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px;margin-bottom:8px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-actions{border-top:1px solid var(--ds-border);padding-top:10px}\n.ygd-studio-bundles-list[aria-label=\"Mounted Bundles\"] .ygd-studio-bundle-id{display:none}\n.ygd-studio-mindset-document{padding:18px 24px;overflow:auto;flex:1;min-height:0}\n.ygd-studio-mindset-info{padding:16px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;align-self:start;max-height:100%;overflow:auto}\n.ygd-studio-mindset-info h3{font-size:14px}.ygd-studio-mindset-info p{font-size:12px;color:var(--ds-text-secondary);margin:8px 0 12px}\n.ygd-studio-toc{margin-top:13px;padding-top:12px;border-top:1px solid var(--ds-border)}\n.ygd-studio-toc button{display:block;width:100%;text-align:left;border:0;background:none;padding:4px 0;font:12px/1.6 var(--ds-body-font);color:var(--ds-text-secondary);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.ygd-studio-installed-preview{display:flex;flex-direction:column;margin:0 20px 18px;min-height:0;flex:1;overflow:auto;border:1px solid var(--ds-border);border-radius:10px;background:#fff;padding:0}\n.ygd-studio-preview-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px;padding:6px 12px;border-bottom:1px solid var(--ds-border);color:var(--ds-text-secondary)}\n.ygd-studio-preview-actions{display:flex;gap:8px;align-items:center}\n.ygd-studio-preview-actions button{height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:1;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}\n.ygd-studio-preview-toolbar strong{color:var(--ds-text)}\n.ygd-studio-preview-sample{margin-top:16px;font-size:12px}\n.ygd-studio-preview-sample summary{cursor:pointer;padding:8px 0}\n.ygd-studio-preview-sample textarea{display:block;width:100%;padding:12px;border:1px solid var(--ds-border);border-radius:8px;font:13px/1.6 var(--ds-mono-font);margin-bottom:8px}\n.ygd-studio-mounts-inspector{margin:0 20px 14px;padding:14px;border:1px solid var(--ds-border);border-radius:10px;background:#fff;max-height:240px;overflow:auto}\n.ygd-studio-mounts-inspector p{margin:8px 0;font-size:13px}\n.ygd-studio-trial{display:inline-flex;vertical-align:middle;margin:0}\n.ygd-studio-hero-actions .ygd-studio-trial>button{height:32px;min-height:32px;margin:0;padding:0 12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}\n.ygd-studio-installed-status{font-size:12px;line-height:20px;color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-instance-menu{position:relative;display:inline-block}\n.ygd-studio-instance-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font-weight:600}\n.ygd-studio-instance-menu>summary::-webkit-details-marker{display:none}\n.ygd-studio-instance-menu>div{position:absolute;right:0;top:100%;z-index:20;min-width:160px;padding:4px;background:#fff;border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 4px 16px #00000012}\n.ygd-studio-instance-menu>div>button{display:block;width:100%;padding:8px;border:0;background:none;text-align:left;font:inherit;cursor:pointer;border-radius:4px;white-space:nowrap}\n.ygd-studio-instance-menu>div>button:hover{background:var(--ds-primary-light)}\n.ygd-studio-trial select{max-width:100%;height:32px;border:1px solid var(--ds-border);border-radius:8px;background:#fff;font:inherit}\n.ygd-studio-workspace button:focus-visible,.ygd-studio-workspace summary:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n/* Responsive */\n/* Demo geometry, Yugoo brand tokens: one hero, one document toolbar, one body. */\n.ygd-studio-content-header .ygd-studio-btn-primary,.ygd-studio-content-header .ygd-studio-btn-link{margin:0}\n.ygd-studio-content-header .ygd-studio-catalog-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;max-width:100%;margin:0 0 0 auto;color:var(--ds-primary-dark);text-decoration:none;overflow-wrap:anywhere}\n.ygd-studio-catalog-link svg{flex-shrink:0}\n.ygd-studio-catalog-link:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}\n.ygd-studio-sidebar-nav{padding:0}\n.ygd-studio-sidebar-item{display:flex;align-items:center;gap:10px}\n.ygd-studio-sidebar-item .ygd-studio-kitmark{width:18px;height:18px;background:none;color:inherit;border-radius:0}\n.ygd-studio-sidebar-item .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-kitmark{background:var(--ds-primary-light);color:var(--ds-primary-dark)}\n.ygd-studio-content-pane{display:flex;flex-direction:column;padding:0;overflow:hidden}\n.ygd-studio-content-pane>.ygd-studio-doc-toolbar{margin:0;padding:9px 14px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-document-body{flex:1;min-height:0;overflow:auto;padding:18px 24px}\n.ygd-studio-document-body:has(>.ygd-studio-loading),.ygd-studio-live-pane-body:has(>.ygd-studio-loading){display:flex;flex-direction:column}\n.ygd-studio-file-metadata{margin-bottom:18px;border-radius:8px;background:var(--ds-primary-light,#f7f4fe);color:var(--ds-text-secondary)}\n.ygd-studio-file-metadata>summary{padding:12px;font-size:12px;cursor:pointer}\n.ygd-studio-file-metadata .ygd-studio-frontmatter{margin:0;border:0;background:transparent}\n.ygd-studio-document-body:has(>.ygd-studio-code-frame){padding:0}\n.ygd-studio-mindset-document .ygd-studio-markdown,.ygd-studio-document-body .ygd-studio-markdown{max-width:none}\n.ygd-studio-mindset-document .ygd-studio-markdown h1,.ygd-studio-document-body .ygd-studio-markdown h1{font-size:22px;margin-bottom:14px}\n.ygd-studio-mindset-document .ygd-studio-markdown h2,.ygd-studio-document-body .ygd-studio-markdown h2{font-size:17px;margin:23px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-doc-toolbar{min-height:51px;gap:10px;flex-wrap:wrap}\n.ygd-studio-doc-toggle-group{border:0;background:var(--ds-background);padding:3px;gap:2px}\n.ygd-studio-doc-toggle{background:transparent;border-radius:5px;padding:4px 9px}\n.ygd-studio-doc-toggle+.ygd-studio-doc-toggle{border:0}\n.ygd-studio-doc-toggle[aria-pressed=\"true\"]{background:#fff;color:var(--ds-text);box-shadow:0 1px 3px #0001}\n.ygd-studio-doc-footer{display:flex;align-items:center;gap:12px;padding:7px 14px;border-top:1px solid var(--ds-border);font-size:11px;color:var(--ds-text-secondary);flex-shrink:0}\n.ygd-studio-doc-footer>span:last-child{margin-left:auto}\n.ygd-studio-doc-footer button{font-size:11px;padding:0}\n.ygd-studio-inline-actions{display:inline-flex;align-items:center;gap:6px;font-size:12px}\n.ygd-studio-inline-actions button{font:inherit;padding:7px 11px;border:0;border-radius:8px;background:var(--ds-primary-light);color:var(--ds-primary-dark);cursor:pointer}\n.ygd-studio-inline-actions button:disabled{opacity:.5;cursor:default}\n.ygd-studio-btn-soft{background:var(--ds-primary-light);color:var(--ds-primary-dark);border-color:transparent}\n.ygd-studio-mindset-info>.ygd-studio-btn-link{background:var(--ds-primary-light);color:var(--ds-primary-dark);padding:8px 11px}\n.ygd-studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\n.ygd-studio-card-top .ygd-studio-kitmark{width:28px;height:28px;border-radius:7px}\n.ygd-studio-card-top .ygd-studio-kitmark svg{width:18px;height:18px}\n.ygd-studio-card-pill{font-size:11px;border:1px solid var(--ds-border);border-radius:5px;padding:2px 6px;color:var(--ds-text-secondary)}\n.ygd-studio-source-id{font:11px/1.6 var(--ds-mono-font);color:var(--ds-text-secondary);margin-top:2px}\n.ygd-studio-kit-card .ygd-studio-card-description{margin:8px 0 12px;min-height:0}\n.ygd-studio-kit-card-actions{display:flex;align-items:center;gap:5px;margin-top:auto}\n.ygd-studio-kit-card-actions button{font-size:12px;padding:5px 8px}\n.ygd-studio-filter-row>span{margin-right:auto}\n.ygd-studio-workplane-tab[aria-selected=\"true\"],.ygd-studio-workplane-tab[aria-pressed=\"true\"]{color:var(--ds-text)}\n.ygd-studio-mindset-inline{padding:8px 16px;border-bottom:1px solid var(--ds-border)}\n.ygd-studio-mindset-inline .ygd-studio-draft-toolbar{display:flex;align-items:center;gap:8px}\n.ygd-studio-mindset-inline button,.ygd-studio-mindset-recovery select{font:inherit;min-height:30px;border:1px solid var(--ds-border);border-radius:8px;padding:4px 10px;background:#fff;color:var(--ds-text)}\n.ygd-studio-mindset-inline button:last-of-type{background:var(--ds-primary);color:white;border-color:transparent}\n.ygd-studio-mindset-inline button:disabled{opacity:.5}\n.ygd-studio-mindset-inline textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;padding:12px;font:13px/1.6 var(--ds-mono-font);border:1px solid var(--ds-border);border-radius:8px;resize:vertical}\n.ygd-studio-mindset-inline pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}\n.ygd-studio-mindset-inline .ygd-studio-draft-sources{display:grid;gap:10px}\n.ygd-studio-mindset-inline:has(textarea)+.ygd-studio-mindset-document{display:none}\n.ygd-studio-mindset-recovery{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:1023px){\n .ygd-studio-sidebar{position:fixed;left:-200px;top:0;bottom:0;z-index:var(--ds-z-drawer);\n transition:left var(--ds-duration-normal);width:200px}\n .ygd-studio-sidebar.open{left:0}\n .ygd-studio-menu-btn{display:flex;position:fixed;top:var(--ds-space-2);left:var(--ds-space-2);z-index:calc(var(--ds-z-drawer) + 1)}\n .ygd-studio-content-header{padding-left:48px}\n .ygd-studio-file-tree-pane{width:180px}\n .ygd-studio-summary-grid{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-topbar{padding-left:48px}\n .ygd-studio-mindset-layout{grid-template-columns:minmax(0,1fr)}\n .ygd-studio-mindset-info{max-height:140px}.ygd-studio-toc{display:none}\n}\n.ygd-studio-hero-actions button{box-sizing:border-box;height:32px;min-height:32px;margin-top:0;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;line-height:1}\n.ygd-studio-preview-slot,.ygd-studio-trial-slot{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden;background:#fff}\n.ygd-studio-preview-slot[hidden],.ygd-studio-trial-slot[hidden],.ygd-studio-trial-workspace[hidden],.ygd-studio-trial-input[hidden]{display:none}\n.ygd-studio-trial-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%}\n.ygd-studio-trial-history{display:flex;align-items:center;gap:10px;padding:6px 10px;border-bottom:1px solid var(--ds-border);font-size:12px;flex-wrap:wrap}\n.ygd-studio-trial-history button,.ygd-studio-trial-history select{height:30px;box-sizing:border-box}\n.ygd-studio-trial-workarea{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0}\n.ygd-studio-trial-result{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}.ygd-studio-trial-result iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}.ygd-studio-trial-result-details{padding:6px 12px;border-top:1px solid var(--ds-border);font-size:12px;max-height:150px;overflow:auto}\n.ygd-studio-trial-input{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--ds-border);padding:12px;overflow:auto;min-width:0;min-height:0;font-size:12px}.ygd-studio-trial-input h3{font-size:13px;margin:0}.ygd-studio-trial-input textarea{width:100%;box-sizing:border-box;flex:1;min-height:120px;resize:none;padding:12px;margin:0;font:inherit;line-height:1.65;border:1px solid var(--ds-border);border-radius:8px}.ygd-studio-trial-input pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}\n.ygd-studio-trial-slot{margin:0;border:0;border-radius:0}\n.ygd-studio-trial-save{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:8px;padding:10px 16px;border-top:1px solid var(--ds-border);background:#fff}\n.ygd-studio-trial-save .ygd-studio-trial-hint{margin:0 auto 0 0;font-size:12px;color:var(--ds-text-secondary)}\n.ygd-studio-trial-save button{height:32px;white-space:nowrap}\n.ygd-studio-trial-input-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}\n.ygd-studio-trial-input .ygd-studio-trial-input-heading h3{margin:0}\n.ygd-studio-trial-status{font-size:11px;line-height:20px;padding:0 7px;border-radius:10px;background:var(--ds-background);color:var(--ds-text-secondary);white-space:nowrap}\n.ygd-studio-trial-status[data-state=\"waiting\"],.ygd-studio-trial-status[data-state=\"completed\"]{background:var(--ds-primary-light);color:var(--ds-primary)}\n.ygd-studio-trial-status[data-state=\"failed\"]{color:#b42318;background:#fff1ef}\n.ygd-studio-workspace button:disabled{opacity:.45;cursor:not-allowed}\n.ygd-studio-bundle-main .ygd-studio-content-header{padding:8px 16px}\n.ygd-studio-bundle-main .ygd-studio-hero-actions{margin:0}\n.ygd-studio-bundle-main .ygd-studio-workplane-bar{min-height:36px;padding:0 16px;margin:0}\n.ygd-studio-bundle-main .ygd-studio-installed-preview{position:relative;margin:0;flex:1;min-height:0;overflow:auto;padding:8px 16px}\n.ygd-studio-editor-heading{display:flex;align-items:center;gap:12px;padding:8px 12px;border-bottom:1px solid var(--ds-border);font-size:13px}\n.ygd-studio-editor-heading>span{margin-left:auto;color:var(--ds-text-secondary);font-size:12px}\n.ygd-studio-panel-split,.ygd-studio-trial-workarea.with-input{grid-template-columns:minmax(260px,32%) minmax(0,1fr)}\n.ygd-studio-panel-split{display:grid;grid-template-rows:minmax(0,1fr);flex:1;min-width:0;min-height:0;overflow:hidden}\n.ygd-studio-yaml-pane,.ygd-studio-live-pane{display:flex;flex-direction:column;min-width:0;min-height:0}\n.ygd-studio-yaml-pane{border-right:1px solid var(--ds-border)}\n.ygd-studio-yaml-pane>header,.ygd-studio-live-pane>header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--ds-border);min-height:34px;font-size:12px}\n.ygd-studio-yaml-pane>header>span,.ygd-studio-live-pane>header>span{color:var(--ds-text-secondary);font-size:11px}\n.ygd-studio-yaml-pane>header>button,.ygd-studio-live-pane>header>button{margin-left:auto;height:30px}\n.ygd-studio-yaml-pane>textarea{flex:1;min-height:0;resize:none;border:0;outline-offset:-2px;padding:12px;background:#fafafa;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}\n.ygd-studio-live-pane-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;padding:0}\n.ygd-studio-workspace .ygd-studio-trial-availability{padding:16px;max-width:400px;margin:auto;text-align:center;color:var(--ds-text-secondary);font-size:13px;line-height:1.6}\n.ygd-studio-trial-input>.ygd-studio-loading{flex:1}\n.ygd-studio-editor-errors{max-height:120px;overflow:auto;padding:0 12px;font-size:12px;color:#b42318}\n.ygd-studio-trial-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}\n.ygd-studio-trial-columns>section{min-width:0;padding:16px;border:1px solid var(--ds-border);border-radius:10px;font-size:13px}\n.ygd-studio-trial-columns h3{margin:0 0 12px;font-size:14px}.ygd-studio-trial-columns textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 12px;resize:vertical;font:inherit;line-height:1.6;padding:10px;border:1px solid var(--ds-border);border-radius:8px}\n.ygd-studio-trial-columns pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.ygd-studio-trial-columns details{margin:12px 0}.ygd-studio-trial-hint{color:var(--ds-text-secondary);font-size:12px}\n@media(max-width:650px){.ygd-studio-trial-columns{grid-template-columns:minmax(0,1fr)}.ygd-studio-file-tree-pane{width:150px}.ygd-studio-content-pane{padding:12px}.ygd-studio-workspace-body{margin:0 12px 12px}}\n";
|
|
609
627
|
//#endregion
|
|
610
628
|
//#region src/MindsetInlineEditor.d.ts
|
|
611
629
|
interface MindsetInlineEditorProps {
|
|
@@ -629,4 +647,4 @@ interface MindsetInlineEditorProps {
|
|
|
629
647
|
/** Embed in the selected Kit's Mindset page; no extra navigation/workbench. */
|
|
630
648
|
declare function MindsetInlineEditor({ authoring, kit, installedSource, initialId, onRecord, locale, onSource, onDirtyChange, renderContent }: MindsetInlineEditorProps): ReactElement;
|
|
631
649
|
//#endregion
|
|
632
|
-
export { ContentArchiveWorkbench, MindsetInlineEditor, type MindsetInlineEditorProps, STUDIO_WORKSPACE_CSS, type StudioAuthoring, type StudioAuthoringClient, type StudioBundleFileViewerState, type StudioClientFailure, type StudioComponentDirectoryProps, type StudioComponentEntry, type StudioComponentLibrary, type StudioContentAdoptionResult, StudioContentArchiveController, type StudioContentClient, type StudioContentImportRecord, type StudioContentImportSummary, type StudioInstance, type StudioInstanceClient, type StudioKitAuthoring, type StudioKitAuthoringClient, StudioKitDraftController, type StudioKitWorkspaceTab, type StudioManagementClient, type StudioManagementFailure, StudioPanelDraftController, type StudioPanelDraftState, type StudioPanelPreviewClient, type StudioSection, type StudioTrialClient, StudioTrialController, type StudioTrialRecord, type StudioTrialSource, type StudioTrialState, type StudioUiLibrary, StudioWorkspace, StudioWorkspaceController, type StudioWorkspaceProps, type StudioWorkspaceState, assertStudioImportRequestSize, checkStudioTrialConnection, localTrialUrl, trialActive };
|
|
650
|
+
export { ContentArchiveWorkbench, MindsetInlineEditor, type MindsetInlineEditorProps, STUDIO_WORKSPACE_CSS, type StudioAuthoring, type StudioAuthoringClient, type StudioBundleFileViewerState, type StudioClientFailure, type StudioComponentDirectoryProps, type StudioComponentEntry, type StudioComponentLibrary, type StudioContentAdoptionResult, StudioContentArchiveController, type StudioContentClient, type StudioContentImportRecord, type StudioContentImportSummary, type StudioInstance, type StudioInstanceClient, type StudioKitAuthoring, type StudioKitAuthoringClient, StudioKitDraftController, type StudioKitWorkspaceTab, type StudioManagementClient, type StudioManagementFailure, StudioPanelDraftController, type StudioPanelDraftState, type StudioPanelPreviewClient, type StudioSection, type StudioSelectProps, type StudioSelectRenderer, type StudioTrialClient, StudioTrialController, type StudioTrialRecord, type StudioTrialSource, type StudioTrialState, type StudioUiLibrary, StudioWorkspace, StudioWorkspaceController, type StudioWorkspaceProps, type StudioWorkspaceState, assertStudioImportRequestSize, checkStudioTrialConnection, localTrialUrl, trialActive };
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
1
|
+
import { Fragment, createContext, createElement, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
2
2
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
//#region src/controller.ts
|
|
@@ -707,6 +707,17 @@ const STUDIO_WORKSPACE_CSS = `
|
|
|
707
707
|
background:var(--ds-background);color:var(--ds-text);
|
|
708
708
|
font-family:var(--ds-body-font);font-size:var(--ds-base-font-size);line-height:var(--ds-line-height)}
|
|
709
709
|
.ygd-studio-workspace *{box-sizing:border-box}
|
|
710
|
+
.ygd-studio-workspace .ygd-studio-select{
|
|
711
|
+
--ds-bg-white:var(--ds-surface);--ds-fill-5:var(--ds-border);--ds-border-default:var(--ds-border);
|
|
712
|
+
--ds-text-primary:var(--ds-text);--ds-icon-outline-default:var(--ds-text-secondary);
|
|
713
|
+
--ds-brand-light-bg-default:var(--ds-primary-light);--ds-brand-text-primary:var(--ds-primary-dark);
|
|
714
|
+
--ds-radius-4:var(--ds-radius);--ygd-panel-control-focus:var(--ds-primary);
|
|
715
|
+
display:inline-flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;max-width:100%;height:32px;
|
|
716
|
+
padding:4px 10px;border:1px solid var(--ds-border);border-radius:var(--ds-radius);background:var(--ds-surface);color:var(--ds-text);font:inherit;line-height:20px;text-align:start;cursor:pointer}
|
|
717
|
+
.ygd-studio-select:focus-visible{outline:2px solid var(--ds-primary);outline-offset:2px}
|
|
718
|
+
.ygd-studio-select:disabled{cursor:not-allowed;opacity:.6}
|
|
719
|
+
button.ygd-studio-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
720
|
+
button.ygd-studio-select>span:last-child{display:flex;flex:none;align-items:center;color:var(--ds-text-secondary)}
|
|
710
721
|
.ygd-studio-workspace h1,.ygd-studio-workspace h2,.ygd-studio-workspace h3,.ygd-studio-workspace h4,.ygd-studio-workspace p,.ygd-studio-workspace ul,.ygd-studio-workspace ol{margin:0}
|
|
711
722
|
|
|
712
723
|
/* Narrow-viewport drawer toggle; positioned by the responsive block below */
|
|
@@ -1173,6 +1184,39 @@ function LoadingIndicator({ label }) {
|
|
|
1173
1184
|
});
|
|
1174
1185
|
}
|
|
1175
1186
|
//#endregion
|
|
1187
|
+
//#region src/StudioSelect.tsx
|
|
1188
|
+
const StudioSelectContext = createContext(void 0);
|
|
1189
|
+
/** Hosts may supply their shared accessible control; minimal hosts keep a
|
|
1190
|
+
* controlled native select, including visible unknown values and disabled state. */
|
|
1191
|
+
function StudioSelect({ className, ...props }) {
|
|
1192
|
+
const renderer = useContext(StudioSelectContext);
|
|
1193
|
+
const controlProps = {
|
|
1194
|
+
...props,
|
|
1195
|
+
className: `ygd-studio-select${className ? ` ${className}` : ""}`
|
|
1196
|
+
};
|
|
1197
|
+
if (renderer) return createElement(renderer, controlProps);
|
|
1198
|
+
const choices = props.options.some((option) => option.value === props.value) ? props.options : [{
|
|
1199
|
+
value: props.value,
|
|
1200
|
+
label: props.value,
|
|
1201
|
+
disabled: props.value !== ""
|
|
1202
|
+
}, ...props.options];
|
|
1203
|
+
return /* @__PURE__ */ jsx("select", {
|
|
1204
|
+
className: controlProps.className,
|
|
1205
|
+
"aria-label": props["aria-label"],
|
|
1206
|
+
value: props.value,
|
|
1207
|
+
disabled: props.disabled,
|
|
1208
|
+
onChange: (event) => {
|
|
1209
|
+
const value = event.currentTarget.value;
|
|
1210
|
+
if (!props.disabled && choices.some((option) => option.value === value && !option.disabled)) props.onValueChange(value);
|
|
1211
|
+
},
|
|
1212
|
+
children: choices.map((option) => /* @__PURE__ */ jsx("option", {
|
|
1213
|
+
value: option.value,
|
|
1214
|
+
disabled: option.disabled,
|
|
1215
|
+
children: option.label
|
|
1216
|
+
}, option.value))
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
//#endregion
|
|
1176
1220
|
//#region src/FileExplorer.tsx
|
|
1177
1221
|
function FileExplorer({ paths, selected, openFile, disabled = false }) {
|
|
1178
1222
|
const branch = (prefix) => {
|
|
@@ -1943,18 +1987,21 @@ function KitDraftEditor({ record, authoring, locale, opening, onDirtyChange, onR
|
|
|
1943
1987
|
/* @__PURE__ */ jsxs("div", {
|
|
1944
1988
|
className: "ygd-studio-draft-sources",
|
|
1945
1989
|
children: [
|
|
1946
|
-
/* @__PURE__ */ jsxs("label", { children: ["Bundle", /* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ jsxs("label", { children: ["Bundle", /* @__PURE__ */ jsx(StudioSelect, {
|
|
1947
1991
|
"aria-label": "Preview Bundle",
|
|
1948
1992
|
disabled: opening || state.busy,
|
|
1949
1993
|
value: bundleKey,
|
|
1950
|
-
|
|
1994
|
+
onValueChange: (value) => {
|
|
1951
1995
|
controller.clearPreview();
|
|
1952
|
-
setBundleKey(
|
|
1996
|
+
setBundleKey(value);
|
|
1953
1997
|
},
|
|
1954
|
-
|
|
1998
|
+
options: [{
|
|
1955
1999
|
value: "",
|
|
1956
|
-
|
|
1957
|
-
}
|
|
2000
|
+
label: "—"
|
|
2001
|
+
}, ...record.mounts.map((mount) => ({
|
|
2002
|
+
value: `${mount.name}@${mount.version}`,
|
|
2003
|
+
label: `${mount.name}@${mount.version}`
|
|
2004
|
+
}))]
|
|
1958
2005
|
})] }),
|
|
1959
2006
|
/* @__PURE__ */ jsxs("label", { children: [t.sample, /* @__PURE__ */ jsx("textarea", {
|
|
1960
2007
|
"aria-label": t.sample,
|
|
@@ -3583,18 +3630,14 @@ function InstanceWorkbench({ client, id, locale, onBack, onChanged, renderPrevie
|
|
|
3583
3630
|
children: [
|
|
3584
3631
|
record?.kind === "kit" && /* @__PURE__ */ jsx("div", {
|
|
3585
3632
|
className: "ygd-studio-doc-toolbar",
|
|
3586
|
-
children: /* @__PURE__ */ jsxs("label", { children: [zh ? "Bundle " : "Bundle ", /* @__PURE__ */ jsx(
|
|
3633
|
+
children: /* @__PURE__ */ jsxs("label", { children: [zh ? "Bundle " : "Bundle ", /* @__PURE__ */ jsx(StudioSelect, {
|
|
3587
3634
|
"aria-label": "Preview Bundle",
|
|
3588
3635
|
value: bundleKey,
|
|
3589
|
-
|
|
3590
|
-
|
|
3636
|
+
onValueChange: setBundleKey,
|
|
3637
|
+
options: record.mounts.map((mount) => ({
|
|
3591
3638
|
value: `${mount.bundle.name}@${mount.bundle.version}`,
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
" · ",
|
|
3595
|
-
mount.bundle.version
|
|
3596
|
-
]
|
|
3597
|
-
}, `${mount.bundle.name}@${mount.bundle.version}`))
|
|
3639
|
+
label: `${mount.bundle.name} · ${mount.bundle.version}`
|
|
3640
|
+
}))
|
|
3598
3641
|
})] })
|
|
3599
3642
|
}),
|
|
3600
3643
|
previewBusy && /* @__PURE__ */ jsx(LoadingIndicator, { label: zh ? "正在准备预览" : "Preparing preview" }),
|
|
@@ -4730,7 +4773,7 @@ function InstalledPreview({ authoring, client, kit, bundle, locale, declarative,
|
|
|
4730
4773
|
});
|
|
4731
4774
|
}
|
|
4732
4775
|
/** Read-only Studio surface: one complete page with global nav, sidebar, and workspace main. */
|
|
4733
|
-
function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }) {
|
|
4776
|
+
function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring, trials, instances, componentLibrary, renderSelect, contentClient, onDraftDirtyChange, locale: hostLocale, onLocaleChange }) {
|
|
4734
4777
|
const controller = useMemo(() => supplied ?? new StudioWorkspaceController(client), [client, supplied]);
|
|
4735
4778
|
const snapshot = useSyncExternalStore(controller.subscribe, controller.getSnapshot, controller.getSnapshot);
|
|
4736
4779
|
const tabElements = useRef(/* @__PURE__ */ new Map());
|
|
@@ -5157,17 +5200,14 @@ function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring
|
|
|
5157
5200
|
className: "ygd-studio-page-title",
|
|
5158
5201
|
children: bundleTitle(bundleWorkspace.name, bundleWorkspace.version)
|
|
5159
5202
|
}),
|
|
5160
|
-
/* @__PURE__ */ jsxs("label", { children: [locale === "zh" ? "版本 " : "Version ", /* @__PURE__ */ jsx(
|
|
5203
|
+
/* @__PURE__ */ jsxs("label", { children: [locale === "zh" ? "版本 " : "Version ", /* @__PURE__ */ jsx(StudioSelect, {
|
|
5161
5204
|
"aria-label": locale === "zh" ? "Bundle 版本" : "Bundle version",
|
|
5162
5205
|
value: bundleWorkspace.version,
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
leaveDrafts(() => void controller.openBundleWorkspace(bundleWorkspace.name, version));
|
|
5166
|
-
},
|
|
5167
|
-
children: groupInstalledContent(snapshot.view?.bundles ?? []).find((group) => group.name === bundleWorkspace.name)?.versions.map((bundle) => /* @__PURE__ */ jsx("option", {
|
|
5206
|
+
onValueChange: (version) => leaveDrafts(() => void controller.openBundleWorkspace(bundleWorkspace.name, version)),
|
|
5207
|
+
options: groupInstalledContent(snapshot.view?.bundles ?? []).find((group) => group.name === bundleWorkspace.name)?.versions.map((bundle) => ({
|
|
5168
5208
|
value: bundle.version,
|
|
5169
|
-
|
|
5170
|
-
}
|
|
5209
|
+
label: bundle.version
|
|
5210
|
+
})) ?? []
|
|
5171
5211
|
})] })
|
|
5172
5212
|
]
|
|
5173
5213
|
}),
|
|
@@ -5538,17 +5578,14 @@ function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring
|
|
|
5538
5578
|
className: "ygd-studio-page-title",
|
|
5539
5579
|
children: displayName(workspace.name)
|
|
5540
5580
|
}),
|
|
5541
|
-
/* @__PURE__ */ jsxs("label", { children: [locale === "zh" ? "版本 " : "Version ", /* @__PURE__ */ jsx(
|
|
5581
|
+
/* @__PURE__ */ jsxs("label", { children: [locale === "zh" ? "版本 " : "Version ", /* @__PURE__ */ jsx(StudioSelect, {
|
|
5542
5582
|
"aria-label": locale === "zh" ? "Kit 版本" : "Kit version",
|
|
5543
5583
|
value: workspace.version,
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
leaveDrafts(() => void controller.selectKit(workspace.name, version));
|
|
5547
|
-
},
|
|
5548
|
-
children: groupInstalledContent(snapshot.view?.kits ?? []).find((group) => group.name === workspace.name)?.versions.map((kit) => /* @__PURE__ */ jsx("option", {
|
|
5584
|
+
onValueChange: (version) => leaveDrafts(() => void controller.selectKit(workspace.name, version)),
|
|
5585
|
+
options: groupInstalledContent(snapshot.view?.kits ?? []).find((group) => group.name === workspace.name)?.versions.map((kit) => ({
|
|
5549
5586
|
value: kit.version,
|
|
5550
|
-
|
|
5551
|
-
}
|
|
5587
|
+
label: kit.version
|
|
5588
|
+
})) ?? []
|
|
5552
5589
|
})] })
|
|
5553
5590
|
]
|
|
5554
5591
|
}),
|
|
@@ -5650,340 +5687,338 @@ function StudioWorkspace({ client, controller: supplied, authoring, kitAuthoring
|
|
|
5650
5687
|
})
|
|
5651
5688
|
]
|
|
5652
5689
|
});
|
|
5653
|
-
return /* @__PURE__ */
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
className:
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
"aria-current": !componentsOpen && !archivesOpen && !draftsOpen && !bundleWorkspace && snapshot.section === "kits" ? "page" : void 0,
|
|
5683
|
-
onClick: () => leaveDrafts(() => {
|
|
5684
|
-
setComponentsOpen(false);
|
|
5685
|
-
controller.backToList();
|
|
5686
|
-
}),
|
|
5687
|
-
children: [/* @__PURE__ */ jsx(StudioGlyph, {}), t.kitsTitle]
|
|
5688
|
-
}), /* @__PURE__ */ jsxs("button", {
|
|
5689
|
-
className: "ygd-studio-sidebar-item",
|
|
5690
|
-
type: "button",
|
|
5691
|
-
"aria-current": !componentsOpen && !archivesOpen && !draftsOpen && (bundleWorkspace || snapshot.section === "bundles") ? "page" : void 0,
|
|
5692
|
-
onClick: () => leaveDrafts(() => {
|
|
5693
|
-
setComponentsOpen(false);
|
|
5694
|
-
controller.setSection("bundles");
|
|
5695
|
-
}),
|
|
5696
|
-
children: [/* @__PURE__ */ jsx(StudioGlyph, { bundle: true }), t.bundlesTitle]
|
|
5697
|
-
})]
|
|
5698
|
-
}),
|
|
5699
|
-
/* @__PURE__ */ jsxs("div", {
|
|
5700
|
-
className: "ygd-studio-sidebar-footer",
|
|
5701
|
-
children: [componentLibrary && /* @__PURE__ */ jsx("nav", {
|
|
5702
|
-
className: "ygd-studio-sidebar-utilities",
|
|
5703
|
-
"aria-label": locale === "zh" ? "Studio 工具" : "Studio utilities",
|
|
5704
|
-
children: /* @__PURE__ */ jsxs("button", {
|
|
5690
|
+
return /* @__PURE__ */ jsx(StudioSelectContext.Provider, {
|
|
5691
|
+
value: renderSelect,
|
|
5692
|
+
children: /* @__PURE__ */ jsxs("section", {
|
|
5693
|
+
className: "ygd-studio-workspace",
|
|
5694
|
+
"aria-label": "Design Studio",
|
|
5695
|
+
children: [
|
|
5696
|
+
/* @__PURE__ */ jsx("style", { children: STUDIO_WORKSPACE_CSS }),
|
|
5697
|
+
/* @__PURE__ */ jsx("button", {
|
|
5698
|
+
className: "ygd-studio-menu-btn",
|
|
5699
|
+
type: "button",
|
|
5700
|
+
"aria-label": "Toggle menu",
|
|
5701
|
+
"aria-expanded": sidebarOpen,
|
|
5702
|
+
onClick: () => setSidebarOpen(!sidebarOpen),
|
|
5703
|
+
children: "☰"
|
|
5704
|
+
}),
|
|
5705
|
+
/* @__PURE__ */ jsxs("div", {
|
|
5706
|
+
className: "ygd-studio-body",
|
|
5707
|
+
children: [/* @__PURE__ */ jsxs("aside", {
|
|
5708
|
+
className: `ygd-studio-sidebar${sidebarOpen ? " open" : ""}`,
|
|
5709
|
+
"aria-label": "Product navigation",
|
|
5710
|
+
children: [
|
|
5711
|
+
/* @__PURE__ */ jsx("div", {
|
|
5712
|
+
className: "ygd-studio-sidebar-logo",
|
|
5713
|
+
children: "Yugoo Design"
|
|
5714
|
+
}),
|
|
5715
|
+
/* @__PURE__ */ jsxs("nav", {
|
|
5716
|
+
className: "ygd-studio-sidebar-nav",
|
|
5717
|
+
"aria-label": "Studio sections",
|
|
5718
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
5705
5719
|
className: "ygd-studio-sidebar-item",
|
|
5706
5720
|
type: "button",
|
|
5707
|
-
"aria-current": componentsOpen ? "page" : void 0,
|
|
5708
|
-
onClick: () => leaveDrafts(() =>
|
|
5709
|
-
|
|
5710
|
-
|
|
5721
|
+
"aria-current": !componentsOpen && !archivesOpen && !draftsOpen && !bundleWorkspace && snapshot.section === "kits" ? "page" : void 0,
|
|
5722
|
+
onClick: () => leaveDrafts(() => {
|
|
5723
|
+
setComponentsOpen(false);
|
|
5724
|
+
controller.backToList();
|
|
5725
|
+
}),
|
|
5726
|
+
children: [/* @__PURE__ */ jsx(StudioGlyph, {}), t.kitsTitle]
|
|
5727
|
+
}), /* @__PURE__ */ jsxs("button", {
|
|
5728
|
+
className: "ygd-studio-sidebar-item",
|
|
5729
|
+
type: "button",
|
|
5730
|
+
"aria-current": !componentsOpen && !archivesOpen && !draftsOpen && (bundleWorkspace || snapshot.section === "bundles") ? "page" : void 0,
|
|
5731
|
+
onClick: () => leaveDrafts(() => {
|
|
5732
|
+
setComponentsOpen(false);
|
|
5733
|
+
controller.setSection("bundles");
|
|
5734
|
+
}),
|
|
5735
|
+
children: [/* @__PURE__ */ jsx(StudioGlyph, { bundle: true }), t.bundlesTitle]
|
|
5736
|
+
})]
|
|
5737
|
+
}),
|
|
5738
|
+
/* @__PURE__ */ jsxs("div", {
|
|
5739
|
+
className: "ygd-studio-sidebar-footer",
|
|
5740
|
+
children: [componentLibrary && /* @__PURE__ */ jsx("nav", {
|
|
5741
|
+
className: "ygd-studio-sidebar-utilities",
|
|
5742
|
+
"aria-label": locale === "zh" ? "Studio 工具" : "Studio utilities",
|
|
5743
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
5744
|
+
className: "ygd-studio-sidebar-item",
|
|
5745
|
+
type: "button",
|
|
5746
|
+
"aria-current": componentsOpen ? "page" : void 0,
|
|
5747
|
+
onClick: () => leaveDrafts(() => setComponentsOpen(true)),
|
|
5748
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
5749
|
+
className: "ygd-studio-kitmark",
|
|
5750
|
+
"aria-hidden": "true",
|
|
5751
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
5752
|
+
viewBox: "0 0 24 24",
|
|
5753
|
+
fill: "none",
|
|
5754
|
+
stroke: "currentColor",
|
|
5755
|
+
strokeWidth: "1.5",
|
|
5756
|
+
children: [
|
|
5757
|
+
/* @__PURE__ */ jsx("rect", {
|
|
5758
|
+
x: "3",
|
|
5759
|
+
y: "3",
|
|
5760
|
+
width: "7",
|
|
5761
|
+
height: "7",
|
|
5762
|
+
rx: "1"
|
|
5763
|
+
}),
|
|
5764
|
+
/* @__PURE__ */ jsx("rect", {
|
|
5765
|
+
x: "14",
|
|
5766
|
+
y: "3",
|
|
5767
|
+
width: "7",
|
|
5768
|
+
height: "7",
|
|
5769
|
+
rx: "1"
|
|
5770
|
+
}),
|
|
5771
|
+
/* @__PURE__ */ jsx("rect", {
|
|
5772
|
+
x: "3",
|
|
5773
|
+
y: "14",
|
|
5774
|
+
width: "7",
|
|
5775
|
+
height: "7",
|
|
5776
|
+
rx: "1"
|
|
5777
|
+
}),
|
|
5778
|
+
/* @__PURE__ */ jsx("rect", {
|
|
5779
|
+
x: "14",
|
|
5780
|
+
y: "14",
|
|
5781
|
+
width: "7",
|
|
5782
|
+
height: "7",
|
|
5783
|
+
rx: "1"
|
|
5784
|
+
})
|
|
5785
|
+
]
|
|
5786
|
+
})
|
|
5787
|
+
}), locale === "zh" ? "面板组件库" : "Panel Component Library"]
|
|
5788
|
+
})
|
|
5789
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
5790
|
+
className: "ygd-studio-language",
|
|
5791
|
+
role: "group",
|
|
5792
|
+
"aria-label": locale === "zh" ? "界面语言" : "Interface language",
|
|
5793
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
5794
|
+
type: "button",
|
|
5795
|
+
lang: "zh-CN",
|
|
5796
|
+
"aria-pressed": locale === "zh",
|
|
5797
|
+
onClick: () => changeLocale("zh"),
|
|
5798
|
+
children: "中文"
|
|
5799
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
5800
|
+
type: "button",
|
|
5801
|
+
lang: "en",
|
|
5802
|
+
"aria-pressed": locale === "en",
|
|
5803
|
+
onClick: () => changeLocale("en"),
|
|
5804
|
+
children: "EN"
|
|
5805
|
+
})]
|
|
5806
|
+
})]
|
|
5807
|
+
})
|
|
5808
|
+
]
|
|
5809
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
5810
|
+
className: "ygd-studio-stage",
|
|
5811
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
5812
|
+
className: "ygd-studio-topbar",
|
|
5813
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
5814
|
+
"aria-label": "Breadcrumb",
|
|
5815
|
+
children: [
|
|
5816
|
+
/* @__PURE__ */ jsx("button", {
|
|
5817
|
+
className: "ygd-studio-breadcrumb-button",
|
|
5818
|
+
type: "button",
|
|
5819
|
+
onClick: () => {
|
|
5820
|
+
if (!componentsOpen) leaveDrafts(() => snapshot.section === "kits" ? controller.backToList() : controller.closeBundleWorkspace());
|
|
5821
|
+
},
|
|
5822
|
+
children: componentsOpen ? locale === "zh" ? "面板组件库" : "Panel Component Library" : snapshot.section === "kits" ? t.kitsTitle : t.bundlesTitle
|
|
5823
|
+
}),
|
|
5824
|
+
!componentsOpen && !archivesOpen && !instanceId && workspace && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5711
5825
|
"aria-hidden": "true",
|
|
5712
|
-
children:
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
}),
|
|
5739
|
-
/* @__PURE__ */ jsx("rect", {
|
|
5740
|
-
x: "14",
|
|
5741
|
-
y: "14",
|
|
5742
|
-
width: "7",
|
|
5743
|
-
height: "7",
|
|
5744
|
-
rx: "1"
|
|
5745
|
-
})
|
|
5746
|
-
]
|
|
5747
|
-
})
|
|
5748
|
-
}), locale === "zh" ? "面板组件库" : "Panel Component Library"]
|
|
5749
|
-
})
|
|
5826
|
+
children: "/"
|
|
5827
|
+
}), bundleWorkspace ? /* @__PURE__ */ jsx("button", {
|
|
5828
|
+
className: "ygd-studio-breadcrumb-button",
|
|
5829
|
+
type: "button",
|
|
5830
|
+
onClick: () => leaveDrafts(() => controller.closeBundleWorkspace()),
|
|
5831
|
+
children: displayName(workspace.name)
|
|
5832
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
5833
|
+
"aria-current": "page",
|
|
5834
|
+
children: displayName(workspace.name)
|
|
5835
|
+
})] }),
|
|
5836
|
+
!componentsOpen && !archivesOpen && !instanceId && bundleWorkspace && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5837
|
+
"aria-hidden": "true",
|
|
5838
|
+
children: "/"
|
|
5839
|
+
}), bundleTitle(bundleWorkspace.name, bundleWorkspace.version)] }),
|
|
5840
|
+
!componentsOpen && instanceId && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5841
|
+
"aria-hidden": "true",
|
|
5842
|
+
children: "/"
|
|
5843
|
+
}), localInstances.find((record) => record.id === instanceId)?.title[locale]] }),
|
|
5844
|
+
archivesOpen && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5845
|
+
"aria-hidden": "true",
|
|
5846
|
+
children: "/"
|
|
5847
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
5848
|
+
"aria-current": "page",
|
|
5849
|
+
children: locale === "zh" ? "内容归档" : "Content archives"
|
|
5850
|
+
})] })
|
|
5851
|
+
]
|
|
5750
5852
|
}), /* @__PURE__ */ jsxs("div", {
|
|
5751
|
-
className: "ygd-studio-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
children: [/* @__PURE__ */ jsx("button", {
|
|
5853
|
+
className: "ygd-studio-topbar-actions",
|
|
5854
|
+
children: [contentClient && /* @__PURE__ */ jsx("button", {
|
|
5855
|
+
className: "ygd-studio-btn-link",
|
|
5755
5856
|
type: "button",
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5857
|
+
disabled: archivesOpen,
|
|
5858
|
+
onClick: () => leaveDrafts(() => {
|
|
5859
|
+
setComponentsOpen(false);
|
|
5860
|
+
setArchivesOpen(true);
|
|
5861
|
+
}),
|
|
5862
|
+
children: locale === "zh" ? "内容归档" : "Content archives"
|
|
5863
|
+
}), !componentsOpen && /* @__PURE__ */ jsx("button", {
|
|
5864
|
+
className: "ygd-studio-btn-link",
|
|
5761
5865
|
type: "button",
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5866
|
+
disabled: snapshot.phase === "loading",
|
|
5867
|
+
onClick: () => leaveDrafts(() => {
|
|
5868
|
+
(async () => {
|
|
5869
|
+
await controller.load();
|
|
5870
|
+
await refreshInstances();
|
|
5871
|
+
if (workspace) await controller.selectKit(workspace.name, workspace.version);
|
|
5872
|
+
if (bundleWorkspace) {
|
|
5873
|
+
await controller.openBundleWorkspace(bundleWorkspace.name, bundleWorkspace.version);
|
|
5874
|
+
if (bundleFile) await controller.openBundleFile(bundleFile.path);
|
|
5875
|
+
}
|
|
5876
|
+
})();
|
|
5877
|
+
}),
|
|
5878
|
+
children: locale === "zh" ? "刷新内容" : "Refresh content"
|
|
5766
5879
|
})]
|
|
5767
5880
|
})]
|
|
5768
|
-
})
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
}), localInstances.find((record) => record.id === instanceId)?.title[locale]] }),
|
|
5805
|
-
archivesOpen && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
5806
|
-
"aria-hidden": "true",
|
|
5807
|
-
children: "/"
|
|
5808
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
5809
|
-
"aria-current": "page",
|
|
5810
|
-
children: locale === "zh" ? "内容归档" : "Content archives"
|
|
5811
|
-
})] })
|
|
5812
|
-
]
|
|
5813
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
5814
|
-
className: "ygd-studio-topbar-actions",
|
|
5815
|
-
children: [contentClient && /* @__PURE__ */ jsx("button", {
|
|
5816
|
-
className: "ygd-studio-btn-link",
|
|
5817
|
-
type: "button",
|
|
5818
|
-
disabled: archivesOpen,
|
|
5819
|
-
onClick: () => leaveDrafts(() => {
|
|
5820
|
-
setComponentsOpen(false);
|
|
5821
|
-
setArchivesOpen(true);
|
|
5822
|
-
}),
|
|
5823
|
-
children: locale === "zh" ? "内容归档" : "Content archives"
|
|
5824
|
-
}), !componentsOpen && /* @__PURE__ */ jsx("button", {
|
|
5825
|
-
className: "ygd-studio-btn-link",
|
|
5826
|
-
type: "button",
|
|
5827
|
-
disabled: snapshot.phase === "loading",
|
|
5828
|
-
onClick: () => leaveDrafts(() => {
|
|
5829
|
-
(async () => {
|
|
5830
|
-
await controller.load();
|
|
5831
|
-
await refreshInstances();
|
|
5832
|
-
if (workspace) await controller.selectKit(workspace.name, workspace.version);
|
|
5833
|
-
if (bundleWorkspace) {
|
|
5834
|
-
await controller.openBundleWorkspace(bundleWorkspace.name, bundleWorkspace.version);
|
|
5835
|
-
if (bundleFile) await controller.openBundleFile(bundleFile.path);
|
|
5836
|
-
}
|
|
5837
|
-
})();
|
|
5838
|
-
}),
|
|
5839
|
-
children: locale === "zh" ? "刷新内容" : "Refresh content"
|
|
5840
|
-
})]
|
|
5841
|
-
})]
|
|
5842
|
-
}), componentsOpen && componentLibrary ? /* @__PURE__ */ jsx(ComponentLibrary, {
|
|
5843
|
-
library: componentLibrary,
|
|
5844
|
-
locale
|
|
5845
|
-
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [authoringError && /* @__PURE__ */ jsx("p", {
|
|
5846
|
-
role: "alert",
|
|
5847
|
-
className: "ygd-studio-error",
|
|
5848
|
-
children: authoringError
|
|
5849
|
-
}), archivesOpen && contentClient ? /* @__PURE__ */ jsx(ContentArchiveWorkbench, {
|
|
5850
|
-
client: contentClient,
|
|
5851
|
-
installedKit: workspace ? {
|
|
5852
|
-
name: workspace.name,
|
|
5853
|
-
version: workspace.version
|
|
5854
|
-
} : void 0,
|
|
5855
|
-
locale,
|
|
5856
|
-
canAdoptKit: !!kitAuthoring,
|
|
5857
|
-
onBack: () => leaveDrafts(() => {}),
|
|
5858
|
-
onAdopt: (result) => leaveDrafts(() => {
|
|
5859
|
-
if (result.draft && kitAuthoring) {
|
|
5860
|
-
setDraftId(result.draft.id);
|
|
5861
|
-
setDraftsOpen("kit");
|
|
5862
|
-
controller.load();
|
|
5863
|
-
return;
|
|
5881
|
+
}), componentsOpen && componentLibrary ? /* @__PURE__ */ jsx(ComponentLibrary, {
|
|
5882
|
+
library: componentLibrary,
|
|
5883
|
+
locale
|
|
5884
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [authoringError && /* @__PURE__ */ jsx("p", {
|
|
5885
|
+
role: "alert",
|
|
5886
|
+
className: "ygd-studio-error",
|
|
5887
|
+
children: authoringError
|
|
5888
|
+
}), archivesOpen && contentClient ? /* @__PURE__ */ jsx(ContentArchiveWorkbench, {
|
|
5889
|
+
client: contentClient,
|
|
5890
|
+
installedKit: workspace ? {
|
|
5891
|
+
name: workspace.name,
|
|
5892
|
+
version: workspace.version
|
|
5893
|
+
} : void 0,
|
|
5894
|
+
locale,
|
|
5895
|
+
canAdoptKit: !!kitAuthoring,
|
|
5896
|
+
onBack: () => leaveDrafts(() => {}),
|
|
5897
|
+
onAdopt: (result) => leaveDrafts(() => {
|
|
5898
|
+
if (result.draft && kitAuthoring) {
|
|
5899
|
+
setDraftId(result.draft.id);
|
|
5900
|
+
setDraftsOpen("kit");
|
|
5901
|
+
controller.load();
|
|
5902
|
+
return;
|
|
5903
|
+
}
|
|
5904
|
+
const bundle = result.contents.find((item) => item.kind === "bundle");
|
|
5905
|
+
if (!bundle) return;
|
|
5906
|
+
const request = createGeneration.current;
|
|
5907
|
+
(async () => {
|
|
5908
|
+
await controller.load();
|
|
5909
|
+
if (request !== createGeneration.current || controller.getSnapshot().phase !== "ready") return;
|
|
5910
|
+
controller.setSection("bundles");
|
|
5911
|
+
await controller.openBundleWorkspace(bundle.pin.name, bundle.pin.version);
|
|
5912
|
+
})();
|
|
5913
|
+
}),
|
|
5914
|
+
onDirtyChange: (value) => {
|
|
5915
|
+
draftDirty.current = value;
|
|
5916
|
+
onDraftDirtyChange?.(value);
|
|
5864
5917
|
}
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
onDraftDirtyChange?.(value);
|
|
5878
|
-
}
|
|
5879
|
-
}) : snapshot.phase === "loading" && !instanceId && !draftsOpen ? /* @__PURE__ */ jsx("main", {
|
|
5880
|
-
className: "ygd-studio-main",
|
|
5881
|
-
children: /* @__PURE__ */ jsx(LoadingIndicator, { label: t.loading })
|
|
5882
|
-
}) : instanceId && instances ? /* @__PURE__ */ jsx(InstanceWorkbench, {
|
|
5883
|
-
client: instances,
|
|
5884
|
-
id: instanceId,
|
|
5885
|
-
locale,
|
|
5886
|
-
renderPreview: authoring?.renderPreview,
|
|
5887
|
-
onBack: () => leaveDrafts(() => controller.backToList()),
|
|
5888
|
-
onChanged: (record) => {
|
|
5889
|
-
setInstanceId(record?.id);
|
|
5890
|
-
refreshInstances().catch((error) => setAuthoringError(String(error)));
|
|
5891
|
-
},
|
|
5892
|
-
onDirtyChange: (value) => {
|
|
5893
|
-
draftDirty.current = value;
|
|
5894
|
-
onDraftDirtyChange?.(value);
|
|
5895
|
-
}
|
|
5896
|
-
}, instanceId) : draftsOpen === "kit" && kitAuthoring ? /* @__PURE__ */ jsx(KitDraftWorkbench, {
|
|
5897
|
-
authoring: kitAuthoring,
|
|
5898
|
-
initialId: draftId,
|
|
5899
|
-
locale,
|
|
5900
|
-
onDirtyChange: (value) => {
|
|
5901
|
-
draftDirty.current = value;
|
|
5902
|
-
onDraftDirtyChange?.(value);
|
|
5903
|
-
}
|
|
5904
|
-
}) : draftsOpen === "panel" && authoring ? /* @__PURE__ */ jsx(PanelDraftWorkbench, {
|
|
5905
|
-
onBack: () => leaveDrafts(() => {
|
|
5906
|
-
setBundleTab("preview");
|
|
5907
|
-
setPreviewMode("sample");
|
|
5908
|
-
}),
|
|
5909
|
-
trials,
|
|
5910
|
-
authoring,
|
|
5911
|
-
initialId: draftId,
|
|
5912
|
-
locale,
|
|
5913
|
-
onDirtyChange: (value) => {
|
|
5914
|
-
draftDirty.current = value;
|
|
5915
|
-
onDraftDirtyChange?.(value);
|
|
5916
|
-
}
|
|
5917
|
-
}) : bundleMain !== void 0 ? bundleMain : snapshot.section === "bundles" ? bundlesListMain : kitMain] })]
|
|
5918
|
-
})]
|
|
5919
|
-
}),
|
|
5920
|
-
workspace && recoveryOpen && /* @__PURE__ */ jsx(StudioDialog, {
|
|
5921
|
-
title: locale === "zh" ? "恢复工作副本" : "Restore working copy",
|
|
5922
|
-
close: () => setRecoveryOpen(false),
|
|
5923
|
-
children: kitAuthoring && mindsetChoices.length > 0 && /* @__PURE__ */ jsxs("label", {
|
|
5924
|
-
className: "ygd-studio-mindset-recovery",
|
|
5925
|
-
children: [
|
|
5926
|
-
locale === "zh" ? "工作副本" : "Working copy",
|
|
5927
|
-
" ",
|
|
5928
|
-
/* @__PURE__ */ jsxs("select", {
|
|
5929
|
-
"aria-label": "Mindset working copy",
|
|
5930
|
-
value: mindsetRecords.current.get(kitKey) ?? "",
|
|
5931
|
-
onChange: (event) => {
|
|
5932
|
-
const id = event.target.value;
|
|
5933
|
-
leaveDrafts(() => {
|
|
5934
|
-
if (id) mindsetRecords.current.set(kitKey, id);
|
|
5935
|
-
else mindsetRecords.current.delete(kitKey);
|
|
5936
|
-
setSavedMindsets((previous) => {
|
|
5937
|
-
const next = { ...previous };
|
|
5938
|
-
delete next[kitKey];
|
|
5939
|
-
return next;
|
|
5940
|
-
});
|
|
5941
|
-
setMindsetEditorEpoch((epoch) => epoch + 1);
|
|
5942
|
-
setRecoveryOpen(false);
|
|
5943
|
-
});
|
|
5918
|
+
}) : snapshot.phase === "loading" && !instanceId && !draftsOpen ? /* @__PURE__ */ jsx("main", {
|
|
5919
|
+
className: "ygd-studio-main",
|
|
5920
|
+
children: /* @__PURE__ */ jsx(LoadingIndicator, { label: t.loading })
|
|
5921
|
+
}) : instanceId && instances ? /* @__PURE__ */ jsx(InstanceWorkbench, {
|
|
5922
|
+
client: instances,
|
|
5923
|
+
id: instanceId,
|
|
5924
|
+
locale,
|
|
5925
|
+
renderPreview: authoring?.renderPreview,
|
|
5926
|
+
onBack: () => leaveDrafts(() => controller.backToList()),
|
|
5927
|
+
onChanged: (record) => {
|
|
5928
|
+
setInstanceId(record?.id);
|
|
5929
|
+
refreshInstances().catch((error) => setAuthoringError(String(error)));
|
|
5944
5930
|
},
|
|
5945
|
-
|
|
5946
|
-
value
|
|
5947
|
-
|
|
5948
|
-
}
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5931
|
+
onDirtyChange: (value) => {
|
|
5932
|
+
draftDirty.current = value;
|
|
5933
|
+
onDraftDirtyChange?.(value);
|
|
5934
|
+
}
|
|
5935
|
+
}, instanceId) : draftsOpen === "kit" && kitAuthoring ? /* @__PURE__ */ jsx(KitDraftWorkbench, {
|
|
5936
|
+
authoring: kitAuthoring,
|
|
5937
|
+
initialId: draftId,
|
|
5938
|
+
locale,
|
|
5939
|
+
onDirtyChange: (value) => {
|
|
5940
|
+
draftDirty.current = value;
|
|
5941
|
+
onDraftDirtyChange?.(value);
|
|
5942
|
+
}
|
|
5943
|
+
}) : draftsOpen === "panel" && authoring ? /* @__PURE__ */ jsx(PanelDraftWorkbench, {
|
|
5944
|
+
onBack: () => leaveDrafts(() => {
|
|
5945
|
+
setBundleTab("preview");
|
|
5946
|
+
setPreviewMode("sample");
|
|
5947
|
+
}),
|
|
5948
|
+
trials,
|
|
5949
|
+
authoring,
|
|
5950
|
+
initialId: draftId,
|
|
5951
|
+
locale,
|
|
5952
|
+
onDirtyChange: (value) => {
|
|
5953
|
+
draftDirty.current = value;
|
|
5954
|
+
onDraftDirtyChange?.(value);
|
|
5955
|
+
}
|
|
5956
|
+
}) : bundleMain !== void 0 ? bundleMain : snapshot.section === "bundles" ? bundlesListMain : kitMain] })]
|
|
5957
|
+
})]
|
|
5958
|
+
}),
|
|
5959
|
+
workspace && recoveryOpen && /* @__PURE__ */ jsx(StudioDialog, {
|
|
5960
|
+
title: locale === "zh" ? "恢复工作副本" : "Restore working copy",
|
|
5961
|
+
close: () => setRecoveryOpen(false),
|
|
5962
|
+
children: kitAuthoring && mindsetChoices.length > 0 && /* @__PURE__ */ jsxs("label", {
|
|
5963
|
+
className: "ygd-studio-mindset-recovery",
|
|
5964
|
+
children: [
|
|
5965
|
+
locale === "zh" ? "工作副本" : "Working copy",
|
|
5966
|
+
" ",
|
|
5967
|
+
/* @__PURE__ */ jsx(StudioSelect, {
|
|
5968
|
+
"aria-label": "Mindset working copy",
|
|
5969
|
+
value: mindsetRecords.current.get(kitKey) ?? "",
|
|
5970
|
+
onValueChange: (id) => {
|
|
5971
|
+
leaveDrafts(() => {
|
|
5972
|
+
if (id) mindsetRecords.current.set(kitKey, id);
|
|
5973
|
+
else mindsetRecords.current.delete(kitKey);
|
|
5974
|
+
setSavedMindsets((previous) => {
|
|
5975
|
+
const next = { ...previous };
|
|
5976
|
+
delete next[kitKey];
|
|
5977
|
+
return next;
|
|
5978
|
+
});
|
|
5979
|
+
setMindsetEditorEpoch((epoch) => epoch + 1);
|
|
5980
|
+
setRecoveryOpen(false);
|
|
5981
|
+
});
|
|
5982
|
+
},
|
|
5983
|
+
options: [{
|
|
5984
|
+
value: "",
|
|
5985
|
+
label: locale === "zh" ? "已安装原文" : "Installed source"
|
|
5986
|
+
}, ...mindsetChoices.map((record) => ({
|
|
5987
|
+
value: record.id,
|
|
5988
|
+
label: `${record.id.slice(0, 8)} · r${record.revision}`
|
|
5989
|
+
}))]
|
|
5990
|
+
})
|
|
5991
|
+
]
|
|
5992
|
+
})
|
|
5993
|
+
}),
|
|
5994
|
+
fileLocationOpen && /* @__PURE__ */ jsxs(StudioDialog, {
|
|
5995
|
+
title: locale === "zh" ? "文件位置" : "File location",
|
|
5996
|
+
close: () => setFileLocationOpen(false),
|
|
5997
|
+
children: [/* @__PURE__ */ jsx("p", { children: bundleWorkspace ? `${bundleWorkspace.name}/${bundleFile?.path ?? ""}` : "mindset.md" }), /* @__PURE__ */ jsx("p", { children: locale === "zh" ? "当前为包内相对路径。此宿主尚未提供本机绝对路径或打开编辑器接口。" : "Package-relative path. This host does not expose a local absolute path or editor launch capability." })]
|
|
5998
|
+
}),
|
|
5999
|
+
workspace && fullMindset && /* @__PURE__ */ jsxs(StudioDialog, {
|
|
6000
|
+
title: "mindset.md · 完整文件",
|
|
6001
|
+
close: () => setFullMindset(false),
|
|
6002
|
+
children: [/* @__PURE__ */ jsx("p", { children: locale === "zh" ? "包含 frontmatter 与 <design_skills>;阅读视图不会修改或丢弃文件内容。" : "Includes frontmatter and <design_skills>; the reading view never changes file content." }), codeFrame(visibleMindset, "Complete Mindset file")]
|
|
6003
|
+
}),
|
|
6004
|
+
workspace && kitFilesOpen && /* @__PURE__ */ jsxs(StudioDialog, {
|
|
6005
|
+
title: `${locale === "zh" ? "设计套件文件" : "Kit Files"} · ${workspace.name}`,
|
|
6006
|
+
close: () => setKitFilesOpen(false),
|
|
6007
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
6008
|
+
className: "ygd-studio-tree-node",
|
|
6009
|
+
type: "button",
|
|
6010
|
+
onClick: () => {
|
|
6011
|
+
setKitFilesOpen(false);
|
|
6012
|
+
setFullMindset(true);
|
|
6013
|
+
},
|
|
6014
|
+
children: "mindset.md"
|
|
6015
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
6016
|
+
className: "ygd-studio-subtitle",
|
|
6017
|
+
children: locale === "zh" ? "Bundle 资源请在对应 Bundle 的文件树中查看;其他 Kit 根目录文件读取尚未接入。" : "Compiled resource list; reading other Kit-root files is not yet connected."
|
|
6018
|
+
})]
|
|
5958
6019
|
})
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
title: locale === "zh" ? "文件位置" : "File location",
|
|
5962
|
-
close: () => setFileLocationOpen(false),
|
|
5963
|
-
children: [/* @__PURE__ */ jsx("p", { children: bundleWorkspace ? `${bundleWorkspace.name}/${bundleFile?.path ?? ""}` : "mindset.md" }), /* @__PURE__ */ jsx("p", { children: locale === "zh" ? "当前为包内相对路径。此宿主尚未提供本机绝对路径或打开编辑器接口。" : "Package-relative path. This host does not expose a local absolute path or editor launch capability." })]
|
|
5964
|
-
}),
|
|
5965
|
-
workspace && fullMindset && /* @__PURE__ */ jsxs(StudioDialog, {
|
|
5966
|
-
title: "mindset.md · 完整文件",
|
|
5967
|
-
close: () => setFullMindset(false),
|
|
5968
|
-
children: [/* @__PURE__ */ jsx("p", { children: locale === "zh" ? "包含 frontmatter 与 <design_skills>;阅读视图不会修改或丢弃文件内容。" : "Includes frontmatter and <design_skills>; the reading view never changes file content." }), codeFrame(visibleMindset, "Complete Mindset file")]
|
|
5969
|
-
}),
|
|
5970
|
-
workspace && kitFilesOpen && /* @__PURE__ */ jsxs(StudioDialog, {
|
|
5971
|
-
title: `${locale === "zh" ? "设计套件文件" : "Kit Files"} · ${workspace.name}`,
|
|
5972
|
-
close: () => setKitFilesOpen(false),
|
|
5973
|
-
children: [/* @__PURE__ */ jsx("button", {
|
|
5974
|
-
className: "ygd-studio-tree-node",
|
|
5975
|
-
type: "button",
|
|
5976
|
-
onClick: () => {
|
|
5977
|
-
setKitFilesOpen(false);
|
|
5978
|
-
setFullMindset(true);
|
|
5979
|
-
},
|
|
5980
|
-
children: "mindset.md"
|
|
5981
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
5982
|
-
className: "ygd-studio-subtitle",
|
|
5983
|
-
children: locale === "zh" ? "Bundle 资源请在对应 Bundle 的文件树中查看;其他 Kit 根目录文件读取尚未接入。" : "Compiled resource list; reading other Kit-root files is not yet connected."
|
|
5984
|
-
})]
|
|
5985
|
-
})
|
|
5986
|
-
]
|
|
6020
|
+
]
|
|
6021
|
+
})
|
|
5987
6022
|
});
|
|
5988
6023
|
}
|
|
5989
6024
|
//#endregion
|
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@yugoo-design/dsh-design-studio-ui",
|
|
4
4
|
"scope": "observed-current-dsh-output-and-selected-original-materials",
|
|
5
|
-
"sourceArchiveObserved":
|
|
5
|
+
"sourceArchiveObserved": null,
|
|
6
6
|
"outputSha256": {
|
|
7
|
-
"lib/index.js": "
|
|
7
|
+
"lib/index.js": "4c426f0ac69f973212a7e51b8e839b5e4750af367f221d17885108b7fcaf7f41"
|
|
8
8
|
},
|
|
9
9
|
"normalBuildMaps": [
|
|
10
10
|
{
|
|
11
11
|
"output": "lib/index.js",
|
|
12
|
-
"
|
|
13
|
-
"sourceCount":
|
|
12
|
+
"observation": "normal-build-emitted-source-regions",
|
|
13
|
+
"sourceCount": 22,
|
|
14
14
|
"projectOwnedSources": [
|
|
15
15
|
"packages/studio-ui/src/controller.ts",
|
|
16
16
|
"packages/studio-ui/src/panel-draft-controller.ts",
|
|
17
17
|
"packages/studio-ui/src/markdown.tsx",
|
|
18
18
|
"packages/studio-ui/src/styles.ts",
|
|
19
19
|
"packages/studio-ui/src/LoadingIndicator.tsx",
|
|
20
|
+
"packages/studio-ui/src/StudioSelect.tsx",
|
|
20
21
|
"packages/studio-ui/src/FileExplorer.tsx",
|
|
21
22
|
"packages/studio-ui/src/FileInfoSidebar.tsx",
|
|
22
23
|
"packages/studio-ui/src/KitFiles.tsx",
|
|
@@ -34,16 +35,40 @@
|
|
|
34
35
|
"packages/studio-ui/src/ContentArchiveWorkbench.tsx",
|
|
35
36
|
"packages/studio-ui/src/StudioWorkspace.tsx"
|
|
36
37
|
],
|
|
38
|
+
"projectOwnedSourceSha256": {
|
|
39
|
+
"packages/studio-ui/src/controller.ts": "d017165bec5bf870029eef06ad5e5514c31f354c1ee80d0e4af9365d0ea27fa8",
|
|
40
|
+
"packages/studio-ui/src/panel-draft-controller.ts": "4a8477fb26b84cd4f3b3ac8d713fe47cb5e14871b852582de75d98f021e43907",
|
|
41
|
+
"packages/studio-ui/src/markdown.tsx": "38dade82fbd0dba9659d4dccfd2617343e2883c7adb17af356998302aad0433c",
|
|
42
|
+
"packages/studio-ui/src/styles.ts": "bb55cf423d5c35caab99e61dd6da8800461e67e9fe8be1ad9ed38540a1843c0e",
|
|
43
|
+
"packages/studio-ui/src/LoadingIndicator.tsx": "6bd2c5bc11d950d0574dd6e1e4e96be53985d1dca9e95033a9d9cf9981c9b24a",
|
|
44
|
+
"packages/studio-ui/src/StudioSelect.tsx": "88b66f7c2bc46c256f8348614f2bfd51c81cb16b2e01e41281b629507150f60c",
|
|
45
|
+
"packages/studio-ui/src/FileExplorer.tsx": "5f0393f704d868bf968910bb81b29c87fc818dc4a977a6c0f293fb4470515bf9",
|
|
46
|
+
"packages/studio-ui/src/FileInfoSidebar.tsx": "33a27ee1fb8c982263c94de40eb1129e4aa1a857d38331cc96c6e05d8d6a2fe1",
|
|
47
|
+
"packages/studio-ui/src/KitFiles.tsx": "2b7d64f847ddb24dae29de06d3af027e277ea230ebaa8a530c6252b686439aa8",
|
|
48
|
+
"packages/studio-ui/src/BundleMounts.tsx": "499ebc48c77eeaad62cb5d97d6b600e093c1dded107bc2ccf5a18da7c2107353",
|
|
49
|
+
"packages/studio-ui/src/content-versions.ts": "27f2c3ceaa457123d12319e76fabd78ae7d79c1d888a14f039a6f4d6db322eb9",
|
|
50
|
+
"packages/studio-ui/src/KitDraftWorkbench.tsx": "1d884acc2f843982bf0e5288bced050e4781deee764928ddfa548f303742a26b",
|
|
51
|
+
"packages/studio-ui/src/mindset-inline-controller.ts": "a00de6e653080a2a5fb75eae0fd1f964b2fa7b5a51ac05e25f9fbb883553a709",
|
|
52
|
+
"packages/studio-ui/src/MindsetInlineEditor.tsx": "009426cedb4b571752f8d422444a53c8e8c57de825f6f61c1cd553aaa9c10512",
|
|
53
|
+
"packages/studio-ui/src/PanelDraftWorkbench.tsx": "8e0034187f56069f598bd4196f40cf15940357c95f2a3a18cd67e97f070d7761",
|
|
54
|
+
"packages/studio-ui/src/trial-controller.ts": "932f9fd5b88f40d5f2657ae237efb8f4dd400756a567ad9ee7021ec9655da4a7",
|
|
55
|
+
"packages/studio-ui/src/BundleTrial.tsx": "5ecade6389c7d4b95033a872f930769d900cee0fa84371895a7566775288a3c9",
|
|
56
|
+
"packages/studio-ui/src/MountEditor.tsx": "b81501f9138d618717e8703dbe75d203364b4d05b9fa3f06d5a4304b3b864202",
|
|
57
|
+
"packages/studio-ui/src/InstanceWorkbench.tsx": "37da2a613cbf1e57b001383e21666a2f5a40334744f2a63d9e22a88b8ce0aae3",
|
|
58
|
+
"packages/studio-ui/src/ComponentLibrary.tsx": "25c3619eef776d1353dc33a1e4a94d731a4a1dcf37852d91d040323bed2f482f",
|
|
59
|
+
"packages/studio-ui/src/ContentArchiveWorkbench.tsx": "0cd803405821ccc1c6073f875fdf851490ab250f328bdfa6e342e4b628bccc1c",
|
|
60
|
+
"packages/studio-ui/src/StudioWorkspace.tsx": "432e640834e80ff25cd959ff7734f28a442b3178560c49a74bd314e1bf094e91"
|
|
61
|
+
},
|
|
37
62
|
"projectOwnedMaterials": [
|
|
38
63
|
"LICENSE",
|
|
39
64
|
"NOTICE"
|
|
40
65
|
],
|
|
41
66
|
"sourceContentsVerified": true,
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
67
|
+
"sourceVerification": "Actual emitted region source files match fixed Git source and owner normal-build source tree; no TypeScript source map is claimed.",
|
|
68
|
+
"normalOutputSha256": "4c426f0ac69f973212a7e51b8e839b5e4750af367f221d17885108b7fcaf7f41",
|
|
69
|
+
"packedOutputSha256": "4c426f0ac69f973212a7e51b8e839b5e4750af367f221d17885108b7fcaf7f41",
|
|
45
70
|
"actualArchiveOutputBindingVerified": false,
|
|
46
|
-
"binding": "
|
|
71
|
+
"binding": "Owner normal StudioUI73702 output reused unchanged; actual emitted source regions and fixed source bytes recorded; archive member binding pending."
|
|
47
72
|
}
|
|
48
73
|
],
|
|
49
74
|
"components": [],
|
|
@@ -61,7 +86,8 @@
|
|
|
61
86
|
"This component list is scoped to retained maps whose output was compared to actual adapted archive bytes, and emitted source-region IDs; no complete coverage claim for generated/unmapped code.",
|
|
62
87
|
"External npm dependencies and peer host services are separate artifacts, even where other modules from that package are embedded.",
|
|
63
88
|
"Shared Radix/upstream attribution records keep their original historical-source limitations.",
|
|
64
|
-
"Existing embedded/font/native source obligations and rendering checks remain distinct from delivery of original license text."
|
|
89
|
+
"Existing embedded/font/native source obligations and rendering checks remain distinct from delivery of original license text.",
|
|
90
|
+
"Current normal StudioUI output exposes source regions, not a TypeScript source map; region/source hashes and exact ordinary output binding are recorded without a new diagnostic build."
|
|
65
91
|
],
|
|
66
92
|
"completeBundledInventoryVerified": false,
|
|
67
93
|
"releaseLicenseAcceptance": false
|
package/package.json
CHANGED