@vite-hub/ui 0.5.1 → 0.6.1

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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/{colors-BghReA9C-DEq4bhEP.js → colors-BghReA9C-A4M9YE0s.js} +1 -1
  3. package/dist/{comment-attachments-CMpYOJod.js → comment-attachments-DAzUbRmJ.js} +4 -0
  4. package/dist/{comment-composer-BI6CNJyO.d.ts → comment-composer-DmDM3XYP.d.ts} +1 -1
  5. package/dist/{comment-composer-CzU7DdfD.js → comment-composer-X7vJKh5b.js} +4 -4
  6. package/dist/comment-layer-KnnVfdRV.d.ts +130 -0
  7. package/dist/{comment-list-CSK5o-Ua.d.ts → comment-list-ncwaCSVX.d.ts} +2 -2
  8. package/dist/{comment-panel-CEvOI3gk.d.ts → comment-panel-DoLDOw3E.d.ts} +2 -42
  9. package/dist/{comment-pin-C5UeLPTa.d.ts → comment-pin-hBJFiSYW.d.ts} +1 -1
  10. package/dist/{comment-send-DPzV9B8S.js → comment-send-CUkL3TbZ.js} +2 -2
  11. package/dist/comment-status-nsCdrRk_.js +20 -0
  12. package/dist/{comment-thread-DGm1cGJt.d.ts → comment-thread-DPV2kqA4.d.ts} +4 -8
  13. package/dist/{comment-thread-CbPtoi8-.js → comment-thread-jqPx6aJ8.js} +9 -9
  14. package/dist/{comments-C0OdHh_F.js → comments-9MDSNm-9.js} +40 -47
  15. package/dist/{comments-DrE9DU-E.d.ts → comments-OWjNidkP.d.ts} +7 -5
  16. package/dist/{comments-context-CrjhleVA.js → comments-context-3js2YFl2.js} +2 -2
  17. package/dist/{config-xL4EBeXw.d.ts → config-COSdO-ay.d.ts} +2 -1
  18. package/dist/{config-DztmAYYn.js → config-LRonN53j.js} +9 -3
  19. package/dist/{draw-DzSmD7uo-Cb7s9kxJ.js → draw-DzSmD7uo-BvtKi0oE.js} +2 -2
  20. package/dist/{editor-CGiEVOnB.js → editor-Dmk3k6f6.js} +1 -1
  21. package/dist/{effects-g4QucvgO.js → effects-C1zYpSpg.js} +9 -2
  22. package/dist/{format-Bc9m7-r0.js → format-CPipR1FP.js} +4 -23
  23. package/dist/headless.d.ts +2 -2
  24. package/dist/headless.js +1 -1
  25. package/dist/{image-preview-DrLXrHpp.js → image-preview-BKVUtfwQ.js} +1 -1
  26. package/dist/index.d.ts +11 -11
  27. package/dist/index.js +10 -9
  28. package/dist/{install-Ba9mkkqI.js → install-C4LwcJda.js} +1 -1
  29. package/dist/{markdown-editor-3gY9MLvy.js → markdown-editor-D1irG9Xl.js} +45 -11
  30. package/dist/markdown-editor.js +1 -1
  31. package/dist/{markdown-renderer-DFS1vf1h.js → markdown-renderer-DMyYKeil.js} +13062 -12372
  32. package/dist/{message-scroller-a6qaYHno.d.ts → message-scroller-BZqS63IX.d.ts} +2 -2
  33. package/dist/motion/core.d.ts +1 -1
  34. package/dist/motion/core.js +4 -4
  35. package/dist/{motion-core-DNl7TR1T.d.ts → motion-core-Dh20n5Se.d.ts} +2 -1
  36. package/dist/motion.d.ts +1 -1
  37. package/dist/motion.js +5 -5
  38. package/dist/nuxt.d.ts +1 -1
  39. package/dist/parts/components/agent-session.d.ts +46 -3
  40. package/dist/parts/components/agent-session.js +27 -7
  41. package/dist/parts/components/avatar-stack.js +1 -1
  42. package/dist/parts/components/chat.js +1 -1
  43. package/dist/parts/components/comment-composer.d.ts +1 -1
  44. package/dist/parts/components/comment-composer.js +1 -1
  45. package/dist/parts/components/comment-layer.d.ts +1 -1
  46. package/dist/parts/components/comment-layer.js +21 -35
  47. package/dist/parts/components/comment-list.d.ts +1 -1
  48. package/dist/parts/components/comment-list.js +3 -2
  49. package/dist/parts/components/comment-panel.d.ts +1 -1
  50. package/dist/parts/components/comment-panel.js +32 -29
  51. package/dist/parts/components/comment-pin.d.ts +1 -1
  52. package/dist/parts/components/comment-selection-bar.js +1 -1
  53. package/dist/parts/components/comment-send.js +1 -1
  54. package/dist/parts/components/comment-thread.d.ts +2 -2
  55. package/dist/parts/components/comment-thread.js +3 -3
  56. package/dist/parts/components/comments.d.ts +6 -6
  57. package/dist/parts/components/comments.js +4 -4
  58. package/dist/parts/components/copy-button.js +2 -2
  59. package/dist/parts/components/markdown-editor.js +1 -1
  60. package/dist/parts/components/markdown-renderer.js +1 -1
  61. package/dist/parts/components/markdown.js +1 -1
  62. package/dist/parts/components/message-parts.js +1 -1
  63. package/dist/parts/components/motion.js +2 -2
  64. package/dist/parts/components/prompt-input.d.ts +3 -3
  65. package/dist/parts/components/prompt-input.js +2 -2
  66. package/dist/parts/components/trace-run.js +1 -1
  67. package/dist/parts/headless/comments.d.ts +1 -1
  68. package/dist/parts/headless/comments.js +1 -1
  69. package/dist/parts/headless/message-scroller.d.ts +1 -1
  70. package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
  71. package/dist/parts/workspace/browser-support-notice.js +1 -1
  72. package/dist/parts/workspace/workspace-boot-status.js +1 -1
  73. package/dist/parts/workspace/workspace-sidebar.d.ts +1 -1
  74. package/dist/parts/workspace/workspace-sidebar.js +1 -1
  75. package/dist/parts/workspace/workspace.d.ts +2 -2
  76. package/dist/parts/workspace/workspace.js +1 -1
  77. package/dist/{ring-BN4d8vtw.js → ring-GaJsg32c.js} +63 -12
  78. package/dist/runtime/nuxt-plugin.js +1 -1
  79. package/dist/{sankey-CAYwt82B-BAAk7WkJ.js → sankey-CAYwt82B-e6k34wtW.js} +3 -3
  80. package/dist/styles.css +20 -2
  81. package/dist/{text-BWzZFnGY.js → text-gacox6bp.js} +1 -1
  82. package/dist/{travel-CwVhU_GS.js → travel-BliEidau.js} +1 -1
  83. package/dist/vue-d2Td6uu2.js +6587 -0
  84. package/dist/{vue-kCdzBu0N.js → vue-vUGpdMct.js} +1 -1
  85. package/dist/workspace.js +1 -1
  86. package/package.json +7 -7
  87. package/dist/comment-layer-DyVstrs-.d.ts +0 -174
  88. package/dist/vue-BlknIGIm.js +0 -2501
