pi-studio 0.5.49 → 0.5.51
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/CHANGELOG.md +23 -0
- package/README.md +1 -1
- package/client/studio-client.js +1023 -79
- package/client/studio.css +32 -22
- package/index.ts +4 -1
- package/package.json +1 -1
package/client/studio.css
CHANGED
|
@@ -661,11 +661,17 @@
|
|
|
661
661
|
-webkit-text-fill-color: transparent;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
.editor-selection-
|
|
664
|
+
.editor-selection-actions {
|
|
665
665
|
position: absolute;
|
|
666
666
|
top: 12px;
|
|
667
667
|
right: 12px;
|
|
668
668
|
z-index: 4;
|
|
669
|
+
display: inline-flex;
|
|
670
|
+
align-items: center;
|
|
671
|
+
gap: 8px;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.editor-selection-action-btn {
|
|
669
675
|
min-height: 24px;
|
|
670
676
|
border-radius: 999px;
|
|
671
677
|
padding: 0 10px;
|
|
@@ -677,13 +683,22 @@
|
|
|
677
683
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
678
684
|
}
|
|
679
685
|
|
|
680
|
-
.editor-selection-
|
|
681
|
-
.editor-selection-
|
|
686
|
+
.editor-selection-action-btn:hover,
|
|
687
|
+
.editor-selection-action-btn:focus-visible {
|
|
682
688
|
background: var(--accent-soft-strong);
|
|
683
689
|
color: var(--accent);
|
|
684
690
|
border-color: var(--accent);
|
|
685
691
|
}
|
|
686
692
|
|
|
693
|
+
.editor-selection-actions[hidden],
|
|
694
|
+
.editor-selection-action-btn[hidden],
|
|
695
|
+
.preview-selection-actions[hidden],
|
|
696
|
+
.preview-comment-add[hidden],
|
|
697
|
+
.preview-comment-jump[hidden],
|
|
698
|
+
.preview-comment-summary[hidden] {
|
|
699
|
+
display: none !important;
|
|
700
|
+
}
|
|
701
|
+
|
|
687
702
|
.hl-heading {
|
|
688
703
|
color: var(--md-heading);
|
|
689
704
|
font-weight: 700;
|
|
@@ -916,22 +931,24 @@
|
|
|
916
931
|
overflow-wrap: inherit;
|
|
917
932
|
}
|
|
918
933
|
|
|
919
|
-
.preview-
|
|
920
|
-
position:
|
|
921
|
-
top:
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
display:
|
|
925
|
-
|
|
934
|
+
.preview-selection-actions {
|
|
935
|
+
position: sticky;
|
|
936
|
+
top: 12px;
|
|
937
|
+
z-index: 6;
|
|
938
|
+
height: 0;
|
|
939
|
+
display: flex;
|
|
940
|
+
justify-content: flex-end;
|
|
941
|
+
align-items: flex-start;
|
|
926
942
|
gap: 8px;
|
|
927
|
-
|
|
943
|
+
pointer-events: none;
|
|
928
944
|
}
|
|
929
945
|
|
|
930
946
|
.preview-comment-summary {
|
|
931
947
|
display: none !important;
|
|
932
948
|
}
|
|
933
949
|
|
|
934
|
-
.preview-comment-add
|
|
950
|
+
.preview-comment-add,
|
|
951
|
+
.preview-comment-jump {
|
|
935
952
|
display: inline-flex;
|
|
936
953
|
align-items: center;
|
|
937
954
|
justify-content: center;
|
|
@@ -940,24 +957,17 @@
|
|
|
940
957
|
padding: 0 10px;
|
|
941
958
|
font-size: 12px;
|
|
942
959
|
line-height: 1;
|
|
943
|
-
opacity: 0;
|
|
944
|
-
pointer-events: none;
|
|
945
|
-
transform: translateY(-2px);
|
|
946
|
-
transition: opacity 120ms ease, transform 120ms ease, color 120ms ease, border-color 120ms ease, background-color 120ms ease;
|
|
947
960
|
background: var(--accent-soft);
|
|
948
961
|
border-color: var(--accent);
|
|
949
962
|
color: var(--accent);
|
|
950
963
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
.preview-comment-block.has-selection .preview-comment-add {
|
|
954
|
-
opacity: 1;
|
|
955
964
|
pointer-events: auto;
|
|
956
|
-
transform: translateY(0);
|
|
957
965
|
}
|
|
958
966
|
|
|
959
967
|
.preview-comment-add:hover,
|
|
960
|
-
.preview-comment-add:focus-visible
|
|
968
|
+
.preview-comment-add:focus-visible,
|
|
969
|
+
.preview-comment-jump:hover,
|
|
970
|
+
.preview-comment-jump:focus-visible {
|
|
961
971
|
background: var(--accent-soft-strong);
|
|
962
972
|
color: var(--accent);
|
|
963
973
|
border-color: var(--accent);
|
package/index.ts
CHANGED
|
@@ -6095,7 +6095,10 @@ ${cssVarsBlock}
|
|
|
6095
6095
|
<div id="lineNumberMeasure" class="editor-line-number-measure" aria-hidden="true"></div>
|
|
6096
6096
|
<pre id="sourceHighlight" class="editor-highlight" aria-hidden="true"></pre>
|
|
6097
6097
|
<textarea id="sourceText" placeholder="Paste or edit text here.">${initialText}</textarea>
|
|
6098
|
-
<
|
|
6098
|
+
<div id="editorSelectionActions" class="editor-selection-actions" hidden>
|
|
6099
|
+
<button id="editorSelectionCommentBtn" type="button" class="editor-selection-action-btn" hidden title="Create a new local comment from the current editor selection.">Comment</button>
|
|
6100
|
+
<button id="editorSelectionJumpBtn" type="button" class="editor-selection-action-btn" hidden title="Jump to the current editor selection in the preview.">Jump</button>
|
|
6101
|
+
</div>
|
|
6099
6102
|
</div>
|
|
6100
6103
|
<div id="sourcePreview" class="panel-scroll rendered-markdown" hidden><pre class="plain-markdown"></pre></div>
|
|
6101
6104
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-studio",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.51",
|
|
4
4
|
"description": "Two-pane browser workspace for pi with prompt/response editing, annotations, critiques, prompt/response history, and live Markdown/LaTeX/code preview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|