@frontmcp/ui 1.11.1 → 1.11.3

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 (90) hide show
  1. package/bridge/adapters/index.d.ts.map +1 -1
  2. package/bridge/core/adapter-registry.d.ts +1 -1
  3. package/bridge/core/adapter-registry.d.ts.map +1 -1
  4. package/components/Alert/Alert.d.ts.map +1 -1
  5. package/components/Alert/index.js +1 -1
  6. package/components/Avatar/Avatar.d.ts.map +1 -1
  7. package/components/Badge/Badge.d.ts.map +1 -1
  8. package/components/Badge/index.js +1 -1
  9. package/components/Button/Button.d.ts.map +1 -1
  10. package/components/Button/index.js +1 -1
  11. package/components/Card/Card.d.ts +3 -3
  12. package/components/Card/Card.d.ts.map +1 -1
  13. package/components/Card/index.js +4 -4
  14. package/components/List/List.d.ts.map +1 -1
  15. package/components/List/index.js +2 -2
  16. package/components/Loader/Loader.d.ts +1 -1
  17. package/components/Loader/Loader.d.ts.map +1 -1
  18. package/components/Loader/index.js +2 -2
  19. package/components/Modal/Modal.d.ts +1 -1
  20. package/components/Modal/Modal.d.ts.map +1 -1
  21. package/components/Modal/index.js +3 -3
  22. package/components/Select/Select.d.ts.map +1 -1
  23. package/components/Select/index.js +1 -1
  24. package/components/Table/Table.d.ts.map +1 -1
  25. package/components/Table/index.js +1 -1
  26. package/components/TextField/TextField.d.ts.map +1 -1
  27. package/components/index.js +16 -16
  28. package/esm/components/Alert/index.mjs +1 -1
  29. package/esm/components/Badge/index.mjs +1 -1
  30. package/esm/components/Button/index.mjs +1 -1
  31. package/esm/components/Card/index.mjs +4 -4
  32. package/esm/components/List/index.mjs +2 -2
  33. package/esm/components/Loader/index.mjs +2 -2
  34. package/esm/components/Modal/index.mjs +3 -3
  35. package/esm/components/Select/index.mjs +1 -1
  36. package/esm/components/Table/index.mjs +1 -1
  37. package/esm/components/index.mjs +16 -16
  38. package/esm/package.json +2 -2
  39. package/esm/renderer/charts/index.mjs +21 -21
  40. package/esm/renderer/common/index.mjs +2 -2
  41. package/esm/renderer/csv/index.mjs +3 -3
  42. package/esm/renderer/flow/index.mjs +31 -31
  43. package/esm/renderer/html/index.mjs +1 -1
  44. package/esm/renderer/image/index.mjs +3 -3
  45. package/esm/renderer/index.mjs +1584 -1578
  46. package/esm/renderer/maps/index.mjs +16 -16
  47. package/esm/renderer/math/index.mjs +15 -15
  48. package/esm/renderer/mdx/index.mjs +7 -5
  49. package/esm/renderer/media/index.mjs +2 -2
  50. package/esm/renderer/mermaid/index.mjs +3 -3
  51. package/esm/renderer/pdf/index.mjs +4 -4
  52. package/esm/renderer/react/index.mjs +8 -8
  53. package/esm/theme/index.mjs +1 -1
  54. package/package.json +2 -2
  55. package/renderer/auto-detect.d.ts +1 -1
  56. package/renderer/auto-detect.d.ts.map +1 -1
  57. package/renderer/charts/index.d.ts.map +1 -1
  58. package/renderer/charts/index.js +22 -22
  59. package/renderer/common/index.js +1 -1
  60. package/renderer/common/use-lazy-module.d.ts.map +1 -1
  61. package/renderer/common/use-renderer-theme.d.ts.map +1 -1
  62. package/renderer/csv/index.d.ts.map +1 -1
  63. package/renderer/csv/index.js +3 -3
  64. package/renderer/flow/index.d.ts.map +1 -1
  65. package/renderer/flow/index.js +32 -32
  66. package/renderer/html/index.d.ts.map +1 -1
  67. package/renderer/html/index.js +1 -1
  68. package/renderer/image/index.d.ts.map +1 -1
  69. package/renderer/image/index.js +3 -3
  70. package/renderer/index.d.ts.map +1 -1
  71. package/renderer/index.js +1593 -1587
  72. package/renderer/maps/index.d.ts.map +1 -1
  73. package/renderer/maps/index.js +15 -15
  74. package/renderer/math/index.d.ts.map +1 -1
  75. package/renderer/math/index.js +14 -14
  76. package/renderer/mdx/index.d.ts.map +1 -1
  77. package/renderer/mdx/index.js +6 -4
  78. package/renderer/media/index.d.ts.map +1 -1
  79. package/renderer/media/index.js +1 -1
  80. package/renderer/mermaid/index.d.ts.map +1 -1
  81. package/renderer/mermaid/index.js +3 -3
  82. package/renderer/pdf/index.d.ts.map +1 -1
  83. package/renderer/pdf/index.js +3 -3
  84. package/renderer/react/index.d.ts.map +1 -1
  85. package/renderer/react/index.js +8 -8
  86. package/renderer/types.d.ts +1 -1
  87. package/renderer/types.d.ts.map +1 -1
  88. package/theme/FrontMcpThemeProvider.d.ts.map +1 -1
  89. package/theme/create-theme.d.ts.map +1 -1
  90. package/theme/index.js +1 -1