@@ -1,4 +1,4 @@
1
- import "./markdown-renderer-DFS1vf1h.js";
1
+ import "./markdown-renderer-DMyYKeil.js";
2
2
  import { defineComponent, h, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
3
3
  import { escapeHtml } from "comark/utils";
4
4
  // ../../node_modules/.pnpm/pele@1.12.0/node_modules/pele/dist/pele.js
package/dist/workspace.js CHANGED
@@ -6,7 +6,7 @@ import { webContainer } from "./parts/workspace/runners/web-container.js";
6
6
  import { Workspace, useWorkspace, useWorkspaceDevice } from "./parts/workspace/workspace.js";
7
7
  import { WorkspaceBar } from "./parts/workspace/workspace-bar.js";
8
8
  import { WorkspaceBootStatus, bootChecklist } from "./parts/workspace/workspace-boot-status.js";
9
- import { t as formatDuration } from "./format-Bc9m7-r0.js";
9
+ import { t as formatDuration } from "./format-CPipR1FP.js";
10
10
  import { WorkspaceEditor } from "./parts/workspace/workspace-editor.js";
11
11
  import { WorkspaceEditorHead } from "./parts/workspace/workspace-editor-head.js";
12
12
  import { WorkspaceExamples, groupExamples } from "./parts/workspace/workspace-examples.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/ui",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "AI interface primitives for Vue and Nuxt.",
5
5
  "keywords": [
6
6
  "ai",
@@ -96,7 +96,7 @@
96
96
  "@shikijs/langs": "4.6.0",
97
97
  "@shikijs/themes": "4.6.0",
98
98
  "@types/node": "^24.19.2",
99
- "@vite-hub/comments": "0.5.1",
99
+ "@vite-hub/comments": "0.6.1",
100
100
  "@ui-sdk/core": "0.1.0-beta.14",
101
101
  "@ui-sdk/vue": "0.1.0-beta.14",
102
102
  "nostics": "1.4.0",
@@ -116,7 +116,7 @@
116
116
  "@codemirror/state": "6.7.6",
117
117
  "@codemirror/view": "6.43.15",
118
118
  "@lezer/highlight": "1.2.5",
119
- "@vite-hub/web-container": "0.5.1",
119
+ "@vite-hub/web-container": "0.6.1",
120
120
  "@xterm/addon-fit": "0.11.0",
121
121
  "@xterm/xterm": "6.0.0"
122
122
  },
@@ -135,7 +135,7 @@
135
135
  "@vitejs/plugin-vue": "^6.0.11",
136
136
  "@vite-hub/icons": "0.1.0",
137
137
  "@vite-hub/internal": "0.0.1",
138
- "@vite-hub/runtime": "0.5.1",
138
+ "@vite-hub/runtime": "0.6.1",
139
139
  "@vue/server-renderer": "3.5.46",
140
140
  "@vue/test-utils": "2.6.0",
141
141
  "ai": "7.0.179",
@@ -150,8 +150,8 @@
150
150
  "vitest": "5.1.0",
151
151
  "vue": "3.5.46",
152
152
  "@types/markdown-it": "^14.2.0",
153
- "comark-ui": "^0.12.2",
154
- "@vite-hub/content": "0.5.1",
153
+ "comark-ui": "^0.14.3",
154
+ "@vite-hub/content": "0.6.1",
155
155
  "playwright-core": "^1.65.1",
156
156
  "@tiptap/core": "^3.35.0",
157
157
  "@tiptap/extension-drag-handle": "3.35.0",
@@ -162,7 +162,7 @@
162
162
  "@tiptap/pm": "^3.35.0",
163
163
  "@tiptap/starter-kit": "^3.35.0",
164
164
  "@tiptap/vue-3": "3.35.0",
165
- "@vite-hub/blob": "0.5.1"
165
+ "@vite-hub/blob": "0.6.1"
166
166
  },
