@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.
Files changed (109) hide show
  1. package/README.md +5 -0
  2. package/dist/_virtual/isSameOrAfter.js +4 -0
  3. package/dist/_virtual/isToday.js +4 -0
  4. package/dist/components/Badge/Badge.d.ts +7 -1
  5. package/dist/components/Badge/Badge.js +13 -1
  6. package/dist/components/DatePicker/DatePicker.d.ts +57 -0
  7. package/dist/components/DatePicker/DatePicker.js +6 -3
  8. package/dist/components/Dropdown/DropdownContext.js +1 -1
  9. package/dist/components/Form/FormContext.js +1 -1
  10. package/dist/components/Layout/Layout.js +1 -2
  11. package/dist/components/Layout/components/Header.js +5 -2
  12. package/dist/components/Layout/components/WidgetApps.js +2 -2
  13. package/dist/components/MediaViewer/MediaViewer.d.ts +17 -0
  14. package/dist/components/MediaViewer/MediaViewer.js +36 -0
  15. package/dist/components/MediaViewer/MediaWrapper.d.ts +7 -0
  16. package/dist/components/MediaViewer/MediaWrapper.js +72 -0
  17. package/dist/components/MediaViewer/PdfViewer.d.ts +4 -0
  18. package/dist/components/MediaViewer/PdfViewer.js +26 -0
  19. package/dist/components/MediaViewer/ToolbarViewer.d.ts +7 -0
  20. package/dist/components/MediaViewer/ToolbarViewer.js +41 -0
  21. package/dist/components/MediaViewer/ToolbarZoom.d.ts +4 -0
  22. package/dist/components/MediaViewer/ToolbarZoom.js +19 -0
  23. package/dist/components/MediaViewer/index.d.ts +2 -0
  24. package/dist/components/Modal/Modal.d.ts +4 -0
  25. package/dist/components/Modal/Modal.js +13 -12
  26. package/dist/components/PromotionCard/PromotionCard.d.ts +74 -0
  27. package/dist/components/PromotionCard/PromotionCard.js +31 -0
  28. package/dist/components/PromotionCard/PromotionCardBody.d.ts +10 -0
  29. package/dist/components/PromotionCard/PromotionCardBody.js +15 -0
  30. package/dist/components/PromotionCard/PromotionCardDescription.d.ts +9 -0
  31. package/dist/components/PromotionCard/PromotionCardDescription.js +12 -0
  32. package/dist/components/PromotionCard/PromotionCardFooter.d.ts +9 -0
  33. package/dist/components/PromotionCard/PromotionCardFooter.js +12 -0
  34. package/dist/components/PromotionCard/PromotionCardHeader.d.ts +11 -0
  35. package/dist/components/PromotionCard/PromotionCardHeader.js +17 -0
  36. package/dist/components/PromotionCard/PromotionCardIcon.d.ts +10 -0
  37. package/dist/components/PromotionCard/PromotionCardIcon.js +15 -0
  38. package/dist/components/PromotionCard/PromotionCardTitle.d.ts +9 -0
  39. package/dist/components/PromotionCard/PromotionCardTitle.js +12 -0
  40. package/dist/components/PromotionCard/index.d.ts +2 -0
  41. package/dist/components/SmartEllipsis/SmartEllipsis.d.ts +5 -0
  42. package/dist/components/SmartEllipsis/SmartEllipsis.js +21 -0
  43. package/dist/components/SmartEllipsis/index.d.ts +2 -0
  44. package/dist/components/Toolbar/Toolbar.js +1 -1
  45. package/dist/components/index.d.ts +2 -0
  46. package/dist/editor.js +40 -40
  47. package/dist/hooks/useConversation/useConversation.js +3 -1
  48. package/dist/hooks/useDate/useDate.d.ts +5 -1
  49. package/dist/hooks/useDate/useDate.js +18 -2
  50. package/dist/hooks/useDropdown/useDropdown.js +1 -1
  51. package/dist/hooks/useDropzone/useDropzone.js +21 -16
  52. package/dist/hooks/useEdificeIcons/useEdificeIcons.d.ts +1 -0
  53. package/dist/hooks/useEdificeIcons/useEdificeIcons.js +5 -0
  54. package/dist/hooks/useZoom/index.d.ts +1 -0
  55. package/dist/hooks/useZoom/useZoom.d.ts +7 -0
  56. package/dist/hooks/useZoom/useZoom.js +14 -0
  57. package/dist/icons-apps.js +234 -232
  58. package/dist/icons.js +366 -350
  59. package/dist/index.js +231 -226
  60. package/dist/modals.js +18 -18
  61. package/dist/modules/audience/ViewsCounter.d.ts +3 -17
  62. package/dist/modules/audience/ViewsCounter.js +9 -7
  63. package/dist/modules/comments/components/Comment.js +4 -4
  64. package/dist/modules/comments/components/CommentDate.js +7 -10
  65. package/dist/modules/comments/components/CommentDeleted.js +1 -1
  66. package/dist/modules/comments/components/CommentForm.d.ts +1 -1
  67. package/dist/modules/comments/components/CommentForm.js +6 -6
  68. package/dist/modules/comments/components/CommentTitle.js +1 -1
  69. package/dist/modules/comments/provider/CommentProvider.js +4 -4
  70. package/dist/modules/comments/types.d.ts +3 -1
  71. package/dist/modules/editor/hooks/useTipTapEditor.js +4 -4
  72. package/dist/modules/icons/components/IconAdjustSettings.d.ts +7 -0
  73. package/dist/modules/icons/components/IconAdjustSettings.js +12 -0
  74. package/dist/modules/icons/components/IconAiFill.d.ts +7 -0
  75. package/dist/modules/icons/components/IconAiFill.js +12 -0
  76. package/dist/modules/icons/components/IconCalendarEdit.d.ts +7 -0
  77. package/dist/modules/icons/components/IconCalendarEdit.js +12 -0
  78. package/dist/modules/icons/components/IconCollect.d.ts +7 -0
  79. package/dist/modules/icons/components/IconCollect.js +12 -0
  80. package/dist/modules/icons/components/IconExercizerAi.d.ts +7 -0
  81. package/dist/modules/icons/components/IconExercizerAi.js +14 -0
  82. package/dist/modules/icons/components/IconLabel.d.ts +7 -0
  83. package/dist/modules/icons/components/IconLabel.js +12 -0
  84. package/dist/modules/icons/components/IconRender.d.ts +7 -0
  85. package/dist/modules/icons/components/IconRender.js +12 -0
  86. package/dist/modules/icons/components/IconTeacher.d.ts +7 -0
  87. package/dist/modules/icons/components/IconTeacher.js +12 -0
  88. package/dist/modules/icons/components/apps/IconAssistancetic.d.ts +7 -0
  89. package/dist/modules/icons/components/apps/IconAssistancetic.js +14 -0
  90. package/dist/modules/icons/components/apps/index.d.ts +1 -0
  91. package/dist/modules/icons/components/index.d.ts +8 -0
  92. package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
  93. package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -2
  94. package/dist/modules/modals/ShareModal/ShareResources.d.ts +3 -0
  95. package/dist/modules/modals/ShareModal/ShareResources.js +9 -5
  96. package/dist/modules/multimedia/FileCard/FileCard.js +1 -1
  97. package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +1 -2
  98. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +1 -2
  99. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -1
  100. package/dist/multimedia.js +10 -10
  101. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
  102. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js +19 -0
  103. package/dist/providers/AntThemeProvider/antThemeConfig.js +1 -2
  104. package/dist/utilities/mime-types/index.d.ts +1 -0
  105. package/dist/utilities/mime-types/mime-types-utils.d.ts +1 -0
  106. package/dist/utilities/mime-types/mime-types-utils.js +4 -0
  107. package/package.json +7 -6
  108. package/dist/modules/comments/components/CommentHeader.d.ts +0 -3
  109. 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
