@edifice.io/react 2.5.15-develop-enabling.20260326100838 → 2.5.15-develop-pedago.20260327124327

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 (98) hide show
  1. package/dist/components/AddAttachments/AddAttachments.d.ts +6 -3
  2. package/dist/components/AddAttachments/AddAttachments.js +17 -29
  3. package/dist/components/AddAttachments/hooks/useFileToAttachment.d.ts +3 -0
  4. package/dist/components/AddAttachments/hooks/useFileToAttachment.js +16 -0
  5. package/dist/components/AddAttachments/models/attachment.d.ts +1 -0
  6. package/dist/components/Card/Card.js +1 -1
  7. package/dist/components/Combobox/Combobox.js +1 -1
  8. package/dist/components/Dropdown/Dropdown.js +1 -1
  9. package/dist/components/Form/FormControl.js +1 -1
  10. package/dist/components/Layout/components/WidgetApps.js +1 -1
  11. package/dist/components/Modal/Modal.js +1 -1
  12. package/dist/components/PreventPropagation/PreventPropagation.js +1 -1
  13. package/dist/components/PromotionCard/PromotionCard.js +1 -1
  14. package/dist/components/SearchBar/SearchBar.d.ts +2 -2
  15. package/dist/components/Table/components/Table.js +1 -1
  16. package/dist/components/Tree/components/SortableTree.js +4 -3
  17. package/dist/components/Tree/components/Tree.js +4 -3
  18. package/dist/components/UserRightsList/SaveBookmark.d.ts +5 -0
  19. package/dist/components/UserRightsList/SaveBookmark.js +29 -0
  20. package/dist/components/UserRightsList/UserRightsBookmarkRow.d.ts +11 -0
  21. package/dist/components/UserRightsList/UserRightsBookmarkRow.js +30 -0
  22. package/dist/components/UserRightsList/UserRightsItem.d.ts +13 -0
  23. package/dist/components/UserRightsList/UserRightsItem.js +36 -0
  24. package/dist/components/UserRightsList/UserRightsList.d.ts +19 -0
  25. package/dist/components/UserRightsList/UserRightsList.js +94 -0
  26. package/dist/components/UserRightsList/helpers/rightsHelpers.d.ts +9 -0
  27. package/dist/components/UserRightsList/helpers/rightsHelpers.js +53 -0
  28. package/dist/components/UserRightsList/hooks/useBookmarkEntries.d.ts +19 -0
  29. package/dist/components/UserRightsList/hooks/useBookmarkEntries.js +58 -0
  30. package/dist/components/UserRightsList/hooks/useSharingItems.d.ts +20 -0
  31. package/dist/components/UserRightsList/hooks/useSharingItems.js +57 -0
  32. package/dist/components/UserRightsList/index.d.ts +2 -0
  33. package/dist/components/UserRightsList/types/types.d.ts +34 -0
  34. package/dist/components/UserRightsList/types/types.js +6 -0
  35. package/dist/components/UserSearch/UserSearch.d.ts +7 -0
  36. package/dist/components/UserSearch/UserSearch.js +82 -0
  37. package/dist/components/UserSearch/index.d.ts +3 -0
  38. package/dist/components/UserSearch/types/types.d.ts +24 -0
  39. package/dist/components/UserSearch/types/visible.d.ts +24 -0
  40. package/dist/components/UserSearch/types/visible.js +4 -0
  41. package/dist/components/index.d.ts +2 -0
  42. package/dist/hooks/useConf/useConf.d.ts +1 -1
  43. package/dist/hooks/useDirectory/useDirectory.d.ts +3 -2
  44. package/dist/hooks/useDropdown/useDropdown.js +0 -2
  45. package/dist/hooks/useDropzone/useDropzone.js +4 -4
  46. package/dist/hooks/useSession/useSession.d.ts +1 -1
  47. package/dist/hooks/useThumbnail/useThumbnail.d.ts +1 -1
  48. package/dist/hooks/useThumbnail/useThumbnail.js +1 -5
  49. package/dist/hooks/useUpload/useUpload.js +5 -2
  50. package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +1 -1
  51. package/dist/icons.js +180 -176
  52. package/dist/index.js +10 -0
  53. package/dist/modules/editor/components/Editor/EditorPreview.js +1 -1
  54. package/dist/modules/icons/components/IconParcoursCitoyen.d.ts +7 -0
  55. package/dist/modules/icons/components/IconParcoursCitoyen.js +14 -0
  56. package/dist/modules/icons/components/IconParcoursSecours.d.ts +7 -0
  57. package/dist/modules/icons/components/IconParcoursSecours.js +14 -0
  58. package/dist/modules/icons/components/index.d.ts +2 -0
  59. package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
  60. package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -1
  61. package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
  62. package/dist/modules/modals/ShareModal/ShareResources.d.ts +53 -4
  63. package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
  64. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -2
  65. package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
  66. package/dist/modules/multimedia/FileCard/FileCard._.d.ts +17 -0
  67. package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +10 -24
  68. package/dist/modules/multimedia/ImageEditor/effects/blur.d.ts +5 -7
  69. package/dist/modules/multimedia/ImageEditor/effects/blur.js +18 -26
  70. package/dist/modules/multimedia/ImageEditor/effects/crop.d.ts +5 -4
  71. package/dist/modules/multimedia/ImageEditor/effects/crop.js +26 -42
  72. package/dist/modules/multimedia/ImageEditor/effects/misc.d.ts +16 -10
  73. package/dist/modules/multimedia/ImageEditor/effects/misc.js +12 -27
  74. package/dist/modules/multimedia/ImageEditor/effects/resize.d.ts +7 -3
  75. package/dist/modules/multimedia/ImageEditor/effects/resize.js +22 -31
  76. package/dist/modules/multimedia/ImageEditor/effects/rotate.js +3 -2
  77. package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +41 -40
  78. package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.d.ts +1 -1
  79. package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +3 -9
  80. package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +1 -4
  81. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +3 -1
  82. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -1
  83. package/dist/modules/multimedia/LinkerCard/LinkerCard._.d.ts +1 -1
  84. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +0 -1
  85. package/dist/modules/multimedia/UploadCard/UploadCard._.d.ts +1 -1
  86. package/dist/modules/multimedia/UploadFiles/UploadFiles.js +4 -4
  87. package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
  88. package/dist/types/index.d.ts +1 -0
  89. package/dist/types/sharing.d.ts +8 -0
  90. package/dist/utilities/index.d.ts +1 -0
  91. package/dist/utilities/react-query/react-query-utils.d.ts +1 -1
  92. package/dist/utilities/rotate-transition-style/get-rotate-transition-style.d.ts +5 -0
  93. package/dist/utilities/rotate-transition-style/get-rotate-transition-style.js +12 -0
  94. package/dist/utilities/rotate-transition-style/index.d.ts +1 -0
  95. package/package.json +54 -53
  96. package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.d.ts +0 -12
  97. package/dist/modules/multimedia/ImageEditor/effects/constants.d.ts +0 -2
  98. package/dist/modules/multimedia/ImageEditor/effects/constants.js +0 -4
