@mieweb/ui 0.8.0-dev.0 → 0.8.0-dev.2

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 (112) hide show
  1. package/README.md +162 -739
  2. package/agent/mieweb-ui.instructions.md +34 -16
  3. package/dist/{chunk-IILJGFI5.js → chunk-2AB4PQYL.js} +3 -3
  4. package/dist/{chunk-IILJGFI5.js.map → chunk-2AB4PQYL.js.map} +1 -1
  5. package/dist/{chunk-SK7H3Z67.cjs → chunk-2PEVRI26.cjs} +8 -8
  6. package/dist/{chunk-SK7H3Z67.cjs.map → chunk-2PEVRI26.cjs.map} +1 -1
  7. package/dist/{chunk-JHGMZX4I.cjs → chunk-2SSAAE3I.cjs} +4 -4
  8. package/dist/{chunk-JHGMZX4I.cjs.map → chunk-2SSAAE3I.cjs.map} +1 -1
  9. package/dist/{chunk-LQHI44OZ.cjs → chunk-3RADKLLD.cjs} +5 -5
  10. package/dist/{chunk-LQHI44OZ.cjs.map → chunk-3RADKLLD.cjs.map} +1 -1
  11. package/dist/{chunk-L6D4CKLV.cjs → chunk-5BPUZK2B.cjs} +15 -2
  12. package/dist/chunk-5BPUZK2B.cjs.map +1 -0
  13. package/dist/{chunk-XWYKLEKG.js → chunk-6GKX36JX.js} +3 -3
  14. package/dist/{chunk-XWYKLEKG.js.map → chunk-6GKX36JX.js.map} +1 -1
  15. package/dist/{chunk-ELYGV32O.cjs → chunk-AHHFFXJR.cjs} +4 -4
  16. package/dist/{chunk-ELYGV32O.cjs.map → chunk-AHHFFXJR.cjs.map} +1 -1
  17. package/dist/{chunk-LZU7YBXG.js → chunk-AHUYW673.js} +167 -8
  18. package/dist/chunk-AHUYW673.js.map +1 -0
  19. package/dist/{chunk-MYFZYUPR.cjs → chunk-AOHJILLU.cjs} +38 -3
  20. package/dist/chunk-AOHJILLU.cjs.map +1 -0
  21. package/dist/{chunk-XBKOZRDO.js → chunk-ATOWMVZH.js} +3 -3
  22. package/dist/{chunk-XBKOZRDO.js.map → chunk-ATOWMVZH.js.map} +1 -1
  23. package/dist/{chunk-4PIW3Y5M.js → chunk-DJ4JPFWI.js} +3 -3
  24. package/dist/{chunk-4PIW3Y5M.js.map → chunk-DJ4JPFWI.js.map} +1 -1
  25. package/dist/{chunk-FDV7EQWH.js → chunk-EK6DYGFG.js} +3 -3
  26. package/dist/{chunk-FDV7EQWH.js.map → chunk-EK6DYGFG.js.map} +1 -1
  27. package/dist/{chunk-IYXCFIMP.js → chunk-F2S6NV5N.js} +4 -4
  28. package/dist/{chunk-IYXCFIMP.js.map → chunk-F2S6NV5N.js.map} +1 -1
  29. package/dist/{chunk-26DPQUSB.cjs → chunk-G52YRAJC.cjs} +4 -4
  30. package/dist/{chunk-26DPQUSB.cjs.map → chunk-G52YRAJC.cjs.map} +1 -1
  31. package/dist/{chunk-QHTDWIED.js → chunk-JQQABHDN.js} +3 -3
  32. package/dist/{chunk-QHTDWIED.js.map → chunk-JQQABHDN.js.map} +1 -1
  33. package/dist/{chunk-7L7OPISJ.cjs → chunk-JR4QIU54.cjs} +4 -4
  34. package/dist/{chunk-7L7OPISJ.cjs.map → chunk-JR4QIU54.cjs.map} +1 -1
  35. package/dist/{chunk-56QJHQ5C.cjs → chunk-K5GQPTTA.cjs} +4 -4
  36. package/dist/{chunk-56QJHQ5C.cjs.map → chunk-K5GQPTTA.cjs.map} +1 -1
  37. package/dist/{chunk-XMECP2MD.js → chunk-KFEN2SRZ.js} +3 -3
  38. package/dist/{chunk-XMECP2MD.js.map → chunk-KFEN2SRZ.js.map} +1 -1
  39. package/dist/{chunk-RYQ3S3KO.cjs → chunk-LDCFNWJC.cjs} +5 -5
  40. package/dist/{chunk-RYQ3S3KO.cjs.map → chunk-LDCFNWJC.cjs.map} +1 -1
  41. package/dist/{chunk-A5YOIJKL.js → chunk-LDQ2T27A.js} +3 -3
  42. package/dist/{chunk-A5YOIJKL.js.map → chunk-LDQ2T27A.js.map} +1 -1
  43. package/dist/{chunk-SPWVKDGC.cjs → chunk-QMKYJ4AT.cjs} +4 -4
  44. package/dist/{chunk-SPWVKDGC.cjs.map → chunk-QMKYJ4AT.cjs.map} +1 -1
  45. package/dist/{chunk-BOW7ZGI2.cjs → chunk-QOJ4V7YX.cjs} +168 -8
  46. package/dist/chunk-QOJ4V7YX.cjs.map +1 -0
  47. package/dist/{chunk-QGZC43L7.js → chunk-SVZ4MQVQ.js} +3 -3
  48. package/dist/{chunk-QGZC43L7.js.map → chunk-SVZ4MQVQ.js.map} +1 -1
  49. package/dist/{chunk-KVE7PQ5P.cjs → chunk-TQZPYDUL.cjs} +7 -7
  50. package/dist/{chunk-KVE7PQ5P.cjs.map → chunk-TQZPYDUL.cjs.map} +1 -1
  51. package/dist/{chunk-EKRT7K2K.js → chunk-UJS3JTVT.js} +3 -3
  52. package/dist/{chunk-EKRT7K2K.js.map → chunk-UJS3JTVT.js.map} +1 -1
  53. package/dist/{chunk-AESFOMSH.js → chunk-VQ5HJCTP.js} +15 -2
  54. package/dist/chunk-VQ5HJCTP.js.map +1 -0
  55. package/dist/{chunk-BOOJDRJO.js → chunk-WSNMQQ4P.js} +38 -3
  56. package/dist/chunk-WSNMQQ4P.js.map +1 -0
  57. package/dist/{chunk-U5TTXN45.cjs → chunk-YRLCR76L.cjs} +4 -4
  58. package/dist/{chunk-U5TTXN45.cjs.map → chunk-YRLCR76L.cjs.map} +1 -1
  59. package/dist/components/Autocomplete/index.cjs +3 -3
  60. package/dist/components/Autocomplete/index.js +2 -2
  61. package/dist/components/CountryCodeDropdown/index.cjs +5 -5
  62. package/dist/components/CountryCodeDropdown/index.js +2 -2
  63. package/dist/components/DateInput/index.cjs +3 -3
  64. package/dist/components/DateInput/index.js +2 -2
  65. package/dist/components/Dropdown/index.cjs +12 -8
  66. package/dist/components/Dropdown/index.d.cts +38 -2
  67. package/dist/components/Dropdown/index.d.ts +38 -2
  68. package/dist/components/Dropdown/index.js +2 -2
  69. package/dist/components/GlossaryTooltip/index.cjs +3 -3
  70. package/dist/components/GlossaryTooltip/index.js +2 -2
  71. package/dist/components/MediaEditor/index.cjs +8 -8
  72. package/dist/components/MediaEditor/index.js +3 -3
  73. package/dist/components/RichTextEditor/index.cjs +6 -6
  74. package/dist/components/RichTextEditor/index.js +3 -3
  75. package/dist/components/Select/index.cjs +4 -4
  76. package/dist/components/Select/index.js +2 -2
  77. package/dist/components/SourceTip/index.cjs +3 -3
  78. package/dist/components/SourceTip/index.js +2 -2
  79. package/dist/components/SuperChat/index.cjs +249 -91
  80. package/dist/components/SuperChat/index.cjs.map +1 -1
  81. package/dist/components/SuperChat/index.d.cts +13 -5
  82. package/dist/components/SuperChat/index.d.ts +13 -5
  83. package/dist/components/SuperChat/index.js +246 -88
  84. package/dist/components/SuperChat/index.js.map +1 -1
  85. package/dist/components/SuperChat/plugins/index.cjs +4 -4
  86. package/dist/components/SuperChat/plugins/index.d.cts +2 -2
  87. package/dist/components/SuperChat/plugins/index.d.ts +2 -2
  88. package/dist/components/SuperChat/plugins/index.js +3 -3
  89. package/dist/esheet.cjs +7 -7
  90. package/dist/esheet.js +4 -4
  91. package/dist/hooks/index.cjs +2 -2
  92. package/dist/hooks/index.d.cts +1 -1
  93. package/dist/hooks/index.d.ts +1 -1
  94. package/dist/hooks/index.js +1 -1
  95. package/dist/index.cjs +178 -174
  96. package/dist/index.d.cts +2 -2
  97. package/dist/index.d.ts +2 -2
  98. package/dist/index.js +22 -22
  99. package/dist/styles.css +1 -1
  100. package/dist/tailwind-preset.cjs +4 -4
  101. package/dist/tailwind-preset.js +1 -1
  102. package/dist/{types-BoTeTPdH.d.ts → types-9vK_YdEb.d.ts} +12 -1
  103. package/dist/{types-DyIB9HYT.d.cts → types-DZDroUW8.d.cts} +12 -1
  104. package/dist/{useAnchoredPosition-C7PNglzD.d.cts → useAnchoredPosition-CKwLSQW8.d.cts} +10 -3
  105. package/dist/{useAnchoredPosition-C7PNglzD.d.ts → useAnchoredPosition-CKwLSQW8.d.ts} +10 -3
  106. package/package.json +5 -2
  107. package/dist/chunk-AESFOMSH.js.map +0 -1
  108. package/dist/chunk-BOOJDRJO.js.map +0 -1
  109. package/dist/chunk-BOW7ZGI2.cjs.map +0 -1
  110. package/dist/chunk-L6D4CKLV.cjs.map +0 -1
  111. package/dist/chunk-LZU7YBXG.js.map +0 -1
  112. package/dist/chunk-MYFZYUPR.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, C as ComposerAttachment, c as SuperChatRef } from '../../types-DyIB9HYT.cjs';
