vite-plugin-opencode-assistant 1.1.1 → 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,6 +291,8 @@ function generateBridgeScript(options) {
283
291
  display: none !important;
284
292
  }
285
293
 
294
+
295
+
286
296
  /* \u9690\u85CF\u6D6E\u52A8\u4F1A\u8BDD\uFF08\u7528 visibility+opacity \u907F\u514D\u5207\u6362\u95EA\u70C1\uFF09 */
287
297
  .opencode-review-panel-overlay.hide-chat [data-ref="session-panel"] {
288
298
  visibility: hidden !important;
@@ -333,6 +343,14 @@ function generateBridgeScript(options) {
333
343
  document.head.appendChild(style);
334
344
  }
335
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
+
336
354
  // === \u6700\u5C0F\u5316\u72B6\u6001\u5904\u7406 ===
337
355
  let savedMinimizedState = null;
338
356
  let savedPromptDockVisibleState = null;
@@ -625,6 +643,7 @@ function generateBridgeScript(options) {
625
643
  function init() {
626
644
  injectMinimizeStyles();
627
645
  injectReviewPanelStyles();
646
+ injectGeneralStyles();
628
647
  if (window.parent !== window) {
629
648
  window.parent.postMessage({ type: ${JSON.stringify(WIDGET_MSG.READY)} }, "*");
630
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,6 +315,8 @@ function generateBridgeScript(options) {
307
315
  display: none !important;
308
316
  }
309
317
 
318
+
319
+
310
320
  /* \u9690\u85CF\u6D6E\u52A8\u4F1A\u8BDD\uFF08\u7528 visibility+opacity \u907F\u514D\u5207\u6362\u95EA\u70C1\uFF09 */
311
321
  .opencode-review-panel-overlay.hide-chat [data-ref="session-panel"] {
312
322
  visibility: hidden !important;
@@ -357,6 +367,14 @@ function generateBridgeScript(options) {
357
367
  document.head.appendChild(style);
358
368
  }
359
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
+
360
378
  // === \u6700\u5C0F\u5316\u72B6\u6001\u5904\u7406 ===
361
379
  let savedMinimizedState = null;
362
380
  let savedPromptDockVisibleState = null;
@@ -649,6 +667,7 @@ function generateBridgeScript(options) {
649
667
  function init() {
650
668
  injectMinimizeStyles();
651
669
  injectReviewPanelStyles();
670
+ injectGeneralStyles();
652
671
  if (window.parent !== window) {
653
672
  window.parent.postMessage({ type: ${JSON.stringify(import_shared.WIDGET_MSG.READY)} }, "*");
654
673
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-opencode-assistant",
3
- "version": "1.1.1",
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.1",
41
- "@vite-plugin-opencode-assistant/shared": "1.1.1",
42
- "@vite-plugin-opencode-assistant/components": "1.1.1"
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.1"
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",