@micha.bigler/ui-core-micha 3.14.4 → 4.0.1
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/CHANGELOG.md +29 -0
- package/README.md +7 -0
- package/dist/chat/kitSxRegistry.js +9 -0
- package/dist/components/charts/kitSxRegistry.js +6 -0
- package/dist/entries/charts.js +6 -0
- package/dist/entries/chat.js +8 -0
- package/dist/entries/markdown.js +1 -0
- package/dist/index.js +0 -14
- package/dist/pages/AccountPage.js +1 -2
- package/dist/pages/LoginPage.js +1 -2
- package/dist/pages/PasswordChangePage.js +1 -2
- package/dist/pages/PasswordInvitePage.js +1 -2
- package/dist/pages/PasswordResetRequestPage.js +1 -2
- package/dist/pages/SignUpPage.js +1 -2
- package/dist/pages/SignupConfirmPage.js +1 -2
- package/dist/theme/kitSxEntry.js +11 -0
- package/dist/theme/kitSxRegistry.js +2 -15
- package/package.json +31 -7
- package/.github/workflows/ci.yml +0 -35
- package/.github/workflows/publish.yml +0 -126
- package/DESIGN.md +0 -60
- package/WORK_ORDERS.md +0 -150
- package/dev/entries.jsx +0 -721
- package/dev/fixtures.js +0 -26
- package/dev/main.jsx +0 -75
- package/dev/mockTransport.jsx +0 -128
- package/docs/CHART-LAYOUT.md +0 -157
- package/docs/DARK-TOKENS.md +0 -140
- package/docs/TYPE-SCALE.md +0 -111
- package/docs/messaging-deviations.md +0 -118
- package/index.html +0 -12
- package/renovate.json +0 -10
- package/scripts/chart-api-census.mjs +0 -415
- package/src/auth/AuthContext.jsx +0 -158
- package/src/auth/ReauthModal.jsx +0 -82
- package/src/auth/UserMenu.jsx +0 -121
- package/src/auth/apiClient.jsx +0 -232
- package/src/auth/authApi.jsx +0 -539
- package/src/auth/authConfig.jsx +0 -34
- package/src/auth/reauth.js +0 -47
- package/src/chat/ChatComposer.jsx +0 -36
- package/src/chat/ChatList.jsx +0 -87
- package/src/chat/ChatThread.jsx +0 -128
- package/src/chat/ChatWorkspace.jsx +0 -244
- package/src/chat/MarkdownReply.jsx +0 -22
- package/src/chat/ModelPicker.jsx +0 -85
- package/src/chat/api.js +0 -18
- package/src/chat/useChatSocket.js +0 -32
- package/src/chat/wire.js +0 -7
- package/src/components/AccessCodeManager.jsx +0 -288
- package/src/components/AccessCodeSingleUseToggle.jsx +0 -92
- package/src/components/AllowedEmailDomainsManager.jsx +0 -92
- package/src/components/AuthFactorRequirementCard.jsx +0 -95
- package/src/components/BulkInviteCsvTab.jsx +0 -198
- package/src/components/EmptyState.jsx +0 -38
- package/src/components/LoginForm.jsx +0 -159
- package/src/components/MFAComponent.jsx +0 -350
- package/src/components/MfaLoginComponent.jsx +0 -252
- package/src/components/MobileBottomNav.jsx +0 -82
- package/src/components/PasskeysComponent.jsx +0 -252
- package/src/components/PasswordChangeForm.jsx +0 -87
- package/src/components/PasswordResetRequestForm.jsx +0 -43
- package/src/components/PasswordSetForm.jsx +0 -97
- package/src/components/ProfileComponent.jsx +0 -348
- package/src/components/QrSignupManager.jsx +0 -404
- package/src/components/QrSignupValidityManager.jsx +0 -106
- package/src/components/RegistrationMethodsManager.jsx +0 -150
- package/src/components/SecurityComponent.jsx +0 -141
- package/src/components/SocialLoginButtons.jsx +0 -83
- package/src/components/SoftChip.jsx +0 -93
- package/src/components/StatTile.jsx +0 -39
- package/src/components/SupportRecoveryRequestsTab.jsx +0 -482
- package/src/components/TurnstileWidget.jsx +0 -99
- package/src/components/UserInviteComponent.jsx +0 -76
- package/src/components/UserListComponent.jsx +0 -618
- package/src/components/charts/BarChart.jsx +0 -102
- package/src/components/charts/ChartFrame.jsx +0 -214
- package/src/components/charts/LineChart.jsx +0 -126
- package/src/components/charts/ScatterChart.jsx +0 -299
- package/src/components/charts/TimeSeriesChart.jsx +0 -300
- package/src/components/charts/chartDefaults.js +0 -644
- package/src/components/charts/chartLabels.js +0 -36
- package/src/components/charts/exportChart.js +0 -258
- package/src/components/charts/formatters.js +0 -39
- package/src/components/charts/palette.js +0 -33
- package/src/components/charts/yearTickInterval.js +0 -7
- package/src/i18n/authTranslations.ts +0 -2651
- package/src/i18n/chartsTranslations.ts +0 -91
- package/src/i18n/chatTranslations.ts +0 -55
- package/src/i18n/messagingTranslations.ts +0 -120
- package/src/i18n/notificationsTranslations.ts +0 -32
- package/src/i18n/onboardingTranslations.ts +0 -29
- package/src/i18n/sectionNavTranslations.ts +0 -20
- package/src/i18n/uiCoreTranslations.js +0 -29
- package/src/i18n/userMenuTranslations.ts +0 -5
- package/src/index.js +0 -158
- package/src/layout/PageLayout.jsx +0 -36
- package/src/layout/SectionNav.jsx +0 -320
- package/src/messaging/AttachmentList.jsx +0 -145
- package/src/messaging/Composer.jsx +0 -197
- package/src/messaging/ConversationLaunchers.jsx +0 -51
- package/src/messaging/ConversationList.jsx +0 -109
- package/src/messaging/DirectMessageLauncher.jsx +0 -112
- package/src/messaging/MessageBubble.jsx +0 -183
- package/src/messaging/MessagingProvider.jsx +0 -0
- package/src/messaging/MessagingScopeConfig.jsx +0 -24
- package/src/messaging/PollCard.jsx +0 -163
- package/src/messaging/ReactionBar.jsx +0 -43
- package/src/messaging/ReadTicks.jsx +0 -82
- package/src/messaging/Thread.jsx +0 -195
- package/src/messaging/api.js +0 -48
- package/src/messaging/composerImageCompression.js +0 -35
- package/src/messaging/linkifyText.jsx +0 -37
- package/src/notifications/NotificationBell.jsx +0 -84
- package/src/notifications/NotificationSettings.jsx +0 -330
- package/src/notifications/NotificationsProvider.jsx +0 -224
- package/src/notifications/PopupSurface.jsx +0 -105
- package/src/notifications/api.js +0 -55
- package/src/notifications/feedApi.js +0 -18
- package/src/notifications/realtime.jsx +0 -138
- package/src/notifications/serviceWorker/sw.js +0 -50
- package/src/onboarding/OnboardingProvider.jsx +0 -326
- package/src/onboarding/OnboardingWizard.jsx +0 -61
- package/src/onboarding/WizardDialogShell.jsx +0 -51
- package/src/onboarding/api.js +0 -13
- package/src/onboarding/stepSelection.js +0 -16
- package/src/onboarding/steps/BrowserPushStep.jsx +0 -121
- package/src/onboarding/steps/CompleteNameStep.jsx +0 -46
- package/src/onboarding/steps/CookieConsentStep.jsx +0 -133
- package/src/onboarding/steps/PwaInstallStep.jsx +0 -47
- package/src/pages/AccountPage.jsx +0 -394
- package/src/pages/LoginPage.jsx +0 -343
- package/src/pages/PasswordChangePage.jsx +0 -62
- package/src/pages/PasswordInvitePage.jsx +0 -177
- package/src/pages/PasswordResetRequestPage.jsx +0 -68
- package/src/pages/SignUpPage.jsx +0 -268
- package/src/pages/SignupConfirmPage.jsx +0 -155
- package/src/testing/checkKitIntegration.js +0 -233
- package/src/theme/createAppTheme.js +0 -423
- package/src/theme/fonts.js +0 -3
- package/src/theme/index.js +0 -21
- package/src/theme/kitSxRegistry.js +0 -285
- package/src/theme/themeCompleteness.js +0 -1045
- package/src/theme/tokens.js +0 -478
- package/src/utils/auth-errors.js +0 -76
- package/src/utils/authService.js +0 -223
- package/src/utils/resolveErrorText.js +0 -28
- package/src/utils/webauthn.js +0 -51
- package/tests/AccountPage.profileStatements.test.jsx +0 -162
- package/tests/AccountPage.test.jsx +0 -200
- package/tests/AuthContext.test.jsx +0 -129
- package/tests/BarChart.test.jsx +0 -112
- package/tests/BrowserPushStep.test.jsx +0 -110
- package/tests/ChartFrame.test.jsx +0 -336
- package/tests/ConversationList.test.jsx +0 -144
- package/tests/CookieConsentStep.test.jsx +0 -69
- package/tests/EmptyState.test.jsx +0 -62
- package/tests/LineChart.test.jsx +0 -80
- package/tests/MessagingProvider.test.jsx +0 -50
- package/tests/MobileBottomNav.test.jsx +0 -319
- package/tests/NotificationBell.test.jsx +0 -60
- package/tests/NotificationSettings.test.jsx +0 -276
- package/tests/NotificationsProvider.test.jsx +0 -240
- package/tests/OnboardingProvider.test.jsx +0 -294
- package/tests/OnboardingWizard.test.jsx +0 -143
- package/tests/PasswordChangeForm.test.jsx +0 -70
- package/tests/PasswordInvitePage.test.jsx +0 -142
- package/tests/PasswordSetForm.test.jsx +0 -70
- package/tests/PopupSurface.test.jsx +0 -142
- package/tests/ProfileComponent.refresh.test.jsx +0 -194
- package/tests/QrSignupManager.registrationContext.test.jsx +0 -106
- package/tests/QrSignupManagerInfoBox.test.jsx +0 -49
- package/tests/ScatterChart.test.jsx +0 -270
- package/tests/SectionNav.test.jsx +0 -363
- package/tests/SignUpPage.test.jsx +0 -208
- package/tests/SoftChip.test.jsx +0 -105
- package/tests/StatTile.test.jsx +0 -57
- package/tests/Thread.test.jsx +0 -151
- package/tests/TimeSeriesChart.test.jsx +0 -367
- package/tests/UserListComponent.test.jsx +0 -192
- package/tests/UserMenu.test.jsx +0 -171
- package/tests/apiClientLanguage.test.js +0 -33
- package/tests/apiClientPublicPaths.test.js +0 -178
- package/tests/authApiLogin.test.js +0 -42
- package/tests/authApiRegistration.test.js +0 -31
- package/tests/authErrorCodeRendering.test.jsx +0 -77
- package/tests/authErrors.test.js +0 -74
- package/tests/authTranslations.test.js +0 -74
- package/tests/chart-api-census.test.js +0 -366
- package/tests/chartAxisTickBand.test.jsx +0 -95
- package/tests/chartDefaults.test.js +0 -902
- package/tests/chartLabels.test.js +0 -50
- package/tests/chartsPalette.test.js +0 -99
- package/tests/chatApi.test.js +0 -48
- package/tests/chatDriverNames.test.jsx +0 -71
- package/tests/chatExports.test.js +0 -3
- package/tests/chatList.test.jsx +0 -84
- package/tests/chatPicker.test.jsx +0 -82
- package/tests/chatSocket.test.jsx +0 -26
- package/tests/chatThread.test.jsx +0 -116
- package/tests/chatTranslations.test.js +0 -47
- package/tests/chatWorkspace.test.jsx +0 -234
- package/tests/checkKitIntegration.test.jsx +0 -219
- package/tests/createAppTheme.test.js +0 -132
- package/tests/createAppThemeDark.test.js +0 -127
- package/tests/createAppThemeLightGuard.test.js +0 -40
- package/tests/createAppThemePageContrast.test.js +0 -108
- package/tests/createAppThemeTypography.test.js +0 -53
- package/tests/errorCallSiteGuard.test.js +0 -32
- package/tests/exportChart.test.js +0 -313
- package/tests/feedApi.test.js +0 -46
- package/tests/fixtures/light-theme-baseline.json +0 -2234
- package/tests/i18nAggregate.test.js +0 -120
- package/tests/i18nGermanVariant.test.js +0 -65
- package/tests/loginPageErrorResolution.test.jsx +0 -102
- package/tests/messagingApi.test.js +0 -32
- package/tests/messagingChunk6.test.jsx +0 -116
- package/tests/messagingCompactBubble.test.jsx +0 -64
- package/tests/messagingComposer.test.jsx +0 -136
- package/tests/messagingComposerChunk5.test.jsx +0 -113
- package/tests/messagingContractConformance.test.js +0 -69
- package/tests/messagingDirectMessageLauncher.test.jsx +0 -151
- package/tests/messagingExports.test.js +0 -21
- package/tests/messagingInteractions.test.jsx +0 -136
- package/tests/messagingLastMessagePreview.test.jsx +0 -93
- package/tests/messagingLinkify.test.jsx +0 -51
- package/tests/messagingMessageActions.test.jsx +0 -163
- package/tests/messagingMsg6.test.jsx +0 -105
- package/tests/messagingMsg6f.test.jsx +0 -155
- package/tests/messagingMsg6g.test.jsx +0 -166
- package/tests/messagingMsg6h.test.jsx +0 -136
- package/tests/messagingMsg6i.test.jsx +0 -129
- package/tests/messagingPollRendering.test.jsx +0 -142
- package/tests/messagingReactionMerge.test.jsx +0 -77
- package/tests/messagingReadTicksTooltip.test.jsx +0 -36
- package/tests/messagingThreadReceipts.test.jsx +0 -178
- package/tests/messagingThreadingQuoting.test.jsx +0 -87
- package/tests/messagingUnreadLifecycle.test.jsx +0 -78
- package/tests/notificationsApi.test.js +0 -41
- package/tests/notificationsExports.test.js +0 -34
- package/tests/onboardingDescriptors.test.js +0 -132
- package/tests/packageTreeShaking.test.js +0 -126
- package/tests/realtime.test.jsx +0 -219
- package/tests/resolveErrorText.test.js +0 -72
- package/tests/stepSelection.test.js +0 -53
- package/tests/themeCompleteness.test.js +0 -626
- package/tests/timeSeriesLegend.test.js +0 -99
- package/tests/userScreenTranslations.test.jsx +0 -218
- package/tsconfig.build.json +0 -18
- package/vite.config.mjs +0 -6
- package/work-orders/AUTH-1.md +0 -74
- package/work-orders/AUTH-2.md +0 -74
- package/work-orders/AUTH-4.md +0 -183
- package/work-orders/AUTH-5.md +0 -154
- package/work-orders/AUTH-7.md +0 -181
- package/work-orders/AUTH-8.md +0 -184
- package/work-orders/CHART-1.md +0 -285
- package/work-orders/CHART-2.md +0 -222
- package/work-orders/CHART-3.md +0 -163
- package/work-orders/CHART-4.md +0 -203
- package/work-orders/CHART-5.md +0 -226
- package/work-orders/CHART-6.md +0 -428
- package/work-orders/CHART-7.md +0 -175
- package/work-orders/DX-1.md +0 -169
- package/work-orders/DX-2.md +0 -188
- package/work-orders/DX-3.md +0 -195
- package/work-orders/I18N-1.md +0 -254
- package/work-orders/I18N-3.md +0 -207
- package/work-orders/MSG-3.md +0 -375
- package/work-orders/MSG-3b.md +0 -1002
- package/work-orders/MSG-3c.md +0 -378
- package/work-orders/MSG-3d.md +0 -268
- package/work-orders/MSG-3e.md +0 -164
- package/work-orders/MSG-3f.md +0 -391
- package/work-orders/MSG-6e.md +0 -308
- package/work-orders/MSG-6f.md +0 -214
- package/work-orders/MSG-6g.md +0 -244
- package/work-orders/MSG-6h.md +0 -238
- package/work-orders/MSG-6i.md +0 -271
- package/work-orders/MSG-6j.md +0 -117
- package/work-orders/NOTIF-12.md +0 -214
- package/work-orders/NOTIF-13.md +0 -142
- package/work-orders/NOTIF-14.md +0 -151
- package/work-orders/PRIM-1.md +0 -177
- package/work-orders/SHELL-1.md +0 -255
- package/work-orders/SHELL-2.md +0 -197
- package/work-orders/SHELL-3.md +0 -359
- package/work-orders/SHELL-4.md +0 -351
- package/work-orders/SHELL-5.md +0 -345
- package/work-orders/SHELL-6.md +0 -210
- package/work-orders/THEME-1.md +0 -587
- package/work-orders/THEME-10.md +0 -303
- package/work-orders/THEME-11.md +0 -208
- package/work-orders/THEME-2.md +0 -339
- package/work-orders/THEME-3.md +0 -210
- package/work-orders/THEME-4.md +0 -271
- package/work-orders/THEME-5.md +0 -341
- package/work-orders/THEME-6.md +0 -247
- package/work-orders/THEME-7.md +0 -82
- package/work-orders/THEME-8.md +0 -211
- package/work-orders/THEME-9.md +0 -194
- package/work-orders/UCM-AUTH-10.md +0 -490
- package/work-orders/UCM-AUTH-11.md +0 -185
- package/work-orders/UCM-AUTH-12.md +0 -98
- package/work-orders/UCM-AUTH-13.md +0 -47
- package/work-orders/UCM-AUTH-9.md +0 -207
- package/work-orders/UCM-CHART-10.md +0 -150
- package/work-orders/UCM-CHART-11.md +0 -132
- package/work-orders/UCM-CHART-12.md +0 -348
- package/work-orders/UCM-CHART-13.md +0 -122
- package/work-orders/UCM-CHART-14.md +0 -198
- package/work-orders/UCM-CHART-15.md +0 -187
- package/work-orders/UCM-CHART-16.md +0 -169
- package/work-orders/UCM-CHART-17.md +0 -195
- package/work-orders/UCM-CHART-18.md +0 -200
- package/work-orders/UCM-CHART-8.md +0 -147
- package/work-orders/UCM-CHART-9.md +0 -265
- package/work-orders/UCM-CHAT-1.md +0 -190
- package/work-orders/UCM-CHAT-2.md +0 -75
- package/work-orders/UCM-CI-1.md +0 -65
- package/work-orders/UCM-DEP-1.md +0 -63
- package/work-orders/UCM-I18N-4.md +0 -226
- package/work-orders/UCM-I18N-5.md +0 -211
- package/work-orders/UCM-MSG-20.md +0 -192
- package/work-orders/UCM-PRIM-2.md +0 -114
- package/work-orders/UCM-SHELL-7.md +0 -134
- package/work-orders/UCM-SHELL-8.md +0 -125
- package/work-orders/UCM-TEST-1.md +0 -304
- package/work-orders/UCM-THEME-13.md +0 -69
- package/work-orders/UCM-THEME-14.md +0 -312
- package/work-orders/UCM-THEME-15.md +0 -356
- package/work-orders/UCM-THEME-16.md +0 -80
- package/work-orders/UCM-THEME-17.md +0 -111
- package/work-orders/UCM-THEME-18.md +0 -184
- package/work-orders/assets/AUTH-4-user-list-card.html +0 -407
- package/work-orders/assets/PRIM-1-dashboard-primitives.html +0 -624
- package/work-orders/assets/SHELL-2-account-navigation.html +0 -1159
- package/work-orders/assets/THEME-1-baseline-reference-sheet.html +0 -1352
- package/work-orders/assets/UCM-CHAT-1-ai-chat.html +0 -447
- package/work-orders/assets/UCM-THEME-13-dark-prototype.html +0 -390
- package/work-orders/assets/UCM-THEME-17-type-scale.html +0 -391
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.1 - UCM-DEP-3
|
|
4
|
+
|
|
5
|
+
The `exports` map no longer lists `./package.json`; the public entries are exactly `.`, `./charts`, `./chat` and `./markdown`.
|
|
6
|
+
|
|
7
|
+
## 4.0.0 - UCM-DEP-2
|
|
8
|
+
|
|
9
|
+
Breaking: a consumer installs only the peers of the features it imports. The package gets an `exports` map, so deep
|
|
10
|
+
imports such as `.../dist/...` no longer resolve. Only `dist`, `README.md` and `CHANGELOG.md` are published.
|
|
11
|
+
|
|
12
|
+
Peers: `react-helmet` is gone (the seven auth/account pages render a native React 19 `<title>`, text unchanged).
|
|
13
|
+
`@mui/icons-material` is now a required peer (it was used at runtime but only a devDependency), same range as
|
|
14
|
+
`@mui/material`. `i18next` is `>= 26.2.0`. `@mui/x-charts`, `react-markdown` and `remark-gfm` are optional peers,
|
|
15
|
+
needed only for the sub-paths below. `react-markdown` and `remark-gfm` are no longer dependencies.
|
|
16
|
+
`qrcode.react` stays a required peer: `AccountPage` renders `QrSignupManager`, so QR stays in the main entry.
|
|
17
|
+
|
|
18
|
+
| Old import (main entry) | New import | Optional peers needed |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `ChartFrame`, `BarChart`, `LineChart`, `TimeSeriesChart`, `ScatterChart`, `ScatterReferenceCurve`, `ScatterReferenceLine`, `scaleBubbleRadius` | `@micha.bigler/ui-core-micha/charts` | `@mui/x-charts` |
|
|
21
|
+
| `ChatWorkspace`, `ChatList`, `ChatThread`, `ChatComposer`, `ModelPicker`, `useChatSocket`, `createChatApi`, `defaultChatApi` | `@micha.bigler/ui-core-micha/chat` | `react-markdown`, `remark-gfm` |
|
|
22
|
+
| `MarkdownReply` | `@micha.bigler/ui-core-micha/markdown` | `react-markdown`, `remark-gfm` |
|
|
23
|
+
|
|
24
|
+
Unchanged in the main entry: `getNeutralChartPalette`, `useNeutralChartPalette`, the `formatShort*` and chart
|
|
25
|
+
formatter helpers, `yearTickInterval`, `chartsTranslations`, `chatTranslations`, auth, messaging, notifications,
|
|
26
|
+
onboarding, layout and theme exports.
|
|
27
|
+
|
|
28
|
+
`KIT_COMPONENT_SX_REGISTRY` now lists only components of the main entry. The sx registry entries of the moved
|
|
29
|
+
components are `CHARTS_KIT_SX_REGISTRY` (from `/charts`) and `CHAT_KIT_SX_REGISTRY` (from `/chat`); concatenate them
|
|
30
|
+
where a check needs the full set. The theme (`createAppTheme`) no longer reaches charts, chat or markdown modules.
|
|
31
|
+
|
|
3
32
|
## 3.14.4 - UCM-DEP-1
|
|
4
33
|
|
|
5
34
|
Dependency updates. The runtime dependency `@fontsource/dm-sans` moves to ^5.3.0; the peer dependency ranges are
|
package/README.md
CHANGED
|
@@ -37,3 +37,10 @@ it('kit integration is sound', async () => {
|
|
|
37
37
|
`StatTile` (a bordered KPI tile) and `SoftChip` (a soft tinted annotation/status chip, tones derived from `theme.palette[tone]`) live under `src/components/` and are exported from the package root.
|
|
38
38
|
|
|
39
39
|
`EmptyState` (an icon/title/description/action empty-section placeholder, built from theme tokens) lives under `src/components/` and is exported from the package root.
|
|
40
|
+
|
|
41
|
+
## Sub-path imports and optional peers
|
|
42
|
+
|
|
43
|
+
The main entry needs only the required peers. Charts, the chat surface and `MarkdownReply` live on sub-paths whose
|
|
44
|
+
extra peers are optional: `@micha.bigler/ui-core-micha/charts` (`@mui/x-charts`), `/chat` and `/markdown`
|
|
45
|
+
(`react-markdown`, `remark-gfm`). Install those peers only in apps that import the sub-path. The 4.0.0 entry in
|
|
46
|
+
`CHANGELOG.md` has the migration table.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createKitSxEntry } from '../theme/kitSxEntry';
|
|
2
|
+
import { CHAT_LIST_ARCHIVED_ACTION_SX, CHAT_LIST_ROW_ACTION_SX } from './ChatList';
|
|
3
|
+
import { CHAT_THREAD_NOTICE_SX, CHAT_THREAD_TOOL_CHIP_SX } from './ChatThread';
|
|
4
|
+
export const CHAT_KIT_SX_REGISTRY = [
|
|
5
|
+
createKitSxEntry('ChatList.rowAction', 'MuiIconButton', CHAT_LIST_ROW_ACTION_SX, 'CHAT_LIST_ROW_ACTION_SX'),
|
|
6
|
+
createKitSxEntry('ChatList.archivedAction', 'MuiButton', CHAT_LIST_ARCHIVED_ACTION_SX, 'CHAT_LIST_ARCHIVED_ACTION_SX'),
|
|
7
|
+
createKitSxEntry('ChatThread.toolChip', 'MuiChip', CHAT_THREAD_TOOL_CHIP_SX, 'CHAT_THREAD_TOOL_CHIP_SX'),
|
|
8
|
+
createKitSxEntry('ChatThread.notice', 'MuiAlert', CHAT_THREAD_NOTICE_SX, 'CHAT_THREAD_NOTICE_SX'),
|
|
9
|
+
];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createKitSxEntry } from '../../theme/kitSxEntry';
|
|
2
|
+
import { CHART_FRAME_ALERT_SX, CHART_FRAME_ROOT_SX } from './ChartFrame';
|
|
3
|
+
export const CHARTS_KIT_SX_REGISTRY = [
|
|
4
|
+
createKitSxEntry('ChartFrame.root', 'MuiPaper', CHART_FRAME_ROOT_SX, 'CHART_FRAME_ROOT_SX'),
|
|
5
|
+
createKitSxEntry('ChartFrame.alert', 'MuiAlert', CHART_FRAME_ALERT_SX, 'CHART_FRAME_ALERT_SX'),
|
|
6
|
+
];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ChartFrame } from '../components/charts/ChartFrame';
|
|
2
|
+
export { BarChart } from '../components/charts/BarChart';
|
|
3
|
+
export { LineChart } from '../components/charts/LineChart';
|
|
4
|
+
export { TimeSeriesChart } from '../components/charts/TimeSeriesChart';
|
|
5
|
+
export { ScatterChart, ScatterReferenceCurve, ScatterReferenceLine, scaleBubbleRadius, } from '../components/charts/ScatterChart';
|
|
6
|
+
export { CHARTS_KIT_SX_REGISTRY } from '../components/charts/kitSxRegistry';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { ChatWorkspace } from '../chat/ChatWorkspace';
|
|
2
|
+
export { ChatList } from '../chat/ChatList';
|
|
3
|
+
export { ChatThread } from '../chat/ChatThread';
|
|
4
|
+
export { ChatComposer } from '../chat/ChatComposer';
|
|
5
|
+
export { ModelPicker } from '../chat/ModelPicker';
|
|
6
|
+
export { useChatSocket } from '../chat/useChatSocket';
|
|
7
|
+
export { createChatApi, defaultChatApi } from '../chat/api';
|
|
8
|
+
export { CHAT_KIT_SX_REGISTRY } from '../chat/kitSxRegistry';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MarkdownReply } from '../chat/MarkdownReply';
|
package/dist/index.js
CHANGED
|
@@ -43,11 +43,6 @@ export { default as StatTile } from './components/StatTile';
|
|
|
43
43
|
export { default as SoftChip } from './components/SoftChip';
|
|
44
44
|
export { default as EmptyState } from './components/EmptyState';
|
|
45
45
|
// --- 6. Charts ---
|
|
46
|
-
export { ChartFrame } from './components/charts/ChartFrame';
|
|
47
|
-
export { BarChart } from './components/charts/BarChart';
|
|
48
|
-
export { LineChart } from './components/charts/LineChart';
|
|
49
|
-
export { TimeSeriesChart } from './components/charts/TimeSeriesChart';
|
|
50
|
-
export { ScatterChart, ScatterReferenceCurve, ScatterReferenceLine, scaleBubbleRadius, } from './components/charts/ScatterChart';
|
|
51
46
|
export { getNeutralChartPalette, useNeutralChartPalette } from './components/charts/palette';
|
|
52
47
|
export { formatShortTime, formatShortDate, formatShortMonth, formatShortYear, } from './components/charts/chartLabels';
|
|
53
48
|
export { yearTickInterval } from './components/charts/yearTickInterval';
|
|
@@ -78,15 +73,6 @@ export { AttachmentList } from './messaging/AttachmentList';
|
|
|
78
73
|
export { ReactionBar } from './messaging/ReactionBar';
|
|
79
74
|
export { PollCard } from './messaging/PollCard';
|
|
80
75
|
export { MessagingScopeConfig } from './messaging/MessagingScopeConfig';
|
|
81
|
-
// --- Shared AI chat ---
|
|
82
|
-
export { ChatWorkspace } from './chat/ChatWorkspace';
|
|
83
|
-
export { ChatList } from './chat/ChatList';
|
|
84
|
-
export { ChatThread } from './chat/ChatThread';
|
|
85
|
-
export { ChatComposer } from './chat/ChatComposer';
|
|
86
|
-
export { ModelPicker } from './chat/ModelPicker';
|
|
87
|
-
export { default as MarkdownReply } from './chat/MarkdownReply';
|
|
88
|
-
export { useChatSocket } from './chat/useChatSocket';
|
|
89
|
-
export { createChatApi, defaultChatApi } from './chat/api';
|
|
90
76
|
// --- 9. Onboarding ---
|
|
91
77
|
export * from './onboarding/api';
|
|
92
78
|
export { selectActiveSteps } from './onboarding/stepSelection';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { Helmet } from 'react-helmet';
|
|
4
3
|
import { useSearchParams } from 'react-router-dom';
|
|
5
4
|
import { Box, Typography, Alert, CircularProgress, Paper, Stack, useMediaQuery, } from '@mui/material';
|
|
6
5
|
import { useTheme } from '@mui/material/styles';
|
|
@@ -174,5 +173,5 @@ export function AccountPage({ userListExtraColumns = [], userListExtraRowActions
|
|
|
174
173
|
const activeExtraTab = builtInTabValues.has(safeTab)
|
|
175
174
|
? null
|
|
176
175
|
: extraTabs.find((tab) => tab.value === safeTab);
|
|
177
|
-
return (_jsxs(WidePage, { title: t('Account.TITLE', 'Account & Administration'), children: [_jsx(
|
|
176
|
+
return (_jsxs(WidePage, { title: t('Account.TITLE', 'Account & Administration'), children: [_jsx("title", { children: `${t('Account.PAGE_TITLE', 'Account')} – ${user.email}` }), _jsxs(SectionNav, { mode: isMobile ? 'mobile' : 'desktop', groups: groups, activeKey: safeTab, onSelect: (key) => handleTabChange(null, key), children: [safeTab === 'profile' && (_jsx(Box, { sx: { mt: 2 }, children: _jsx(ProfileComponent, { onSubmit: handleProfileSubmit, showName: true, showPrivacy: true, showCookies: true, showStatements: showProfileStatements }) })), safeTab === 'security' && (_jsx(Box, { sx: { mt: 2 }, children: _jsx(SecurityComponent, { fromRecovery: fromRecovery, fromWeakLogin: fromWeakLogin }) })), safeTab === 'users' && (_jsx(Box, { sx: { mt: 2 }, children: _jsx(UserListComponent, { roles: activeRoles, currentUser: user, extraColumns: userListExtraColumns, extraRowActions: userListExtraRowActions, extraContext: userListExtraContext, refreshTrigger: userListRefreshTrigger, canEditUser: userListCanEditUser, showNewColumn: userListShowNewColumn, showSuccessfulLoginColumn: userListShowSuccessfulLoginColumn, showRoleColumn: userListShowRoleColumn, onChangeRole: userListOnChangeRole, showDeleteAction: userListShowDeleteAction, canDeleteUser: userListCanDeleteUser, onDeleteUser: userListOnDeleteUser }) })), safeTab === 'invite' && (_jsx(Box, { sx: { mt: 2 }, children: _jsxs(Stack, { spacing: 2.5, children: [canViewAuthPolicy && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(AuthFactorRequirementCard, { canEdit: canWriteAuthPolicy, policy: authPolicy }) })), canViewAuthPolicy && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(RegistrationMethodsManager, { policy: authPolicy, error: authPolicyError, onPolicyChange: setAuthPolicy, canEdit: canWriteAuthPolicy }) })), canSendInvites && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_admin_invite) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(UserInviteComponent, {}) })), canManageAccessCodes && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_access_code) && (_jsxs(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: [_jsx(Typography, { variant: "h6", gutterBottom: true, children: t('Auth.ACCESS_CODE_MANAGER_TITLE', 'Access Codes') }), _jsx(Typography, { variant: "body2", sx: { mb: 2, color: 'text.secondary' }, children: t('Account.ACCESS_CODES_HINT', 'Manage access codes for self-registration.') }), _jsx(AccessCodeManager, {})] })), canManageAccessCodes && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_access_code) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(AccessCodeSingleUseToggle, { canEdit: canWriteAuthPolicy, policy: authPolicy, onPolicyChange: setAuthPolicy }) })), canSendInvites && showBulkInviteCsvTab && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_admin_invite) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(BulkInviteCsvTab, Object.assign({}, bulkInviteCsvProps)) })), canViewAuthPolicy && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_email_domain) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(AllowedEmailDomainsManager, { enabled: Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_email_domain), domains: (authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allowed_email_domains) || [], onPolicyChange: setAuthPolicy, canEdit: canWriteAuthPolicy }) })), canViewAuthPolicy && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_qr) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(QrSignupValidityManager, { enabled: Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_qr), expiryDays: authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.signup_qr_expiry_days, onPolicyChange: setAuthPolicy, canEdit: canWriteAuthPolicy }) })), canManageSignupQr && Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_qr) && (_jsx(Paper, { variant: "outlined", sx: ACCOUNT_PAGE_SECTION_PAPER_SX, children: _jsx(QrSignupManager, { enabled: Boolean(authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.allow_self_signup_qr), expiryDays: authPolicy === null || authPolicy === void 0 ? void 0 : authPolicy.signup_qr_expiry_days }) }))] }) })), safeTab === 'support' && (_jsx(Box, { sx: { mt: 2 }, children: _jsx(SupportRecoveryRequestsTab, {}) })), activeExtraTab && (_jsx(Box, { sx: { mt: 2 }, children: (_a = activeExtraTab.render) === null || _a === void 0 ? void 0 : _a.call(activeExtraTab, { user, perms, isSuperUser, t }) }))] })] }));
|
|
178
177
|
}
|
package/dist/pages/LoginPage.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState, useContext, useEffect } from 'react';
|
|
3
3
|
import { useNavigate, useLocation } from 'react-router-dom';
|
|
4
|
-
import { Helmet } from 'react-helmet';
|
|
5
4
|
import { Box, Alert } from '@mui/material';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
// Layout & Context
|
|
@@ -246,7 +245,7 @@ export function LoginPage() {
|
|
|
246
245
|
const twoFactorRequired = Boolean(authMethods === null || authMethods === void 0 ? void 0 : authMethods.two_factor_required)
|
|
247
246
|
|| Number((authMethods === null || authMethods === void 0 ? void 0 : authMethods.required_auth_factor_count) || 1) >= 2;
|
|
248
247
|
// --- Render ---
|
|
249
|
-
return (_jsxs(NarrowPage, { title: t('Auth.PAGE_LOGIN_TITLE'), subtitle: t('Auth.PAGE_LOGIN_SUBTITLE'), children: [_jsx(
|
|
248
|
+
return (_jsxs(NarrowPage, { title: t('Auth.PAGE_LOGIN_TITLE'), subtitle: t('Auth.PAGE_LOGIN_SUBTITLE'), children: [_jsx("title", { children: `${t('App.NAME')} – ${t('Auth.PAGE_LOGIN_TITLE')}` }), errorKey && (_jsx(Alert, { severity: "error", sx: LOGIN_PAGE_ALERT_SX, children: errorKey })), recoveryFetching && !errorKey && (_jsx(Alert, { severity: "info", sx: LOGIN_PAGE_ALERT_SX, children: t('Auth.RECOVERY_LINK_VALIDATING', 'Validating recovery link…') })), recoveryToken && !errorKey && (_jsx(Alert, { severity: "info", sx: LOGIN_PAGE_ALERT_SX, children: t('Auth.RECOVERY_LOGIN_WARNING', 'Recovery link validated. Please enter your password.') })), twoFactorRequired && !recoveryToken && !recoveryFetching && (_jsx(Alert, { severity: "info", sx: LOGIN_PAGE_ALERT_SX, children: t('Auth.TWO_FACTOR_REQUIRED_HINT', 'This app requires two authentication factors for full access.') })), step === 'credentials' && (_jsx(LoginForm, { onSubmit: passwordLoginEnabled ? handleSubmitCredentials : null, onForgotPassword: passwordResetEnabled ? () => navigate('/reset-request-password') : null, onSocialLogin: socialLoginEnabled ? (provider) => startSocialLogin(provider) : null, socialProviders: socialProviders, onPasskeyLogin: passkeyLoginEnabled ? handlePasskeyLoginInitial : null, onSignUp: signupEnabled ? () => navigate('/signup') : null,
|
|
250
249
|
// Block submit while the handoff is in flight so the user does not
|
|
251
250
|
// race the recovery-token fetch with a normal password POST.
|
|
252
251
|
disabled: submitting || recoveryFetching, initialIdentifier: recoveryEmail })), step === 'mfa' && mfaState && (_jsx(Box, { children: _jsx(MfaLoginComponent, { availableTypes: mfaState.availableTypes, identifier: mfaState.identifier, onSuccess: handleMfaSuccess, onCancel: handleMfaCancel }) }))] }));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// src/auth/pages/PasswordChangePage.jsx
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { Helmet } from 'react-helmet';
|
|
5
4
|
import { Typography } from '@mui/material';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import { NarrowPage } from '../layout/PageLayout';
|
|
@@ -28,5 +27,5 @@ export function PasswordChangePage() {
|
|
|
28
27
|
setSubmitting(false);
|
|
29
28
|
}
|
|
30
29
|
};
|
|
31
|
-
return (_jsxs(NarrowPage, { title: t('Auth.CHANGE_PASSWORD_BUTTON'), subtitle: t('Auth.PAGE_CHANGE_PASSWORD_SUBTITLE'), children: [_jsx(
|
|
30
|
+
return (_jsxs(NarrowPage, { title: t('Auth.CHANGE_PASSWORD_BUTTON'), subtitle: t('Auth.PAGE_CHANGE_PASSWORD_SUBTITLE'), children: [_jsx("title", { children: `${t('App.NAME')} – ${t('Auth.CHANGE_PASSWORD_BUTTON')}` }), successKey && (_jsx(Typography, { color: "primary", gutterBottom: true, children: t(successKey) })), errorKey && (_jsx(Typography, { color: "error", gutterBottom: true, children: errorKey })), _jsx(PasswordChangeForm, { onSubmit: handleSubmit, submitting: submitting })] }));
|
|
32
31
|
}
|
|
@@ -2,7 +2,6 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// src/auth/pages/PasswordInvitePage.jsx
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { useNavigate, useParams, useLocation } from 'react-router-dom';
|
|
5
|
-
import { Helmet } from 'react-helmet';
|
|
6
5
|
import { Button, Typography } from '@mui/material';
|
|
7
6
|
import { useTranslation } from 'react-i18next';
|
|
8
7
|
import { NarrowPage } from '../layout/PageLayout';
|
|
@@ -116,5 +115,5 @@ export function PasswordInvitePage() {
|
|
|
116
115
|
if (!checked && !errorKey) {
|
|
117
116
|
return (_jsx(NarrowPage, { title: t('Auth.PAGE_CHECKING_LINK_TITLE'), children: _jsx(Typography, { children: t('Auth.PAGE_CHECKING_LINK_TEXT') }) }));
|
|
118
117
|
}
|
|
119
|
-
return (_jsxs(NarrowPage, { title: t(pageTitleKey), subtitle: t(pageSubtitleKey), children: [_jsx(
|
|
118
|
+
return (_jsxs(NarrowPage, { title: t(pageTitleKey), subtitle: t(pageSubtitleKey), children: [_jsx("title", { children: `${t('App.NAME')} – ${t(pageTitleKey)}` }), errorKey && (_jsx(Typography, { color: "error", gutterBottom: true, children: errorKey })), successKey && (_jsxs(_Fragment, { children: [_jsx(Typography, { color: "primary", gutterBottom: true, children: t(successKey) }), _jsx(Button, { variant: "contained", onClick: () => navigate(continueTarget), children: t('Auth.SIGNUP_GO_TO_LOGIN') })] })), submitErrorKey && !successKey && (_jsx(Typography, { color: "error", gutterBottom: true, children: submitErrorKey })), !successKey && !errorKey && (_jsx(PasswordSetForm, { onSubmit: handleSubmit, submitting: submitting }))] }));
|
|
120
119
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// src/auth/pages/PasswordResetRequestPage.jsx
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
|
-
import { Helmet } from 'react-helmet';
|
|
5
4
|
import { Typography } from '@mui/material';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import { NarrowPage } from '../layout/PageLayout';
|
|
@@ -33,5 +32,5 @@ export function PasswordResetRequestPage() {
|
|
|
33
32
|
setSubmitting(false);
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
|
-
return (_jsxs(NarrowPage, { title: t('Auth.PAGE_RESET_PASSWORD_TITLE'), subtitle: t('Auth.PAGE_RESET_REQUEST_SUBTITLE'), children: [_jsx(
|
|
35
|
+
return (_jsxs(NarrowPage, { title: t('Auth.PAGE_RESET_PASSWORD_TITLE'), subtitle: t('Auth.PAGE_RESET_REQUEST_SUBTITLE'), children: [_jsx("title", { children: `${t('App.NAME')} – ${t('Auth.PAGE_RESET_PASSWORD_TITLE')}` }), successKey && (_jsx(Typography, { color: "primary", gutterBottom: true, children: t(successKey) })), errorKey && (_jsx(Typography, { color: "error", gutterBottom: true, children: errorKey })), _jsx(PasswordResetRequestForm, { onSubmit: handleSubmit, submitting: submitting })] }));
|
|
37
36
|
}
|
package/dist/pages/SignUpPage.js
CHANGED
|
@@ -2,7 +2,6 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import React, { useContext, useEffect, useMemo, useRef, useState, } from 'react';
|
|
3
3
|
import { useNavigate, useLocation } from 'react-router-dom';
|
|
4
4
|
import { Alert, Box, Button, Stack, TextField, Typography, } from '@mui/material';
|
|
5
|
-
import { Helmet } from 'react-helmet';
|
|
6
5
|
import { useTranslation } from 'react-i18next';
|
|
7
6
|
import { NarrowPage } from '../layout/PageLayout';
|
|
8
7
|
import { AuthContext } from '../auth/AuthContext';
|
|
@@ -118,7 +117,7 @@ export function SignUpPage() {
|
|
|
118
117
|
const handleGoToLogin = () => {
|
|
119
118
|
navigate('/login');
|
|
120
119
|
};
|
|
121
|
-
return (_jsxs(NarrowPage, { title: t('Auth.LOGIN_SIGNUP_BUTTON'), subtitle: pageSubtitle, children: [_jsx(
|
|
120
|
+
return (_jsxs(NarrowPage, { title: t('Auth.LOGIN_SIGNUP_BUTTON'), subtitle: pageSubtitle, children: [_jsx("title", { children: `${t('App.NAME')} – ${t('Auth.LOGIN_SIGNUP_BUTTON')}` }), signupModes.length === 0 ? (_jsx(Alert, { severity: "info", sx: SIGN_UP_PAGE_ALERT_SX, children: t('Auth.SELF_SIGNUP_DISABLED', 'Self sign-up is currently disabled.') })) : (_jsxs(_Fragment, { children: [successKey && (_jsx(Alert, { severity: "success", sx: SIGN_UP_PAGE_ALERT_SX, children: t(successKey, { email }) })), errorKey && (_jsx(Alert, { severity: "error", sx: SIGN_UP_PAGE_ALERT_SX, children: errorKey })), signupModes.length > 1 && (_jsx(Stack, { spacing: 1, sx: { mb: 2 }, children: _jsx(Stack, { spacing: 1, children: signupModes.map((entry) => (_jsx(Button, { variant: mode === entry ? 'contained' : 'outlined', onClick: () => setMode(entry), disabled: submitting, fullWidth: true, children: t(MODE_LABELS[entry] || entry, entry) }, entry))) }) })), _jsxs(Box, { component: "form", onSubmit: handleSubmit, sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(TextField, { label: t('Auth.EMAIL_LABEL'), type: "email", required: true, fullWidth: true, value: email, onChange: (e) => setEmail(e.target.value), disabled: submitting }), mode === 'self_signup_access_code' && (_jsx(TextField, { label: t('Auth.ACCESS_CODE_LABEL'), type: "text", required: true, fullWidth: true, value: accessCode, onChange: (e) => setAccessCode(e.target.value), disabled: submitting })), turnstileRequired && (_jsx(TurnstileWidget, { ref: turnstileWidgetRef, siteKey: authMethods.turnstile_site_key, onToken: setTurnstileToken })), _jsx(Button, { type: "submit", variant: "contained", disabled: submitting || (turnstileRequired && !turnstileToken), children: submitting
|
|
122
121
|
? t('Auth.SIGNUP_SUBMITTING')
|
|
123
122
|
: t('Auth.SIGNUP_SUBMIT') })] })] })), _jsx(Box, { sx: { mt: 3 }, children: _jsxs(Typography, { variant: "body2", children: [t('Auth.SIGNUP_ALREADY_HAVE_ACCOUNT'), ' ', _jsx(Button, { onClick: handleGoToLogin, variant: "text", size: "small", children: t('Auth.SIGNUP_GO_TO_LOGIN') })] }) })] }));
|
|
124
123
|
}
|
|
@@ -9,7 +9,6 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
9
9
|
import React, { useMemo, useState } from 'react';
|
|
10
10
|
import { useLocation, useNavigate } from 'react-router-dom';
|
|
11
11
|
import { Alert, Box, Button, Stack, TextField, Typography, } from '@mui/material';
|
|
12
|
-
import { Helmet } from 'react-helmet';
|
|
13
12
|
import { useTranslation } from 'react-i18next';
|
|
14
13
|
import { NarrowPage } from '../layout/PageLayout';
|
|
15
14
|
import { confirmRegistration } from '../auth/authApi';
|
|
@@ -59,7 +58,7 @@ export function SignupConfirmPage() {
|
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
60
|
const tokenMissing = !tokenFromUrl;
|
|
62
|
-
return (_jsxs(NarrowPage, { title: t('Auth.SIGNUP_CONFIRM_TITLE', 'Confirm your registration'), subtitle: t('Auth.SIGNUP_CONFIRM_SUBTITLE', 'Choose a password to finish creating your account.'), children: [_jsx(
|
|
61
|
+
return (_jsxs(NarrowPage, { title: t('Auth.SIGNUP_CONFIRM_TITLE', 'Confirm your registration'), subtitle: t('Auth.SIGNUP_CONFIRM_SUBTITLE', 'Choose a password to finish creating your account.'), children: [_jsx("title", { children: `${t('App.NAME')} – ${t('Auth.SIGNUP_CONFIRM_TITLE', 'Confirm your registration')}` }), tokenMissing ? (_jsxs(_Fragment, { children: [_jsx(Alert, { severity: "error", sx: SIGNUP_CONFIRM_PAGE_ALERT_SX, children: t('Auth.PENDING_TOKEN_INVALID', 'This confirmation link is invalid or expired.') }), _jsxs(Stack, { direction: "row", spacing: 1, sx: { mt: 1 }, children: [_jsx(Button, { onClick: () => navigate('/signup'), variant: "contained", children: t('Auth.SIGNUP_REQUEST_NEW', 'Request a new invitation') }), _jsx(Button, { onClick: () => navigate('/login'), variant: "text", children: t('Auth.SIGNUP_GO_TO_LOGIN', 'Go to login') })] })] })) : (_jsxs(_Fragment, { children: [errorKey && (_jsx(Alert, { severity: "error", sx: SIGNUP_CONFIRM_PAGE_ALERT_SX, children: errorKey })), _jsxs(Box, { component: "form", onSubmit: handleSubmit, sx: { display: 'flex', flexDirection: 'column', gap: 2 }, children: [_jsx(TextField, { label: t('Auth.NEW_PASSWORD_LABEL', 'New password'), type: "password", required: true, fullWidth: true, value: password, onChange: (e) => setPassword(e.target.value), disabled: submitting, autoComplete: "new-password" }), _jsx(TextField, { label: t('Auth.PASSWORD_CONFIRM_LABEL', 'Confirm new password'), type: "password", required: true, fullWidth: true, value: confirmPassword, onChange: (e) => setConfirmPassword(e.target.value), disabled: submitting, autoComplete: "new-password" }), _jsx(Button, { type: "submit", variant: "contained", disabled: submitting, children: submitting
|
|
63
62
|
? t('Auth.SIGNUP_CONFIRM_SUBMITTING', 'Confirming…')
|
|
64
63
|
: t('Auth.SIGNUP_CONFIRM_SUBMIT', 'Confirm registration') })] }), _jsxs(Stack, { direction: "row", spacing: 1, sx: { mt: 3 }, children: [_jsx(Typography, { variant: "body2", children: t('Auth.SIGNUP_ALREADY_HAVE_ACCOUNT', 'Already have an account?') }), _jsx(Button, { onClick: () => navigate('/login'), variant: "text", size: "small", children: t('Auth.SIGNUP_GO_TO_LOGIN', 'Go to login') })] })] }))] }));
|
|
65
64
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One registry entry: a kit-owned sx object paired with the baseline-styled MUI key it targets.
|
|
3
|
+
* Lives apart from kitSxRegistry so a sub-path registry can build entries without importing every kit component.
|
|
4
|
+
*/
|
|
5
|
+
export const createKitSxEntry = (component, muiComponent, sx, exportName, slots) => ({
|
|
6
|
+
component,
|
|
7
|
+
muiComponent,
|
|
8
|
+
sx,
|
|
9
|
+
slots,
|
|
10
|
+
exportName,
|
|
11
|
+
});
|
|
@@ -16,7 +16,6 @@ import { SOFT_CHIP_CAVEAT_SX, SOFT_CHIP_ROOT_SX, SOFT_CHIP_STATUS_SX, } from '..
|
|
|
16
16
|
import { SUPPORT_RECOVERY_AGENT_BUTTON_SX, SUPPORT_RECOVERY_AGENT_PAPER_SX, SUPPORT_RECOVERY_ALERT_SX, } from '../components/SupportRecoveryRequestsTab';
|
|
17
17
|
import { USER_INVITE_ACTION_SX, USER_INVITE_ALERT_SX } from '../components/UserInviteComponent';
|
|
18
18
|
import { USER_LIST_ACTION_SX, USER_LIST_ALERT_SX, USER_LIST_BODY_CELL_SX, USER_LIST_EMPTY_CELL_SX, USER_LIST_HEADER_CELL_SX, } from '../components/UserListComponent';
|
|
19
|
-
import { CHART_FRAME_ALERT_SX, CHART_FRAME_ROOT_SX } from '../components/charts/ChartFrame';
|
|
20
19
|
import { PAGE_LAYOUT_CONTAINER_SX } from '../layout/PageLayout';
|
|
21
20
|
import { SECTION_NAV_DRAWER_PAPER_SX, SECTION_NAV_GROUP_PAPER_SX, } from '../layout/SectionNav';
|
|
22
21
|
import { ATTACHMENT_LIST_ALERT_SX, ATTACHMENT_LIST_LIGHTBOX_ACTION_SX, } from '../messaging/AttachmentList';
|
|
@@ -33,8 +32,7 @@ import { LOGIN_PAGE_ALERT_SX } from '../pages/LoginPage';
|
|
|
33
32
|
import { SIGN_UP_PAGE_ALERT_SX } from '../pages/SignUpPage';
|
|
34
33
|
import { SIGNUP_CONFIRM_PAGE_ALERT_SX } from '../pages/SignupConfirmPage';
|
|
35
34
|
import { REAUTH_MODAL_ALERT_SX, REAUTH_MODAL_TEXT_FIELD_SX } from '../auth/ReauthModal';
|
|
36
|
-
import {
|
|
37
|
-
import { CHAT_THREAD_NOTICE_SX, CHAT_THREAD_TOOL_CHIP_SX } from '../chat/ChatThread';
|
|
35
|
+
import { createKitSxEntry } from './kitSxEntry';
|
|
38
36
|
const SX_EXPORTS = {
|
|
39
37
|
ACCESS_CODE_ACTION_SX,
|
|
40
38
|
ACCESS_CODE_ALERT_SX,
|
|
@@ -50,8 +48,6 @@ const SX_EXPORTS = {
|
|
|
50
48
|
BROWSER_PUSH_FORM_CONTROL_LABEL_SX,
|
|
51
49
|
BULK_INVITE_ACTION_SX,
|
|
52
50
|
BULK_INVITE_ALERT_SX,
|
|
53
|
-
CHART_FRAME_ALERT_SX,
|
|
54
|
-
CHART_FRAME_ROOT_SX,
|
|
55
51
|
COMPOSER_EMOJI_BUTTON_SX,
|
|
56
52
|
COMPOSER_MESSAGE_FIELD_SX,
|
|
57
53
|
COMPOSER_SEND_BUTTON_SX,
|
|
@@ -105,10 +101,6 @@ const SX_EXPORTS = {
|
|
|
105
101
|
SUPPORT_RECOVERY_AGENT_PAPER_SX,
|
|
106
102
|
SUPPORT_RECOVERY_ALERT_SX,
|
|
107
103
|
THREAD_DAY_SEPARATOR_SX,
|
|
108
|
-
CHAT_LIST_ARCHIVED_ACTION_SX,
|
|
109
|
-
CHAT_LIST_ROW_ACTION_SX,
|
|
110
|
-
CHAT_THREAD_NOTICE_SX,
|
|
111
|
-
CHAT_THREAD_TOOL_CHIP_SX,
|
|
112
104
|
USER_INVITE_ACTION_SX,
|
|
113
105
|
USER_INVITE_ALERT_SX,
|
|
114
106
|
USER_LIST_ACTION_SX,
|
|
@@ -125,6 +117,7 @@ const entry = (component, muiComponent, sx, slots) => ({
|
|
|
125
117
|
slots,
|
|
126
118
|
exportName: SX_EXPORT_NAMES.get(sx),
|
|
127
119
|
});
|
|
120
|
+
export { createKitSxEntry };
|
|
128
121
|
/**
|
|
129
122
|
* Kit-owned, top-level sx objects paired with the baseline-styled MUI key they
|
|
130
123
|
* target. Conditional and nested sx remain a documented lower bound in the
|
|
@@ -176,8 +169,6 @@ export const KIT_COMPONENT_SX_REGISTRY = [
|
|
|
176
169
|
entry('UserListComponent.headerCell', 'MuiTableCell', USER_LIST_HEADER_CELL_SX),
|
|
177
170
|
entry('UserListComponent.emptyCell', 'MuiTableCell', USER_LIST_EMPTY_CELL_SX),
|
|
178
171
|
entry('UserListComponent.bodyCell', 'MuiTableCell', USER_LIST_BODY_CELL_SX),
|
|
179
|
-
entry('ChartFrame.root', 'MuiPaper', CHART_FRAME_ROOT_SX),
|
|
180
|
-
entry('ChartFrame.alert', 'MuiAlert', CHART_FRAME_ALERT_SX),
|
|
181
172
|
entry('PageLayout.container', 'MuiContainer', PAGE_LAYOUT_CONTAINER_SX),
|
|
182
173
|
entry('SectionNav.drawerPaper', 'MuiDrawer', SECTION_NAV_DRAWER_PAPER_SX, ['paper']),
|
|
183
174
|
entry('SectionNav.drawerPaperBase', 'MuiPaper', SECTION_NAV_DRAWER_PAPER_SX),
|
|
@@ -208,8 +199,4 @@ export const KIT_COMPONENT_SX_REGISTRY = [
|
|
|
208
199
|
entry('SignupConfirmPage.alert', 'MuiAlert', SIGNUP_CONFIRM_PAGE_ALERT_SX),
|
|
209
200
|
entry('ReauthModal.alert', 'MuiAlert', REAUTH_MODAL_ALERT_SX),
|
|
210
201
|
entry('ReauthModal.field', 'MuiTextField', REAUTH_MODAL_TEXT_FIELD_SX),
|
|
211
|
-
entry('ChatList.rowAction', 'MuiIconButton', CHAT_LIST_ROW_ACTION_SX),
|
|
212
|
-
entry('ChatList.archivedAction', 'MuiButton', CHAT_LIST_ARCHIVED_ACTION_SX),
|
|
213
|
-
entry('ChatThread.toolChip', 'MuiChip', CHAT_THREAD_TOOL_CHIP_SX),
|
|
214
|
-
entry('ChatThread.notice', 'MuiAlert', CHAT_THREAD_NOTICE_SX),
|
|
215
202
|
];
|
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micha.bigler/ui-core-micha",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.js",
|
|
8
|
+
"./charts": "./dist/entries/charts.js",
|
|
9
|
+
"./chat": "./dist/entries/chat.js",
|
|
10
|
+
"./markdown": "./dist/entries/markdown.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"CHANGELOG.md"
|
|
16
|
+
],
|
|
6
17
|
"sideEffects": [
|
|
7
18
|
"./src/index.js",
|
|
8
19
|
"./dist/index.js",
|
|
@@ -21,23 +32,34 @@
|
|
|
21
32
|
},
|
|
22
33
|
"private": false,
|
|
23
34
|
"dependencies": {
|
|
24
|
-
"@fontsource/dm-sans": "^5.3.0"
|
|
25
|
-
"react-markdown": "^10.1.0",
|
|
26
|
-
"remark-gfm": "^4.0.1"
|
|
35
|
+
"@fontsource/dm-sans": "^5.3.0"
|
|
27
36
|
},
|
|
28
37
|
"peerDependencies": {
|
|
29
38
|
"@emotion/react": "^11.14.0",
|
|
30
39
|
"@emotion/styled": "^11.14.1",
|
|
40
|
+
"@mui/icons-material": "^7.3.11",
|
|
31
41
|
"@mui/material": "^7.3.11",
|
|
32
42
|
"@mui/x-charts": "^8.0.0",
|
|
33
43
|
"axios": "^1.16.1",
|
|
34
|
-
"i18next": "
|
|
44
|
+
"i18next": ">= 26.2.0",
|
|
35
45
|
"qrcode.react": "^4.2.0",
|
|
36
46
|
"react": "^19.2.6",
|
|
37
47
|
"react-dom": "^19.2.6",
|
|
38
|
-
"react-helmet": "^6.1.0",
|
|
39
48
|
"react-i18next": "^16.3.5 || ^17.0.0",
|
|
40
|
-
"react-
|
|
49
|
+
"react-markdown": "^10.1.0",
|
|
50
|
+
"react-router-dom": "^7.15.1",
|
|
51
|
+
"remark-gfm": "^4.0.1"
|
|
52
|
+
},
|
|
53
|
+
"peerDependenciesMeta": {
|
|
54
|
+
"@mui/x-charts": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"react-markdown": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"remark-gfm": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
41
63
|
},
|
|
42
64
|
"scripts": {
|
|
43
65
|
"build": "tsc -p tsconfig.build.json",
|
|
@@ -52,6 +74,8 @@
|
|
|
52
74
|
"i18next": "^26.4.2",
|
|
53
75
|
"jsdom": "^30.1.2",
|
|
54
76
|
"react-i18next": "^17.0.16",
|
|
77
|
+
"react-markdown": "^10.1.0",
|
|
78
|
+
"remark-gfm": "^4.0.1",
|
|
55
79
|
"typescript": "^7.0.2",
|
|
56
80
|
"vite": "^8.3.4",
|
|
57
81
|
"vitest": "^5.0.3"
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on: workflow_dispatch
|
|
4
|
-
|
|
5
|
-
permissions:
|
|
6
|
-
contents: read
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
test:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
|
|
12
|
-
steps:
|
|
13
|
-
- name: Check out code
|
|
14
|
-
uses: actions/checkout@v7
|
|
15
|
-
with:
|
|
16
|
-
fetch-depth: 2
|
|
17
|
-
|
|
18
|
-
- name: Set up Node
|
|
19
|
-
uses: actions/setup-node@v7
|
|
20
|
-
with:
|
|
21
|
-
node-version: '24.21.0'
|
|
22
|
-
|
|
23
|
-
- name: Set up pnpm
|
|
24
|
-
uses: pnpm/action-setup@v6
|
|
25
|
-
with:
|
|
26
|
-
version: 12.10.1
|
|
27
|
-
|
|
28
|
-
- name: Install dependencies (pnpm)
|
|
29
|
-
run: pnpm install --frozen-lockfile
|
|
30
|
-
|
|
31
|
-
- name: Build
|
|
32
|
-
run: pnpm run build
|
|
33
|
-
|
|
34
|
-
- name: Run tests
|
|
35
|
-
run: pnpm run test
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
name: Publish ui-core-micha to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
paths:
|
|
8
|
-
- "package.json"
|
|
9
|
-
- "pnpm-lock.yaml"
|
|
10
|
-
- "src/**"
|
|
11
|
-
- "tsconfig.build.json"
|
|
12
|
-
workflow_dispatch:
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
publish:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
permissions:
|
|
18
|
-
id-token: write
|
|
19
|
-
contents: read
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- name: Check out code
|
|
23
|
-
uses: actions/checkout@v7
|
|
24
|
-
with:
|
|
25
|
-
fetch-depth: 2
|
|
26
|
-
|
|
27
|
-
- name: Set up Node
|
|
28
|
-
uses: actions/setup-node@v7
|
|
29
|
-
with:
|
|
30
|
-
node-version: '24.21.0'
|
|
31
|
-
registry-url: 'https://registry.npmjs.org'
|
|
32
|
-
|
|
33
|
-
- name: Decide whether to publish
|
|
34
|
-
id: version_check
|
|
35
|
-
run: |
|
|
36
|
-
node <<'NODE'
|
|
37
|
-
const fs = require('fs');
|
|
38
|
-
const cp = require('child_process');
|
|
39
|
-
|
|
40
|
-
const outputPath = process.env.GITHUB_OUTPUT;
|
|
41
|
-
const githubEvent = process.env.GITHUB_EVENT_NAME || '';
|
|
42
|
-
|
|
43
|
-
function writeOutput(value) {
|
|
44
|
-
fs.appendFileSync(outputPath, `should_publish=${value}\n`, 'utf8');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (githubEvent === 'workflow_dispatch') {
|
|
48
|
-
console.log('Manual dispatch: publish enabled.');
|
|
49
|
-
writeOutput('true');
|
|
50
|
-
process.exit(0);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const current = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
|
|
54
|
-
let published;
|
|
55
|
-
try {
|
|
56
|
-
published = cp.execFileSync(
|
|
57
|
-
'npm',
|
|
58
|
-
['view', '@micha.bigler/ui-core-micha', 'version'],
|
|
59
|
-
{ encoding: 'utf8' }
|
|
60
|
-
).trim();
|
|
61
|
-
} catch (error) {
|
|
62
|
-
console.log(
|
|
63
|
-
'Could not fetch the published npm version (the package may not exist yet or the registry is unavailable). Publishing.'
|
|
64
|
-
);
|
|
65
|
-
writeOutput('true');
|
|
66
|
-
process.exit(0);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
console.log(`Published version: ${published}`);
|
|
70
|
-
console.log(`Current version: ${current}`);
|
|
71
|
-
|
|
72
|
-
function parse(version) {
|
|
73
|
-
return version.split('.').map((part) => Number.parseInt(part, 10) || 0);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function greaterThan(a, b) {
|
|
77
|
-
const left = parse(a);
|
|
78
|
-
const right = parse(b);
|
|
79
|
-
const maxLength = Math.max(left.length, right.length);
|
|
80
|
-
for (let index = 0; index < maxLength; index += 1) {
|
|
81
|
-
const lv = left[index] || 0;
|
|
82
|
-
const rv = right[index] || 0;
|
|
83
|
-
if (lv > rv) return true;
|
|
84
|
-
if (lv < rv) return false;
|
|
85
|
-
}
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (greaterThan(current, published)) {
|
|
90
|
-
console.log('Version increased. Publishing.');
|
|
91
|
-
writeOutput('true');
|
|
92
|
-
} else {
|
|
93
|
-
console.log('Version did not increase. Skipping publish.');
|
|
94
|
-
writeOutput('false');
|
|
95
|
-
}
|
|
96
|
-
NODE
|
|
97
|
-
|
|
98
|
-
- name: Set up pnpm
|
|
99
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
100
|
-
uses: pnpm/action-setup@v6
|
|
101
|
-
with:
|
|
102
|
-
version: 12.10.1
|
|
103
|
-
|
|
104
|
-
- name: Show version from package.json
|
|
105
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
106
|
-
run: node -e "console.log('Version from package.json:', require('./package.json').version);"
|
|
107
|
-
|
|
108
|
-
- name: Install dependencies (pnpm)
|
|
109
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
110
|
-
run: pnpm install --frozen-lockfile
|
|
111
|
-
|
|
112
|
-
- name: Build
|
|
113
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
114
|
-
run: pnpm run build
|
|
115
|
-
|
|
116
|
-
- name: Run tests
|
|
117
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
118
|
-
run: pnpm run test
|
|
119
|
-
|
|
120
|
-
- name: Ensure recent npm for trusted publishing
|
|
121
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
122
|
-
run: npm install -g npm@latest
|
|
123
|
-
|
|
124
|
-
- name: Publish to npm (Trusted Publishing)
|
|
125
|
-
if: steps.version_check.outputs.should_publish == 'true'
|
|
126
|
-
run: npm publish --access public
|