@edifice.io/react 2.2.11-develop-enabling.20250704193152 → 2.2.11-develop-pedago.20250707105307

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 +10 -4
  2. package/dist/components/Dropdown/Dropdown.js +24 -8
  3. package/dist/components/Layout/Layout.d.ts +3 -1
  4. package/dist/components/Layout/Layout.js +3 -1
  5. package/dist/components/SearchBar/SearchBar.d.ts +9 -33
  6. package/dist/components/SearchBar/SearchBar.js +4 -17
  7. package/dist/components/Tabs/components/Tabs.d.ts +11 -3
  8. package/dist/components/Tabs/components/Tabs.js +4 -2
  9. package/dist/components/Tabs/components/TabsList.d.ts +7 -1
  10. package/dist/components/Tabs/components/TabsList.js +5 -2
  11. package/dist/components/Tabs/components/TabsPanel.d.ts +5 -1
  12. package/dist/components/Tabs/components/TabsPanel.js +7 -3
  13. package/dist/hooks/useDropdown/useDropdown.d.ts +2 -0
  14. package/dist/hooks/useDropdown/useDropdown.js +2 -0
  15. package/dist/hooks/useLibraryUrl/useLibraryUrl.d.ts +1 -1
  16. package/dist/hooks/useLibraryUrl/useLibraryUrl.js +2 -2
  17. package/dist/icons.js +190 -196
  18. package/dist/index.js +12 -10
  19. package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +1 -1
  20. package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +1 -1
  21. package/dist/modules/icons/components/index.d.ts +0 -3
  22. package/dist/modules/multimedia/FileCard/FileCard.d.ts +1 -1
  23. package/dist/modules/multimedia/FileCard/FileCard.js +5 -2
  24. package/dist/modules/multimedia/index.d.ts +1 -0
  25. package/dist/multimedia.js +12 -10
  26. package/package.json +6 -6
  27. package/dist/modules/icons/components/IconLibrary.d.ts +0 -7
  28. package/dist/modules/icons/components/IconLibrary.js +0 -12
  29. package/dist/modules/icons/components/IconStar.d.ts +0 -7
  30. package/dist/modules/icons/components/IconStar.js +0 -13
  31. package/dist/modules/icons/components/IconStarFull.d.ts +0 -7
  32. package/dist/modules/icons/components/IconStarFull.js +0 -13
