@edifice.io/react 2.2.11-develop-pedago.20250708131559 → 2.2.11-develop.20250703113543

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 (32) hide show
  1. package/dist/components/Dropdown/Dropdown.d.ts +4 -10
  2. package/dist/components/Dropdown/Dropdown.js +8 -24
  3. package/dist/components/Flex/Flex.d.ts +0 -1
  4. package/dist/components/Flex/Flex.js +1 -2
  5. package/dist/components/Layout/Layout.d.ts +1 -5
  6. package/dist/components/Layout/Layout.js +2 -5
  7. package/dist/components/Tabs/components/Tabs.d.ts +3 -23
  8. package/dist/components/Tabs/components/Tabs.js +3 -8
  9. package/dist/components/Tabs/components/TabsList.d.ts +1 -15
  10. package/dist/components/Tabs/components/TabsList.js +3 -13
  11. package/dist/components/Tabs/components/TabsPanel.d.ts +1 -5
  12. package/dist/components/Tabs/components/TabsPanel.js +3 -7
  13. package/dist/hooks/useDropdown/useDropdown.d.ts +0 -2
  14. package/dist/hooks/useDropdown/useDropdown.js +0 -2
  15. package/dist/icons.js +178 -182
  16. package/dist/index.js +10 -12
  17. package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +1 -1
  18. package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +1 -1
  19. package/dist/modules/icons/components/index.d.ts +0 -2
  20. package/dist/modules/multimedia/FileCard/FileCard.d.ts +2 -13
  21. package/dist/modules/multimedia/FileCard/FileCard.js +5 -15
  22. package/dist/modules/multimedia/FileCard/FileIcon.d.ts +1 -5
  23. package/dist/modules/multimedia/FileCard/FileIcon.js +2 -2
  24. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +1 -3
  25. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -7
  26. package/dist/modules/multimedia/index.d.ts +0 -1
  27. package/dist/multimedia.js +10 -12
  28. package/package.json +6 -6
  29. package/dist/modules/icons/components/IconMegaphone.d.ts +0 -7
  30. package/dist/modules/icons/components/IconMegaphone.js +0 -12
  31. package/dist/modules/icons/components/IconNotes.d.ts +0 -7
  32. package/dist/modules/icons/components/IconNotes.js +0 -13
@@ -1,15 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Placement } from '@floating-ui/react';
3
3
  import { default as DropdownCheckboxItem } from './DropdownCheckboxItem';
