@apia/theme 3.0.12 → 3.0.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"html-B-K0BIiw.js","sources":["../src/markdown/html.ts"],"sourcesContent":["import { IMarkdownHtml } from './types';\n\nexport const markdownHtml: IMarkdownHtml = (\n title: string,\n css: string,\n body: string,\n) => `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>${title}</title>\n <style>\n${css}\n </style>\n</head>\n<body>\n <main id=\"Container\">${body}</main>\n</body>\n</html>`;\n"],"names":[],"mappings":"AAEO,MAAM,YAA8B,GAAA,CACzC,KACA,EAAA,GAAA,EACA,IACG,KAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAA,EAKM,KAAK,CAAA;AAAA;AAAA,EAEd,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA,uBAAA,EAIoB,IAAI,CAAA;AAAA;AAAA,OAAA;;;;"}
1
+ {"version":3,"file":"html-B-K0BIiw.js","sources":["../src/markdown/html.ts"],"sourcesContent":["import { IMarkdownHtml } from './types';\r\n\r\nexport const markdownHtml: IMarkdownHtml = (\r\n title: string,\r\n css: string,\r\n body: string,\r\n) => `<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"UTF-8\">\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n <title>${title}</title>\r\n <style>\r\n${css}\r\n </style>\r\n</head>\r\n<body>\r\n <main id=\"Container\">${body}</main>\r\n</body>\r\n</html>`;\r\n"],"names":[],"mappings":"AAEO,MAAM,YAA8B,GAAA,CACzC,KACA,EAAA,GAAA,EACA,IACG,KAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAA,EAKM,KAAK,CAAA;AAAA;AAAA,EAEd,GAAG,CAAA;AAAA;AAAA;AAAA;AAAA,uBAAA,EAIoB,IAAI,CAAA;AAAA;AAAA,OAAA;;;;"}
@@ -4499,6 +4499,68 @@ const datePicker = {
4499
4499
  maxWidth: "400px"
4500
4500
  };
4501
4501
 
4502
+ const aiMessage = {
4503
+ position: "relative",
4504
+ ".closeButton": {
4505
+ borderRadius: "5px",
4506
+ right: "0px",
4507
+ top: "-2px",
4508
+ zIndex: "15",
4509
+ position: "absolute",
4510
+ variant: "buttons.icon-outline-danger"
4511
+ },
4512
+ genericBox: {
4513
+ margin: "10px",
4514
+ display: "flex",
4515
+ flexDirection: "column",
4516
+ justifyContent: "space-between",
4517
+ alignItems: "center",
4518
+ padding: "12px"
4519
+ },
4520
+ fileBox: {
4521
+ variant: "layout.common.components.aiMessage.genericBox",
4522
+ width: "130px",
4523
+ height: "120px",
4524
+ backgroundColor: "#f0f0f0",
4525
+ border: "1px solid #ccc",
4526
+ borderRadius: "4px",
4527
+ position: "relative",
4528
+ display: "flex",
4529
+ img: {
4530
+ objectFit: "contain",
4531
+ width: "110px",
4532
+ height: "69px"
4533
+ }
4534
+ },
4535
+ fileName: {
4536
+ bottom: "4px",
4537
+ right: "4px",
4538
+ fontSize: "12px",
4539
+ color: "#333",
4540
+ textOverflow: "ellipsis",
4541
+ whiteSpace: "nowrap",
4542
+ overflow: "hidden",
4543
+ width: "inherit",
4544
+ textAlign: "center",
4545
+ px: "5px"
4546
+ },
4547
+ textBox: {
4548
+ variant: "layout.common.components.aiMessage.genericBox",
4549
+ width: "50px",
4550
+ padding: "10px",
4551
+ backgroundColor: "#fff",
4552
+ border: "1px solid #ddd",
4553
+ borderRadius: "4px",
4554
+ position: "relative"
4555
+ },
4556
+ textSnippet: {
4557
+ bottom: "4px",
4558
+ right: "4px",
4559
+ fontSize: "12px",
4560
+ color: "#555"
4561
+ }
4562
+ };
4563
+
4502
4564
  const components = {
4503
4565
  /* PREPEND HERE */
4504
4566
  accordion,
@@ -4506,7 +4568,8 @@ const components = {
4506
4568
  datePicker,
4507
4569
  pagination: pagination$1,
4508
4570
  chat,
4509
- toolbar
4571
+ toolbar,
4572
+ aiMessage
4510
4573
  };
4511
4574
 
4512
4575
  const labelBox = {
@@ -5308,7 +5371,7 @@ async function getRemarkable(extensions) {
5308
5371
 
5309
5372
  const parseMarkdown = async (options) => {
5310
5373
  const markdownLibrary = await getRemarkable(options.extensions);
5311
- const css = (await import('./styles-CmQhZbPb.js')).markdownParserStyles ?? new ErrorImporting();
5374
+ const css = (await import('./styles-DWludKkV.js')).markdownParserStyles ?? new ErrorImporting();
5312
5375
  if (css instanceof ErrorImporting)
5313
5376
  throw new Error("Could not import css, cannot continue");
5314
5377
  const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
@@ -5766,4 +5829,4 @@ class MarkdownBuilder {
5766
5829
  }
5767
5830
 
5768
5831
  export { ApiaThemeProvider as A, 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 };
5769
- //# sourceMappingURL=index-B8vI1LSQ.js.map
5832
+ //# sourceMappingURL=index-CGg8tjIE.js.map