@cccsaurora/howler-ui 2.17.0-dev.420 → 2.17.0-dev.473

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 (57) hide show
  1. package/commons/components/app/hooks/useAppConfigs.d.ts +1 -1
  2. package/components/app/providers/HitSearchProvider.d.ts +0 -1
  3. package/components/app/providers/HitSearchProvider.js +4 -6
  4. package/components/app/providers/HitSearchProvider.test.js +1 -1
  5. package/components/app/providers/ParameterProvider.js +3 -3
  6. package/components/app/providers/ViewProvider.d.ts +1 -1
  7. package/components/app/providers/ViewProvider.js +3 -6
  8. package/components/app/providers/ViewProvider.test.js +1 -1
  9. package/components/elements/PluginChip.d.ts +2 -0
  10. package/components/elements/PluginChip.js +2 -1
  11. package/components/elements/PluginTypography.d.ts +4 -3
  12. package/components/elements/PluginTypography.js +4 -3
  13. package/components/elements/display/modals/RationaleModal.js +1 -1
  14. package/components/elements/display/modals/RationaleModal.test.js +1 -1
  15. package/components/elements/hit/HitBanner.js +2 -2
  16. package/components/elements/hit/HitDetails.js +9 -9
  17. package/components/elements/hit/outlines/DefaultOutline.js +1 -1
  18. package/components/routes/hits/search/ViewLink.js +1 -1
  19. package/components/routes/hits/search/ViewLink.test.js +3 -3
  20. package/components/routes/hits/search/grid/EnhancedCell.d.ts +2 -0
  21. package/components/routes/hits/search/grid/EnhancedCell.js +2 -2
  22. package/components/routes/hits/search/grid/HitRow.js +1 -1
  23. package/components/routes/views/ViewComposer.js +2 -2
  24. package/index.js +5 -0
  25. package/locales/en/translation.json +1 -0
  26. package/locales/fr/translation.json +1 -0
  27. package/models/entities/generated/Analytic.d.ts +2 -2
  28. package/models/entities/generated/ApiType.d.ts +2 -1
  29. package/models/entities/generated/Clue.d.ts +8 -0
  30. package/models/entities/generated/Hit.d.ts +2 -20
  31. package/models/entities/generated/Labels.d.ts +1 -0
  32. package/models/entities/generated/Type.d.ts +7 -0
  33. package/package.json +135 -126
  34. package/plugins/HowlerPlugin.js +1 -0
  35. package/plugins/clue/Provider.d.ts +3 -0
  36. package/plugins/clue/Provider.js +13 -0
  37. package/plugins/clue/components/ClueChip.d.ts +3 -0
  38. package/plugins/clue/components/ClueChip.js +29 -0
  39. package/plugins/clue/components/ClueLeadForm.d.ts +4 -0
  40. package/plugins/clue/components/ClueLeadForm.js +24 -0
  41. package/plugins/clue/components/CluePivot.d.ts +3 -0
  42. package/plugins/clue/components/CluePivot.js +145 -0
  43. package/plugins/clue/components/CluePivotForm.d.ts +21 -0
  44. package/plugins/clue/components/CluePivotForm.js +270 -0
  45. package/plugins/clue/components/ClueTypography.d.ts +3 -0
  46. package/plugins/clue/components/ClueTypography.js +53 -0
  47. package/plugins/clue/helpers.d.ts +3 -0
  48. package/plugins/clue/helpers.js +196 -0
  49. package/plugins/clue/index.d.ts +21 -0
  50. package/plugins/clue/index.js +66 -0
  51. package/plugins/clue/locales/clue.en.json +8 -0
  52. package/plugins/clue/locales/clue.fr.json +8 -0
  53. package/plugins/clue/setup.d.ts +2 -0
  54. package/plugins/clue/setup.js +46 -0
  55. package/plugins/clue/utils.d.ts +2 -0
  56. package/plugins/clue/utils.js +19 -0
  57. package/plugins/store.js +3 -0
package/package.json CHANGED
@@ -12,6 +12,7 @@
12
12
  ]
13
13
  },
