@svadmin/ai-elements 0.2.0 → 0.4.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 (74) hide show
  1. package/README.md +32 -4
  2. package/UPSTREAM_PARITY.md +69 -0
  3. package/dist/ai.css +49 -1
  4. package/dist/components/ChatDialog.svelte +44 -38
  5. package/dist/components/ChatDialog.svelte.d.ts +5 -5
  6. package/dist/components/CopilotPanel.svelte +2 -2
  7. package/dist/components/action/Action.svelte +48 -0
  8. package/dist/components/action/Action.svelte.d.ts +13 -0
  9. package/dist/components/action/Actions.svelte +12 -0
  10. package/dist/components/action/Actions.svelte.d.ts +9 -0
  11. package/dist/components/action/index.d.ts +4 -0
  12. package/dist/components/action/index.js +2 -0
  13. package/dist/components/artifact/ArtifactAction.svelte +21 -16
  14. package/dist/components/artifact/ArtifactAction.svelte.d.ts +2 -2
  15. package/dist/components/code/Code.svelte +16 -0
  16. package/dist/components/code/Code.svelte.d.ts +10 -0
  17. package/dist/components/code/index.d.ts +23 -0
  18. package/dist/components/code/index.js +14 -0
  19. package/dist/components/code-block/CodeBlock.svelte +23 -4
  20. package/dist/components/code-block/CodeBlock.svelte.d.ts +8 -4
  21. package/dist/components/code-block/CodeBlockContent.svelte +7 -1
  22. package/dist/components/code-block/CodeBlockContent.svelte.d.ts +1 -0
  23. package/dist/components/code-block/CodeBlockLine.svelte +3 -1
  24. package/dist/components/code-block/CodeBlockLine.svelte.d.ts +1 -0
  25. package/dist/components/code-block/CodeBlockOverflow.svelte +32 -0
  26. package/dist/components/code-block/CodeBlockOverflow.svelte.d.ts +13 -0
  27. package/dist/components/code-block/index.d.ts +3 -0
  28. package/dist/components/code-block/index.js +1 -0
  29. package/dist/components/commit/CommitActions.svelte +10 -1
  30. package/dist/components/message/MessageAction.svelte +22 -16
  31. package/dist/components/message/MessageAction.svelte.d.ts +2 -2
  32. package/dist/components/message/MessageAttachment.svelte +64 -0
  33. package/dist/components/message/MessageAttachment.svelte.d.ts +18 -0
  34. package/dist/components/message/MessageAttachmentPreview.svelte +51 -0
  35. package/dist/components/message/MessageAttachmentPreview.svelte.d.ts +9 -0
  36. package/dist/components/message/MessageAttachments.svelte +25 -0
  37. package/dist/components/message/MessageAttachments.svelte.d.ts +9 -0
  38. package/dist/components/message/MessageResponse.svelte +9 -7
  39. package/dist/components/message/MessageResponse.svelte.d.ts +1 -1
  40. package/dist/components/message/index.d.ts +6 -0
  41. package/dist/components/message/index.js +3 -0
  42. package/dist/components/prompt-input/PromptInput.svelte +1 -1
  43. package/dist/components/prompt-input/PromptInputAttachment.svelte +31 -0
  44. package/dist/components/prompt-input/PromptInputAttachment.svelte.d.ts +9 -0
  45. package/dist/components/prompt-input/PromptInputAttachmentImagePreview.svelte +34 -0
  46. package/dist/components/prompt-input/PromptInputAttachmentImagePreview.svelte.d.ts +9 -0
  47. package/dist/components/prompt-input/PromptInputAttachments.svelte +22 -0
  48. package/dist/components/prompt-input/PromptInputAttachments.svelte.d.ts +10 -0
  49. package/dist/components/prompt-input/PromptInputToolbar.svelte +14 -0
  50. package/dist/components/prompt-input/PromptInputToolbar.svelte.d.ts +9 -0
  51. package/dist/components/prompt-input/index.d.ts +8 -0
  52. package/dist/components/prompt-input/index.js +4 -0
  53. package/dist/components/response/index.d.ts +2 -0
  54. package/dist/components/response/index.js +1 -0
  55. package/dist/components/tool/ToolHeader.svelte +4 -17
  56. package/dist/components/voice-selector/VoiceSelectorRoot.svelte.d.ts +1 -1
  57. package/dist/components/workflow/index.d.ts +6 -0
  58. package/dist/components/workflow/index.js +3 -0
  59. package/dist/components/workflow/node/index.d.ts +1 -0
  60. package/dist/components/workflow/node/index.js +1 -0
  61. package/dist/components/workflow/panel/index.d.ts +1 -0
  62. package/dist/components/workflow/panel/index.js +1 -0
  63. package/dist/components/workflow/toolbar/index.d.ts +1 -0
  64. package/dist/components/workflow/toolbar/index.js +1 -0
  65. package/dist/contracts.d.ts +1 -1
  66. package/dist/index.d.ts +7 -3
  67. package/dist/index.js +7 -3
  68. package/dist/internal/Tooltip.svelte +124 -0
  69. package/dist/internal/Tooltip.svelte.d.ts +12 -0
  70. package/dist/parity-manifest.d.ts +1 -0
  71. package/dist/parity-manifest.js +97 -0
  72. package/dist/utils.d.ts +1 -2
  73. package/dist/utils.js +1 -5
  74. package/package.json +6 -4
