mui-toolpad-extended-tuni 1.0.0 → 1.0.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.
Files changed (62) hide show
  1. package/README.md +395 -8
  2. package/dist/EduMLToolpad/EduMLProvider.d.ts +20 -0
  3. package/dist/EduMLToolpad/components/Courses/CourseItem.d.ts +9 -0
  4. package/dist/EduMLToolpad/components/Courses/CourseList.d.ts +9 -0
  5. package/dist/EduMLToolpad/components/Courses/CourseSelector.d.ts +3 -0
  6. package/dist/EduMLToolpad/components/Courses/CourseTools.d.ts +3 -0
  7. package/dist/EduMLToolpad/components/Courses/LtiLoginUrlForm.d.ts +3 -0
  8. package/dist/EduMLToolpad/components/Courses/NoCoursesMessage.d.ts +3 -0
  9. package/dist/EduMLToolpad/components/DevelopmentTools.d.ts +3 -0
  10. package/dist/EduMLToolpad/components/Dialogs/DialogOpener.d.ts +10 -0
  11. package/dist/EduMLToolpad/components/Dialogs/FormDialog.d.ts +10 -0
  12. package/dist/EduMLToolpad/components/EduMLDialog.d.ts +9 -0
  13. package/dist/EduMLToolpad/components/Home.d.ts +3 -0
  14. package/dist/EduMLToolpad/components/IconWithBadge.d.ts +10 -0
  15. package/dist/EduMLToolpad/components/LoadingScreen.d.ts +2 -0
  16. package/dist/EduMLToolpad/components/Logo.d.ts +2 -0
  17. package/dist/EduMLToolpad/components/Notifications.d.ts +3 -0
  18. package/dist/EduMLToolpad/components/PageToolBar.d.ts +3 -0
  19. package/dist/EduMLToolpad/components/ToolSelector.d.ts +17 -0
  20. package/dist/EduMLToolpad/components/UserSwitcher.d.ts +3 -0
  21. package/dist/EduMLToolpad/components/sidebar/Footer.d.ts +3 -0
  22. package/dist/EduMLToolpad/components/toolbar/Account.d.ts +1 -0
  23. package/dist/EduMLToolpad/components/toolbar/Actions.d.ts +1 -0
  24. package/dist/EduMLToolpad/components/tools/addActions.d.ts +5 -0
  25. package/dist/EduMLToolpad/components/tools/addIcons.d.ts +2 -0
  26. package/dist/EduMLToolpad/components/tools/iconsByType.d.ts +6 -0
  27. package/dist/EduMLToolpad/components/tools/utils/ActionFCWrapper.d.ts +5 -0
  28. package/dist/EduMLToolpad/components/tools/utils/IconFCWrapper.d.ts +6 -0
  29. package/dist/EduMLToolpad/constants.d.ts +2 -0
  30. package/dist/EduMLToolpad/hooks/useCustomRouter.d.ts +6 -0
  31. package/dist/EduMLToolpad/interfaces.d.ts +1 -0
  32. package/dist/EduMLToolpad/layout/breadcrumbs/SizableContentHeader.d.ts +7 -0
  33. package/dist/EduMLToolpad/network/axiosConfig.d.ts +3 -0
  34. package/dist/EduMLToolpad/network/courses.d.ts +44 -0
  35. package/dist/EduMLToolpad/network/users.d.ts +5 -0
  36. package/dist/EduMLToolpad/store/useCourseStore.d.ts +15 -0
  37. package/dist/EduMLToolpad/store/useDialogStore.d.ts +3 -0
  38. package/dist/EduMLToolpad/store/useNavigationStore.d.ts +28 -0
  39. package/dist/EduMLToolpad/store/useNotificationsStore.d.ts +15 -0
  40. package/dist/EduMLToolpad/store/useUserStore.d.ts +26 -0
  41. package/dist/EduMLToolpad/theme/EduMLTheme.d.ts +2 -0
  42. package/dist/EduMLToolpad/tools/ErrorBoundary.d.ts +15 -0
  43. package/dist/EduMLToolpad/tools/NullStateWarning.d.ts +8 -0
  44. package/dist/EduMLToolpad/types/toolpad.d.ts +26 -0
  45. package/dist/EduMLToolpad/types/vite-env.d.ts +3 -0
  46. package/dist/EduMLToolpad/utils/caseConverter.d.ts +17 -0
  47. package/dist/EduMLToolpad/utils/slugify.d.ts +1 -0
  48. package/dist/index.cjs +327 -0
  49. package/dist/index.d.ts +41 -0
  50. package/dist/index.es.js +23936 -0
  51. package/dist/mockServiceWorker.js +307 -0
  52. package/dist/static/images/educhat.ico +0 -0
  53. package/dist/static/images/educhat.png +0 -0
  54. package/dist/static/images/guest.png +0 -0
  55. package/dist/static/images/student.png +0 -0
  56. package/dist/static/images/teacher.png +0 -0
  57. package/dist/static/images/tuni/Tampere_University_logo.svg +34 -0
  58. package/dist/static/images/tuni/face-purple-small.png +0 -0
  59. package/dist/static/images/tuni/tuni.png +0 -0
  60. package/dist/vite-env.d.ts +1 -0
  61. package/dist/vite.svg +1 -0
  62. package/package.json +40 -14