@@ -1,6 +1,15 @@
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
+ }
4
13
  export interface DropdownProps {
5
14
  /** Children Props */
6
15
  children: ReactNode | ((...props: any) => ReactNode);
@@ -68,10 +77,7 @@ export type DropdownMenuOptions = {
68
77
  */
69
78
  type: 'divider';
70
79
  };
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
- } & {
80
+ declare const Dropdown: import('react').ForwardRefExoticComponent<DropdownProps & import('react').RefAttributes<DropdownApi>> & {
75
81
  Trigger: import('react').ForwardRefExoticComponent<Omit<import('./DropdownTrigger').DropdownTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
76
82
  Menu: import('react').ForwardRefExoticComponent<Omit<import('./DropdownMenu').DropdownMenuProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
77
83
  Item: {
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useMemo, useEffect } from "react";
2
+ import { forwardRef, useImperativeHandle, 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 = ({
14
+ const Root = /* @__PURE__ */ forwardRef(({
15
15
  children,
16
16
  block,
17
17
  overflow = !0,
@@ -23,7 +23,7 @@ const Root = ({
23
23
  focusOnVisible = !0,
24
24
  openOnSpace = !0,
25
25
  focusOnMouseEnter = !0
26
- }) => {
26
+ }, refDropdown) => {
27
27
  const {
28
28
  visible,
29
29
  isFocused,
@@ -31,8 +31,22 @@ const Root = ({
31
31
  menuProps,
32
32
  itemProps,
33
33
  itemRefs,
34
- setVisible
35
- } = useDropdown(placement, extraTriggerKeyDownHandler, isTriggerHovered, focusOnVisible, openOnSpace, focusOnMouseEnter), ref = useClickOutside(() => {
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(() => {
36
50
  setVisible(!1);
37
51
  }), value = useMemo(() => ({
38
52
  visible,
@@ -42,8 +56,10 @@ const Root = ({
42
56
  itemProps,
43
57
  itemRefs,
44
58
  block,
45
- setVisible
46
- }), [visible, isFocused, triggerProps, menuProps, itemProps, itemRefs, block, setVisible]), dropdown = clsx("dropdown", {
59
+ setVisible,
60
+ openDropdown,
61
+ closeDropdown
62
+ }), [visible, isFocused, triggerProps, menuProps, itemProps, itemRefs, block, setVisible, openDropdown, closeDropdown]), dropdown = clsx("dropdown", {
47
63
  "w-100": block,
48
64
  "dropdown-nowrap": noWrap,
49
65
  overflow
@@ -51,7 +67,7 @@ const Root = ({
51
67
  return useEffect(() => {
52
68
  onToggle == null || onToggle(visible);
53
69
  }, [visible]), /* @__PURE__ */ jsx(DropdownContext.Provider, { value, children: /* @__PURE__ */ jsx("div", { ref, className: dropdown, children: typeof children == "function" ? children(triggerProps, itemRefs, setVisible) : children }) });
54
- }, Dropdown = /* @__PURE__ */ Object.assign(Root, {
70
+ }), Dropdown = /* @__PURE__ */ Object.assign(Root, {
55
71
  Trigger: DropdownTrigger,
56
72
  Menu: DropdownMenu,
57
73
  Item: DropdownItem,
@@ -4,9 +4,11 @@ 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;
7
9
  }
8
10
  export declare const Layout: {
9
- ({ children, headless, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ children, headless, whiteBg, ...restProps }: LayoutProps): import("react/jsx-runtime").JSX.Element;
10
12
  displayName: string;
11
13
  };
12
14
  export default Layout;
@@ -12,6 +12,7 @@ import Button from "../Button/Button.js";
12
12
  const Layout = ({
13
13
  children,
14
14
  headless = !1,
15
+ whiteBg = !0,
15
16
  ...restProps
16
17
  }) => {
17
18
  const {
@@ -24,7 +25,8 @@ const Layout = ({
24
25
  handleCloseCookiesConsent
25
26
  } = useCookiesConsent();
26
27
  useZendeskGuide(), useCantoo();
27
- const classes = clsx("d-flex flex-column bg-white", {
28
+ const classes = clsx("d-flex flex-column", {
29
+ "bg-white": whiteBg,
28
30
  "container-fluid": !headless,
29
31
  "rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
30
32
  "mt-24": (theme == null ? void 0 : theme.is1d) && !headless
@@ -1,19 +1,16 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { Size } from '../../types';
3
- /**
4
- * Base props shared by both SearchBar variants
5
- */
6
3
  export interface BaseProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'size'> {
7
4
  /**
8
- * String or template literal key for i18next translation
5
+ * String or Template literal with React i18next namespace
9
6
  */
10
7
  placeholder?: string;
11
8
  /**
12
- * Control SearchBar size (excluding 'sm')
9
+ * Control SearchBar size
13
10
  */
14
11
  size?: Exclude<Size, 'sm'>;
15
12
  /**
16
- * Disable the input
13
+ * Disabled status
17
14
  */
18
15
  disabled?: boolean;
19
16
  /**
@@ -22,58 +19,37 @@ export interface BaseProps extends Omit<React.ComponentPropsWithoutRef<'input'>,
22
19
  buttonDisabled?: boolean;
23
20
  /**
24
21
  * Optional class for styling purpose
25
- * Optional class for custom styling
26
22
  */
27
23
  className?: string;
28
24
  /**
29
- * onChange handler for input changes
25
+ * ChangeEvent Handler
30
26
  */
31
27
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
32
- /**
33
- * Current value of the input
34
- */
35
- value?: string;
36
- /**
37
- * Show a clear (reset) button when value is present
38
- */
39
- clearable?: boolean;
40
28
  }
41
- /**
42
- * Default SearchBar with a submit button
43
- */
44
29
  type DefaultSearchBar = {
45
30
  /**
46
- * Use false to render the default SearchBar (with a button)
31
+ * Switch between button or dynamic search bar
47
32
  */
48
33
  isVariant: false;
49
34
  /**
50
- * Callback when clicking the search button
35
+ * Handle Search with Default SearchBar
51
36
  */
52
37
  onClick: () => void;
53
38
  };
54
- /**
55
- * Dynamic SearchBar with icon and no submit button
56
- */
57
39
  type DynamicSearchBar = {
58
40
  /**
59
- * Use true to render the dynamic SearchBar (with an icon inside input)
41
+ * Switch between button or dynamic search bar
60
42
  */
61
43
  isVariant: true;
62
44
  /**
63
- * onClick must be undefined for dynamic variant
45
+ * Handle Search with Default SearchBar
64
46
  */
65
47
  onClick?: undefined;
66
48
  };
67
- /**
68
- * Props for the SearchBar component
69
- */
70
49
  export type Props = DefaultSearchBar | DynamicSearchBar;
71
50
  export type SearchBarProps = BaseProps & Props;
72
- /**
73
- * SearchBar component to handle dynamic or static search input
74
- */
75
51
  declare const SearchBar: {
76
- ({ isVariant, size, placeholder, className, disabled, buttonDisabled, onChange, onClick, value, clearable, ...restProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
52
+ ({ isVariant, size, placeholder, className, disabled, buttonDisabled, onChange, onClick, ...restProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
77
53
  displayName: string;
78
54
  };
79
55
  export default SearchBar;
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { useTranslation } from "react-i18next";
4
- import SvgIconClose from "../../modules/icons/components/IconClose.js";
5
4
  import SvgIconSearch from "../../modules/icons/components/IconSearch.js";
6
5
  import FormControl from "../Form/FormControl.js";
7
6
  import SearchButton from "../Button/SearchButton.js";
@@ -14,8 +13,6 @@ const SearchBar = ({
14
13
  buttonDisabled,
15
14
  onChange,
16
15
  onClick,
17
- value,
18
- clearable = !1,
19
16
  ...restProps
20
17
  }) => {
21
18
  const {
@@ -25,25 +22,15 @@ const SearchBar = ({
25
22
  "position-relative": isVariant
26
23
  }), input = clsx({
27
24
  "border-end-0": !isVariant,
28
- "ps-48": isVariant,
29
- "searchbar-hide-native-clear": isVariant && clearable
25
+ "ps-48": isVariant
30
26
  }), handleClick = () => {
31
27
  onClick == null || onClick();
32
- }, handleClear = () => {
33
- const event = {
34
- target: {
35
- value: ""
36
- }
37
- };
38
- onChange == null || onChange(event);
28
+ }, handleKeyDown = (e) => {
29
+ e.key === "Enter" && (e.preventDefault(), handleClick());
39
30
  };
40
31
  return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
41
32
  isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgIconSearch, {}) }),
42
- /* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, value, disabled, onKeyDown: handleKeyDown, ...restProps }),
43
- isVariant && clearable && value && onChange && /* @__PURE__ */ jsx("button", { type: "button", onClick: handleClear, className: "position-absolute end-0 top-50 translate-middle-y pe-12 bg-transparent border-0", "aria-label": t("clear"), children: /* @__PURE__ */ jsx(SvgIconClose, { className: "color-gray", style: {
44
- width: 12,
45
- height: 12
46
- } }) }),
33
+ /* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, onKeyDown: handleKeyDown, ...restProps }),
47
34
  !isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgIconSearch, {}), className: "border-start-0", onClick: handleClick, disabled: buttonDisabled })
48
35
  ] });
49
36
  };
@@ -17,12 +17,20 @@ 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;
20
28
  }
21
29
  /**
22
30
  * Tab Content displayed one at a time when a Tab Item is selected
23
31
  */
24
32
  export declare const Tabs: {
25
- ({ defaultId, items, onChange, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
33
+ ({ defaultId, items, fullWidth, fullHeight, onChange, children, }: TabsProps): import("react/jsx-runtime").JSX.Element;
26
34
  Item: {
27
35
  ({ icon, badge, label, id, order, }: TabsItemProps & {
28
36
  order: number;
@@ -30,11 +38,11 @@ export declare const Tabs: {
30
38
  displayName: string;
31
39
  };
32
40
  Panel: {
33
- ({ children, currentItem }: import('./TabsPanel').TabsPanelProps): import("react/jsx-runtime").JSX.Element;
41
+ ({ children, currentItem, fullHeight }: import('./TabsPanel').TabsPanelProps): import("react/jsx-runtime").JSX.Element;
34
42
  displayName: string;
35
43
  };
36
44
  List: {
37
- (props: import('react').ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
45
+ (props: import('./TabsList').TabsListProps): import("react/jsx-runtime").JSX.Element;
38
46
  displayName: string;
39
47
  };
40
48
  displayName: string;
@@ -8,6 +8,8 @@ import TabsPanel from "./TabsPanel.js";
8
8
  const Tabs = ({
9
9
  defaultId,
10
10
  items,
11
+ fullWidth = !1,
12
+ fullHeight = !1,
11
13
  onChange,
12
14
  children
13
15
  }) => {
@@ -32,8 +34,8 @@ const Tabs = ({
32
34
  onKeyDown
33
35
  }), [activeTab, items, onKeyDown, setSelectedTab, tabUnderlineLeft, tabUnderlineWidth, tabsRef]), currentItem = items.find((item) => item.id === activeTab);
34
36
  return /* @__PURE__ */ jsx(TabsContext.Provider, { value, children: typeof children == "function" ? children(currentItem) : /* @__PURE__ */ jsxs(Fragment, { children: [
35
- /* @__PURE__ */ jsx(Tabs.List, {}),
36
- /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, children: currentItem == null ? void 0 : currentItem.content })
37
+ /* @__PURE__ */ jsx(Tabs.List, { fullWidth }),
38
+ /* @__PURE__ */ jsx(Tabs.Panel, { currentItem, fullHeight, children: currentItem == null ? void 0 : currentItem.content })
37
39
  ] }) });
38
40
  };
39
41
  Tabs.Item = TabsItem;
@@ -1,6 +1,12 @@
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
+ }
2
8
  declare const TabsList: {
3
- (props: ComponentPropsWithoutRef<"div">): import("react/jsx-runtime").JSX.Element;
9
+ (props: TabsListProps): import("react/jsx-runtime").JSX.Element;
4
10
  displayName: string;
5
11
  };
6
12
  export default TabsList;
@@ -9,10 +9,13 @@ const TabsList = (props) => {
9
9
  tabUnderlineWidth
10
10
  } = useTabsContext(), {
11
11
  className,
12
+ fullWidth,
12
13
  ...restProps
13
- } = props, tabslist = clsx("position-relative flex-shrink-0 overflow-x-auto", className);
14
+ } = props, ulClasses = clsx("nav nav-tabs flex-nowrap", {
15
+ "w-100": fullWidth
16
+ }), tabslist = clsx("position-relative flex-shrink-0 overflow-x-auto", className);
14
17
  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)) }),
18
+ /* @__PURE__ */ jsx("ul", { className: ulClasses, role: "tablist", children: items.map((item, order) => /* @__PURE__ */ jsx(Tabs.Item, { order, ...item }, item.id)) }),
16
19
  /* @__PURE__ */ jsx("span", { className: "nav-slide", style: {
17
20
  left: tabUnderlineLeft,
18
21
  width: tabUnderlineWidth
@@ -9,9 +9,13 @@ 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;
12
16
  }
13
17
  declare const TabsPanel: {
14
- ({ children, currentItem }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
18
+ ({ children, currentItem, fullHeight }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
15
19
  displayName: string;
16
20
  };
17
21
  export default TabsPanel;
@@ -1,13 +1,17 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useTabsContext } from "../context/TabsContext.js";
3
+ import clsx from "clsx";
3
4
  const TabsPanel = ({
4
5
  children,
5
- currentItem
6
+ currentItem,
7
+ fullHeight
6
8
  }) => {
7
9
  const {
8
10
  activeTab
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 }) });
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 }) });
11
15
  };
12
16
  export {
13
17
  TabsPanel as default
@@ -28,6 +28,8 @@ 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;
31
33
  }
32
34
  declare const useDropdown: (placement: Placement | undefined, extraTriggerKeyDownHandler?: (event: React.KeyboardEvent<HTMLButtonElement>) => void, isTriggerHovered?: boolean, focusOnVisible?: boolean, openOnSpace?: boolean, focusOnMouseEnter?: boolean) => UseDropdownProps;
33
35
  export default useDropdown;
@@ -159,6 +159,8 @@ const useDropdown = (placement, extraTriggerKeyDownHandler, isTriggerHovered = !
159
159
  onMenuItemClick: closeDropdown,
160
160
  onMenuItemKeyDown
161
161
  },
162
+ openDropdown,
163
+ closeDropdown,
162
164
  setVisible
163
165
  };
164
166
  };
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @returns the Library URL as a string. Returns null if no library was found in user apps.
5
5
  */
6
- declare const useLibraryUrl: (appCodeName?: string) => string | null;
6
+ declare const useLibraryUrl: () => string | null;
7
7
  export default useLibraryUrl;
@@ -1,11 +1,11 @@
1
1
  import { libraryMaps } from "@edifice.io/utilities";
2
2
  import { useEdificeClient } from "../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
3
- const useLibraryUrl = (appCodeName) => {
3
+ const useLibraryUrl = () => {
4
4
  var _a;
5
5
  const {
6
6
  user,
7
7
  appCode
8
- } = useEdificeClient(), appName = libraryMaps[appCodeName ?? appCode], libraryApp = user == null ? void 0 : user.apps.find((app) => app.isExternal && app.address.includes("library"));
8
+ } = useEdificeClient(), appName = libraryMaps[appCode], libraryApp = user == null ? void 0 : user.apps.find((app) => app.isExternal && app.address.includes("library"));
9
9
  if (!libraryApp)
10
10
  return null;
11
11
  const libraryUrlSplit = (_a = libraryApp.address) == null ? void 0 : _a.split("?");
package/dist/icons.js CHANGED
@@ -68,104 +68,101 @@ import { default as default68 } from "./modules/icons/components/IconInbox.js";
68
68
  import { default as default69 } from "./modules/icons/components/IconInfoCircle.js";
69
69
  import { default as default70 } from "./modules/icons/components/IconInfoRectangle.js";
70
70
  import { default as default71 } from "./modules/icons/components/IconLandscape.js";
71
- import { default as default72 } from "./modules/icons/components/IconLibrary.js";
72
- import { default as default73 } from "./modules/icons/components/IconLink.js";
73
- import { default as default74 } from "./modules/icons/components/IconListOrder.js";
74
- import { default as default75 } from "./modules/icons/components/IconLoader.js";
75
- import { default as default76 } from "./modules/icons/components/IconLock.js";
76
- import { default as default77 } from "./modules/icons/components/IconMailRecall.js";
77
- import { default as default78 } from "./modules/icons/components/IconMail.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/IconOptions.js";
86
- import { default as default87 } from "./modules/icons/components/IconOrderedList.js";
87
- import { default as default88 } from "./modules/icons/components/IconPaperclip.js";
88
- import { default as default89 } from "./modules/icons/components/IconPause.js";
89
- import { default as default90 } from "./modules/icons/components/IconPinOff.js";
90
- import { default as default91 } from "./modules/icons/components/IconPinOn.js";
91
- import { default as default92 } from "./modules/icons/components/IconPlaceholder.js";
92
- import { default as default93 } from "./modules/icons/components/IconPlayFilled.js";
93
- import { default as default94 } from "./modules/icons/components/IconPlay.js";
94
- import { default as default95 } from "./modules/icons/components/IconPlus.js";
95
- import { default as default96 } from "./modules/icons/components/IconPointerDefault.js";
96
- import { default as default97 } from "./modules/icons/components/IconPointerHand.js";
97
- import { default as default98 } from "./modules/icons/components/IconPrint.js";
98
- import { default as default99 } from "./modules/icons/components/IconQuestionMark.js";
99
- import { default as default100 } from "./modules/icons/components/IconQuestion.js";
100
- import { default as default101 } from "./modules/icons/components/IconRafterDown.js";
101
- import { default as default102 } from "./modules/icons/components/IconRafterLeft.js";
102
- import { default as default103 } from "./modules/icons/components/IconRafterRight.js";
103
- import { default as default104 } from "./modules/icons/components/IconRafterUp.js";
104
- import { default as default105 } from "./modules/icons/components/IconReaction.js";
105
- import { default as default106 } from "./modules/icons/components/IconReadMail.js";
106
- import { default as default107 } from "./modules/icons/components/IconRecordPause.js";
107
- import { default as default108 } from "./modules/icons/components/IconRecordStop.js";
108
- import { default as default109 } from "./modules/icons/components/IconRecordVideo.js";
109
- import { default as default110 } from "./modules/icons/components/IconRecord.js";
110
- import { default as default111 } from "./modules/icons/components/IconRedo.js";
111
- import { default as default112 } from "./modules/icons/components/IconRefresh.js";
112
- import { default as default113 } from "./modules/icons/components/IconReset.js";
113
- import { default as default114 } from "./modules/icons/components/IconRestart.js";
114
- import { default as default115 } from "./modules/icons/components/IconRestore.js";
115
- import { default as default116 } from "./modules/icons/components/IconSave.js";
116
- import { default as default117 } from "./modules/icons/components/IconSearch.js";
117
- import { default as default118 } from "./modules/icons/components/IconSee.js";
118
- import { default as default119 } from "./modules/icons/components/IconSend.js";
119
- import { default as default120 } from "./modules/icons/components/IconSetBackground.js";
120
- import { default as default121 } from "./modules/icons/components/IconSettings.js";
121
- import { default as default122 } from "./modules/icons/components/IconShare.js";
122
- import { default as default123 } from "./modules/icons/components/IconSignature.js";
123
- import { default as default124 } from "./modules/icons/components/IconSmartphone.js";
124
- import { default as default125 } from "./modules/icons/components/IconSmiley.js";
125
- import { default as default126 } from "./modules/icons/components/IconSortAscendingLetters.js";
126
- import { default as default127 } from "./modules/icons/components/IconSortDescendingLetters.js";
127
- import { default as default128 } from "./modules/icons/components/IconSortDescending.js";
128
- import { default as default129 } from "./modules/icons/components/IconSortTime.js";
129
- import { default as default130 } from "./modules/icons/components/IconSpeechToText.js";
130
- import { default as default131 } from "./modules/icons/components/IconSplitCells.js";
131
- import { default as default132 } from "./modules/icons/components/IconSquareRoot.js";
132
- import { default as default133 } from "./modules/icons/components/IconStarFull.js";
133
- import { default as default134 } from "./modules/icons/components/IconStar.js";
134
- import { default as default135 } from "./modules/icons/components/IconSubscript.js";
135
- import { default as default136 } from "./modules/icons/components/IconSuccessFill.js";
136
- import { default as default137 } from "./modules/icons/components/IconSuccessOutline.js";
137
- import { default as default138 } from "./modules/icons/components/IconSuperscript.js";
138
- import { default as default139 } from "./modules/icons/components/IconTable.js";
139
- import { default as default140 } from "./modules/icons/components/IconTextBold.js";
140
- import { default as default141 } from "./modules/icons/components/IconTextColor.js";
141
- import { default as default142 } from "./modules/icons/components/IconTextHighlight.js";
142
- import { default as default143 } from "./modules/icons/components/IconTextItalic.js";
143
- import { default as default144 } from "./modules/icons/components/IconTextPage.js";
144
- import { default as default145 } from "./modules/icons/components/IconTextSize.js";
145
- import { default as default146 } from "./modules/icons/components/IconTextToSpeechOff.js";
146
- import { default as default147 } from "./modules/icons/components/IconTextToSpeech.js";
147
- import { default as default148 } from "./modules/icons/components/IconTextTypo.js";
148
- import { default as default149 } from "./modules/icons/components/IconTextUnderline.js";
149
- import { default as default150 } from "./modules/icons/components/IconTextVanilla.js";
150
- import { default as default151 } from "./modules/icons/components/IconToolCenter.js";
151
- import { default as default152 } from "./modules/icons/components/IconTool.js";
152
- import { default as default153 } from "./modules/icons/components/IconTrendingUp.js";
153
- import { default as default154 } from "./modules/icons/components/IconUndoAll.js";
154
- import { default as default155 } from "./modules/icons/components/IconUndo.js";
155
- import { default as default156 } from "./modules/icons/components/IconUnlink.js";
156
- import { default as default157 } from "./modules/icons/components/IconUnlock.js";
157
- import { default as default158 } from "./modules/icons/components/IconUnreadMail.js";
158
- import { default as default159 } from "./modules/icons/components/IconUpload.js";
159
- import { default as default160 } from "./modules/icons/components/IconUserSearch.js";
160
- import { default as default161 } from "./modules/icons/components/IconUser.js";
161
- import { default as default162 } from "./modules/icons/components/IconUsers.js";
162
- import { default as default163 } from "./modules/icons/components/IconVideo.js";
163
- import { default as default164 } from "./modules/icons/components/IconViewCalendar.js";
164
- import { default as default165 } from "./modules/icons/components/IconViewList.js";
165
- import { default as default166 } from "./modules/icons/components/IconWand.js";
166
- import { default as default167 } from "./modules/icons/components/IconWrite.js";
167
- import { default as default168 } from "./modules/icons/components/IconZoomIn.js";
168
- import { default as default169 } from "./modules/icons/components/IconZoomOut.js";
71
+ import { default as default72 } from "./modules/icons/components/IconLink.js";
72
+ import { default as default73 } from "./modules/icons/components/IconListOrder.js";
73
+ import { default as default74 } from "./modules/icons/components/IconLoader.js";
74
+ import { default as default75 } from "./modules/icons/components/IconLock.js";
75
+ import { default as default76 } from "./modules/icons/components/IconMailRecall.js";
76
+ import { default as default77 } from "./modules/icons/components/IconMail.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";
169
166
  export {
170
167
  default3 as IconAdd,
171
168
  default2 as IconAddUser,
@@ -237,102 +234,99 @@ export {
237
234
  default69 as IconInfoCircle,
238
235
  default70 as IconInfoRectangle,
239
236
  default71 as IconLandscape,
240
- default72 as IconLibrary,
241
- default73 as IconLink,
242
- default74 as IconListOrder,
243
- default75 as IconLoader,
244
- default76 as IconLock,
245
- default78 as IconMail,
246
- default77 as IconMailRecall,
247
- default79 as IconMergeCells,
248
- default80 as IconMessageInfo,
249
- default82 as IconMic,
250
- default81 as IconMicOff,
251
- default83 as IconMinus,
252
- default84 as IconMove,
253
- default85 as IconNoColors,
254
- default86 as IconOptions,
255
- default87 as IconOrderedList,
256
- default88 as IconPaperclip,
257
- default89 as IconPause,
258
- default90 as IconPinOff,
259
- default91 as IconPinOn,
260
- default92 as IconPlaceholder,
261
- default94 as IconPlay,
262
- default93 as IconPlayFilled,
263
- default95 as IconPlus,
264
- default96 as IconPointerDefault,
265
- default97 as IconPointerHand,
266
- default98 as IconPrint,
267
- default100 as IconQuestion,
268
- default99 as IconQuestionMark,
269
- default101 as IconRafterDown,
270
- default102 as IconRafterLeft,
271
- default103 as IconRafterRight,
272
- default104 as IconRafterUp,
273
- default105 as IconReaction,
274
- default106 as IconReadMail,
275
- default110 as IconRecord,
276
- default107 as IconRecordPause,
277
- default108 as IconRecordStop,
278
- default109 as IconRecordVideo,
279
- default111 as IconRedo,
280
- default112 as IconRefresh,
281
- default113 as IconReset,
282
- default114 as IconRestart,
283
- default115 as IconRestore,
284
- default116 as IconSave,
285
- default117 as IconSearch,
286
- default118 as IconSee,
287
- default119 as IconSend,
288
- default120 as IconSetBackground,
289
- default121 as IconSettings,
290
- default122 as IconShare,
291
- default123 as IconSignature,
292
- default124 as IconSmartphone,
293
- default125 as IconSmiley,
294
- default126 as IconSortAscendingLetters,
295
- default128 as IconSortDescending,
296
- default127 as IconSortDescendingLetters,
297
- default129 as IconSortTime,
298
- default130 as IconSpeechToText,
299
- default131 as IconSplitCells,
300
- default132 as IconSquareRoot,
301
- default134 as IconStar,
302
- default133 as IconStarFull,
303
- default135 as IconSubscript,
304
- default136 as IconSuccessFill,
305
- default137 as IconSuccessOutline,
306
- default138 as IconSuperscript,
307
- default139 as IconTable,
308
- default140 as IconTextBold,
309
- default141 as IconTextColor,
310
- default142 as IconTextHighlight,
311
- default143 as IconTextItalic,
312
- default144 as IconTextPage,
313
- default145 as IconTextSize,
314
- default147 as IconTextToSpeech,
315
- default146 as IconTextToSpeechOff,
316
- default148 as IconTextTypo,
317
- default149 as IconTextUnderline,
318
- default150 as IconTextVanilla,
319
- default152 as IconTool,
320
- default151 as IconToolCenter,
321
- default153 as IconTrendingUp,
322
- default155 as IconUndo,
323
- default154 as IconUndoAll,
324
- default156 as IconUnlink,
325
- default157 as IconUnlock,
326
- default158 as IconUnreadMail,
327
- default159 as IconUpload,
328
- default161 as IconUser,
329
- default160 as IconUserSearch,
330
- default162 as IconUsers,
331
- default163 as IconVideo,
332
- default164 as IconViewCalendar,
333
- default165 as IconViewList,
334
- default166 as IconWand,
335
- default167 as IconWrite,
336
- default168 as IconZoomIn,
337
- default169 as IconZoomOut
237
+ default72 as IconLink,
238
+ default73 as IconListOrder,
239
+ default74 as IconLoader,
240
+ default75 as IconLock,
241
+ default77 as IconMail,
242
+ default76 as IconMailRecall,
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
338
332
  };
package/dist/index.js CHANGED
@@ -92,11 +92,12 @@ 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/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";
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";
100
101
  import { AccessiblePalette, DefaultPalette } from "./components/ColorPicker/ColorPalette.js";
101
102
  import { DropzoneContext, useDropzoneContext } from "./components/Dropzone/DropzoneContext.js";
102
103
  import { Column, Grid } from "./components/Grid/Grid.js";
@@ -159,6 +160,7 @@ export {
159
160
  default92 as Embed,
160
161
  default21 as EmptyScreen,
161
162
  ExternalLinker,
163
+ default95 as FileCard,
162
164
  default22 as Flex,
163
165
  default24 as FormControl,
164
166
  default23 as FormText,
@@ -176,7 +178,7 @@ export {
176
178
  default29 as Loading,
177
179
  default30 as LoadingScreen,
178
180
  default31 as Logo,
179
- default95 as MediaLibrary,
181
+ default96 as MediaLibrary,
180
182
  Menu,
181
183
  MockedProvider,
182
184
  default32 as Modal,
@@ -207,13 +209,13 @@ export {
207
209
  TreeNode,
208
210
  TreeNodeFolderWrapper,
209
211
  default46 as TreeView,
210
- default96 as VideoEmbed,
211
- default97 as VideoRecorder,
212
+ default97 as VideoEmbed,
213
+ default98 as VideoRecorder,
212
214
  default47 as VisuallyHidden,
213
215
  WORKSPACE_SHARED_FOLDER_ID,
214
216
  WORKSPACE_USER_FOLDER_ID,
215
- default98 as Workspace,
216
- default99 as WorkspaceFolders,
217
+ default99 as Workspace,
218
+ default100 as WorkspaceFolders,
217
219
  addNode,
218
220
  arrayUnique,
219
221
  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 {
@@ -68,7 +68,6 @@ export { default as IconInbox } from './IconInbox';
68
68
  export { default as IconInfoCircle } from './IconInfoCircle';
69
69
  export { default as IconInfoRectangle } from './IconInfoRectangle';
70
70
  export { default as IconLandscape } from './IconLandscape';
71
- export { default as IconLibrary } from './IconLibrary';
72
71
  export { default as IconLink } from './IconLink';
73
72
  export { default as IconListOrder } from './IconListOrder';
74
73
  export { default as IconLoader } from './IconLoader';
@@ -129,8 +128,6 @@ export { default as IconSortTime } from './IconSortTime';
129
128
  export { default as IconSpeechToText } from './IconSpeechToText';
130
129
  export { default as IconSplitCells } from './IconSplitCells';
131
130
  export { default as IconSquareRoot } from './IconSquareRoot';
132
- export { default as IconStarFull } from './IconStarFull';
133
- export { default as IconStar } from './IconStar';
134
131
  export { default as IconSubscript } from './IconSubscript';
135
132
  export { default as IconSuccessFill } from './IconSuccessFill';
136
133
  export { default as IconSuccessOutline } from './IconSuccessOutline';
@@ -7,7 +7,7 @@ export interface FileCardProps extends CardProps {
7
7
  doc: WorkspaceElement;
8
8
  }
9
9
  declare const FileCard: {
10
- ({ doc, isClickable, isSelectable, isSelected, onClick, className, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
10
+ ({ doc, isClickable, isSelectable, isSelected, onClick, className, onSelect, isFocused, app, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  export default FileCard;
@@ -15,7 +15,10 @@ const FileCard = ({
15
15
  isSelectable = !1,
16
16
  isSelected = !1,
17
17
  onClick,
18
- className
18
+ className,
19
+ onSelect,
20
+ isFocused,
21
+ app
19
22
  }) => {
20
23
  var _a;
21
24
  const ref = useRef(null), type = DocumentHelper.getRole(doc);
@@ -78,7 +81,7 @@ const FileCard = ({
78
81
  backgroundImage: `url(${mediaSrc})`,
79
82
  backgroundSize: "cover"
80
83
  };
81
- return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
84
+ return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, app, isFocused, onSelect, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
82
85
  /* @__PURE__ */ jsx("div", { ref, className: file, style: {
83
86
  aspectRatio: "16/10",
84
87
  ...imageStyles
@@ -2,6 +2,7 @@ export * from './AudioRecorder';
2
2
  export * from './Embed';
3
3
  export * from './ImageEditor';
4
4
  export * from './ImagePicker';
5
+ export * from './FileCard';
5
6
  export * from './Linker';
6
7
  export * from './MediaLibrary';
7
8
  export * from './VideoEmbed';
@@ -2,23 +2,25 @@ 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/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";
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";
10
11
  import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
11
12
  import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
12
13
  export {
13
14
  default2 as AudioRecorder,
14
15
  default3 as Embed,
15
16
  ExternalLinker,
17
+ default6 as FileCard,
16
18
  default4 as ImageEditor,
17
19
  default5 as ImagePicker,
18
20
  InternalLinker,
19
- default6 as MediaLibrary,
20
- default7 as VideoEmbed,
21
- default8 as VideoRecorder,
22
- default9 as Workspace,
23
- default10 as WorkspaceFolders
21
+ default7 as MediaLibrary,
22
+ default8 as VideoEmbed,
23
+ default9 as VideoRecorder,
24
+ default10 as Workspace,
25
+ default11 as WorkspaceFolders
24
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.2.11-develop-enabling.20250704193152",
3
+ "version": "2.2.11-develop-pedago.20250707105307",
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/bootstrap": "2.2.11-develop-enabling.20250704193152",
134
- "@edifice.io/tiptap-extensions": "2.2.11-develop-enabling.20250704193152",
135
- "@edifice.io/utilities": "2.2.11-develop-enabling.20250704193152"
133
+ "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250707105307",
134
+ "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250707105307",
135
+ "@edifice.io/utilities": "2.2.11-develop-pedago.20250707105307"
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-enabling.20250704193152",
167
- "@edifice.io/config": "2.2.11-develop-enabling.20250704193152"
166
+ "@edifice.io/client": "2.2.11-develop-pedago.20250707105307",
167
+ "@edifice.io/config": "2.2.11-develop-pedago.20250707105307"
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 SvgIconLibrary: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconLibrary;
@@ -1,12 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconLibrary = ({
3
- title,
4
- titleId,
5
- ...props
6
- }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", "aria-hidden": "true", viewBox: "0 0 24 24", "aria-labelledby": titleId, ...props, children: [
7
- title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
8
- /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M24.02 12.14c0 3.2-1.24 6.22-3.51 8.5s-5.3 3.51-8.5 3.51A12.03 12.03 0 0 1 12 .11c1.38 0 2.37.23 3.65.68.25.08.48.18.67.26l.08.03.06.04a.76.76 0 0 1 .29.26.73.73 0 0 1 .13.45.78.78 0 0 1-.76.79.7.7 0 0 1-.34-.1 26 26 0 0 0-.66-.25 8.6 8.6 0 0 0-3.13-.6 10.46 10.46 0 1 0 10.47 10.47c0-1.72-.37-3.1-1.18-4.62a14 14 0 0 1-.2-.36L21.03 7 21 6.96l-.03-.03-.01-.04-.04-.06-.14-.24-.04.14a.73.73 0 0 1-.89.53.73.73 0 0 1-.45-.34.76.76 0 0 1-.07-.55l.46-1.76a.78.78 0 0 1 .36-.49.87.87 0 0 1 .63-.06l1.75.56a.73.73 0 0 1 .47.9v.01a.73.73 0 0 1-.72.5c.17.3.32.59.4.77a10.9 10.9 0 0 1 1.35 5.33zm-4.18-8.96a1.38 1.38 0 1 1-2.76 0 1.38 1.38 0 0 1 2.76 0m-7.78 1.44c-2.62 0-5.15 2.02-5.15 4.9 0 3.5 2.48 4.4 2.76 6.68h4.77c.29-2.28 2.76-3.17 2.76-6.68 0-2.88-2.53-4.9-5.14-4.9m-.48 1.1c.28-.02.52.12.5.4a.45.45 0 0 1-.4.45 3.21 3.21 0 0 0-2.84 3.2c0 .32.05.64.14.94.09.22-.05.5-.27.57s-.5-.09-.55-.32a4 4 0 0 1-.18-1.2 4.08 4.08 0 0 1 3.6-4.04M9.7 17.05v.85h4.72v-.85zm0 1.71v.43c0 .5.4.86.85.86h3a.86.86 0 0 0 .87-.86v-.43zm1.5 1.72a.86.86 0 1 0 1.71 0z" })
9
- ] });
10
- export {
11
- SvgIconLibrary 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 SvgIconStar: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconStar;
@@ -1,13 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconStar = ({
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("g", { clipPath: "url(#icon-star_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.272 1.977c.772-1.323 2.684-1.323 3.455 0l2.769 4.746 5.16 1.19a2 2 0 0 1 1.099 3.216l-3.653 4.464.778 5.446c.224 1.569-1.379 2.763-2.818 2.099L12 20.8l-5.062 2.337c-1.44.664-3.042-.53-2.818-2.1l.778-5.445-3.653-4.464a2 2 0 0 1 1.098-3.215l5.161-1.191zm4.496 5.754L12 2.985 9.232 7.73a2 2 0 0 1-1.278.94l-5.16 1.191 3.652 4.465a2 2 0 0 1 .432 1.55L6.1 21.321l5.062-2.337a2 2 0 0 1 1.676 0l5.062 2.337-.778-5.446a2 2 0 0 1 .432-1.55l3.653-4.464-5.16-1.19a2 2 0 0 1-1.279-.941", clipRule: "evenodd" }) }),
9
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-star_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
10
- ] });
11
- export {
12
- SvgIconStar as default
13
- };
@@ -1,7 +0,0 @@
1
- import { SVGProps } from 'react';
2
- interface SVGRProps {
3
- title?: string;
4
- titleId?: string;
5
- }
6
- declare const SvgIconStarFull: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
7
- export default SvgIconStarFull;
@@ -1,13 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- const SvgIconStarFull = ({
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("g", { clipPath: "url(#icon-star-full_svg__a)", children: /* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.278 1.977c.77-1.323 2.675-1.323 3.444 0l2.759 4.746 5.143 1.19c1.44.334 2.03 2.068 1.094 3.216l-3.64 4.464.775 5.446c.224 1.569-1.374 2.763-2.808 2.099L12 20.8l-5.045 2.337c-1.434.664-3.032-.53-2.808-2.1l.775-5.445-3.64-4.464C.346 9.98.936 8.247 2.376 7.914L7.52 6.723z", clipRule: "evenodd" }) }),
9
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "icon-star-full_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
10
- ] });
11
- export {
12
- SvgIconStarFull as default
13
- };