@@ -52,6 +52,7 @@ function family(upstream, exportName, definition) {
52
52
  surfaceStatus: getStatus(exports),
53
53
  componentSurfaceStatus: getStatus(componentExports),
54
54
  behaviorStatus: definition.behavior ?? 'unverified',
55
+ behaviorEvidence: names(definition.behaviorEvidence ?? ''),
55
56
  visualStatus: definition.visual ?? 'unverified',
56
57
  exactExports: exports
57
58
  .filter(({ surfaceStatus }) => surfaceStatus === 'exact')
@@ -71,210 +72,306 @@ export const AI_ELEMENT_PARITY = [
71
72
  family('agent', 'Agent', {
72
73
  official: 'Agent AgentHeader AgentContent AgentInstructions AgentTools AgentTool AgentOutput',
73
74
  exact: 'Agent AgentHeader AgentContent AgentInstructions AgentTools AgentTool AgentOutput',
75
+ behavior: 'verified',
76
+ behaviorEvidence: 'src/components/family-behavior-parity.test.svelte.ts',
74
77
  }),
75
78
  family('artifact', 'Artifact', {
76
79
  official: 'Artifact ArtifactHeader ArtifactClose ArtifactTitle ArtifactDescription ArtifactActions ArtifactAction ArtifactContent',
77
80
  exact: 'Artifact ArtifactHeader ArtifactClose ArtifactTitle ArtifactDescription ArtifactActions ArtifactAction ArtifactContent',
81
+ behavior: 'verified',
82
+ behaviorEvidence: 'src/components/compound-foundations.test.svelte.ts',
78
83
  }),
79
84
  family('attachments', 'Attachments', {
80
85
  official: 'getMediaCategory getAttachmentLabel useAttachmentsContext useAttachmentContext Attachments Attachment AttachmentPreview AttachmentInfo AttachmentRemove AttachmentHoverCard AttachmentHoverCardTrigger AttachmentHoverCardContent AttachmentEmpty',
81
86
  exact: 'getMediaCategory getAttachmentLabel useAttachmentsContext useAttachmentContext Attachments Attachment AttachmentPreview AttachmentInfo AttachmentRemove AttachmentHoverCard AttachmentHoverCardTrigger AttachmentHoverCardContent AttachmentEmpty',
82
87
  helpers: 'getMediaCategory getAttachmentLabel useAttachmentsContext useAttachmentContext',
88
+ behavior: 'verified',
89
+ behaviorEvidence: 'src/components/attachments/attachments.test.svelte.ts',
83
90
  }),
84
91
  family('audio-player', 'AudioPlayer', {
85
92
  official: 'AudioPlayer AudioPlayerElement AudioPlayerControlBar AudioPlayerPlayButton AudioPlayerSeekBackwardButton AudioPlayerSeekForwardButton AudioPlayerTimeDisplay AudioPlayerTimeRange AudioPlayerDurationDisplay AudioPlayerMuteButton AudioPlayerVolumeRange',
86
93
  exact: 'AudioPlayer AudioPlayerElement AudioPlayerControlBar AudioPlayerPlayButton AudioPlayerSeekBackwardButton AudioPlayerSeekForwardButton AudioPlayerTimeDisplay AudioPlayerTimeRange AudioPlayerDurationDisplay AudioPlayerMuteButton AudioPlayerVolumeRange',
94
+ behavior: 'verified',
95
+ behaviorEvidence: 'src/components/audio-player/AudioPlayer.test.svelte.ts',
87
96
  }),
88
97
  family('canvas', 'Canvas', {
89
98
  official: 'Canvas',
90
99
  exact: 'Canvas',
100
+ behavior: 'verified',
101
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
91
102
  }),
92
103
  family('chain-of-thought', 'ChainOfThought', {
93
104
  official: 'ChainOfThought ChainOfThoughtHeader ChainOfThoughtStep ChainOfThoughtSearchResults ChainOfThoughtSearchResult ChainOfThoughtContent ChainOfThoughtImage',
94
105
  exact: 'ChainOfThought ChainOfThoughtHeader ChainOfThoughtStep ChainOfThoughtSearchResults ChainOfThoughtSearchResult ChainOfThoughtContent ChainOfThoughtImage',
106
+ behavior: 'verified',
107
+ behaviorEvidence: 'src/components/family-behavior-parity.test.svelte.ts',
95
108
  }),
96
109
  family('checkpoint', 'Checkpoint', {
97
110
  official: 'Checkpoint CheckpointIcon CheckpointTrigger',
98
111
  exact: 'Checkpoint CheckpointIcon CheckpointTrigger',
112
+ behavior: 'verified',
113
+ behaviorEvidence: 'src/components/snippet/display-primitives.test.svelte.ts',
99
114
  }),
100
115
  family('code-block', 'CodeBlock', {
101
116
  official: 'highlightCode CodeBlockContainer CodeBlockHeader CodeBlockTitle CodeBlockFilename CodeBlockActions CodeBlockContent CodeBlock CodeBlockCopyButton CodeBlockLanguageSelector CodeBlockLanguageSelectorTrigger CodeBlockLanguageSelectorValue CodeBlockLanguageSelectorContent CodeBlockLanguageSelectorItem',
102
117
  exact: 'highlightCode CodeBlockContainer CodeBlockHeader CodeBlockTitle CodeBlockFilename CodeBlockActions CodeBlockContent CodeBlock CodeBlockCopyButton CodeBlockLanguageSelector CodeBlockLanguageSelectorTrigger CodeBlockLanguageSelectorValue CodeBlockLanguageSelectorContent CodeBlockLanguageSelectorItem',
103
118
  helpers: 'highlightCode',
119
+ behavior: 'verified',
120
+ behaviorEvidence: 'src/components/code-block/code-block.test.svelte.ts',
104
121
  }),
105
122
  family('commit', 'Commit', {
106
123
  official: 'Commit CommitHeader CommitHash CommitMessage CommitMetadata CommitSeparator CommitInfo CommitAuthor CommitAuthorAvatar CommitTimestamp CommitActions CommitCopyButton CommitContent CommitFiles CommitFile CommitFileInfo CommitFileStatus CommitFileIcon CommitFilePath CommitFileChanges CommitFileAdditions CommitFileDeletions',
107
124
  exact: 'Commit CommitHeader CommitHash CommitMessage CommitMetadata CommitSeparator CommitInfo CommitAuthor CommitAuthorAvatar CommitTimestamp CommitActions CommitCopyButton CommitContent CommitFiles CommitFile CommitFileInfo CommitFileStatus CommitFileIcon CommitFilePath CommitFileChanges CommitFileAdditions CommitFileDeletions',
125
+ behavior: 'verified',
126
+ behaviorEvidence: 'src/components/family-behavior-parity.test.svelte.ts',
108
127
  }),
109
128
  family('confirmation', 'Confirmation', {
110
129
  official: 'Confirmation ConfirmationTitle ConfirmationRequest ConfirmationAccepted ConfirmationRejected ConfirmationActions ConfirmationAction',
111
130
  exact: 'Confirmation ConfirmationTitle ConfirmationRequest ConfirmationAccepted ConfirmationRejected ConfirmationActions ConfirmationAction',
131
+ behavior: 'verified',
132
+ behaviorEvidence: 'src/components/chat-core-compounds.test.svelte.ts',
112
133
  }),
113
134
  family('connection', 'Connection', {
114
135
  official: 'Connection',
115
136
  exact: 'Connection',
137
+ behavior: 'verified',
138
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
116
139
  }),
117
140
  family('context', 'Context', {
118
141
  official: 'Context ContextTrigger ContextContent ContextContentHeader ContextContentBody ContextContentFooter ContextInputUsage ContextOutputUsage ContextReasoningUsage ContextCacheUsage',
119
142
  exact: 'Context ContextTrigger ContextContent ContextContentHeader ContextContentBody ContextContentFooter ContextInputUsage ContextOutputUsage ContextReasoningUsage ContextCacheUsage',
143
+ behavior: 'verified',
144
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
120
145
  }),
121
146
  family('controls', 'Controls', {
122
147
  official: 'Controls',
123
148
  exact: 'Controls',
149
+ behavior: 'verified',
150
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
124
151
  }),
125
152
  family('conversation', 'Conversation', {
126
153
  official: 'Conversation ConversationContent ConversationEmptyState ConversationScrollButton messagesToMarkdown ConversationDownload',
127
154
  exact: 'Conversation ConversationContent ConversationEmptyState ConversationScrollButton messagesToMarkdown ConversationDownload',
128
155
  helpers: 'messagesToMarkdown',
156
+ behavior: 'verified',
157
+ behaviorEvidence: 'src/components/chat-core-compounds.test.svelte.ts',
129
158
  }),
130
159
  family('edge', 'Edge', {
131
160
  official: 'Edge',
132
161
  exact: 'Edge',
162
+ behavior: 'verified',
163
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
133
164
  }),
134
165
  family('environment-variables', 'EnvironmentVariables', {
135
166
  official: 'EnvironmentVariables EnvironmentVariablesHeader EnvironmentVariablesTitle EnvironmentVariablesToggle EnvironmentVariablesContent EnvironmentVariableGroup EnvironmentVariableName EnvironmentVariableValue EnvironmentVariable EnvironmentVariableCopyButton EnvironmentVariableRequired',
136
167
  exact: 'EnvironmentVariables EnvironmentVariablesHeader EnvironmentVariablesTitle EnvironmentVariablesToggle EnvironmentVariablesContent EnvironmentVariableGroup EnvironmentVariableName EnvironmentVariableValue EnvironmentVariable EnvironmentVariableCopyButton EnvironmentVariableRequired',
168
+ behavior: 'verified',
169
+ behaviorEvidence: 'src/components/family-behavior-parity.test.svelte.ts',
137
170
  }),
138
171
  family('file-tree', 'FileTree', {
139
172
  official: 'FileTree FileTreeIcon FileTreeName FileTreeFolder FileTreeFile FileTreeActions',
140
173
  exact: 'FileTree FileTreeIcon FileTreeName FileTreeFolder FileTreeFile FileTreeActions',
174
+ behavior: 'verified',
175
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
141
176
  }),
142
177
  family('image', 'Image', {
143
178
  official: 'Image',
144
179
  exact: 'Image',
180
+ behavior: 'verified',
181
+ behaviorEvidence: 'src/components/snippet/display-primitives.test.svelte.ts',
145
182
  }),
146
183
  family('inline-citation', 'InlineCitation', {
147
184
  official: 'InlineCitation InlineCitationText InlineCitationCard InlineCitationCardTrigger InlineCitationCardBody InlineCitationCarousel InlineCitationCarouselContent InlineCitationCarouselItem InlineCitationCarouselHeader InlineCitationCarouselIndex InlineCitationCarouselPrev InlineCitationCarouselNext InlineCitationSource InlineCitationQuote',
148
185
  exact: 'InlineCitation InlineCitationText InlineCitationCard InlineCitationCardTrigger InlineCitationCardBody InlineCitationCarousel InlineCitationCarouselContent InlineCitationCarouselItem InlineCitationCarouselHeader InlineCitationCarouselIndex InlineCitationCarouselPrev InlineCitationCarouselNext InlineCitationSource InlineCitationQuote',
186
+ behavior: 'verified',
187
+ behaviorEvidence: 'src/components/inline-citation/InlineCitation.compound.test.svelte.ts',
149
188
  }),
150
189
  family('jsx-preview', 'JSXPreview', {
151
190
  official: 'useJSXPreview JSXPreview JSXPreviewContent JSXPreviewError',
152
191
  exact: 'useJSXPreview JSXPreview JSXPreviewContent JSXPreviewError',
153
192
  helpers: 'useJSXPreview',
154
193
  behavior: 'intentional-difference',
194
+ behaviorEvidence: 'src/components/jsx-preview/jsx-preview.test.svelte.ts',
155
195
  }),
156
196
  family('message', 'Message', {
157
197
  official: 'Message MessageContent MessageActions MessageAction MessageBranch MessageBranchContent MessageBranchSelector MessageBranchPrevious MessageBranchNext MessageBranchPage MessageResponse MessageToolbar',
158
198
  exact: 'Message MessageContent MessageActions MessageAction MessageBranch MessageBranchContent MessageBranchSelector MessageBranchPrevious MessageBranchNext MessageBranchPage MessageResponse MessageToolbar',
199
+ behavior: 'verified',
200
+ behaviorEvidence: 'src/components/chat-core-compounds.test.svelte.ts',
159
201
  }),
160
202
  family('mic-selector', 'MicSelector', {
161
203
  official: 'useAudioDevices MicSelector MicSelectorTrigger MicSelectorContent MicSelectorInput MicSelectorList MicSelectorEmpty MicSelectorItem MicSelectorLabel MicSelectorValue',
162
204
  exact: 'useAudioDevices MicSelector MicSelectorTrigger MicSelectorContent MicSelectorInput MicSelectorList MicSelectorEmpty MicSelectorItem MicSelectorLabel MicSelectorValue',
163
205
  helpers: 'useAudioDevices',
206
+ behavior: 'verified',
207
+ behaviorEvidence: 'src/components/speech-input/interactive-primitives.test.svelte.ts',
164
208
  }),
165
209
  family('model-selector', 'ModelSelector', {
166
210
  official: 'ModelSelector ModelSelectorTrigger ModelSelectorContent ModelSelectorDialog ModelSelectorInput ModelSelectorList ModelSelectorEmpty ModelSelectorGroup ModelSelectorItem ModelSelectorShortcut ModelSelectorSeparator ModelSelectorLogo ModelSelectorLogoGroup ModelSelectorName',
167
211
  exact: 'ModelSelector ModelSelectorTrigger ModelSelectorContent ModelSelectorDialog ModelSelectorInput ModelSelectorList ModelSelectorEmpty ModelSelectorGroup ModelSelectorItem ModelSelectorShortcut ModelSelectorSeparator ModelSelectorLogo ModelSelectorLogoGroup ModelSelectorName',
212
+ behavior: 'verified',
213
+ behaviorEvidence: 'src/components/model-selector/model-selector.test.svelte.ts',
168
214
  }),
169
215
  family('node', 'Node', {
170
216
  official: 'Node NodeHeader NodeTitle NodeDescription NodeAction NodeContent NodeFooter',
171
217
  exact: 'Node NodeHeader NodeTitle NodeDescription NodeAction NodeContent NodeFooter',
218
+ behavior: 'verified',
219
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
172
220
  }),
173
221
  family('open-in-chat', 'OpenIn', {
174
222
  official: 'OpenIn OpenInContent OpenInItem OpenInLabel OpenInSeparator OpenInTrigger OpenInChatGPT OpenInClaude OpenInT3 OpenInScira OpenInv0 OpenInCursor',
175
223
  exact: 'OpenIn OpenInContent OpenInItem OpenInLabel OpenInSeparator OpenInTrigger OpenInChatGPT OpenInClaude OpenInT3 OpenInScira OpenInv0 OpenInCursor',
224
+ behavior: 'verified',
225
+ behaviorEvidence: 'src/components/core-contracts.test.svelte.ts',
176
226
  }),
177
227
  family('package-info', 'PackageInfo', {
178
228
  official: 'PackageInfoHeader PackageInfoName PackageInfoChangeType PackageInfoVersion PackageInfo PackageInfoDescription PackageInfoContent PackageInfoDependencies PackageInfoDependency',
179
229
  exact: 'PackageInfoHeader PackageInfoName PackageInfoChangeType PackageInfoVersion PackageInfo PackageInfoDescription PackageInfoContent PackageInfoDependencies PackageInfoDependency',
230
+ behavior: 'verified',
231
+ behaviorEvidence: 'src/components/family-behavior-parity.test.svelte.ts',
180
232
  }),
181
233
  family('panel', 'Panel', {
182
234
  official: 'Panel',
183
235
  exact: 'Panel',
236
+ behavior: 'verified',
237
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
184
238
  }),
185
239
  family('persona', 'Persona', {
186
240
  official: 'Persona',
187
241
  exact: 'Persona',
242
+ behavior: 'verified',
243
+ behaviorEvidence: 'src/components/persona/Persona.test.svelte.ts',
188
244
  }),
189
245
  family('plan', 'Plan', {
190
246
  official: 'Plan PlanHeader PlanTitle PlanDescription PlanAction PlanContent PlanFooter PlanTrigger',
191
247
  exact: 'Plan PlanHeader PlanTitle PlanDescription PlanAction PlanContent PlanFooter PlanTrigger',
248
+ behavior: 'verified',
249
+ behaviorEvidence: 'src/components/compound-foundations.test.svelte.ts',
192
250
  }),
193
251
  family('prompt-input', 'PromptInput', {
194
252
  official: 'usePromptInputController useProviderAttachments PromptInputProvider usePromptInputAttachments LocalReferencedSourcesContext usePromptInputReferencedSources PromptInputActionAddAttachments PromptInputActionAddScreenshot PromptInput PromptInputBody PromptInputTextarea PromptInputHeader PromptInputFooter PromptInputTools PromptInputButton PromptInputActionMenu PromptInputActionMenuTrigger PromptInputActionMenuContent PromptInputActionMenuItem PromptInputSubmit PromptInputSelect PromptInputSelectTrigger PromptInputSelectContent PromptInputSelectItem PromptInputSelectValue PromptInputHoverCard PromptInputHoverCardTrigger PromptInputHoverCardContent PromptInputTabsList PromptInputTab PromptInputTabLabel PromptInputTabBody PromptInputTabItem PromptInputCommand PromptInputCommandInput PromptInputCommandList PromptInputCommandEmpty PromptInputCommandGroup PromptInputCommandItem PromptInputCommandSeparator',
195
253
  exact: 'usePromptInputController useProviderAttachments PromptInputProvider usePromptInputAttachments LocalReferencedSourcesContext usePromptInputReferencedSources PromptInputActionAddAttachments PromptInputActionAddScreenshot PromptInput PromptInputBody PromptInputTextarea PromptInputHeader PromptInputFooter PromptInputTools PromptInputButton PromptInputActionMenu PromptInputActionMenuTrigger PromptInputActionMenuContent PromptInputActionMenuItem PromptInputSubmit PromptInputSelect PromptInputSelectTrigger PromptInputSelectContent PromptInputSelectItem PromptInputSelectValue PromptInputHoverCard PromptInputHoverCardTrigger PromptInputHoverCardContent PromptInputTabsList PromptInputTab PromptInputTabLabel PromptInputTabBody PromptInputTabItem PromptInputCommand PromptInputCommandInput PromptInputCommandList PromptInputCommandEmpty PromptInputCommandGroup PromptInputCommandItem PromptInputCommandSeparator',
196
254
  helpers: 'usePromptInputController useProviderAttachments usePromptInputAttachments usePromptInputReferencedSources',
255
+ behavior: 'verified',
256
+ behaviorEvidence: 'src/components/prompt-input/PromptInput.test.svelte.ts',
197
257
  }),
198
258
  family('question', 'Question', {
199
259
  official: 'Question QuestionPrompt QuestionDescription QuestionOptions QuestionOption QuestionInput QuestionActions QuestionSubmit',
200
260
  exact: 'Question QuestionPrompt QuestionDescription QuestionOptions QuestionOption QuestionInput QuestionActions QuestionSubmit',
261
+ behavior: 'verified',
262
+ behaviorEvidence: 'src/components/question/workflow-components.test.svelte.ts',
201
263
  }),
202
264
  family('queue', 'Queue', {
203
265
  official: 'QueueItem QueueItemIndicator QueueItemContent QueueItemDescription QueueItemActions QueueItemAction QueueItemAttachment QueueItemImage QueueItemFile QueueList QueueSection QueueSectionTrigger QueueSectionLabel QueueSectionContent Queue',
204
266
  exact: 'QueueItem QueueItemIndicator QueueItemContent QueueItemDescription QueueItemActions QueueItemAction QueueItemAttachment QueueItemImage QueueItemFile QueueList QueueSection QueueSectionTrigger QueueSectionLabel QueueSectionContent Queue',
267
+ behavior: 'verified',
268
+ behaviorEvidence: 'src/components/compound-foundations.test.svelte.ts',
205
269
  }),
206
270
  family('reasoning', 'Reasoning', {
207
271
  official: 'useReasoning Reasoning ReasoningTrigger ReasoningContent',
208
272
  exact: 'useReasoning Reasoning ReasoningTrigger ReasoningContent',
209
273
  helpers: 'useReasoning',
274
+ behavior: 'verified',
275
+ behaviorEvidence: 'src/components/core-contracts.test.svelte.ts',
210
276
  }),
211
277
  family('sandbox', 'Sandbox', {
212
278
  official: 'Sandbox SandboxHeader SandboxContent SandboxTabs SandboxTabsBar SandboxTabsList SandboxTabsTrigger SandboxTabContent',
213
279
  exact: 'Sandbox SandboxHeader SandboxContent SandboxTabs SandboxTabsBar SandboxTabsList SandboxTabsTrigger SandboxTabContent',
280
+ behavior: 'verified',
281
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
214
282
  }),
215
283
  family('schema-display', 'SchemaDisplay', {
216
284
  official: 'SchemaDisplayHeader SchemaDisplayMethod SchemaDisplayPath SchemaDisplayDescription SchemaDisplayContent SchemaDisplayParameter SchemaDisplayParameters SchemaDisplayProperty SchemaDisplayRequest SchemaDisplayResponse SchemaDisplay SchemaDisplayBody SchemaDisplayExample',
217
285
  exact: 'SchemaDisplayHeader SchemaDisplayMethod SchemaDisplayPath SchemaDisplayDescription SchemaDisplayContent SchemaDisplayParameter SchemaDisplayParameters SchemaDisplayProperty SchemaDisplayRequest SchemaDisplayResponse SchemaDisplay SchemaDisplayBody SchemaDisplayExample',
286
+ behavior: 'verified',
287
+ behaviorEvidence: 'src/components/web-preview/display-family-compounds.test.svelte.ts',
218
288
  }),
219
289
  family('shimmer', 'Shimmer', {
220
290
  official: 'Shimmer',
221
291
  exact: 'Shimmer',
292
+ behavior: 'verified',
293
+ behaviorEvidence: 'src/components/snippet/display-primitives.test.svelte.ts',
222
294
  }),
223
295
  family('snippet', 'Snippet', {
224
296
  official: 'Snippet SnippetAddon SnippetText SnippetInput SnippetCopyButton',
225
297
  exact: 'Snippet SnippetAddon SnippetText SnippetInput SnippetCopyButton',
298
+ behavior: 'verified',
299
+ behaviorEvidence: 'src/components/snippet/display-primitives.test.svelte.ts',
226
300
  }),
227
301
  family('sources', 'Sources', {
228
302
  official: 'Sources SourcesTrigger SourcesContent Source',
229
303
  exact: 'Sources SourcesTrigger SourcesContent Source',
304
+ behavior: 'verified',
305
+ behaviorEvidence: 'src/components/chat-core-compounds.test.svelte.ts',
230
306
  }),
231
307
  family('speech-input', 'SpeechInput', {
232
308
  official: 'SpeechInput',
233
309
  exact: 'SpeechInput',
310
+ behavior: 'verified',
311
+ behaviorEvidence: 'src/components/speech-input/interactive-primitives.test.svelte.ts',
234
312
  }),
235
313
  family('stack-trace', 'StackTrace', {
236
314
  official: 'StackTrace StackTraceHeader StackTraceError StackTraceErrorType StackTraceErrorMessage StackTraceActions StackTraceCopyButton StackTraceExpandButton StackTraceContent StackTraceFrames',
237
315
  exact: 'StackTrace StackTraceHeader StackTraceError StackTraceErrorType StackTraceErrorMessage StackTraceActions StackTraceCopyButton StackTraceExpandButton StackTraceContent StackTraceFrames',
316
+ behavior: 'verified',
317
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
238
318
  }),
239
319
  family('suggestion', 'Suggestions', {
240
320
  official: 'Suggestions Suggestion',
241
321
  exact: 'Suggestions Suggestion',
242
322
  namespaceExport: 'SuggestionParts',
323
+ behavior: 'verified',
324
+ behaviorEvidence: 'src/components/snippet/display-primitives.test.svelte.ts',
243
325
  }),
244
326
  family('task', 'Task', {
245
327
  official: 'TaskItemFile TaskItem Task TaskTrigger TaskContent',
246
328
  exact: 'TaskItemFile TaskItem Task TaskTrigger TaskContent',
329
+ behavior: 'verified',
330
+ behaviorEvidence: 'src/components/compound-foundations.test.svelte.ts',
247
331
  }),
248
332
  family('terminal', 'Terminal', {
249
333
  official: 'TerminalHeader TerminalTitle TerminalStatus TerminalActions TerminalCopyButton TerminalClearButton TerminalContent Terminal',
250
334
  exact: 'TerminalHeader TerminalTitle TerminalStatus TerminalActions TerminalCopyButton TerminalClearButton TerminalContent Terminal',
335
+ behavior: 'verified',
336
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
251
337
  }),
252
338
  family('test-results', 'TestResults', {
253
339
  official: 'TestResultsHeader TestResultsDuration TestResultsSummary TestResults TestResultsProgress TestResultsContent TestSuite TestSuiteName TestSuiteStats TestSuiteContent TestName TestDuration TestStatus Test TestError TestErrorMessage TestErrorStack',
254
340
  exact: 'TestResultsHeader TestResultsDuration TestResultsSummary TestResults TestResultsProgress TestResultsContent TestSuite TestSuiteName TestSuiteStats TestSuiteContent TestName TestDuration TestStatus Test TestError TestErrorMessage TestErrorStack',
341
+ behavior: 'verified',
342
+ behaviorEvidence: 'src/components/web-preview/display-family-compounds.test.svelte.ts',
255
343
  }),
256
344
  family('tool', 'Tool', {
257
345
  official: 'Tool getStatusBadge ToolHeader ToolContent ToolInput ToolOutput',
258
346
  exact: 'Tool getStatusBadge ToolHeader ToolContent ToolInput ToolOutput',
259
347
  helpers: 'getStatusBadge',
260
348
  behavior: 'intentional-difference',
349
+ behaviorEvidence: 'src/components/chat-core-compounds.test.svelte.ts',
261
350
  }),
262
351
  family('toolbar', 'Toolbar', {
263
352
  official: 'Toolbar',
264
353
  exact: 'Toolbar',
354
+ behavior: 'verified',
355
+ behaviorEvidence: 'src/components/canvas/workflow-primitives.test.svelte.ts',
265
356
  }),
266
357
  family('transcription', 'Transcription', {
267
358
  official: 'Transcription TranscriptionSegment',
268
359
  exact: 'Transcription TranscriptionSegment',
360
+ behavior: 'verified',
361
+ behaviorEvidence: 'src/components/official-parity-regressions.test.svelte.ts',
269
362
  }),
270
363
  family('voice-selector', 'VoiceSelector', {
271
364
  official: 'useVoiceSelector VoiceSelector VoiceSelectorTrigger VoiceSelectorContent VoiceSelectorDialog VoiceSelectorInput VoiceSelectorList VoiceSelectorEmpty VoiceSelectorGroup VoiceSelectorItem VoiceSelectorShortcut VoiceSelectorSeparator VoiceSelectorGender VoiceSelectorAccent VoiceSelectorAge VoiceSelectorName VoiceSelectorDescription VoiceSelectorAttributes VoiceSelectorBullet VoiceSelectorPreview',
272
365
  exact: 'useVoiceSelector VoiceSelector VoiceSelectorTrigger VoiceSelectorContent VoiceSelectorDialog VoiceSelectorInput VoiceSelectorList VoiceSelectorEmpty VoiceSelectorGroup VoiceSelectorItem VoiceSelectorShortcut VoiceSelectorSeparator VoiceSelectorGender VoiceSelectorAccent VoiceSelectorAge VoiceSelectorName VoiceSelectorDescription VoiceSelectorAttributes VoiceSelectorBullet VoiceSelectorPreview',
273
366
  helpers: 'useVoiceSelector',
367
+ behavior: 'verified',
368
+ behaviorEvidence: 'src/components/voice-selector/VoiceSelector.test.svelte.ts',
274
369
  }),
275
370
  family('web-preview', 'WebPreview', {
276
371
  official: 'WebPreview WebPreviewNavigation WebPreviewNavigationButton WebPreviewUrl WebPreviewBody WebPreviewConsole',
277
372
  exact: 'WebPreview WebPreviewNavigation WebPreviewNavigationButton WebPreviewUrl WebPreviewBody WebPreviewConsole',
373
+ behavior: 'verified',
374
+ behaviorEvidence: 'src/components/web-preview/display-family-compounds.test.svelte.ts',
278
375
  }),
279
376
  ];
280
377
  function getBreakdown(exports) {
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { type ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
1
+ export { cn } from 'cn';
3
2
  export type SnippetLike = import('svelte').Snippet;
4
3
  export declare function stopPropagation(event: Event): void;
5
4
  export declare function isPromiseLike(value: unknown): value is PromiseLike<unknown>;
package/dist/utils.js CHANGED
@@ -1,9 +1,5 @@
1
- import { clsx } from 'clsx';
2
- import { twMerge } from 'tailwind-merge';
1
+ export { cn } from 'cn';
3
2
  const RESOURCE_PROTOCOLS = new Set(['http:', 'https:', 'blob:']);
4
- export function cn(...inputs) {
5
- return twMerge(clsx(inputs));
6
- }
7
3
  export function stopPropagation(event) {
8
4
  event.stopPropagation();
9
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/ai-elements",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Composable Svelte 5 AI interaction components for SVAdmin",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -9,6 +9,7 @@
9
9
  "files": [
10
10
  "dist",
11
11
  "README.md",
12
+ "UPSTREAM_PARITY.md",
12
13
  "THIRD_PARTY_NOTICES.md",
13
14
  "!dist/**/*.test.*",
14
15
  "!dist/**/*.test-*",
@@ -50,7 +51,7 @@
50
51
  }
51
52
  },
52
53
  "peerDependencies": {
53
- "@svadmin/core": "^0.48.0",
54
+ "@svadmin/core": "^0.49.0",
54
55
  "@tanstack/svelte-query": "^6.1.48",
55
56
  "svelte": "^5.56.10"
56
57
  },
@@ -64,7 +65,7 @@
64
65
  "@rive-app/webgl2": "^2.41.0",
65
66
  "@sinclair/typebox": "^0.34.52",
66
67
  "@xyflow/svelte": "^1.6.5",
67
- "clsx": "^2.1.1",
68
+ "cn": "^0.2.4",
68
69
  "streamdown-svelte": "^3.0.6",
69
70
  "tailwind-merge": "^3.6.0",
70
71
  "tailwind-variants": "^3.3.1"
@@ -82,7 +83,8 @@
82
83
  "scripts": {
83
84
  "build": "node ../../node_modules/@sveltejs/package/svelte-package.js -i src -o dist && bun scripts/clean-dist.ts",
84
85
  "check": "svelte-check --tsgo-experimental-api --tsconfig ./tsconfig.json --threshold error",
85
- "test": "vitest run --config ./vitest.config.ts && bun test scripts/clean-dist.test.ts"
86
+ "test": "vitest run --config ./vitest.config.ts && bun test scripts/clean-dist.test.ts scripts/audit-upstream-parity.test.ts",
87
+ "audit:upstream": "bun scripts/audit-upstream-parity.ts"
86
88
  },
87
89
  "license": "MIT",
88
90
  "publishConfig": {