@pstdio/ui 0.3.1 → 0.5.0

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.
Files changed (162) hide show
  1. package/dist/MermaidComponent-DwEDwpo2.js +124 -0
  2. package/dist/MermaidComponent-DwEDwpo2.js.map +1 -0
  3. package/dist/chat-ui.js +610 -505
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/attached-panel.d.ts +9 -0
  6. package/dist/components/attached-panel.utils.d.ts +6 -0
  7. package/dist/components/bubble-button.d.ts +10 -0
  8. package/dist/components/bubble-panel.d.ts +18 -0
  9. package/dist/components/chat-ui/components/chat-input-actions.d.ts +10 -0
  10. package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +1 -1
  11. package/dist/components/chat-ui/components/chat-panel.d.ts +1 -0
  12. package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +2 -0
  13. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +8 -7
  14. package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +2 -0
  15. package/dist/components/chat-ui/tool-rendering/shared.d.ts +52 -0
  16. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +6 -0
  17. package/dist/components/chat-ui/tool-rendering/todo-write-renderer.d.ts +2 -0
  18. package/dist/components/diff-card.d.ts +3 -0
  19. package/dist/components/diff-drawer.d.ts +1 -0
  20. package/dist/components/layout.d.ts +1 -2
  21. package/dist/components/menu-item.d.ts +2 -1
  22. package/dist/components/panel-header.constants.d.ts +1 -0
  23. package/dist/components/resource-context-menu.d.ts +20 -0
  24. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +1 -0
  25. package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +2 -1
  26. package/dist/components/rich-text/shared/components/content-editable.d.ts +2 -1
  27. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +4 -0
  28. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +2 -0
  29. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +1 -0
  30. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +17 -0
  31. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +11 -0
  32. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +6 -0
  33. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +23 -0
  34. package/dist/components/rich-text/shared/plugins/MermaidPlugin/index.d.ts +1 -0
  35. package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +1 -0
  36. package/dist/components/rich-text/utils/markdown.d.ts +1 -0
  37. package/dist/components/searchable-menu.d.ts +35 -2
  38. package/dist/components/session-indicator.d.ts +2 -2
  39. package/dist/components/sidebar/sidebar-footer.d.ts +6 -0
  40. package/dist/components/sidebar/sidebar-header.d.ts +7 -0
  41. package/dist/components/sidebar/sidebar-project-menu.d.ts +10 -0
  42. package/dist/components/sidebar/sidebar.d.ts +2 -0
  43. package/dist/components/sidebar/sidebar.store.d.ts +47 -0
  44. package/dist/components/{sidebar-next/sidebar-next.types.d.ts → sidebar/sidebar.types.d.ts} +3 -2
  45. package/dist/components/sidebar-tree/sidebar-node-content.d.ts +9 -0
  46. package/dist/components/sidebar-tree/sidebar-tree.d.ts +1 -1
  47. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +15 -3
  48. package/dist/components/tickets/tag-badge.d.ts +10 -0
  49. package/dist/components/tickets/tag-option-icon.d.ts +2 -0
  50. package/dist/components/tickets/ticket-board.d.ts +2 -0
  51. package/dist/components/tickets/ticket-card.d.ts +12 -7
  52. package/dist/components/tickets/ticket-grouping.d.ts +2 -2
  53. package/dist/components/tickets/ticket-list.d.ts +6 -1
  54. package/dist/components/tickets/tickets-workspace.d.ts +9 -3
  55. package/dist/components/tickets/types.d.ts +22 -5
  56. package/dist/components/tickets/workspace-helpers.d.ts +13 -0
  57. package/dist/components/workspace-badge.d.ts +22 -0
  58. package/dist/get-file-type-icon-Bwqf1WXA.js +101 -0
  59. package/dist/get-file-type-icon-Bwqf1WXA.js.map +1 -0
  60. package/dist/index.d.ts +22 -21
  61. package/dist/index.js +2303 -1963
  62. package/dist/index.js.map +1 -1
  63. package/dist/rich-message-BVRk9BSD.js +1503 -0
  64. package/dist/rich-message-BVRk9BSD.js.map +1 -0
  65. package/dist/rich-text.js +442 -279
  66. package/dist/rich-text.js.map +1 -1
  67. package/dist/style.css +1 -1
  68. package/dist/test-utils/local-storage.d.ts +1 -0
  69. package/dist/theme/global.d.ts +3 -0
  70. package/dist/theme/primitives/colors.d.ts +116 -0
  71. package/dist/theme/recipes/button.d.ts +13 -13
  72. package/dist/theme/recipes/dialog.d.ts +1 -1
  73. package/dist/theme/recipes/drawer.d.ts +1 -1
  74. package/dist/theme/recipes/menu.d.ts +1 -1
  75. package/dist/theme/recipes/popover.d.ts +1 -1
  76. package/dist/theme/recipes/tooltip.d.ts +1 -1
  77. package/dist/theme/tokens/colors.d.ts +162 -8
  78. package/dist/{theme-BFV2Q048.js → theme-D0VvFB1Y.js} +292 -154
  79. package/dist/theme-D0VvFB1Y.js.map +1 -0
  80. package/dist/theme.js +1 -1
  81. package/package.json +4 -2
  82. package/dist/components/breadcrumb.stories.d.ts +0 -25
  83. package/dist/components/button.stories.d.ts +0 -18
  84. package/dist/components/chat-ui/components/ai-conversation.stories.d.ts +0 -6
  85. package/dist/components/chat-ui/components/ai-conversation.test.d.ts +0 -1
  86. package/dist/components/chat-ui/components/ai-message.stories.d.ts +0 -6
  87. package/dist/components/chat-ui/components/ai-response.stories.d.ts +0 -7
  88. package/dist/components/chat-ui/components/attachment-list.stories.d.ts +0 -6
  89. package/dist/components/chat-ui/components/chat-input.stories.d.ts +0 -7
  90. package/dist/components/chat-ui/components/chat-panel-alerts.stories.d.ts +0 -9
  91. package/dist/components/chat-ui/components/chat-panel.sticky-user-message.test.d.ts +0 -1
  92. package/dist/components/chat-ui/components/chat-panel.stories.d.ts +0 -10
  93. package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -9
  94. package/dist/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -6
  95. package/dist/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -6
  96. package/dist/components/chat-ui/components/workspace-hub.stories.d.ts +0 -6
  97. package/dist/components/checkbox.stories.d.ts +0 -15
  98. package/dist/components/column-file-browser.stories.d.ts +0 -15
  99. package/dist/components/data-table/data-table.stories.d.ts +0 -33
  100. package/dist/components/delete-confirmation-modal.stories.d.ts +0 -11
  101. package/dist/components/diff-bubble.stories.d.ts +0 -13
  102. package/dist/components/diff-drawer.stories.d.ts +0 -8
  103. package/dist/components/diff-view-adapter.test.d.ts +0 -1
  104. package/dist/components/documentation/docs-changelog.d.ts +0 -20
  105. package/dist/components/documentation/docs-changelog.stories.d.ts +0 -15
  106. package/dist/components/documentation/docs-outline.d.ts +0 -13
  107. package/dist/components/documentation/docs-outline.stories.d.ts +0 -16
  108. package/dist/components/documentation/docs-pagination.d.ts +0 -10
  109. package/dist/components/documentation/docs-pagination.stories.d.ts +0 -14
  110. package/dist/components/documentation/docs-sidebar.d.ts +0 -14
  111. package/dist/components/documentation/docs-sidebar.stories.d.ts +0 -7
  112. package/dist/components/drawer-inline.stories.d.ts +0 -8
  113. package/dist/components/empty-state.stories.d.ts +0 -34
  114. package/dist/components/file-selector.stories.d.ts +0 -17
  115. package/dist/components/folder-picker-dialog.stories.d.ts +0 -11
  116. package/dist/components/info-card.stories.d.ts +0 -41
  117. package/dist/components/item-section.stories.d.ts +0 -17
  118. package/dist/components/layout.stories.d.ts +0 -11
  119. package/dist/components/menu-item.stories.d.ts +0 -72
  120. package/dist/components/open-source-notices-screen.stories.d.ts +0 -12
  121. package/dist/components/panel-menu.d.ts +0 -9
  122. package/dist/components/panel-menu.stories.d.ts +0 -8
  123. package/dist/components/param-editor-horizontal.stories.d.ts +0 -19
  124. package/dist/components/param-editor.stories.d.ts +0 -24
  125. package/dist/components/properties.stories.d.ts +0 -17
  126. package/dist/components/resource-badge.stories.d.ts +0 -7
  127. package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -9
  128. package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -7
  129. package/dist/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -8
  130. package/dist/components/rich-text/rich-message/rich-message.stories.d.ts +0 -6
  131. package/dist/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -7
  132. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -21
  133. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +0 -1
  134. package/dist/components/scroll-area.stories.d.ts +0 -7
  135. package/dist/components/searchable-menu.stories.d.ts +0 -6
  136. package/dist/components/searchable-menu.test.d.ts +0 -1
  137. package/dist/components/session-indicator.stories.d.ts +0 -11
  138. package/dist/components/sidebar-next/sidebar-next-footer.d.ts +0 -6
  139. package/dist/components/sidebar-next/sidebar-next-header.d.ts +0 -7
  140. package/dist/components/sidebar-next/sidebar-next.d.ts +0 -2
  141. package/dist/components/sidebar-next/sidebar-next.store.d.ts +0 -47
  142. package/dist/components/sidebar-next/sidebar-next.store.test.d.ts +0 -1
  143. package/dist/components/sidebar-next/sidebar-next.stories.d.ts +0 -10
  144. package/dist/components/sidebar-tree/sidebar-tree-searchable-action-menu.stories.d.ts +0 -6
  145. package/dist/components/sidebar-tree/sidebar-tree.stories.d.ts +0 -13
  146. package/dist/components/slider.stories.d.ts +0 -15
  147. package/dist/components/style-guide.stories.d.ts +0 -28
  148. package/dist/components/switch.stories.d.ts +0 -16
  149. package/dist/components/tickets/display-menu.stories.d.ts +0 -6
  150. package/dist/components/tickets/filter-menu.stories.d.ts +0 -6
  151. package/dist/components/tickets/ticket-board.stories.d.ts +0 -5
  152. package/dist/components/tickets/ticket-card.stories.d.ts +0 -18
  153. package/dist/components/tickets/ticket-grouping.test.d.ts +0 -1
  154. package/dist/components/tickets/ticket-list.stories.d.ts +0 -10
  155. package/dist/components/tickets/tickets-workspace.stories.d.ts +0 -10
  156. package/dist/components/tickets/use-workspace-store.test.d.ts +0 -1
  157. package/dist/components/toaster.stories.d.ts +0 -11
  158. package/dist/rich-message-ZT2CEiwt.js +0 -1406
  159. package/dist/rich-message-ZT2CEiwt.js.map +0 -1
  160. package/dist/theme-BFV2Q048.js.map +0 -1
  161. package/dist/tooltip-Dze4WXVl.js +0 -86
  162. package/dist/tooltip-Dze4WXVl.js.map +0 -1
