@mieweb/ui 0.11.0-dev.29 → 0.11.0-dev.30
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/MIGRATION.md +67 -0
- package/README.md +10 -0
- package/dist/EncounterMdyEditor-3SQY4MK2.js +286 -0
- package/dist/EncounterMdyEditor-3SQY4MK2.js.map +1 -0
- package/dist/EncounterMdyEditor-73PTTIRY.cjs +288 -0
- package/dist/EncounterMdyEditor-73PTTIRY.cjs.map +1 -0
- package/dist/chunk-25MPUVTM.js +339 -0
- package/dist/chunk-25MPUVTM.js.map +1 -0
- package/dist/{chunk-2VISTX7O.js → chunk-3NOVISM6.js} +3 -3
- package/dist/{chunk-2VISTX7O.js.map → chunk-3NOVISM6.js.map} +1 -1
- package/dist/{chunk-6GKIISNZ.cjs → chunk-3Y3ZCDNF.cjs} +176 -63
- package/dist/chunk-3Y3ZCDNF.cjs.map +1 -0
- package/dist/{chunk-AK4LHJPC.js → chunk-4JXO5JTE.js} +84 -3
- package/dist/chunk-4JXO5JTE.js.map +1 -0
- package/dist/chunk-4NB4WOGU.cjs +666 -0
- package/dist/chunk-4NB4WOGU.cjs.map +1 -0
- package/dist/{chunk-434L5RYF.js → chunk-4P27Y52M.js} +3 -3
- package/dist/{chunk-434L5RYF.js.map → chunk-4P27Y52M.js.map} +1 -1
- package/dist/{chunk-PRA2V5BP.cjs → chunk-5KGYTNOA.cjs} +7 -7
- package/dist/{chunk-PRA2V5BP.cjs.map → chunk-5KGYTNOA.cjs.map} +1 -1
- package/dist/chunk-5LNLB2XT.js +634 -0
- package/dist/chunk-5LNLB2XT.js.map +1 -0
- package/dist/chunk-5YOT4DVH.js +31 -0
- package/dist/chunk-5YOT4DVH.js.map +1 -0
- package/dist/chunk-7HFZL5V5.js +2425 -0
- package/dist/chunk-7HFZL5V5.js.map +1 -0
- package/dist/{chunk-XZNHS7YQ.cjs → chunk-7XC6E4BT.cjs} +3 -3
- package/dist/{chunk-XZNHS7YQ.cjs.map → chunk-7XC6E4BT.cjs.map} +1 -1
- package/dist/{chunk-JM4YFLO4.js → chunk-AIJYZP7M.js} +3 -3
- package/dist/{chunk-JM4YFLO4.js.map → chunk-AIJYZP7M.js.map} +1 -1
- package/dist/chunk-BBLEGF5L.js +66 -0
- package/dist/chunk-BBLEGF5L.js.map +1 -0
- package/dist/{chunk-MBDT2MGR.js → chunk-BIQIE3VW.js} +4 -4
- package/dist/{chunk-MBDT2MGR.js.map → chunk-BIQIE3VW.js.map} +1 -1
- package/dist/chunk-FSLI5IKP.cjs +54 -0
- package/dist/chunk-FSLI5IKP.cjs.map +1 -0
- package/dist/chunk-GADJASST.js +3 -0
- package/dist/chunk-GADJASST.js.map +1 -0
- package/dist/chunk-IXUIOR4K.cjs +2457 -0
- package/dist/chunk-IXUIOR4K.cjs.map +1 -0
- package/dist/chunk-K2BY7YPJ.cjs +4 -0
- package/dist/chunk-K2BY7YPJ.cjs.map +1 -0
- package/dist/{chunk-H3P7POFC.cjs → chunk-MA3Y6AYA.cjs} +3 -3
- package/dist/{chunk-H3P7POFC.cjs.map → chunk-MA3Y6AYA.cjs.map} +1 -1
- package/dist/chunk-QO4A6U73.cjs +342 -0
- package/dist/chunk-QO4A6U73.cjs.map +1 -0
- package/dist/{chunk-43QBEF6N.js → chunk-QR7B6UPR.js} +176 -63
- package/dist/chunk-QR7B6UPR.js.map +1 -0
- package/dist/chunk-SMPLM6K3.js +4107 -0
- package/dist/chunk-SMPLM6K3.js.map +1 -0
- package/dist/chunk-SV6YGK4U.cjs +88 -0
- package/dist/chunk-SV6YGK4U.cjs.map +1 -0
- package/dist/{chunk-MQ5WJ3NO.js → chunk-UDUYZDTA.js} +14 -72
- package/dist/chunk-UDUYZDTA.js.map +1 -0
- package/dist/{chunk-ZLBNYCYT.cjs → chunk-XPVQI3MM.cjs} +84 -3
- package/dist/chunk-XPVQI3MM.cjs.map +1 -0
- package/dist/{chunk-AQUHEKXL.cjs → chunk-XQHDQ64G.cjs} +4 -4
- package/dist/{chunk-AQUHEKXL.cjs.map → chunk-XQHDQ64G.cjs.map} +1 -1
- package/dist/chunk-Z2OOJGHL.cjs +4155 -0
- package/dist/chunk-Z2OOJGHL.cjs.map +1 -0
- package/dist/{chunk-QKW2QCGI.cjs → chunk-ZK2R6UGF.cjs} +13 -72
- package/dist/chunk-ZK2R6UGF.cjs.map +1 -0
- package/dist/components/ActionPlan/index.cjs +4 -4
- package/dist/components/ActionPlan/index.js +2 -2
- package/dist/components/AlertDialog/index.d.cts +1 -1
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/EmailEditor/index.cjs +13 -12
- package/dist/components/EmailEditor/index.js +4 -3
- package/dist/components/MediaEditor/index.cjs +7 -7
- package/dist/components/MediaEditor/index.js +2 -2
- package/dist/components/RichTextEditor/index.cjs +5 -4
- package/dist/components/RichTextEditor/index.d.cts +34 -0
- package/dist/components/RichTextEditor/index.d.ts +34 -0
- package/dist/components/RichTextEditor/index.js +2 -1
- package/dist/components/SuperChat/index.cjs +10 -9
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +2 -1
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/Textarea/index.cjs +6 -5
- package/dist/components/Textarea/index.js +3 -2
- package/dist/esheet.cjs +4237 -25
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +753 -6
- package/dist/esheet.d.ts +753 -6
- package/dist/esheet.js +4099 -21
- package/dist/esheet.js.map +1 -1
- package/dist/index.cjs +204 -3072
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -9
- package/dist/index.d.ts +71 -9
- package/dist/index.js +38 -2968
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +7 -268
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.d.cts +7 -1
- package/dist/kerebron.d.ts +7 -1
- package/dist/kerebron.js +6 -270
- package/dist/kerebron.js.map +1 -1
- package/dist/model-WFFZRQMY.js +18 -0
- package/dist/model-WFFZRQMY.js.map +1 -0
- package/dist/model-Y7WRIGGA.cjs +79 -0
- package/dist/model-Y7WRIGGA.cjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/package.json +30 -9
- package/dist/chunk-43QBEF6N.js.map +0 -1
- package/dist/chunk-6GKIISNZ.cjs.map +0 -1
- package/dist/chunk-AK4LHJPC.js.map +0 -1
- package/dist/chunk-MQ5WJ3NO.js.map +0 -1
- package/dist/chunk-QKW2QCGI.cjs.map +0 -1
- package/dist/chunk-SFSBYC46.js +0 -1596
- package/dist/chunk-SFSBYC46.js.map +0 -1
- package/dist/chunk-ZIJMLRI3.cjs +0 -1633
- package/dist/chunk-ZIJMLRI3.cjs.map +0 -1
- package/dist/chunk-ZLBNYCYT.cjs.map +0 -1
|
@@ -44,6 +44,14 @@ interface MacroLibraryProps {
|
|
|
44
44
|
onCreateMacro?: () => void;
|
|
45
45
|
/** Autofocus the search input on mount. Defaults to false. */
|
|
46
46
|
autoFocusSearch?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Minimal chrome for short, space-constrained lists: hides the header,
|
|
49
|
+
* the search input, and library group headings so the panel is just the
|
|
50
|
+
* macro rows. Previous-value groups keep their heading so prior answers
|
|
51
|
+
* stay visually distinct. Escape-to-close still works when `onClose` is
|
|
52
|
+
* provided. Defaults to false.
|
|
53
|
+
*/
|
|
54
|
+
compact?: boolean;
|
|
47
55
|
/** Additional class for the panel root. */
|
|
48
56
|
className?: string;
|
|
49
57
|
/** Overridable labels for i18n. */
|
|
@@ -60,6 +68,7 @@ declare const DEFAULT_LABELS: {
|
|
|
60
68
|
emptyHint: string;
|
|
61
69
|
noResults: string;
|
|
62
70
|
clearSearch: string;
|
|
71
|
+
showMore: string;
|
|
63
72
|
};
|
|
64
73
|
|
|
65
74
|
interface RichTextVariable {
|
|
@@ -137,6 +146,31 @@ interface RichTextEditorProps {
|
|
|
137
146
|
macros?: MacroGroup[];
|
|
138
147
|
/** Open the macro panel initially. Defaults to false. */
|
|
139
148
|
defaultMacrosOpen?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Focus-driven macro panel: the field rests as a plain input, the panel
|
|
151
|
+
* animates in while focus is anywhere inside the editor frame (editable,
|
|
152
|
+
* toolbar, gutter or the panel itself) and animates away when focus
|
|
153
|
+
* leaves. Overrides `defaultMacrosOpen`; Escape-to-close is disabled since
|
|
154
|
+
* visibility follows focus. Pairs well with `compactMacros`. Defaults to
|
|
155
|
+
* false.
|
|
156
|
+
*/
|
|
157
|
+
macrosOnFocus?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Dock the macro panel in `MacroLibrary`'s compact mode (no header,
|
|
160
|
+
* search, or library group headings) and shrink the macros-open working
|
|
161
|
+
* space to match — for short lists in dense forms. Defaults to false.
|
|
162
|
+
*/
|
|
163
|
+
compactMacros?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Called on any explicit macro invocation: a pick from the macro panel or
|
|
166
|
+
* the block gutter flyout, or a typed `.shortcut` expansion. Return `true`
|
|
167
|
+
* to take over the insertion: the editor skips its caret insertion and the
|
|
168
|
+
* host applies the content through its own value update (e.g. appending a
|
|
169
|
+
* coded finding as its own line). For typed shortcuts the editor removes
|
|
170
|
+
* the typed token (and publishes that edit) before consulting the
|
|
171
|
+
* callback, so a host that takes over computes from a token-free value.
|
|
172
|
+
*/
|
|
173
|
+
onMacroInsert?: (macro: Macro) => boolean | void;
|
|
140
174
|
/**
|
|
141
175
|
* Overridable labels for the macro addon (i18n). Panel labels are
|
|
142
176
|
* forwarded to the docked `MacroLibrary`; `macros` doubles as the toolbar
|
|
@@ -44,6 +44,14 @@ interface MacroLibraryProps {
|
|
|
44
44
|
onCreateMacro?: () => void;
|
|
45
45
|
/** Autofocus the search input on mount. Defaults to false. */
|
|
46
46
|
autoFocusSearch?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Minimal chrome for short, space-constrained lists: hides the header,
|
|
49
|
+
* the search input, and library group headings so the panel is just the
|
|
50
|
+
* macro rows. Previous-value groups keep their heading so prior answers
|
|
51
|
+
* stay visually distinct. Escape-to-close still works when `onClose` is
|
|
52
|
+
* provided. Defaults to false.
|
|
53
|
+
*/
|
|
54
|
+
compact?: boolean;
|
|
47
55
|
/** Additional class for the panel root. */
|
|
48
56
|
className?: string;
|
|
49
57
|
/** Overridable labels for i18n. */
|
|
@@ -60,6 +68,7 @@ declare const DEFAULT_LABELS: {
|
|
|
60
68
|
emptyHint: string;
|
|
61
69
|
noResults: string;
|
|
62
70
|
clearSearch: string;
|
|
71
|
+
showMore: string;
|
|
63
72
|
};
|
|
64
73
|
|
|
65
74
|
interface RichTextVariable {
|
|
@@ -137,6 +146,31 @@ interface RichTextEditorProps {
|
|
|
137
146
|
macros?: MacroGroup[];
|
|
138
147
|
/** Open the macro panel initially. Defaults to false. */
|
|
139
148
|
defaultMacrosOpen?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Focus-driven macro panel: the field rests as a plain input, the panel
|
|
151
|
+
* animates in while focus is anywhere inside the editor frame (editable,
|
|
152
|
+
* toolbar, gutter or the panel itself) and animates away when focus
|
|
153
|
+
* leaves. Overrides `defaultMacrosOpen`; Escape-to-close is disabled since
|
|
154
|
+
* visibility follows focus. Pairs well with `compactMacros`. Defaults to
|
|
155
|
+
* false.
|
|
156
|
+
*/
|
|
157
|
+
macrosOnFocus?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Dock the macro panel in `MacroLibrary`'s compact mode (no header,
|
|
160
|
+
* search, or library group headings) and shrink the macros-open working
|
|
161
|
+
* space to match — for short lists in dense forms. Defaults to false.
|
|
162
|
+
*/
|
|
163
|
+
compactMacros?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Called on any explicit macro invocation: a pick from the macro panel or
|
|
166
|
+
* the block gutter flyout, or a typed `.shortcut` expansion. Return `true`
|
|
167
|
+
* to take over the insertion: the editor skips its caret insertion and the
|
|
168
|
+
* host applies the content through its own value update (e.g. appending a
|
|
169
|
+
* coded finding as its own line). For typed shortcuts the editor removes
|
|
170
|
+
* the typed token (and publishes that edit) before consulting the
|
|
171
|
+
* callback, so a host that takes over computes from a token-free value.
|
|
172
|
+
*/
|
|
173
|
+
onMacroInsert?: (macro: Macro) => boolean | void;
|
|
140
174
|
/**
|
|
141
175
|
* Overridable labels for the macro addon (i18n). Panel labels are
|
|
142
176
|
* forwarded to the docked `MacroLibrary`; `macros` doubles as the toolbar
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-
|
|
1
|
+
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-QR7B6UPR.js';
|
|
2
|
+
import '../../chunk-5YOT4DVH.js';
|
|
2
3
|
import '../../chunk-OQWZYKJM.js';
|
|
3
4
|
import '../../chunk-AMYFRY7K.js';
|
|
4
5
|
import '../../chunk-OYUIEJPN.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkZK2R6UGF_cjs = require('../../chunk-ZK2R6UGF.cjs');
|
|
5
5
|
var chunk2GBVJHWN_cjs = require('../../chunk-2GBVJHWN.cjs');
|
|
6
6
|
var chunkAJPFQF3H_cjs = require('../../chunk-AJPFQF3H.cjs');
|
|
7
7
|
require('../../chunk-GLXTVCHN.cjs');
|
|
@@ -13,6 +13,7 @@ require('../../chunk-254QK722.cjs');
|
|
|
13
13
|
require('../../chunk-P22YCUVM.cjs');
|
|
14
14
|
require('../../chunk-Q3YVLO52.cjs');
|
|
15
15
|
var chunkGKDHMNUA_cjs = require('../../chunk-GKDHMNUA.cjs');
|
|
16
|
+
var chunkSV6YGK4U_cjs = require('../../chunk-SV6YGK4U.cjs');
|
|
16
17
|
require('../../chunk-ZNUMOJOI.cjs');
|
|
17
18
|
var chunkPINIBEIU_cjs = require('../../chunk-PINIBEIU.cjs');
|
|
18
19
|
require('../../chunk-LC3JL2HB.cjs');
|
|
@@ -119,7 +120,7 @@ function MessageMedia({
|
|
|
119
120
|
}
|
|
120
121
|
) : null,
|
|
121
122
|
attachment.caption && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: attachment.caption }),
|
|
122
|
-
onOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
123
|
+
onOpen && /* @__PURE__ */ jsxRuntime.jsx(chunkSV6YGK4U_cjs.ButtonGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
123
124
|
chunkANMX7YDL_cjs.Button,
|
|
124
125
|
{
|
|
125
126
|
"data-media-launch-id": launchId,
|
|
@@ -226,7 +227,7 @@ function ParticipantAvatar({
|
|
|
226
227
|
src: participant?.avatar,
|
|
227
228
|
alt: "",
|
|
228
229
|
name: participant?.name ?? "?",
|
|
229
|
-
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
+
fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkZK2R6UGF_cjs.SparklesIcon, { size: "sm" }) : void 0,
|
|
230
231
|
style: { backgroundColor },
|
|
231
232
|
"aria-hidden": "true",
|
|
232
233
|
className: "shrink-0"
|
|
@@ -762,7 +763,7 @@ ${block.text}
|
|
|
762
763
|
isSelf ? "flex-row-reverse" : "flex-row"
|
|
763
764
|
),
|
|
764
765
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
765
|
-
|
|
766
|
+
chunkZK2R6UGF_cjs.ChatBubble,
|
|
766
767
|
{
|
|
767
768
|
ref: bubbleRef,
|
|
768
769
|
"data-slot": "superchat-bubble",
|
|
@@ -826,7 +827,7 @@ ${block.text}
|
|
|
826
827
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
827
828
|
message.content?.map((block, i) => {
|
|
828
829
|
if (block.type === "tool_use" && block.toolCall) {
|
|
829
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
830
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkZK2R6UGF_cjs.MCPToolCallDisplay, { toolCall: block.toolCall }, i);
|
|
830
831
|
}
|
|
831
832
|
if ((block.type === "text" || block.type === "thinking") && block.text) {
|
|
832
833
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -879,7 +880,7 @@ ${block.text}
|
|
|
879
880
|
},
|
|
880
881
|
attachment.id
|
|
881
882
|
)),
|
|
882
|
-
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
883
|
+
streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkZK2R6UGF_cjs.AITypingIndicator, {}) })
|
|
883
884
|
] })
|
|
884
885
|
}
|
|
885
886
|
)
|
|
@@ -1762,7 +1763,7 @@ function SuperChat({
|
|
|
1762
1763
|
onClick: () => onConversationClosed(conversation),
|
|
1763
1764
|
"aria-label": "Close conversation",
|
|
1764
1765
|
className: "rounded-md p-1 text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800",
|
|
1765
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1766
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkZK2R6UGF_cjs.CloseIcon, {})
|
|
1766
1767
|
}
|
|
1767
1768
|
)
|
|
1768
1769
|
]
|
|
@@ -1777,7 +1778,7 @@ function SuperChat({
|
|
|
1777
1778
|
"data-slot": "superchat-media-view",
|
|
1778
1779
|
className: "flex min-h-0 flex-1 flex-col",
|
|
1779
1780
|
children: [
|
|
1780
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1781
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkSV6YGK4U_cjs.ButtonGroup, { className: "justify-start", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1781
1782
|
chunkANMX7YDL_cjs.Button,
|
|
1782
1783
|
{
|
|
1783
1784
|
ref: backToConversationRef,
|
|
@@ -1883,7 +1884,7 @@ function SuperChat({
|
|
|
1883
1884
|
mode: "presence",
|
|
1884
1885
|
className: "absolute inset-x-0 bottom-0 z-20",
|
|
1885
1886
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1886
|
-
|
|
1887
|
+
chunkZK2R6UGF_cjs.JumpToBottomButton,
|
|
1887
1888
|
{
|
|
1888
1889
|
dataSlot: "superchat-jump-to-bottom",
|
|
1889
1890
|
hasNewMessages: hasNewBelow,
|