@edifice.io/react 2.5.2 → 2.5.3
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.js +2 -0
- package/dist/providers/AntThemeProvider/AntProvider.d.ts +10 -0
- package/dist/providers/AntThemeProvider/AntProvider.js +11 -0
- package/dist/providers/AntThemeProvider/antThemeConfig.d.ts +7 -0
- package/dist/providers/AntThemeProvider/antThemeConfig.js +10 -0
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.js +2 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/package.json +20 -18
package/dist/index.js
CHANGED
|
@@ -120,6 +120,7 @@ import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
|
120
120
|
import { ResourceModal } from "./modules/modals/ResourceModal/ResourceModal.js";
|
|
121
121
|
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
122
122
|
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
123
|
+
import { AntProvider } from "./providers/AntThemeProvider/AntProvider.js";
|
|
123
124
|
import { EdificeClientProvider } from "./providers/EdificeClientProvider/EdificeClientProvider.js";
|
|
124
125
|
import { EdificeClientContext } from "./providers/EdificeClientProvider/EdificeClientProvider.context.js";
|
|
125
126
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
@@ -134,6 +135,7 @@ export {
|
|
|
134
135
|
AccessiblePalette,
|
|
135
136
|
default2 as ActionBar,
|
|
136
137
|
default3 as Alert,
|
|
138
|
+
AntProvider,
|
|
137
139
|
default4 as AppHeader,
|
|
138
140
|
default5 as AppIcon,
|
|
139
141
|
default6 as Attachment,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface AntProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Provider pour Ant Design qui intègre le thème personnalisé
|
|
7
|
+
* avec le système de design existant d'Edifice
|
|
8
|
+
*/
|
|
9
|
+
export declare const AntProvider: React.FC<AntProviderProps>;
|
|
10
|
+
export default AntProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ConfigProvider } from "antd";
|
|
3
|
+
import { antTheme } from "./antThemeConfig.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const AntProvider = ({
|
|
6
|
+
children
|
|
7
|
+
}) => /* @__PURE__ */ jsx(ConfigProvider, { theme: antTheme, children });
|
|
8
|
+
export {
|
|
9
|
+
AntProvider,
|
|
10
|
+
AntProvider as default
|
|
11
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
+
import { AntProvider } from "../AntThemeProvider/AntProvider.js";
|
|
3
4
|
import { useEdificeClient } from "../EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
4
5
|
import { EdificeThemeContext } from "./EdificeThemeProvider.context.js";
|
|
5
6
|
import useConf from "../../hooks/useConf/useConf.js";
|
|
@@ -39,7 +40,7 @@ function EdificeThemeProvider({
|
|
|
39
40
|
theme: (_a2 = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _a2.theme
|
|
40
41
|
};
|
|
41
42
|
}, [(_a = confQuery == null ? void 0 : confQuery.data) == null ? void 0 : _a.theme]);
|
|
42
|
-
return /* @__PURE__ */ jsx(EdificeThemeContext.Provider, { value: values, children });
|
|
43
|
+
return /* @__PURE__ */ jsx(EdificeThemeContext.Provider, { value: values, children: /* @__PURE__ */ jsx(AntProvider, { children }) });
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
46
|
EdificeThemeProvider
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root .edifice{--ant-color-primary: var(--edifice-primary);--ant-color-success: var(--edifice-success);--ant-color-warning: var(--edifice-warning);--ant-blue: var(--edifice-blue);--ant-purple: var(--edifice-purple);--ant-cyan: var(--edifice-cyan);--ant-green: var(--edifice-green);--ant-magenta: var(--edifice-magenta);--ant-pink: var(--edifice-pink);--ant-red: var(--edifice-red);--ant-orange: var(--edifice-orange);--ant-yellow: var(--edifice-yellow);--ant-color-text-base: var(--edifice-body-color);--ant-color-bg-base: var(--edifice-body-bg)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
+
"@ant-design/icons": "^6.0.2",
|
|
76
77
|
"@dnd-kit/core": "^6.1.0",
|
|
77
78
|
"@dnd-kit/sortable": "^8.0.0",
|
|
78
79
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -81,17 +82,29 @@
|
|
|
81
82
|
"@pixi/react": "7.1.2",
|
|
82
83
|
"@popperjs/core": "2.11.8",
|
|
83
84
|
"@tiptap/core": "2.11.0",
|
|
85
|
+
"@tiptap/extension-blockquote": "2.11.0",
|
|
86
|
+
"@tiptap/extension-bullet-list": "2.11.0",
|
|
84
87
|
"@tiptap/extension-character-count": "2.11.0",
|
|
88
|
+
"@tiptap/extension-code": "2.11.0",
|
|
89
|
+
"@tiptap/extension-code-block": "2.11.0",
|
|
85
90
|
"@tiptap/extension-color": "2.11.0",
|
|
91
|
+
"@tiptap/extension-dropcursor": "2.11.0",
|
|
86
92
|
"@tiptap/extension-focus": "2.11.0",
|
|
87
93
|
"@tiptap/extension-font-family": "2.11.0",
|
|
94
|
+
"@tiptap/extension-gapcursor": "2.11.0",
|
|
95
|
+
"@tiptap/extension-hard-break": "2.11.0",
|
|
88
96
|
"@tiptap/extension-heading": "2.11.0",
|
|
89
97
|
"@tiptap/extension-highlight": "2.11.0",
|
|
98
|
+
"@tiptap/extension-history": "2.11.0",
|
|
99
|
+
"@tiptap/extension-horizontal-rule": "2.11.0",
|
|
90
100
|
"@tiptap/extension-image": "2.11.0",
|
|
101
|
+
"@tiptap/extension-italic": "2.11.0",
|
|
91
102
|
"@tiptap/extension-link": "2.11.0",
|
|
92
103
|
"@tiptap/extension-list-item": "2.11.0",
|
|
93
104
|
"@tiptap/extension-mathematics": "2.22.0",
|
|
105
|
+
"@tiptap/extension-ordered-list": "2.11.0",
|
|
94
106
|
"@tiptap/extension-placeholder": "2.11.0",
|
|
107
|
+
"@tiptap/extension-strike": "2.11.0",
|
|
95
108
|
"@tiptap/extension-subscript": "2.11.0",
|
|
96
109
|
"@tiptap/extension-superscript": "2.11.0",
|
|
97
110
|
"@tiptap/extension-table": "2.11.0",
|
|
@@ -105,19 +118,8 @@
|
|
|
105
118
|
"@tiptap/pm": "2.11.0",
|
|
106
119
|
"@tiptap/react": "2.11.0",
|
|
107
120
|
"@tiptap/starter-kit": "2.11.0",
|
|
108
|
-
"@tiptap/extension-blockquote": "2.11.0",
|
|
109
|
-
"@tiptap/extension-bullet-list": "2.11.0",
|
|
110
|
-
"@tiptap/extension-code": "2.11.0",
|
|
111
|
-
"@tiptap/extension-code-block": "2.11.0",
|
|
112
|
-
"@tiptap/extension-dropcursor": "2.11.0",
|
|
113
|
-
"@tiptap/extension-gapcursor": "2.11.0",
|
|
114
|
-
"@tiptap/extension-hard-break": "2.11.0",
|
|
115
|
-
"@tiptap/extension-history": "2.11.0",
|
|
116
|
-
"@tiptap/extension-horizontal-rule": "2.11.0",
|
|
117
|
-
"@tiptap/extension-italic": "2.11.0",
|
|
118
|
-
"@tiptap/extension-ordered-list": "2.11.0",
|
|
119
|
-
"@tiptap/extension-strike": "2.11.0",
|
|
120
121
|
"@uidotdev/usehooks": "^2.4.1",
|
|
122
|
+
"antd": "^6.0.0",
|
|
121
123
|
"clsx": "^2.1.1",
|
|
122
124
|
"dayjs": "1.11.10",
|
|
123
125
|
"emoji-picker-react": "4.5.2",
|
|
@@ -131,9 +133,9 @@
|
|
|
131
133
|
"react-slugify": "^3.0.3",
|
|
132
134
|
"swiper": "^10.1.0",
|
|
133
135
|
"ua-parser-js": "^1.0.36",
|
|
134
|
-
"@edifice.io/bootstrap": "2.5.
|
|
135
|
-
"@edifice.io/tiptap-extensions": "2.5.
|
|
136
|
-
"@edifice.io/utilities": "2.5.
|
|
136
|
+
"@edifice.io/bootstrap": "2.5.3",
|
|
137
|
+
"@edifice.io/tiptap-extensions": "2.5.3",
|
|
138
|
+
"@edifice.io/utilities": "2.5.3"
|
|
137
139
|
},
|
|
138
140
|
"devDependencies": {
|
|
139
141
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -164,8 +166,8 @@
|
|
|
164
166
|
"vite": "^5.4.11",
|
|
165
167
|
"vite-plugin-dts": "^4.1.0",
|
|
166
168
|
"vite-tsconfig-paths": "^5.0.1",
|
|
167
|
-
"@edifice.io/client": "2.5.
|
|
168
|
-
"@edifice.io/config": "2.5.
|
|
169
|
+
"@edifice.io/client": "2.5.3",
|
|
170
|
+
"@edifice.io/config": "2.5.3"
|
|
169
171
|
},
|
|
170
172
|
"peerDependencies": {
|
|
171
173
|
"@react-spring/web": "^9.7.5",
|