@codezee/sixtify-brahma 0.2.96 → 0.2.97
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/package.json +1 -1
- package/packages/shared-components/dist/RichTextEditor/RichTextEditor.d.ts +17 -7
- package/packages/shared-components/dist/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/packages/shared-components/dist/RichTextEditor/RichTextEditor.js +2 -2
- package/packages/shared-components/dist/Tab/Tabs.d.ts.map +1 -1
- package/packages/shared-components/dist/Tab/Tabs.js +3 -1
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import type { EditorOptions } from "@tiptap/core";
|
|
1
2
|
import { type RichTextEditorRef } from "mui-tiptap";
|
|
2
|
-
|
|
3
|
-
isEditable
|
|
4
|
-
showMenuBar
|
|
5
|
-
htmlContent
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export declare const RichTextEditor: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
isEditable?: boolean;
|
|
5
|
+
showMenuBar?: boolean;
|
|
6
|
+
htmlContent?: string;
|
|
7
|
+
} & Omit<Partial<Partial<EditorOptions> & {
|
|
8
|
+
immediatelyRender?: boolean;
|
|
9
|
+
shouldRerenderOnTransaction?: boolean;
|
|
10
|
+
}> & {
|
|
11
|
+
extensions: NonNullable<import("@tiptap/core").Extensions | undefined>;
|
|
12
|
+
renderControls?: (editor: import("@tiptap/core").Editor | null) => React.ReactNode;
|
|
13
|
+
RichTextFieldProps?: Omit<import("mui-tiptap").RichTextFieldProps, "controls">;
|
|
14
|
+
sx?: import("mui-tiptap").RichTextFieldProps["sx"];
|
|
15
|
+
children?: (editor: import("@tiptap/core").Editor | null) => React.ReactNode;
|
|
16
|
+
editorDependencies?: import("react").DependencyList;
|
|
17
|
+
className?: string;
|
|
18
|
+
} & import("react").RefAttributes<RichTextEditorRef>, "content" | "ref" | "editable" | "extensions"> & import("react").RefAttributes<RichTextEditorRef>>;
|
|
9
19
|
//# sourceMappingURL=RichTextEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAML,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAsBpB,eAAO,MAAM,cAAc;iBALZ,OAAO;kBACN,OAAO;kBACP,MAAM;;;;;;;;;;;;wJAoIrB,CAAC"}
|
|
@@ -12,7 +12,7 @@ const fileListToImageFiles = (fileList) => {
|
|
|
12
12
|
return mimeType.startsWith("image/");
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
exports.RichTextEditor = (0, react_1.forwardRef)(({ isEditable, showMenuBar, htmlContent }, ref) => {
|
|
15
|
+
exports.RichTextEditor = (0, react_1.forwardRef)(({ isEditable = false, showMenuBar = false, htmlContent = "", ...rest }, ref) => {
|
|
16
16
|
const extensions = (0, useExtensions_1.useExtensions)({
|
|
17
17
|
placeholder: "Add your own content here...",
|
|
18
18
|
});
|
|
@@ -83,6 +83,6 @@ exports.RichTextEditor = (0, react_1.forwardRef)(({ isEditable, showMenuBar, htm
|
|
|
83
83
|
padding: "10mm 10mm",
|
|
84
84
|
boxShadow: "0 0 10px rgba(0,0,0,0.15)",
|
|
85
85
|
},
|
|
86
|
-
}, children: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_tiptap_1.LinkBubbleMenu, {}), (0, jsx_runtime_1.jsx)(mui_tiptap_1.TableBubbleMenu, {})] })) }));
|
|
86
|
+
}, ...rest, children: () => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_tiptap_1.LinkBubbleMenu, {}), (0, jsx_runtime_1.jsx)(mui_tiptap_1.TableBubbleMenu, {})] })) }));
|
|
87
87
|
});
|
|
88
88
|
exports.RichTextEditor.displayName = "RichTextEditor";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tab/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,0BAA0B,SAAS,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tab/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,0BAA0B,SAAS,4CA0CvD,CAAC"}
|
|
@@ -18,6 +18,8 @@ const Tabs = ({ tabs, value, loading }) => {
|
|
|
18
18
|
}
|
|
19
19
|
return ((0, jsx_runtime_1.jsx)(material_1.Stack, { children: (0, jsx_runtime_1.jsx)(material_1.Tabs, { value: value, children: tabs
|
|
20
20
|
.filter(({ isView }) => isView !== false)
|
|
21
|
-
.map(({ iconPosition = "end", toolTipLabel = "", icon, ...rest }) => ((0, jsx_runtime_1.jsx)(Tab_1.default
|
|
21
|
+
.map(({ iconPosition = "end", toolTipLabel = "", icon, ...rest }, index) => ((0, jsx_runtime_1.jsx)(Tab_1.default
|
|
22
|
+
// eslint-disable-next-line sonarjs/no-array-index-key
|
|
23
|
+
, { icon: toolTipLabel ? ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: toolTipLabel, placement: "bottom", children: icon })) : (icon), disabled: loading, iconPosition: iconPosition, ...rest }, index))) }) }));
|
|
22
24
|
};
|
|
23
25
|
exports.Tabs = Tabs;
|