@ttoss/components 1.29.18 → 1.29.20
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/esm/index.js +2 -0
- package/dist/index.d.mts +50 -50
- package/dist/index.d.ts +50 -50
- package/dist/index.js +2 -0
- package/package.json +11 -10
- package/src/components/Markdown.tsx +4 -1
package/dist/esm/index.js
CHANGED
|
@@ -214,6 +214,7 @@ var ToastContainer = props => {
|
|
|
214
214
|
// src/components/Markdown.tsx
|
|
215
215
|
import { BaseStyles } from "@ttoss/ui";
|
|
216
216
|
import ReactMarkdown from "react-markdown";
|
|
217
|
+
import remarkGfm from "remark-gfm";
|
|
217
218
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
218
219
|
var Markdown = ({
|
|
219
220
|
children,
|
|
@@ -223,6 +224,7 @@ var Markdown = ({
|
|
|
223
224
|
return /* @__PURE__ */jsx5(BaseStyles, {
|
|
224
225
|
sx,
|
|
225
226
|
children: /* @__PURE__ */jsx5(ReactMarkdown, {
|
|
227
|
+
plugins: [remarkGfm],
|
|
226
228
|
...props,
|
|
227
229
|
children
|
|
228
230
|
})
|
package/dist/index.d.mts
CHANGED
|
@@ -76,56 +76,56 @@ declare const Accordion: {
|
|
|
76
76
|
unselectable?: "on" | "off" | undefined;
|
|
77
77
|
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
78
78
|
is?: string | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
79
|
+
"aria-activedescendant"?: string | undefined;
|
|
80
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
81
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
82
|
+
"aria-braillelabel"?: string | undefined;
|
|
83
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
84
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
85
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
86
|
+
"aria-colcount"?: number | undefined;
|
|
87
|
+
"aria-colindex"?: number | undefined;
|
|
88
|
+
"aria-colindextext"?: string | undefined;
|
|
89
|
+
"aria-colspan"?: number | undefined;
|
|
90
|
+
"aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
|
91
|
+
"aria-describedby"?: string | undefined;
|
|
92
|
+
"aria-description"?: string | undefined;
|
|
93
|
+
"aria-details"?: string | undefined;
|
|
94
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
95
|
+
"aria-errormessage"?: string | undefined;
|
|
96
|
+
"aria-flowto"?: string | undefined;
|
|
97
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
98
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
99
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
100
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
101
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
102
|
+
"aria-label"?: string | undefined;
|
|
103
|
+
"aria-labelledby"?: string | undefined;
|
|
104
|
+
"aria-level"?: number | undefined;
|
|
105
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
106
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
107
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
108
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
109
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
110
|
+
"aria-owns"?: string | undefined;
|
|
111
|
+
"aria-placeholder"?: string | undefined;
|
|
112
|
+
"aria-posinset"?: number | undefined;
|
|
113
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
114
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
115
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
116
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
117
|
+
"aria-roledescription"?: string | undefined;
|
|
118
|
+
"aria-rowcount"?: number | undefined;
|
|
119
|
+
"aria-rowindex"?: number | undefined;
|
|
120
|
+
"aria-rowindextext"?: string | undefined;
|
|
121
|
+
"aria-rowspan"?: number | undefined;
|
|
122
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
123
|
+
"aria-setsize"?: number | undefined;
|
|
124
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
125
|
+
"aria-valuemax"?: number | undefined;
|
|
126
|
+
"aria-valuemin"?: number | undefined;
|
|
127
|
+
"aria-valuenow"?: number | undefined;
|
|
128
|
+
"aria-valuetext"?: string | undefined;
|
|
129
129
|
dangerouslySetInnerHTML?: {
|
|
130
130
|
__html: string | TrustedHTML;
|
|
131
131
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,56 +76,56 @@ declare const Accordion: {
|
|
|
76
76
|
unselectable?: "on" | "off" | undefined;
|
|
77
77
|
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
78
78
|
is?: string | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
79
|
+
"aria-activedescendant"?: string | undefined;
|
|
80
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
81
|
+
"aria-autocomplete"?: "none" | "both" | "inline" | "list" | undefined;
|
|
82
|
+
"aria-braillelabel"?: string | undefined;
|
|
83
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
84
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
85
|
+
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
86
|
+
"aria-colcount"?: number | undefined;
|
|
87
|
+
"aria-colindex"?: number | undefined;
|
|
88
|
+
"aria-colindextext"?: string | undefined;
|
|
89
|
+
"aria-colspan"?: number | undefined;
|
|
90
|
+
"aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
|
|
91
|
+
"aria-describedby"?: string | undefined;
|
|
92
|
+
"aria-description"?: string | undefined;
|
|
93
|
+
"aria-details"?: string | undefined;
|
|
94
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
95
|
+
"aria-errormessage"?: string | undefined;
|
|
96
|
+
"aria-flowto"?: string | undefined;
|
|
97
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
98
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
|
|
99
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
100
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
101
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
102
|
+
"aria-label"?: string | undefined;
|
|
103
|
+
"aria-labelledby"?: string | undefined;
|
|
104
|
+
"aria-level"?: number | undefined;
|
|
105
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
106
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
107
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
108
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
109
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
110
|
+
"aria-owns"?: string | undefined;
|
|
111
|
+
"aria-placeholder"?: string | undefined;
|
|
112
|
+
"aria-posinset"?: number | undefined;
|
|
113
|
+
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
|
|
114
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
115
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
116
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
117
|
+
"aria-roledescription"?: string | undefined;
|
|
118
|
+
"aria-rowcount"?: number | undefined;
|
|
119
|
+
"aria-rowindex"?: number | undefined;
|
|
120
|
+
"aria-rowindextext"?: string | undefined;
|
|
121
|
+
"aria-rowspan"?: number | undefined;
|
|
122
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
123
|
+
"aria-setsize"?: number | undefined;
|
|
124
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
125
|
+
"aria-valuemax"?: number | undefined;
|
|
126
|
+
"aria-valuemin"?: number | undefined;
|
|
127
|
+
"aria-valuenow"?: number | undefined;
|
|
128
|
+
"aria-valuetext"?: string | undefined;
|
|
129
129
|
dangerouslySetInnerHTML?: {
|
|
130
130
|
__html: string | TrustedHTML;
|
|
131
131
|
} | undefined;
|
package/dist/index.js
CHANGED
|
@@ -262,6 +262,7 @@ var ToastContainer = props => {
|
|
|
262
262
|
// src/components/Markdown.tsx
|
|
263
263
|
var import_ui5 = require("@ttoss/ui");
|
|
264
264
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
265
|
+
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
265
266
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
266
267
|
var Markdown = ({
|
|
267
268
|
children,
|
|
@@ -271,6 +272,7 @@ var Markdown = ({
|
|
|
271
272
|
return /* @__PURE__ */(0, import_jsx_runtime5.jsx)(import_ui5.BaseStyles, {
|
|
272
273
|
sx,
|
|
273
274
|
children: /* @__PURE__ */(0, import_jsx_runtime5.jsx)(import_react_markdown.default, {
|
|
275
|
+
plugins: [import_remark_gfm.default],
|
|
274
276
|
...props,
|
|
275
277
|
children
|
|
276
278
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.20",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -26,20 +26,21 @@
|
|
|
26
26
|
"react-accessible-accordion": "^5.0.0",
|
|
27
27
|
"react-markdown": "6.0.0",
|
|
28
28
|
"react-modal": "^3.16.1",
|
|
29
|
-
"react-toastify": "^9.1.3"
|
|
29
|
+
"react-toastify": "^9.1.3",
|
|
30
|
+
"remark-gfm": "1.0.0"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"react": ">=16.8.0",
|
|
33
|
-
"@ttoss/ui": "^3.1.
|
|
34
|
+
"@ttoss/ui": "^3.1.6"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@types/jest": "^29.5.
|
|
37
|
-
"@types/react": "^18.2.
|
|
38
|
-
"jest": "^29.
|
|
39
|
-
"tsup": "^7.
|
|
40
|
-
"@ttoss/config": "^1.
|
|
41
|
-
"@ttoss/test-utils": "^1.
|
|
42
|
-
"@ttoss/ui": "^3.1.
|
|
37
|
+
"@types/jest": "^29.5.5",
|
|
38
|
+
"@types/react": "^18.2.27",
|
|
39
|
+
"jest": "^29.7.0",
|
|
40
|
+
"tsup": "^7.2.0",
|
|
41
|
+
"@ttoss/config": "^1.31.0",
|
|
42
|
+
"@ttoss/test-utils": "^1.24.0",
|
|
43
|
+
"@ttoss/ui": "^3.1.6"
|
|
43
44
|
},
|
|
44
45
|
"keywords": [
|
|
45
46
|
"React",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseStyles, FlexProps } from '@ttoss/ui';
|
|
2
2
|
import ReactMarkdown, { ReactMarkdownOptions } from 'react-markdown';
|
|
3
|
+
import remarkGfm from 'remark-gfm';
|
|
3
4
|
|
|
4
5
|
export type MarkdownProps = ReactMarkdownOptions & {
|
|
5
6
|
children: string;
|
|
@@ -9,7 +10,9 @@ export type MarkdownProps = ReactMarkdownOptions & {
|
|
|
9
10
|
export const Markdown = ({ children, sx, ...props }: MarkdownProps) => {
|
|
10
11
|
return (
|
|
11
12
|
<BaseStyles sx={sx}>
|
|
12
|
-
<ReactMarkdown {...props}>
|
|
13
|
+
<ReactMarkdown plugins={[remarkGfm]} {...props}>
|
|
14
|
+
{children}
|
|
15
|
+
</ReactMarkdown>
|
|
13
16
|
</BaseStyles>
|
|
14
17
|
);
|
|
15
18
|
};
|