data-primals-engine 1.7.1 → 1.7.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/README.md +9 -9
- package/client/package-lock.json +8430 -8121
- package/client/package.json +7 -4
- package/client/src/APIInfo.jsx +1 -1
- package/client/src/App.jsx +2 -1
- package/client/src/App.scss +1635 -1626
- package/client/src/AssistantChat.jsx +2 -3
- package/client/src/CalendarView.jsx +1 -0
- package/client/src/ContentView.jsx +3 -3
- package/client/src/Dashboard.jsx +5 -2
- package/client/src/DashboardChart.jsx +1 -0
- package/client/src/DashboardFlexViewItem.jsx +1 -0
- package/client/src/DashboardHtmlViewItem.jsx +1 -0
- package/client/src/DashboardView.jsx +2 -0
- package/client/src/DataEditor.jsx +0 -1
- package/client/src/DataImporter.jsx +489 -468
- package/client/src/DataLayout.jsx +25 -23
- package/client/src/DataTable.jsx +6 -5
- package/client/src/Dialog.jsx +92 -90
- package/client/src/Dialog.scss +122 -116
- package/client/src/DisplayFlexNodeRenderer.jsx +1 -0
- package/client/src/DocumentationPageLayout.scss +1 -1
- package/client/src/FlexBuilderControls.jsx +1 -0
- package/client/src/FlexBuilderPreview.jsx +1 -1
- package/client/src/FlexNode.jsx +1 -1
- package/client/src/HistoryDialog.jsx +3 -2
- package/client/src/KPIWidget.jsx +1 -1
- package/client/src/KanbanView.jsx +1 -0
- package/client/src/ModelCreator.jsx +4 -0
- package/client/src/ModelList.jsx +1 -0
- package/client/src/PackGallery.jsx +5 -4
- package/client/src/RTETrans.jsx +1 -1
- package/client/src/RelationField.jsx +2 -0
- package/client/src/RelationSelectorWidget.jsx +2 -0
- package/client/src/RelationValue.jsx +1 -0
- package/client/src/RestoreDialog.jsx +1 -0
- package/client/src/ViewSwitcher.jsx +1 -1
- package/client/src/WorkflowEditor.jsx +3 -0
- package/client/src/contexts/CommandContext.jsx +2 -1
- package/client/src/contexts/ModelContext.jsx +3 -3
- package/client/src/hooks/data.js +1 -0
- package/client/src/hooks/useValidation.js +1 -0
- package/client/src/translations.js +24 -24
- package/client/vite.config.js +31 -30
- package/doc/AI-assistance.md +87 -63
- package/doc/Concepts.md +122 -0
- package/doc/Custom-Endpoints.md +31 -0
- package/doc/Event-system.md +13 -14
- package/doc/Home.md +33 -0
- package/doc/Modules.md +83 -0
- package/doc/Packs-gallery.md +8 -23
- package/doc/Workflows.md +32 -0
- package/doc/automation-workflows.md +141 -102
- package/doc/dashboards-kpis-charts.md +47 -49
- package/doc/data-management.md +126 -120
- package/doc/data-models.md +68 -75
- package/doc/roles-permissions.md +144 -43
- package/doc/sharding-replication.md +158 -0
- package/doc/users.md +54 -30
- package/package.json +27 -17
- package/server.js +37 -37
- package/src/ai.jobs.js +135 -0
- package/src/constants.js +560 -545
- package/src/data.js +521 -518
- package/src/email.js +157 -154
- package/src/engine.js +167 -49
- package/src/gameObject.js +6 -0
- package/src/i18n.js +0 -1
- package/src/modules/assistant/assistant.js +782 -763
- package/src/modules/assistant/constants.js +23 -16
- package/src/modules/assistant/providers.js +77 -37
- package/src/modules/auth-google/index.js +53 -50
- package/src/modules/bucket.js +346 -335
- package/src/modules/data/data.backup.js +400 -376
- package/src/modules/data/data.cluster.js +559 -0
- package/src/modules/data/data.core.js +11 -8
- package/src/modules/data/data.js +311 -311
- package/src/modules/data/data.operations.js +3666 -3555
- package/src/modules/data/data.relations.js +1 -0
- package/src/modules/data/data.replication.js +125 -0
- package/src/modules/data/data.routes.js +2206 -1879
- package/src/modules/data/data.scheduling.js +2 -1
- package/src/modules/file.js +248 -247
- package/src/modules/mongodb.js +76 -73
- package/src/modules/user.js +18 -2
- package/src/modules/worker-script-runner.js +97 -0
- package/src/modules/workflow.js +177 -52
- package/src/packs.js +5701 -5701
- package/src/providers.js +298 -297
- package/src/sso.js +91 -25
- package/test/assistant.test.js +207 -206
- package/test/cluster.test.js +221 -0
- package/test/core.test.js +0 -2
- package/test/data.integration.test.js +1425 -1416
- package/test/import_export.integration.test.js +210 -210
- package/test/replication.test.js +163 -0
- package/test/workflow.actions.integration.test.js +487 -475
- package/test/workflow.integration.test.js +332 -329
- package/doc/core-concepts.md +0 -33
package/client/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"preview": "vite preview"
|
|
14
14
|
},
|
|
15
15
|
"resolutions": {
|
|
16
|
+
"markdown-it": ">=14.1.1",
|
|
16
17
|
"immutable": ">=5.1.5",
|
|
17
18
|
"body-parser": ">=2.2.1",
|
|
18
19
|
"js-yaml": ">=4.1.1",
|
|
@@ -31,7 +32,6 @@
|
|
|
31
32
|
"react-cookie": "^8.0.1",
|
|
32
33
|
"react-ga": "^3.3.1",
|
|
33
34
|
"react-helmet": "^6.1.0",
|
|
34
|
-
"react-icons": "^5.5.0",
|
|
35
35
|
"react-international-phone": "^4.6.0",
|
|
36
36
|
"react-query": "^3.39.3",
|
|
37
37
|
"react-router-dom": "^7.8.1",
|
|
@@ -63,14 +63,17 @@
|
|
|
63
63
|
"lowlight": "^3.3.0",
|
|
64
64
|
"react": "^18.3.1",
|
|
65
65
|
"reactflow": "^11.0.0-next.0",
|
|
66
|
+
"react-icons": "^5.5.0",
|
|
66
67
|
"react-big-calendar": "^1.15.0",
|
|
67
68
|
"react-color": "^2.19.3",
|
|
68
69
|
"react-dom": "^18.3.1",
|
|
69
70
|
"react-leaflet": "^4.2.1",
|
|
70
|
-
"react-router": "7.
|
|
71
|
+
"react-router": ">=7.15.1",
|
|
71
72
|
"react-switch": "^7.1.0",
|
|
72
73
|
"uniqid": "^5.4.0",
|
|
73
|
-
"yet-another-react-lightbox": "^3.25.0"
|
|
74
|
+
"yet-another-react-lightbox": "^3.25.0",
|
|
75
|
+
"flatted": ">=3.4.2",
|
|
76
|
+
"linkify-it": ">=5.0.1"
|
|
74
77
|
},
|
|
75
78
|
"devDependencies": {
|
|
76
79
|
"@eslint/js": "^9.33.0",
|
|
@@ -84,6 +87,6 @@
|
|
|
84
87
|
"globals": "^15.15.0",
|
|
85
88
|
"process": "^0.11.10",
|
|
86
89
|
"sass-embedded": "^1.90.0",
|
|
87
|
-
"vite": "
|
|
90
|
+
"vite": ">=6.4.3"
|
|
88
91
|
}
|
|
89
92
|
}
|
package/client/src/APIInfo.jsx
CHANGED
|
@@ -29,7 +29,7 @@ const Test= ({endpoint, lang, index, headers= {}}) => {
|
|
|
29
29
|
|
|
30
30
|
const [response,setResponse] = useState('');
|
|
31
31
|
const query = useMutation(() => {
|
|
32
|
-
return fetch((isProd ? 'https://'+getHost()+"/" : '')+'/api'+endpoint.endpoint+'?'+params.toString(), { method: endpoint.method, headers, body: code || JSON.stringify(endpoint.body) })
|
|
32
|
+
return fetch((isProd ? 'https://'+getHost()+"/" : '')+'/api'+endpoint.endpoint+'?'+params.toString(), { credentials: "include", method: endpoint.method, headers, body: code || JSON.stringify(endpoint.body) })
|
|
33
33
|
.then(e => e.json())
|
|
34
34
|
},{ onSuccess: (data) => {
|
|
35
35
|
setResponse(data)
|
package/client/src/App.jsx
CHANGED
|
@@ -145,6 +145,7 @@ function Layout({ header, routes, body, footer, refreshUI, onResetQueryClient })
|
|
|
145
145
|
'Content-Type': 'application/json',
|
|
146
146
|
// L'authentification sera gérée par le contexte ou un intercepteur
|
|
147
147
|
},
|
|
148
|
+
credentials: "include",
|
|
148
149
|
body: JSON.stringify({
|
|
149
150
|
model: 'env', // On cible le modèle 'env'
|
|
150
151
|
filter: { "name": { "$in": Object.values(providers).map(p => p.key) } },
|
|
@@ -452,7 +453,7 @@ function UserPage({notifs,triggerSignin,refreshUI, onAuthenticated, onResetQuery
|
|
|
452
453
|
|
|
453
454
|
const [prompt, setPrompt] = useLocalStorage("ai_model_prompt", null);
|
|
454
455
|
const { me } = useAuthContext();
|
|
455
|
-
const id = getUserHash(me)+'';
|
|
456
|
+
const id = me ? getUserHash(me)+'' : '';
|
|
456
457
|
|
|
457
458
|
// NOUVEAU : On récupère l'état de la navigation
|
|
458
459
|
const location = useLocation();
|