14
14
  "dependencies": {
15
+ "@cccsaurora/clue-ui": "1.1.0-dev.91",
15
16
  "@dnd-kit/core": "^6.3.1",
16
17
  "@dnd-kit/modifiers": "^7.0.0",
17
18
  "@dnd-kit/sortable": "^8.0.0",
@@ -20,46 +21,50 @@
20
21
  "@iconify/icons-logos": "^1.2.36",
21
22
  "@iconify/icons-simple-icons": "^1.2.74",
22
23
  "@iconify/react": "^4.1.1",
23
- "@microlink/react-json-view": "^1.26.2",
24
+ "@jsonforms/core": "^3.7.0",
25
+ "@jsonforms/material-renderers": "^3.7.0",
26
+ "@jsonforms/react": "^3.7.0",
27
+ "@microlink/react-json-view": "^1.27.1",
24
28
  "@monaco-editor/react": "^4.7.0",
25
29
  "ajv": "^8.17.1",
26
30
  "ajv-i18n": "^4.2.0",
27
- "axios": "^1.12.0",
31
+ "axios": "^1.13.5",
28
32
  "axios-retry": "^3.9.1",
29
- "chart.js": "^4.5.0",
33
+ "chart.js": "^4.5.1",
30
34
  "chartjs-adapter-dayjs-4": "^1.0.4",
31
35
  "chartjs-plugin-zoom": "^2.2.0",
32
- "dayjs": "^1.11.13",
33
- "dompurify": "^3.2.6",
36
+ "dayjs": "^1.11.19",
37
+ "dompurify": "^3.3.1",
34
38
  "flat": "^6.0.1",
35
39
  "fuse.js": "^7.1.0",
36
40
  "handlebars": "^4.7.8",
37
41
  "handlebars-async-helpers": "^1.0.6",
38
42
  "i18next": "^23.16.8",
39
43
  "i18next-browser-languagedetector": "^7.2.2",
44
+ "json-schema": "^0.4.0",
40
45
  "lodash-es": "^4.17.23",
41
46
  "md5": "^2.3.0",
42
- "mermaid": "^11.10.0",
47
+ "mermaid": "^11.12.2",
43
48
  "monaco-editor": "^0.49.0",
44
49
  "notistack": "^3.0.2",
45
50
  "react": "^18.3.1",
46
- "react-chartjs-2": "^5.3.0",
51
+ "react-chartjs-2": "^5.3.1",
47
52
  "react-device-detect": "^2.2.3",
48
53
  "react-dom": "^18.3.1",
49
54
  "react-i18next": "^14.1.3",
50
- "react-ipynb-renderer": "^2.2.4",
55
+ "react-ipynb-renderer": "^2.3.0",
51
56
  "react-markdown": "^10.1.0",
52
57
  "react-pluggable": "^0.4.3",
53
58
  "react-resize-detector": "^9.1.1",
54
- "react-router": "^7.13.0",
55
- "react-router-dom": "^6.30.1",
56
- "react-syntax-highlighter": "^15.6.1",
59
+ "react-router": "6.30.1",
60
+ "react-router-dom": "6.30.1",
61
+ "react-syntax-highlighter": "^15.6.6",
57
62
  "rehype-raw": "^7.0.0",
58
63
  "remark": "^15.0.1",
59
64
  "remark-gfm": "^4.0.1",
60
- "scheduler": "^0.23.2",
65
+ "scheduler": "^0.27.0",
61
66
  "unified": "^11.0.5",
62
- "unist-util-visit": "^5.0.0",
67
+ "unist-util-visit": "^5.1.0",
63
68
  "url-join": "^5.0.0",
64
69
  "use-context-selector": "^2.0.0",
65
70
  "uuid": "^9.0.1",
@@ -96,130 +101,81 @@
96
101
  "internal-slot": "1.0.7"
97
102
  },
98
103
  "type": "module",