@@ -1,7 +1,7 @@
1
1
  // libs/ui/src/components/Button/Button.tsx
2
- import { styled } from "@mui/material/styles";
3
2
  import MuiButton from "@mui/material/Button";
4
3
  import CircularProgress from "@mui/material/CircularProgress";
4
+ import { styled } from "@mui/material/styles";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  function mapVariant(variant) {
7
7
  switch (variant) {
@@ -54,12 +54,12 @@ function Button({
54
54
  }
55
55
 
56
56
  // libs/ui/src/components/Card/Card.tsx
57
- import { styled as styled2 } from "@mui/material/styles";
58
57
  import MuiCard from "@mui/material/Card";
59
- import CardHeader from "@mui/material/CardHeader";
60
- import CardContent from "@mui/material/CardContent";
61
- import CardActions from "@mui/material/CardActions";
62
58
  import CardActionArea from "@mui/material/CardActionArea";
59
+ import CardActions from "@mui/material/CardActions";
60
+ import CardContent from "@mui/material/CardContent";
61
+ import CardHeader from "@mui/material/CardHeader";
62
+ import { styled as styled2 } from "@mui/material/styles";
63
63
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
64
64
  var StyledCard = styled2(MuiCard, {
65
65
  name: "Card",
@@ -128,9 +128,9 @@ function Card({
128
128
  }
129
129
 
130
130
  // libs/ui/src/components/Alert/Alert.tsx
131
- import { useState } from "react";
132
131
  import MuiAlert from "@mui/material/Alert";
133
132
  import AlertTitle from "@mui/material/AlertTitle";
133
+ import { useState } from "react";
134
134
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
135
135
  function Alert({
136
136
  severity = "info",
@@ -153,8 +153,8 @@ function Alert({
153
153
  }
154
154
 
155
155
  // libs/ui/src/components/Badge/Badge.tsx
156
- import React2 from "react";
157
156
  import Chip from "@mui/material/Chip";
157
+ import React2 from "react";
158
158
  import { jsx as jsx4 } from "react/jsx-runtime";
159
159
  function mapColor(variant) {
160
160
  switch (variant) {
@@ -213,12 +213,12 @@ function Avatar({ src, alt, children, size = 40, variant = "circular" }) {
213
213
  }
214
214
 
215
215
  // libs/ui/src/components/Modal/Modal.tsx
216
- import { styled as styled3 } from "@mui/material/styles";
217
216
  import Dialog from "@mui/material/Dialog";
218
- import DialogTitle from "@mui/material/DialogTitle";
219
- import DialogContent from "@mui/material/DialogContent";
220
217
  import DialogActions from "@mui/material/DialogActions";
218
+ import DialogContent from "@mui/material/DialogContent";
219
+ import DialogTitle from "@mui/material/DialogTitle";
221
220
  import IconButton from "@mui/material/IconButton";
221
+ import { styled as styled3 } from "@mui/material/styles";
222
222
  import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
223
223
  var StyledDialogTitle = styled3(DialogTitle, {
224
224
  name: "Modal",
@@ -257,6 +257,7 @@ function Modal({
257
257
  }
258
258
 
259
259
  // libs/ui/src/components/Table/Table.tsx
260
+ import Paper from "@mui/material/Paper";
260
261
  import { styled as styled4 } from "@mui/material/styles";
261
262
  import MuiTable from "@mui/material/Table";
262
263
  import TableBody from "@mui/material/TableBody";
@@ -264,7 +265,6 @@ import TableCell from "@mui/material/TableCell";
264
265
  import TableContainer from "@mui/material/TableContainer";
265
266
  import TableHead from "@mui/material/TableHead";
266
267
  import TableRow from "@mui/material/TableRow";
267
- import Paper from "@mui/material/Paper";
268
268
  import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
269
269
  var StyledHeaderCell = styled4(TableCell, {
270
270
  name: "Table",
@@ -332,8 +332,8 @@ function TextField({
332
332
  }
333
333
 
334
334
  // libs/ui/src/components/Select/Select.tsx
335
- import MuiTextField2 from "@mui/material/TextField";
336
335
  import MenuItem from "@mui/material/MenuItem";
336
+ import MuiTextField2 from "@mui/material/TextField";
337
337
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
338
338
  function Select({
339
339
  label,
@@ -374,13 +374,13 @@ function Select({
374
374
  }
375
375
 
376
376
  // libs/ui/src/components/List/List.tsx
377
- import React3 from "react";
377
+ import Divider from "@mui/material/Divider";
378
378
  import MuiList from "@mui/material/List";
379
379
  import ListItem from "@mui/material/ListItem";
380
380
  import ListItemButton from "@mui/material/ListItemButton";
381
381
  import ListItemIcon from "@mui/material/ListItemIcon";
382
382
  import ListItemText from "@mui/material/ListItemText";
383
- import Divider from "@mui/material/Divider";
383
+ import React3 from "react";
384
384
  import { Fragment, jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
385
385
  function List({ items, dense = false }) {
386
386
  return /* @__PURE__ */ jsx10(MuiList, { dense, children: items.map((item) => {
@@ -396,13 +396,13 @@ function List({ items, dense = false }) {
396
396
  }
397
397
 
398
398
  // libs/ui/src/components/Loader/Loader.tsx
399
+ import Backdrop from "@mui/material/Backdrop";
399
400
  import Box from "@mui/material/Box";
400
401
  import CircularProgress2 from "@mui/material/CircularProgress";
401
402
  import LinearProgress from "@mui/material/LinearProgress";
402
403
  import Skeleton from "@mui/material/Skeleton";
403
- import Backdrop from "@mui/material/Backdrop";
404
- import Typography from "@mui/material/Typography";
405
404
  import { styled as styled5 } from "@mui/material/styles";
405
+ import Typography from "@mui/material/Typography";
406
406
 
407
407
  // libs/ui/src/components/Loader/LoaderContext.tsx
408
408
  import { createContext, useContext, useMemo } from "react";
package/esm/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/ui",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "React components, bridge hooks and content renderers (built on MUI) for FrontMCP tool widgets in ChatGPT, Claude and other MCP Apps hosts",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://frontmcp.dev/reference/ui",
@@ -436,7 +436,7 @@
436
436
  }
437
437
  },
438
438
  "dependencies": {
439
- "@frontmcp/uipack": "1.11.1"
439
+ "@frontmcp/uipack": "1.11.3"
440
440
  },
441
441
  "devDependencies": {
442
442
  "@types/dompurify": "^3.0.0",
@@ -1,9 +1,9 @@
1
1
  // libs/ui/src/renderer/charts/index.ts
2
- import React, { useMemo as useMemo2 } from "react";
3
- import Box from "@mui/material/Box";
4
2
  import Alert from "@mui/material/Alert";
5
- import Typography from "@mui/material/Typography";
3
+ import Box from "@mui/material/Box";
6
4
  import { styled } from "@mui/material/styles";
5
+ import Typography from "@mui/material/Typography";
6
+ import React, { useMemo as useMemo2 } from "react";
7
7
 
8
8
  // libs/ui/src/renderer/common/lazy-import.ts
9
9
  var ESM_SH_BASE = "https://esm.sh/";
@@ -64,9 +64,26 @@ function createLazyImport(moduleId, importer) {
64
64
  };
65
65
  }
66
66
 
67
+ // libs/ui/src/renderer/common/use-lazy-module.ts
68
+ import { useEffect, useState } from "react";
69
+ function useLazyModule(lazy) {
70
+ const [, forceUpdate] = useState(0);
71
+ useEffect(() => {
72
+ if (lazy.getState().status === "loaded") {
73
+ forceUpdate((n) => n + 1);
74
+ return;
75
+ }
76
+ lazy.load().then(
77
+ () => forceUpdate((n) => n + 1),
78
+ () => forceUpdate((n) => n + 1)
79
+ );
80
+ }, [lazy]);
81
+ return lazy.get();
82
+ }
83
+
67
84
  // libs/ui/src/renderer/common/use-renderer-theme.ts
68
- import { useMemo } from "react";
69
85
  import { useTheme } from "@mui/material/styles";
86
+ import { useMemo } from "react";
70
87
  function extractThemeValues(theme) {
71
88
  const palette = theme.palette;
72
89
  return {
@@ -101,23 +118,6 @@ function useRendererTheme() {
101
118
  return useMemo(() => extractThemeValues(theme), [theme]);
102
119
  }
103
120
 
104
- // libs/ui/src/renderer/common/use-lazy-module.ts
105
- import { useState, useEffect } from "react";
106
- function useLazyModule(lazy) {
107
- const [, forceUpdate] = useState(0);
108
- useEffect(() => {
109
- if (lazy.getState().status === "loaded") {
110
- forceUpdate((n) => n + 1);
111
- return;
112
- }
113
- lazy.load().then(
114
- () => forceUpdate((n) => n + 1),
115
- () => forceUpdate((n) => n + 1)
116
- );
117
- }, [lazy]);
118
- return lazy.get();
119
- }
120
-
121
121
  // libs/ui/src/renderer/charts/index.ts
122
122
  var CHART_TYPE_RE = /"type"\s*:\s*"(?:bar|line|area|pie|scatter|radar|composed)"/;
123
123
  function isChart(content) {
@@ -1,6 +1,6 @@
1
1
  // libs/ui/src/renderer/common/use-renderer-theme.ts
2
- import { useMemo } from "react";
3
2
  import { useTheme } from "@mui/material/styles";
3
+ import { useMemo } from "react";
4
4
  function extractThemeValues(theme) {
5
5
  const palette = theme.palette;
6
6
  return {
@@ -107,7 +107,7 @@ function createLazyImport(moduleId, importer) {
107
107
  }
108
108
 
109
109
  // libs/ui/src/renderer/common/use-lazy-module.ts
110
- import { useState, useEffect } from "react";
110
+ import { useEffect, useState } from "react";
111
111
  function useLazyModule(lazy) {
112
112
  const [, forceUpdate] = useState(0);
113
113
  useEffect(() => {
@@ -1,16 +1,16 @@
1
1
  // libs/ui/src/renderer/csv/index.ts
2
- import React, { useState, useMemo, useCallback } from "react";
3
2
  import Box from "@mui/material/Box";
3
+ import { styled } from "@mui/material/styles";
4
4
  import MuiTable from "@mui/material/Table";
5
5
  import TableBody from "@mui/material/TableBody";
6
6
  import TableCell from "@mui/material/TableCell";
7
7
  import TableContainer from "@mui/material/TableContainer";
8
8
  import TableHead from "@mui/material/TableHead";
9
- import TableRow from "@mui/material/TableRow";
10
9
  import TablePagination from "@mui/material/TablePagination";
10
+ import TableRow from "@mui/material/TableRow";
11
11
  import TableSortLabel from "@mui/material/TableSortLabel";
12
12
  import TextField from "@mui/material/TextField";
13
- import { styled } from "@mui/material/styles";
13
+ import React, { useCallback, useMemo, useState } from "react";
14
14
  function detectDelimiter(content) {
15
15
  const firstLine = content.split("\n")[0];
16
16
  const commas = (firstLine.match(/,/g) ?? []).length;
@@ -1,9 +1,21 @@
1
1
  // libs/ui/src/renderer/flow/index.ts
2
- import React, { useEffect as useEffect2, useMemo as useMemo2 } from "react";
3
- import Box from "@mui/material/Box";
4
2
  import Alert from "@mui/material/Alert";
5
- import Typography from "@mui/material/Typography";
3
+ import Box from "@mui/material/Box";
6
4
  import { styled } from "@mui/material/styles";
5
+ import Typography from "@mui/material/Typography";
6
+ import React, { useEffect as useEffect2, useMemo as useMemo2 } from "react";
7
+
8
+ // libs/ui/src/renderer/common/inject-stylesheet.ts
9
+ function injectStylesheet(href, id) {
10
+ if (typeof document === "undefined") return;
11
+ if (document.getElementById(id)) return;
12
+ const link = document.createElement("link");
13
+ link.id = id;
14
+ link.rel = "stylesheet";
15
+ link.href = href;
16
+ link.crossOrigin = "anonymous";
17
+ document.head.appendChild(link);
18
+ }
7
19
 
8
20
  // libs/ui/src/renderer/common/lazy-import.ts
9
21
  var ESM_SH_BASE = "https://esm.sh/";
@@ -64,21 +76,26 @@ function createLazyImport(moduleId, importer) {
64
76
  };
65
77
  }
66
78
 
67
- // libs/ui/src/renderer/common/inject-stylesheet.ts
68
- function injectStylesheet(href, id) {
69
- if (typeof document === "undefined") return;
70
- if (document.getElementById(id)) return;
71
- const link = document.createElement("link");
72
- link.id = id;
73
- link.rel = "stylesheet";
74
- link.href = href;
75
- link.crossOrigin = "anonymous";
76
- document.head.appendChild(link);
79
+ // libs/ui/src/renderer/common/use-lazy-module.ts
80
+ import { useEffect, useState } from "react";
81
+ function useLazyModule(lazy) {
82
+ const [, forceUpdate] = useState(0);
83
+ useEffect(() => {
84
+ if (lazy.getState().status === "loaded") {
85
+ forceUpdate((n) => n + 1);
86
+ return;
87
+ }
88
+ lazy.load().then(
89
+ () => forceUpdate((n) => n + 1),
90
+ () => forceUpdate((n) => n + 1)
91
+ );
92
+ }, [lazy]);
93
+ return lazy.get();
77
94
  }
78
95
 
79
96
  // libs/ui/src/renderer/common/use-renderer-theme.ts
80
- import { useMemo } from "react";
81
97
  import { useTheme } from "@mui/material/styles";
98
+ import { useMemo } from "react";
82
99
  function extractThemeValues(theme) {
83
100
  const palette = theme.palette;
84
101
  return {
@@ -113,23 +130,6 @@ function useRendererTheme() {
113
130
  return useMemo(() => extractThemeValues(theme), [theme]);
114
131
  }
115
132
 
116
- // libs/ui/src/renderer/common/use-lazy-module.ts
117
- import { useState, useEffect } from "react";
118
- function useLazyModule(lazy) {
119
- const [, forceUpdate] = useState(0);
120
- useEffect(() => {
121
- if (lazy.getState().status === "loaded") {
122
- forceUpdate((n) => n + 1);
123
- return;
124
- }
125
- lazy.load().then(
126
- () => forceUpdate((n) => n + 1),
127
- () => forceUpdate((n) => n + 1)
128
- );
129
- }, [lazy]);
130
- return lazy.get();
131
- }
132
-
133
133
  // libs/ui/src/renderer/flow/index.ts
134
134
  var XYFLOW_CSS_URL = "https://esm.sh/@xyflow/react@12/dist/style.css";
135
135
  var XYFLOW_CSS_ID = "fmcp-xyflow-css";
@@ -1,7 +1,7 @@
1
1
  // libs/ui/src/renderer/html/index.ts
2
- import React, { useMemo, useState, useEffect } from "react";
3
2
  import Box from "@mui/material/Box";
4
3
  import { styled } from "@mui/material/styles";
4
+ import React, { useEffect, useMemo, useState } from "react";
5
5
 
6
6
  // libs/ui/src/renderer/common/lazy-import.ts
7
7
  var ESM_SH_BASE = "https://esm.sh/";
@@ -1,10 +1,10 @@
1
1
  // libs/ui/src/renderer/image/index.ts
2
- import React, { useState, useCallback, useEffect } from "react";
2
+ import Alert from "@mui/material/Alert";
3
3
  import Box from "@mui/material/Box";
4
4
  import Skeleton from "@mui/material/Skeleton";
5
- import Alert from "@mui/material/Alert";
6
- import Typography from "@mui/material/Typography";
7
5
  import { styled } from "@mui/material/styles";
6
+ import Typography from "@mui/material/Typography";
7
+ import React, { useCallback, useEffect, useState } from "react";
8
8
  var IMAGE_DATA_URI = /^data:image\/(?:png|jpeg|jpg|gif|webp|svg\+xml|avif)[;,]/;
9
9
  var IMAGE_URL = /^https?:\/\/[^?#\s]+\.(?:png|jpe?g|gif|webp|svg|avif|ico)(?:\?[^#\s]*)?$/i;
10
10
  var IMAGE_SERVICE_URL = /^https?:\/\/(?:picsum\.photos|images\.unsplash\.com|i\.imgur\.com|placekitten\.com|via\.placeholder\.com)\//i;