@nocobase/client 1.3.11-beta → 1.3.13-beta

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.
@@ -22,6 +22,13 @@ export declare const useACLRolesCheck: () => {
22
22
  getStrategyActionParams: (actionPath: string) => {};
23
23
  };
24
24
  export declare function useACLRoleContext(): any;
25
+ /**
26
+ * Used to get whether the current user has permission to configure UI
27
+ * @returns {allowConfigUI: boolean}
28
+ */
29
+ export declare function useUIConfigurationPermissions(): {
30
+ allowConfigUI: boolean;
31
+ };
25
32
  export declare const ACLCollectionProvider: (props: any) => any;
26
33
  export declare const useACLActionParamsContext: () => any;
27
34
  export declare const useRecordPkValue: () => any;
package/es/index.mjs CHANGED
@@ -3612,6 +3612,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3612
3612
  get useToken() {
3613
3613
  return useToken$1;
3614
3614
  },
3615
+ get useUIConfigurationPermissions() {
3616
+ return useUIConfigurationPermissions;
3617
+ },
3615
3618
  get useURLAndHTMLSchema() {
3616
3619
  return useURLAndHTMLSchema;
3617
3620
  },
@@ -4083,7 +4086,7 @@ function addAppVersion(e, t) {
4083
4086
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4084
4087
  }), e;
4085
4088
  }
4086
- const name = "@nocobase/client", version$1 = "1.3.11-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4089
+ const name = "@nocobase/client", version$1 = "1.3.13-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4087
4090
  "@ahooksjs/use-url-state": "3.5.1",
4088
4091
  "@ant-design/cssinjs": "^1.11.1",
4089
4092
  "@ant-design/icons": "^5.1.4",
@@ -4104,9 +4107,9 @@ const name = "@nocobase/client", version$1 = "1.3.11-beta", license = "AGPL-3.0"
4104
4107
  "@formily/reactive-react": "^2.2.27",
4105
4108
  "@formily/shared": "^2.2.27",
4106
4109
  "@formily/validator": "^2.2.27",
4107
- "@nocobase/evaluators": "1.3.11-beta",
4108
- "@nocobase/sdk": "1.3.11-beta",
4109
- "@nocobase/utils": "1.3.11-beta",
4110
+ "@nocobase/evaluators": "1.3.13-beta",
4111
+ "@nocobase/sdk": "1.3.13-beta",
4112
+ "@nocobase/utils": "1.3.13-beta",
4110
4113
  ahooks: "^3.7.2",
4111
4114
  antd: "^5.12.8",
4112
4115
  "antd-style": "3.4.5",
@@ -50947,6 +50950,12 @@ function useACLRoleContext() {
50947
50950
  }
50948
50951
  });
50949
50952
  }
50953
+ function useUIConfigurationPermissions() {
50954
+ const { allowAll: e, snippets: t } = useACLRoleContext();
50955
+ return {
50956
+ allowConfigUI: e || t.includes("ui.*")
50957
+ };
50958
+ }
50950
50959
  const ACLCollectionProvider = (e) => {
50951
50960
  var d, p;
50952
50961
  const { allowAll: t, parseAction: o } = useACLRoleContext(), n = useApp(), r = useFieldSchema();
@@ -59567,6 +59576,7 @@ export {
59567
59576
  useTabsContext,
59568
59577
  useTitleFieldOptions,
59569
59578
  useToken$1 as useToken,
59579
+ useUIConfigurationPermissions,
59570
59580
  useURLAndHTMLSchema,
59571
59581
  useURLSearchParamsCtx,
59572
59582
  useURLSearchParamsVariable,