99
- "version": "2.17.0-dev.420",
104
+ "version": "2.17.0-dev.473",
100
105
  "exports": {
101
106
  "./i18n": "./i18n.js",
102
107
  "./index.css": "./index.css",
103
- "./api/*": "./api/*.js",
104
- "./api": "./api/index.js",
105
- "./models/*": "./models/*.js",
106
- "./locales/*.json": "./locales/*.json",
108
+ "./components/*": "./components/*.js",
107
109
  "./branding/*": "./branding/*.js",
110
+ "./tests/*": "./tests/*.js",
111
+ "./commons/*": "./commons/*.js",
108
112
  "./utils/*": "./utils/*.js",
109
113
  "./utils/*.json": "./utils/*.json",
114
+ "./locales/*.json": "./locales/*.json",
115
+ "./api/*": "./api/*.js",
116
+ "./api": "./api/index.js",
117
+ "./plugins/*": "./plugins/*.js",
118
+ "./models/*": "./models/*.js",
110
119
  "./rest/*": "./rest/*.js",
111
120
  "./rest": "./rest/index.js",
112
- "./components/*": "./components/*.js",
113
- "./commons/*": "./commons/*.js",
114
- "./plugins/*": "./plugins/*.js",
115
- "./tests/*": "./tests/*.js",
116
- "./api/analytic/*": "./api/analytic/*.js",
117
- "./api/analytic": "./api/analytic/index.js",
118
- "./api/template/*": "./api/template/*.js",
119
- "./api/template": "./api/template/index.js",
120
- "./api/hit/*": "./api/hit/*.js",
121
- "./api/hit": "./api/hit/index.js",
122
- "./api/notebook/*": "./api/notebook/*.js",
123
- "./api/notebook": "./api/notebook/index.js",
124
- "./api/auth/*": "./api/auth/*.js",
125
- "./api/auth": "./api/auth/index.js",
126
- "./api/search/*": "./api/search/*.js",
127
- "./api/search": "./api/search/index.js",
128
- "./api/dossier/*": "./api/dossier/*.js",
129
- "./api/dossier": "./api/dossier/index.js",
130
- "./api/view/*": "./api/view/*.js",
131
- "./api/view": "./api/view/index.js",
132
- "./api/overview/*": "./api/overview/*.js",
133
- "./api/overview": "./api/overview/index.js",
134
- "./api/user/*": "./api/user/*.js",
135
- "./api/user": "./api/user/index.js",
136
- "./api/action/*": "./api/action/*.js",
137
- "./api/action": "./api/action/index.js",
138
- "./api/configs/*": "./api/configs/*.js",
139
- "./api/configs": "./api/configs/index.js",
140
- "./api/analytic/comments/*": "./api/analytic/comments/*.js",
141
- "./api/analytic/comments": "./api/analytic/comments/index.js",
142
- "./api/analytic/notebooks/*": "./api/analytic/notebooks/*.js",
143
- "./api/analytic/notebooks": "./api/analytic/notebooks/index.js",
144
- "./api/hit/comments/*": "./api/hit/comments/*.js",
145
- "./api/hit/comments": "./api/hit/comments/index.js",
146
- "./api/search/facet/*": "./api/search/facet/*.js",
147
- "./api/search/facet": "./api/search/facet/index.js",
148
- "./api/search/explain/*": "./api/search/explain/*.js",
149
- "./api/search/count/*": "./api/search/count/*.js",
150
- "./api/search/count": "./api/search/count/index.js",
151
- "./api/search/fields/*": "./api/search/fields/*.js",
152
- "./api/search/fields": "./api/search/fields/index.js",
153
- "./api/search/eql/*": "./api/search/eql/*.js",
154
- "./api/search/sigma/*": "./api/search/sigma/*.js",
155
- "./api/search/grouped/*": "./api/search/grouped/*.js",
156
- "./api/search/grouped": "./api/search/grouped/index.js",
157
- "./api/search/histogram/*": "./api/search/histogram/*.js",
158
- "./api/search/histogram": "./api/search/histogram/index.js",
159
- "./api/user/avatar/*": "./api/user/avatar/*.js",
160
- "./api/user/avatar": "./api/user/avatar/index.js",
161
- "./models/socket/*": "./models/socket/*.js",
162
- "./models/entities/*": "./models/entities/*.js",
163
- "./models/entities/generated/*": "./models/entities/generated/*.js",
164
- "./locales/en/*.json": "./locales/en/*.json",
165
- "./locales/fr/*.json": "./locales/fr/*.json",
166
- "./locales/en/help/*.json": "./locales/en/help/*.json",
167
- "./locales/fr/help/*.json": "./locales/fr/help/*.json",
168
- "./components/hooks/*": "./components/hooks/*.js",
169
- "./components/app/*": "./components/app/*.js",
170
121
  "./components/logins/*": "./components/logins/*.js",
122
+ "./components/app/*": "./components/app/*.js",
171
123
  "./components/elements/*": "./components/elements/*.js",
124
+ "./components/hooks/*": "./components/hooks/*.js",
172
125
  "./components/routes/*": "./components/routes/*.js",
173
- "./components/app/hooks/*": "./components/app/hooks/*.js",
174
- "./components/app/providers/*": "./components/app/providers/*.js",
175
- "./components/app/drawers/*": "./components/app/drawers/*.js",
176
- "./components/logins/hooks/*": "./components/logins/hooks/*.js",
177
126
  "./components/logins/auth/*": "./components/logins/auth/*.js",
178
- "./components/elements/addons/*": "./components/elements/addons/*.js",
127
+ "./components/logins/hooks/*": "./components/logins/hooks/*.js",
128
+ "./components/app/drawers/*": "./components/app/drawers/*.js",
129
+ "./components/app/providers/*": "./components/app/providers/*.js",
130
+ "./components/app/hooks/*": "./components/app/hooks/*.js",
131
+ "./components/elements/display/*": "./components/elements/display/*.js",
179
132
  "./components/elements/hit/*": "./components/elements/hit/*.js",
180
133
  "./components/elements/view/*": "./components/elements/view/*.js",
181
- "./components/elements/display/*": "./components/elements/display/*.js",
134
+ "./components/elements/addons/*": "./components/elements/addons/*.js",
135
+ "./components/elements/display/handlebars/*": "./components/elements/display/handlebars/*.js",
136
+ "./components/elements/display/modals/*": "./components/elements/display/modals/*.js",
137
+ "./components/elements/display/features/*": "./components/elements/display/features/*.js",
138
+ "./components/elements/display/icons/*": "./components/elements/display/icons/*.js",
139
+ "./components/elements/display/json/*": "./components/elements/display/json/*.js",
140
+ "./components/elements/display/markdownPlugins/*.md": "./components/elements/display/markdownPlugins/*.md.js",
141
+ "./components/elements/display/icons/svg/*": "./components/elements/display/icons/svg/*.js",
142
+ "./components/elements/hit/actions/*": "./components/elements/hit/actions/*.js",
143
+ "./components/elements/hit/related/*": "./components/elements/hit/related/*.js",
144
+ "./components/elements/hit/elements/*": "./components/elements/hit/elements/*.js",
145
+ "./components/elements/hit/outlines/*": "./components/elements/hit/outlines/*.js",
146
+ "./components/elements/hit/aggregate/*": "./components/elements/hit/aggregate/*.js",
147
+ "./components/elements/hit/outlines/al/*": "./components/elements/hit/outlines/al/*.js",
182
148
  "./components/elements/addons/buttons/*": "./components/elements/addons/buttons/*.js",
183
149
  "./components/elements/addons/buttons": "./components/elements/addons/buttons/index.js",
184
- "./components/elements/addons/search/*": "./components/elements/addons/search/*.js",
185
- "./components/elements/addons/layout/*": "./components/elements/addons/layout/*.js",
186
150
  "./components/elements/addons/lists/*": "./components/elements/addons/lists/*.js",
187
151
  "./components/elements/addons/lists": "./components/elements/addons/lists/index.js",
152
+ "./components/elements/addons/search/*": "./components/elements/addons/search/*.js",
153
+ "./components/elements/addons/layout/*": "./components/elements/addons/layout/*.js",
154
+ "./components/elements/addons/lists/table/*": "./components/elements/addons/lists/table/*.js",
155
+ "./components/elements/addons/lists/table": "./components/elements/addons/lists/table/index.js",
156
+ "./components/elements/addons/lists/hooks/*": "./components/elements/addons/lists/hooks/*.js",
188
157
  "./components/elements/addons/search/phrase/*": "./components/elements/addons/search/phrase/*.js",
189
158
  "./components/elements/addons/search/phrase": "./components/elements/addons/search/phrase/index.js",
190
159
  "./components/elements/addons/search/phrase/word/*": "./components/elements/addons/search/phrase/word/*.js",
191
160
  "./components/elements/addons/search/phrase/word/consumers/*": "./components/elements/addons/search/phrase/word/consumers/*.js",
192
161
  "./components/elements/addons/layout/vsbox/*": "./components/elements/addons/layout/vsbox/*.js",
193
- "./components/elements/addons/lists/hooks/*": "./components/elements/addons/lists/hooks/*.js",
194
- "./components/elements/addons/lists/table/*": "./components/elements/addons/lists/table/*.js",
195
- "./components/elements/addons/lists/table": "./components/elements/addons/lists/table/index.js",
196
- "./components/elements/hit/aggregate/*": "./components/elements/hit/aggregate/*.js",
197
- "./components/elements/hit/outlines/*": "./components/elements/hit/outlines/*.js",
198
- "./components/elements/hit/related/*": "./components/elements/hit/related/*.js",
199
- "./components/elements/hit/elements/*": "./components/elements/hit/elements/*.js",
200
- "./components/elements/hit/actions/*": "./components/elements/hit/actions/*.js",
201
- "./components/elements/hit/outlines/al/*": "./components/elements/hit/outlines/al/*.js",
202
- "./components/elements/display/icons/*": "./components/elements/display/icons/*.js",
203
- "./components/elements/display/modals/*": "./components/elements/display/modals/*.js",
204
- "./components/elements/display/markdownPlugins/*.md": "./components/elements/display/markdownPlugins/*.md.js",
205
- "./components/elements/display/json/*": "./components/elements/display/json/*.js",
206
- "./components/elements/display/handlebars/*": "./components/elements/display/handlebars/*.js",
207
- "./components/elements/display/features/*": "./components/elements/display/features/*.js",
208
- "./components/elements/display/icons/svg/*": "./components/elements/display/icons/svg/*.js",
209
- "./components/routes/admin/*": "./components/routes/admin/*.js",
210
- "./components/routes/dossiers/*": "./components/routes/dossiers/*.js",
211
- "./components/routes/advanced/*": "./components/routes/advanced/*.js",
212
- "./components/routes/hits/*": "./components/routes/hits/*.js",
213
- "./components/routes/settings/*": "./components/routes/settings/*.js",
214
162
  "./components/routes/home/*": "./components/routes/home/*.js",
215
163
  "./components/routes/home": "./components/routes/home/index.js",
216
- "./components/routes/analytics/*": "./components/routes/analytics/*.js",
217
- "./components/routes/help/*": "./components/routes/help/*.js",
218
164
  "./components/routes/action/*": "./components/routes/action/*.js",
219
- "./components/routes/views/*": "./components/routes/views/*.js",
220
- "./components/routes/overviews/*": "./components/routes/overviews/*.js",
221
165
  "./components/routes/templates/*": "./components/routes/templates/*.js",
222
- "./components/routes/admin/users/*": "./components/routes/admin/users/*.js",
166
+ "./components/routes/dossiers/*": "./components/routes/dossiers/*.js",
167
+ "./components/routes/overviews/*": "./components/routes/overviews/*.js",
168
+ "./components/routes/views/*": "./components/routes/views/*.js",
169
+ "./components/routes/hits/*": "./components/routes/hits/*.js",
170
+ "./components/routes/analytics/*": "./components/routes/analytics/*.js",
171
+ "./components/routes/advanced/*": "./components/routes/advanced/*.js",
172
+ "./components/routes/help/*": "./components/routes/help/*.js",
173
+ "./components/routes/admin/*": "./components/routes/admin/*.js",
174
+ "./components/routes/settings/*": "./components/routes/settings/*.js",
175
+ "./components/routes/action/edit/*": "./components/routes/action/edit/*.js",
176
+ "./components/routes/action/view/*": "./components/routes/action/view/*.js",
177
+ "./components/routes/action/shared/*": "./components/routes/action/shared/*.js",
178
+ "./components/routes/overviews/template/*": "./components/routes/overviews/template/*.js",
223
179
  "./components/routes/hits/search/*": "./components/routes/hits/search/*.js",
224
180
  "./components/routes/hits/view/*": "./components/routes/hits/view/*.js",
225
181
  "./components/routes/hits/search/grid/*": "./components/routes/hits/search/grid/*.js",
@@ -227,30 +183,83 @@
227
183
  "./components/routes/analytics/widgets/*": "./components/routes/analytics/widgets/*.js",
228
184
  "./components/routes/help/components/*": "./components/routes/help/components/*.js",
229
185
  "./components/routes/help/markdown/*.md": "./components/routes/help/markdown/*.md.js",
230
- "./components/routes/help/markdown/en/*.md": "./components/routes/help/markdown/en/*.md.js",
231
186
  "./components/routes/help/markdown/fr/*.md": "./components/routes/help/markdown/fr/*.md.js",
232
- "./components/routes/action/view/*": "./components/routes/action/view/*.js",
233
- "./components/routes/action/shared/*": "./components/routes/action/shared/*.js",
234
- "./components/routes/action/edit/*": "./components/routes/action/edit/*.js",
235
- "./components/routes/overviews/template/*": "./components/routes/overviews/template/*.js",
187
+ "./components/routes/help/markdown/en/*.md": "./components/routes/help/markdown/en/*.md.js",
188
+ "./components/routes/admin/users/*": "./components/routes/admin/users/*.js",
236
189
  "./commons/components/*": "./commons/components/*.js",
190
+ "./commons/components/breadcrumbs/*": "./commons/components/breadcrumbs/*.js",
191
+ "./commons/components/app/*": "./commons/components/app/*.js",
237
192
  "./commons/components/utils/*": "./commons/components/utils/*.js",
193
+ "./commons/components/notification/*": "./commons/components/notification/*.js",
194
+ "./commons/components/notification": "./commons/components/notification/index.js",
195
+ "./commons/components/display/*": "./commons/components/display/*.js",
238
196
  "./commons/components/leftnav/*": "./commons/components/leftnav/*.js",
197
+ "./commons/components/search/*": "./commons/components/search/*.js",
239
198
  "./commons/components/pages/*": "./commons/components/pages/*.js",
240
199
  "./commons/components/topnav/*": "./commons/components/topnav/*.js",
241
- "./commons/components/app/*": "./commons/components/app/*.js",
242
- "./commons/components/search/*": "./commons/components/search/*.js",
243
- "./commons/components/breadcrumbs/*": "./commons/components/breadcrumbs/*.js",
244
- "./commons/components/display/*": "./commons/components/display/*.js",
245
- "./commons/components/notification/*": "./commons/components/notification/*.js",
246
- "./commons/components/notification": "./commons/components/notification/index.js",
247
- "./commons/components/utils/hooks/*": "./commons/components/utils/hooks/*.js",
248
- "./commons/components/pages/hooks/*": "./commons/components/pages/hooks/*.js",
200
+ "./commons/components/app/providers/*": "./commons/components/app/providers/*.js",
249
201
  "./commons/components/app/hooks/*": "./commons/components/app/hooks/*.js",
250
202
  "./commons/components/app/hooks": "./commons/components/app/hooks/index.js",
251
- "./commons/components/app/providers/*": "./commons/components/app/providers/*.js",
252
- "./commons/components/display/hooks/*": "./commons/components/display/hooks/*.js",
203
+ "./commons/components/utils/hooks/*": "./commons/components/utils/hooks/*.js",
253
204
  "./commons/components/notification/elements/*": "./commons/components/notification/elements/*.js",
254
- "./commons/components/notification/elements/item/*": "./commons/components/notification/elements/item/*.js"
205
+ "./commons/components/notification/elements/item/*": "./commons/components/notification/elements/item/*.js",
206
+ "./commons/components/display/hooks/*": "./commons/components/display/hooks/*.js",
207
+ "./commons/components/pages/hooks/*": "./commons/components/pages/hooks/*.js",
208
+ "./locales/fr/*.json": "./locales/fr/*.json",
209
+ "./locales/en/*.json": "./locales/en/*.json",
210
+ "./locales/fr/help/*.json": "./locales/fr/help/*.json",
211
+ "./locales/en/help/*.json": "./locales/en/help/*.json",
212
+ "./api/overview/*": "./api/overview/*.js",
213
+ "./api/overview": "./api/overview/index.js",
214
+ "./api/action/*": "./api/action/*.js",
215
+ "./api/action": "./api/action/index.js",
216
+ "./api/auth/*": "./api/auth/*.js",
217
+ "./api/auth": "./api/auth/index.js",
218
+ "./api/notebook/*": "./api/notebook/*.js",
219
+ "./api/notebook": "./api/notebook/index.js",
220
+ "./api/template/*": "./api/template/*.js",
221
+ "./api/template": "./api/template/index.js",
222
+ "./api/analytic/*": "./api/analytic/*.js",
223
+ "./api/analytic": "./api/analytic/index.js",
224
+ "./api/user/*": "./api/user/*.js",
225
+ "./api/user": "./api/user/index.js",
226
+ "./api/dossier/*": "./api/dossier/*.js",
227
+ "./api/dossier": "./api/dossier/index.js",
228
+ "./api/search/*": "./api/search/*.js",
229
+ "./api/search": "./api/search/index.js",
230
+ "./api/configs/*": "./api/configs/*.js",
231
+ "./api/configs": "./api/configs/index.js",
232
+ "./api/hit/*": "./api/hit/*.js",
233
+ "./api/hit": "./api/hit/index.js",
234
+ "./api/view/*": "./api/view/*.js",
235
+ "./api/view": "./api/view/index.js",
236
+ "./api/analytic/comments/*": "./api/analytic/comments/*.js",
237
+ "./api/analytic/comments": "./api/analytic/comments/index.js",
238
+ "./api/analytic/notebooks/*": "./api/analytic/notebooks/*.js",
239
+ "./api/analytic/notebooks": "./api/analytic/notebooks/index.js",
240
+ "./api/user/avatar/*": "./api/user/avatar/*.js",
241
+ "./api/user/avatar": "./api/user/avatar/index.js",
242
+ "./api/search/eql/*": "./api/search/eql/*.js",
243
+ "./api/search/histogram/*": "./api/search/histogram/*.js",
244
+ "./api/search/histogram": "./api/search/histogram/index.js",
245
+ "./api/search/facet/*": "./api/search/facet/*.js",
246
+ "./api/search/facet": "./api/search/facet/index.js",
247
+ "./api/search/fields/*": "./api/search/fields/*.js",
248
+ "./api/search/fields": "./api/search/fields/index.js",
249
+ "./api/search/grouped/*": "./api/search/grouped/*.js",
250
+ "./api/search/grouped": "./api/search/grouped/index.js",
251
+ "./api/search/sigma/*": "./api/search/sigma/*.js",
252
+ "./api/search/explain/*": "./api/search/explain/*.js",
253
+ "./api/search/count/*": "./api/search/count/*.js",
254
+ "./api/search/count": "./api/search/count/index.js",
255
+ "./api/hit/comments/*": "./api/hit/comments/*.js",
256
+ "./api/hit/comments": "./api/hit/comments/index.js",
257
+ "./plugins/clue/*": "./plugins/clue/*.js",
258
+ "./plugins/clue": "./plugins/clue/index.js",
259
+ "./plugins/clue/components/*": "./plugins/clue/components/*.js",
260
+ "./plugins/clue/locales/*": "./plugins/clue/locales/*.js",
261
+ "./models/socket/*": "./models/socket/*.js",
262
+ "./models/entities/*": "./models/entities/*.js",
263
+ "./models/entities/generated/*": "./models/entities/generated/*.js"
255
264
  }
