@revikornmann/muka-ui 0.47.0 → 0.49.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.
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.css +14 -0
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js +2 -2
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/cjs/components/ChatQuestionSeries/ChatQuestionSeries.js +15 -8
- package/dist/cjs/components/ChatQuestionSeries/ChatQuestionSeries.js.map +1 -1
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.css +14 -0
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js +2 -2
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/esm/components/ChatQuestionSeries/ChatQuestionSeries.js +15 -8
- package/dist/esm/components/ChatQuestionSeries/ChatQuestionSeries.js.map +1 -1
- package/dist/styles/components/ChatMessageStack.css +14 -0
- package/dist/styles/index.css +707 -693
- package/dist/styles/muka-dark.css +707 -693
- package/dist/styles/muka-light.css +707 -693
- package/dist/styles/wireframe-dark.css +707 -693
- package/dist/styles/wireframe-light.css +707 -693
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts +6 -0
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts.map +1 -1
- package/dist/types/components/ChatQuestionSeries/ChatQuestionSeries.d.ts +8 -0
- package/dist/types/components/ChatQuestionSeries/ChatQuestionSeries.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -29,6 +29,12 @@ export interface ChatMessageStackProps {
|
|
|
29
29
|
* whole rather than to any one message.
|
|
30
30
|
*/
|
|
31
31
|
reasoning?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* In-thread widgets after the messages, such as a ChatQuestionSeries card:
|
|
34
|
+
* indented past the avatar rail so they line up with the bubbles. They take
|
|
35
|
+
* no author line or avatar; the last message keeps the avatar.
|
|
36
|
+
*/
|
|
37
|
+
widgets?: React.ReactNode;
|
|
32
38
|
/** Additional CSS classes */
|
|
33
39
|
className?: string;
|
|
34
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageStack.d.ts","sourceRoot":"","sources":["../../../../components/ChatMessageStack/ChatMessageStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAEhC,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,OAAO,EAAE,kBAAkB,CAAC;IAE5B;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ChatMessageStack.d.ts","sourceRoot":"","sources":["../../../../components/ChatMessageStack/ChatMessageStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,wBAAwB,CAAC;AAEhC,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,OAAO,EAAE,kBAAkB,CAAC;IAE5B;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyD5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -10,6 +10,14 @@ export interface ChatSeriesQuestion {
|
|
|
10
10
|
items: ChatChoiceItem[];
|
|
11
11
|
/** Adds a free-text option at the end of a list, with this placeholder ("Type something") */
|
|
12
12
|
otherPlaceholder?: string;
|
|
13
|
+
/** Preselected values, e.g. `['1']` for a count. Next counts them as the answer. */
|
|
14
|
+
defaultValue?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Asks this question only when it returns true for the answers so far, e.g.
|
|
17
|
+
* "How many dormers?" only once Dormer is picked. The steps and the progress
|
|
18
|
+
* follow as the answers change; a hidden question's answer is dropped.
|
|
19
|
+
*/
|
|
20
|
+
when?: (answers: Record<string, ChatSeriesAnswer>) => boolean;
|
|
13
21
|
}
|
|
14
22
|
/** One question's answer: the picked values and, when chosen, the typed text. */
|
|
15
23
|
export interface ChatSeriesAnswer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatQuestionSeries.d.ts","sourceRoot":"","sources":["../../../../components/ChatQuestionSeries/ChatQuestionSeries.tsx"],"names":[],"mappings":"AAE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