pi-studio 0.9.4 → 0.9.6

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/client/studio.css CHANGED
@@ -177,7 +177,8 @@
177
177
  }
178
178
 
179
179
  #sendRunBtn,
180
- #queueSteerBtn {
180
+ #queueSteerBtn,
181
+ #sendReplBtn {
181
182
  min-width: 10rem;
182
183
  display: inline-flex;
183
184
  justify-content: center;
@@ -190,8 +191,9 @@
190
191
  align-items: center;
191
192
  }
192
193
 
193
- #sendRunBtn:not(:disabled):not(.request-stop-active),
194
+ #sendRunBtn:not(:disabled):not(.request-stop-active):not(.repl-secondary-action),
194
195
  #queueSteerBtn:not(:disabled),
196
+ #sendReplBtn.repl-primary-action:not(:disabled),
195
197
  #loadResponseBtn:not(:disabled):not([hidden]) {
196
198
  background: var(--accent);
197
199
  border-color: var(--accent);
@@ -199,8 +201,9 @@
199
201
  font-weight: 600;
200
202
  }
201
203
 
202
- #sendRunBtn:not(:disabled):not(.request-stop-active):hover,
204
+ #sendRunBtn:not(:disabled):not(.request-stop-active):not(.repl-secondary-action):hover,
203
205
  #queueSteerBtn:not(:disabled):hover,
206
+ #sendReplBtn.repl-primary-action:not(:disabled):hover,
204
207
  #loadResponseBtn:not(:disabled):not([hidden]):hover {
205
208
  filter: brightness(0.95);
206
209
  }
@@ -546,12 +549,33 @@
546
549
  min-width: 0;
547
550
  }
548
551
 
552
+ .source-actions-row[hidden],
553
+ .studio-refresh-action-line[hidden] {
554
+ display: none !important;
555
+ }
556
+
549
557
  .source-actions button,
550
558
  .source-actions select {
551
559
  padding: 6px 9px;
552
560
  font-size: 12px;
553
561
  }
554
562
 