4
- export interface DropdownApi {
5
- visible: boolean;
6
- isFocused: string | null;
7
- menuRef: React.MutableRefObject<HTMLUListElement | null>;
8
- triggerRef: React.MutableRefObject<HTMLButtonElement | null>;
9
- setVisible: (visible: boolean) => void;
10
- openDropdown: () => void;
11
- closeDropdown: () => void;
12
- }
13
4
  export interface DropdownProps {
14
5
  /** Children Props */
15
6
  children: ReactNode | ((...props: any) => ReactNode);
@@ -77,7 +68,10 @@ export type DropdownMenuOptions = {
77
68
  */
78
69
  type: 'divider';
79
70
  };
80
- declare const Dropdown: import('react').ForwardRefExoticComponent<DropdownProps & import('react').RefAttributes<DropdownApi>> & {
71
+ declare const Dropdown: {
72
+ ({ children, block, overflow, noWrap, placement, extraTriggerKeyDownHandler, onToggle, isTriggerHovered, focusOnVisible, openOnSpace, focusOnMouseEnter, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
73
+ displayName: string;
74
+ } & {
81
75
  Trigger: import('react').ForwardRefExoticComponent<Omit<import('./DropdownTrigger').DropdownTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
82
76
  Menu: import('react').ForwardRefExoticComponent<Omit<import('./DropdownMenu').DropdownMenuProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
83
77
  Item: {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { forwardRef, useImperativeHandle, useMemo, useEffect } from "react";
2
+ import { useMemo, useEffect } from "react";
3
3
  import clsx from "clsx";
4
4
  import useDropdown from "../../hooks/useDropdown/useDropdown.js";
5
5
  import DropdownCheckboxItem from "./DropdownCheckboxItem.js";
@@ -11,7 +11,7 @@ import DropdownRadioItem from "./DropdownRadioItem.js";
11
11
  import DropdownSeparator from "./DropdownSeparator.js";
12
12
  import DropdownTrigger from "./DropdownTrigger.js";
13
13
  import useClickOutside from "../../hooks/useClickOutside/useClickOutside.js";
14
- const Root = /* @__PURE__ */ forwardRef(({
14
+ const Root = ({
15
15
  children,
16
16
  block,
17
17
  overflow = !0,
@@ -23,7 +23,7 @@ const Root = /* @__PURE__ */ forwardRef(({
23
23
  focusOnVisible = !0,
24
24
  openOnSpace = !0,
25
25
  focusOnMouseEnter = !0
26
- }, refDropdown) => {
26
+ }) => {
27
27
  const {
28
28
  visible,
29
29
  isFocused,
@@ -31,22 +31,8 @@ const Root = /* @__PURE__ */ forwardRef(({
31
31
  menuProps,
32
32
  itemProps,
33
33
  itemRefs,
34
- setVisible,
35
- menuRef,
36
- triggerRef,
37
- closeDropdown,
38
- openDropdown
39
- } = useDropdown(placement, extraTriggerKeyDownHandler, isTriggerHovered, focusOnVisible, openOnSpace, focusOnMouseEnter);
40
- useImperativeHandle(refDropdown, () => ({
41
- visible,
42
- setVisible,
43
- isFocused,
44
- menuRef,
45
- triggerRef,
46
- closeDropdown,
47
- openDropdown
48
- }));
49
- const ref = useClickOutside(() => {
34
+ setVisible
35
+ } = useDropdown(placement, extraTriggerKeyDownHandler, isTriggerHovered, focusOnVisible, openOnSpace, focusOnMouseEnter), ref = useClickOutside(() => {
50
36
  setVisible(!1);
51
37
  }), value = useMemo(() => ({
52
38
  visible,
@@ -56,10 +42,8 @@ const Root = /* @__PURE__ */ forwardRef(({
56
42
  itemProps,
57
43
  itemRefs,
58
44
  block,
59
- setVisible,
60
- openDropdown,
61
- closeDropdown
62
- }), [visible, isFocused, triggerProps, menuProps, itemProps, itemRefs, block, setVisible, openDropdown, closeDropdown]), dropdown = clsx("dropdown", {
45
+ setVisible
46
+ }), [visible, isFocused, triggerProps, menuProps, itemProps, itemRefs, block, setVisible]), dropdown = clsx("dropdown", {
63
47
  "w-100": block,
64
48
  "dropdown-nowrap": noWrap,
65
49
  overflow
@@ -67,7 +51,7 @@ const Root = /* @__PURE__ */ forwardRef(({
67
51
  return useEffect(() => {
68
52
  onToggle == null || onToggle(visible);
69
53
  }, [visible]), /* @__PURE__ */ jsx(DropdownContext.Provider, { value, children: /* @__PURE__ */ jsx("div", { ref, className: dropdown, children: typeof children == "function" ? children(triggerProps, itemRefs, setVisible) : children }) });
70
- }), Dropdown = /* @__PURE__ */ Object.assign(Root, {
54
+ }, Dropdown = /* @__PURE__ */ Object.assign(Root, {
71
55
  Trigger: DropdownTrigger,
72
56
  Menu: DropdownMenu,
73
57
  Item: DropdownItem,
@@ -5,7 +5,6 @@ interface FlexProps extends React.HTMLAttributes<HTMLElement> {
5
5
  align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
6
6
  justify?: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly';
7
7
  gap?: string;
8
- fill?: boolean;
9
8
  wrap?: 'wrap' | 'nowrap' | 'reverse';
10
9
  className?: string;
11
10
  }
@@ -6,13 +6,12 @@ const Flex = ({
6
6
  align,
7
7
  justify,
8
8
  gap,
9
- fill,
10
9
  wrap = "wrap",
11
10
  className,
12
11
  children,
13
12
  ...restProps
14
13
  }) => {
15
- const classes = clsx("d-flex", direction && `flex-${direction}`, fill && "flex-fill", align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap}`, className);
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);
16
15
  return /* @__PURE__ */ jsx(Component, { className: classes, ...restProps, children });
17
16
  };
18
17
  export {
@@ -4,13 +4,9 @@ export interface LayoutProps extends ComponentPropsWithoutRef<any> {
4
4
  children: ReactNode;
5
5
  /** Full screen mode without header component */
6
6
  headless?: boolean;
7
- /** Control white background - defaults to true */
8
- whiteBg?: boolean;
9
- /** Additional class name */
10
- className?: string;
11
7
  }
12
8
  export declare const Layout: {
13
- ({ children, headless, whiteBg, className, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
9
+ ({ children, headless, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
14
10
  displayName: string;
15
11
  };
16
12
  export default Layout;
@@ -12,8 +12,6 @@ import Button from "../Button/Button.js";
12
12
  const Layout = ({
13
13
  children,
14
14
  headless = !1,
15
- whiteBg = !0,
16
- className,
17
15
  ...restProps
18
16
  }) => {
19
17
  const {
@@ -26,12 +24,11 @@ const Layout = ({
26
24
  handleCloseCookiesConsent
27
25
  } = useCookiesConsent();
28
26
  useZendeskGuide(), useCantoo();
29
- const classes = clsx("d-flex flex-column", {
30
- "bg-white": whiteBg,
27
+ const classes = clsx("d-flex flex-column bg-white", {
31
28
  "container-fluid": !headless,
32
29
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
33
30
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
34
- }, className), renderHeader = headless ? null : /* @__PURE__ */ jsx(Header, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsx(Alert, { type: "info", className: "m-12 rgpd", isConfirm: !0, position: "bottom-right", button: /* @__PURE__ */ jsx(Button, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsx(Toaster, { containerClassName: "toaster-container", toastOptions: {
31
+ }), renderHeader = headless ? null : /* @__PURE__ */ jsx(Header, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderCookies = showCookiesConsent && /* @__PURE__ */ jsx(Alert, { type: "info", className: "m-12 rgpd", isConfirm: !0, position: "bottom-right", button: /* @__PURE__ */ jsx(Button, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsx(Toaster, { containerClassName: "toaster-container", toastOptions: {
35
32
  position: "top-right"
36
33
  } });
37
34
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -17,32 +17,12 @@ export interface TabsProps {
17
17
  * Children Props
18
18
  */
19
19
  children?: (...props: any) => ReactNode;
20
- /**
21
- * Whether tabs should take full available width
22
- */
23
- fullWidth?: boolean;
24
- /**
25
- * Whether tabs should take full available height
26
- */
27
- fullHeight?: boolean;
28
- /**
29
- * Whether the tab list should be sticky
30
- */
31
- isSticky?: boolean;
32
- /**
33
- * The top offset for the sticky tab list
34
- */
35
- stickyTop?: number;
36
- /**
37
- * Additional class names for the Tabs component
38
- */
39
- className?: string;
40
20
  }
41
21
  /**
42
22
  * Tab Content displayed one at a time when a Tab Item is selected
43
23
  */
44
24
  export declare const Tabs: {
45
- ({ defaultId, items, fullWidth, fullHeight, onChange, children, isSticky, stickyTop, className, }: TabsProps): import("react/jsx-runtime").JSX.Element;
25
+ ({ defaultId, items, onChange, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
46
26
  Item: {
47
27
  ({ icon, badge, label, id, order, }: TabsItemProps & {
48
28
  order: number;
@@ -50,11 +30,11 @@ export declare const Tabs: {
50
30
  displayName: string;
51
31
  };
52
32
  Panel: {
53
- ({ children, currentItem, fullHeight }: import('./TabsPanel').TabsPanelProps): import("react/jsx-runtime").JSX.Element;
33
+ ({ children, currentItem }: import('./TabsPanel').TabsPanelProps): import("react/jsx-runtime").JSX.Element;
54
34
  displayName: string;
55
35
  };
56
36
  List: {
57
- (props: import('./TabsList').TabsListProps): import("react/jsx-runtime").JSX.Element;
37
+ (props: import('react').ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
58
38
  displayName: string;
59
39
  };
60
40
  displayName: string;
@@ -8,13 +8,8 @@ import TabsPanel from "./TabsPanel.js";
8
8
  const Tabs = ({
9
9
  defaultId,
10
10
  items,
11
- fullWidth = !1,
12
- fullHeight = !1,
13
11
  onChange,
14
- children,
15
- isSticky = !1,
16
- stickyTop = 0,
17
- className
12
+ children
18
13
  }) => {
19
14
  const {
20
15
  activeTab,
@@ -37,8 +32,8 @@ const Tabs = ({
37
32
  onKeyDown
38
33
  }), [activeTab, items, onKeyDown, setSelectedTab, tabUnderlineLeft, tabUnderlineWidth, tabsRef]), currentItem = items.find((item) => item.id === activeTab);
39
34
  return /* @__PURE__ */ jsx(TabsContext.Provider, { value, children: typeof children == "function" ? children(currentItem) : /* @__PURE__ */ jsxs(Fragment, { children: [
40
- /* @__PURE__ */ jsx(Tabs.List, { fullWidth, isSticky, stickyTop, className }),
41
- /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, fullHeight, children: currentItem == null ? void 0 : currentItem.content })
35
+ /* @__PURE__ */ jsx(Tabs.List, {}),
36
+ /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, children: currentItem == null ? void 0 : currentItem.content })
42
37
  ] }) });
43
38
  };
44
39
  Tabs.Item = TabsItem;
@@ -1,20 +1,6 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- export interface TabsListProps extends ComponentPropsWithoutRef<'div'> {
3
- /**
4
- * Whether tabs should take full available width
5
- */
6
- fullWidth?: boolean;
7
- /**
8
- * Whether the tab list should be sticky
9
- */
10
- isSticky?: boolean;
11
- /**
12
- * The top offset for the sticky tab list
13
- */
14
- stickyTop?: number;
15
- }
16
2
  declare const TabsList: {
17
- (props: TabsListProps): import("react/jsx-runtime").JSX.Element;
3
+ (props: ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
18
4
  displayName: string;
19
5
  };
20
6
  export default TabsList;
@@ -9,20 +9,10 @@ const TabsList = (props) => {
9
9
  tabUnderlineWidth
10
10
  } = useTabsContext(), {
11
11
  className,
12
- fullWidth,
13
- isSticky,
14
- stickyTop,
15
12
  ...restProps
16
- } = props, ulClasses = clsx("nav nav-tabs flex-nowrap", {
17
- "w-100": fullWidth
18
- }), tabslist = clsx(" flex-shrink-0 overflow-x-auto", {
19
- "position-sticky z-1": isSticky,
20
- "position-relative": !isSticky
21
- }, className);
22
- return /* @__PURE__ */ jsxs("div", { className: tabslist, ...restProps, style: isSticky ? {
23
- top: stickyTop
24
- } : void 0, children: [
25
- /* @__PURE__ */ jsx("ul", { className: ulClasses, role: "tablist", children: items.map((item, order) => /* @__PURE__ */ jsx(Tabs.Item, { order, ...item }, item.id)) }),
13
+ } = props, tabslist = clsx("position-relative flex-shrink-0 overflow-x-auto", className);
14
+ return /* @__PURE__ */ jsxs("div", { className: tabslist, ...restProps, children: [
15
+ /* @__PURE__ */ jsx("ul", { className: "nav nav-tabs flex-nowrap", role: "tablist", children: items.map((item, order) => /* @__PURE__ */ jsx(Tabs.Item, { order, ...item }, item.id)) }),
26
16
  /* @__PURE__ */ jsx("span", { className: "nav-slide", style: {
27
17
  left: tabUnderlineLeft,
28
18
  width: tabUnderlineWidth
@@ -9,13 +9,9 @@ export interface TabsPanelProps {
9
9
  * Current Item
10
10
  */
11
11
  currentItem: TabsItemProps | undefined;
12
- /**
13
- * Whether tabs should take full available height
14
- */
15
- fullHeight?: boolean;
16
12
  }
17
13
  declare const TabsPanel: {
18
- ({ children, currentItem, fullHeight }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
14
+ ({ children, currentItem }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
19
15
  displayName: string;
20
16
  };
21
17
  export default TabsPanel;
@@ -1,17 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useTabsContext } from "../context/TabsContext.js";
3
- import clsx from "clsx";
4
3
  const TabsPanel = ({
5
4
  children,
6
- currentItem,
7
- fullHeight
5
+ currentItem
8
6
  }) => {
9
7
  const {
10
8
  activeTab
11
- } = useTabsContext(), contentClasses = clsx("tab-content d-flex flex-fill w-100", {
12
- "position-relative h-100": fullHeight
13
- });
14
- return /* @__PURE__ */ jsx("div", { className: contentClasses, children: /* @__PURE__ */ jsx("div", { className: `tab-pane flex-fill w-100 fade ${activeTab === (currentItem == null ? void 0 : currentItem.id) ? "show active" : ""}`, id: `tabpanel-${currentItem == null ? void 0 : currentItem.id}`, role: "tabpanel", "aria-labelledby": `tab-${currentItem == null ? void 0 : currentItem.id}`, tabIndex: 0, children }) });
9
+ } = useTabsContext();
10
+ return /* @__PURE__ */ jsx("div", { className: "tab-content d-flex flex-fill w-100", children: /* @__PURE__ */ jsx("div", { className: `tab-pane flex-fill w-100 fade ${activeTab === (currentItem == null ? void 0 : currentItem.id) ? "show active" : ""}`, id: `tabpanel-${currentItem == null ? void 0 : currentItem.id}`, role: "tabpanel", "aria-labelledby": `tab-${currentItem == null ? void 0 : currentItem.id}`, tabIndex: 0, children }) });
15
11
  };
16
12
  export {
17
13
  TabsPanel as default
@@ -28,8 +28,6 @@ export interface UseDropdownProps {
28
28
  itemProps: Record<string, any>;
29
29
  setVisible: Dispatch<SetStateAction<boolean>>;
30
30
  openOnSpace?: boolean;
31
- openDropdown: () => void;
32
- closeDropdown: () => void;
33
31
  }
34
32
  declare const useDropdown: (placement: Placement | undefined, extraTriggerKeyDownHandler?: (event: React.KeyboardEvent<HTMLButtonElement>) => void, isTriggerHovered?: boolean, focusOnVisible?: boolean, openOnSpace?: boolean, focusOnMouseEnter?: boolean) => UseDropdownProps;
35
33
  export default useDropdown;
@@ -159,8 +159,6 @@ const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !
159
159
  onMenuItemClick: closeDropdown,
160
160
  onMenuItemKeyDown
161
161
  },
162
- openDropdown,
163
- closeDropdown,
164
162
  setVisible
165
163
  };
166
164
  };
package/dist/icons.js CHANGED
@@ -74,97 +74,95 @@ import { default as default74 } from "./modules/icons/components/IconLoader.js";
74
74
  import { default as default75 } from "./modules/icons/components/IconLock.js";
75
75
  import { default as default76 } from "./modules/icons/components/IconMailRecall.js";
76
76
  import { default as default77 } from "./modules/icons/components/IconMail.js";
77
- import { default as default78 } from "./modules/icons/components/IconMegaphone.js";
78
- import { default as default79 } from "./modules/icons/components/IconMergeCells.js";
79
- import { default as default80 } from "./modules/icons/components/IconMessageInfo.js";
80
- import { default as default81 } from "./modules/icons/components/IconMicOff.js";
81
- import { default as default82 } from "./modules/icons/components/IconMic.js";
82
- import { default as default83 } from "./modules/icons/components/IconMinus.js";
83
- import { default as default84 } from "./modules/icons/components/IconMove.js";
84
- import { default as default85 } from "./modules/icons/components/IconNoColors.js";
85
- import { default as default86 } from "./modules/icons/components/IconNotes.js";
86
- import { default as default87 } from "./modules/icons/components/IconOptions.js";
87
- import { default as default88 } from "./modules/icons/components/IconOrderedList.js";
88
- import { default as default89 } from "./modules/icons/components/IconPaperclip.js";
89
- import { default as default90 } from "./modules/icons/components/IconPause.js";
90
- import { default as default91 } from "./modules/icons/components/IconPinOff.js";
91
- import { default as default92 } from "./modules/icons/components/IconPinOn.js";
92
- import { default as default93 } from "./modules/icons/components/IconPlaceholder.js";
93
- import { default as default94 } from "./modules/icons/components/IconPlayFilled.js";
94
- import { default as default95 } from "./modules/icons/components/IconPlay.js";
95
- import { default as default96 } from "./modules/icons/components/IconPlus.js";
96
- import { default as default97 } from "./modules/icons/components/IconPointerDefault.js";
97
- import { default as default98 } from "./modules/icons/components/IconPointerHand.js";
98
- import { default as default99 } from "./modules/icons/components/IconPrint.js";
99
- import { default as default100 } from "./modules/icons/components/IconQuestionMark.js";
100
- import { default as default101 } from "./modules/icons/components/IconQuestion.js";
101
- import { default as default102 } from "./modules/icons/components/IconRafterDown.js";
102
- import { default as default103 } from "./modules/icons/components/IconRafterLeft.js";
103
- import { default as default104 } from "./modules/icons/components/IconRafterRight.js";
104
- import { default as default105 } from "./modules/icons/components/IconRafterUp.js";
105
- import { default as default106 } from "./modules/icons/components/IconReaction.js";
106
- import { default as default107 } from "./modules/icons/components/IconReadMail.js";
107
- import { default as default108 } from "./modules/icons/components/IconRecordPause.js";
108
- import { default as default109 } from "./modules/icons/components/IconRecordStop.js";
109
- import { default as default110 } from "./modules/icons/components/IconRecordVideo.js";
110
- import { default as default111 } from "./modules/icons/components/IconRecord.js";
111
- import { default as default112 } from "./modules/icons/components/IconRedo.js";
112
- import { default as default113 } from "./modules/icons/components/IconRefresh.js";
113
- import { default as default114 } from "./modules/icons/components/IconReset.js";
114
- import { default as default115 } from "./modules/icons/components/IconRestart.js";
115
- import { default as default116 } from "./modules/icons/components/IconRestore.js";
116
- import { default as default117 } from "./modules/icons/components/IconSave.js";
117
- import { default as default118 } from "./modules/icons/components/IconSearch.js";
118
- import { default as default119 } from "./modules/icons/components/IconSee.js";
119
- import { default as default120 } from "./modules/icons/components/IconSend.js";
120
- import { default as default121 } from "./modules/icons/components/IconSetBackground.js";
121
- import { default as default122 } from "./modules/icons/components/IconSettings.js";
122
- import { default as default123 } from "./modules/icons/components/IconShare.js";
123
- import { default as default124 } from "./modules/icons/components/IconSignature.js";
124
- import { default as default125 } from "./modules/icons/components/IconSmartphone.js";
125
- import { default as default126 } from "./modules/icons/components/IconSmiley.js";
126
- import { default as default127 } from "./modules/icons/components/IconSortAscendingLetters.js";
127
- import { default as default128 } from "./modules/icons/components/IconSortDescendingLetters.js";
128
- import { default as default129 } from "./modules/icons/components/IconSortDescending.js";
129
- import { default as default130 } from "./modules/icons/components/IconSortTime.js";
130
- import { default as default131 } from "./modules/icons/components/IconSpeechToText.js";
131
- import { default as default132 } from "./modules/icons/components/IconSplitCells.js";
132
- import { default as default133 } from "./modules/icons/components/IconSquareRoot.js";
133
- import { default as default134 } from "./modules/icons/components/IconSubscript.js";
134
- import { default as default135 } from "./modules/icons/components/IconSuccessFill.js";
135
- import { default as default136 } from "./modules/icons/components/IconSuccessOutline.js";
136
- import { default as default137 } from "./modules/icons/components/IconSuperscript.js";
137
- import { default as default138 } from "./modules/icons/components/IconTable.js";
138
- import { default as default139 } from "./modules/icons/components/IconTextBold.js";
139
- import { default as default140 } from "./modules/icons/components/IconTextColor.js";
140
- import { default as default141 } from "./modules/icons/components/IconTextHighlight.js";
141
- import { default as default142 } from "./modules/icons/components/IconTextItalic.js";
142
- import { default as default143 } from "./modules/icons/components/IconTextPage.js";
143
- import { default as default144 } from "./modules/icons/components/IconTextSize.js";
144
- import { default as default145 } from "./modules/icons/components/IconTextToSpeechOff.js";
145
- import { default as default146 } from "./modules/icons/components/IconTextToSpeech.js";
146
- import { default as default147 } from "./modules/icons/components/IconTextTypo.js";
147
- import { default as default148 } from "./modules/icons/components/IconTextUnderline.js";
148
- import { default as default149 } from "./modules/icons/components/IconTextVanilla.js";
149
- import { default as default150 } from "./modules/icons/components/IconToolCenter.js";
150
- import { default as default151 } from "./modules/icons/components/IconTool.js";
151
- import { default as default152 } from "./modules/icons/components/IconTrendingUp.js";
152
- import { default as default153 } from "./modules/icons/components/IconUndoAll.js";
153
- import { default as default154 } from "./modules/icons/components/IconUndo.js";
154
- import { default as default155 } from "./modules/icons/components/IconUnlink.js";
155
- import { default as default156 } from "./modules/icons/components/IconUnlock.js";
156
- import { default as default157 } from "./modules/icons/components/IconUnreadMail.js";
157
- import { default as default158 } from "./modules/icons/components/IconUpload.js";
158
- import { default as default159 } from "./modules/icons/components/IconUserSearch.js";
159
- import { default as default160 } from "./modules/icons/components/IconUser.js";
160
- import { default as default161 } from "./modules/icons/components/IconUsers.js";
161
- import { default as default162 } from "./modules/icons/components/IconVideo.js";
162
- import { default as default163 } from "./modules/icons/components/IconViewCalendar.js";
163
- import { default as default164 } from "./modules/icons/components/IconViewList.js";
164
- import { default as default165 } from "./modules/icons/components/IconWand.js";
165
- import { default as default166 } from "./modules/icons/components/IconWrite.js";
166
- import { default as default167 } from "./modules/icons/components/IconZoomIn.js";
167
- import { default as default168 } from "./modules/icons/components/IconZoomOut.js";
77
+ import { default as default78 } from "./modules/icons/components/IconMergeCells.js";
78
+ import { default as default79 } from "./modules/icons/components/IconMessageInfo.js";
79
+ import { default as default80 } from "./modules/icons/components/IconMicOff.js";
80
+ import { default as default81 } from "./modules/icons/components/IconMic.js";
81
+ import { default as default82 } from "./modules/icons/components/IconMinus.js";
82
+ import { default as default83 } from "./modules/icons/components/IconMove.js";
83
+ import { default as default84 } from "./modules/icons/components/IconNoColors.js";
84
+ import { default as default85 } from "./modules/icons/components/IconOptions.js";
85
+ import { default as default86 } from "./modules/icons/components/IconOrderedList.js";
86
+ import { default as default87 } from "./modules/icons/components/IconPaperclip.js";
87
+ import { default as default88 } from "./modules/icons/components/IconPause.js";
88
+ import { default as default89 } from "./modules/icons/components/IconPinOff.js";
89
+ import { default as default90 } from "./modules/icons/components/IconPinOn.js";
90
+ import { default as default91 } from "./modules/icons/components/IconPlaceholder.js";
91
+ import { default as default92 } from "./modules/icons/components/IconPlayFilled.js";
92
+ import { default as default93 } from "./modules/icons/components/IconPlay.js";
93
+ import { default as default94 } from "./modules/icons/components/IconPlus.js";
94
+ import { default as default95 } from "./modules/icons/components/IconPointerDefault.js";
95
+ import { default as default96 } from "./modules/icons/components/IconPointerHand.js";
96
+ import { default as default97 } from "./modules/icons/components/IconPrint.js";
97
+ import { default as default98 } from "./modules/icons/components/IconQuestionMark.js";
98
+ import { default as default99 } from "./modules/icons/components/IconQuestion.js";
99
+ import { default as default100 } from "./modules/icons/components/IconRafterDown.js";
100
+ import { default as default101 } from "./modules/icons/components/IconRafterLeft.js";
101
+ import { default as default102 } from "./modules/icons/components/IconRafterRight.js";
102
+ import { default as default103 } from "./modules/icons/components/IconRafterUp.js";
103
+ import { default as default104 } from "./modules/icons/components/IconReaction.js";
104
+ import { default as default105 } from "./modules/icons/components/IconReadMail.js";
105
+ import { default as default106 } from "./modules/icons/components/IconRecordPause.js";
106
+ import { default as default107 } from "./modules/icons/components/IconRecordStop.js";
107
+ import { default as default108 } from "./modules/icons/components/IconRecordVideo.js";
108
+ import { default as default109 } from "./modules/icons/components/IconRecord.js";
109
+ import { default as default110 } from "./modules/icons/components/IconRedo.js";
110
+ import { default as default111 } from "./modules/icons/components/IconRefresh.js";
111
+ import { default as default112 } from "./modules/icons/components/IconReset.js";
112
+ import { default as default113 } from "./modules/icons/components/IconRestart.js";
113
+ import { default as default114 } from "./modules/icons/components/IconRestore.js";
114
+ import { default as default115 } from "./modules/icons/components/IconSave.js";
115
+ import { default as default116 } from "./modules/icons/components/IconSearch.js";
116
+ import { default as default117 } from "./modules/icons/components/IconSee.js";
117
+ import { default as default118 } from "./modules/icons/components/IconSend.js";
118
+ import { default as default119 } from "./modules/icons/components/IconSetBackground.js";
119
+ import { default as default120 } from "./modules/icons/components/IconSettings.js";
120
+ import { default as default121 } from "./modules/icons/components/IconShare.js";
121
+ import { default as default122 } from "./modules/icons/components/IconSignature.js";
122
+ import { default as default123 } from "./modules/icons/components/IconSmartphone.js";
123
+ import { default as default124 } from "./modules/icons/components/IconSmiley.js";
124
+ import { default as default125 } from "./modules/icons/components/IconSortAscendingLetters.js";
125
+ import { default as default126 } from "./modules/icons/components/IconSortDescendingLetters.js";
126
+ import { default as default127 } from "./modules/icons/components/IconSortDescending.js";
127
+ import { default as default128 } from "./modules/icons/components/IconSortTime.js";
128
+ import { default as default129 } from "./modules/icons/components/IconSpeechToText.js";
129
+ import { default as default130 } from "./modules/icons/components/IconSplitCells.js";
130
+ import { default as default131 } from "./modules/icons/components/IconSquareRoot.js";
131
+ import { default as default132 } from "./modules/icons/components/IconSubscript.js";
132
+ import { default as default133 } from "./modules/icons/components/IconSuccessFill.js";
133
+ import { default as default134 } from "./modules/icons/components/IconSuccessOutline.js";
134
+ import { default as default135 } from "./modules/icons/components/IconSuperscript.js";
135
+ import { default as default136 } from "./modules/icons/components/IconTable.js";
136
+ import { default as default137 } from "./modules/icons/components/IconTextBold.js";
137
+ import { default as default138 } from "./modules/icons/components/IconTextColor.js";
138
+ import { default as default139 } from "./modules/icons/components/IconTextHighlight.js";
139
+ import { default as default140 } from "./modules/icons/components/IconTextItalic.js";
140
+ import { default as default141 } from "./modules/icons/components/IconTextPage.js";
141
+ import { default as default142 } from "./modules/icons/components/IconTextSize.js";
142
+ import { default as default143 } from "./modules/icons/components/IconTextToSpeechOff.js";
143
+ import { default as default144 } from "./modules/icons/components/IconTextToSpeech.js";
144
+ import { default as default145 } from "./modules/icons/components/IconTextTypo.js";
145
+ import { default as default146 } from "./modules/icons/components/IconTextUnderline.js";
146
+ import { default as default147 } from "./modules/icons/components/IconTextVanilla.js";
147
+ import { default as default148 } from "./modules/icons/components/IconToolCenter.js";
148
+ import { default as default149 } from "./modules/icons/components/IconTool.js";
149
+ import { default as default150 } from "./modules/icons/components/IconTrendingUp.js";
150
+ import { default as default151 } from "./modules/icons/components/IconUndoAll.js";
151
+ import { default as default152 } from "./modules/icons/components/IconUndo.js";
152
+ import { default as default153 } from "./modules/icons/components/IconUnlink.js";
153
+ import { default as default154 } from "./modules/icons/components/IconUnlock.js";
154
+ import { default as default155 } from "./modules/icons/components/IconUnreadMail.js";
155
+ import { default as default156 } from "./modules/icons/components/IconUpload.js";
156
+ import { default as default157 } from "./modules/icons/components/IconUserSearch.js";
157
+ import { default as default158 } from "./modules/icons/components/IconUser.js";
158
+ import { default as default159 } from "./modules/icons/components/IconUsers.js";
159
+ import { default as default160 } from "./modules/icons/components/IconVideo.js";
160
+ import { default as default161 } from "./modules/icons/components/IconViewCalendar.js";
161
+ import { default as default162 } from "./modules/icons/components/IconViewList.js";
162
+ import { default as default163 } from "./modules/icons/components/IconWand.js";
163
+ import { default as default164 } from "./modules/icons/components/IconWrite.js";
164
+ import { default as default165 } from "./modules/icons/components/IconZoomIn.js";
165
+ import { default as default166 } from "./modules/icons/components/IconZoomOut.js";
168
166
  export {
169
167
  default3 as IconAdd,
170
168
  default2 as IconAddUser,
@@ -242,95 +240,93 @@ export {
242
240
  default75 as IconLock,
243
241
  default77 as IconMail,
244
242
  default76 as IconMailRecall,
245
- default78 as IconMegaphone,
246
- default79 as IconMergeCells,
247
- default80 as IconMessageInfo,
248
- default82 as IconMic,
249
- default81 as IconMicOff,
250
- default83 as IconMinus,
251
- default84 as IconMove,
252
- default85 as IconNoColors,
253
- default86 as IconNotes,
254
- default87 as IconOptions,
255
- default88 as IconOrderedList,
256
- default89 as IconPaperclip,
257
- default90 as IconPause,
258
- default91 as IconPinOff,
259
- default92 as IconPinOn,
260
- default93 as IconPlaceholder,
261
- default95 as IconPlay,
262
- default94 as IconPlayFilled,
263
- default96 as IconPlus,
264
- default97 as IconPointerDefault,
265
- default98 as IconPointerHand,
266
- default99 as IconPrint,
267
- default101 as IconQuestion,
268
- default100 as IconQuestionMark,
269
- default102 as IconRafterDown,
270
- default103 as IconRafterLeft,
271
- default104 as IconRafterRight,
272
- default105 as IconRafterUp,
273
- default106 as IconReaction,
274
- default107 as IconReadMail,
275
- default111 as IconRecord,
276
- default108 as IconRecordPause,
277
- default109 as IconRecordStop,
278
- default110 as IconRecordVideo,
279
- default112 as IconRedo,
280
- default113 as IconRefresh,
281
- default114 as IconReset,
282
- default115 as IconRestart,
283
- default116 as IconRestore,
284
- default117 as IconSave,
285
- default118 as IconSearch,
286
- default119 as IconSee,
287
- default120 as IconSend,
288
- default121 as IconSetBackground,
289
- default122 as IconSettings,
290
- default123 as IconShare,
291
- default124 as IconSignature,
292
- default125 as IconSmartphone,
293
- default126 as IconSmiley,
294
- default127 as IconSortAscendingLetters,
295
- default129 as IconSortDescending,
296
- default128 as IconSortDescendingLetters,
297
- default130 as IconSortTime,
298
- default131 as IconSpeechToText,
299
- default132 as IconSplitCells,
300
- default133 as IconSquareRoot,
301
- default134 as IconSubscript,
302
- default135 as IconSuccessFill,
303
- default136 as IconSuccessOutline,
304
- default137 as IconSuperscript,
305
- default138 as IconTable,
306
- default139 as IconTextBold,
307
- default140 as IconTextColor,
308
- default141 as IconTextHighlight,
309
- default142 as IconTextItalic,
310
- default143 as IconTextPage,
311
- default144 as IconTextSize,
312
- default146 as IconTextToSpeech,
313
- default145 as IconTextToSpeechOff,
314
- default147 as IconTextTypo,
315
- default148 as IconTextUnderline,
316
- default149 as IconTextVanilla,
317
- default151 as IconTool,
318
- default150 as IconToolCenter,
319
- default152 as IconTrendingUp,
320
- default154 as IconUndo,
321
- default153 as IconUndoAll,
322
- default155 as IconUnlink,
323
- default156 as IconUnlock,
324
- default157 as IconUnreadMail,
325
- default158 as IconUpload,
326
- default160 as IconUser,
327
- default159 as IconUserSearch,
328
- default161 as IconUsers,
329
- default162 as IconVideo,
330
- default163 as IconViewCalendar,
331
- default164 as IconViewList,
332
- default165 as IconWand,
333
- default166 as IconWrite,
334
- default167 as IconZoomIn,
335
- default168 as IconZoomOut
243
+ default78 as IconMergeCells,
244
+ default79 as IconMessageInfo,
245
+ default81 as IconMic,
246
+ default80 as IconMicOff,
247
+ default82 as IconMinus,
248
+ default83 as IconMove,
249
+ default84 as IconNoColors,
250
+ default85 as IconOptions,
251
+ default86 as IconOrderedList,
252
+ default87 as IconPaperclip,
253
+ default88 as IconPause,
254
+ default89 as IconPinOff,
255
+ default90 as IconPinOn,
256
+ default91 as IconPlaceholder,
257
+ default93 as IconPlay,
258
+ default92 as IconPlayFilled,
259
+ default94 as IconPlus,
260
+ default95 as IconPointerDefault,
261
+ default96 as IconPointerHand,
262
+ default97 as IconPrint,
263
+ default99 as IconQuestion,
264
+ default98 as IconQuestionMark,
265
+ default100 as IconRafterDown,
266
+ default101 as IconRafterLeft,
267
+ default102 as IconRafterRight,
268
+ default103 as IconRafterUp,
269
+ default104 as IconReaction,
270
+ default105 as IconReadMail,
271
+ default109 as IconRecord,
272
+ default106 as IconRecordPause,
273
+ default107 as IconRecordStop,
274
+ default108 as IconRecordVideo,
275
+ default110 as IconRedo,
276
+ default111 as IconRefresh,
277
+ default112 as IconReset,
278
+ default113 as IconRestart,
279
+ default114 as IconRestore,
280
+ default115 as IconSave,
281
+ default116 as IconSearch,
282
+ default117 as IconSee,
283
+ default118 as IconSend,
284
+ default119 as IconSetBackground,
285
+ default120 as IconSettings,
286
+ default121 as IconShare,
287
+ default122 as IconSignature,
288
+ default123 as IconSmartphone,
289
+ default124 as IconSmiley,
290
+ default125 as IconSortAscendingLetters,
291
+ default127 as IconSortDescending,
292
+ default126 as IconSortDescendingLetters,
293
+ default128 as IconSortTime,
294
+ default129 as IconSpeechToText,
295
+ default130 as IconSplitCells,
296
+ default131 as IconSquareRoot,
297
+ default132 as IconSubscript,
298
+ default133 as IconSuccessFill,
299
+ default134 as IconSuccessOutline,
300
+ default135 as IconSuperscript,
301
+ default136 as IconTable,
302
+ default137 as IconTextBold,
303
+ default138 as IconTextColor,
304
+ default139 as IconTextHighlight,
305
+ default140 as IconTextItalic,
306
+ default141 as IconTextPage,
307
+ default142 as IconTextSize,
308
+ default144 as IconTextToSpeech,
309
+ default143 as IconTextToSpeechOff,
310
+ default145 as IconTextTypo,
311
+ default146 as IconTextUnderline,
312
+ default147 as IconTextVanilla,
313
+ default149 as IconTool,
314
+ default148 as IconToolCenter,
315
+ default150 as IconTrendingUp,
316
+ default152 as IconUndo,
317
+ default151 as IconUndoAll,
318
+ default153 as IconUnlink,
319
+ default154 as IconUnlock,
320
+ default155 as IconUnreadMail,
321
+ default156 as IconUpload,
322
+ default158 as IconUser,
323
+ default157 as IconUserSearch,
324
+ default159 as IconUsers,
325
+ default160 as IconVideo,
326
+ default161 as IconViewCalendar,
327
+ default162 as IconViewList,
328
+ default163 as IconWand,
329
+ default164 as IconWrite,
330
+ default165 as IconZoomIn,
331
+ default166 as IconZoomOut
336
332
  };
package/dist/index.js CHANGED
@@ -92,12 +92,11 @@ import { default as default91 } from "./modules/multimedia/AudioRecorder/AudioRe
92
92
  import { default as default92 } from "./modules/multimedia/Embed/Embed.js";
93
93
  import { default as default93 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
94
94
  import { default as default94 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
95
- import { default as default95 } from "./modules/multimedia/FileCard/FileCard.js";
96
- import { default as default96 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
97
- import { default as default97 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
98
- import { default as default98 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
99
- import { default as default99 } from "./modules/multimedia/Workspace/Workspace.js";
100
- import { default as default100 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
95
+ import { default as default95 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
96
+ import { default as default96 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
97
+ import { default as default97 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
98
+ import { default as default98 } from "./modules/multimedia/Workspace/Workspace.js";
99
+ import { default as default99 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
101
100
  import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
102
101
  import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
103
102
  import { Column, Grid } from "./components/Grid/Grid.js";
@@ -160,7 +159,6 @@ export {
160
159
  default92 as Embed,
161
160
  default21 as EmptyScreen,
162
161
  ExternalLinker,
163
- default95 as FileCard,
164
162
  default22 as Flex,
165
163
  default24 as FormControl,
166
164
  default23 as FormText,
@@ -178,7 +176,7 @@ export {
178
176
  default29 as Loading,
179
177
  default30 as LoadingScreen,
180
178
  default31 as Logo,
181
- default96 as MediaLibrary,
179
+ default95 as MediaLibrary,
182
180
  Menu,
183
181
  MockedProvider,
184
182
  default32 as Modal,
@@ -209,13 +207,13 @@ export {
209
207
  TreeNode,
210
208
  TreeNodeFolderWrapper,
211
209
  default46 as TreeView,
212
- default97 as VideoEmbed,
213
- default98 as VideoRecorder,
210
+ default96 as VideoEmbed,
211
+ default97 as VideoRecorder,
214
212
  default47 as VisuallyHidden,
215
213
  WORKSPACE_SHARED_FOLDER_ID,
216
214
  WORKSPACE_USER_FOLDER_ID,
217
- default99 as Workspace,
218
- default100 as WorkspaceFolders,
215
+ default98 as Workspace,
216
+ default99 as WorkspaceFolders,
219
217
  addNode,
220
218
  arrayUnique,
221
219
  buildTree,
@@ -46,7 +46,7 @@ const TableToolbarAddMenu = ({
46
46
  }];
47
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
48
48
  /* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.table.toolbar.tooltip.add"), placement: "top", children: /* @__PURE__ */ jsx(Dropdown.Trigger, { variant: "ghost", label: t("tiptap.table.toolbar.add") }) }),
49
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: addOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }) }, option.key)) })
49
+ /* @__PURE__ */ jsx(Dropdown.Menu, { children: addOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }, option.key) })) })
50
50
  ] });
51
51
  };
52
52
  export {
@@ -40,7 +40,7 @@ const TableToolbarDelMenu = ({
40
40
  }];
41
41
  return /* @__PURE__ */ jsxs(Fragment, { children: [
42
42
  /* @__PURE__ */ jsx(Tooltip, { message: t("tiptap.table.toolbar.tooltip.del"), placement: "top", children: /* @__PURE__ */ jsx(Dropdown.Trigger, { variant: "ghost", label: t("tiptap.table.toolbar.del") }) }),
43
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: delOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }) }, option.key)) })
43
+ /* @__PURE__ */ jsx(Dropdown.Menu, { children: delOptions.map((option) => /* @__PURE__ */ jsx("div", { onMouseDown: (e) => e.preventDefault(), children: /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: option.onClick, children: option.label }, option.key) })) })
44
44
  ] });
45
45
  };
46
46
  export {
@@ -74,7 +74,6 @@ export { default as IconLoader } from './IconLoader';
74
74
  export { default as IconLock } from './IconLock';
75
75
  export { default as IconMailRecall } from './IconMailRecall';
76
76
  export { default as IconMail } from './IconMail';
77
- export { default as IconMegaphone } from './IconMegaphone';
78
77
  export { default as IconMergeCells } from './IconMergeCells';
79
78
  export { default as IconMessageInfo } from './IconMessageInfo';
80
79
  export { default as IconMicOff } from './IconMicOff';
@@ -82,7 +81,6 @@ export { default as IconMic } from './IconMic';
82
81
  export { default as IconMinus } from './IconMinus';
83
82
  export { default as IconMove } from './IconMove';
84
83
  export { default as IconNoColors } from './IconNoColors';
85
- export { default as IconNotes } from './IconNotes';
86
84
  export { default as IconOptions } from './IconOptions';
87
85
  export { default as IconOrderedList } from './IconOrderedList';
88
86
  export { default as IconPaperclip } from './IconPaperclip';
@@ -1,24 +1,13 @@
1
- import { ReactNode } from 'react';
2
1
  import { WorkspaceElement } from '@edifice.io/client';
3
2
  import { CardProps } from '../../../components';
4
3
  export interface FileCardProps extends CardProps {
5
4
  /**
6
5
  * WorkspaceElement
7
- */
6
+ * */
8
7
  doc: WorkspaceElement;
9
- /**
10
- * Custom icon to override the default based on file type
11
- * Can be a string or a React node
12
- */
13
- customIcon?: ReactNode;
14
- /**
15
- * Custom color class to override the default based on file type
16
- * Example: "bg-purple-300" or any valid CSS class
17
- */
18
- customColor?: string;
19
8
  }
20
9
  declare const FileCard: {
21
- ({ doc, isClickable, isSelectable, isSelected, onClick, className, onSelect, isFocused, app, customIcon, customColor, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
10
+ ({ doc, isClickable, isSelectable, isSelected, onClick, className, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
22
11
  displayName: string;
23
12
  };
24
13
  export default FileCard;
@@ -15,21 +15,11 @@ const FileCard = ({
15
15
  isSelectable = !1,
16
16
  isSelected = !1,
17
17
  onClick,
18
- className,
19
- onSelect,
20
- isFocused,
21
- app,
22
- customIcon,
23
- customColor
18
+ className
24
19
  }) => {
20
+ var _a;
25
21
  const ref = useRef(null), type = DocumentHelper.getRole(doc);
26
22
  function getRoleMap(type2) {
27
- if (customIcon !== void 0 || customColor !== void 0)
28
- return {
29
- icon: customIcon || /* @__PURE__ */ jsx(SvgIconTextPage, { width: 22, height: 22 }),
30
- color: customColor || "bg-gray-300",
31
- hasShadow: !1
32
- };
33
23
  const roleMappings = {
34
24
  csv: {
35
25
  icon: ".CSV",
@@ -82,17 +72,17 @@ const FileCard = ({
82
72
  };
83
73
  return roleMappings[type2] || roleMappings.unknown;
84
74
  }
85
- const roleMap = getRoleMap(type ?? "unknown"), file = clsx("file position-relative rounded", (roleMap == null ? void 0 : roleMap.color) ?? "bg-yellow-200"), mediaSrc = type === "img" || type === "video" ? odeServices.workspace().getThumbnailUrl(doc) : null, hasThumbnail = useThumbnail(mediaSrc, {
75
+ const file = clsx("file position-relative rounded", ((_a = getRoleMap(type ?? "default")) == null ? void 0 : _a.color) ?? "bg-yellow-200"), mediaSrc = type === "img" || type === "video" ? odeServices.workspace().getThumbnailUrl(doc) : null, hasThumbnail = useThumbnail(mediaSrc, {
86
76
  ref
87
77
  }), imageStyles = hasThumbnail && {
88
78
  backgroundImage: `url(${mediaSrc})`,
89
79
  backgroundSize: "cover"
90
80
  };
91
- return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, app, isFocused, onSelect, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
81
+ return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
92
82
  /* @__PURE__ */ jsx("div", { ref, className: file, style: {
93
83
  aspectRatio: "16/10",
94
84
  ...imageStyles
95
- }, children: type !== "img" || type === "img" && !hasThumbnail ? /* @__PURE__ */ jsx(FileIcon, { type, roleMap }) : null }),
85
+ }, children: type !== "img" || type === "img" && !hasThumbnail ? /* @__PURE__ */ jsx(FileIcon, { type, roleMap: getRoleMap(type) }) : null }),
96
86
  /* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
97
87
  /* @__PURE__ */ jsx(Card.Text, { children: doc.name }),
98
88
  /* @__PURE__ */ jsx(Card.Text, { className: "text-black-50", children: doc == null ? void 0 : doc.ownerName })
@@ -1,10 +1,6 @@
1
1
  import { Role } from '@edifice.io/client';
2
2
  declare const FileIcon: ({ type, roleMap, }: {
3
3
  type: Role | "unknown";
4
- roleMap?: {
5
- icon: React.ReactNode | string;
6
- color: string;
7
- hasShadow?: boolean;
8
- };
4
+ roleMap?: Record<string, string | JSX.Element>;
9
5
  }) => import("react/jsx-runtime").JSX.Element;
10
6
  export default FileIcon;
@@ -5,8 +5,8 @@ const FileIcon = ({
5
5
  type,
6
6
  roleMap
7
7
  }) => {
8
- const hasShadow = typeof (roleMap == null ? void 0 : roleMap.icon) != "string" && type !== "unknown" && (roleMap == null ? void 0 : roleMap.hasShadow) !== !1, fileicon = clsx("position-absolute top-50 start-50 translate-middle", {
9
- "p-12 rounded-circle shadow": hasShadow
8
+ const hasNoShadow = typeof (roleMap == null ? void 0 : roleMap.icon) != "string" && type !== "unknown", fileicon = clsx("position-absolute top-50 start-50 translate-middle", {
9
+ "p-12 rounded-circle shadow": hasNoShadow
10
10
  }, roleMap == null ? void 0 : roleMap.color);
11
11
  return /* @__PURE__ */ jsx("div", { className: fileicon, children: (roleMap == null ? void 0 : roleMap.icon) ?? /* @__PURE__ */ jsx(SvgIconPaperclip, {}) });
12
12
  };
@@ -35,9 +35,7 @@ export type MediaLibraryType =
35
35
  /** Embedded websites */
36
36
  | 'embedder'
37
37
  /** Hyperlinks */
38
- | 'hyperlink'
39
- /** Studio mode for recording audio and video */
40
- | 'studio';
38
+ | 'hyperlink';
41
39
  export interface MediaLibraryRef {
42
40
  /** Open the Media Library on given type. */
43
41
  show: (type: MediaLibraryType) => void;
@@ -56,11 +56,6 @@ const orderedTabs = [
56
56
  embedder: {
57
57
  title: "bbm.embed.modal.title",
58
58
  defaultTab: "iframe"
59
- },
60
- // Add studio type with video-capture as default tab
61
- studio: {
62
- title: "bbm.studio.modal.title",
63
- defaultTab: "audio-capture"
64
59
  }
65
60
  }, MediaLibrary = /* @__PURE__ */ forwardRef(({
66
61
  appCode,
@@ -106,7 +101,7 @@ const orderedTabs = [
106
101
  icon: /* @__PURE__ */ jsx(SvgIconRecordVideo, {}),
107
102
  label: t("bbm.video"),
108
103
  content: /* @__PURE__ */ jsx(InnerTabs.Video, {}),
109
- availableFor: ["video", "studio"],
104
+ availableFor: ["video"],
110
105
  isEnable: () => !!videoCaptureWorkflow
111
106
  },
112
107
  "audio-capture": {
@@ -114,7 +109,7 @@ const orderedTabs = [
114
109
  icon: /* @__PURE__ */ jsx(SvgIconMic, {}),
115
110
  label: t("bbm.audio"),
116
111
  content: /* @__PURE__ */ jsx(InnerTabs.Audio, {}),
117
- availableFor: ["audio", "studio"],
112
+ availableFor: ["audio"],
118
113
  isEnable: () => !!workspaceCreateWorkflow
119
114
  },
120
115
  "external-link": {
@@ -2,7 +2,6 @@ export * from './AudioRecorder';
2
2
  export * from './Embed';
3
3
  export * from './ImageEditor';
4
4
  export * from './ImagePicker';
5
- export * from './FileCard';
6
5
  export * from './Linker';
7
6
  export * from './MediaLibrary';
8
7
  export * from './VideoEmbed';
@@ -2,25 +2,23 @@ import { default as default2 } from "./modules/multimedia/AudioRecorder/AudioRec
2
2
  import { default as default3 } from "./modules/multimedia/Embed/Embed.js";
3
3
  import { default as default4 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
4
4
  import { default as default5 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
5
- import { default as default6 } from "./modules/multimedia/FileCard/FileCard.js";
6
- import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
7
- import { default as default8 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
8
- import { default as default9 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
9
- import { default as default10 } from "./modules/multimedia/Workspace/Workspace.js";
10
- import { default as default11 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
5
+ import { default as default6 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
6
+ import { default as default7 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
7
+ import { default as default8 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
8
+ import { default as default9 } from "./modules/multimedia/Workspace/Workspace.js";
9
+ import { default as default10 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
11
10
  import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
12
11
  import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
13
12
  export {
14
13
  default2 as AudioRecorder,
15
14
  default3 as Embed,
16
15
  ExternalLinker,
17
- default6 as FileCard,
18
16
  default4 as ImageEditor,
19
17
  default5 as ImagePicker,
20
18
  InternalLinker,
21
- default7 as MediaLibrary,
22
- default8 as VideoEmbed,
23
- default9 as VideoRecorder,
24
- default10 as Workspace,
25
- default11 as WorkspaceFolders
19
+ default6 as MediaLibrary,
20
+ default7 as VideoEmbed,
21
+ default8 as VideoRecorder,
22
+ default9 as Workspace,
23
+ default10 as WorkspaceFolders
26
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.2.11-develop-pedago.20250708131559",
3
+ "version": "2.2.11-develop.20250703113543",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -130,9 +130,9 @@
130
130
  "react-slugify": "^3.0.3",
131
131
  "swiper": "^10.1.0",
132
132
  "ua-parser-js": "^1.0.36",
133
- "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250708131559",
134
- "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250708131559",
135
- "@edifice.io/utilities": "2.2.11-develop-pedago.20250708131559"
133
+ "@edifice.io/bootstrap": "2.2.11-develop.20250703113543",
134
+ "@edifice.io/tiptap-extensions": "2.2.11-develop.20250703113543",
135
+ "@edifice.io/utilities": "2.2.11-develop.20250703113543"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -163,8 +163,8 @@
163
163
  "vite": "^5.4.11",
164
164
  "vite-plugin-dts": "^4.1.0",
165
165
  "vite-tsconfig-paths": "^5.0.1",
166
- "@edifice.io/client": "2.2.11-develop-pedago.20250708131559",
167
- "@edifice.io/config": "2.2.11-develop-pedago.20250708131559"
166
+ "@edifice.io/client": "2.2.11-develop.20250703113543",
167
+ "@edifice.io/config": "2.2.11-develop.20250703113543"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "@react-spring/web": "^9.7.5",
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconMegaphone: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconMegaphone;
@@ -1,12 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconMegaphone = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M13.962 3.067c1.333-.809 3.038.15 3.038 1.71v13.446c0 1.56-1.705 2.519-3.038 1.71l-3.794-2.304a3.67 3.67 0 0 1-7.26-1.084A3 3 0 0 1 1 13.75v-4.5a3 3 0 0 1 3-3h4.44a1 1 0 0 0 .52-.145zM4.9 16.75h3.29a1.67 1.67 0 1 1-3.29 0M15 4.777 9.997 7.814a3 3 0 0 1-1.557.436H4a1 1 0 0 0-1 1v4.5a1 1 0 0 0 1 1h4.44a3 3 0 0 1 1.557.436L15 18.223zm6.055 3.055a1 1 0 0 0-1.11-1.664l-1.5 1a1 1 0 0 0 1.11 1.664zm-2.887 7.613a1 1 0 0 1 1.387-.277l1.5 1a1 1 0 1 1-1.11 1.664l-1.5-1a1 1 0 0 1-.277-1.387M19.5 11a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2z", clipRule: "evenodd" })
9
- ] });
10
- export {
11
- SvgIconMegaphone as default
12
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconNotes: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconNotes;
@@ -1,13 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconNotes = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M1 4a3 3 0 0 1 3-3h16a3 3 0 0 1 3 3v13a1 1 0 1 1-2 0V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h13a1 1 0 1 1 0 2H4a3 3 0 0 1-3-3z", clipRule: "evenodd" }),
9
- /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M18 18v1.586L19.586 18zm-2-1a1 1 0 0 1 1-1h5a1 1 0 0 1 .707 1.707l-5 5A1 1 0 0 1 16 22zM6 9a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1M6 14a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1", clipRule: "evenodd" })
10
- ] });
11
- export {
12
- SvgIconNotes as default
13
- };