@algolia/satellite 2.3.0 → 2.4.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.
Files changed (48) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.d.ts +8 -0
  2. package/dist/cjs/Actions/Accordion/Accordion.js +104 -57
  3. package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +170 -0
  4. package/dist/cjs/Actions/Accordion/Accordion.styles.js +57 -0
  5. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  6. package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  7. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  8. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  9. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  10. package/dist/cjs/Fields/TextArea/TextArea.tailwind.js +3 -3
  11. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.d.ts +7 -0
  12. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +11 -5
  13. package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
  14. package/dist/cjs/Helpers/UserContent/UserContent.tailwind.js +1 -3
  15. package/dist/cjs/Illustrations/index.d.ts +7 -0
  16. package/dist/cjs/Illustrations/index.js +1254 -0
  17. package/dist/cjs/Indicators/EmptyState/EmptyState.js +35 -2
  18. package/dist/cjs/Indicators/EmptyState/types.d.ts +4 -3
  19. package/dist/cjs/Overlay/Modal/components/ModalFooter.js +2 -7
  20. package/dist/cjs/index.d.ts +1 -0
  21. package/dist/cjs/index.js +12 -0
  22. package/dist/cjs/types.d.ts +7 -0
  23. package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
  24. package/dist/esm/Actions/Accordion/Accordion.d.ts +8 -0
  25. package/dist/esm/Actions/Accordion/Accordion.js +105 -58
  26. package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +170 -0
  27. package/dist/esm/Actions/Accordion/Accordion.styles.js +50 -0
  28. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
  29. package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +1 -1
  30. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +1 -1
  31. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
  32. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +2 -2
  33. package/dist/esm/Fields/TextArea/TextArea.tailwind.js +3 -3
  34. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.d.ts +7 -0
  35. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +11 -5
  36. package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
  37. package/dist/esm/Helpers/UserContent/UserContent.tailwind.js +1 -3
  38. package/dist/esm/Illustrations/index.d.ts +7 -0
  39. package/dist/esm/Illustrations/index.js +1248 -0
  40. package/dist/esm/Indicators/EmptyState/EmptyState.js +35 -2
  41. package/dist/esm/Indicators/EmptyState/types.d.ts +4 -3
  42. package/dist/esm/Overlay/Modal/components/ModalFooter.js +2 -7
  43. package/dist/esm/index.d.ts +1 -0
  44. package/dist/esm/index.js +1 -0
  45. package/dist/esm/types.d.ts +7 -0
  46. package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
  47. package/dist/satellite.min.css +1 -1
  48. package/package.json +4 -5
