@erxes/ui 3.2.25-next.1 → 3.3.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.
@@ -16,6 +16,11 @@ export declare const NavigationMenuLinkItem: import("react").ForwardRefExoticCom
16
16
  action?: React.ReactNode;
17
17
  itemClassName?: string;
18
18
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
19
+ /**
20
+ * @deprecated Links to `/settings/<pathPrefix>/…`, which now only redirects:
21
+ * plugin settings live in the plugin's own app. Use `NavigationMenuLinkItem`
22
+ * with `pathPrefix="<plugin>/settings"`.
23
+ */
19
24
  export declare const SettingsNavigationMenuLinkItem: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
20
25
  asChild?: boolean;
21
26
  isActive?: boolean;
@@ -106,8 +106,12 @@ export type IUIConfig = {
106
106
  i18n?: boolean;
107
107
  i18nNamespace?: string;
108
108
  hasFloatingWidget?: boolean;
109
- settingsOnly?: boolean;
110
- settingsNavigation?: () => React.ReactNode;
109
+ /**
110
+ * erxes platform versions this plugin is built for, as a semver range
111
+ * (e.g. `'~3.2'`, `'>=3.2.25 <3.4'`). Core warns — and still loads the
112
+ * plugin — when the running platform is outside the range.
113
+ */
114
+ platform?: string;
111
115
  navigationGroup?: {
112
116
  name: string;
113
117
  defaultPath?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/ui",
3
- "version": "3.2.25-next.1",
3
+ "version": "3.3.0",
4
4
  "description": "erxes design system: UI primitives, business modules, hooks and shared frontend state",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -83,6 +83,11 @@ export const NavigationMenuLinkItem = forwardRef<
83
83
 
84
84
  NavigationMenuLinkItem.displayName = 'NavigationMenuLinkItem';
85
85
 
86
+ /**
87
+ * @deprecated Links to `/settings/<pathPrefix>/…`, which now only redirects:
88
+ * plugin settings live in the plugin's own app. Use `NavigationMenuLinkItem`
89
+ * with `pathPrefix="<plugin>/settings"`.
90
+ */
86
91
  export const SettingsNavigationMenuLinkItem = forwardRef<
87
92
  React.ElementRef<typeof Sidebar.MenuButton>,
88
93
  React.ComponentProps<typeof NavigationMenuLinkItem>
@@ -131,8 +131,12 @@ export type IUIConfig = {
131
131
  i18n?: boolean;
132
132
  i18nNamespace?: string;
133
133
  hasFloatingWidget?: boolean;
134
- settingsOnly?: boolean;
135
- settingsNavigation?: () => React.ReactNode;
134
+ /**
135
+ * erxes platform versions this plugin is built for, as a semver range
136
+ * (e.g. `'~3.2'`, `'>=3.2.25 <3.4'`). Core warns — and still loads the
137
+ * plugin — when the running platform is outside the range.
138
+ */
139
+ platform?: string;
136
140
  navigationGroup?: {
137
141
  name: string;
138
142
  defaultPath?: string;