@edifice.io/react 2.5.9 → 2.5.10-develop-pedago.20260216173040
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/AddAttachments/AddAttachments.d.ts +18 -0
- package/dist/components/AddAttachments/AddAttachments.js +87 -0
- package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.d.ts +9 -0
- package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.js +41 -0
- package/dist/components/AddAttachments/components/SingleAttachment.d.ts +13 -0
- package/dist/components/AddAttachments/components/SingleAttachment.js +27 -0
- package/dist/components/AddAttachments/index.d.ts +2 -0
- package/dist/components/AddAttachments/models/attachment.d.ts +9 -0
- package/dist/components/Badge/Badge.d.ts +7 -1
- package/dist/components/Badge/Badge.js +14 -11
- package/dist/components/DatePicker/DatePicker.d.ts +57 -0
- package/dist/components/DatePicker/DatePicker.js +6 -3
- 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/index.d.ts +3 -0
- package/dist/hooks/useConf/useConf.d.ts +1 -1
- 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/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/useSession/useSession.d.ts +1 -1
- 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.js +366 -350
- package/dist/index.js +147 -140
- 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/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/IconSubmission.d.ts +7 -0
- package/dist/modules/icons/components/IconSubmission.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/index.d.ts +8 -0
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +4 -1
- package/dist/modules/modals/ShareModal/ShareResources.js +9 -5
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/multimedia/FileCard/FileCard.js +1 -1
- 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/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
- package/dist/types/color.d.ts +3 -0
- 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/dist/utilities/react-query/react-query-utils.d.ts +1 -1
- package/package.json +7 -6
- package/dist/modules/comments/components/CommentHeader.d.ts +0 -3
- package/dist/modules/comments/components/CommentHeader.js +0 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconCalendarEdit: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconCalendarEdit;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconCalendarEdit = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M16 1a1 1 0 0 1 1 1v1h1.5a1 1 0 1 1 0 2H17v1a1 1 0 1 1-2 0V5H9v1a1 1 0 0 1-2 0V5H5a1 1 0 0 0-1 1v3h7a1 1 0 1 1 0 2H4v9a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 1 1 2 0v4a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2V2a1 1 0 0 1 2 0v1h6V2a1 1 0 0 1 1-1m3.584 5.92a2.685 2.685 0 0 1 3.142 4.353l-11.38 8.21c-.147.106-.32.17-.501.185l-3.261.277a1 1 0 0 1-1.003-1.391l1.29-3.007.063-.121q.106-.176.272-.296zm1.68 1.503a.69.69 0 0 0-.51.12L9.599 16.591l-.523 1.22 1.325-.113 11.154-8.046a.686.686 0 0 0-.041-1.136.7.7 0 0 0-.25-.093" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconCalendarEdit as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconCollect: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconCollect;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconCollect = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 20 20", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M14.988 1.667c.852 0 1.619.519 1.935 1.31l1.352 3.38q.008.02.013.04.006.015.01.03l.012.043.015.08.005.039.003.06.001.018v9.382a2.26 2.26 0 0 1-.693 1.625c-.44.425-1.03.659-1.64.659h-12c-.61 0-1.2-.234-1.64-.66a2.26 2.26 0 0 1-.693-1.624v-9.4l.003-.06.005-.04.015-.08.008-.03.006-.02a1 1 0 0 1 .028-.077L3.08 2.977a2.08 2.08 0 0 1 1.934-1.31zM3.334 16.049c0 .154.063.31.186.428.123.119.296.19.481.19h12a.7.7 0 0 0 .481-.19.6.6 0 0 0 .186-.428V7.5H3.334zm8.334-6.882a.833.833 0 0 1 0 1.666H8.334a.833.833 0 0 1 0-1.666zM5.014 3.333a.42.42 0 0 0-.386.263l-.896 2.237h12.539l-.896-2.237a.42.42 0 0 0-.387-.263z" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconCollect as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconExercizerAi: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconExercizerAi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconExercizerAi = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M6.5 5a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-8a1 1 0 1 1 2 0v8a2.5 2.5 0 0 1-2.5 2.5h-12A2.5 2.5 0 0 1 4 20.5v-15A2.5 2.5 0 0 1 6.5 3h5a1 1 0 1 1 0 2z", clipRule: "evenodd" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M8 9a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1M8 13a1 1 0 0 1 1-1h7a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1M8 17a1 1 0 0 1 1-1h7a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1", clipRule: "evenodd" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "m18.584 10.611.308-.707a5.45 5.45 0 0 1 2.774-2.811l.95-.422a.662.662 0 0 0 0-1.202l-.898-.4a5.46 5.46 0 0 1-2.812-2.906l-.317-.762a.631.631 0 0 0-1.177 0l-.316.763a5.46 5.46 0 0 1-2.814 2.905l-.896.399a.662.662 0 0 0 0 1.203l.948.423a5.45 5.45 0 0 1 2.775 2.81l.308.707a.633.633 0 0 0 1.167 0" })
|
|
11
|
+
] });
|
|
12
|
+
export {
|
|
13
|
+
SvgIconExercizerAi as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconLabel: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconLabel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconLabel = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 18 12", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M2.25 1.5a.75.75 0 0 0-.75.75v7.5c0 .414.336.75.75.75h9.512a.75.75 0 0 0 .552-.242l3.45-3.75a.75.75 0 0 0 0-1.016l-3.45-3.75a.75.75 0 0 0-.552-.242zM0 2.25A2.25 2.25 0 0 1 2.25 0h9.512c.63 0 1.23.264 1.656.727l3.45 3.75a2.25 2.25 0 0 1 0 3.046l-3.45 3.75a2.25 2.25 0 0 1-1.656.727H2.25A2.25 2.25 0 0 1 0 9.75z", clipRule: "evenodd" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconLabel as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconSubmission: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconSubmission;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconSubmission = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 20 20", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M14.583 1.667c1.15 0 2.083.933 2.083 2.083v5.542q.432-.117.864-.053a2.05 2.05 0 0 1 1.369.87c.595.856.597 2.194-.462 3.041-1.04.832-2.047 1.71-3.063 2.548-.99.818-1.975 1.587-2.875 2.107-.425.245-.906.351-1.367.395-.464.044-.962.03-1.453-.002-1.037-.067-2-.202-3.013-.202-.851 0-1.428.492-1.742 1.179a.833.833 0 1 1-1.516-.693c.52-1.137 1.61-2.153 3.258-2.153 1.071 0 2.253.151 3.12.207.462.03.857.037 1.189.005.334-.032.552-.098.691-.179.768-.443 1.658-1.132 2.647-1.949.963-.795 2.039-1.728 3.083-2.563.29-.233.293-.562.135-.79a.39.39 0 0 0-.254-.173c-.078-.012-.255-.008-.528.197-1.205.904-3.4 2.484-4.368 3.362-.471.428-1.058.554-1.548.554h-2.5a.834.834 0 0 1 0-1.666h2.5c.228 0 .36-.06.428-.122a.37.37 0 0 0 .097-.183.5.5 0 0 0-.003-.268.3.3 0 0 0-.116-.164c-.053-.039-.17-.097-.406-.097-.833 0-2.184-.224-3.285-.372a18 18 0 0 0-1.534-.155 4 4 0 0 0-.508.004c-.118.012-.155.028-.143.023-.698.351-1.412.978-2.037 1.67-.622.69-1.107 1.392-1.353 1.823a.834.834 0 0 1-1.447-.827c.309-.541.866-1.34 1.563-2.112.58-.643 1.293-1.306 2.077-1.79V3.75c0-1.15.933-2.083 2.083-2.083zM6.25 3.333a.417.417 0 0 0-.416.417v6.552q.124 0 .25.005c.508.02 1.102.091 1.687.17 1.228.164 2.378.357 3.063.357.524 0 .994.135 1.374.406.271.194.47.439.607.705.728-.56 1.527-1.152 2.185-1.64V3.75a.417.417 0 0 0-.416-.417zM11.666 5a.833.833 0 0 1 0 1.667h-2.5a.834.834 0 0 1 0-1.667z" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconSubmission as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconTeacher: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconTeacher;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconTeacher = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M2 17.944V10q0-.89.653-1.5.653-.611 1.541-.556A14.6 14.6 0 0 1 12 11.722a14.6 14.6 0 0 1 7.806-3.778 1.99 1.99 0 0 1 1.541.556Q22 9.11 22 10v7.944q0 .89-.583 1.514-.584.626-1.473.68a17 17 0 0 0-3.444.918q-1.666.638-3.111 1.694a2.2 2.2 0 0 1-.653.375 2.2 2.2 0 0 1-.736.125q-.39 0-.736-.125a2.2 2.2 0 0 1-.653-.375Q9.167 21.695 7.5 21.056a17 17 0 0 0-3.444-.917q-.89-.056-1.473-.68A2.14 2.14 0 0 1 2 17.943M12 21a16 16 0 0 1 3.722-2.083 16.3 16.3 0 0 1 4.056-1.028v-7.667q-2.027.361-3.986 1.459-1.959 1.097-3.792 2.93-1.833-1.833-3.792-2.93t-3.986-1.459v7.667q2.084.25 4.056 1.028A16 16 0 0 1 12 21m0-12.111q-1.834 0-3.139-1.306-1.305-1.305-1.305-3.139T8.86 1.306Q10.166 0 12 0q1.833 0 3.139 1.306 1.305 1.305 1.305 3.138 0 1.834-1.305 3.14Q13.834 8.888 12 8.888m0-2.222a2.14 2.14 0 0 0 1.57-.653 2.14 2.14 0 0 0 .652-1.57 2.14 2.14 0 0 0-.653-1.569A2.14 2.14 0 0 0 12 2.222a2.14 2.14 0 0 0-1.57.653 2.14 2.14 0 0 0-.652 1.57q0 .916.653 1.569A2.14 2.14 0 0 0 12 6.667" })
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
SvgIconTeacher as default
|
|
12
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as IconAddUser } from './IconAddUser';
|
|
2
2
|
export { default as IconAdd } from './IconAdd';
|
|
3
|
+
export { default as IconAdjustSettings } from './IconAdjustSettings';
|
|
4
|
+
export { default as IconAiFill } from './IconAiFill';
|
|
3
5
|
export { default as IconAlertCircle } from './IconAlertCircle';
|
|
4
6
|
export { default as IconAlertTriangle } from './IconAlertTriangle';
|
|
5
7
|
export { default as IconAlignCenter } from './IconAlignCenter';
|
|
@@ -17,6 +19,7 @@ export { default as IconBlur } from './IconBlur';
|
|
|
17
19
|
export { default as IconBookmark } from './IconBookmark';
|
|
18
20
|
export { default as IconBulletList } from './IconBulletList';
|
|
19
21
|
export { default as IconBurgerMenu } from './IconBurgerMenu';
|
|
22
|
+
export { default as IconCalendarEdit } from './IconCalendarEdit';
|
|
20
23
|
export { default as IconCalendarLight } from './IconCalendarLight';
|
|
21
24
|
export { default as IconCalendar } from './IconCalendar';
|
|
22
25
|
export { default as IconCamera } from './IconCamera';
|
|
@@ -29,6 +32,7 @@ export { default as IconClock } from './IconClock';
|
|
|
29
32
|
export { default as IconCloseFullScreen } from './IconCloseFullScreen';
|
|
30
33
|
export { default as IconClose } from './IconClose';
|
|
31
34
|
export { default as IconCode } from './IconCode';
|
|
35
|
+
export { default as IconCollect } from './IconCollect';
|
|
32
36
|
export { default as IconCopy } from './IconCopy';
|
|
33
37
|
export { default as IconCrop } from './IconCrop';
|
|
34
38
|
export { default as IconCut } from './IconCut';
|
|
@@ -42,6 +46,7 @@ export { default as IconDepositeInbox } from './IconDepositeInbox';
|
|
|
42
46
|
export { default as IconDownload } from './IconDownload';
|
|
43
47
|
export { default as IconEdit } from './IconEdit';
|
|
44
48
|
export { default as IconError } from './IconError';
|
|
49
|
+
export { default as IconExercizerAi } from './IconExercizerAi';
|
|
45
50
|
export { default as IconExternalLink } from './IconExternalLink';
|
|
46
51
|
export { default as IconFiles } from './IconFiles';
|
|
47
52
|
export { default as IconFilter } from './IconFilter';
|
|
@@ -68,6 +73,7 @@ export { default as IconImageSizeSmall } from './IconImageSizeSmall';
|
|
|
68
73
|
export { default as IconInbox } from './IconInbox';
|
|
69
74
|
export { default as IconInfoCircle } from './IconInfoCircle';
|
|
70
75
|
export { default as IconInfoRectangle } from './IconInfoRectangle';
|
|
76
|
+
export { default as IconLabel } from './IconLabel';
|
|
71
77
|
export { default as IconLandscape } from './IconLandscape';
|
|
72
78
|
export { default as IconLibrary } from './IconLibrary';
|
|
73
79
|
export { default as IconLink } from './IconLink';
|
|
@@ -135,12 +141,14 @@ export { default as IconSplitCells } from './IconSplitCells';
|
|
|
135
141
|
export { default as IconSquareRoot } from './IconSquareRoot';
|
|
136
142
|
export { default as IconStarFull } from './IconStarFull';
|
|
137
143
|
export { default as IconStar } from './IconStar';
|
|
144
|
+
export { default as IconSubmission } from './IconSubmission';
|
|
138
145
|
export { default as IconSubmitToValidate } from './IconSubmitToValidate';
|
|
139
146
|
export { default as IconSubscript } from './IconSubscript';
|
|
140
147
|
export { default as IconSuccessFill } from './IconSuccessFill';
|
|
141
148
|
export { default as IconSuccessOutline } from './IconSuccessOutline';
|
|
142
149
|
export { default as IconSuperscript } from './IconSuperscript';
|
|
143
150
|
export { default as IconTable } from './IconTable';
|
|
151
|
+
export { default as IconTeacher } from './IconTeacher';
|
|
144
152
|
export { default as IconTextBold } from './IconTextBold';
|
|
145
153
|
export { default as IconTextColor } from './IconTextColor';
|
|
146
154
|
export { default as IconTextHighlight } from './IconTextHighlight';
|
|
@@ -44,7 +44,7 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
44
44
|
}, handleCloseWithoutPreference = () => {
|
|
45
45
|
setIsOpen(!1), setSwiperprogress(0);
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
47
|
+
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", "data-testid": "modal-onboarding", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
48
48
|
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleCloseWithoutPreference, centered: !0, children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
|
|
49
49
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Swiper, { modules: [Pagination], onSwiper: (swiper) => {
|
|
50
50
|
setSwiperInstance(swiper);
|
|
@@ -59,10 +59,10 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
59
59
|
} })
|
|
60
60
|
] }, index)) }) }),
|
|
61
61
|
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
62
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
63
|
-
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
64
|
-
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
65
|
-
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
62
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-later", type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
63
|
+
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-previous", type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
64
|
+
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", "data-testid": "modal-onboarding-next", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
65
|
+
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { "data-testid": "modal-onboarding-close", type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
66
66
|
isOnboarding ? handleCloseWithPreference() : handleCloseWithoutPreference();
|
|
67
67
|
}, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
68
68
|
] })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { CreateParameters, CreateResult, ID, IFolder, UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
3
|
-
import { UseMutationResult } from '
|
|
3
|
+
import { UseMutationResult } from '../../../../node_modules/@tanstack/react-query';
|
|
4
4
|
export interface FormInputs {
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationOptions, UseMutationResult } from '
|
|
2
|
+
import { UseMutationOptions, UseMutationResult } from '../../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
declare const useUpdateMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<UpdateResult, Error, UpdateParameters>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ID, PutShareResponse, RightStringified, ShareRight, ShareRightAction, ShareRightActionDisplayName, ShareUrls } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationResult } from '
|
|
2
|
+
import { UseMutationResult } from '../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration options for sharing a resource
|
|
5
5
|
*
|
|
@@ -7,6 +7,7 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
7
7
|
* @property {ID} resourceId - Unique identifier of the resource to share
|
|
8
8
|
* @property {RightStringified[]} resourceRights - Current rights assigned to the resource
|
|
9
9
|
* @property {string} resourceCreatorId - User ID of the resource creator
|
|
10
|
+
* @property {string} resourceCreatorDisplayName - (optional) Name of the resource creator to display
|
|
10
11
|
* @property {ShareRightActionDisplayName[]} [filteredActions] - Optional list of allowed actions to display
|
|
11
12
|
* @property {ShareUrls} [shareUrls] - Optional custom URLs for API endpoints related to sharing operations default endpoints are used if not provided
|
|
12
13
|
* default: {
|
|
@@ -42,6 +43,7 @@ import { UseMutationResult } from '../../../node_modules/@tanstack/react-query';
|
|
|
42
43
|
* resourceId: '12345',
|
|
43
44
|
* resourceRights: [],
|
|
44
45
|
* resourceCreatorId: 'user-67890',
|
|
46
|
+
* resourceCreatorDisplayName: 'Jim',
|
|
45
47
|
* filteredActions: ['read', 'contrib'],
|
|
46
48
|
* defaultActions: [
|
|
47
49
|
* {
|
|
@@ -61,6 +63,7 @@ export type ShareOptions = {
|
|
|
61
63
|
resourceId: ID;
|
|
62
64
|
resourceRights: RightStringified[];
|
|
63
65
|
resourceCreatorId: string;
|
|
66
|
+
resourceCreatorDisplayName?: string;
|
|
64
67
|
filteredActions?: ShareRightActionDisplayName[];
|
|
65
68
|
shareUrls?: ShareUrls;
|
|
66
69
|
defaultActions?: ShareRightAction[];
|
|
@@ -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)),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ID, UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationResult } from '
|
|
2
|
+
import { UseMutationResult } from '../../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
export type PublicationType = 'RESTRAINT' | 'IMMEDIATE' | undefined;
|
|
4
4
|
export interface ShareBlogProps {
|
|
5
5
|
resourceId: ID;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PutShareResponse, ShareRight } from '@edifice.io/client';
|
|
2
|
-
import { UseMutationOptions, UseMutationResult } from '
|
|
2
|
+
import { UseMutationOptions, UseMutationResult } from '../../../../../node_modules/@tanstack/react-query';
|
|
3
3
|
declare const useShareMutation: ({ application, options, }: {
|
|
4
4
|
application: string;
|
|
5
5
|
options?: UseMutationOptions<PutShareResponse, Error, {
|
|
@@ -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
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type CommonColor = 'black' | 'gray-800' | 'gray-700' | 'gray-600' | 'gray-500' | 'gray-400' | 'gray-300' | 'gray-200' | 'white' | 'danger' | 'warning' | 'success' | 'info' | 'danger-800' | 'warning-800' | 'success-800' | 'info-800' | 'danger-300' | 'warning-300' | 'success-300' | 'info-300' | 'danger-200' | 'warning-200' | 'success-200' | 'info-200' | 'accessible-blue' | 'accessible-deep-blue' | 'accessible-pink' | 'accessible-salamander' | 'accessible-sunshade' | 'accessible-yellow';
|
|
2
|
+
export type ThemeColor = 'primary' | 'primary-800' | 'primary-300' | 'primary-200' | 'secondary' | 'secondary-800' | 'secondary-300' | 'secondary-200';
|
|
3
|
+
export type Color = CommonColor | ThemeColor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mime-types-utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HEIC_MIME_TYPES: string[];
|
|
@@ -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
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.10-develop-pedago.20260216173040",
|
|
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/
|
|
137
|
+
"react-pdf": "10.2.0",
|
|
138
|
+
"@edifice.io/bootstrap": "2.5.10-develop-pedago.20260216173040",
|
|
139
|
+
"@edifice.io/tiptap-extensions": "2.5.10-develop-pedago.20260216173040",
|
|
140
|
+
"@edifice.io/utilities": "2.5.10-develop-pedago.20260216173040"
|
|
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/client": "2.5.
|
|
171
|
-
"@edifice.io/config": "2.5.
|
|
171
|
+
"@edifice.io/client": "2.5.10-develop-pedago.20260216173040",
|
|
172
|
+
"@edifice.io/config": "2.5.10-develop-pedago.20260216173040"
|
|
172
173
|
},
|
|
173
174
|
"peerDependencies": {
|
|
174
175
|
"@react-spring/web": "^9.7.5",
|