@@ -0,0 +1,170 @@
1
+ export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
2
+ variant: {
3
+ normal: {
4
+ trigger: string;
5
+ titleWrapper: string;
6
+ iconBg: string;
7
+ triggerIcon: string;
8
+ contentInner: string;
9
+ };
10
+ compact: {
11
+ trigger: string;
12
+ titleWrapper: string;
13
+ iconBg: string;
14
+ title: string;
15
+ description: string;
16
+ metaWrapper: string;
17
+ meta: string;
18
+ triggerIcon: string;
19
+ content: string;
20
+ contentInner: string;
21
+ };
22
+ };
23
+ }, {
24
+ base: string;
25
+ item: string;
26
+ header: string;
27
+ trigger: string;
28
+ titleWrapper: string;
29
+ iconBg: string;
30
+ icon: string;
31
+ titleCol: string;
32
+ title: string;
33
+ description: string;
34
+ metaWrapper: string;
35
+ meta: string;
36
+ triggerIcon: string;
37
+ triggerIconChevron: string;
38
+ content: string;
39
+ contentInner: string;
40
+ }, undefined, {
41
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
42
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
43
+ } | undefined;
44
+ } & import("tailwind-variants/dist/config").TWMConfig & {
45
+ twMergeConfig: {
46
+ prefix: string;
47
+ };
48
+ }, {
49
+ variant: {
50
+ normal: {
51
+ trigger: string;
52
+ titleWrapper: string;
53
+ iconBg: string;
54
+ triggerIcon: string;
55
+ contentInner: string;
56
+ };
57
+ compact: {
58
+ trigger: string;
59
+ titleWrapper: string;
60
+ iconBg: string;
61
+ title: string;
62
+ description: string;
63
+ metaWrapper: string;
64
+ meta: string;
65
+ triggerIcon: string;
66
+ content: string;
67
+ contentInner: string;
68
+ };
69
+ };
70
+ }, {
71
+ base: string;
72
+ item: string;
73
+ header: string;
74
+ trigger: string;
75
+ titleWrapper: string;
76
+ iconBg: string;
77
+ icon: string;
78
+ titleCol: string;
79
+ title: string;
80
+ description: string;
81
+ metaWrapper: string;
82
+ meta: string;
83
+ triggerIcon: string;
84
+ triggerIconChevron: string;
85
+ content: string;
86
+ contentInner: string;
87
+ }, import("tailwind-variants").TVReturnType<{
88
+ variant: {
89
+ normal: {
90
+ trigger: string;
91
+ titleWrapper: string;
92
+ iconBg: string;
93
+ triggerIcon: string;
94
+ contentInner: string;
95
+ };
96
+ compact: {
97
+ trigger: string;
98
+ titleWrapper: string;
99
+ iconBg: string;
100
+ title: string;
101
+ description: string;
102
+ metaWrapper: string;
103
+ meta: string;
104
+ triggerIcon: string;
105
+ content: string;
106
+ contentInner: string;
107
+ };
108
+ };
109
+ }, {
110
+ base: string;
111
+ item: string;
112
+ header: string;
113
+ trigger: string;
114
+ titleWrapper: string;
115
+ iconBg: string;
116
+ icon: string;
117
+ titleCol: string;
118
+ title: string;
119
+ description: string;
120
+ metaWrapper: string;
121
+ meta: string;
122
+ triggerIcon: string;
123
+ triggerIconChevron: string;
124
+ content: string;
125
+ contentInner: string;
126
+ }, undefined, import("tailwind-variants/dist/config").TVConfig<{
127
+ variant: {
128
+ normal: {
129
+ trigger: string;
130
+ titleWrapper: string;
131
+ iconBg: string;
132
+ triggerIcon: string;
133
+ contentInner: string;
134
+ };
135
+ compact: {
136
+ trigger: string;
137
+ titleWrapper: string;
138
+ iconBg: string;
139
+ title: string;
140
+ description: string;
141
+ metaWrapper: string;
142
+ meta: string;
143
+ triggerIcon: string;
144
+ content: string;
145
+ contentInner: string;
146
+ };
147
+ };
148
+ }, {
149
+ variant: {
150
+ normal: {
151
+ trigger: string;
152
+ titleWrapper: string;
153
+ iconBg: string;
154
+ triggerIcon: string;
155
+ contentInner: string;
156
+ };
157
+ compact: {
158
+ trigger: string;
159
+ titleWrapper: string;
160
+ iconBg: string;
161
+ title: string;
162
+ description: string;
163
+ metaWrapper: string;
164
+ meta: string;
165
+ triggerIcon: string;
166
+ content: string;
167
+ contentInner: string;
168
+ };
169
+ };
170
+ }>, unknown, unknown, undefined>>;
@@ -0,0 +1,50 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31;
3
+ import stl from "./../../styles/helpers/satellitePrefixer";
4
+ import { tv } from "./../../styles/helpers/tv";
5
+ export var accordionStyles = tv({
6
+ slots: {
7
+ base: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col"]))),
8
+ item: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["group/accordion-item flex flex-col"]))),
9
+ header: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""]))),
10
+ trigger: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["group/accordion-trigger flex items-center justify-between"]))),
11
+ titleWrapper: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex items-center grow"]))),
12
+ iconBg: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center justify-center shrink-0"]))),
13
+ icon: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["size-4 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
14
+ titleCol: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["flex flex-col gap-y-1 text-left grow"]))),
15
+ title: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["typo-display-heading line-clamp-2 group-disabled/accordion-trigger:text-grey-300"]))),
16
+ description: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["typo-display-body text-grey-600 line-clamp-3 group-disabled/accordion-trigger:text-grey-300"]))),
17
+ metaWrapper: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["flex items-center gap-x-2"]))),
18
+ meta: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["typo-display-caption group-disabled/accordion-trigger:text-grey-300"]))),
19
+ triggerIcon: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["shrink-0 text-grey-600 group-disabled/accordion-trigger:text-grey-300"]))),
20
+ triggerIconChevron: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["group-data-[state=open]/accordion-trigger:rotate-180 motion-safe:transition-transform motion-safe:duration-300 motion-safe:ease-out"]))),
21
+ content: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["typo-display-body text-grey-600 overflow-hidden accordion-content"]))),
22
+ contentInner: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([""])))
23
+ },
24
+ variants: {
25
+ variant: {
26
+ normal: {
27
+ trigger: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["w-full gap-x-3 px-3.5 py-2.5 group-first/accordion-item:rounded-t group-last/accordion-item:rounded-b bg-white border-2 border-transparent focus-visible:outline-none focus-visible:border-accent-600 enabled:hover:bg-grey-50 motion-safe:transition-colors"]))),
28
+ titleWrapper: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["gap-x-3"]))),
29
+ iconBg: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["rounded-full w-8 h-8 bg-grey-100"]))),
30
+ triggerIcon: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["size-5"]))),
31
+ contentInner: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["px-4 pt-2 pb-4"])))
32
+ },
33
+ compact: {
34
+ trigger: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["min-h-0 gap-x-2 bg-transparent border-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent-600"]))),
35
+ titleWrapper: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["gap-x-1"]))),
36
+ iconBg: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["h-6 bg-transparent"]))),
37
+ title: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["typo-display-body"]))),
38
+ description: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["hidden"]))),
39
+ metaWrapper: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([""]))),
40
+ meta: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["hidden"]))),
41
+ triggerIcon: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["size-4"]))),
42
+ content: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["py-0"]))),
43
+ contentInner: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["py-1"])))
44
+ }
45
+ }
46
+ },
47
+ defaultVariants: {
48
+ variant: "normal"
49
+ }
50
+ });
@@ -7,8 +7,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
7
7
  content?: import("tailwind-merge").ClassNameValue;