@@ -0,0 +1,307 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+
4
+ /**
5
+ * Mock Service Worker.
6
+ * @see https://github.com/mswjs/msw
7
+ * - Please do NOT modify this file.
8
+ * - Please do NOT serve this file on production.
9
+ */
10
+
11
+ const PACKAGE_VERSION = '2.7.0'
12
+ const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
13
+ const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
14
+ const activeClientIds = new Set()
15
+
16
+ self.addEventListener('install', function () {
17
+ self.skipWaiting()
18
+ })
19
+
20
+ self.addEventListener('activate', function (event) {
21
+ event.waitUntil(self.clients.claim())
22
+ })
23
+
24
+ self.addEventListener('message', async function (event) {
25
+ const clientId = event.source.id
26
+
27
+ if (!clientId || !self.clients) {
28
+ return
29
+ }
30
+
31
+ const client = await self.clients.get(clientId)
32
+
33
+ if (!client) {
34
+ return
35
+ }
36
+
37
+ const allClients = await self.clients.matchAll({
38
+ type: 'window',
39
+ })
40
+
41
+ switch (event.data) {
42
+ case 'KEEPALIVE_REQUEST': {
43
+ sendToClient(client, {
44
+ type: 'KEEPALIVE_RESPONSE',
45
+ })
46
+ break
47
+ }
48
+
49
+ case 'INTEGRITY_CHECK_REQUEST': {
50
+ sendToClient(client, {
51
+ type: 'INTEGRITY_CHECK_RESPONSE',
52
+ payload: {
53
+ packageVersion: PACKAGE_VERSION,
54
+ checksum: INTEGRITY_CHECKSUM,
55
+ },
56
+ })
57
+ break
58
+ }
59
+
60
+ case 'MOCK_ACTIVATE': {
61
+ activeClientIds.add(clientId)
62
+
63
+ sendToClient(client, {
64
+ type: 'MOCKING_ENABLED',
65
+ payload: {
66
+ client: {
67
+ id: client.id,
68
+ frameType: client.frameType,
69
+ },
70
+ },
71
+ })
72
+ break
73
+ }
74
+
75
+ case 'MOCK_DEACTIVATE': {
76
+ activeClientIds.delete(clientId)
77
+ break
78
+ }
79
+
80
+ case 'CLIENT_CLOSED': {
81
+ activeClientIds.delete(clientId)
82
+
83
+ const remainingClients = allClients.filter((client) => {
84
+ return client.id !== clientId
85
+ })
86
+
87
+ // Unregister itself when there are no more clients
88
+ if (remainingClients.length === 0) {
89
+ self.registration.unregister()
90
+ }
91
+
92
+ break
93
+ }
94
+ }
95
+ })
96
+
97
+ self.addEventListener('fetch', function (event) {
98
+ const { request } = event
99
+
100
+ // Bypass navigation requests.
101
+ if (request.mode === 'navigate') {
102
+ return
103
+ }
104
+
105
+ // Opening the DevTools triggers the "only-if-cached" request
106
+ // that cannot be handled by the worker. Bypass such requests.
107
+ if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
108
+ return
109
+ }
110
+
111
+ // Bypass all requests when there are no active clients.
112
+ // Prevents the self-unregistered worked from handling requests
113
+ // after it's been deleted (still remains active until the next reload).
114
+ if (activeClientIds.size === 0) {
115
+ return
116
+ }
117
+
118
+ // Generate unique request ID.
119
+ const requestId = crypto.randomUUID()
120
+ event.respondWith(handleRequest(event, requestId))
121
+ })
122
+
123
+ async function handleRequest(event, requestId) {
124
+ const client = await resolveMainClient(event)
125
+ const response = await getResponse(event, client, requestId)
126
+
127
+ // Send back the response clone for the "response:*" life-cycle events.
128
+ // Ensure MSW is active and ready to handle the message, otherwise
129
+ // this message will pend indefinitely.
130
+ if (client && activeClientIds.has(client.id)) {
131
+ ;(async function () {
132
+ const responseClone = response.clone()
133
+
134
+ sendToClient(
135
+ client,
136
+ {
137
+ type: 'RESPONSE',
138
+ payload: {
139
+ requestId,
140
+ isMockedResponse: IS_MOCKED_RESPONSE in response,
141
+ type: responseClone.type,
142
+ status: responseClone.status,
143
+ statusText: responseClone.statusText,
144
+ body: responseClone.body,
145
+ headers: Object.fromEntries(responseClone.headers.entries()),
146
+ },
147
+ },
148
+ [responseClone.body],
149
+ )
150
+ })()
151
+ }
152
+
153
+ return response
154
+ }
155
+
156
+ // Resolve the main client for the given event.
157
+ // Client that issues a request doesn't necessarily equal the client
158
+ // that registered the worker. It's with the latter the worker should
159
+ // communicate with during the response resolving phase.
160
+ async function resolveMainClient(event) {
161
+ const client = await self.clients.get(event.clientId)
162
+
163
+ if (activeClientIds.has(event.clientId)) {
164
+ return client
165
+ }
166
+
167
+ if (client?.frameType === 'top-level') {
168
+ return client
169
+ }
170
+
171
+ const allClients = await self.clients.matchAll({
172
+ type: 'window',
173
+ })
174
+
175
+ return allClients
176
+ .filter((client) => {
177
+ // Get only those clients that are currently visible.
178
+ return client.visibilityState === 'visible'
179
+ })
180
+ .find((client) => {
181
+ // Find the client ID that's recorded in the
182
+ // set of clients that have registered the worker.
183
+ return activeClientIds.has(client.id)
184
+ })
185
+ }
186
+
187
+ async function getResponse(event, client, requestId) {
188
+ const { request } = event
189
+
190
+ // Clone the request because it might've been already used
191
+ // (i.e. its body has been read and sent to the client).
192
+ const requestClone = request.clone()
193
+
194
+ function passthrough() {
195
+ // Cast the request headers to a new Headers instance
196
+ // so the headers can be manipulated with.
197
+ const headers = new Headers(requestClone.headers)
198
+
199
+ // Remove the "accept" header value that marked this request as passthrough.
200
+ // This prevents request alteration and also keeps it compliant with the
201
+ // user-defined CORS policies.
202
+ const acceptHeader = headers.get('accept')
203
+ if (acceptHeader) {
204
+ const values = acceptHeader.split(',').map((value) => value.trim())
205
+ const filteredValues = values.filter(
206
+ (value) => value !== 'msw/passthrough',
207
+ )
208
+
209
+ if (filteredValues.length > 0) {
210
+ headers.set('accept', filteredValues.join(', '))
211
+ } else {
212
+ headers.delete('accept')
213
+ }
214
+ }
215
+
216
+ return fetch(requestClone, { headers })
217
+ }
218
+
219
+ // Bypass mocking when the client is not active.
220
+ if (!client) {
221
+ return passthrough()
222
+ }
223
+
224
+ // Bypass initial page load requests (i.e. static assets).
225
+ // The absence of the immediate/parent client in the map of the active clients
226
+ // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
227
+ // and is not ready to handle requests.
228
+ if (!activeClientIds.has(client.id)) {
229
+ return passthrough()
230
+ }
231
+
232
+ // Notify the client that a request has been intercepted.
233
+ const requestBuffer = await request.arrayBuffer()
234
+ const clientMessage = await sendToClient(
235
+ client,
236
+ {
237
+ type: 'REQUEST',
238
+ payload: {
239
+ id: requestId,
240
+ url: request.url,
241
+ mode: request.mode,
242
+ method: request.method,
243
+ headers: Object.fromEntries(request.headers.entries()),
244
+ cache: request.cache,
245
+ credentials: request.credentials,
246
+ destination: request.destination,
247
+ integrity: request.integrity,
248
+ redirect: request.redirect,
249
+ referrer: request.referrer,
250
+ referrerPolicy: request.referrerPolicy,
251
+ body: requestBuffer,
252
+ keepalive: request.keepalive,
253
+ },
254
+ },
255
+ [requestBuffer],
256
+ )
257
+
258
+ switch (clientMessage.type) {
259
+ case 'MOCK_RESPONSE': {
260
+ return respondWithMock(clientMessage.data)
261
+ }
262
+
263
+ case 'PASSTHROUGH': {
264
+ return passthrough()
265
+ }
266
+ }
267
+
268
+ return passthrough()
269
+ }
270
+
271
+ function sendToClient(client, message, transferrables = []) {
272
+ return new Promise((resolve, reject) => {
273
+ const channel = new MessageChannel()
274
+
275
+ channel.port1.onmessage = (event) => {
276
+ if (event.data && event.data.error) {
277
+ return reject(event.data.error)
278
+ }
279
+
280
+ resolve(event.data)
281
+ }
282
+
283
+ client.postMessage(
284
+ message,
285
+ [channel.port2].concat(transferrables.filter(Boolean)),
286
+ )
287
+ })
288
+ }
289
+
290
+ async function respondWithMock(response) {
291
+ // Setting response status code to 0 is a no-op.
292
+ // However, when responding with a "Response.error()", the produced Response
293
+ // instance will have status code set to 0. Since it's not possible to create
294
+ // a Response instance with status code 0, handle that use-case separately.
295
+ if (response.status === 0) {
296
+ return Response.error()
297
+ }
298
+
299
+ const mockedResponse = new Response(response.body, response)
300
+
301
+ Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, {
302
+ value: true,
303
+ enumerable: true,
304
+ })
305
+
306
+ return mockedResponse
307
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 266.32 84.8" style="enable-background:new 0 0 266.32 84.8;" xml:space="preserve">
4
+ <style type="text/css">
5
+ .st0{fill:none;}
6
+ .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#4E008E;}
7
+ </style>
8
+ <g>
9
+ <rect y="0" class="st0" width="266.32" height="84.8"/>
10
+ <g>
11
+ <rect x="20.24" y="40.64" class="st1" width="9.2" height="3.68"/>
12
+ <polygon class="st1" points="36.8,44.32 46,44.32 46,40.64 33.12,40.64 33.12,57.2 36.8,57.2 "/>
13
+ <path class="st1" d="M29.44,18.98v-3.75c-9.42,1.73-16.56,9.98-16.56,19.9v9.2h3.68v-9.2C16.56,27.25,22.07,20.65,29.44,18.98"/>
14
+ <path class="st1" d="M49.68,40.64v11.04c0,9.14-7.41,16.56-16.56,16.56v3.68c11.18,0,20.24-9.06,20.24-20.24V40.64H49.68z"/>
15
+ <path class="st1" d="M135.96,45.34v2.35c-0.33-0.07-0.63-0.09-0.93-0.09c-2.12,0-3.28,1.35-3.28,3.81v5.79h-2.65V45.39h2.47v1.74 h0.05c0.79-1.28,1.91-1.91,3.37-1.91C135.28,45.23,135.65,45.27,135.96,45.34"/>
16
+ <path class="st1" d="M138.83,50.09L138.83,50.09h5.98c-0.19-2.07-1.4-3.09-2.98-3.09C140.22,46.99,139.06,48.04,138.83,50.09 M144.59,53.64h2.72c-0.44,2.12-2.35,3.91-5.44,3.91c-3.6,0-5.72-2.58-5.72-6.39c0-3.49,2.09-6.12,5.67-6.12 c2.7,0,4.65,1.56,5.3,4.02c0.23,0.74,0.33,1.63,0.33,2.77h-8.67c0.09,2.67,1.44,3.77,3.09,3.77 C143.39,55.6,144.36,54.78,144.59,53.64z"/>
17
+ <polygon class="st1" points="69.01,43.06 69.01,57.2 66.24,57.2 66.24,43.06 60.8,43.06 60.8,40.65 74.45,40.65 74.45,43.06 "/>
18
+ <path class="st1" d="M80.1,51.6L80.1,51.6c-0.79,0.05-1.93,0.16-2.72,0.3c-1.7,0.28-2.33,0.79-2.33,1.86 c0,1.05,0.74,1.74,2.09,1.74c0.81,0,1.6-0.26,2.14-0.79c0.63-0.65,0.81-1.28,0.81-2.53V51.6z M82.66,49.67v4.42 c0,1.4,0.12,2.37,0.3,3.12h-2.4c-0.12-0.51-0.16-1.09-0.16-1.65h-0.05c-0.86,1.26-2.19,1.91-3.98,1.91c-2.47,0-4-1.49-4-3.51 c0-1.93,1.14-3.19,4.53-3.72c0.95-0.16,2.35-0.3,3.19-0.35v-0.46c0-1.74-0.95-2.44-2.3-2.44c-1.46,0-2.26,0.81-2.33,2.07h-2.6 c0.12-2.23,1.74-4,4.93-4C80.92,45.04,82.66,46.58,82.66,49.67z"/>
19
+ <path class="st1" d="M102.01,49.92v7.28h-2.65v-7.02c0-2.09-0.81-2.93-2.14-2.93c-1.56,0-2.49,1.33-2.49,3.58v6.37h-2.65v-7.3 c0-1.67-0.74-2.65-2.12-2.65c-1.58,0-2.49,1.35-2.49,3.63v6.33h-2.65V45.39h2.53v1.42h0.05c0.84-1.14,1.88-1.7,3.28-1.7 c1.63,0,2.88,0.74,3.49,2.14c0.86-1.35,2-2.14,3.79-2.14C100.48,45.11,102.01,46.74,102.01,49.92"/>
20
+ <path class="st1" d="M106.73,51.3L106.73,51.3c0,2.56,1.14,4.14,2.86,4.14c1.79,0,2.93-1.63,2.93-4.14s-1.14-4.14-2.93-4.14 C107.87,47.16,106.73,48.71,106.73,51.3 M115.28,51.3c0,3.77-1.91,6.19-4.91,6.19c-1.47,0-2.79-0.67-3.47-1.81h-0.05v5.84h-2.65 V45.39h2.58v1.63h0.05c0.7-1.21,2.02-1.93,3.51-1.93C113.36,45.09,115.28,47.53,115.28,51.3z"/>
21
+ <path class="st1" d="M118.91,50.09L118.91,50.09h5.98c-0.19-2.07-1.39-3.09-2.98-3.09C120.31,46.99,119.14,48.04,118.91,50.09 M124.68,53.64h2.72c-0.44,2.12-2.35,3.91-5.44,3.91c-3.6,0-5.72-2.58-5.72-6.39c0-3.49,2.09-6.12,5.67-6.12 c2.7,0,4.65,1.56,5.3,4.02c0.23,0.74,0.33,1.63,0.33,2.77h-8.67c0.09,2.67,1.44,3.77,3.09,3.77 C123.47,55.6,124.45,54.78,124.68,53.64z"/>
22
+ <path class="st1" d="M167.38,50.95c0,4.3-2.26,6.6-6.35,6.6c-4.09,0-6.37-2.3-6.37-6.6v-10.3h2.79v10.21 c0,2.79,1.3,4.21,3.58,4.21c2.28,0,3.58-1.42,3.58-4.21V40.65h2.77V50.95z"/>
23
+ <path class="st1" d="M180.17,49.97v7.23h-2.65v-7c0-2.12-0.91-2.95-2.4-2.95c-1.51,0-2.7,1.14-2.7,3.4v6.56h-2.65V45.39h2.51v1.54 h0.05c0.75-1.07,1.98-1.81,3.54-1.81C178.54,45.11,180.17,46.74,180.17,49.97"/>
24
+ <path class="st1" d="M182.35,57.2L182.35,57.2V45.39H185V57.2H182.35z M182.35,43.18v-2.54H185v2.54H182.35z"/>
25
+ <path class="st1" d="M189.91,57.2l-4.12-11.81h2.77l1.53,4.81c0.56,1.72,1.05,3.42,1.51,5.16h0.05c0.46-1.74,0.95-3.44,1.51-5.16 l1.54-4.81h2.77l-4.12,11.81H189.91z"/>
26
+ <path class="st1" d="M199.82,50.09L199.82,50.09h5.98c-0.19-2.07-1.4-3.09-2.98-3.09C201.22,46.99,200.05,48.04,199.82,50.09 M205.59,53.64h2.72c-0.44,2.12-2.35,3.91-5.44,3.91c-3.61,0-5.72-2.58-5.72-6.39c0-3.49,2.09-6.12,5.67-6.12 c2.7,0,4.65,1.56,5.3,4.02c0.23,0.74,0.33,1.63,0.33,2.77h-8.67c0.09,2.67,1.44,3.77,3.09,3.77 C204.38,55.6,205.36,54.78,205.59,53.64z"/>
27
+ <path class="st1" d="M216.86,45.34v2.35c-0.33-0.07-0.63-0.09-0.93-0.09c-2.12,0-3.28,1.35-3.28,3.81v5.79H210V45.39h2.46v1.74 h0.05c0.79-1.28,1.91-1.91,3.37-1.91C216.19,45.23,216.56,45.27,216.86,45.34"/>
28
+ <path class="st1" d="M226.95,49.06h-2.56c0-1.42-0.84-2.09-2.26-2.09c-1.23,0-1.95,0.53-1.95,1.39c0,1.02,0.81,1.23,2.67,1.7 c2.16,0.56,4.47,1.07,4.47,3.88c0,2.14-1.91,3.6-4.95,3.6c-3.16,0-5.09-1.42-5.12-4.23h2.7c0,1.44,0.88,2.25,2.46,2.25 c1.35,0,2.14-0.58,2.14-1.46c0-1.21-0.93-1.44-2.98-1.95c-1.98-0.49-4.05-0.93-4.05-3.58c0-2.09,1.86-3.54,4.63-3.54 C225.16,45.04,226.93,46.44,226.95,49.06"/>
29
+ <path class="st1" d="M228.92,57.2L228.92,57.2V45.39h2.65V57.2H228.92z M228.92,43.18v-2.54h2.65v2.54H228.92z"/>
30
+ <path class="st1" d="M239.55,55.06v2.07c-0.39,0.12-1,0.21-1.49,0.21c-2.49,0-3.58-1.05-3.58-3.63v-6.3h-1.98v-2.02h1.98v-2.95 h2.65v2.95h2.3v2.02h-2.3v5.91c0,1.33,0.44,1.86,1.6,1.86C239.04,55.18,239.36,55.13,239.55,55.06"/>
31
+ <path class="st1" d="M246.88,57.71c-1.12,3-2.42,3.91-5.16,3.91c-0.51,0-0.98-0.07-1.33-0.16v-2.16c0.3,0.09,0.7,0.16,1.12,0.16 c1.44,0,2.07-0.54,2.63-2.16l-4.33-11.91h2.84l2.95,8.79h0.05l3.05-8.79h2.75L246.88,57.71z"/>
32
+ </g>
33
+ </g>
34
+ </svg>
Binary file
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json CHANGED
@@ -3,18 +3,41 @@
3
3
  "private": false,