@@ -1,7 +1,8 @@
1
1
  import { toBlob, updateImageFromBlob, createImageSettings, resizeStage } from "./misc.js";
2
2
  async function rotate(application, spriteName) {
3
- const sprite = application == null ? void 0 : application.stage.getChildByLabel(spriteName, !0);
3
+ const sprite = application == null ? void 0 : application.stage.getChildByName(spriteName, !0);
4
4
  if (application && sprite) {
5
+ if (!application) return;
5
6
  const blobBefore = await toBlob(application), mergedSprite = await updateImageFromBlob(application, {
6
7
  imgDatasource: blobBefore,
7
8
  spriteName,
@@ -13,7 +14,7 @@ async function rotate(application, spriteName) {
13
14
  if (!mergedSprite)
14
15
  return;
15
16
  let backupOldMaxHeight, backupOldVisibility;
16
- const canvas = application.canvas;
17
+ const canvas = application.view;
17
18
  canvas.style && (backupOldMaxHeight = canvas.style.maxHeight ?? "", backupOldVisibility = canvas.style.visibility ?? "", canvas.style.maxHeight = `${canvas.clientHeight}px`, canvas.style.visibility = "hidden"), mergedSprite.rotation += Math.PI / 2, resizeStage({
18
19
  application,
19
20
  sprite: mergedSprite,
@@ -11,48 +11,49 @@ const DEFAULT_MAX_HISTORY = 20, useHistoryTool = ({
11
11
  setHistory([]);
12
12
  }, [application]);
13
13
  const restore = async () => {
14
- if (history.length === 0) return;
15
- const imgData = history[history.length - 1];
16
- onRestore(await imgData.backup, imgData), setHistory(history.slice(0, -1));
17
- }, trimHistory = (arr) => arr.length > maxSize ? arr.slice(arr.length - maxSize) : arr, historize = async (callback) => {
18
- if (!application)
19
- return;
20
- const sprite = application.stage.getChildByLabel(spriteName, !0);
21
- if (!sprite)
22
- return;
23
- const promise = toBlob(application), state = {
24
- backup: promise,
25
- sprite: {
26
- rotation: sprite.rotation,
27
- size: {
28
- width: sprite.width,
29
- height: sprite.height
14
+ const imgData = history.pop();
15
+ imgData && (onRestore(await imgData.backup, imgData), setHistory(history.filter((current) => current !== imgData)));
16
+ }, listSize = (arr) => (arr.length > maxSize && arr.splice(0, arr.length - maxSize), arr), historize = async (callback) => {
17
+ {
18
+ if (!application)
19
+ return;
20
+ const sprite = application.stage.getChildByName(spriteName, !0);
21
+ if (sprite == null)
22
+ return;
23
+ const promise = toBlob(application), state = {
24
+ backup: promise,
25
+ sprite: {
26
+ rotation: sprite.rotation,
27
+ size: {
28
+ width: sprite.width,
29
+ height: sprite.height
30
+ },
31
+ position: {
32
+ x: sprite.position.x,
33
+ y: sprite.position.y
34
+ },
35
+ scale: {
36
+ x: sprite.scale.x,
37
+ y: sprite.scale.y
38
+ },
39
+ anchor: {
40
+ x: sprite.anchor.x,
41
+ y: sprite.anchor.y
42
+ }
30
43
  },
31
- position: {
32
- x: sprite.position.x,
33
- y: sprite.position.y
34
- },
35
- scale: {
36
- x: sprite.scale.x,
37
- y: sprite.scale.y
38
- },
39
- anchor: {
40
- x: sprite.anchor.x,
41
- y: sprite.anchor.y
42
- }
43
- },
44
- stage: {
45
- size: {
46
- width: application.stage.width,
47
- height: application.stage.height
48
- },
49
- scale: {
50
- x: application.stage.scale.x,
51
- y: application.stage.scale.y
44
+ stage: {
45
+ size: {
46
+ width: application.stage.width,
47
+ height: application.stage.height
48
+ },
49
+ scale: {
50
+ x: application.stage.scale.x,
51
+ y: application.stage.scale.y
52
+ }
52
53
  }
53
- }
54
- };
55
- return setHistory(trimHistory([...history, state])), await promise, callback.call(callback);
54
+ };
55
+ return setHistory([...listSize(history), state]), await promise, callback.call(callback);
56
+ }
56
57
  };
57
58
  return {
58
59
  historyCount: history.length,
@@ -14,7 +14,7 @@ export default function useImageEditor({ imageSrc, spriteName, }: {
14
14
  spriteName?: string;
15
15
  }): {
16
16
  historyCount: number;
17
- setApplication: import('react').Dispatch<import('react').SetStateAction<PIXI.Application<PIXI.Renderer> | undefined>>;
17
+ setApplication: import('react').Dispatch<import('react').SetStateAction<PIXI.Application<PIXI.ICanvas> | undefined>>;
18
18
  restore: () => Promise<void>;
19
19
  stopCrop: (save: boolean) => void;
20
20
  stopBlur: () => void;
@@ -1,7 +1,8 @@
1
1
  import { useState, useEffect } from "react";
2
+ import "@pixi/mixin-get-child-by-name";
2
3
  import useHistoryTool from "./useHistoryTool.js";
3
4
  import useImageEffects from "./useImageEffects.js";
4
- import { updateImage, DEFAULT_SPRITE_NAME, saveAsBlob, saveAsDataURL, autoResize, updateImageFromBlob } from "../effects/misc.js";
5
+ import { updateImage, DEFAULT_SPRITE_NAME, saveAsBlob, saveAsDataURL, updateImageFromBlob } from "../effects/misc.js";
5
6
  function useImageEditor({
6
7
  imageSrc,
7
8
  spriteName = DEFAULT_SPRITE_NAME
@@ -46,14 +47,7 @@ function useImageEditor({
46
47
  spriteName,
47
48
  imgDatasource: imageSrc
48
49
  }).finally(() => setLoading(!1)));
49
- }, [application, imageSrc, spriteName]), useEffect(() => {
50
- if (!application) return;
51
- const handleResize = () => {
52
- const sprite = application.stage.getChildByLabel(spriteName, !0);
53
- sprite && autoResize(application, sprite);
54
- };
55
- return window.addEventListener("resize", handleResize), () => window.removeEventListener("resize", handleResize);
56
- }, [application, spriteName]), {
50
+ }, [application, imageSrc, spriteName]), {
57
51
  historyCount,
58
52
  setApplication,
59
53
  restore,
@@ -20,10 +20,7 @@ function useImageEffects({
20
20
  if (application) {
21
21
  if (save$12) {
22
22
  const result = save(application);
23
- if (result) {
24
- onSave(result);
25
- return;
26
- }
23
+ result && onSave(result);
27
24
  }
28
25
  stop(application);
29
26
  }
@@ -32,8 +32,10 @@ export interface InternalLinkerProps {
32
32
  applicationList?: ApplicationOption[];
33
33
  /** Whether to show the application selector */
34
34
  showApplicationSelector?: boolean;
35
+ /** Disable application selecetor */
36
+ disableApplicationSelector?: boolean;
35
37
  /** Optional callback to filter resources after loading. Applied in addition to search filters. */
36
38
  resourceFilter?: (resource: ILinkedResource) => boolean;
37
39
  }
38
- export declare const InternalLinker: ({ appCode, defaultAppCode, defaultResourceId, onChange, onSelect, multiple, resourceList, applicationList, showApplicationSelector, resourceFilter, }: InternalLinkerProps) => import("react/jsx-runtime").JSX.Element;
40
+ export declare const InternalLinker: ({ appCode, defaultAppCode, defaultResourceId, onChange, onSelect, multiple, resourceList, applicationList, showApplicationSelector, disableApplicationSelector, resourceFilter, }: InternalLinkerProps) => import("react/jsx-runtime").JSX.Element;
39
41
  export default InternalLinker;
@@ -22,6 +22,7 @@ const InternalLinker = ({
22
22
  resourceList,
23
23
  applicationList,
24
24
  showApplicationSelector = !0,
25
+ disableApplicationSelector = !1,
25
26
  resourceFilter
26
27
  }) => {
27
28
  const {
@@ -114,7 +115,7 @@ const InternalLinker = ({
114
115
  /* @__PURE__ */ jsx(Dropdown.Trigger, { icon: /* @__PURE__ */ jsx("div", { className: "pe-8", children: (selectedApplication == null ? void 0 : selectedApplication.icon) || /* @__PURE__ */ jsx(SvgIconApplications, {}) }), label: /* @__PURE__ */ jsxs("span", { className: "d-md-inline d-sm-none", children: [
115
116
  " ",
116
117
  t((selectedApplication == null ? void 0 : selectedApplication.displayName) || "bbm.linker.int.choose")
117
- ] }), variant: "ghost", size: "md" }),
118
+ ] }), variant: "ghost", size: "md", disabled: disableApplicationSelector }),
118
119
  /* @__PURE__ */ jsx(Dropdown.Menu, { children: options == null ? void 0 : options.map((option) => /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: () => handleOptionClick(option), children: option.displayName }, option.application)) })
119
120
  ] }) }),
120
121
  /* @__PURE__ */ jsx("div", { className: "flex-grow-1 align-self-center", children: /* @__PURE__ */ jsx("form", { className: "gap-16 d-flex w-100 align-items-center px-16 py-8", onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, placeholder: t("search"), size: "lg", className: "w-100", disabled: !selectedApplication, onChange: handleSearchChange }) }) })
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as LinkerCard } from './LinkerCard';
3
3
  declare const meta: Meta<typeof LinkerCard>;
4
4
  export default meta;
@@ -220,7 +220,6 @@ const orderedTabs = [
220
220
  ] })
