@apia/theme 4.0.40 → 4.0.42

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.
@@ -14,4 +14,4 @@ ${css}
14
14
  </html>`;
15
15
 
16
16
  export { markdownHtml };
17
- //# sourceMappingURL=html-B-K0BIiw.js.map
17
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.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,YAAA,GAA8B,CACzC,KAAA,EACA,GAAA,EACA,IAAA,KACG,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAAA,EAKM,KAAK,CAAA;AAAA;AAAA,EAEd,GAAG;AAAA;AAAA;AAAA;AAAA,uBAAA,EAIoB,IAAI,CAAA;AAAA;AAAA,OAAA;;;;"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiaThemeProvider, F as Form, t as MarkdownBlock, v as MarkdownBuilder, x as MarkdownList, y as MarkdownParagraph, z as MarkdownTable, B as MarkdownTableOfContents, M as MaterialInput, T as Table, h as applyStatesGetColor, o as focusOutline, g as getColorState, a as getColorStates, b as getColorsAndStatesByDefinition, c as getColorsAndStatesByPath, d as getColorsByDefinition, e as getColorsByPath, f as getOneColorState, k as getSpacingLayouts, q as getVariant, j as injectStyles, i as makeStyledComponent, w as parseMarkdown, p as parsePalette, r as responsive, n as smallButton, l as spacing, s as spacingLayouts, u as useMainTheme } from './index-BxGPqOIP.js';
1
+ export { A as ApiaThemeProvider, F as Form, t as MarkdownBlock, v as MarkdownBuilder, x as MarkdownList, y as MarkdownParagraph, z as MarkdownTable, B as MarkdownTableOfContents, M as MaterialInput, T as Table, h as applyStatesGetColor, o as focusOutline, g as getColorState, a as getColorStates, b as getColorsAndStatesByDefinition, c as getColorsAndStatesByPath, d as getColorsByDefinition, e as getColorsByPath, f as getOneColorState, k as getSpacingLayouts, q as getVariant, j as injectStyles, i as makeStyledComponent, w as parseMarkdown, p as parsePalette, r as responsive, n as smallButton, l as spacing, s as spacingLayouts, u as useMainTheme } from './index2.js';
2
2
  export * from '@theme-ui/match-media';
3
3
  export { Alert, AspectImage, AspectRatio, Avatar, Badge, BaseStyles, Box, Button, Card, Checkbox, Close, CloseIcon, Container, Divider, Donut, Embed, Flex, Global, Grid, Heading, IconButton, Image, InitializeColorMode, Input, Label, Link, MenuButton, MenuIcon, Message, NavLink, Paragraph, Progress, Radio, Select, Slider, Spinner, Switch, Text, Textarea, createElement, css, get, merge, useColorMode, useThemeUI } from 'theme-ui';
4
4
  import 'lodash-es/cloneDeep';
@@ -5757,51 +5757,6 @@ const semanticSearch = {
5757
5757
  padding: "0 24px 32px 24px",
5758
5758
  fontWeight: "bold"
5759
5759
  },
5760
- ".markdown": {
5761
- padding: "0 24px 32px 24px",
5762
- "h1, h2, h3, h4, h5, h6": {
5763
- margin: "32px 0px 20px 0px",
5764
- "& *": {
5765
- fontSize: "inherit",
5766
- fontWeight: "inherit",
5767
- fontFamily: "inherit"
5768
- }
5769
- },
5770
- blockquote: {
5771
- fontStyle: "italic"
5772
- },
5773
- table: {
5774
- variant: "layout.common.tables.secondary",
5775
- thead: {
5776
- zIndex: 0
5777
- }
5778
- },
5779
- h2: {
5780
- display: "block",
5781
- borderBottom: "2px solid hsl(195deg 10% 49% / 50%)",
5782
- paddingBottom: "16px"
5783
- },
5784
- h3: {
5785
- textDecoration: "underline"
5786
- },
5787
- h4: {
5788
- fontSize: "20px"
5789
- },
5790
- ul: {
5791
- listStyle: "unset",
5792
- listStyleType: "disc",
5793
- margin: "unset",
5794
- padding: "unset",
5795
- paddingLeft: "20px",
5796
- paddingBottom: "16px"
5797
- },
5798
- "ol + ul, ul + ul, ol ul, ul ul": {
5799
- paddingLeft: "72px"
5800
- },
5801
- "p, ul, ol, blockQuote, table": {
5802
- mt: "16px"
5803
- }
5804
- },
5805
5760
  ".filters__container": {
5806
5761
  " > div": {
5807
5762
  display: "flex",
@@ -6343,9 +6298,10 @@ const controller = {
6343
6298
  display: "flex",
6344
6299
  flexDirection: "column",
6345
6300
  alignItems: "stretch",
6346
- maxHeight: "50vh",
6301
+ height: "100%",
6347
6302
  gap: 3,
6348
6303
  flexBasis: "50vh",
6304
+ flexGrow: 1,
6349
6305
  ".autoscrollContainer": {
6350
6306
  flexGrow: 1,
6351
6307
  flexShrink: 1,
@@ -6356,7 +6312,8 @@ const controller = {
6356
6312
  },
6357
6313
  ".assistantHistory": {
6358
6314
  flexGrow: 1,
6359
- overflow: "auto"
6315
+ overflow: "auto",
6316
+ maxHeight: "77vh"
6360
6317
  }
6361
6318
  };
6362
6319
 
@@ -6463,6 +6420,9 @@ const assistant = {
6463
6420
  ".modal__main": {
6464
6421
  maxWidth: "unset",
6465
6422
  overflow: "hidden"
6423
+ },
6424
+ "#floatingAssistant": {
6425
+ minWidth: "500px"
6466
6426
  }
6467
6427
  }
6468
6428
  };
@@ -6477,6 +6437,52 @@ const chat = {
6477
6437
  message
6478
6438
  };
6479
6439
 
6440
+ const markdown = {
6441
+ padding: "0 24px 32px 24px",
6442
+ "h1, h2, h3, h4, h5, h6": {
6443
+ margin: "32px 0px 20px 0px",
6444
+ "& *": {
6445
+ fontSize: "inherit",
6446
+ fontWeight: "inherit",
6447
+ fontFamily: "inherit"
6448
+ }
6449
+ },
6450
+ blockquote: {
6451
+ fontStyle: "italic"
6452
+ },
6453
+ table: {
6454
+ variant: "layout.common.tables.secondary",
6455
+ thead: {
6456
+ zIndex: 0
6457
+ }
6458
+ },
6459
+ h2: {
6460
+ display: "block",
6461
+ borderBottom: "2px solid hsl(195deg 10% 49% / 50%)",
6462
+ paddingBottom: "16px"
6463
+ },
6464
+ h3: {
6465
+ textDecoration: "underline"
6466
+ },
6467
+ h4: {
6468
+ fontSize: "20px"
6469
+ },
6470
+ ul: {
6471
+ listStyle: "unset",
6472
+ listStyleType: "disc",
6473
+ margin: "unset",
6474
+ padding: "unset",
6475
+ paddingLeft: "20px",
6476
+ paddingBottom: "16px"
6477
+ },
6478
+ "ol + ul, ul + ul, ol ul, ul ul": {
6479
+ paddingLeft: "72px"
6480
+ },
6481
+ "p, ul, ol, blockQuote, table": {
6482
+ mt: "16px"
6483
+ }
6484
+ };
6485
+
6480
6486
  const common = (theme) => {
6481
6487
  return {
6482
6488
  boxes,
@@ -6487,7 +6493,8 @@ const common = (theme) => {
6487
6493
  trees,
6488
6494
  tooltips,
6489
6495
  ai,
6490
- chat
6496
+ chat,
6497
+ markdown
6491
6498
  /* PREPEND HERE */
6492
6499
  };
6493
6500
  };
@@ -8305,10 +8312,10 @@ async function getRemarkable(extensions) {
8305
8312
 
8306
8313
  const parseMarkdown = async (options) => {
8307
8314
  const markdownLibrary = await getRemarkable(options.extensions);
8308
- const css = (await import('./styles-CAgWhp1H.js')).markdownParserStyles ?? new ErrorImporting();
8315
+ const css = (await import('./styles.js')).markdownParserStyles ?? new ErrorImporting();
8309
8316
  if (css instanceof ErrorImporting)
8310
8317
  throw new Error("Could not import css, cannot continue");
8311
- const html = options.htmlTemplate ?? (await import('./html-B-K0BIiw.js')).markdownHtml ?? new ErrorImporting();
8318
+ const html = options.htmlTemplate ?? (await import('./html.js')).markdownHtml ?? new ErrorImporting();
8312
8319
  if (html instanceof ErrorImporting)
8313
8320
  throw new Error("Could not import html, cannot continue");
8314
8321
  const markdownString = options.content;
@@ -8817,4 +8824,4 @@ ${pageBreakTag}`;
8817
8824
  }
8818
8825
 
8819
8826
  export { ApiaThemeProvider as A, MarkdownTableOfContents as B, Form as F, MaterialInput as M, Table as T, 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, MarkdownBlock as t, useMainTheme as u, MarkdownBuilder as v, parseMarkdown as w, MarkdownList as x, MarkdownParagraph as y, MarkdownTable as z };
8820
- //# sourceMappingURL=index-BxGPqOIP.js.map
8827
+ //# sourceMappingURL=index2.js.map