@edifice.io/react 2.5.10 → 2.5.12-develop-enabling.20260224121421
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/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.js +1 -11
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Form/FormControl.js +1 -1
- package/dist/components/Layout/components/WidgetApps.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/PreventPropagation/PreventPropagation.js +1 -1
- package/dist/components/PromotionCard/PromotionCard.js +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/components/Table/components/Table.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useConf/useConf.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -0
- package/dist/hooks/useSession/useSession.d.ts +1 -1
- package/dist/hooks/useThumbnail/useThumbnail.d.ts +1 -1
- package/dist/hooks/useThumbnail/useThumbnail.js +5 -1
- package/dist/hooks/useUpload/useUpload.js +2 -5
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.d.ts +12 -0
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +1 -1
- package/dist/icons.js +302 -298
- package/dist/index.js +2 -0
- package/dist/modules/editor/components/Editor/EditorPreview.js +1 -1
- package/dist/modules/icons/components/IconCollect.d.ts +7 -0
- package/dist/modules/icons/components/IconCollect.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/index.d.ts +2 -0
- 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 -53
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +2 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -0
- package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/date-picker/locale/de_DE.js +2 -2
- package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/date-picker/locale/es_ES.js +2 -2
- package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/date-picker/locale/fr_FR.js +2 -2
- package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/date-picker/locale/it_IT.js +2 -2
- package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/date-picker/locale/pt_PT.js +2 -2
- package/dist/providers/AntThemeProvider/AntProvider.js +5 -5
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.d.ts +1 -1
- package/dist/types/color.d.ts +3 -0
- package/dist/utilities/react-query/react-query-utils.d.ts +1 -1
- package/package.json +50 -50
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/calendar/locale/de_DE.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/calendar/locale/es_ES.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/calendar/locale/fr_FR.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/calendar/locale/it_IT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/calendar/locale/pt_PT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/locale/de_DE.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/locale/es_ES.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/locale/fr_FR.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/locale/it_IT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/locale/pt_PT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/time-picker/locale/de_DE.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/time-picker/locale/es_ES.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/time-picker/locale/fr_FR.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/time-picker/locale/it_IT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/lib/time-picker/locale/pt_PT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/locale/de_DE.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/locale/es_ES.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/locale/fr_FR.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/locale/it_IT.js +0 -0
- /package/dist/node_modules/.pnpm/{antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1 → antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/antd/locale/pt_PT.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as default2 } from "./components/ActionBar/ActionBar.js";
|
|
2
|
+
import { AddAttachments } from "./components/AddAttachments/AddAttachments.js";
|
|
2
3
|
import { default as default3 } from "./components/Alert/Alert.js";
|
|
3
4
|
import { default as default4 } from "./components/AppHeader/AppHeader.js";
|
|
4
5
|
import { default as default5 } from "./components/AppIcon/AppIcon.js";
|
|
@@ -145,6 +146,7 @@ import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
|
145
146
|
export {
|
|
146
147
|
AccessiblePalette,
|
|
147
148
|
default2 as ActionBar,
|
|
149
|
+
AddAttachments,
|
|
148
150
|
default3 as Alert,
|
|
149
151
|
AntProvider,
|
|
150
152
|
default4 as AppHeader,
|
|
@@ -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 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
|
+
};
|
|
@@ -32,6 +32,7 @@ export { default as IconClock } from './IconClock';
|
|
|
32
32
|
export { default as IconCloseFullScreen } from './IconCloseFullScreen';
|
|
33
33
|
export { default as IconClose } from './IconClose';
|
|
34
34
|
export { default as IconCode } from './IconCode';
|
|
35
|
+
export { default as IconCollect } from './IconCollect';
|
|
35
36
|
export { default as IconCopy } from './IconCopy';
|
|
36
37
|
export { default as IconCrop } from './IconCrop';
|
|
37
38
|
export { default as IconCut } from './IconCut';
|
|
@@ -140,6 +141,7 @@ export { default as IconSplitCells } from './IconSplitCells';
|
|
|
140
141
|
export { default as IconSquareRoot } from './IconSquareRoot';
|
|
141
142
|
export { default as IconStarFull } from './IconStarFull';
|
|
142
143
|
export { default as IconStar } from './IconStar';
|
|
144
|
+
export { default as IconSubmission } from './IconSubmission';
|
|
143
145
|
export { default as IconSubmitToValidate } from './IconSubmitToValidate';
|
|
144
146
|
export { default as IconSubscript } from './IconSubscript';
|
|
145
147
|
export { default as IconSuccessFill } from './IconSuccessFill';
|
|
@@ -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
|
*
|
|
@@ -118,21 +118,11 @@ interface ShareResourceProps {
|
|
|
118
118
|
classNameSearchInput?: string;
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
* Ref interface exposed by ShareResources component
|
|
121
|
+
* Ref interface exposed by ShareResources component.
|
|
122
|
+
* Use useRef with this type and call ref.current?.handleShare() to trigger share programmatically.
|
|
122
123
|
*
|
|
123
124
|
* @interface ShareResourcesRef
|
|
124
125
|
* @property {() => void} handleShare - Method to trigger the share operation
|
|
125
|
-
*
|
|
126
|
-
* @example
|
|
127
|
-
* ```tsx
|
|
128
|
-
* const ref = useRef<ShareResourcesRef>(null);
|
|
129
|
-
*
|
|
130
|
-
* // Trigger share programmatically
|
|
131
|
-
* ref.current?.handleShare();
|
|
132
|
-
*
|
|
133
|
-
* // Check sharing status
|
|
134
|
-
* const sharing = ref.current?.isSharing();
|
|
135
|
-
* ```
|
|
136
126
|
*/
|
|
137
127
|
export interface ShareResourcesRef {
|
|
138
128
|
handleShare: (notify?: boolean) => void;
|
|
@@ -142,46 +132,7 @@ export interface ShareResourcesRef {
|
|
|
142
132
|
*
|
|
143
133
|
* A component for managing resource sharing permissions with users and groups.
|
|
144
134
|
* Provides search functionality, bookmark management, and granular rights control.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```tsx
|
|
148
|
-
* import { useRef } from 'react';
|
|
149
|
-
* import ShareResources, { ShareResourcesRef, ShareOptions } from './ShareResources';
|
|
150
|
-
*
|
|
151
|
-
* function MyComponent() {
|
|
152
|
-
* const shareRef = useRef<ShareResourcesRef>(null);
|
|
153
|
-
*
|
|
154
|
-
* const shareOptions: ShareOptions = {
|
|
155
|
-
* resourceId: '123',
|
|
156
|
-
* resourceRights: [],
|
|
157
|
-
* resourceCreatorId: 'user-456',
|
|
158
|
-
* filteredActions: ['read', 'contrib'],
|
|
159
|
-
* urls: {
|
|
160
|
-
* getResourceRights: '/api/share/rights',
|
|
161
|
-
* putResourceRights: '/api/share/update'
|
|
162
|
-
* }
|
|
163
|
-
* };
|
|
164
|
-
*
|
|
165
|
-
* const handleSave = () => {
|
|
166
|
-
* if (shareRef.current) {
|
|
167
|
-
* shareRef.current.handleShare();
|
|
168
|
-
* }
|
|
169
|
-
* };
|
|
170
|
-
*
|
|
171
|
-
* return (
|
|
172
|
-
* <>
|
|
173
|
-
* <ShareResources
|
|
174
|
-
* ref={shareRef}
|
|
175
|
-
* shareOptions={shareOptions}
|
|
176
|
-
* onSuccess={() => console.log('Shared successfully')}
|
|
177
|
-
* onChange={(rights, isDirty) => console.log('Rights changed:', isDirty)}
|
|
178
|
-
* onSubmit={(isSubmitting) => console.log('Submitting share...', isSubmitting)}
|
|
179
|
-
* />
|
|
180
|
-
* <button onClick={handleSave}>Save Changes</button>
|
|
181
|
-
* </>
|
|
182
|
-
* );
|
|
183
|
-
* }
|
|
184
|
-
* ```
|
|
135
|
+
* Use forwardRef to get a ref with handleShare(). See ShareResourcesRef interface.
|
|
185
136
|
*
|
|
186
137
|
* @component
|
|
187
138
|
* @forwardRef
|
|
@@ -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, {
|
|
@@ -11,12 +11,12 @@ Object.defineProperty(de_DE, "__esModule", {
|
|
|
11
11
|
de_DE.default = void 0;
|
|
12
12
|
var _de_DE = _interopRequireDefault(de_DE$1), _de_DE2 = _interopRequireDefault(de_DE$2);
|
|
13
13
|
const locale = {
|
|
14
|
-
lang:
|
|
14
|
+
lang: Object.assign({
|
|
15
15
|
placeholder: "Datum auswählen",
|
|
16
16
|
rangePlaceholder: ["Startdatum", "Enddatum"],
|
|
17
17
|
shortWeekDays: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
18
18
|
shortMonths: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
|
|
19
19
|
}, _de_DE.default),
|
|
20
|
-
timePickerLocale:
|
|
20
|
+
timePickerLocale: Object.assign({}, _de_DE2.default)
|
|
21
21
|
};
|
|
22
22
|
de_DE.default = locale;
|
|
@@ -11,12 +11,12 @@ Object.defineProperty(es_ES, "__esModule", {
|
|
|
11
11
|
es_ES.default = void 0;
|
|
12
12
|
var _es_ES = _interopRequireDefault(es_ES$1), _es_ES2 = _interopRequireDefault(es_ES$2);
|
|
13
13
|
const locale = {
|
|
14
|
-
lang:
|
|
14
|
+
lang: Object.assign({
|
|
15
15
|
placeholder: "Seleccionar fecha",
|
|
16
16
|
rangePlaceholder: ["Fecha inicial", "Fecha final"],
|
|
17
17
|
shortWeekDays: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
|
|
18
18
|
shortMonths: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"]
|
|
19
19
|
}, _es_ES.default),
|
|
20
|
-
timePickerLocale:
|
|
20
|
+
timePickerLocale: Object.assign({}, _es_ES2.default)
|
|
21
21
|
};
|
|
22
22
|
es_ES.default = locale;
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(fr_FR, "__esModule", {
|
|
|
11
11
|
fr_FR.default = void 0;
|
|
12
12
|
var _fr_FR = _interopRequireDefault(fr_FR$1), _fr_FR2 = _interopRequireDefault(fr_FR$2);
|
|
13
13
|
const locale = {
|
|
14
|
-
lang:
|
|
14
|
+
lang: Object.assign({
|
|
15
15
|
placeholder: "Sélectionner une date",
|
|
16
16
|
yearPlaceholder: "Sélectionner une année",
|
|
17
17
|
quarterPlaceholder: "Sélectionner un trimestre",
|
|
@@ -22,6 +22,6 @@ const locale = {
|
|
|
22
22
|
rangeMonthPlaceholder: ["Mois de début", "Mois de fin"],
|
|
23
23
|
rangeWeekPlaceholder: ["Semaine de début", "Semaine de fin"]
|
|
24
24
|
}, _fr_FR.default),
|
|
25
|
-
timePickerLocale:
|
|
25
|
+
timePickerLocale: Object.assign({}, _fr_FR2.default)
|
|
26
26
|
};
|
|
27
27
|
fr_FR.default = locale;
|
|
@@ -11,10 +11,10 @@ Object.defineProperty(it_IT, "__esModule", {
|
|
|
11
11
|
it_IT.default = void 0;
|
|
12
12
|
var _it_IT = _interopRequireDefault(it_IT$1), _it_IT2 = _interopRequireDefault(it_IT$2);
|
|
13
13
|
const locale = {
|
|
14
|
-
lang:
|
|
14
|
+
lang: Object.assign({
|
|
15
15
|
placeholder: "Selezionare la data",
|
|
16
16
|
rangePlaceholder: ["Data d'inizio", "Data di fine"]
|
|
17
17
|
}, _it_IT.default),
|
|
18
|
-
timePickerLocale:
|
|
18
|
+
timePickerLocale: Object.assign({}, _it_IT2.default)
|
|
19
19
|
};
|
|
20
20
|
it_IT.default = locale;
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(pt_PT, "__esModule", {
|
|
|
11
11
|
pt_PT.default = void 0;
|
|
12
12
|
var _pt_PT = _interopRequireDefault(pt_PT$1), _pt_PT2 = _interopRequireDefault(pt_PT$2);
|
|
13
13
|
const locale = {
|
|
14
|
-
lang:
|
|
14
|
+
lang: Object.assign(Object.assign({}, _pt_PT.default), {
|
|
15
15
|
placeholder: "Data",
|
|
16
16
|
rangePlaceholder: ["Data inicial", "Data final"],
|
|
17
17
|
today: "Hoje",
|
|
@@ -38,7 +38,7 @@ const locale = {
|
|
|
38
38
|
previousCentury: "Último século",
|
|
39
39
|
nextCentury: "Próximo século"
|
|
40
40
|
}),
|
|
41
|
-
timePickerLocale:
|
|
41
|
+
timePickerLocale: Object.assign(Object.assign({}, _pt_PT2.default), {
|
|
42
42
|
placeholder: "Hora"
|
|
43
43
|
})
|
|
44
44
|
};
|
|
@@ -3,11 +3,11 @@ import { ConfigProvider } from "antd";
|
|
|
3
3
|
import { antTheme } from "./antThemeConfig.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { useEdificeClient } from "../EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
6
|
-
import frFR from "../../node_modules/.pnpm/antd@5.29.
|
|
7
|
-
import deDE from "../../node_modules/.pnpm/antd@5.29.
|
|
8
|
-
import esES from "../../node_modules/.pnpm/antd@5.29.
|
|
9
|
-
import itIT from "../../node_modules/.pnpm/antd@5.29.
|
|
10
|
-
import ptPT from "../../node_modules/.pnpm/antd@5.29.
|
|
6
|
+
import frFR from "../../node_modules/.pnpm/antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js";
|
|
7
|
+
import deDE from "../../node_modules/.pnpm/antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js";
|
|
8
|
+
import esES from "../../node_modules/.pnpm/antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js";
|
|
9
|
+
import itIT from "../../node_modules/.pnpm/antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js";
|
|
10
|
+
import ptPT from "../../node_modules/.pnpm/antd@5.29.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js";
|
|
11
11
|
const antdLocaleMap = {
|
|
12
12
|
fr: frFR,
|
|
13
13
|
de: deDE,
|
|
@@ -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;
|
|
@@ -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.12-develop-enabling.20260224121421",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@ant-design/icons": "
|
|
77
|
-
"@dnd-kit/core": "
|
|
78
|
-
"@dnd-kit/sortable": "
|
|
79
|
-
"@dnd-kit/utilities": "
|
|
76
|
+
"@ant-design/icons": "5.4.0",
|
|
77
|
+
"@dnd-kit/core": "6.3.1",
|
|
78
|
+
"@dnd-kit/sortable": "8.0.0",
|
|
79
|
+
"@dnd-kit/utilities": "3.2.2",
|
|
80
80
|
"@floating-ui/react": "0.26.0",
|
|
81
81
|
"@pixi/mixin-get-child-by-name": "7.4.2",
|
|
82
82
|
"@pixi/react": "7.1.2",
|
|
@@ -118,66 +118,66 @@
|
|
|
118
118
|
"@tiptap/pm": "2.11.0",
|
|
119
119
|
"@tiptap/react": "2.11.0",
|
|
120
120
|
"@tiptap/starter-kit": "2.11.0",
|
|
121
|
-
"@uidotdev/usehooks": "
|
|
122
|
-
"antd": "
|
|
123
|
-
"clsx": "
|
|
121
|
+
"@uidotdev/usehooks": "2.4.1",
|
|
122
|
+
"antd": "5.29.1",
|
|
123
|
+
"clsx": "2.1.1",
|
|
124
124
|
"dayjs": "1.11.19",
|
|
125
|
-
"emoji-picker-react": "4.
|
|
125
|
+
"emoji-picker-react": "4.17.4",
|
|
126
126
|
"heic2any": "0.0.4",
|
|
127
127
|
"html-react-parser": "4.2.1",
|
|
128
128
|
"ohash": "1.1.3",
|
|
129
129
|
"pako": "2.1.0",
|
|
130
130
|
"pixi.js": "7.4.2",
|
|
131
|
-
"react-hot-toast": "
|
|
131
|
+
"react-hot-toast": "2.6.0",
|
|
132
132
|
"react-intersection-observer": "9.5.3",
|
|
133
|
-
"react-
|
|
134
|
-
"react-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"@edifice.io/bootstrap": "2.5.
|
|
139
|
-
"@edifice.io/
|
|
140
|
-
"@edifice.io/
|
|
133
|
+
"react-pdf": "10.3.0",
|
|
134
|
+
"react-popper": "2.3.0",
|
|
135
|
+
"react-slugify": "3.0.3",
|
|
136
|
+
"swiper": "10.1.0",
|
|
137
|
+
"ua-parser-js": "1.0.36",
|
|
138
|
+
"@edifice.io/bootstrap": "2.5.12-develop-enabling.20260224121421",
|
|
139
|
+
"@edifice.io/tiptap-extensions": "2.5.12-develop-enabling.20260224121421",
|
|
140
|
+
"@edifice.io/utilities": "2.5.12-develop-enabling.20260224121421"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
|
-
"@babel/plugin-transform-react-pure-annotations": "
|
|
144
|
-
"@eslint/js": "
|
|
145
|
-
"@react-spring/web": "
|
|
146
|
-
"@svgr/cli": "
|
|
147
|
-
"@tanstack/query-core": "5.
|
|
143
|
+
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
144
|
+
"@eslint/js": "9.39.2",
|
|
145
|
+
"@react-spring/web": "9.7.5",
|
|
146
|
+
"@svgr/cli": "8.1.0",
|
|
147
|
+
"@tanstack/query-core": "5.90.20",
|
|
148
148
|
"@tanstack/react-query": "5.62.7",
|
|
149
|
-
"@testing-library/jest-dom": "
|
|
150
|
-
"@testing-library/react": "
|
|
151
|
-
"@testing-library/user-event": "
|
|
152
|
-
"@types/node": "
|
|
153
|
-
"@types/pako": "
|
|
154
|
-
"@types/react": "
|
|
155
|
-
"@types/react-dom": "
|
|
156
|
-
"@types/ua-parser-js": "
|
|
157
|
-
"@vitejs/plugin-react": "
|
|
158
|
-
"eslint": "
|
|
149
|
+
"@testing-library/jest-dom": "6.5.0",
|
|
150
|
+
"@testing-library/react": "16.0.1",
|
|
151
|
+
"@testing-library/user-event": "14.5.2",
|
|
152
|
+
"@types/node": "22.19.8",
|
|
153
|
+
"@types/pako": "2.0.4",
|
|
154
|
+
"@types/react": "18.3.27",
|
|
155
|
+
"@types/react-dom": "18.3.7",
|
|
156
|
+
"@types/ua-parser-js": "0.7.37",
|
|
157
|
+
"@vitejs/plugin-react": "4.7.0",
|
|
158
|
+
"eslint": "9.39.2",
|
|
159
159
|
"eslint-plugin-react-hooks": "5.1.0-rc.0",
|
|
160
|
-
"eslint-plugin-react-refresh": "
|
|
161
|
-
"react": "
|
|
162
|
-
"react-dom": "
|
|
163
|
-
"react-hook-form": "
|
|
164
|
-
"react-i18next": "
|
|
165
|
-
"rollup-plugin-pure": "
|
|
160
|
+
"eslint-plugin-react-refresh": "0.4.26",
|
|
161
|
+
"react": "18.3.1",
|
|
162
|
+
"react-dom": "18.3.1",
|
|
163
|
+
"react-hook-form": "7.71.1",
|
|
164
|
+
"react-i18next": "14.1.3",
|
|
165
|
+
"rollup-plugin-pure": "0.4.0",
|
|
166
166
|
"rollup-plugin-visualizer": "5.12.0",
|
|
167
|
-
"typescript-eslint": "
|
|
168
|
-
"vite": "
|
|
169
|
-
"vite-plugin-dts": "
|
|
170
|
-
"vite-tsconfig-paths": "
|
|
171
|
-
"@edifice.io/client": "2.5.
|
|
172
|
-
"@edifice.io/config": "2.5.
|
|
167
|
+
"typescript-eslint": "8.54.0",
|
|
168
|
+
"vite": "5.4.14",
|
|
169
|
+
"vite-plugin-dts": "4.5.4",
|
|
170
|
+
"vite-tsconfig-paths": "5.1.4",
|
|
171
|
+
"@edifice.io/client": "2.5.12-develop-enabling.20260224121421",
|
|
172
|
+
"@edifice.io/config": "2.5.12-develop-enabling.20260224121421"
|
|
173
173
|
},
|
|
174
174
|
"peerDependencies": {
|
|
175
|
-
"@react-spring/web": "
|
|
175
|
+
"@react-spring/web": "9.7.5",
|
|
176
176
|
"@tanstack/react-query": "5.62.7",
|
|
177
|
-
"react": "
|
|
178
|
-
"react-dom": "
|
|
179
|
-
"react-hook-form": "
|
|
180
|
-
"react-i18next": "
|
|
177
|
+
"react": "18.3.1",
|
|
178
|
+
"react-dom": "18.3.1",
|
|
179
|
+
"react-hook-form": "7.71.1",
|
|
180
|
+
"react-i18next": "14.1.3"
|
|
181
181
|
},
|
|
182
182
|
"publishConfig": {
|
|
183
183
|
"access": "public"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|