@apia/theme 3.0.22 → 3.0.24
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/{index-wohlbdB8.js → index-Dh0FTz17.js} +150 -28
- package/dist/index-Dh0FTz17.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{styles-3M4Ekmpa.js → styles-DHevnJU2.js} +2 -2
- package/dist/{styles-3M4Ekmpa.js.map → styles-DHevnJU2.js.map} +1 -1
- package/package.json +3 -3
- package/dist/index-wohlbdB8.js.map +0 -1
|
@@ -4852,7 +4852,7 @@ const form$1 = {
|
|
|
4852
4852
|
listStyle: "square"
|
|
4853
4853
|
},
|
|
4854
4854
|
".search_controls": {
|
|
4855
|
-
alignItems: "
|
|
4855
|
+
alignItems: "end",
|
|
4856
4856
|
justifyContent: "center",
|
|
4857
4857
|
display: "flex",
|
|
4858
4858
|
gap: 0,
|
|
@@ -4912,7 +4912,7 @@ const history$1 = {
|
|
|
4912
4912
|
minHeight: "25vh",
|
|
4913
4913
|
flexGrow: 1,
|
|
4914
4914
|
".messages_box": { fontSize: "22px", minHeight: "88vh" },
|
|
4915
|
-
".
|
|
4915
|
+
".history_message": {
|
|
4916
4916
|
borderRadius: "2px",
|
|
4917
4917
|
px: 4,
|
|
4918
4918
|
py: 5,
|
|
@@ -5000,10 +5000,119 @@ const history$1 = {
|
|
|
5000
5000
|
}
|
|
5001
5001
|
};
|
|
5002
5002
|
|
|
5003
|
-
const
|
|
5003
|
+
const controller$1 = {
|
|
5004
|
+
/* PREPEND HERE */
|
|
5005
|
+
display: "flex",
|
|
5006
|
+
flexDirection: "column",
|
|
5007
|
+
alignItems: "stretch",
|
|
5008
|
+
maxHeight: "50vh",
|
|
5009
|
+
gap: 3,
|
|
5010
|
+
flexBasis: "50vh",
|
|
5011
|
+
".autoscrollContainer": {
|
|
5012
|
+
flexGrow: 1,
|
|
5013
|
+
flexShrink: 1
|
|
5014
|
+
},
|
|
5015
|
+
".search_controls": {
|
|
5016
|
+
flexShrink: 0
|
|
5017
|
+
}
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
const attachments$1 = {
|
|
5021
|
+
/* PREPEND HERE */
|
|
5022
|
+
alignItems: "center",
|
|
5023
|
+
display: "flex",
|
|
5024
|
+
flexDirection: responsive$2({ 0: "column", 3: "row" }),
|
|
5025
|
+
flexWrap: "wrap",
|
|
5026
|
+
gap: spacing$1(3),
|
|
5027
|
+
".attachments__more_button": {
|
|
5028
|
+
border: "1px solid",
|
|
5029
|
+
borderColor: "palette.border.article",
|
|
5030
|
+
borderRadius: "elementBox",
|
|
5031
|
+
boxShadow: "sharp",
|
|
5032
|
+
p: 2
|
|
5033
|
+
},
|
|
5034
|
+
".file_box": {
|
|
5035
|
+
alignItems: "center",
|
|
5036
|
+
border: "1px solid",
|
|
5037
|
+
borderColor: "palette.border.article",
|
|
5038
|
+
borderRadius: "elementBox",
|
|
5039
|
+
boxShadow: "sharp",
|
|
5040
|
+
display: "flex",
|
|
5041
|
+
gap: spacing$1(3),
|
|
5042
|
+
width: responsive$2({
|
|
5043
|
+
0: "100%",
|
|
5044
|
+
3: "min(90vw, 200px)"
|
|
5045
|
+
}),
|
|
5046
|
+
p: 2
|
|
5047
|
+
},
|
|
5048
|
+
".file_box__icon": {
|
|
5049
|
+
flexShrink: 0
|
|
5050
|
+
},
|
|
5051
|
+
".file_box__name": {
|
|
5052
|
+
boxSizing: "border-box",
|
|
5053
|
+
flexGrow: 1,
|
|
5054
|
+
margin: "0px",
|
|
5055
|
+
overflow: "hidden",
|
|
5056
|
+
textOverflow: "ellipsis",
|
|
5057
|
+
whiteSpace: "nowrap"
|
|
5058
|
+
},
|
|
5059
|
+
".file_box__remove": {
|
|
5060
|
+
flexShrink: 0,
|
|
5061
|
+
p: 4
|
|
5062
|
+
}
|
|
5063
|
+
};
|
|
5064
|
+
|
|
5065
|
+
const message$1 = {
|
|
5066
|
+
position: "relative",
|
|
5067
|
+
display: "flex",
|
|
5068
|
+
flexDirection: "column",
|
|
5069
|
+
".closeButton": {
|
|
5070
|
+
borderRadius: "5px",
|
|
5071
|
+
right: "0px",
|
|
5072
|
+
top: "-2px",
|
|
5073
|
+
zIndex: "15",
|
|
5074
|
+
position: "absolute",
|
|
5075
|
+
variant: "buttons.icon-outline-danger"
|
|
5076
|
+
},
|
|
5077
|
+
genericBox: {
|
|
5078
|
+
margin: "10px",
|
|
5079
|
+
display: "flex",
|
|
5080
|
+
flexDirection: "column",
|
|
5081
|
+
justifyContent: "space-between",
|
|
5082
|
+
alignItems: "center",
|
|
5083
|
+
padding: "12px"
|
|
5084
|
+
},
|
|
5085
|
+
fileName: {
|
|
5086
|
+
bottom: "4px",
|
|
5087
|
+
right: "4px",
|
|
5088
|
+
fontSize: "12px",
|
|
5089
|
+
color: "#333",
|
|
5090
|
+
textOverflow: "ellipsis",
|
|
5091
|
+
whiteSpace: "nowrap",
|
|
5092
|
+
overflow: "hidden",
|
|
5093
|
+
width: "inherit",
|
|
5094
|
+
textAlign: "center",
|
|
5095
|
+
px: "5px"
|
|
5096
|
+
},
|
|
5097
|
+
textBox: {
|
|
5098
|
+
variant: "layout.common.components.aiMessage.genericBox",
|
|
5099
|
+
width: "50px",
|
|
5100
|
+
padding: "10px",
|
|
5101
|
+
backgroundColor: "#fff",
|
|
5102
|
+
border: "1px solid #ddd",
|
|
5103
|
+
borderRadius: "4px",
|
|
5104
|
+
position: "relative"
|
|
5105
|
+
},
|
|
5106
|
+
textSnippet: {
|
|
5107
|
+
bottom: "4px",
|
|
5108
|
+
right: "4px",
|
|
5109
|
+
fontSize: "12px",
|
|
5110
|
+
color: "#555"
|
|
5111
|
+
}
|
|
5112
|
+
};
|
|
5113
|
+
|
|
5114
|
+
const assistant$1 = {
|
|
5004
5115
|
floatingAssistant: {
|
|
5005
|
-
maxHeight: "50vh",
|
|
5006
|
-
height: "50vh",
|
|
5007
5116
|
"& div.modal__content[class]": {
|
|
5008
5117
|
p: 3,
|
|
5009
5118
|
width: "min(90vw, 500px)"
|
|
@@ -5011,31 +5120,18 @@ const assistant = {
|
|
|
5011
5120
|
".modal__main": {
|
|
5012
5121
|
maxWidth: "unset",
|
|
5013
5122
|
overflow: "hidden"
|
|
5014
|
-
},
|
|
5015
|
-
".autoscrollContainer": {
|
|
5016
|
-
height: "30vh"
|
|
5017
5123
|
}
|
|
5018
5124
|
}
|
|
5019
5125
|
};
|
|
5020
5126
|
|
|
5021
5127
|
const chat = {
|
|
5022
5128
|
/* PREPEND HERE */
|
|
5023
|
-
assistant,
|
|
5129
|
+
assistant: assistant$1,
|
|
5024
5130
|
form: form$1,
|
|
5025
5131
|
history: history$1,
|
|
5026
|
-
|
|
5027
|
-
attachments:
|
|
5028
|
-
|
|
5029
|
-
borderWidth: "1px",
|
|
5030
|
-
borderStyle: "solid",
|
|
5031
|
-
borderColor: "palette.border.article",
|
|
5032
|
-
borderRadius: "7px",
|
|
5033
|
-
padding: spacing(4),
|
|
5034
|
-
".iconButton": {
|
|
5035
|
-
color: "palette.text.primary"
|
|
5036
|
-
}
|
|
5037
|
-
}
|
|
5038
|
-
}
|
|
5132
|
+
controller: controller$1,
|
|
5133
|
+
attachments: attachments$1,
|
|
5134
|
+
message: message$1
|
|
5039
5135
|
};
|
|
5040
5136
|
|
|
5041
5137
|
const form = {
|
|
@@ -5080,7 +5176,7 @@ const form = {
|
|
|
5080
5176
|
background: "transparent",
|
|
5081
5177
|
border: "none"
|
|
5082
5178
|
},
|
|
5083
|
-
".
|
|
5179
|
+
".ChatBarButton": {
|
|
5084
5180
|
borderRadius: "panel",
|
|
5085
5181
|
height: "34px",
|
|
5086
5182
|
width: "34px",
|
|
@@ -5088,6 +5184,15 @@ const form = {
|
|
|
5088
5184
|
background: "transparent",
|
|
5089
5185
|
border: "none",
|
|
5090
5186
|
color: "palette.text.primary"
|
|
5187
|
+
},
|
|
5188
|
+
".isRecording": {
|
|
5189
|
+
borderRadius: "panel",
|
|
5190
|
+
height: "34px",
|
|
5191
|
+
width: "34px",
|
|
5192
|
+
flexShrink: 0,
|
|
5193
|
+
background: "transparent",
|
|
5194
|
+
border: "none",
|
|
5195
|
+
color: "red"
|
|
5091
5196
|
}
|
|
5092
5197
|
};
|
|
5093
5198
|
|
|
@@ -5190,12 +5295,15 @@ const controller = {
|
|
|
5190
5295
|
display: "flex",
|
|
5191
5296
|
flexDirection: "column",
|
|
5192
5297
|
alignItems: "stretch",
|
|
5193
|
-
|
|
5298
|
+
maxHeight: "50vh",
|
|
5194
5299
|
gap: 3,
|
|
5300
|
+
flexBasis: "50vh",
|
|
5195
5301
|
".autoscrollContainer": {
|
|
5196
5302
|
flexGrow: 1,
|
|
5197
|
-
flexShrink: 1
|
|
5198
|
-
|
|
5303
|
+
flexShrink: 1
|
|
5304
|
+
},
|
|
5305
|
+
".search_controls": {
|
|
5306
|
+
flexShrink: 0
|
|
5199
5307
|
}
|
|
5200
5308
|
};
|
|
5201
5309
|
|
|
@@ -5293,8 +5401,22 @@ const message = {
|
|
|
5293
5401
|
}
|
|
5294
5402
|
};
|
|
5295
5403
|
|
|
5404
|
+
const assistant = {
|
|
5405
|
+
floatingAssistant: {
|
|
5406
|
+
"& div.modal__content[class]": {
|
|
5407
|
+
p: 3,
|
|
5408
|
+
width: "min(90vw, 500px)"
|
|
5409
|
+
},
|
|
5410
|
+
".modal__main": {
|
|
5411
|
+
maxWidth: "unset",
|
|
5412
|
+
overflow: "hidden"
|
|
5413
|
+
}
|
|
5414
|
+
}
|
|
5415
|
+
};
|
|
5416
|
+
|
|
5296
5417
|
const newChat = {
|
|
5297
5418
|
/* PREPEND HERE */
|
|
5419
|
+
assistant,
|
|
5298
5420
|
form,
|
|
5299
5421
|
history,
|
|
5300
5422
|
controller,
|
|
@@ -6072,7 +6194,7 @@ async function getRemarkable(extensions) {
|
|
|
6072
6194
|
|
|
6073
6195
|
const parseMarkdown = async (options) => {
|
|
6074
6196
|
const markdownLibrary = await getRemarkable(options.extensions);
|
|
6075
|
-
const css = (await import('./styles-
|
|
6197
|
+
const css = (await import('./styles-DHevnJU2.js')).markdownParserStyles ?? new ErrorImporting();
|
|
6076
6198
|
if (css instanceof ErrorImporting)
|
|
6077
6199
|
throw new Error("Could not import css, cannot continue");
|
|
6078
6200
|
const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
|
|
@@ -6530,4 +6652,4 @@ class MarkdownBuilder {
|
|
|
6530
6652
|
}
|
|
6531
6653
|
|
|
6532
6654
|
export { ApiaThemeProvider as A, Form as F, MarkdownBlock as M, getColorStates as a, getColorsAndStatesByDefinition as b, getColorsAndStatesByPath as c, getColorsByDefinition as d, getColorsByPath as e, getOneColorState as f, getColorState as g, applyStatesGetColor as h, makeStyledComponent as i, injectStyles as j, getSpacingLayouts as k, spacing as l, markdownExtensions as m, smallButton as n, focusOutline as o, parsePalette as p, getVariant as q, responsive$1 as r, spacingLayouts as s, MarkdownBuilder as t, useMainTheme as u, parseMarkdown as v, MarkdownList as w, MarkdownParagraph as x, MarkdownTable as y, MarkdownTableOfContents as z };
|
|
6533
|
-
//# sourceMappingURL=index-
|
|
6655
|
+
//# sourceMappingURL=index-Dh0FTz17.js.map
|