@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.
Files changed (29) hide show
  1. package/dist/components/Flex/Flex.d.ts +12 -0
  2. package/dist/components/Flex/Flex.js +19 -0
  3. package/dist/components/Flex/index.d.ts +2 -0
  4. package/dist/components/Table/components/Table.d.ts +2 -0
  5. package/dist/components/Table/components/Table.js +8 -2
  6. package/dist/components/index.d.ts +1 -0
  7. package/dist/editor.js +2 -0
  8. package/dist/icons.js +266 -260
  9. package/dist/index.js +128 -126
  10. package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.d.ts +7 -0
  11. package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.js +33 -0
  12. package/dist/modules/editor/components/Editor/Editor.d.ts +1 -0
  13. package/dist/modules/editor/components/Editor/Editor.js +18 -6
  14. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.d.ts +9 -0
  15. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +79 -0
  16. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.d.ts +4 -1
  17. package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +15 -3
  18. package/dist/modules/editor/hooks/index.d.ts +1 -0
  19. package/dist/modules/editor/hooks/useCantooEditor.d.ts +17 -0
  20. package/dist/modules/editor/hooks/useCantooEditor.js +89 -0
  21. package/dist/modules/icons/components/IconCantoo.d.ts +7 -0
  22. package/dist/modules/icons/components/IconCantoo.js +23 -0
  23. package/dist/modules/icons/components/IconMicOff.d.ts +7 -0
  24. package/dist/modules/icons/components/IconMicOff.js +12 -0
  25. package/dist/modules/icons/components/IconTextToSpeechOff.d.ts +7 -0
  26. package/dist/modules/icons/components/IconTextToSpeechOff.js +12 -0
  27. package/dist/modules/icons/components/index.d.ts +3 -0
  28. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +6 -5
  29. 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
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Flex } from './Flex';
2
+ export * from './Flex';
@@ -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
- }, ref) => /* @__PURE__ */ jsx("div", { className: "table-responsive", children: /* @__PURE__ */ jsx("table", { ref, className: "table align-middle mb-0", children }) })), Table = /* @__PURE__ */ Object.assign(Root, {
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,
@@ -15,6 +15,7 @@ export * from './Combobox';
15
15
  export * from './Dropdown';
16
16
  export * from './Dropzone';
17
17
  export * from './EmptyScreen';
18
+ export * from './Flex';
18
19
  export * from './Form';
19
20
  export * from './Grid';
20
21
  export * from './Heading';
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,