3
- export { G as GenUIBlockPayload, d as GenUIPrefetchPolicy, e as GenUIRegistry, f as GenUIWidgetEntry, g as GenUIWidgetProps, P as Participant, h as ParticipantKind, i as ParticipantStatus, j as StandardSchemaV1, k as SuperChatChannel, l as SuperChatItemType, m as SuperChatMessage, n as SuperChatPluggable, o as SuperChatPluggableList } from '../../types-DyIB9HYT.cjs';
2
+ import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, c as SuperChatCopyFormat, C as ComposerAttachment, d as SuperChatRef } from '../../types-DZDroUW8.cjs';
3
+ export { G as GenUIBlockPayload, e as GenUIPrefetchPolicy, f as GenUIRegistry, g as GenUIWidgetEntry, h as GenUIWidgetProps, P as Participant, i as ParticipantKind, j as ParticipantStatus, k as StandardSchemaV1, l as SuperChatChannel, m as SuperChatItemType, n as SuperChatMessage, o as SuperChatPluggable, p as SuperChatPluggableList } from '../../types-DZDroUW8.cjs';
4
4
  import { b as AIRenderTextContent } from '../../types-B2RLmdVd.cjs';
5
5
  export { A as AIMessageContent, a as AIMessageStatus, c as AITextRenderContext, M as MCPResourceLink } from '../../types-B2RLmdVd.cjs';