221
221
  ] }) });
222
222
  });
223
- Object.assign(MediaLibrary, InnerTabs);
224
223
  export {
225
224
  MediaLibrary as default
226
225
  };
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
2
  import { default as UploadCard } from './UploadCard';
3
3
  declare const meta: Meta<typeof UploadCard>;
4
4
  export default meta;
@@ -1,10 +1,10 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { customSize } from "@edifice.io/utilities";
3
- import { useRef, useEffect, Suspense, lazy } from "react";
3
+ import { useRef, useEffect } from "react";
4
4
  import useUploadFiles from "../../../hooks/useUploadFiles/useUploadFiles.js";
5
5
  import UploadCard from "../UploadCard/UploadCard.js";
6
- import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
7
- const ImageEditor = /* @__PURE__ */ lazy(async () => await import("../ImageEditor/components/ImageEditor.js")), UploadFiles = ({
6
+ import ImageEditor from "../ImageEditor/components/ImageEditor.js";
7
+ const UploadFiles = ({
8
8
  onFilesChange,
9
9
  visibility = "protected"
10
10
  }) => {
@@ -48,7 +48,7 @@ const ImageEditor = /* @__PURE__ */ lazy(async () => await import("../ImageEdito
48
48
  const resource = uploadedFiles.find((uploadedFile) => uploadedFile.name === file.name);
49
49
  return /* @__PURE__ */ jsx(UploadCard, { status: getUploadStatus(file), item: renderItem(file), onEdit: () => setEditingImage(resource), onRetry: () => uploadFile(file), onDelete: () => handleRemoveFile(file) }, file.name);
50
50
  }),
51
- editingImage && /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadingScreen, { position: !1 }), children: /* @__PURE__ */ jsx(ImageEditor, { altText: editingImage.alt, legend: editingImage.title, image: getUrl(editingImage, !0), isOpen: !!editingImage, onCancel: () => setEditingImage(void 0), onSave: updateImage, onError: console.error }) })
51
+ editingImage && /* @__PURE__ */ jsx(ImageEditor, { altText: editingImage.alt, legend: editingImage.title, image: getUrl(editingImage, !0), isOpen: !!editingImage, onCancel: () => setEditingImage(void 0), onSave: updateImage, onError: console.error })
52
52
  ] });