4
4
  "description": "Extended Toolpad",
5
5
  "author": "Jaakko Rajala",
6
- "version": "1.0.0",
6
+ "version": "1.0.3",
7
7
  "type": "module",
8
- "main": "dist/index.js",
9
- "module": "dist/index.js",
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.es.js",
10
10
  "types": "dist/index.d.ts",
11
11
  "files": [
12
12
  "dist"
13
13
  ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Jalez/mui-toolpad-extended-tuni"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/index.es.js",
21
+ "require": "./dist/index.cjs",
22
+ "types": "./dist/index.d.ts"
23
+ }
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "keywords": [
29
+ "react",
30
+ "mui",
31
+ "toolpad",
32
+ "education"
33
+ ],
34
+ "license": "MIT",
35
+ "sideEffects": false,
14
36
  "scripts": {
15
37
  "clean": "rm -rf dist && rm -rf build && rm -rf coverage && rm -rf node_modules/.cache",
16
38
  "dev": "vite --open --port 3000",
17
- "build": "tsc -p tsconfig.app.json && vite build",
39
+ "build": "tsc && vite build",
40
+ "prepare": "rm -rf ./dist && npm run build",
18
41
  "lint": "eslint .",
19
42
  "preview": "vite preview",
20
43
  "test": "vitest --coverage"
@@ -23,13 +46,13 @@
23
46
  "cross-spawn": "7.0.5"
24
47
  },
