@edifice.io/react 2.6.0-develop-integration.20260710151131 → 2.6.0-develop-integration.20260715142405
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.
|
@@ -73,7 +73,7 @@ const orderedTabs = [
|
|
|
73
73
|
onCancel,
|
|
74
74
|
onTabChange
|
|
75
75
|
}, ref) => {
|
|
76
|
-
var _a;
|
|
76
|
+
var _a, _b;
|
|
77
77
|
const linkTabProps = useRef(), refModal = useRef(null);
|
|
78
78
|
useImperativeHandle(ref, () => ({
|
|
79
79
|
show,
|
|
@@ -84,9 +84,9 @@ const orderedTabs = [
|
|
|
84
84
|
}));
|
|
85
85
|
const {
|
|
86
86
|
t
|
|
87
|
-
} = useTranslation(), workspaceCreateWorkflow = useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|addDocument"), videoCaptureWorkflow = useHasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"), {
|
|
88
|
-
data:
|
|
89
|
-
} = usePublicConf("workspace"),
|
|
87
|
+
} = useTranslation(), workspaceCreateWorkflow = useHasWorkflow("org.entcore.workspace.controllers.WorkspaceController|addDocument"), videoCaptureWorkflow = useHasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"), nextcloudViewWorkflow = useHasWorkflow("fr.openent.nextcloud.controller.NextcloudController|view"), {
|
|
88
|
+
data: workspacePublicConf
|
|
89
|
+
} = usePublicConf("workspace"), enableNextcloudTab = ((_a = workspacePublicConf == null ? void 0 : workspacePublicConf["folder-service"]) == null ? void 0 : _a.includes("nextcloud")) && nextcloudViewWorkflow, [type, setType] = useState(null);
|
|
90
90
|
useHttpErrorToast({
|
|
91
91
|
active: !!type,
|
|
92
92
|
isDismissible: !0,
|
|
@@ -107,7 +107,7 @@ const orderedTabs = [
|
|
|
107
107
|
label: t("bbm.nextcloud"),
|
|
108
108
|
content: /* @__PURE__ */ jsx(InnerTabs.Nextcloud, {}),
|
|
109
109
|
availableFor: ["audio", "video", "image", "attachment"],
|
|
110
|
-
isEnable: () =>
|
|
110
|
+
isEnable: () => !!enableNextcloudTab
|
|
111
111
|
},
|
|
112
112
|
upload: {
|
|
113
113
|
id: "upload",
|
|
@@ -190,11 +190,11 @@ const orderedTabs = [
|
|
|
190
190
|
linkTabProps.current = props, "resourceId" in props || "appPrefix" in props || setDefaultTabId("external-link"), setType("hyperlink");
|
|
191
191
|
};
|
|
192
192
|
useEffect(() => {
|
|
193
|
-
var _a2,
|
|
193
|
+
var _a2, _b2;
|
|
194
194
|
const typeKey = type || "none";
|
|
195
|
-
!defaultTabId && typeof ((_a2 = mediaLibraryTypes[typeKey]) == null ? void 0 : _a2.defaultTab) == "string" && setDefaultTabId((
|
|
195
|
+
!defaultTabId && typeof ((_a2 = mediaLibraryTypes[typeKey]) == null ? void 0 : _a2.defaultTab) == "string" && setDefaultTabId((_b2 = mediaLibraryTypes[typeKey]) == null ? void 0 : _b2.defaultTab);
|
|
196
196
|
}, [defaultTabId, type]);
|
|
197
|
-
const modalHeader = t(((
|
|
197
|
+
const modalHeader = t(((_b = mediaLibraryTypes[type ?? "none"]) == null ? void 0 : _b.title) ?? "bbm"), resetState = () => {
|
|
198
198
|
linkTabProps.current = void 0, setResult(void 0), setResultCounter(void 0), setDefaultTabId(void 0), setPreSuccess(void 0), setDeletionsOnCancel([]);
|
|
199
199
|
}, handleTabChange = (tab) => {
|
|
200
200
|
onTabChange == null || onTabChange(tab, deletionsOnCancel), resetState();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.0-develop-integration.
|
|
3
|
+
"version": "2.6.0-develop-integration.20260715142405",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/
|
|
144
|
-
"@edifice.io/
|
|
145
|
-
"@edifice.io/
|
|
143
|
+
"@edifice.io/tiptap-extensions": "2.6.0-develop-integration.20260715142405",
|
|
144
|
+
"@edifice.io/utilities": "2.6.0-develop-integration.20260715142405",
|
|
145
|
+
"@edifice.io/bootstrap": "2.6.0-develop-integration.20260715142405"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"vite": "5.4.14",
|
|
174
174
|
"vite-plugin-dts": "4.5.4",
|
|
175
175
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/
|
|
177
|
-
"@edifice.io/
|
|
176
|
+
"@edifice.io/client": "2.6.0-develop-integration.20260715142405",
|
|
177
|
+
"@edifice.io/config": "2.6.0-develop-integration.20260715142405"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|