@devtable/dashboard 10.55.0 → 10.55.1
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,7 +1,9 @@
|
|
|
1
1
|
import { RichTextEditorProps } from '@mantine/tiptap';
|
|
2
|
+
import { Sx } from '@mantine/core';
|
|
2
3
|
interface IReadonlyRichText {
|
|
3
4
|
value: string;
|
|
4
5
|
styles?: RichTextEditorProps['styles'];
|
|
6
|
+
sx?: Sx;
|
|
5
7
|
}
|
|
6
|
-
export declare const ReadonlyRichText: ({ value, styles }: IReadonlyRichText) => import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export declare const ReadonlyRichText: ({ value, styles, sx }: IReadonlyRichText) => import('./react/jsx-runtime').JSX.Element;
|
|
7
9
|
export {};
|
package/dist/dashboard.es.js
CHANGED
|
@@ -1317,7 +1317,7 @@ class Mi {
|
|
|
1317
1317
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
const Xl = "10.55.
|
|
1320
|
+
const Xl = "10.55.1", nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1321
1321
|
__proto__: null,
|
|
1322
1322
|
version: Xl
|
|
1323
1323
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9022,9 +9022,10 @@ const Vc = At.create({
|
|
|
9022
9022
|
} }) });
|
|
9023
9023
|
}, fs = ({
|
|
9024
9024
|
value: e,
|
|
9025
|
-
styles: t = {}
|
|
9025
|
+
styles: t = {},
|
|
9026
|
+
sx: n = {}
|
|
9026
9027
|
}) => {
|
|
9027
|
-
const
|
|
9028
|
+
const s = Ol({
|
|
9028
9029
|
extensions: [$l, Fl, Sl, Dl, Il, kl, Ll.configure({
|
|
9029
9030
|
resizable: !1,
|
|
9030
9031
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
@@ -9040,12 +9041,12 @@ const Vc = At.create({
|
|
|
9040
9041
|
editable: !1
|
|
9041
9042
|
});
|
|
9042
9043
|
O(() => {
|
|
9043
|
-
|
|
9044
|
-
}, [e,
|
|
9045
|
-
const
|
|
9044
|
+
s == null || s.commands.setContent(e);
|
|
9045
|
+
}, [e, s]);
|
|
9046
|
+
const i = T(() => _.defaultsDeep({}, {
|
|
9046
9047
|
content: Qi
|
|
9047
9048
|
}, t), [t]);
|
|
9048
|
-
return /* @__PURE__ */ r.jsx(X, { editor:
|
|
9049
|
+
return /* @__PURE__ */ r.jsx(X, { editor: s, styles: i, sx: n, children: /* @__PURE__ */ r.jsx(X.Content, {}) });
|
|
9049
9050
|
};
|
|
9050
9051
|
function Jy() {
|
|
9051
9052
|
const [e, {
|
|
@@ -25479,13 +25480,17 @@ const Xd = k(() => {
|
|
|
25479
25480
|
panel: n
|
|
25480
25481
|
} = kn();
|
|
25481
25482
|
return XI(n.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
25482
|
-
/* @__PURE__ */ r.jsx(me, { opened: e, onClose: () => t(!1), title: n.name, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(fs, { value: n.description, styles: {
|
|
25483
|
+
/* @__PURE__ */ r.jsx(me, { opened: e, onClose: () => t(!1), title: n.title.show ? n.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(fs, { value: n.description, styles: {
|
|
25483
25484
|
root: {
|
|
25484
25485
|
border: "none"
|
|
25485
25486
|
},
|
|
25486
25487
|
content: {
|
|
25487
25488
|
padding: 0
|
|
25488
25489
|
}
|
|
25490
|
+
}, sx: {
|
|
25491
|
+
".mantine-RichTextEditor-content .ProseMirror": {
|
|
25492
|
+
padding: "0 !important"
|
|
25493
|
+
}
|
|
25489
25494
|
} }) }),
|
|
25490
25495
|
/* @__PURE__ */ r.jsx(fe, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => t((s) => !s), sx: {
|
|
25491
25496
|
verticalAlign: "baseline",
|