vite-plugin-opencode-assistant 1.1.2 → 1.1.3

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.
@@ -233,6 +233,14 @@ function generateBridgeScript(options) {
233
233
  }
234
234
  \`;
235
235
 
236
+ // === \u901A\u7528\u6837\u5F0F ===
237
+ const generalStyles = \`
238
+ /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
239
+ [data-session-title] .shrink-0 {
240
+ display: none !important;
241
+ }
242
+ \`;
243
+
236
244
  // === \u5BA1\u67E5\u9762\u677F\u8986\u76D6\u6837\u5F0F ===
237
245
  // \u5BA1\u67E5\u9762\u677F\u5168\u5C4F\uFF0C\u4F1A\u8BDD\u9762\u677F\u6D6E\u5728\u53F3\u4E0B\u89D2\uFF08\u7C7B\u4F3C\u63D2\u4EF6\u6700\u5C0F\u5316\u72B6\u6001\uFF09
238
246
  const reviewPanelStyles = \`
@@ -283,10 +291,7 @@ function generateBridgeScript(options) {
283
291
  display: none !important;
284
292
  }
285
293
 
286
- /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
287
- .opencode-review-panel-overlay [data-ref="session-panel"] [data-session-title] .shrink-0 {
288
- display: none !important;
289
- }
294
+
290
295
 
291
296
  /* \u9690\u85CF\u6D6E\u52A8\u4F1A\u8BDD\uFF08\u7528 visibility+opacity \u907F\u514D\u5207\u6362\u95EA\u70C1\uFF09 */
292
297
  .opencode-review-panel-overlay.hide-chat [data-ref="session-panel"] {
@@ -338,6 +343,14 @@ function generateBridgeScript(options) {
338
343
  document.head.appendChild(style);
339
344
  }
340
345
 
346
+ function injectGeneralStyles() {
347
+ if (document.getElementById('opencode-general-styles')) return;
348
+ const style = document.createElement('style');
349
+ style.id = 'opencode-general-styles';
350
+ style.textContent = generalStyles;
351
+ document.head.appendChild(style);
352
+ }
353
+
341
354
  // === \u6700\u5C0F\u5316\u72B6\u6001\u5904\u7406 ===
342
355
  let savedMinimizedState = null;
343
356
  let savedPromptDockVisibleState = null;
@@ -630,6 +643,7 @@ function generateBridgeScript(options) {
630
643
  function init() {
631
644
  injectMinimizeStyles();
632
645
  injectReviewPanelStyles();
646
+ injectGeneralStyles();
633
647
  if (window.parent !== window) {
634
648
  window.parent.postMessage({ type: ${JSON.stringify(WIDGET_MSG.READY)} }, "*");
635
649
  }
@@ -257,6 +257,14 @@ function generateBridgeScript(options) {
257
257
  }
258
258
  \`;
259
259
 
260
+ // === \u901A\u7528\u6837\u5F0F ===
261
+ const generalStyles = \`
262
+ /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
263
+ [data-session-title] .shrink-0 {
264
+ display: none !important;
265
+ }
266
+ \`;
267
+
260
268
  // === \u5BA1\u67E5\u9762\u677F\u8986\u76D6\u6837\u5F0F ===
261
269
  // \u5BA1\u67E5\u9762\u677F\u5168\u5C4F\uFF0C\u4F1A\u8BDD\u9762\u677F\u6D6E\u5728\u53F3\u4E0B\u89D2\uFF08\u7C7B\u4F3C\u63D2\u4EF6\u6700\u5C0F\u5316\u72B6\u6001\uFF09
262
270
  const reviewPanelStyles = \`
@@ -307,10 +315,7 @@ function generateBridgeScript(options) {
307
315
  display: none !important;
308
316
  }
309
317
 
310
- /* \u9690\u85CF\u4F1A\u8BDD\u9762\u677F\u6807\u9898\u53F3\u4FA7\u6309\u94AE\u533A */
311
- .opencode-review-panel-overlay [data-ref="session-panel"] [data-session-title] .shrink-0 {
312
- display: none !important;
313
- }
318
+
314
319
 
315
320
  /* \u9690\u85CF\u6D6E\u52A8\u4F1A\u8BDD\uFF08\u7528 visibility+opacity \u907F\u514D\u5207\u6362\u95EA\u70C1\uFF09 */
316
321
  .opencode-review-panel-overlay.hide-chat [data-ref="session-panel"] {
@@ -362,6 +367,14 @@ function generateBridgeScript(options) {
362
367
  document.head.appendChild(style);
363
368
  }
364
369
 
370
+ function injectGeneralStyles() {
371
+ if (document.getElementById('opencode-general-styles')) return;
372
+ const style = document.createElement('style');
373
+ style.id = 'opencode-general-styles';
374
+ style.textContent = generalStyles;
375
+ document.head.appendChild(style);
376
+ }
377
+
365
378
  // === \u6700\u5C0F\u5316\u72B6\u6001\u5904\u7406 ===
366
379
  let savedMinimizedState = null;
367
380
  let savedPromptDockVisibleState = null;
@@ -654,6 +667,7 @@ function generateBridgeScript(options) {
654
667
  function init() {
655
668
  injectMinimizeStyles();
656
669
  injectReviewPanelStyles();
670
+ injectGeneralStyles();
657
671
  if (window.parent !== window) {
658
672
  window.parent.postMessage({ type: ${JSON.stringify(import_shared.WIDGET_MSG.READY)} }, "*");
659
673
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-opencode-assistant",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Embed OpenCode Web UI in your Vite dev server for real-time code modification and preview",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
@@ -37,15 +37,15 @@
37
37
  "dependencies": {
38
38
  "unplugin-vue-inspector": "^3.0.0",
39
39
  "execa": "^9.6.1",
40
- "@vite-plugin-opencode-assistant/opencode": "1.1.2",
41
- "@vite-plugin-opencode-assistant/shared": "1.1.2",
42
- "@vite-plugin-opencode-assistant/components": "1.1.2"
40
+ "@vite-plugin-opencode-assistant/components": "1.1.3",
41
+ "@vite-plugin-opencode-assistant/shared": "1.1.3",
42
+ "@vite-plugin-opencode-assistant/opencode": "1.1.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vite": ">=5.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@vite-plugin-opencode-assistant/client": "1.1.2"
48
+ "@vite-plugin-opencode-assistant/client": "1.1.3"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "pagoda-cli build && vite build -c vite.client.config.ts",