@edifice.io/react 2.5.2-develop-b2school-actualites.20251202141821 → 2.5.2-develop-integration.20251203162637

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 (61) hide show
  1. package/dist/components/AppIcon/index.d.ts +0 -1
  2. package/dist/components/Flex/Flex.js +1 -1
  3. package/dist/components/Menu/components/MenuButton.d.ts +0 -2
  4. package/dist/components/Menu/components/MenuButton.js +4 -13
  5. package/dist/components/Select/Select.d.ts +2 -6
  6. package/dist/components/Select/Select.js +4 -10
  7. package/dist/components/index.d.ts +0 -2
  8. package/dist/editor.js +36 -40
  9. package/dist/hooks/index.d.ts +0 -1
  10. package/dist/icons-apps.js +234 -232
  11. package/dist/icons.js +262 -262
  12. package/dist/index.js +74 -84
  13. package/dist/modals.js +6 -8
  14. package/dist/modules/comments/components/Comment.js +3 -5
  15. package/dist/modules/comments/components/CommentList.js +1 -1
  16. package/dist/modules/comments/constants.d.ts +1 -4
  17. package/dist/modules/comments/constants.js +2 -2
  18. package/dist/modules/comments/provider/CommentProvider.js +2 -2
  19. package/dist/modules/comments/types.d.ts +2 -2
  20. package/dist/modules/editor/components/Editor/index.d.ts +0 -2
  21. package/dist/modules/icons/components/IconUndoSlashed.d.ts +7 -0
  22. package/dist/modules/icons/components/IconUndoSlashed.js +12 -0
  23. package/dist/modules/icons/components/apps/IconAssistancetic.d.ts +7 -0
  24. package/dist/modules/icons/components/apps/IconAssistancetic.js +14 -0
  25. package/dist/modules/icons/components/apps/index.d.ts +1 -0
  26. package/dist/modules/icons/components/index.d.ts +1 -1
  27. package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -0
  28. package/dist/modules/modals/ResourceModal/ResourceModal.js +10 -3
  29. package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +1 -1
  30. package/dist/modules/modals/ShareModal/ShareBookmark.js +2 -5
  31. package/dist/modules/modals/ShareModal/ShareModal.d.ts +11 -1
  32. package/dist/modules/modals/ShareModal/ShareModal.js +105 -13
  33. package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +1 -2
  34. package/dist/modules/modals/ShareModal/hooks/useSearch.js +2 -3
  35. package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +5 -12
  36. package/dist/modules/modals/ShareModal/hooks/useShare.js +13 -20
  37. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
  38. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -1
  39. package/dist/modules/modals/ShareModal/index.d.ts +1 -3
  40. package/dist/utilities/index.d.ts +0 -1
  41. package/package.json +6 -6
  42. package/dist/components/Divider/Divider.d.ts +0 -5
  43. package/dist/components/Divider/Divider.js +0 -21
  44. package/dist/components/Divider/index.d.ts +0 -1
  45. package/dist/components/SeparatedInfo/SeparatedInfo.d.ts +0 -6
  46. package/dist/components/SeparatedInfo/SeparatedInfo.js +0 -13
  47. package/dist/components/SeparatedInfo/index.d.ts +0 -1
  48. package/dist/hooks/useInfiniteScroll/index.d.ts +0 -1
  49. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +0 -33
  50. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +0 -20
  51. package/dist/modules/editor/components/Editor/EditorPreview.d.ts +0 -14
  52. package/dist/modules/editor/components/Editor/EditorPreview.js +0 -56
  53. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.d.ts +0 -8
  54. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +0 -24
  55. package/dist/modules/icons/components/IconClockAlert.d.ts +0 -7
  56. package/dist/modules/icons/components/IconClockAlert.js +0 -17
  57. package/dist/modules/modals/ShareModal/ShareResources.d.ts +0 -173
  58. package/dist/modules/modals/ShareModal/ShareResources.js +0 -137
  59. package/dist/utilities/react-query/index.d.ts +0 -1
  60. package/dist/utilities/react-query/react-query-utils.d.ts +0 -21
  61. package/dist/utilities/react-query/react-query-utils.js +0 -13
@@ -1,2 +1 @@
1
- export * from './AppIcon';
2
1
  export { default as AppIcon } from './AppIcon';