563
+ .source-actions select {
564
+ border-color: transparent;
565
+ background: transparent;
566
+ }
567
+
568
+ .source-actions select:not(:disabled):hover,
569
+ .source-actions select:focus {
570
+ border-color: transparent;
571
+ background: var(--studio-header-action-hover-bg, var(--panel-2));
572
+ }
573
+
574
+ #sendReplBtn[hidden],
575
+ #replSendModeSelect[hidden] {
576
+ display: none !important;
577
+ }
578
+
555
579
  .resource-dir-btn {
556
580
  padding: 4px 10px;
557
581
  font-size: 12px;
@@ -1813,6 +1837,7 @@
1813
1837
  .studio-quiz-eyebrow,
1814
1838
  .studio-quiz-meta,
1815
1839
  .studio-quiz-source-note,
1840
+ .studio-quiz-hint,
1816
1841
  .studio-quiz-status {
1817
1842
  color: var(--muted);
1818
1843
  font-size: 12px;
@@ -1870,6 +1895,9 @@
1870
1895
  }
1871
1896
 
1872
1897
  .studio-quiz-fields label,
1898
+ .studio-quiz-context-path-label,
1899
+ .studio-quiz-focus-label,
1900
+ .studio-quiz-include-editor-label,
1873
1901
  .studio-quiz-answer-label {
1874
1902
  display: flex;
1875
1903
  flex-direction: column;
@@ -1881,6 +1909,8 @@
1881
1909
 
1882
1910
  .studio-quiz-fields select,
1883
1911
  .studio-quiz-fields input,
1912
+ .studio-quiz-context-path-label input,
1913
+ .studio-quiz-focus-label textarea,
1884
1914
  .studio-quiz-answer-label textarea,
1885
1915
  .studio-quiz-discuss-row textarea {
1886
1916
  width: 100%;
@@ -1892,11 +1922,38 @@
1892
1922
  }
1893
1923
 
1894
1924
  .studio-quiz-fields select,
1895
- .studio-quiz-fields input {
1925
+ .studio-quiz-fields input,
1926
+ .studio-quiz-context-path-label input {
1896
1927
  min-height: 34px;
1897
1928
  padding: 6px 8px;
1898
1929
  }
1899
1930
 
1931
+ .studio-quiz-context-path-label,
1932
+ .studio-quiz-focus-label {
1933
+ margin: 0 0 10px;
1934
+ }
1935
+
1936
+ .studio-quiz-include-editor-label {
1937
+ display: inline-flex;
1938
+ flex-direction: row;
1939
+ align-items: center;
1940
+ gap: 8px;
1941
+ margin: 0 0 10px;
1942
+ font-weight: 500;
1943
+ }
1944
+
1945
+ .studio-quiz-include-editor-label input {
1946
+ width: auto;
1947
+ }
1948
+
1949
+ .studio-quiz-focus-label textarea {
1950
+ min-height: 54px;
1951
+ padding: 8px;
1952
+ resize: vertical;
1953
+ font-size: 13px;
1954
+ line-height: 1.4;
1955
+ }
1956
+
1900
1957
  .studio-quiz-answer-label textarea,
1901
1958
  .studio-quiz-discuss-row textarea {
1902
1959
  min-height: 96px;
@@ -2014,6 +2071,11 @@
2014
2071
  font-weight: 600;
2015
2072
  }
2016
2073
 
2074
+ .studio-quiz-hint {
2075
+ margin-top: 8px;
2076
+ color: var(--warn);
2077
+ }
2078
+
2017
2079
  .studio-quiz-status {
2018
2080
  margin-top: 12px;
2019
2081
  }
@@ -2742,11 +2804,11 @@
2742
2804
  cursor: pointer;
2743
2805
  user-select: none;
2744
2806
  list-style: none;
2745
- border: 1px solid var(--control-border);
2807
+ border: 1px solid transparent;
2746
2808
  border-radius: 6px;
2747
2809
  padding: 4px 10px;
2748
2810
  color: var(--text);
2749
- background: var(--button-bg, var(--panel-2));
2811
+ background: transparent;
2750
2812
  }
2751
2813
 
2752
2814
  .repl-more-controls summary::-webkit-details-marker {
@@ -2760,9 +2822,19 @@
2760
2822
  font-size: 11px;
2761
2823
  }
2762
2824
 
2825
+ .repl-controls select {
2826
+ border-color: transparent;
2827
+ background: transparent;
2828
+ }
2829
+
2830
+ .repl-controls select:not(:disabled):hover,
2831
+ .repl-controls select:focus,
2832
+ .repl-more-controls summary:hover,
2833
+ .repl-more-controls summary:focus,
2763
2834
  .repl-more-controls[open] summary {
2764
- border-color: var(--accent);
2765
- background: var(--accent-soft);
2835
+ border-color: transparent;
2836
+ background: var(--studio-header-action-hover-bg, var(--panel-2));
2837
+ color: var(--text);
2766
2838
  }
2767
2839
 
2768
2840
  .repl-more-menu {
@@ -3777,11 +3849,15 @@
3777
3849
  }
3778
3850
 
3779
3851
  body.studio-ui-refresh #leftSectionHeader select:hover,
3852
+ body.studio-ui-refresh #leftSectionHeader select:focus,
3780
3853
  body.studio-ui-refresh #leftSectionHeader button:not(:disabled):hover,
3781
3854
  body.studio-ui-refresh #rightSectionHeader select:hover,
3855
+ body.studio-ui-refresh #rightSectionHeader select:focus,
3782
3856
  body.studio-ui-refresh #rightSectionHeader button:not(:disabled):hover,
3783
3857
  body.studio-ui-refresh .studio-refresh-toolbar button:not(:disabled):hover,
3784
- body.studio-ui-refresh .studio-refresh-toolbar select:not(:disabled):hover {
3858
+ body.studio-ui-refresh .studio-refresh-toolbar select:not(:disabled):hover,
3859
+ body.studio-ui-refresh .studio-refresh-toolbar select:focus {
3860
+ border-color: transparent;
3785
3861
  background: var(--studio-header-action-hover-bg, var(--panel-2));
3786
3862
  }
3787
3863
 
@@ -3901,8 +3977,8 @@
3901
3977
  body.studio-zen-mode #exportPdfBtn,
3902
3978
  body.studio-zen-mode .studio-refresh-tool-tab,
3903
3979
  body.studio-zen-mode .studio-refresh-toolbar-state,
3904
- body.studio-zen-mode .studio-refresh-toolbar-actions .studio-refresh-action-line:nth-child(n+2),
3905
- body.studio-zen-mode .source-actions-row:nth-child(n+2),
3980
+ body.studio-zen-mode .studio-refresh-toolbar-actions .studio-refresh-action-line:nth-child(n+3),
3981
+ body.studio-zen-mode .source-actions-row:nth-child(n+3),
3906
3982
  body.studio-zen-mode #copyDraftBtn,
3907
3983
  body.studio-zen-mode #openCompanionBtn,
3908
3984
  body.studio-zen-mode #sendEditorBtn {
@@ -4059,13 +4135,13 @@
4059
4135
  font-size: 12px;
4060
4136
  }
4061
4137
 
4062
- body.studio-ui-refresh .studio-refresh-toolbar button:not(#sendRunBtn):not(#queueSteerBtn):not(.request-stop-active),
4138
+ body.studio-ui-refresh .studio-refresh-toolbar button:not(#sendRunBtn):not(#queueSteerBtn):not(#sendReplBtn):not(.request-stop-active),
4063
4139
  body.studio-ui-refresh .studio-refresh-toolbar select {
4064
4140
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
4065
4141
  font-weight: 500;
4066
4142
  }
4067
4143
 
4068
- body.studio-ui-refresh .studio-refresh-toolbar button:not(#sendRunBtn):not(#queueSteerBtn):not(.request-stop-active):hover,
4144
+ body.studio-ui-refresh .studio-refresh-toolbar button:not(#sendRunBtn):not(#queueSteerBtn):not(#sendReplBtn):not(.request-stop-active):hover,
4069
4145
  body.studio-ui-refresh .studio-refresh-toolbar select:not(:disabled):hover {
4070
4146
  color: var(--text);
4071
4147
  }
@@ -4191,6 +4267,7 @@
4191
4267
 
4192
4268
  body.studio-ui-refresh #sendRunBtn,
4193
4269
  body.studio-ui-refresh #queueSteerBtn,
4270
+ body.studio-ui-refresh #sendReplBtn,
4194
4271
  body.studio-ui-refresh #loadResponseBtn:not([hidden]) {
4195
4272
  height: 28px;
4196
4273
  min-height: 28px;
@@ -4201,7 +4278,8 @@
4201
4278
  }
4202
4279
 
4203
4280
  body.studio-ui-refresh #sendRunBtn,
4204
- body.studio-ui-refresh #queueSteerBtn {
4281
+ body.studio-ui-refresh #queueSteerBtn,
4282
+ body.studio-ui-refresh #sendReplBtn {
4205
4283
  min-width: 8.6rem;
4206
4284
  }
4207
4285