25
48
  "dependencies": {
26
- "@emotion/react": "^11.13.5",
27
- "@emotion/styled": "^11.13.5",
49
+ "@emotion/react": "^11.0.0",
50
+ "@emotion/styled": "^11.0.0",
28
51
  "@fontsource/roboto": "^5.0.14",
29
52
  "@mui/base": "^5.0.0-beta.67",
30
- "@mui/icons-material": "^6.1.8",
53
+ "@mui/icons-material": "^6.0.0",
31
54
  "@mui/lab": "^6.0.0-beta.14",
32
- "@mui/material": "^6.1.8",
55
+ "@mui/material": "^6.0.0",
33
56
  "@mui/system": "^6.2.1",
34
57
  "@testing-library/user-event": "^14.5.2",
35
58
  "@toolpad/core": "^0.10.0",
@@ -39,9 +62,9 @@
39
62
  "lodash": "^4.17.21",
40
63
  "notistack": "^3.0.1",
41
64
  "rc-slider": "^11.1.7",
42
- "react": "^18.3.1",
65
+ "react": "^18.0.0",
43
66
  "react-chartjs-2": "^5.2.0",
44
- "react-dom": "^18.3.1",
67
+ "react-dom": "^18.0.0",
45
68
  "react-loading-skeleton": "^3.3.1",
46
69
  "react-router-dom": "^6.27.0",
47
70
  "react-slider": "^2.0.6",
@@ -70,13 +93,16 @@
70
93
  "typescript": "^5.5.3",
71
94
  "typescript-eslint": "^8.0.0",
72
95
  "vite": "^5.4.0",
73
- "vitest": "^2.1.3"
96
+ "vitest": "^2.1.3",
97
+ "vite-plugin-dts": "^1.7.0"
74
98
  },
75
99
  "peerDependencies": {
76
- "react": "^18.0.0",
77
- "react-dom": "^18.0.0",
100
+ "@emotion/react": "^11.0.0",
101
+ "@emotion/styled": "^11.0.0",
102
+ "@mui/icons-material": "^6.0.0",
78
103
  "@mui/material": "^6.0.0",
79
- "@mui/icons-material": "^6.0.0"
104
+ "react": "^18.0.0",
105
+ "react-dom": "^18.0.0"
80
106
  },
81
107
  "msw": {
82
108
  "workerDirectory": [