167
167
  "peerDependencies": {
168
168
  "@floating-ui/dom": "^1.0.0",
@@ -1,174 +0,0 @@
1
- import { s as CommentsState, t as CommentCan } from "./comments-DrE9DU-E.js";
2
- import { n as AvatarStackPerson } from "./avatar-stack-C0IKwj6g.js";
3
- import { r as CommentComposerSize } from "./comment-composer-BI6CNJyO.js";
4
- import { c as CommentUpload } from "./comment-panel-CEvOI3gk.js";
5
- import { n as CommentAttachmentUrl } from "./comment-thread-DGm1cGJt.js";
6
- import { PropType } from "vue";
7
- import { CommentSubject, CommentUser, CommentsClient } from "@vite-hub/comments/client";
8
- /** Where a thread opens: in a card beside its pin, or in a column of cards on the right edge of the screen. */
9
- type CommentPlacement = "pin" | "margin";
10
- declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
- client: {
12
- type: PropType<CommentsClient>;
13
- };
14
- /** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
15
- subject: {
16
- type: PropType<CommentSubject>;
17
- };
18
- /** The signed-in user. Defaults to the client's user. */
19
- user: {
20
- type: PropType<CommentUser>;
21
- };
22
- /** A state from `useComments()`, instead of `client` and `subject`. */
23
- comments: {
24
- type: PropType<CommentsState>;
25
- };
26
- /** The people on this page, shown in the toolbar. */
27
- people: {
28
- default: () => never[];
29
- type: PropType<AvatarStackPerson[]>;
30
- };
31
- /** The key that toggles comment mode. `false` turns it off. */
32
- hotkey: {
33
- default: string;
34
- type: PropType<string | false>;
35
- };
36
- /** Hide thread mutation controls when the viewer may only read. */
37
- readOnly: {
38
- default: boolean;
39
- type: BooleanConstructor;
40
- };
41
- /** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
42
- subjectUrl: {
43
- type: PropType<(subject: CommentSubject) => string | undefined>;
44
- };
45
- /** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
46
- navigate: {
47
- type: PropType<(href: string) => void>;
48
- };
49
- /** What the signed-in user may do in a thread. Defaults to the `can` of the comments state. */
50
- can: {
51
- type: PropType<CommentCan>;
52
- };
53
- /** Turns attached files into attachment keys before the comment is saved or sent. */
54
- upload: {
55
- type: PropType<CommentUpload>;
56
- };
57
- /** Save raw files with outbox entries. Set only when the server accepts file uploads. `upload` takes precedence. */
58
- queueFiles: {
59
- default: boolean;
60
- type: BooleanConstructor;
61
- };
62
- /** The file types that the boxes take, such as `image/*`. */
63
- accept: {
64
- type: StringConstructor;
65
- };
66
- /** Gives the URL of an attachment key. With it, image attachments show as thumbnails. */
67
- attachmentUrl: {
68
- type: PropType<CommentAttachmentUrl>;
69
- };
70
- /**
71
- * Where threads open. `"pin"` opens a thread in a card beside its pin. `"margin"` shows every thread as a card in a
72
- * column on the right edge of the screen, level with its pin, and opens it in that card, with the reply box there.
73
- * A new comment is written there too. On a screen narrower than 900px, `"margin"` works as `"pin"`.
74
- */
75
- placement: {
76
- default: string;
77
- type: PropType<CommentPlacement>;
78
- };
79
- /**
80
- * The size of the thread cards and of the box for a new comment. `"sm"`, the default, is Drop's floating card: 14px
81
- * text, tight rows, and Edit and Delete over the name's row. `"md"` is the size of a thread in a panel.
82
- */
83
- size: {
84
- default: string;
85
- type: PropType<CommentComposerSize>;
86
- };
87
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
88
- [key: string]: any;
89
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
90
- client: {
91
- type: PropType<CommentsClient>;
92
- };
93
- /** What the threads of this page are about. For a page, `{ kind: "page", id: "/pricing" }`. */
94
- subject: {
95
- type: PropType<CommentSubject>;
96
- };
97
- /** The signed-in user. Defaults to the client's user. */
98
- user: {
99
- type: PropType<CommentUser>;
100
- };
101
- /** A state from `useComments()`, instead of `client` and `subject`. */
102
- comments: {
103
- type: PropType<CommentsState>;
104
- };
105
- /** The people on this page, shown in the toolbar. */
106
- people: {
107
- default: () => never[];
108
- type: PropType<AvatarStackPerson[]>;
109
- };
110
- /** The key that toggles comment mode. `false` turns it off. */
111
- hotkey: {
112
- default: string;
113
- type: PropType<string | false>;
114
- };
115
- /** Hide thread mutation controls when the viewer may only read. */
116
- readOnly: {
117
- default: boolean;
118
- type: BooleanConstructor;
119
- };
120
- /** The URL of the page that a subject lives on, for the links of threads that are not page threads. */
121
- subjectUrl: {
122
- type: PropType<(subject: CommentSubject) => string | undefined>;
123
- };
124
- /** Navigates to the page of a thread from the list. Defaults to `location.assign`. */
125
- navigate: {
126
- type: PropType<(href: string) => void>;
127
- };
128
- /** What the signed-in user may do in a thread. Defaults to the `can` of the comments state. */
129
- can: {
130
- type: PropType<CommentCan>;
131
- };
132
- /** Turns attached files into attachment keys before the comment is saved or sent. */
133
- upload: {
134
- type: PropType<CommentUpload>;
135
- };
136
- /** Save raw files with outbox entries. Set only when the server accepts file uploads. `upload` takes precedence. */
137
- queueFiles: {
138
- default: boolean;
139
- type: BooleanConstructor;
140
- };
141
- /** The file types that the boxes take, such as `image/*`. */
142
- accept: {
143
- type: StringConstructor;
144
- };
145
- /** Gives the URL of an attachment key. With it, image attachments show as thumbnails. */
146
- attachmentUrl: {
147
- type: PropType<CommentAttachmentUrl>;
148
- };
149
- /**
150
- * Where threads open. `"pin"` opens a thread in a card beside its pin. `"margin"` shows every thread as a card in a
151
- * column on the right edge of the screen, level with its pin, and opens it in that card, with the reply box there.
152
- * A new comment is written there too. On a screen narrower than 900px, `"margin"` works as `"pin"`.
153
- */
154
- placement: {
155
- default: string;
156
- type: PropType<CommentPlacement>;
157
- };
158
- /**
159
- * The size of the thread cards and of the box for a new comment. `"sm"`, the default, is Drop's floating card: 14px
160
- * text, tight rows, and Edit and Delete over the name's row. `"md"` is the size of a thread in a panel.
161
- */
162
- size: {
163
- default: string;
164
- type: PropType<CommentComposerSize>;
165
- };
166
- }>> & Readonly<{}>, {
167
- size: CommentComposerSize;
168
- people: AvatarStackPerson[];
169
- hotkey: string | false;
170
- readOnly: boolean;
171
- queueFiles: boolean;
172
- placement: CommentPlacement;
173
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
174
- export { CommentPlacement as n, CommentLayer as t };