- currentIsAuthor() && /* @__PURE__ */ jsxs("tr", { children: [
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)),
@@ -57,7 +57,7 @@ const FileCard = ({
57
57
  },
58
58
  ppt: {
59
59
  icon: ".PPT",
60
- color: "bg-yellow-200"
60
+ color: "bg-red-200"
61
61
  },
62
62
  img: {
63
63
  icon: /* @__PURE__ */ jsx(SvgIconLandscape, { width: 22, height: 22 }),
@@ -41,6 +41,5 @@ const ExternalLinker = ({
41
41
  ] }) });
42
42
  };
43
43
  export {
44
- ExternalLinker,
45
- ExternalLinker as default
44
+ ExternalLinker
46
45
  };
@@ -130,6 +130,5 @@ const InternalLinker = ({
130
130
  ] });
131
131
  };
132
132
  export {
133
- InternalLinker,
134
- InternalLinker as default
133
+ InternalLinker
135
134
  };
@@ -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 { useHttpErrorToast } from "../../../hooks/useHttpErrorToast/useHttpErrorToast.js";
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";
@@ -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/ImageEditor/components/ImageEditor.js";
4
- import { default as default5 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
5
- import { default as default6 } from "./modules/multimedia/FileCard/FileCard.js";
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/UploadFiles/UploadFiles.js";
8
- import { default as default9 } from "./modules/multimedia/UploadCard/UploadCard.js";
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
- default6 as FileCard,
21
- default4 as ImageEditor,
22
- default5 as ImagePicker,
20
+ default4 as FileCard,
21
+ default5 as ImageEditor,
22
+ default6 as ImagePicker,
23
23
  InternalLinker,
24
24
  default7 as MediaLibrary,
25
25
  Upload,
26
- default9 as UploadCard,
27
- default8 as UploadFiles,
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
+ };
@@ -5,6 +5,5 @@ const antTheme = {
5
5
  hashed: !1
6
6
  };
7
7
  export {
8
- antTheme,
9
- antTheme as default
8
+ antTheme
10
9
  };
@@ -0,0 +1 @@
1
+ export * from './mime-types-utils';
@@ -0,0 +1 @@
1
+ export declare const HEIC_MIME_TYPES: string[];
@@ -0,0 +1,4 @@
1
+ const HEIC_MIME_TYPES = ["image/heic", "image/heif"];
2
+ export {
3
+ HEIC_MIME_TYPES
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.5.8",
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
- "@edifice.io/bootstrap": "2.5.8",
138
- "@edifice.io/tiptap-extensions": "2.5.8",
139
- "@edifice.io/utilities": "2.5.8"
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/client": "2.5.8",
171
- "@edifice.io/config": "2.5.8"
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",
@@ -1,3 +0,0 @@
1
- export declare const CommentHeader: ({ title }: {
2
- title: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import Heading from "../../../components/Heading/Heading.js";
3
- const CommentHeader = ({
4
- title
5
- }) => /* @__PURE__ */ jsx(Heading, { level: "h3", headingStyle: "h3", children: title });
6
- export {
7
- CommentHeader
8
- };