8
8
  item?: import("tailwind-merge").ClassNameValue;
9
9
  trigger?: import("tailwind-merge").ClassNameValue;
10
- iconBg?: import("tailwind-merge").ClassNameValue;
11
10
  titleWrapper?: import("tailwind-merge").ClassNameValue;
11
+ iconBg?: import("tailwind-merge").ClassNameValue;
12
12
  };
13
13
  };
14
14
  } | {
@@ -20,8 +20,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
20
20
  content?: import("tailwind-merge").ClassNameValue;
21
21
  item?: import("tailwind-merge").ClassNameValue;
22
22
  trigger?: import("tailwind-merge").ClassNameValue;
23
- iconBg?: import("tailwind-merge").ClassNameValue;
24
23
  titleWrapper?: import("tailwind-merge").ClassNameValue;
24
+ iconBg?: import("tailwind-merge").ClassNameValue;
25
25
  };
26
26
  };
27
27
  } | {}, {
@@ -48,8 +48,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
48
48
  content?: import("tailwind-merge").ClassNameValue;
49
49
  item?: import("tailwind-merge").ClassNameValue;
50
50
  trigger?: import("tailwind-merge").ClassNameValue;
51
- iconBg?: import("tailwind-merge").ClassNameValue;
52
51
  titleWrapper?: import("tailwind-merge").ClassNameValue;
52
+ iconBg?: import("tailwind-merge").ClassNameValue;
53
53
  };
54
54
  };
55
55
  } | {}, {
@@ -79,8 +79,8 @@ export declare const chatContextAccordionStyles: import("tailwind-variants").TVR
79
79
  content?: import("tailwind-merge").ClassNameValue;
80
80
  item?: import("tailwind-merge").ClassNameValue;
81
81
  trigger?: import("tailwind-merge").ClassNameValue;
82
- iconBg?: import("tailwind-merge").ClassNameValue;
83
82
  titleWrapper?: import("tailwind-merge").ClassNameValue;
83
+ iconBg?: import("tailwind-merge").ClassNameValue;
84
84
  };
85
85
  };
86
86
  } | {}>, unknown, unknown, undefined>>;
@@ -62,7 +62,7 @@ export declare type ChatMessageProps<ActionsExtraData extends Record<string, any
62
62
  *
63
63
  * See the [ChatMessage documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message) for more information.
64
64
  */