53
53
  };
54
54
  export {
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { App, IGetConf, IGetSession, IUserDescription, IUserInfo, IWebApp, UserProfile } from '@edifice.io/client';
3
- import { UseQueryResult } from '@tanstack/react-query';
3
+ import { UseQueryResult } from '../../../node_modules/@tanstack/react-query';
4
4
  export interface EdificeClientParams {
5
5
  alternativeApp?: boolean;
6
6
  app: App;
@@ -2,3 +2,4 @@ export { type Size } from './size';
2
2
  export { type Status } from './status';
3
3
  export { type TreeData } from './treedata';
4
4
  export { type Color } from './color';
5
+ export { type AvatarType, type SearchResultType, type SharingItem, } from './sharing';
@@ -0,0 +1,8 @@
1
+ export type AvatarType = 'user' | 'group';
2
+ export type SearchResultType = AvatarType | 'bookmark';
3
+ export interface SharingItem {
4
+ recipientId: string;
5
+ recipientType: SearchResultType;
6
+ permission: string[];
7
+ displayName: string;
8
+ }
@@ -2,3 +2,4 @@ export * from './check-user-rights';
2
2
  export * from './emptyscreen-mapping';
3
3
  export * from './react-query';
4
4
  export * from './refs';
5
+ export * from './rotate-transition-style';
@@ -1,4 +1,4 @@
1
- import { InvalidateQueryFilters, QueryClient } from '@tanstack/react-query';
1
+ import { InvalidateQueryFilters, QueryClient } from '../../../node_modules/@tanstack/react-query';
2
2
  /**
3
3
  * Invalidates queries and resets infinite query data to only contain the first page.
4
4
  *
@@ -0,0 +1,5 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare function getRotateTransitionStyle(isOpen: boolean, { degrees, duration, }?: {
3
+ degrees?: number;
4
+ duration?: number;
5
+ }): CSSProperties;
@@ -0,0 +1,12 @@
1
+ function getRotateTransitionStyle(isOpen, {
2
+ degrees = -180,
3
+ duration = 0.2
4
+ } = {}) {
5
+ return {
6
+ transition: `rotate ${duration}s ease-out`,
7
+ rotate: isOpen ? `${degrees}deg` : "0deg"
8
+ };
9
+ }
10
+ export {
11
+ getRotateTransitionStyle
12
+ };
@@ -0,0 +1 @@
1
+ export * from './get-rotate-transition-style';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.5.15-develop-enabling.20260326100838",
3
+ "version": "2.5.15-develop-pedago.20260327124327",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -73,11 +73,13 @@
73
73
  "dist"
74
74
  ],
75
75
  "dependencies": {
76
- "@ant-design/icons": "5.4.0",
77
- "@dnd-kit/core": "6.3.1",
78
- "@dnd-kit/sortable": "8.0.0",
79
- "@dnd-kit/utilities": "3.2.2",
76
+ "@ant-design/icons": "^5.4.0",
77
+ "@dnd-kit/core": "^6.1.0",
78
+ "@dnd-kit/sortable": "^8.0.0",
79
+ "@dnd-kit/utilities": "^3.2.2",
80
80
  "@floating-ui/react": "0.26.0",
81
+ "@pixi/mixin-get-child-by-name": "7.4.2",
82
+ "@pixi/react": "7.1.2",
81
83
  "@popperjs/core": "2.11.8",
82
84
  "@tiptap/core": "2.11.0",
83
85
  "@tiptap/extension-blockquote": "2.11.0",
@@ -116,66 +118,66 @@
116
118
  "@tiptap/pm": "2.11.0",
117
119
  "@tiptap/react": "2.11.0",
118
120
  "@tiptap/starter-kit": "2.11.0",
119
- "@uidotdev/usehooks": "2.4.1",
120
- "antd": "5.29.1",
121
- "clsx": "2.1.1",
121
+ "@uidotdev/usehooks": "^2.4.1",
122
+ "antd": "^5.29.1",
123
+ "clsx": "^2.1.1",
122
124
  "dayjs": "1.11.19",
123
- "emoji-picker-react": "4.17.4",
124
- "heic2any": "0.0.4",
125
+ "emoji-picker-react": "4.5.2",
126
+ "heic-to": "1.4.2",
125
127
  "html-react-parser": "4.2.1",
126
128
  "ohash": "1.1.3",
127
129
  "pako": "2.1.0",
128
- "pixi.js": "8.15.0",
129
- "react-hot-toast": "2.6.0",
130
+ "pixi.js": "7.4.2",
131
+ "react-hot-toast": "^2.4.1",
130
132
  "react-intersection-observer": "9.5.3",
131
- "react-pdf": "10.3.0",
132
- "react-popper": "2.3.0",
133
- "react-slugify": "3.0.3",
134
- "swiper": "10.1.0",
135
- "ua-parser-js": "1.0.36",
136
- "@edifice.io/tiptap-extensions": "2.5.15-develop-enabling.20260326100838",
137
- "@edifice.io/utilities": "2.5.15-develop-enabling.20260326100838",
138
- "@edifice.io/bootstrap": "2.5.15-develop-enabling.20260326100838"
133
+ "react-popper": "^2.3.0",
134
+ "react-slugify": "^3.0.3",
135
+ "swiper": "^10.1.0",
136
+ "ua-parser-js": "^1.0.36",
137
+ "react-pdf": "10.2.0",
138
+ "@edifice.io/bootstrap": "2.5.15-develop-pedago.20260327124327",
139
+ "@edifice.io/tiptap-extensions": "2.5.15-develop-pedago.20260327124327",
140
+ "@edifice.io/utilities": "2.5.15-develop-pedago.20260327124327"
139
141
  },
140
142
  "devDependencies": {
141
- "@babel/plugin-transform-react-pure-annotations": "7.27.1",
142
- "@eslint/js": "9.39.2",
143
- "@react-spring/web": "9.7.5",
144
- "@svgr/cli": "8.1.0",
145
- "@tanstack/query-core": "5.90.20",
143
+ "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
144
+ "@eslint/js": "^9.12.0",
145
+ "@react-spring/web": "^9.7.5",
146
+ "@svgr/cli": "^8.1.0",
147
+ "@tanstack/query-core": "5.62.7",
146
148
  "@tanstack/react-query": "5.62.7",
147
- "@testing-library/jest-dom": "6.5.0",
148
- "@testing-library/react": "16.0.1",
149
- "@testing-library/user-event": "14.5.2",
150
- "@types/node": "22.19.8",
151
- "@types/pako": "2.0.4",
152
- "@types/react": "18.3.27",
153
- "@types/react-dom": "18.3.7",
154
- "@types/ua-parser-js": "0.7.37",
155
- "@vitejs/plugin-react": "4.7.0",
156
- "eslint": "9.39.2",
149
+ "@testing-library/jest-dom": "^6.5.0",
150
+ "@testing-library/react": "^16.0.1",
151
+ "@testing-library/user-event": "^14.5.2",
152
+ "@types/node": "^22.9.1",
153
+ "@types/pako": "^2.0.3",
154
+ "@types/react": "^18.2.33",
155
+ "@types/react-dom": "^18.2.14",
156
+ "@types/ua-parser-js": "^0.7.37",
157
+ "@vitejs/plugin-react": "^4.3.2",
158
+ "eslint": "^9.12.0",
157
159
  "eslint-plugin-react-hooks": "5.1.0-rc.0",
158
- "eslint-plugin-react-refresh": "0.4.26",
159
- "react": "18.3.1",
160
- "react-dom": "18.3.1",
161
- "react-hook-form": "7.71.1",
162
- "react-i18next": "14.1.3",
163
- "rollup-plugin-pure": "0.4.0",
160
+ "eslint-plugin-react-refresh": "^0.4.12",
161
+ "react": "^18.3.1",
162
+ "react-dom": "^18.3.1",
163
+ "react-hook-form": "^7.53.0",
164
+ "react-i18next": "^14.1.0",
165
+ "rollup-plugin-pure": "^0.2.1",
164
166
  "rollup-plugin-visualizer": "5.12.0",
165
- "typescript-eslint": "8.54.0",
166
- "vite": "5.4.14",
167
- "vite-plugin-dts": "4.5.4",
168
- "vite-tsconfig-paths": "5.1.4",
169
- "@edifice.io/config": "2.5.15-develop-enabling.20260326100838",
170
- "@edifice.io/client": "2.5.15-develop-enabling.20260326100838"
167
+ "typescript-eslint": "^8.8.1",
168
+ "vite": "^5.4.11",
169
+ "vite-plugin-dts": "^4.1.0",
170
+ "vite-tsconfig-paths": "^5.0.1",
171
+ "@edifice.io/client": "2.5.15-develop-pedago.20260327124327",
172
+ "@edifice.io/config": "2.5.15-develop-pedago.20260327124327"
171
173
  },
172
174
  "peerDependencies": {
173
- "@react-spring/web": "9.7.5",
175
+ "@react-spring/web": "^9.7.5",
174
176
  "@tanstack/react-query": "5.62.7",
175
- "react": "18.3.1",
176
- "react-dom": "18.3.1",
177
- "react-hook-form": "7.71.1",
178
- "react-i18next": "14.1.3"
177
+ "react": "^18.3.1",
178
+ "react-dom": "^18.3.1",
179
+ "react-hook-form": "^7.53.0",
180
+ "react-i18next": "^14.1.0"
179
181
  },
180
182
  "publishConfig": {
181
183
  "access": "public"
@@ -184,7 +186,6 @@
184
186
  "scripts": {
185
187
  "build": "pnpm build:icons && vite build",
186
188
  "build:icons": "svgr src/modules/icons/assets --config-file ./svgr.config.cjs",
187
- "build:analyze": "vite build --mode analyze",
188
189
  "fix": "eslint --fix --report-unused-disable-directives --max-warnings 0",
189
190
  "format": "pnpm run format:write && pnpm run format:check",
190
191
  "format:check": "npx prettier --check \"src/**/*.{ts,tsx}\"",
@@ -1,12 +0,0 @@
1
- import { WorkspaceElement } from '@edifice.io/client';
2
- export interface CreateFolderParams {
3
- folderName: string;
4
- folderParentId?: string;
5
- }
6
- declare function useWorkspaceFolders(): {
7
- folders: WorkspaceElement[];
8
- createFolderMutation: import('@tanstack/react-query').UseMutationResult<any, Error, CreateFolderParams, unknown>;
9
- canCopyFileIntoFolder: (folderId: string) => boolean;
10
- isLoading: boolean;
11
- };
12
- export default useWorkspaceFolders;
@@ -1,2 +0,0 @@
1
- /** Label used for the blur layer Container in the stage */
2
- export declare const BLUR_LAYER_NAME = "BLUR_LAYER";
@@ -1,4 +0,0 @@
1
- const BLUR_LAYER_NAME = "BLUR_LAYER";
2
- export {
3
- BLUR_LAYER_NAME
4
- };