@edifice.io/react 2.2.5 → 2.2.6
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/components/Flex/Flex.d.ts +12 -0
- package/dist/components/Flex/Flex.js +19 -0
- package/dist/components/Flex/index.d.ts +2 -0
- package/dist/components/Table/components/Table.d.ts +2 -0
- package/dist/components/Table/components/Table.js +8 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/editor.js +2 -0
- package/dist/icons.js +266 -260
- package/dist/index.js +128 -126
- package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.d.ts +7 -0
- package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.js +33 -0
- package/dist/modules/editor/components/Editor/Editor.d.ts +1 -0
- package/dist/modules/editor/components/Editor/Editor.js +18 -6
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.d.ts +9 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +79 -0
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +4 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +15 -3
- package/dist/modules/editor/hooks/index.d.ts +1 -0
- package/dist/modules/editor/hooks/useCantooEditor.d.ts +17 -0
- package/dist/modules/editor/hooks/useCantooEditor.js +89 -0
- package/dist/modules/icons/components/IconCantoo.d.ts +7 -0
- package/dist/modules/icons/components/IconCantoo.js +23 -0
- package/dist/modules/icons/components/IconMicOff.d.ts +7 -0
- package/dist/modules/icons/components/IconMicOff.js +12 -0
- package/dist/modules/icons/components/IconTextToSpeechOff.d.ts +7 -0
- package/dist/modules/icons/components/IconTextToSpeechOff.js +12 -0
- package/dist/modules/icons/components/index.d.ts +3 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +6 -5
- package/package.json +6 -6
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
+
as?: React.ElementType;
|
|
4
|
+
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | 'fill';
|
|
5
|
+
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
6
|
+
justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
|
|
7
|
+
gap?: string;
|
|
8
|
+
wrap?: 'wrap' | 'nowrap' | 'reverse';
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Flex: React.FC<FlexProps>;
|
|
12
|
+
export default Flex;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
const Flex = ({
|
|
4
|
+
as: Component = "div",
|
|
5
|
+
direction,
|
|
6
|
+
align,
|
|
7
|
+
justify,
|
|
8
|
+
gap,
|
|
9
|
+
wrap = "wrap",
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
...restProps
|
|
13
|
+
}) => {
|
|
14
|
+
const classes = clsx("d-flex", direction && (direction === "fill" ? "flex-fill" : `flex-${direction}`), align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap}`, className);
|
|
15
|
+
return /* @__PURE__ */ jsx(Component, { className: classes, ...restProps, children });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
Flex as default
|
|
19
|
+
};
|
|
@@ -2,9 +2,11 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export type TableRef = HTMLTableElement;
|
|
3
3
|
export interface TableProps {
|
|
4
4
|
children?: Array<React.ReactElement<HTMLTableSectionElement>> | any;
|
|
5
|
+
maxHeight?: string;
|
|
5
6
|
}
|
|
6
7
|
declare const Table: import('react').ForwardRefExoticComponent<{
|
|
7
8
|
children: ReactNode;
|
|
9
|
+
maxHeight?: string;
|
|
8
10
|
} & import('react').RefAttributes<HTMLTableElement>> & {
|
|
9
11
|
Thead: {
|
|
10
12
|
(props: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,8 +6,14 @@ import { TableTh } from "./TableTh.js";
|
|
|
6
6
|
import { TableThead } from "./TableThead.js";
|
|
7
7
|
import { TableTr } from "./TableTr.js";
|
|
8
8
|
const Root = /* @__PURE__ */ forwardRef(({
|
|
9
|
-
children
|
|
10
|
-
|
|
9
|
+
children,
|
|
10
|
+
maxHeight
|
|
11
|
+
}, ref) => /* @__PURE__ */ jsx("div", { className: "table-responsive", style: maxHeight ? {
|
|
12
|
+
maxHeight,
|
|
13
|
+
overflowY: "auto"
|
|
14
|
+
} : {}, children: /* @__PURE__ */ jsx("table", { ref, className: "table align-middle mb-0", style: {
|
|
15
|
+
overflow: maxHeight ? "visible" : "hidden"
|
|
16
|
+
}, children }) })), Table = /* @__PURE__ */ Object.assign(Root, {
|
|
11
17
|
Thead: TableThead,
|
|
12
18
|
Th: TableTh,
|
|
13
19
|
Tbody: TableTbody,
|
package/dist/editor.js
CHANGED
|
@@ -28,6 +28,7 @@ import { useResizeMedia } from "./modules/editor/hooks/useResizeMedia.js";
|
|
|
28
28
|
import { useSpeechRecognition } from "./modules/editor/hooks/useSpeechRecognition.js";
|
|
29
29
|
import { useSpeechSynthetisis } from "./modules/editor/hooks/useSpeechSynthetisis.js";
|
|
30
30
|
import { useTipTapEditor } from "./modules/editor/hooks/useTipTapEditor.js";
|
|
31
|
+
import { useCantooEditor } from "./modules/editor/hooks/useCantooEditor.js";
|
|
31
32
|
export {
|
|
32
33
|
default6 as AttachmentNodeView,
|
|
33
34
|
default12 as AttachmentRenderer,
|
|
@@ -50,6 +51,7 @@ export {
|
|
|
50
51
|
default16 as TableToolbar,
|
|
51
52
|
default9 as VideoNodeView,
|
|
52
53
|
useActionOptions,
|
|
54
|
+
useCantooEditor,
|
|
53
55
|
useCommentEditor,
|
|
54
56
|
useEditor,
|
|
55
57
|
useEditorContext,
|