@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.
- package/dist/components/AddAttachments/AddAttachments.d.ts +6 -3
- package/dist/components/AddAttachments/AddAttachments.js +17 -29
- package/dist/components/AddAttachments/hooks/useFileToAttachment.d.ts +3 -0
- package/dist/components/AddAttachments/hooks/useFileToAttachment.js +16 -0
- package/dist/components/AddAttachments/models/attachment.d.ts +1 -0
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Form/FormControl.js +1 -1
- package/dist/components/Layout/components/WidgetApps.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/PreventPropagation/PreventPropagation.js +1 -1
- package/dist/components/PromotionCard/PromotionCard.js +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/components/Table/components/Table.js +1 -1
- package/dist/components/Tree/components/SortableTree.js +4 -3
- package/dist/components/Tree/components/Tree.js +4 -3
- package/dist/components/UserRightsList/SaveBookmark.d.ts +5 -0
- package/dist/components/UserRightsList/SaveBookmark.js +29 -0
- package/dist/components/UserRightsList/UserRightsBookmarkRow.d.ts +11 -0
- package/dist/components/UserRightsList/UserRightsBookmarkRow.js +30 -0
- package/dist/components/UserRightsList/UserRightsItem.d.ts +13 -0
- package/dist/components/UserRightsList/UserRightsItem.js +36 -0
- package/dist/components/UserRightsList/UserRightsList.d.ts +19 -0
- package/dist/components/UserRightsList/UserRightsList.js +94 -0
- package/dist/components/UserRightsList/helpers/rightsHelpers.d.ts +9 -0
- package/dist/components/UserRightsList/helpers/rightsHelpers.js +53 -0
- package/dist/components/UserRightsList/hooks/useBookmarkEntries.d.ts +19 -0
- package/dist/components/UserRightsList/hooks/useBookmarkEntries.js +58 -0
- package/dist/components/UserRightsList/hooks/useSharingItems.d.ts +20 -0
- package/dist/components/UserRightsList/hooks/useSharingItems.js +57 -0
- package/dist/components/UserRightsList/index.d.ts +2 -0
- package/dist/components/UserRightsList/types/types.d.ts +34 -0
- package/dist/components/UserRightsList/types/types.js +6 -0
- package/dist/components/UserSearch/UserSearch.d.ts +7 -0
- package/dist/components/UserSearch/UserSearch.js +82 -0
- package/dist/components/UserSearch/index.d.ts +3 -0
- package/dist/components/UserSearch/types/types.d.ts +24 -0
- package/dist/components/UserSearch/types/visible.d.ts +24 -0
- package/dist/components/UserSearch/types/visible.js +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/useConf/useConf.d.ts +1 -1
- package/dist/hooks/useDirectory/useDirectory.d.ts +3 -2
- package/dist/hooks/useDropdown/useDropdown.js +0 -2
- package/dist/hooks/useDropzone/useDropzone.js +4 -4
- package/dist/hooks/useSession/useSession.d.ts +1 -1
- package/dist/hooks/useThumbnail/useThumbnail.d.ts +1 -1
- package/dist/hooks/useThumbnail/useThumbnail.js +1 -5
- package/dist/hooks/useUpload/useUpload.js +5 -2
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +1 -1
- package/dist/icons.js +180 -176
- package/dist/index.js +10 -0
- package/dist/modules/editor/components/Editor/EditorPreview.js +1 -1
- package/dist/modules/icons/components/IconParcoursCitoyen.d.ts +7 -0
- package/dist/modules/icons/components/IconParcoursCitoyen.js +14 -0
- package/dist/modules/icons/components/IconParcoursSecours.d.ts +7 -0
- package/dist/modules/icons/components/IconParcoursSecours.js +14 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +53 -4
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -2
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/multimedia/FileCard/FileCard._.d.ts +17 -0
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +10 -24
- package/dist/modules/multimedia/ImageEditor/effects/blur.d.ts +5 -7
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +18 -26
- package/dist/modules/multimedia/ImageEditor/effects/crop.d.ts +5 -4
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +26 -42
- package/dist/modules/multimedia/ImageEditor/effects/misc.d.ts +16 -10
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +12 -27
- package/dist/modules/multimedia/ImageEditor/effects/resize.d.ts +7 -3
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +22 -31
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +3 -2
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +41 -40
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.d.ts +1 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +3 -9
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +1 -4
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +3 -1
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard._.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +0 -1
- package/dist/modules/multimedia/UploadCard/UploadCard._.d.ts +1 -1
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +4 -4
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/sharing.d.ts +8 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/react-query/react-query-utils.d.ts +1 -1
- package/dist/utilities/rotate-transition-style/get-rotate-transition-style.d.ts +5 -0
- package/dist/utilities/rotate-transition-style/get-rotate-transition-style.js +12 -0
- package/dist/utilities/rotate-transition-style/index.d.ts +1 -0
- package/package.json +54 -53
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.d.ts +0 -12
- package/dist/modules/multimedia/ImageEditor/effects/constants.d.ts +0 -2
- 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.
|
|
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.
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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.
|
|
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,
|
|
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]),
|
|
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,
|
|
@@ -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,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
|
|
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
|
|
7
|
-
const
|
|
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(
|
|
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 '
|
|
3
|
+
import { UseQueryResult } from '../../../node_modules/@tanstack/react-query';
|
|
4
4
|
export interface EdificeClientParams {
|
|
5
5
|
alternativeApp?: boolean;
|
|
6
6
|
app: App;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InvalidateQueryFilters, QueryClient } from '
|
|
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 @@
|
|
|
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-
|
|
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.
|
|
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.
|
|
124
|
-
"
|
|
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": "
|
|
129
|
-
"react-hot-toast": "2.
|
|
130
|
+
"pixi.js": "7.4.2",
|
|
131
|
+
"react-hot-toast": "^2.4.1",
|
|
130
132
|
"react-intersection-observer": "9.5.3",
|
|
131
|
-
"react-
|
|
132
|
-
"react-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"@edifice.io/
|
|
137
|
-
"@edifice.io/
|
|
138
|
-
"@edifice.io/
|
|
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.
|
|
142
|
-
"@eslint/js": "9.
|
|
143
|
-
"@react-spring/web": "9.7.5",
|
|
144
|
-
"@svgr/cli": "8.1.0",
|
|
145
|
-
"@tanstack/query-core": "5.
|
|
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.
|
|
151
|
-
"@types/pako": "2.0.
|
|
152
|
-
"@types/react": "18.
|
|
153
|
-
"@types/react-dom": "18.
|
|
154
|
-
"@types/ua-parser-js": "0.7.37",
|
|
155
|
-
"@vitejs/plugin-react": "4.
|
|
156
|
-
"eslint": "9.
|
|
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.
|
|
159
|
-
"react": "18.3.1",
|
|
160
|
-
"react-dom": "18.3.1",
|
|
161
|
-
"react-hook-form": "7.
|
|
162
|
-
"react-i18next": "14.1.
|
|
163
|
-
"rollup-plugin-pure": "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.
|
|
166
|
-
"vite": "5.4.
|
|
167
|
-
"vite-plugin-dts": "4.
|
|
168
|
-
"vite-tsconfig-paths": "5.1
|
|
169
|
-
"@edifice.io/
|
|
170
|
-
"@edifice.io/
|
|
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.
|
|
178
|
-
"react-i18next": "14.1.
|
|
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;
|