@@ -13,7 +13,7 @@ const Flex = /* @__PURE__ */ forwardRef(({
13
13
  children,
14
14
  ...restProps
15
15
  }, ref) => {
16
- 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 === "reverse" ? "wrap-reverse" : wrap}`, className);
16
+ 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);
17
17
  return /* @__PURE__ */ jsx(Component, { ref, className: classes, ...restProps, children });
18
18
  });
19
19
  export {
@@ -1,7 +1,5 @@
1
1
  import { ButtonProps } from '../../Button';
2
2
  export type MenuButtonProps = Pick<ButtonProps, 'children' | 'leftIcon' | 'rightIcon' | 'onClick'> & {
3
3
  selected: boolean;
4
- className?: string;
5
- size?: 'md' | 'lg';
6
4
  };
7
5
  export declare const MenuButton: (props: Partial<MenuButtonProps>) => import("react/jsx-runtime").JSX.Element;
@@ -8,22 +8,13 @@ const MenuButton = (props) => {
8
8
  leftIcon,
9
9
  rightIcon,
10
10
  onClick,
11
- children,
12
- className,
13
- size
11
+ children
14
12
  } = props, {
15
13
  childProps
16
14
  } = useMenuContext();
17
- return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100 overflow-hidden", {
18
- selected,
19
- "menu-button-lg": size === "lg"
20
- }, className), leftIcon, rightIcon, onClick, ...childProps, style: size === "lg" ? {
21
- height: "auto"
22
- } : void 0, children: /* @__PURE__ */ jsx("span", { className: clsx("text-truncate", {
23
- "text-truncate-2 text-start ms-0": size === "lg"
24
- }), style: {
25
- overflowWrap: "break-word"
26
- }, children }) });
15
+ return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100", {
16
+ selected
17
+ }), leftIcon, rightIcon, onClick, ...childProps, children });
27
18
  };
28
19
  export {
29
20
  MenuButton
@@ -14,7 +14,7 @@ export interface OptionsType {
14
14
  */
15
15
  icon?: JSX.Element;
16
16
  }
17
- export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<DropdownTriggerProps, 'badgeContent' | 'defaultValue'> {
17
+ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<DropdownTriggerProps, 'badgeContent'> {
18
18
  /**
19
19
  * Controlled value
20
20
  */
@@ -31,17 +31,13 @@ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<Dropd
31
31
  * Callback to get value
32
32
  */
33
33
  onValueChange?: (option: OptionsType | string) => void;
34
- /**
35
- * Default value
36
- */
37
- defaultValue?: string;
38
34
  }
39
35
  /**
40
36
  *
41
37
  * Select component is based on Dropdown Component. It extends `Dropdown` and `Dropdown.Trigger` props `block`, `overflow`, `icon`, `variant`, `size`, `disabled`
42
38
  */
43
39
  declare const Select: {
44
- ({ selectedValue, icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, defaultValue, }: SelectProps): import("react/jsx-runtime").JSX.Element;
40
+ ({ selectedValue, icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
45
41
  displayName: string;
46
42
  };
47
43
  export default Select;
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useTranslation } from "react-i18next";
4
- import Dropdown from "../Dropdown/Dropdown.js";
5
4
  import SelectTrigger from "./SelectTrigger.js";
5
+ import Dropdown from "../Dropdown/Dropdown.js";
6
6
  const Select = ({
7
7
  selectedValue,
8
8
  icon,
@@ -13,8 +13,7 @@ const Select = ({
13
13
  size,
14
14
  disabled,
15
15
  placeholderOption,
16
- onValueChange,
17
- defaultValue
16
+ onValueChange
18
17
  }) => {
19
18
  const [localValue, setLocalValue] = useState(), {
20
19
  t
@@ -26,15 +25,10 @@ const Select = ({
26
25
  const value = typeof localValue == "object" ? localValue.value : localValue;
27
26
  onValueChange == null || onValueChange(value);
28
27
  }
29
- }, [localValue]), useEffect(() => {
30
- if (defaultValue) {
31
- const foundOption = options.find((option) => (typeof option == "object" ? option.value : option) === defaultValue);
32
- foundOption !== void 0 && setLocalValue(foundOption);
33
- }
34
- }, []);
28
+ }, [localValue]);
35
29
  const label = typeof localValue == "object" ? localValue.label : localValue, iconChange = typeof localValue == "object" ? localValue.icon : void 0;
36
30
  return /* @__PURE__ */ jsxs(Dropdown, { overflow, block, children: [
37
- /* @__PURE__ */ jsx(SelectTrigger, { icon: iconChange || icon, label: /* @__PURE__ */ jsx("span", { className: "text-truncate", children: t(label || placeholderOption) }), variant, size, disabled }),
31
+ /* @__PURE__ */ jsx(SelectTrigger, { icon: iconChange || icon, label: t(label || placeholderOption), variant, size, disabled }),
38
32
  /* @__PURE__ */ jsx(Dropdown.Menu, { role: "listbox", children: options == null ? void 0 : options.map((option) => {
39
33
  const value = typeof option == "object" ? option.value : option, label2 = typeof option == "object" ? option.label : option, icon2 = typeof option == "object" ? option.icon : void 0;
40
34
  return /* @__PURE__ */ jsx(Dropdown.Item, { type: "action", onClick: () => setLocalValue(option), icon: icon2, children: label2 }, value);
@@ -12,7 +12,6 @@ export * from './Card';
12
12
  export * from './Checkbox';
13
13
  export * from './ColorPicker';
14
14
  export * from './Combobox';
15
- export * from './Divider';
16
15
  export * from './Dropdown';
17
16
  export * from './Dropzone';
18
17
  export * from './EmptyScreen';
@@ -36,7 +35,6 @@ export * from './Radio';
36
35
  export * from './RadioCard';
37
36
  export * from './SearchBar';
38
37
  export * from './Select';
39
- export * from './SeparatedInfo';
40
38
  export * from './Skeleton';
41
39
  export * from './StackedGroup';
42
40
  export * from './Stepper';
package/dist/editor.js CHANGED
@@ -1,26 +1,24 @@
1
1
  import { EditorContent, Editor, useEditor } from "@tiptap/react";
2
2
  import { default as default2 } from "@tiptap/starter-kit";
3
3
  import { default as default3 } from "./modules/editor/components/Editor/Editor.js";
4
- import { default as default4 } from "./modules/editor/components/Editor/EditorPreview.js";
5
- import { default as default5 } from "./modules/editor/components/Editor/EditorPreviewSkeleton.js";
6
- import { default as default6 } from "./modules/editor/components/Editor/EditorSkeleton.js";
7
- import { default as default7 } from "./modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js";
8
- import { default as default8 } from "./modules/editor/components/NodeView/AttachmentNodeView.js";
9
- import { default as default9 } from "./modules/editor/components/NodeView/AudioNodeView.js";
10
- import { default as default10 } from "./modules/editor/components/NodeView/ConversationHistoryNodeView.js";
11
- import { default as default11 } from "./modules/editor/components/NodeView/ImageNodeView.js";
12
- import { default as default12 } from "./modules/editor/components/NodeView/LinkerNodeView.js";
13
- import { default as default13 } from "./modules/editor/components/NodeView/VideoNodeView.js";
14
- import { default as default14 } from "./modules/editor/components/NodeView/InformationPaneNodeView.js";
15
- import { default as default15 } from "./modules/editor/components/NodeView/IframeNodeView.js";
16
- import { default as default16 } from "./modules/editor/components/Renderer/AttachmentRenderer.js";
17
- import { default as default17 } from "./modules/editor/components/Renderer/AudioRenderer.js";
18
- import { default as default18 } from "./modules/editor/components/Renderer/ConversationHistoryRenderer.js";
19
- import { default as default19 } from "./modules/editor/components/Renderer/LinkerRenderer.js";
20
- import { default as default20 } from "./modules/editor/components/Renderer/MediaRenderer.js";
21
- import { default as default21 } from "./modules/editor/components/Renderer/InformationPaneRenderer.js";
22
- import { default as default22 } from "./modules/editor/components/Toolbar/TableToolbar.js";
23
- import { default as default23 } from "./modules/editor/components/Toolbar/LinkToolbar.js";
4
+ import { default as default4 } from "./modules/editor/components/Editor/EditorSkeleton.js";
5
+ import { default as default5 } from "./modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js";
6
+ import { default as default6 } from "./modules/editor/components/NodeView/AttachmentNodeView.js";
7
+ import { default as default7 } from "./modules/editor/components/NodeView/AudioNodeView.js";
8
+ import { default as default8 } from "./modules/editor/components/NodeView/ConversationHistoryNodeView.js";
9
+ import { default as default9 } from "./modules/editor/components/NodeView/ImageNodeView.js";
10
+ import { default as default10 } from "./modules/editor/components/NodeView/LinkerNodeView.js";
11
+ import { default as default11 } from "./modules/editor/components/NodeView/VideoNodeView.js";
12
+ import { default as default12 } from "./modules/editor/components/NodeView/InformationPaneNodeView.js";
13
+ import { default as default13 } from "./modules/editor/components/NodeView/IframeNodeView.js";
14
+ import { default as default14 } from "./modules/editor/components/Renderer/AttachmentRenderer.js";
15
+ import { default as default15 } from "./modules/editor/components/Renderer/AudioRenderer.js";
16
+ import { default as default16 } from "./modules/editor/components/Renderer/ConversationHistoryRenderer.js";
17
+ import { default as default17 } from "./modules/editor/components/Renderer/LinkerRenderer.js";
18
+ import { default as default18 } from "./modules/editor/components/Renderer/MediaRenderer.js";
19
+ import { default as default19 } from "./modules/editor/components/Renderer/InformationPaneRenderer.js";
20
+ import { default as default20 } from "./modules/editor/components/Toolbar/TableToolbar.js";
21
+ import { default as default21 } from "./modules/editor/components/Toolbar/LinkToolbar.js";
24
22
  import { EditorToolbar } from "./modules/editor/components/EditorToolbar/EditorToolbar.js";
25
23
  import { useActionOptions } from "./modules/editor/hooks/useActionOptions.js";
26
24
  import { useCommentEditor } from "./modules/editor/hooks/useCommentEditor.js";
@@ -36,32 +34,30 @@ import { useSpeechSynthetisis } from "./modules/editor/hooks/useSpeechSynthetisi
36
34
  import { useTipTapEditor } from "./modules/editor/hooks/useTipTapEditor.js";
37
35
  import { useCantooEditor } from "./modules/editor/hooks/useCantooEditor.js";
38
36
  export {
39
- default8 as AttachmentNodeView,
40
- default16 as AttachmentRenderer,
41
- default9 as AudioNodeView,
42
- default17 as AudioRenderer,
43
- default7 as BubbleMenuEditImage,
44
- default10 as ConversationHistoryNodeView,
45
- default18 as ConversationHistoryRenderer,
37
+ default6 as AttachmentNodeView,
38
+ default14 as AttachmentRenderer,
39
+ default7 as AudioNodeView,
40
+ default15 as AudioRenderer,
41
+ default5 as BubbleMenuEditImage,
42
+ default8 as ConversationHistoryNodeView,
43
+ default16 as ConversationHistoryRenderer,
46
44
  default3 as Editor,
47
45
  EditorContent,
48
46
  EditorContext,
49
47
  Editor as EditorInstance,
50
- default4 as EditorPreview,
51
- default5 as EditorPreviewSkeleton,
52
- default6 as EditorSkeleton,
48
+ default4 as EditorSkeleton,
53
49
  EditorToolbar,
54
- default15 as IframeNodeView,
55
- default11 as ImageNodeView,
56
- default14 as InformationPaneNodeView,
57
- default21 as InformationPaneRenderer,
58
- default23 as LinkToolbar,
59
- default12 as LinkerNodeView,
60
- default19 as LinkerRenderer,
61
- default20 as MediaRenderer,
50
+ default13 as IframeNodeView,
51
+ default9 as ImageNodeView,
52
+ default12 as InformationPaneNodeView,
53
+ default19 as InformationPaneRenderer,
54
+ default21 as LinkToolbar,
55
+ default10 as LinkerNodeView,
56
+ default17 as LinkerRenderer,
57
+ default18 as MediaRenderer,
62
58
  default2 as StarterKit,
63
- default22 as TableToolbar,
64
- default13 as VideoNodeView,
59
+ default20 as TableToolbar,
60
+ default11 as VideoNodeView,
65
61
  useActionOptions,
66
62
  useCantooEditor,
67
63
  useCommentEditor,
@@ -15,7 +15,6 @@ export * from './useHasWorkflow';
15
15
  export * from './useHover';
16
16
  export * from './useHttpErrorToast';
17
17
  export * from './useImage';
18
- export * from './useInfiniteScroll';
19
18
  export * from './useIsAdml';
20
19
  export * from './useIsAdmc';
21
20
  export * from './useIsAdmlcOrAdmc';