@edifice.io/react 2.0.0-develop-rc.4 → 2.0.0-develop-rc.7
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/README.md +17 -88
- package/dist/components/Alert/Alert.js +5 -5
- package/dist/components/Table/TableExplorer.js +2 -2
- package/dist/components/TextArea/TextArea.js +2 -2
- package/dist/core/useConversation/useConversation.js +2 -2
- package/dist/core/useHasWorkflow/useHasWorkflow.js +1 -1
- package/dist/core/useHeader/useHeader.js +3 -3
- package/dist/core/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.js +2 -2
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useResource/useResource.d.ts +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js +2 -2
- package/dist/core/useUpload/useUpload.d.ts +4 -5
- package/dist/core/useUpload/useUpload.js +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +5 -5
- package/dist/core/useUploadFiles/useUploadFiles.js +3 -3
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +4 -4
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +1 -1
- package/dist/editor.js +3 -3
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -1
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +2 -2
- package/dist/hooks/useToast/useToast.js +1 -1
- package/dist/index.js +66 -66
- package/dist/modals.js +4 -4
- package/dist/modules/audience/ReactionChoice.js +2 -2
- package/dist/modules/audience/ReactionModal.js +1 -2
- package/dist/modules/audience/ReactionSummary.js +2 -2
- package/dist/modules/audience/ViewsCounter.js +2 -2
- package/dist/modules/audience/ViewsModal.js +2 -2
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -5
- package/dist/modules/audience/hooks/useViews.d.ts +3 -3
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +2 -2
- package/dist/modules/editor/components/Editor/Editor.js +3 -3
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +1 -1
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +1 -1
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +4 -4
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +5 -5
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -2
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +2 -2
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -1
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +2 -2
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +0 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +0 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +2 -2
- package/dist/modules/multimedia/Embed/Embed.js +2 -2
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +2 -2
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +36 -38
- package/dist/modules/multimedia/Linker/ExternalLinker.js +5 -5
- package/dist/modules/multimedia/Linker/InternalLinker.js +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +3 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +2 -2
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +2 -2
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +2 -2
- package/dist/modules/multimedia/Workspace/Workspace.js +4 -4
- package/dist/multimedia.js +16 -16
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Layout/Layout.js +3 -3
- package/dist/utils/fileSize.js +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +2 -2
- package/package.json +19 -28
|
@@ -14,46 +14,44 @@ const DEFAULT_MAX_HISTORY = 20, useHistoryTool = ({
|
|
|
14
14
|
const imgData = history.pop();
|
|
15
15
|
imgData && (onRestore(await imgData.backup, imgData), setHistory(history.filter((current) => current !== imgData)));
|
|
16
16
|
}, listSize = (arr) => (arr.length > maxSize && arr.splice(0, arr.length - maxSize), arr), historize = async (callback) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
}
|
|
17
|
+
if (!application)
|
|
18
|
+
return;
|
|
19
|
+
const sprite = application.stage.getChildByName(spriteName, !0);
|
|
20
|
+
if (sprite == null)
|
|
21
|
+
return;
|
|
22
|
+
const promise = toBlob(application), state = {
|
|
23
|
+
backup: promise,
|
|
24
|
+
sprite: {
|
|
25
|
+
rotation: sprite.rotation,
|
|
26
|
+
size: {
|
|
27
|
+
width: sprite.width,
|
|
28
|
+
height: sprite.height
|
|
43
29
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
30
|
+
position: {
|
|
31
|
+
x: sprite.position.x,
|
|
32
|
+
y: sprite.position.y
|
|
33
|
+
},
|
|
34
|
+
scale: {
|
|
35
|
+
x: sprite.scale.x,
|
|
36
|
+
y: sprite.scale.y
|
|
37
|
+
},
|
|
38
|
+
anchor: {
|
|
39
|
+
x: sprite.anchor.x,
|
|
40
|
+
y: sprite.anchor.y
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
stage: {
|
|
44
|
+
size: {
|
|
45
|
+
width: application.stage.width,
|
|
46
|
+
height: application.stage.height
|
|
47
|
+
},
|
|
48
|
+
scale: {
|
|
49
|
+
x: application.stage.scale.x,
|
|
50
|
+
y: application.stage.scale.y
|
|
53
51
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return setHistory([...listSize(history), state]), await promise, callback.call(callback);
|
|
57
55
|
};
|
|
58
56
|
return {
|
|
59
57
|
historyCount: history.length,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { StringUtils } from "../../../utils/StringUtils.js";
|
|
@@ -28,7 +28,7 @@ const ExternalLinker = ({
|
|
|
28
28
|
target: isBlankTarget ? "_blank" : void 0
|
|
29
29
|
};
|
|
30
30
|
!StringUtils.isLocalURL(linkURL) && !StringUtils.startWithHttp(linkURL) && (newLink.url = "http://" + linkURL), onChange == null || onChange(newLink);
|
|
31
|
-
}, [linkText, linkURL, isBlankTarget]), /* @__PURE__ */
|
|
31
|
+
}, [linkText, linkURL, isBlankTarget]), /* @__PURE__ */ jsxs("div", { className: "d-flex flex-column flex-fill gap-24", children: [
|
|
32
32
|
/* @__PURE__ */ jsxs(FormControl, { id: "linkText", isOptional: !0, children: [
|
|
33
33
|
/* @__PURE__ */ jsx(Label, { children: t("bbm.linker.ext.text") }),
|
|
34
34
|
/* @__PURE__ */ jsx(Input, { type: "text", placeholder: t("bbm.linker.ext.text.placeholder"), size: "md", disabled: multiNodeSelected, value: linkText, onChange: (e) => setLinkText(e.target.value) })
|
|
@@ -38,8 +38,8 @@ const ExternalLinker = ({
|
|
|
38
38
|
/* @__PURE__ */ jsx(Input, { type: "text", placeholder: t("bbm.linker.ext.url.placeholder"), size: "md", value: linkURL, onChange: (e) => setLinkURL(e.target.value) })
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ jsx(Checkbox, { label: t("bbm.linker.open.tab"), onChange: () => toggleBlankTarget(), checked: isBlankTarget })
|
|
41
|
-
] })
|
|
42
|
-
}
|
|
41
|
+
] });
|
|
42
|
+
};
|
|
43
43
|
export {
|
|
44
|
-
ExternalLinker
|
|
44
|
+
ExternalLinker as default
|
|
45
45
|
};
|
|
@@ -108,7 +108,7 @@ const InternalLinker = ({
|
|
|
108
108
|
!selectedApplication && /* @__PURE__ */ jsx("div", { className: "d-flex justify-content-center mt-32", children: /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: `${imagePath}/${theme == null ? void 0 : theme.bootstrapVersion}/illu-empty-search.svg`, text: t("bbm.linker.int.empty"), className: "mt-32" }) })
|
|
109
109
|
] })
|
|
110
110
|
] });
|
|
111
|
-
}
|
|
111
|
+
};
|
|
112
112
|
export {
|
|
113
|
-
InternalLinker
|
|
113
|
+
InternalLinker as default
|
|
114
114
|
};
|
|
@@ -150,7 +150,7 @@ const orderedTabs = [
|
|
|
150
150
|
return 0 > index || index >= tabs.length ? 0 : index;
|
|
151
151
|
}, [tabs, defaultTabId]), [resultCounter, setResultCounter] = useState(), [result, setResult] = useState(), [deletionsOnCancel, setDeletionsOnCancel] = useState([]), [onSuccessAction, setPreSuccess] = useState();
|
|
152
152
|
function setVisibleTab(tab) {
|
|
153
|
-
throw tabs.findIndex((t2) => t2.id === tab) < 0 ? "tab.not.visible" : "not.implemented.yet";
|
|
153
|
+
throw tabs.findIndex((t2) => t2.id === tab) < 0 ? new Error("tab.not.visible") : new Error("not.implemented.yet");
|
|
154
154
|
}
|
|
155
155
|
function switchType(type2) {
|
|
156
156
|
linkTabProps.current = void 0, setDefaultTabId(void 0), setType(type2);
|
|
@@ -178,7 +178,7 @@ const orderedTabs = [
|
|
|
178
178
|
onSuccessAction ? onSuccessAction().then((result2) => {
|
|
179
179
|
triggerSuccess(result2);
|
|
180
180
|
}) : result && triggerSuccess(result), resetState();
|
|
181
|
-
}, [onSuccessAction, result, onSuccess, visibility]), handleOnCancel = () => {
|
|
181
|
+
}, [onSuccessAction, result, onSuccess, visibility, appCode]), handleOnCancel = () => {
|
|
182
182
|
onCancel(deletionsOnCancel), resetState();
|
|
183
183
|
};
|
|
184
184
|
return type && /* @__PURE__ */ jsx(MediaLibraryContext.Provider, { value: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { WorkspaceElement
|
|
1
|
+
import { WorkspaceElement } from 'edifice-ts-client';
|
|
2
2
|
import { MediaLibraryType, AvailableTab, MediaLibraryResult } from './MediaLibrary';
|
|
3
3
|
export declare const MediaLibraryContext: import('react').Context<{
|
|
4
4
|
/** Application code (example: "blog") */
|
|
5
5
|
appCode: string;
|
|
6
6
|
/** Visibility of the uploaded files. */
|
|
7
|
-
visibility?:
|
|
7
|
+
visibility?: any;
|
|
8
8
|
/** Allow selecting / uploading multiple files at once ? */
|
|
9
9
|
multiple?: boolean | undefined;
|
|
10
10
|
/** Type of resource to search for. */
|
|
@@ -33,7 +33,7 @@ export declare function useMediaLibraryContext(): {
|
|
|
33
33
|
/** Application code (example: "blog") */
|
|
34
34
|
appCode: string;
|
|
35
35
|
/** Visibility of the uploaded files. */
|
|
36
|
-
visibility?:
|
|
36
|
+
visibility?: any;
|
|
37
37
|
/** Allow selecting / uploading multiple files at once ? */
|
|
38
38
|
multiple?: boolean | undefined;
|
|
39
39
|
/** Type of resource to search for. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMediaLibraryContext } from "../MediaLibraryContext.js";
|
|
3
|
-
import
|
|
3
|
+
import Workspace$1 from "../../Workspace/Workspace.js";
|
|
4
4
|
const Workspace = () => {
|
|
5
5
|
const {
|
|
6
6
|
type,
|
|
@@ -24,7 +24,7 @@ const Workspace = () => {
|
|
|
24
24
|
function handleSelect(result) {
|
|
25
25
|
setResultCounter(result.length), result.length ? setResult(result) : setResult();
|
|
26
26
|
}
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
27
|
+
return /* @__PURE__ */ jsx(Workspace$1, { roles: getDocumentRoleFilter(), onSelect: handleSelect, multiple, className: "border rounded overflow-y-auto", defaultFolder: visibility, showPublicFolder: visibility === "public" });
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
30
|
Workspace
|
|
@@ -2,7 +2,7 @@ import { WorkspaceElement, WorkspaceVisibility } from 'edifice-ts-client';
|
|
|
2
2
|
declare const UploadFiles: {
|
|
3
3
|
({ onFilesChange, visibility, }: {
|
|
4
4
|
onFilesChange: (uploadedFiles: WorkspaceElement[]) => void;
|
|
5
|
-
visibility?:
|
|
5
|
+
visibility?: any;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs, jsx
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useId, useEffect } from "react";
|
|
3
3
|
import { odeServices } from "edifice-ts-client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
@@ -69,7 +69,7 @@ const VideoEmbed = ({
|
|
|
69
69
|
t("bbm.video.url.title")
|
|
70
70
|
] }),
|
|
71
71
|
/* @__PURE__ */ jsx(FormControl, { id: formControlId, children: /* @__PURE__ */ jsx(Input, { size: "md", type: "text", placeholder: t("bbm.video.url.placeholder"), onChange: handleUrlChange }) }),
|
|
72
|
-
|
|
72
|
+
renderContent()
|
|
73
73
|
] });
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
@@ -253,7 +253,7 @@ const VIDEO_HEIGHT = 9, VIDEO_WIDTH = 16, VideoRecorder = /* @__PURE__ */ forwar
|
|
|
253
253
|
] }),
|
|
254
254
|
saving && /* @__PURE__ */ jsx(LoadingScreen, { position: !1, caption: t("bbm.video.save.loader.caption") })
|
|
255
255
|
] });
|
|
256
|
-
})
|
|
256
|
+
});
|
|
257
257
|
export {
|
|
258
|
-
VideoRecorder
|
|
258
|
+
VideoRecorder as default
|
|
259
259
|
};
|
|
@@ -57,7 +57,7 @@ const Workspace = ({
|
|
|
57
57
|
othersRef: [ownerRef, sharedRef, protectRef]
|
|
58
58
|
};
|
|
59
59
|
default:
|
|
60
|
-
throw "no.root.node";
|
|
60
|
+
throw new Error("no.root.node");
|
|
61
61
|
}
|
|
62
62
|
}, [ownerRoot, sharedRoot, protectRoot, publicRoot]), loadContent = useCallback(() => {
|
|
63
63
|
switch (currentFilter) {
|
|
@@ -74,7 +74,7 @@ const Workspace = ({
|
|
|
74
74
|
loadPublicDocs(currentNode.id);
|
|
75
75
|
break;
|
|
76
76
|
default:
|
|
77
|
-
throw "no.way";
|
|
77
|
+
throw new Error("no.way");
|
|
78
78
|
}
|
|
79
79
|
}, [currentFilter, currentNode.id, loadOwnerDocs, loadProtectedDocs, loadPublicDocs, loadSharedDocs]);
|
|
80
80
|
function selectAndLoadContent(filter, nodeId) {
|
|
@@ -163,7 +163,7 @@ const Workspace = ({
|
|
|
163
163
|
}) }) : /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: "/assets/themes/edifice-bootstrap/images/emptyscreen/illu-trash.svg", text: t("workspace.empty.docSpace"), title: t("explorer.emptyScreen.trash.title") }) : /* @__PURE__ */ jsx(LoadingScreen, {}) })
|
|
164
164
|
] }) })
|
|
165
165
|
] });
|
|
166
|
-
}
|
|
166
|
+
};
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
Workspace as default
|
|
169
169
|
};
|
package/dist/multimedia.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/multimedia/
|
|
2
|
-
import { default as default3 } from "./modules/multimedia/
|
|
3
|
-
import { default as default4 } from "./modules/multimedia/
|
|
4
|
-
import { default as default5 } from "./modules/multimedia/Linker/
|
|
5
|
-
import { default as default6 } from "./modules/multimedia/
|
|
1
|
+
import { default as default2 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
2
|
+
import { default as default3 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
3
|
+
import { default as default4 } from "./modules/multimedia/Linker/InternalLinker.js";
|
|
4
|
+
import { default as default5 } from "./modules/multimedia/Linker/ExternalLinker.js";
|
|
5
|
+
import { default as default6 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
6
|
+
import { default as default7 } from "./modules/multimedia/Embed/Embed.js";
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
6
9
|
import { LinkerCard } from "./modules/multimedia/LinkerCard/LinkerCard.js";
|
|
7
|
-
import { default as default7 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
8
|
-
import { default as default8 } from "./modules/multimedia/Embed/Embed.js";
|
|
9
|
-
import { default as default9 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
default6 as AudioRecorder,
|
|
12
|
+
default7 as Embed,
|
|
13
|
+
default5 as ExternalLinker,
|
|
14
|
+
default8 as ImageEditor,
|
|
15
|
+
default4 as InternalLinker,
|
|
16
16
|
LinkerCard,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
default9 as MediaLibrary,
|
|
18
|
+
default3 as VideoRecorder,
|
|
19
|
+
default2 as Workspace
|
|
20
20
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { Toaster } from "react-hot-toast";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import Alert from "../../components/Alert/Alert.js";
|
|
5
|
+
import { Alert } from "../../components/Alert/Alert.js";
|
|
6
6
|
import { Button } from "../../components/Button/Button.js";
|
|
7
7
|
import useCookiesConsent from "../../core/useCookiesConsent/useCookiesConsent.js";
|
|
8
8
|
import Header from "../Header/Header.js";
|
|
@@ -36,7 +36,7 @@ const Layout = ({
|
|
|
36
36
|
renderToaster,
|
|
37
37
|
renderCookies
|
|
38
38
|
] });
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
40
|
export {
|
|
41
|
-
Layout
|
|
41
|
+
Layout as default
|
|
42
42
|
};
|
package/dist/utils/fileSize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const customSize = (bytes, decimalPoint) => {
|
|
2
|
-
if (bytes
|
|
2
|
+
if (bytes === 0) return "0 octets";
|
|
3
3
|
const k = 1e3, dm = decimalPoint, sizes = ["octets", "Ko", "Mo", "Go"], i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
4
4
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
|
5
5
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { AppIcon } from "../../components/AppIcon/AppIcon.js";
|
|
3
3
|
const BookmarkedApps = ({
|
|
4
4
|
data
|
|
5
|
-
}) => data.length > 0 ? data.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index)) : /* @__PURE__ */ jsx("div", { className: "text-dark mx-auto", children: /* @__PURE__ */ jsx("a", { href: "/welcome", children: "Sélectionner vos applications favorites" }) })
|
|
5
|
+
}) => data.length > 0 ? data.slice(0, 6).map((app, index) => /* @__PURE__ */ jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsx(AppIcon, { app, size: "32" }) }, index)) : /* @__PURE__ */ jsx("div", { className: "text-dark mx-auto", children: /* @__PURE__ */ jsx("a", { href: "/welcome", children: "Sélectionner vos applications favorites" }) });
|
|
6
6
|
export {
|
|
7
|
-
BookmarkedApps
|
|
7
|
+
BookmarkedApps as default
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.0.0-develop-rc.
|
|
3
|
+
"version": "2.0.0-develop-rc.7",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,37 +47,19 @@
|
|
|
47
47
|
"files": [
|
|
48
48
|
"dist"
|
|
49
49
|
],
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "vite build",
|
|
52
|
-
"fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
53
|
-
"format": "pnpm run format:write && pnpm run format:check",
|
|
54
|
-
"format:check": "npx prettier --check .",
|
|
55
|
-
"format:write": "npx prettier --write .",
|
|
56
|
-
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
57
|
-
"test": "vitest"
|
|
58
|
-
},
|
|
59
50
|
"dependencies": {
|
|
60
|
-
"@edifice.io/tiptap-extensions": "2.0.0-develop-rc.0",
|
|
61
51
|
"@floating-ui/react": "0.26.0",
|
|
62
52
|
"@pixi/mixin-get-child-by-name": "7.4.2",
|
|
63
53
|
"@pixi/react": "7.1.2",
|
|
64
|
-
"@
|
|
65
|
-
"@tiptap-pro/extension-mathematics": "2.2.1",
|
|
66
|
-
"@tiptap/core": "2.3.0",
|
|
54
|
+
"@storybook/react": "7.6.6",
|
|
67
55
|
"@tiptap/extension-character-count": "2.3.0",
|
|
68
56
|
"@tiptap/extension-color": "2.3.0",
|
|
69
57
|
"@tiptap/extension-focus": "2.3.0",
|
|
70
58
|
"@tiptap/extension-font-family": "2.3.0",
|
|
71
|
-
"@tiptap/extension-heading": "2.3.0",
|
|
72
|
-
"@tiptap/extension-highlight": "2.3.0",
|
|
73
|
-
"@tiptap/extension-image": "2.3.0",
|
|
74
|
-
"@tiptap/extension-link": "2.3.0",
|
|
75
|
-
"@tiptap/extension-list-item": "2.3.0",
|
|
76
59
|
"@tiptap/extension-placeholder": "2.3.0",
|
|
77
60
|
"@tiptap/extension-subscript": "2.3.0",
|
|
78
61
|
"@tiptap/extension-superscript": "2.3.0",
|
|
79
62
|
"@tiptap/extension-table": "2.3.0",
|
|
80
|
-
"@tiptap/extension-table-cell": "2.3.0",
|
|
81
63
|
"@tiptap/extension-table-header": "2.3.0",
|
|
82
64
|
"@tiptap/extension-table-row": "2.3.0",
|
|
83
65
|
"@tiptap/extension-text-align": "2.3.0",
|
|
@@ -93,35 +75,37 @@
|
|
|
93
75
|
"emoji-picker-react": "4.5.2",
|
|
94
76
|
"html-react-parser": "4.2.1",
|
|
95
77
|
"ohash": "1.1.3",
|
|
96
|
-
"pako": "2.1.0",
|
|
97
78
|
"pixi.js": "7.4.2",
|
|
98
79
|
"react-hot-toast": "2.4.1",
|
|
99
80
|
"react-intersection-observer": "9.5.3",
|
|
100
81
|
"react-popper": "2.3.0",
|
|
101
82
|
"react-slugify": "3.0.3",
|
|
102
83
|
"swiper": "10.1.0",
|
|
103
|
-
"ua-parser-js": "1.0.36"
|
|
84
|
+
"ua-parser-js": "1.0.36",
|
|
85
|
+
"@edifice.io/ts-client": "2.0.0-develop-rc.7",
|
|
86
|
+
"@edifice.io/tiptap-extensions": "2.0.0-develop-rc.7"
|
|
104
87
|
},
|
|
105
88
|
"devDependencies": {
|
|
106
89
|
"@babel/plugin-transform-react-pure-annotations": "7.23.3",
|
|
107
|
-
"@edifice.io/icons": "2.0.0-develop-rc.0",
|
|
108
90
|
"@react-spring/web": "9.7.3",
|
|
91
|
+
"@storybook/react": "7.6.6",
|
|
109
92
|
"@tanstack/react-query": "5.8.4",
|
|
110
93
|
"@types/node": "20.8.4",
|
|
111
94
|
"@types/pako": "2.0.3",
|
|
112
95
|
"@types/react": "18.2.28",
|
|
113
96
|
"@types/react-dom": "18.2.13",
|
|
114
97
|
"@types/ua-parser-js": "0.7.37",
|
|
115
|
-
"edifice-ts-client": "2.0.0-develop-rc.0",
|
|
116
98
|
"react": "18.2.0",
|
|
117
99
|
"react-dom": "18.2.0",
|
|
118
100
|
"react-hook-form": "7.49.2",
|
|
119
|
-
"react-i18next": "14.1.0"
|
|
101
|
+
"react-i18next": "14.1.0",
|
|
102
|
+
"@edifice.io/icons": "2.0.0-develop-rc.7"
|
|
120
103
|
},
|
|
121
104
|
"peerDependencies": {
|
|
122
|
-
"@edifice.io/icons": "
|
|
105
|
+
"@edifice.io/icons": "*",
|
|
123
106
|
"@react-spring/web": "9.7.3",
|
|
124
107
|
"@tanstack/react-query": "5.8.4",
|
|
108
|
+
"@tiptap-pro/extension-mathematics": "2.2.1",
|
|
125
109
|
"react": "18.2.0",
|
|
126
110
|
"react-dom": "18.2.0",
|
|
127
111
|
"react-hook-form": "7.49.2",
|
|
@@ -130,5 +114,12 @@
|
|
|
130
114
|
"publishConfig": {
|
|
131
115
|
"access": "public"
|
|
132
116
|
},
|
|
133
|
-
"gitHead": "
|
|
134
|
-
|
|
117
|
+
"gitHead": "3e1c3f5b48505564db1b70aab22063a70336f3b0",
|
|
118
|
+
"scripts": {
|
|
119
|
+
"build": "vite build",
|
|
120
|
+
"format": "pnpm run format:write && pnpm run format:check",
|
|
121
|
+
"format:check": "npx prettier --check .",
|
|
122
|
+
"format:write": "npx prettier --write .",
|
|
123
|
+
"test": "vitest"
|
|
124
|
+
}
|
|
125
|
+
}
|