256
265
  }
@@ -133,6 +133,7 @@ class HowlerPlugin {
133
133
  if (isRoot) {
134
134
  if (breadcrumbs != null) {
135
135
  breadcrumbs = null;
136
+ // eslint-disable-next-line no-console
136
137
  console.warn(`Sitemap '${path}' with isRoot should not contain breadcrumbs and have been removed`);
137
138
  }
138
139
  }
@@ -0,0 +1,3 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ declare const Provider: React.FC<PropsWithChildren<{}>>;
3
+ export default Provider;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ClueProvider } from '@cccsaurora/clue-ui/hooks/ClueProvider';
3
+ import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
4
+ import { useContext } from 'react';
5
+ import { useTranslation } from 'react-i18next';
6
+ import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
7
+ import { getStored } from '@cccsaurora/howler-ui/utils/localStorage';
8
+ const Provider = ({ children }) => {
9
+ const { config } = useContext(ApiConfigContext);
10
+ const features = config.configuration?.features ?? {};
11
+ return (_jsx(ClueProvider, { baseURL: location.origin + '/api/v1/clue', getToken: () => getStored(StorageKey.APP_TOKEN), enabled: features.clue, publicIconify: location.origin.includes('localhost'), customIconify: location.origin.replace(/howler(-stg)?/, 'icons'), defaultTimeout: 5, i18next: useTranslation('clue'), chunkSize: 50, children: children }));
12
+ };
13
+ export default Provider;
@@ -0,0 +1,3 @@
1
+ import type { PluginChipProps } from '@cccsaurora/howler-ui/components/elements/PluginChip';
2
+ declare const _default: import("react").NamedExoticComponent<PluginChipProps>;
3
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import EnrichedChip from '@cccsaurora/clue-ui/components/EnrichedChip';
3
+ import { Chip } from '@mui/material';
4
+ import { memo } from 'react';
5
+ import { useType } from '../utils';
6
+ const ClueChip = ({ children, value, context, field, hit, ...props }) => {
7
+ const type = useType(hit, field, value);
8
+ if (!type) {
9
+ return _jsx(Chip, { ...props, children: children });
10
+ }
11
+ let enrichedProps = {
12
+ ...props,
13
+ value
14
+ };
15
+ if (context === 'summary') {
16
+ enrichedProps = {
17
+ ...enrichedProps,
18
+ sx: [
19
+ ...(Array.isArray(enrichedProps.sx) ? enrichedProps.sx : [enrichedProps.sx]),
20
+ [{ height: '24px', '& .iconify': { fontSize: '1em' } }]
21
+ ]
22
+ };
23
+ }
24
+ else {
25
+ delete enrichedProps.label;
26
+ }
27
+ return _jsx(EnrichedChip, { ...enrichedProps, type: type, label: props.label });
28
+ };
29
+ export default memo(ClueChip);
@@ -0,0 +1,4 @@
1
+ import type { LeadFormProps } from '@cccsaurora/howler-ui/components/routes/dossiers/LeadEditor';
2
+ import { type FC } from 'react';
3
+ declare const ClueLeadForm: FC<LeadFormProps>;
4
+ export default ClueLeadForm;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useClueFetcherSelector } from '@cccsaurora/clue-ui/hooks/selectors';
3
+ import { Autocomplete, Divider, ListItemText, TextField, Typography } from '@mui/material';
4
+ import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
5
+ import uniq from 'lodash-es/uniq';
6
+ import { useContext, useState } from 'react';
7
+ import { useTranslation } from 'react-i18next';
8
+ const ClueLeadForm = ({ lead, metadata, update, updateMetadata }) => {
9
+ const { t } = useTranslation();
10
+ const { config } = useContext(ApiConfigContext);
11
+ const fetchers = useClueFetcherSelector(ctx => ctx.fetchers);
12
+ const [showCustom, setShowCustom] = useState(false);
13
+ return (_jsxs(_Fragment, { children: [_jsx(Divider, { orientation: "horizontal" }), _jsx(Autocomplete, { disabled: !lead, options: Object.keys(fetchers), renderInput: params => _jsx(TextField, { ...params, size: "small", label: t('route.dossiers.manager.clue') }), value: Object.keys(fetchers).includes(lead?.content) ? lead.content : null, onChange: (_ev, content) => update({ content, metadata: '{}' }), renderOption: ({ key, ...props }, option) => (_jsx(ListItemText, { ...props, sx: { flexDirection: 'column', alignItems: 'start !important' }, primary: _jsx("code", { children: option }), secondary: fetchers[option].description }, key)) }), _jsx(Autocomplete, { options: fetchers[lead?.content]?.supported_types ??
14
+ uniq(Object.values(fetchers).flatMap(fetcher => fetcher.supported_types)), renderInput: params => _jsx(TextField, { ...params, size: "small", label: t('route.dossiers.manager.clue.type') }), value: metadata?.type ?? null, onChange: (_ev, type) => updateMetadata({ type }) }), _jsx(Autocomplete, { options: ['custom', ...Object.keys(config.indexes.hit)], disabled: !metadata?.type, renderInput: params => _jsx(TextField, { ...params, size: "small", label: t('route.dossiers.manager.clue.value') }), getOptionLabel: opt => t(opt), value: metadata?.value ?? null, onChange: (_ev, value) => {
15
+ if (value === 'custom') {
16
+ setShowCustom(true);
17
+ }
18
+ else {
19
+ setShowCustom(false);
20
+ updateMetadata({ value });
21
+ }
22
+ } }), showCustom && (_jsxs(_Fragment, { children: [_jsx(TextField, { size: "small", label: t('route.dossiers.manager.clue.value.custom'), value: metadata?.value ?? '', disabled: !metadata?.type, fullWidth: true, onChange: ev => updateMetadata({ value: ev.target.value }) }), _jsx(Typography, { variant: "caption", color: "text.secondary", sx: { mt: '0 !important' }, children: t('route.dossiers.manager.clue.value.description') })] }))] }));
23
+ };
24
+ export default ClueLeadForm;
@@ -0,0 +1,3 @@
1
+ import type { PivotLinkProps } from '@cccsaurora/howler-ui/components/elements/hit/related/PivotLink';
2
+ declare const _default: import("react").NamedExoticComponent<PivotLinkProps>;
3
+ export default _default;
@@ -0,0 +1,145 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useClueActionsSelector, useClueEnrichSelector } from '@cccsaurora/clue-ui';
3
+ import { Icon } from '@iconify/react/dist/iconify.js';
4
+ import { Settings } from '@mui/icons-material';
5
+ import { Divider, IconButton, Stack, Typography } from '@mui/material';
6
+ import { ApiConfigContext } from '@cccsaurora/howler-ui/components/app/providers/ApiConfigProvider';
7
+ import HowlerCard from '@cccsaurora/howler-ui/components/elements/display/HowlerCard';
8
+ import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
9
+ import get from 'lodash-es/get';
10
+ import isBoolean from 'lodash-es/isBoolean';
11
+ import isNil from 'lodash-es/isNil';
12
+ import { memo, useCallback, useContext, useState } from 'react';
13
+ import { useTranslation } from 'react-i18next';
14
+ const CluePivot = ({ pivot, hit, compact }) => {
15
+ const guessType = useClueEnrichSelector(ctx => ctx?.guessType);
16
+ const { showErrorMessage } = useMySnackbar();
17
+ const { config } = useContext(ApiConfigContext);
18
+ const { i18n, t } = useTranslation();
19
+ const actions = useClueActionsSelector(ctx => ctx?.availableActions ?? {});
20
+ const executeAction = useClueActionsSelector(ctx => ctx?.executeAction);
21
+ const [loading, setLoading] = useState(false);
22
+ const getValue = useCallback((actionId, mapping) => {
23
+ const parameterSchema = actions[actionId].params?.properties?.[mapping.key];
24
+ if (mapping.field === 'custom') {
25
+ if (parameterSchema?.type === 'number') {
26
+ return parseFloat(mapping.custom_value);
27
+ }
28
+ if (parameterSchema?.type === 'integer') {
29
+ return Math.floor(parseFloat(mapping.custom_value));
30
+ }
31
+ return mapping.custom_value;
32
+ }
33
+ if (!Object.keys(config.indexes.hit).includes(mapping.field)) {
34
+ return mapping.field;
35
+ }
36
+ const hitData = get(hit, mapping.field);
37
+ // No schema provided - just pass on the value
38
+ if (!parameterSchema) {
39
+ return hitData;
40
+ }
41
+ // JSON schema is a boolean - we just shove whatever they want in there if it's true, or skip if false
42
+ if (isBoolean(parameterSchema)) {
43
+ return parameterSchema ? hitData : null;
44
+ }
45
+ // It wants a list of values
46
+ if (parameterSchema.type === 'array') {
47
+ // We have a list of values
48
+ if (Array.isArray(hitData)) {
49
+ return hitData;
50
+ }
51
+ else {
52
+ // We don't have a list of values
53
+ return isNil(hitData) ? [] : [hitData];
54
+ }
55
+ }
56
+ // It wants a single object, but we have a list
57
+ if (Array.isArray(hitData)) {
58
+ // TODO: This is still a little blah.
59
+ return hitData[0];
60
+ }
61
+ // We have a single object and that's what they want
62
+ return hitData;
63
+ }, [actions, config.indexes.hit, hit]);
64
+ const onClueClick = useCallback(async (event, forceMenu = false) => {
65
+ event.preventDefault();
66
+ event.stopPropagation();
67
+ if (loading) {
68
+ return;
69
+ }
70
+ if (!actions[pivot.value]) {
71
+ showErrorMessage(t('pivot.clue.missing'));
72
+ return;
73
+ }
74
+ setLoading(true);
75
+ const data = Object.fromEntries(pivot.mappings.map(_mapping => {
76
+ const value = getValue(pivot.value, _mapping);
77
+ if (['selector', 'selectors'].includes(_mapping.key)) {
78
+ if (!value) {
79
+ return _mapping.key === 'selector' ? ['selector', null] : ['selectors', []];
80
+ }
81
+ if (Array.isArray(value)) {
82
+ return [
83
+ _mapping.key,
84
+ value
85
+ .filter(val => !isNil(val))
86
+ .map(val => ({
87
+ type: config.configuration?.mapping?.[_mapping.field] || guessType(val.toString()),
88
+ value: val
89
+ }))
90
+ ];
91
+ }
92
+ return [
93
+ _mapping.key,
94
+ {
95
+ type: config.configuration?.mapping?.[_mapping.field] || guessType(value.toString()),
96
+ value
97
+ }
98
+ ];
99
+ }
100
+ return [_mapping.key, value];
101
+ }));
102
+ const selectors = (actions[pivot.value].accept_multiple ? [data.selectors] : [data.selector])
103
+ .flat()
104
+ .filter(val => !isNil(val));
105
+ delete data.selector;
106
+ delete data.selectors;
107
+ try {
108
+ await executeAction(pivot.value, selectors, data, { forceMenu });
109
+ }
110
+ finally {
111
+ setLoading(false);
112
+ }
113
+ }, [
114
+ actions,
115
+ config.configuration?.mapping,
116
+ executeAction,
117
+ getValue,
118
+ guessType,
119
+ loading,
120
+ pivot.mappings,
121
+ pivot.value,
122
+ showErrorMessage,
123
+ t
124
+ ]);
125
+ if (!actions[pivot.value]) {
126
+ return;
127
+ }
128
+ return (_jsx(HowlerCard, { variant: compact ? 'outlined' : 'elevation', onClick: e => onClueClick(e), sx: [
129
+ theme => ({
130
+ backgroundColor: 'transparent',
131
+ transition: theme.transitions.create(['border-color']),
132
+ '&:hover': { borderColor: 'primary.main' },
133
+ '& > div': {
134
+ height: '100%'
135
+ }
136
+ }),
137
+ loading
138
+ ? { opacity: 0.5, pointerEvents: 'none' }
139
+ : {
140
+ cursor: 'pointer'
141
+ },
142
+ !compact && { border: 'thin solid', borderColor: 'transparent' }
143
+ ], children: _jsxs(Stack, { direction: "row", p: compact ? 0.5 : 1, spacing: 1, alignItems: "center", children: [_jsx(Icon, { fontSize: "1.5rem", icon: pivot.icon }), _jsx(Typography, { children: pivot.label[i18n.language] }), _jsx(Divider, { orientation: "vertical", flexItem: true }), _jsx(IconButton, { size: "small", onClick: e => onClueClick(e, true), children: _jsx(Settings, { fontSize: "small" }) })] }) }));
144
+ };
145
+ export default memo(CluePivot);