@edifice.io/react 2.0.0-develop-pedago.4 → 2.0.0-develop-pedago.6

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/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './components';
2
2
  export * from './hooks';
3
+ export * from './modules/modals';
3
4
  export * from './providers';
4
5
  export * from './types';
5
6
  export * from './utilities';
package/dist/index.js CHANGED
@@ -91,6 +91,14 @@ import { default as default75 } from "./hooks/useMediaLibrary/useMediaLibrary.js
91
91
  import { useResourceSearch } from "./hooks/useResourceSearch/useResourceSearch.js";
92
92
  import { default as default76 } from "./hooks/useToast/useToast.js";
93
93
  import { default as default77 } from "./hooks/useUser/useUser.js";
94
+ import { default as default78 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
95
+ import { default as default79 } from "./modules/modals/PublishModal/PublishModal.js";
96
+ import { default as default80 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
97
+ import { default as default81 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
98
+ import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
99
+ import { default as default82 } from "./modules/modals/ShareModal/ShareModal.js";
100
+ import { default as default83 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
101
+ import { default as default84 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
94
102
  import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
95
103
  import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
96
104
  import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
@@ -109,6 +117,7 @@ export {
109
117
  default5 as Attachment,
110
118
  default59 as Avatar,
111
119
  default6 as Badge,
120
+ default80 as BlogPublic,
112
121
  default7 as Breadcrumb,
113
122
  default60 as Button,
114
123
  default10 as Card,
@@ -142,14 +151,19 @@ export {
142
151
  default19 as Logo,
143
152
  Menu,
144
153
  default68 as Modal,
154
+ default78 as OnboardingModal,
145
155
  Popover,
146
156
  PopoverBody,
147
157
  PopoverFooter,
148
158
  PopoverHeader,
159
+ default79 as PublishModal,
149
160
  default69 as Radio,
161
+ ResourceModal,
150
162
  default20 as SearchBar,
151
163
  default9 as SearchButton,
152
164
  default21 as Select,
165
+ default83 as ShareBlog,
166
+ default82 as ShareModal,
153
167
  default23 as SortableTree,
154
168
  default22 as Table,
155
169
  Tabs,
@@ -218,6 +232,7 @@ export {
218
232
  useResourceSearch,
219
233
  default46 as useScrollToTop,
220
234
  default47 as useSession,
235
+ default84 as useShareMutation,
221
236
  default48 as useTitle,
222
237
  default76 as useToast,
223
238
  default49 as useToggle,
@@ -225,6 +240,7 @@ export {
225
240
  default51 as useTrashedResource,
226
241
  useTreeSortable,
227
242
  useTreeView,
243
+ default81 as useUpdateMutation,
228
244
  default52 as useUpload,
229
245
  default53 as useUploadFiles,
230
246
  default77 as useUser,
package/dist/modals.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { default as default2 } from "./modules/modals/OnboardingModal/OnboardingModal.js";
2
2
  import { default as default3 } from "./modules/modals/PublishModal/PublishModal.js";
3
- import { default as default4 } from "./modules/modals/ResourceModal/ResourceModal.js";
3
+ import { default as default4 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
4
4
  import { default as default5 } from "./modules/modals/ResourceModal/hooks/useUpdateMutation.js";
5
- import { default as default6 } from "./modules/modals/ResourceModal/apps/BlogPublic.js";
6
- import { default as default7 } from "./modules/modals/ShareModal/ShareModal.js";
7
- import { default as default8 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
8
- import { default as default9 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
5
+ import { default as default6 } from "./modules/modals/ShareModal/ShareModal.js";
6
+ import { default as default7 } from "./modules/modals/ShareModal/apps/ShareBlog.js";
7
+ import { default as default8 } from "./modules/modals/ShareModal/hooks/useShareMutation.js";
8
+ import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
9
9
  export {
10
- default6 as BlogPublic,
10
+ default4 as BlogPublic,
11
11
  default2 as OnboardingModal,
12
12
  default3 as PublishModal,
13
- default4 as ResourceModal,
14
- default8 as ShareBlog,
15
- default7 as ShareModal,
16
- default9 as useShareMutation,
13
+ ResourceModal,
14
+ default7 as ShareBlog,
15
+ default6 as ShareModal,
16
+ default8 as useShareMutation,
17
17
  default5 as useUpdateMutation
18
18
  };
@@ -7,8 +7,8 @@ import { useTranslation } from "react-i18next";
7
7
  import useReactionIcons from "./hooks/useReactionIcons.js";
8
8
  import { ReactionModalCard } from "./ReactionModal.Card.js";
9
9
  import Modal from "../../components/Modal/Modal.js";
10
- import { Tabs } from "../../components/Tabs/components/Tabs.js";
11
10
  import Button from "../../components/Button/Button.js";
11
+ import { Tabs } from "../../components/Tabs/components/Tabs.js";
12
12
  const ALL_TAB_ID = "all", ReactionModal = ({
13
13
  resourceId,
14
14
  pageSize = 30,
@@ -26,5 +26,5 @@ interface UpdateProps extends BaseProps {
26
26
  resourceId: ID;
27
27
  }
28
28
  type Props = CreateProps | UpdateProps;
29
- declare const ResourceModal: ({ isOpen, onCancel, onSuccess, children, inputMaxLength, textareaMaxLength, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const ResourceModal: ({ isOpen, onCancel, onSuccess, children, inputMaxLength, textareaMaxLength, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
30
30
  export default ResourceModal;
@@ -5,9 +5,9 @@ import { createPortal } from "react-dom";
5
5
  import { useForm } from "react-hook-form";
6
6
  import { useTranslation } from "react-i18next";
7
7
  import { TextareaCounter } from "../../../components/TextArea/TextareaCounter.js";
8
- import { useEdificeClient } from "../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
9
8
  import ImagePicker from "../../multimedia/ImagePicker/ImagePicker.js";
10
9
  import { useThumb } from "./hooks/useThumb.js";
10
+ import { useEdificeClient } from "../../../providers/EdificeClientProvider/EdificeClientProvider.hook.js";
11
11
  import useToast from "../../../hooks/useToast/useToast.js";
12
12
  import useResource from "../../../hooks/useResource/useResource.js";
13
13
  import useMediaLibrary from "../../../hooks/useMediaLibrary/useMediaLibrary.js";
@@ -151,5 +151,6 @@ const DEFAULT_INPUT_MAX_LENGTH = 60, DEFAULT_TEXTAREA_MAX_LENGTH = 400, Resource
151
151
  ] }), document.getElementById("portal"));
152
152
  };
153
153
  export {
154
+ ResourceModal,
154
155
  ResourceModal as default
155
156
  };
@@ -1,3 +1,3 @@
1
- export { default as ResourceModal } from './ResourceModal';
2
- export { default as useUpdateMutation } from './hooks/useUpdateMutation';
3
1
  export { default as BlogPublic } from './apps/BlogPublic';
2
+ export { default as useUpdateMutation } from './hooks/useUpdateMutation';
3
+ export * from './ResourceModal';
@@ -1,2 +1,2 @@
1
1
  export * from './ImagePicker';
2
- export { default as ImagePickerWorkspace } from './ImagePicker';
2
+ export { default as ImagePicker } from './ImagePicker';
@@ -14,8 +14,8 @@ import { MediaLibraryContext } from "./MediaLibraryContext.js";
14
14
  import useHttpErrorToast from "../../../hooks/useHttpErrorToast/useHttpErrorToast.js";
15
15
  import useHasWorkflow from "../../../hooks/useHasWorkflow/useHasWorkflow.js";
16
16
  import Modal from "../../../components/Modal/Modal.js";
17
- import Button from "../../../components/Button/Button.js";
18
17
  import { Tabs } from "../../../components/Tabs/components/Tabs.js";
18
+ import Button from "../../../components/Button/Button.js";
19
19
  const orderedTabs = [
20
20
  "audio-capture",
21
21
  "video-capture",
@@ -3,7 +3,7 @@ import { EdificeClientContext } from "./EdificeClientProvider.context.js";
3
3
  function useEdificeClient() {
4
4
  const context = useContext(EdificeClientContext);
5
5
  if (!context)
6
- throw new Error("Cannot be used outside of OdeClientProvider");
6
+ throw new Error("Cannot be used outside of EdificeClientProvider");
7
7
  return context;
8
8
  }
9
9
  export {
@@ -3,7 +3,7 @@ import { EdificeThemeContext } from "./EdificeThemeProvider.context.js";
3
3
  function useEdificeTheme() {
4
4
  const context = useContext(EdificeThemeContext);
5
5
  if (!context)
6
- throw new Error("Cannot be used outside of OdeClientProvider");
6
+ throw new Error("Cannot be used outside of EdificeThemeProvider");
7
7
  return context;
8
8
  }
9
9
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.0.0-develop-pedago.4",
3
+ "version": "2.0.0-develop-pedago.6",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -119,9 +119,9 @@
119
119
  "react-slugify": "^3.0.3",
120
120
  "swiper": "^10.1.0",
121
121
  "ua-parser-js": "^1.0.36",
122
- "@edifice.io/bootstrap": "2.0.0-develop-pedago.4",
123
- "@edifice.io/tiptap-extensions": "2.0.0-develop-pedago.4",
124
- "@edifice.io/utilities": "2.0.0-develop-pedago.4"
122
+ "@edifice.io/bootstrap": "2.0.0-develop-pedago.6",
123
+ "@edifice.io/utilities": "2.0.0-develop-pedago.6",
124
+ "@edifice.io/tiptap-extensions": "2.0.0-develop-pedago.6"
125
125
  },
126
126
  "devDependencies": {
127
127
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -147,7 +147,7 @@
147
147
  "typescript-eslint": "^8.8.1",
148
148
  "vite": "^5.4.11",
149
149
  "vite-plugin-dts": "^4.1.0",
150
- "@edifice.io/client": "2.0.0-develop-pedago.4"
150
+ "@edifice.io/client": "2.0.0-develop-pedago.6"
151
151
  },
152
152
  "peerDependencies": {
153
153
  "@react-spring/web": "^9.7.5",