6
6
  import * as React from 'react';
@@ -39,6 +39,12 @@ interface SuperChatProps {
39
39
  virtualized?: boolean;
40
40
  /** Build hrefs for `ref` thread items. */
41
41
  linkBuilder?: SuperChatLinkBuilder;
42
+ /**
43
+ * Format for a message's default copy action (Ctrl/Cmd-click on the footer
44
+ * copy button). All formats stay reachable per message via the copy menus.
45
+ * Defaults to `'rich'`.
46
+ */
47
+ defaultCopyFormat?: SuperChatCopyFormat;
42
48
  /** Additional class name. */
43
49
  className?: string;
44
50
  onMessageSent?: (text: string, meta: {
@@ -67,7 +73,7 @@ interface SuperChatProps {
67
73
  * Single-conversation chat panel. See the module `MAINTAINERS.md` for the
68
74
  * participant model and render-plugin architecture.
69
75
  */
70
- declare function SuperChat({ conversation, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, linkBuilder, className, onMessageSent, onMessageEdited, onConversationClosed, onReferenceClick, onBack, }: SuperChatProps): react_jsx_runtime.JSX.Element;
76
+ declare function SuperChat({ conversation, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, linkBuilder, defaultCopyFormat, className, onMessageSent, onMessageEdited, onConversationClosed, onReferenceClick, onBack, }: SuperChatProps): react_jsx_runtime.JSX.Element;
71
77
 
72
78
  interface SuperChatConversationsProps {
73
79
  /** All conversations (host-owned state). */
@@ -116,6 +122,8 @@ interface SuperChatInboxProps {
116
122
  showSidebar?: boolean;
117
123
  /** Build hrefs for `ref` thread items. */
118
124
  linkBuilder?: SuperChatLinkBuilder;
125
+ /** Format for a message's default copy action (Ctrl/Cmd-click on copy). */
126
+ defaultCopyFormat?: SuperChatCopyFormat;
119
127
  /** Additional class name. */
120
128
  className?: string;
121
129
  onMessageSent?: (text: string, meta: {
@@ -137,7 +145,7 @@ interface SuperChatInboxProps {
137
145
  * the module `MAINTAINERS.md` for the participant model and render-plugin
138
146
  * architecture.
139
147
  */
140
- declare function SuperChatInbox({ conversations, activeConversationId, defaultActiveConversationId, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, showSidebar, linkBuilder, className, onMessageSent, onMessageEdited, onConversationOpened, onConversationClosed, onNewConversation, onReferenceClick, }: SuperChatInboxProps): react_jsx_runtime.JSX.Element;
148
+ declare function SuperChatInbox({ conversations, activeConversationId, defaultActiveConversationId, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, showSidebar, linkBuilder, defaultCopyFormat, className, onMessageSent, onMessageEdited, onConversationOpened, onConversationClosed, onNewConversation, onReferenceClick, }: SuperChatInboxProps): react_jsx_runtime.JSX.Element;
141
149
 
142
150
  /**
143
151
  * SuperChat Markdown render composer.
@@ -186,4 +194,4 @@ interface SuperChatTextContext {
186
194
  declare const TextRenderContext: React.Context<SuperChatTextContext>;
187
195
  declare const useTextRenderContext: () => SuperChatTextContext;
188
196
 
189
- export { AIRenderTextContent, AttachmentKind, ComposerAttachment, type CreateMarkdownRendererOptions, SuperChat, SuperChatConversation, SuperChatConversations, type SuperChatConversationsProps, SuperChatInbox, type SuperChatInboxProps, SuperChatLinkBuilder, type SuperChatProps, SuperChatRef, SuperChatRenderPlugin, type SuperChatTextContext, TextRenderContext, createMarkdownRenderer, useTextRenderContext };
197
+ export { AIRenderTextContent, AttachmentKind, ComposerAttachment, type CreateMarkdownRendererOptions, SuperChat, SuperChatConversation, SuperChatConversations, type SuperChatConversationsProps, SuperChatCopyFormat, SuperChatInbox, type SuperChatInboxProps, SuperChatLinkBuilder, type SuperChatProps, SuperChatRef, SuperChatRenderPlugin, type SuperChatTextContext, TextRenderContext, createMarkdownRenderer, useTextRenderContext };
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, C as ComposerAttachment, c as SuperChatRef } from '../../types-BoTeTPdH.js';
3
- export { G as GenUIBlockPayload, d as GenUIPrefetchPolicy, e as GenUIRegistry, f as GenUIWidgetEntry, g as GenUIWidgetProps, P as Participant, h as ParticipantKind, i as ParticipantStatus, j as StandardSchemaV1, k as SuperChatChannel, l as SuperChatItemType, m as SuperChatMessage, n as SuperChatPluggable, o as SuperChatPluggableList } from '../../types-BoTeTPdH.js';
2
+ import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, c as SuperChatCopyFormat, C as ComposerAttachment, d as SuperChatRef } from '../../types-9vK_YdEb.js';
3
+ export { G as GenUIBlockPayload, e as GenUIPrefetchPolicy, f as GenUIRegistry, g as GenUIWidgetEntry, h as GenUIWidgetProps, P as Participant, i as ParticipantKind, j as ParticipantStatus, k as StandardSchemaV1, l as SuperChatChannel, m as SuperChatItemType, n as SuperChatMessage, o as SuperChatPluggable, p as SuperChatPluggableList } from '../../types-9vK_YdEb.js';
4
4
  import { b as AIRenderTextContent } from '../../types-B2RLmdVd.js';
5
5
  export { A as AIMessageContent, a as AIMessageStatus, c as AITextRenderContext, M as MCPResourceLink } from '../../types-B2RLmdVd.js';
6
6
  import * as React from 'react';
@@ -39,6 +39,12 @@ interface SuperChatProps {
39
39
  virtualized?: boolean;
40
40
  /** Build hrefs for `ref` thread items. */
41
41
  linkBuilder?: SuperChatLinkBuilder;
42
+ /**
43
+ * Format for a message's default copy action (Ctrl/Cmd-click on the footer
44
+ * copy button). All formats stay reachable per message via the copy menus.
45
+ * Defaults to `'rich'`.
46
+ */
47
+ defaultCopyFormat?: SuperChatCopyFormat;
42
48
  /** Additional class name. */
43
49
  className?: string;
44
50
  onMessageSent?: (text: string, meta: {
@@ -67,7 +73,7 @@ interface SuperChatProps {
67
73
  * Single-conversation chat panel. See the module `MAINTAINERS.md` for the
68
74
  * participant model and render-plugin architecture.
69
75
  */
70
- declare function SuperChat({ conversation, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, linkBuilder, className, onMessageSent, onMessageEdited, onConversationClosed, onReferenceClick, onBack, }: SuperChatProps): react_jsx_runtime.JSX.Element;
76
+ declare function SuperChat({ conversation, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, linkBuilder, defaultCopyFormat, className, onMessageSent, onMessageEdited, onConversationClosed, onReferenceClick, onBack, }: SuperChatProps): react_jsx_runtime.JSX.Element;
71
77
 
72
78
  interface SuperChatConversationsProps {
73
79
  /** All conversations (host-owned state). */
@@ -116,6 +122,8 @@ interface SuperChatInboxProps {
116
122
  showSidebar?: boolean;
117
123
  /** Build hrefs for `ref` thread items. */
118
124
  linkBuilder?: SuperChatLinkBuilder;
125
+ /** Format for a message's default copy action (Ctrl/Cmd-click on copy). */
126
+ defaultCopyFormat?: SuperChatCopyFormat;
119
127
  /** Additional class name. */
120
128
  className?: string;
121
129
  onMessageSent?: (text: string, meta: {
@@ -137,7 +145,7 @@ interface SuperChatInboxProps {
137
145
  * the module `MAINTAINERS.md` for the participant model and render-plugin
138
146
  * architecture.
139
147
  */
140
- declare function SuperChatInbox({ conversations, activeConversationId, defaultActiveConversationId, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, showSidebar, linkBuilder, className, onMessageSent, onMessageEdited, onConversationOpened, onConversationClosed, onNewConversation, onReferenceClick, }: SuperChatInboxProps): react_jsx_runtime.JSX.Element;
148
+ declare function SuperChatInbox({ conversations, activeConversationId, defaultActiveConversationId, currentParticipantId, renderPlugins, renderTextContent, trustedContent, readOnly, acceptedFileTypes, order, virtualized, showSidebar, linkBuilder, defaultCopyFormat, className, onMessageSent, onMessageEdited, onConversationOpened, onConversationClosed, onNewConversation, onReferenceClick, }: SuperChatInboxProps): react_jsx_runtime.JSX.Element;
141
149
 
142
150
  /**
143
151
  * SuperChat Markdown render composer.
@@ -186,4 +194,4 @@ interface SuperChatTextContext {
186
194
  declare const TextRenderContext: React.Context<SuperChatTextContext>;
187
195
  declare const useTextRenderContext: () => SuperChatTextContext;
188
196
 
189
- export { AIRenderTextContent, AttachmentKind, ComposerAttachment, type CreateMarkdownRendererOptions, SuperChat, SuperChatConversation, SuperChatConversations, type SuperChatConversationsProps, SuperChatInbox, type SuperChatInboxProps, SuperChatLinkBuilder, type SuperChatProps, SuperChatRef, SuperChatRenderPlugin, type SuperChatTextContext, TextRenderContext, createMarkdownRenderer, useTextRenderContext };
197
+ export { AIRenderTextContent, AttachmentKind, ComposerAttachment, type CreateMarkdownRendererOptions, SuperChat, SuperChatConversation, SuperChatConversations, type SuperChatConversationsProps, SuperChatCopyFormat, SuperChatInbox, type SuperChatInboxProps, SuperChatLinkBuilder, type SuperChatProps, SuperChatRef, SuperChatRenderPlugin, type SuperChatTextContext, TextRenderContext, createMarkdownRenderer, useTextRenderContext };