@uxf/cms 11.80.5 → 11.81.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.
package/api/index.d.ts CHANGED
@@ -147,6 +147,7 @@ export declare function autocomplete(ctx: any, path: {
147
147
  name: string;
148
148
  }, query: {
149
149
  term: string;
150
+ limit?: number;
150
151
  }): Promise<import("axios").AxiosResponse<AutocompleteResultResponse[], any>>;
151
152
  export declare function saveFormValues<T extends Record<string, any>>(ctx: any, path: {
152
153
  entityAlias: string;
@@ -40,6 +40,9 @@ const MenuItem = (props) => {
40
40
  const firstVisibleChild = visibleChildren.at(0);
41
41
  const isInitiallyOpen = (isActive || hasActiveChildren) && props.item.children.length > 0;
42
42
  const [isSubmenuOpen, setIsSubmenuOpen] = (0, react_1.useState)(isInitiallyOpen);
43
+ (0, react_1.useEffect)(() => {
44
+ setIsSubmenuOpen(isInitiallyOpen);
45
+ }, [isInitiallyOpen]);
43
46
  const toggle = () => setIsSubmenuOpen((prev) => !prev);
44
47
  if (!props.item.isVisible(loggedUser) ||
45
48
  (props.item.children.length !== 0 && !props.item.hasVisibleChildren(loggedUser))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.80.5",
3
+ "version": "11.81.0",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -32,11 +32,11 @@
32
32
  "@redux-devtools/extension": "3.3.0",
33
33
  "@uxf/core": "11.80.4",
34
34
  "@uxf/core-react": "11.80.4",
35
- "@uxf/data-grid": "11.80.4",
36
- "@uxf/form": "11.80.4",
35
+ "@uxf/data-grid": "11.80.6",
36
+ "@uxf/form": "11.80.6",
37
37
  "@uxf/router": "11.80.5",
38
- "@uxf/ui": "11.80.4",
39
- "@uxf/wysiwyg": "11.80.4",
38
+ "@uxf/ui": "11.80.6",
39
+ "@uxf/wysiwyg": "11.80.6",
40
40
  "axios": "1.7.5",
41
41
  "axios-hooks": "5.0.2",
42
42
  "es6-error": "4.1.1",