@@ -1,4 +1,4 @@
1
- export declare const popoverRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"title" | "content" | "body" | "footer" | "header" | "description" | "indicator" | "anchor" | "trigger" | "positioner" | "closeTrigger" | "arrow" | "arrowTip", {
1
+ export declare const popoverRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"title" | "content" | "body" | "footer" | "header" | "description" | "indicator" | "anchor" | "trigger" | "arrow" | "arrowTip" | "positioner" | "closeTrigger", {
2
2
  variant: {
3
3
  responsive: {
4
4
  content: {
@@ -1 +1 @@
1
- export declare const tooltipRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "positioner" | "arrow" | "arrowTip", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">>;
1
+ export declare const tooltipRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "trigger" | "arrow" | "arrowTip" | "positioner", import('@chakra-ui/react').SlotRecipeVariantRecord<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">>;
@@ -102,6 +102,18 @@ export declare const bg: {
102
102
  _dark: string;
103
103
  };
104
104
  };
105
+ hover: {
106
+ value: {
107
+ base: string;
108
+ _dark: string;
109
+ };
110
+ };
111
+ active: {
112
+ value: {
113
+ base: string;
114
+ _dark: string;
115
+ };
116
+ };
105
117
  code: {
106
118
  value: {
107
119
  base: string;
@@ -141,13 +153,22 @@ export declare const bg: {
141
153
  button: {
142
154
  primary: {
143
155
  default: {
144
- value: string;
156
+ value: {
157
+ base: string;
158
+ _dark: string;
159
+ };
145
160
  };
146
161
  hover: {
147
- value: string;
162
+ value: {
163
+ base: string;
164
+ _dark: string;
165
+ };
148
166
  };
149
167
  pressed: {
150
- value: string;
168
+ value: {
169
+ base: string;
170
+ _dark: string;
171
+ };
151
172
  };
152
173
  disabled: {
153
174
  value: string;
@@ -305,6 +326,12 @@ export declare const bg: {
305
326
  _dark: string;
306
327
  };
307
328
  };
329
+ "yellow-dark": {
330
+ value: {
331
+ base: string;
332
+ _dark: string;
333
+ };
334
+ };
308
335
  "sand-light": {
309
336
  value: {
310
337
  base: string;
@@ -359,7 +386,57 @@ export declare const border: {
359
386
  export declare const blue: {
360
387
  border: {
361
388
  value: {
362
- base: string;
389
+ _light: string;
390
+ _dark: string;
391
+ };
392
+ };
393
+ };
394
+ export declare const orange: {
395
+ contrast: {
396
+ value: {
397
+ _light: string;
398
+ _dark: string;
399
+ };
400
+ };
401
+ fg: {
402
+ value: {
403
+ _light: string;
404
+ _dark: string;
405
+ };
406
+ };
407
+ subtle: {
408
+ value: {
409
+ _light: string;
410
+ _dark: string;
411
+ };
412
+ };
413
+ muted: {
414
+ value: {
415
+ _light: string;
416
+ _dark: string;
417
+ };
418
+ };
419
+ emphasized: {
420
+ value: {
421
+ _light: string;
422
+ _dark: string;
423
+ };
424
+ };
425
+ solid: {
426
+ value: {
427
+ _light: string;
428
+ _dark: string;
429
+ };
430
+ };
431
+ focusRing: {
432
+ value: {
433
+ _light: string;
434
+ _dark: string;
435
+ };
436
+ };
437
+ border: {
438
+ value: {
439
+ _light: string;
363
440
  _dark: string;
364
441
  };
365
442
  };
@@ -641,6 +718,18 @@ export declare const semanticColors: {
641
718
  _dark: string;
642
719
  };
643
720
  };
721
+ hover: {
722
+ value: {
723
+ base: string;
724
+ _dark: string;
725
+ };
726
+ };
727
+ active: {
728
+ value: {
729
+ base: string;
730
+ _dark: string;
731
+ };
732
+ };
644
733
  code: {
645
734
  value: {
646
735
  base: string;
@@ -680,13 +769,22 @@ export declare const semanticColors: {
680
769
  button: {
681
770
  primary: {
682
771
  default: {
683
- value: string;
772
+ value: {
773
+ base: string;
774
+ _dark: string;
775
+ };
684
776
  };
685
777
  hover: {
686
- value: string;
778
+ value: {
779
+ base: string;
780
+ _dark: string;
781
+ };
687
782
  };
688
783
  pressed: {
689
- value: string;
784
+ value: {
785
+ base: string;
786
+ _dark: string;
787
+ };
690
788
  };
691
789
  disabled: {
692
790
  value: string;
@@ -844,6 +942,12 @@ export declare const semanticColors: {
844
942
  _dark: string;
845
943
  };
846
944
  };
945
+ "yellow-dark": {
946
+ value: {
947
+ base: string;
948
+ _dark: string;
949
+ };
950
+ };
847
951
  "sand-light": {
848
952
  value: {
849
953
  base: string;
@@ -898,7 +1002,57 @@ export declare const semanticColors: {
898
1002
  blue: {
899
1003
  border: {
900
1004
  value: {
901
- base: string;
1005
+ _light: string;
1006
+ _dark: string;
1007
+ };
1008
+ };
1009
+ };
1010
+ orange: {
1011
+ contrast: {
1012
+ value: {
1013
+ _light: string;
1014
+ _dark: string;
1015
+ };
1016
+ };
1017
+ fg: {
1018
+ value: {
1019
+ _light: string;
1020
+ _dark: string;
1021
+ };
1022
+ };
1023
+ subtle: {
1024
+ value: {
1025
+ _light: string;
1026
+ _dark: string;
1027
+ };
1028
+ };
1029
+ muted: {
1030
+ value: {
1031
+ _light: string;
1032
+ _dark: string;
1033
+ };
1034
+ };
1035
+ emphasized: {
1036
+ value: {
1037
+ _light: string;
1038
+ _dark: string;
1039
+ };
1040
+ };
1041
+ solid: {
1042
+ value: {
1043
+ _light: string;
1044
+ _dark: string;
1045
+ };
1046
+ };
1047
+ focusRing: {
1048
+ value: {
1049
+ _light: string;
1050
+ _dark: string;
1051
+ };
1052
+ };
1053
+ border: {
1054
+ value: {
1055
+ _light: string;
902
1056
  _dark: string;
903
1057
  };
904
1058
  };