@abpjs/theme-basic 3.2.0 → 4.0.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * CurrentUserComponent
3
- * Translated from @abp/ng.theme.basic/lib/components/nav-items/current-user.component.ts v3.0.0
3
+ * Translated from @abp/ng.theme.basic/lib/components/nav-items/current-user.component.ts v4.0.0
4
4
  *
5
5
  * Public API component for displaying the current user nav item.
6
6
  * Can be replaced using the component replacement system with eThemeBasicComponents.CurrentUser.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * LanguagesComponent
3
- * Translated from @abp/ng.theme.basic/lib/components/nav-items/languages.component.ts v3.0.0
3
+ * Translated from @abp/ng.theme.basic/lib/components/nav-items/languages.component.ts v4.0.0
4
4
  *
5
5
  * Public API component for displaying the language selector nav item.
6
6
  * Can be replaced using the component replacement system with eThemeBasicComponents.Languages.
package/dist/index.d.ts CHANGED
@@ -2,10 +2,21 @@
2
2
  * @abpjs/theme-basic
3
3
  *
4
4
  * ABP Framework Theme Basic components for React.
5
- * Translated from @abp/ng.theme.basic v3.2.0
5
+ * Translated from @abp/ng.theme.basic v4.0.0
6
6
  *
7
7
  * This package provides the basic theme layout components for ABP React applications.
8
8
  *
9
+ * Changes in v4.0.0:
10
+ * - LogoComponent: Angular now uses EnvironmentService + ApplicationInfo instead of Store + Config.Application
11
+ * (React: no change needed, uses useBranding() context which already abstracts data source)
12
+ * - CurrentUserComponent: Angular now uses ConfigStateService + EnvironmentService + CurrentUserDto
13
+ * (React: no change needed, already uses useConfig() + useAuth() hooks)
14
+ * - LanguagesComponent: Angular now uses SessionStateService + ConfigStateService + LanguageInfo
15
+ * (React: updated type from deprecated ApplicationConfiguration.Language to LanguageInfo)
16
+ * - RoutesComponent: Angular renamed 'routes' property to 'routesService'
17
+ * (React: no change needed, uses useConfig().routes hook)
18
+ * - Dependency update to @abp/ng.theme.shared v4.0.0
19
+ *
9
20
  * Changes in v3.2.0:
10
21
  * - Reduced .abp-loading background opacity from 0.1 to 0.05 for better UX
11
22
  * - Angular: RoutesComponent added closeDropdown() method (React handles via state/events)
@@ -51,7 +62,7 @@
51
62
  * - Dependency update to @abp/ng.theme.shared v2.2.0
52
63
  * - No functional code changes
53
64
  *
54
- * @version 3.2.0
65
+ * @version 4.0.0
55
66
  * @since 2.0.0 - Removed legacy .abp-confirm styles (no impact on React - we use Chakra UI)
56
67
  * @since 2.1.0 - Angular: OAuthService replaced with AuthService (already using useAuth in React)
57
68
  * - Angular: Added styles for loading, modal-backdrop, confirmation (handled by Chakra UI)
package/dist/index.js CHANGED
@@ -1210,8 +1210,8 @@ function LanguagesComponent({
1210
1210
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Menu.Positioner, { style: { zIndex: menuZIndex }, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react26.Menu.Content, { children: dropdownLanguages.map((lang) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1211
1211
  import_react26.Menu.Item,
1212
1212
  {
1213
- value: lang.cultureName,
1214
- onClick: () => handleChangeLang(lang.cultureName),
1213
+ value: lang.cultureName ?? "",
1214
+ onClick: () => handleChangeLang(lang.cultureName ?? ""),
1215
1215
  children: lang.displayName || lang.cultureName
1216
1216
  },
1217
1217
  lang.cultureName
package/dist/index.mjs CHANGED
@@ -1167,8 +1167,8 @@ function LanguagesComponent({
1167
1167
  /* @__PURE__ */ jsx20(Portal5, { children: /* @__PURE__ */ jsx20(Menu4.Positioner, { style: { zIndex: menuZIndex }, children: /* @__PURE__ */ jsx20(Menu4.Content, { children: dropdownLanguages.map((lang) => /* @__PURE__ */ jsx20(
1168
1168
  Menu4.Item,
1169
1169
  {
1170
- value: lang.cultureName,
1171
- onClick: () => handleChangeLang(lang.cultureName),
1170
+ value: lang.cultureName ?? "",
1171
+ onClick: () => handleChangeLang(lang.cultureName ?? ""),
1172
1172
  children: lang.displayName || lang.cultureName
1173
1173
  },
1174
1174
  lang.cultureName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abpjs/theme-basic",
3
- "version": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "description": "ABP Framework Theme Basic components for React - translated from @abp/ng.theme.basic",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,11 +27,11 @@
27
27
  "lucide-react": "^0.400.0",
28
28
  "react-hook-form": "^7.48.0",
29
29
  "react-icons": "^5.0.0",
30
- "@abpjs/core": "3.2.0",
31
- "@abpjs/theme-shared": "3.2.0"
30
+ "@abpjs/theme-shared": "4.0.0",
31
+ "@abpjs/core": "4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@abp/ng.theme.basic": "3.2.0",
34
+ "@abp/ng.theme.basic": "4.0.0",
35
35
  "@testing-library/jest-dom": "^6.6.3",
36
36
  "@testing-library/react": "^16.1.0",
37
37
  "@vitest/coverage-v8": "^1.6.0",