65
- export declare const ChatMessage: <ActionsExtraData extends Record<string, any> = Record<string, any>>(props: Omit<HTMLAttributes<HTMLElement>, "children" | "content"> & {
65
+ export declare const ChatMessage: <ActionsExtraData extends Record<string, any> = Record<string, any>>(props: Omit<HTMLAttributes<HTMLElement>, "content" | "children"> & {
66
66
  /**
67
67
  * The content of the message.
68
68
  */
@@ -34,8 +34,8 @@ export declare const chatMessageStyles: import("tailwind-variants").TVReturnType
34
34
  footer: string;
35
35
  }, undefined, {
36
36
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
37
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
38
37
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
38
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
39
39
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
40
40
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
41
41
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -40,8 +40,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
40
40
  content: string;
41
41
  }, undefined, {
42
42
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
43
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
44
43
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
44
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
45
45
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
46
46
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
47
47
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -120,8 +120,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
120
120
  footer: string;
121
121
  }, undefined, {
122
122
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
123
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
124
123
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
124
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
125
125
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
126
126
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
127
127
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -67,8 +67,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
67
67
  skeleton: string;
68
68
  }, undefined, {
69
69
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
70
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
71
70
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
71
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
72
72
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
73
73
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
74
74
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -147,8 +147,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
147
147
  footer: string;
148
148
  }, undefined, {
149
149
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
150
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
151
150
  leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
151
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
152
152
  side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
153
153
  actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
154
154
  autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -15,9 +15,6 @@ var textAreaPlugin = plugin(function (_ref) {
15
15
  transition: "all 100ms ease-in-out",
16
16
  fontSize: theme("fontSize.base"),
17
17
  lineHeight: theme("lineHeight.base"),
18
- "&::placeholder": {
19
- color: theme("colors.grey.600")
20
- },
21
18
  "&:hover": {
22
19
  borderColor: theme("colors.grey.600")
23
20
  },
@@ -49,6 +46,9 @@ var textAreaPlugin = plugin(function (_ref) {
49
46
  color: theme("colors.grey.900"),
50
47
  background: "transparent",
51
48
  padding: theme("spacing.4"),
49
+ "&::placeholder": {
50
+ color: theme("colors.grey.600")
51
+ },
52
52
  "&:focus": {
53
53
  outline: "none"
54
54
  },
@@ -1,4 +1,5 @@
1
1
  import type { FC } from "react";
2
+ import type { Components } from "react-markdown";
2
3
  export interface MarkdownContentProps {
3
4
  /**
4
5
  * Additional classes to apply to the `MarkdownContent`.
@@ -8,8 +9,14 @@ export interface MarkdownContentProps {
8
9
  * The content of the `MarkdownContent`.
9
10
  */
10
11
  content?: string;
12
+ /**
13
+ * Custom components to override the default rendering of markdown elements.
14
+ */
15
+ components?: Partial<Components>;
11
16
  }
12
17
  /**
13
18
  * The `MarkdownContent` component is used to style user generated content that comes as Markdown.
19
+ *
20
+ * See the [Markdown Content documentation page](https://satellite.algolia.com/8261d6576/p/784293-markdown-content) for more information.
14
21
  */
15
22
  export declare const MarkdownContent: FC<MarkdownContentProps>;
@@ -1,22 +1,28 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import cx from "clsx";
4
- import { marked } from "marked";
4
+ import ReactMarkdown from "react-markdown";
5
+ import remarkGfm from "remark-gfm";
5
6
  import stl from "./../../styles/helpers/satellitePrefixer";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  /**
8
9
  * The `MarkdownContent` component is used to style user generated content that comes as Markdown.
10
+ *
11
+ * See the [Markdown Content documentation page](https://satellite.algolia.com/8261d6576/p/784293-markdown-content) for more information.
9
12
  */
10
13
  export var MarkdownContent = function MarkdownContent(_ref) {
11
14
  var className = _ref.className,
12
- content = _ref.content;
15
+ content = _ref.content,
16
+ components = _ref.components;
13
17
  if (!content) {
14
18
  return null;
15
19
  }
16
20
  return /*#__PURE__*/_jsx("div", {
17
21
  className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["markdown-content"]))), className),
18
- dangerouslySetInnerHTML: {
19
- __html: marked.parse(content)
20
- }
22
+ children: /*#__PURE__*/_jsx(ReactMarkdown, {
23
+ components: components,
24
+ remarkPlugins: [remarkGfm],
25
+ children: content
26
+ })
21
27
  });
22
28
  };
@@ -50,8 +50,8 @@ export default plugin(function (_ref) {
50
50
  listStyleType: "disc"
51
51
  },
52
52
  ol: {
53
- paddingLeft: theme("spacing.5"),
54
- listStyleType: "decimal"
53
+ listStyleType: "decimal",
54
+ listStylePosition: "inside"
55
55
  },
56
56
  a: {
57
57
  color: theme("colors.accent.600"),
@@ -27,9 +27,7 @@ export default plugin(function (_ref) {
27
27
  }
28
28
  },
29
29
  h1: mobile["display-xlarge"],
30
- h2: _objectSpread(_objectSpread({}, mobile["display-large"]), {}, {
31
- color: theme("colors.grey.600")
32
- }),
30
+ h2: mobile["display-large"],
33
31
  h3: mobile["display-medium"],
34
32
  h4: mobile["display-small"],
35
33
  h5: mobile["display-heading"],
@@ -0,0 +1,7 @@
1
+ import type { SvgComponent } from "../types";
2
+ declare const FailIllustration: SvgComponent;
3
+ declare const FilterResultsIllustration: SvgComponent;
4
+ declare const GenericIllustration: SvgComponent;
5
+ declare const NoPermissionIllustration: SvgComponent;
6
+ declare const SuccessIllustration: SvgComponent;
7
+ export { FailIllustration, FilterResultsIllustration, GenericIllustration, NoPermissionIllustration, SuccessIllustration, };