@edifice.io/react 2.5.8 → 2.5.9-develop-pedago.20260203115913
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 +5 -0
- package/dist/_virtual/isSameOrAfter.js +4 -0
- package/dist/_virtual/isToday.js +4 -0
- package/dist/components/Badge/Badge.d.ts +7 -1
- package/dist/components/Badge/Badge.js +13 -1
- package/dist/components/DatePicker/DatePicker.d.ts +57 -0
- package/dist/components/DatePicker/DatePicker.js +6 -3
- package/dist/components/Dropdown/DropdownContext.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Layout/Layout.js +1 -2
- package/dist/components/Layout/components/Header.js +5 -2
- package/dist/components/Layout/components/WidgetApps.js +2 -2
- package/dist/components/MediaViewer/MediaViewer.d.ts +17 -0
- package/dist/components/MediaViewer/MediaViewer.js +36 -0
- package/dist/components/MediaViewer/MediaWrapper.d.ts +7 -0
- package/dist/components/MediaViewer/MediaWrapper.js +72 -0
- package/dist/components/MediaViewer/PdfViewer.d.ts +4 -0
- package/dist/components/MediaViewer/PdfViewer.js +26 -0
- package/dist/components/MediaViewer/ToolbarViewer.d.ts +7 -0
- package/dist/components/MediaViewer/ToolbarViewer.js +41 -0
- package/dist/components/MediaViewer/ToolbarZoom.d.ts +4 -0
- package/dist/components/MediaViewer/ToolbarZoom.js +19 -0
- package/dist/components/MediaViewer/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +4 -0
- package/dist/components/Modal/Modal.js +13 -12
- package/dist/components/PromotionCard/PromotionCard.d.ts +74 -0
- package/dist/components/PromotionCard/PromotionCard.js +31 -0
- package/dist/components/PromotionCard/PromotionCardBody.d.ts +10 -0
- package/dist/components/PromotionCard/PromotionCardBody.js +15 -0
- package/dist/components/PromotionCard/PromotionCardDescription.d.ts +9 -0
- package/dist/components/PromotionCard/PromotionCardDescription.js +12 -0
- package/dist/components/PromotionCard/PromotionCardFooter.d.ts +9 -0
- package/dist/components/PromotionCard/PromotionCardFooter.js +12 -0
- package/dist/components/PromotionCard/PromotionCardHeader.d.ts +11 -0
- package/dist/components/PromotionCard/PromotionCardHeader.js +17 -0
- package/dist/components/PromotionCard/PromotionCardIcon.d.ts +10 -0
- package/dist/components/PromotionCard/PromotionCardIcon.js +15 -0
- package/dist/components/PromotionCard/PromotionCardTitle.d.ts +9 -0
- package/dist/components/PromotionCard/PromotionCardTitle.js +12 -0
- package/dist/components/PromotionCard/index.d.ts +2 -0
- package/dist/components/SmartEllipsis/SmartEllipsis.d.ts +5 -0
- package/dist/components/SmartEllipsis/SmartEllipsis.js +21 -0
- package/dist/components/SmartEllipsis/index.d.ts +2 -0
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/editor.js +40 -40
- package/dist/hooks/useConversation/useConversation.js +3 -1
- package/dist/hooks/useDate/useDate.d.ts +5 -1
- package/dist/hooks/useDate/useDate.js +18 -2
- package/dist/hooks/useDropdown/useDropdown.js +1 -1
- package/dist/hooks/useDropzone/useDropzone.js +21 -16
- package/dist/hooks/useEdificeIcons/useEdificeIcons.d.ts +1 -0
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +5 -0
- package/dist/hooks/useZoom/index.d.ts +1 -0
- package/dist/hooks/useZoom/useZoom.d.ts +7 -0
- package/dist/hooks/useZoom/useZoom.js +14 -0
- package/dist/icons-apps.js +234 -232
- package/dist/icons.js +366 -350
- package/dist/index.js +231 -226
- package/dist/modals.js +18 -18
- package/dist/modules/audience/ViewsCounter.d.ts +3 -17
- package/dist/modules/audience/ViewsCounter.js +9 -7
- package/dist/modules/comments/components/Comment.js +4 -4
- package/dist/modules/comments/components/CommentDate.js +7 -10
- package/dist/modules/comments/components/CommentDeleted.js +1 -1
- package/dist/modules/comments/components/CommentForm.d.ts +1 -1
- package/dist/modules/comments/components/CommentForm.js +6 -6
- package/dist/modules/comments/components/CommentTitle.js +1 -1
- package/dist/modules/comments/provider/CommentProvider.js +4 -4
- package/dist/modules/comments/types.d.ts +3 -1
- package/dist/modules/editor/hooks/useTipTapEditor.js +4 -4
- package/dist/modules/icons/components/IconAdjustSettings.d.ts +7 -0
- package/dist/modules/icons/components/IconAdjustSettings.js +12 -0
- package/dist/modules/icons/components/IconAiFill.d.ts +7 -0
- package/dist/modules/icons/components/IconAiFill.js +12 -0
- package/dist/modules/icons/components/IconCalendarEdit.d.ts +7 -0
- package/dist/modules/icons/components/IconCalendarEdit.js +12 -0
- package/dist/modules/icons/components/IconCollect.d.ts +7 -0
- package/dist/modules/icons/components/IconCollect.js +12 -0
- package/dist/modules/icons/components/IconExercizerAi.d.ts +7 -0
- package/dist/modules/icons/components/IconExercizerAi.js +14 -0
- package/dist/modules/icons/components/IconLabel.d.ts +7 -0
- package/dist/modules/icons/components/IconLabel.js +12 -0
- package/dist/modules/icons/components/IconRender.d.ts +7 -0
- package/dist/modules/icons/components/IconRender.js +12 -0
- package/dist/modules/icons/components/IconTeacher.d.ts +7 -0
- package/dist/modules/icons/components/IconTeacher.js +12 -0
- package/dist/modules/icons/components/apps/IconAssistancetic.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconAssistancetic.js +14 -0
- package/dist/modules/icons/components/apps/index.d.ts +1 -0
- package/dist/modules/icons/components/index.d.ts +8 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -2
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +3 -0
- package/dist/modules/modals/ShareModal/ShareResources.js +9 -5
- package/dist/modules/multimedia/FileCard/FileCard.js +1 -1
- package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +1 -2
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +1 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -1
- package/dist/multimedia.js +10 -10
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js +19 -0
- package/dist/providers/AntThemeProvider/antThemeConfig.js +1 -2
- package/dist/utilities/mime-types/index.d.ts +1 -0
- package/dist/utilities/mime-types/mime-types-utils.d.ts +1 -0
- package/dist/utilities/mime-types/mime-types-utils.js +4 -0
- package/package.json +7 -6
- package/dist/modules/comments/components/CommentHeader.d.ts +0 -3
- package/dist/modules/comments/components/CommentHeader.js +0 -8
|
@@ -9,6 +9,7 @@ import { ShareBookmarkLine } from "./ShareBookmarkLine.js";
|
|
|
9
9
|
import { useSearch } from "./hooks/useSearch.js";
|
|
10
10
|
import useShare from "./hooks/useShare.js";
|
|
11
11
|
import { useShareBookmark } from "./hooks/useShareBookmark.js";
|
|
12
|
+
import useDirectory from "../../../hooks/useDirectory/useDirectory.js";
|
|
12
13
|
import Heading from "../../../components/Heading/Heading.js";
|
|
13
14
|
import Tooltip from "../../../components/Tooltip/Tooltip.js";
|
|
14
15
|
import Combobox from "../../../components/Combobox/Combobox.js";
|
|
@@ -31,6 +32,7 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
31
32
|
const {
|
|
32
33
|
resourceId,
|
|
33
34
|
resourceCreatorId,
|
|
35
|
+
resourceCreatorDisplayName,
|
|
34
36
|
resourceRights,
|
|
35
37
|
filteredActions,
|
|
36
38
|
shareUrls,
|
|
@@ -95,7 +97,9 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
95
97
|
shareDispatch
|
|
96
98
|
}), handleOnSaveBookmark = () => (setIsSavingBookmark(!0), handleOnSave().then(() => {
|
|
97
99
|
setIsSavingBookmark(!1);
|
|
98
|
-
}))
|
|
100
|
+
})), {
|
|
101
|
+
getAvatarURL
|
|
102
|
+
} = useDirectory();
|
|
99
103
|
useImperativeHandle(ref, () => ({
|
|
100
104
|
handleShare
|
|
101
105
|
}), [handleShare]), useEffect(() => {
|
|
@@ -105,7 +109,7 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
105
109
|
}, [isSavingBookmark, isSharing, onSubmit]);
|
|
106
110
|
const {
|
|
107
111
|
t
|
|
108
|
-
} = useTranslation(), searchPlaceholder = showSearchAdmlHint() ? t("explorer.search.adml.hint") : t("explorer.modal.share.search.placeholder");
|
|
112
|
+
} = useTranslation(), userIsAuthor = currentIsAuthor(), searchPlaceholder = showSearchAdmlHint() ? t("explorer.search.adml.hint") : t("explorer.modal.share.search.placeholder");
|
|
109
113
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
110
114
|
/* @__PURE__ */ jsxs(Heading, { headingStyle: "h4", level: "h3", className: "mb-16 d-flex align-items-center", children: [
|
|
111
115
|
/* @__PURE__ */ jsx("div", { className: "me-8", children: t("explorer.modal.share.search") }),
|
|
@@ -120,9 +124,9 @@ const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
|
120
124
|
/* @__PURE__ */ jsx("th", { scope: "col", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("close") }) })
|
|
121
125
|
] }) }),
|
|
122
126
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ jsx("th", { scope: "row", children: /* @__PURE__ */ jsx(Avatar, { alt: t("explorer.modal.share.avatar.me.alt"), size: "xs", src: myAvatar, variant: "circle" }) }),
|
|
125
|
-
/* @__PURE__ */ jsx("td", { children: t("share.me") }),
|
|
127
|
+
/* @__PURE__ */ jsxs("tr", { children: [
|
|
128
|
+
/* @__PURE__ */ jsx("th", { scope: "row", children: /* @__PURE__ */ jsx(Avatar, { alt: t("explorer.modal.share.avatar.me.alt"), size: "xs", src: userIsAuthor ? myAvatar : getAvatarURL(resourceCreatorId, "user"), variant: "circle" }) }),
|
|
129
|
+
/* @__PURE__ */ jsx("td", { children: userIsAuthor ? t("share.me") : resourceCreatorDisplayName ?? t("share.author") }),
|
|
126
130
|
shareRightActions.map((shareRightAction) => /* @__PURE__ */ jsx("td", { style: {
|
|
127
131
|
width: "80px"
|
|
128
132
|
}, className: "text-center text-white", children: /* @__PURE__ */ jsx(Checkbox, { checked: !0, disabled: !0 }) }, shareRightAction.displayName)),
|
|
@@ -12,7 +12,7 @@ import SvgIconSmartphone from "../../icons/components/IconSmartphone.js";
|
|
|
12
12
|
import { InnerTabs } from "./innertabs/index.js";
|
|
13
13
|
import { MediaLibraryContext } from "./MediaLibraryContext.js";
|
|
14
14
|
import useHasWorkflow from "../../../hooks/useHasWorkflow/useHasWorkflow.js";
|
|
15
|
-
import
|
|
15
|
+
import useHttpErrorToast from "../../../hooks/useHttpErrorToast/useHttpErrorToast.js";
|
|
16
16
|
import Modal from "../../../components/Modal/Modal.js";
|
|
17
17
|
import { Tabs } from "../../../components/Tabs/components/Tabs.js";
|
|
18
18
|
import Button from "../../../components/Button/Button.js";
|
package/dist/multimedia.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as default2 } from "./modules/multimedia/AudioRecorder/AudioRecorder.js";
|
|
2
2
|
import { default as default3 } from "./modules/multimedia/Embed/Embed.js";
|
|
3
|
-
import { default as default4 } from "./modules/multimedia/
|
|
4
|
-
import { default as default5 } from "./modules/multimedia/
|
|
5
|
-
import { default as default6 } from "./modules/multimedia/
|
|
3
|
+
import { default as default4 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
4
|
+
import { default as default5 } from "./modules/multimedia/ImageEditor/components/ImageEditor.js";
|
|
5
|
+
import { default as default6 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
6
6
|
import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
7
|
-
import { default as default8 } from "./modules/multimedia/
|
|
8
|
-
import { default as default9 } from "./modules/multimedia/
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
9
9
|
import { default as default10 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
10
10
|
import { default as default11 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
11
11
|
import { default as default12 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
@@ -17,14 +17,14 @@ export {
|
|
|
17
17
|
default2 as AudioRecorder,
|
|
18
18
|
default3 as Embed,
|
|
19
19
|
ExternalLinker,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
default4 as FileCard,
|
|
21
|
+
default5 as ImageEditor,
|
|
22
|
+
default6 as ImagePicker,
|
|
23
23
|
InternalLinker,
|
|
24
24
|
default7 as MediaLibrary,
|
|
25
25
|
Upload,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
default8 as UploadCard,
|
|
27
|
+
default9 as UploadFiles,
|
|
28
28
|
default10 as VideoEmbed,
|
|
29
29
|
default11 as VideoRecorder,
|
|
30
30
|
default12 as Workspace,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as isSameOrAfter$1 } from "../../../../../../_virtual/isSameOrAfter.js";
|
|
3
|
+
(function(module, exports$1) {
|
|
4
|
+
(function(e, t) {
|
|
5
|
+
module.exports = t();
|
|
6
|
+
})(commonjsGlobal, function() {
|
|
7
|
+
return function(e, t) {
|
|
8
|
+
t.prototype.isSameOrAfter = function(e2, t2) {
|
|
9
|
+
return this.isSame(e2, t2) || this.isAfter(e2, t2);
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
})(isSameOrAfter$1);
|
|
14
|
+
var isSameOrAfterExports = isSameOrAfter$1.exports;
|
|
15
|
+
const isSameOrAfter = /* @__PURE__ */ getDefaultExportFromCjs(isSameOrAfterExports);
|
|
16
|
+
export {
|
|
17
|
+
isSameOrAfter as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { commonjsGlobal, getDefaultExportFromCjs } from "../../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as isToday$1 } from "../../../../../../_virtual/isToday.js";
|
|
3
|
+
(function(module, exports$1) {
|
|
4
|
+
(function(e, o) {
|
|
5
|
+
module.exports = o();
|
|
6
|
+
})(commonjsGlobal, function() {
|
|
7
|
+
return function(e, o, t) {
|
|
8
|
+
o.prototype.isToday = function() {
|
|
9
|
+
var e2 = "YYYY-MM-DD", o2 = t();
|
|
10
|
+
return this.format(e2) === o2.format(e2);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
})(isToday$1);
|
|
15
|
+
var isTodayExports = isToday$1.exports;
|
|
16
|
+
const isToday = /* @__PURE__ */ getDefaultExportFromCjs(isTodayExports);
|
|
17
|
+
export {
|
|
18
|
+
isToday as default
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mime-types-utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HEIC_MIME_TYPES: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9-develop-pedago.20260203115913",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -134,9 +134,10 @@
|
|
|
134
134
|
"react-slugify": "^3.0.3",
|
|
135
135
|
"swiper": "^10.1.0",
|
|
136
136
|
"ua-parser-js": "^1.0.36",
|
|
137
|
-
"
|
|
138
|
-
"@edifice.io/
|
|
139
|
-
"@edifice.io/utilities": "2.5.
|
|
137
|
+
"react-pdf": "10.2.0",
|
|
138
|
+
"@edifice.io/bootstrap": "2.5.9-develop-pedago.20260203115913",
|
|
139
|
+
"@edifice.io/utilities": "2.5.9-develop-pedago.20260203115913",
|
|
140
|
+
"@edifice.io/tiptap-extensions": "2.5.9-develop-pedago.20260203115913"
|
|
140
141
|
},
|
|
141
142
|
"devDependencies": {
|
|
142
143
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -167,8 +168,8 @@
|
|
|
167
168
|
"vite": "^5.4.11",
|
|
168
169
|
"vite-plugin-dts": "^4.1.0",
|
|
169
170
|
"vite-tsconfig-paths": "^5.0.1",
|
|
170
|
-
"@edifice.io/
|
|
171
|
-
"@edifice.io/
|
|
171
|
+
"@edifice.io/config": "2.5.9-develop-pedago.20260203115913",
|
|
172
|
+
"@edifice.io/client": "2.5.9-develop-pedago.20260203115913"
|
|
172
173
|
},
|
|
173
174
|
"peerDependencies": {
|
|
174
175
|
"@react-spring/web": "^9.7.5",
|