@webiny/app-admin 6.5.1 → 6.5.2-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "6.5.1",
3
+ "version": "6.5.2-beta.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -23,27 +23,27 @@
23
23
  "@emotion/styled": "11.14.1",
24
24
  "@fortawesome/fontawesome-svg-core": "7.3.1",
25
25
  "@fortawesome/react-fontawesome": "3.5.0",
26
- "@iconify/json": "2.2.547",
27
- "@lexical/utils": "0.52.0",
26
+ "@iconify/json": "2.2.552",
27
+ "@lexical/utils": "0.53.0",
28
28
  "@types/react": "18.3.31",
29
- "@webiny/admin-ui": "6.5.1",
30
- "@webiny/app": "6.5.1",
29
+ "@webiny/admin-ui": "6.5.2-beta.1",
30
+ "@webiny/app": "6.5.2-beta.1",
31
31
  "@webiny/di": "1.1.0",
32
- "@webiny/feature": "6.5.1",
33
- "@webiny/form": "6.5.1",
34
- "@webiny/icons": "6.5.1",
35
- "@webiny/lexical-converter": "6.5.1",
36
- "@webiny/lexical-editor": "6.5.1",
37
- "@webiny/lexical-nodes": "6.5.1",
38
- "@webiny/lexical-theme": "6.5.1",
39
- "@webiny/plugins": "6.5.1",
40
- "@webiny/react-composition": "6.5.1",
41
- "@webiny/react-properties": "6.5.1",
42
- "@webiny/sdk": "6.5.1",
43
- "@webiny/telemetry": "6.5.1",
44
- "@webiny/utils": "6.5.1",
45
- "@webiny/validation": "6.5.1",
46
- "@webiny/wcp": "6.5.1",
32
+ "@webiny/feature": "6.5.2-beta.1",
33
+ "@webiny/form": "6.5.2-beta.1",
34
+ "@webiny/icons": "6.5.2-beta.1",
35
+ "@webiny/lexical-converter": "6.5.2-beta.1",
36
+ "@webiny/lexical-editor": "6.5.2-beta.1",
37
+ "@webiny/lexical-nodes": "6.5.2-beta.1",
38
+ "@webiny/lexical-theme": "6.5.2-beta.1",
39
+ "@webiny/plugins": "6.5.2-beta.1",
40
+ "@webiny/react-composition": "6.5.2-beta.1",
41
+ "@webiny/react-properties": "6.5.2-beta.1",
42
+ "@webiny/sdk": "6.5.2-beta.1",
43
+ "@webiny/telemetry": "6.5.2-beta.1",
44
+ "@webiny/utils": "6.5.2-beta.1",
45
+ "@webiny/validation": "6.5.2-beta.1",
46
+ "@webiny/wcp": "6.5.2-beta.1",
47
47
  "apollo-cache": "1.3.5",
48
48
  "apollo-client": "2.6.10",
49
49
  "apollo-link": "1.2.14",
@@ -54,18 +54,18 @@
54
54
  "graphql": "16.14.2",
55
55
  "graphql-tag": "2.12.7",
56
56
  "history": "5.3.0",
57
- "is-hotkey": "0.2.0",
58
- "lexical": "0.52.0",
57
+ "is-hotkey": "0.2.1",
58
+ "lexical": "0.53.0",
59
59
  "lodash": "4.18.1",
60
- "markdown-to-jsx": "9.10.3",
61
- "mime": "4.1.1",
62
- "minimatch": "10.2.6",
63
- "mobx": "7.1.1",
64
- "mobx-react-lite": "5.1.0",
60
+ "markdown-to-jsx": "9.10.4",
61
+ "mime": "4.1.2",
62
+ "minimatch": "11.0.4",
63
+ "mobx": "7.1.4",
64
+ "mobx-react-lite": "5.1.2",
65
65
  "monaco-editor": "0.53.0",
66
66
  "react": "18.3.1",
67
67
  "react-dom": "18.3.1",
68
- "react-resizable-panels": "4.15.0",
68
+ "react-resizable-panels": "4.15.3",
69
69
  "react-transition-group": "4.4.5",
70
70
  "react-virtualized": "9.22.6",
71
71
  "reset-css": "5.0.2",
@@ -83,7 +83,7 @@
83
83
  "@types/react-transition-group": "4.4.12",
84
84
  "@types/store": "2.0.5",
85
85
  "@types/tinycolor2": "1.4.6",
86
- "@webiny/build-tools": "6.5.1",
86
+ "@webiny/build-tools": "6.5.2-beta.1",
87
87
  "rimraf": "6.1.3",
88
88
  "typescript": "7.0.2",
89
89
  "vitest": "5.0.5"
@@ -4,11 +4,11 @@ function useSecurity() {
4
4
  return {
5
5
  identity,
6
6
  getPermission (name, exact) {
7
- if (!identity) return null;
7
+ if (!identity?.getPermission) return null;
8
8
  return identity.getPermission(name, exact);
9
9
  },
10
10
  getPermissions (name) {
11
- if (!identity) return [];
11
+ if (!identity?.getPermission) return [];
12
12
  return identity.getPermissions(name);
13
13
  }
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"presentation/security/hooks/useSecurity.js","sources":["../../../../src/presentation/security/hooks/useSecurity.ts"],"sourcesContent":["// LEGACY HOOK!\nimport { Identity } from \"~/domain/Identity.js\";\nimport { useIdentity } from \"~/presentation/security/hooks/useIdentity.js\";\n\nexport interface IUseSecurityReturn {\n identity: Identity;\n getPermission<T extends Identity.Permission>(name: string, exact?: boolean): T | null;\n getPermissions<T extends Identity.Permission = Identity.Permission>(name: string): T[];\n}\n\n/**\n * @deprecated Use `useAuthentication` hook instead!\n */\nexport function useSecurity(): IUseSecurityReturn {\n const { identity } = useIdentity();\n\n return {\n identity,\n getPermission<T extends Identity.Permission>(name: string, exact?: boolean): T | null {\n if (!identity) {\n return null;\n }\n\n return identity.getPermission<T>(name, exact);\n },\n getPermissions<T extends Identity.Permission = Identity.Permission>(name: string): T[] {\n if (!identity) {\n return [];\n }\n\n return identity.getPermissions(name);\n }\n };\n}\n"],"names":["useSecurity","identity","useIdentity","name","exact"],"mappings":";AAaO,SAASA;IACZ,MAAM,EAAEC,QAAQ,EAAE,GAAGC;IAErB,OAAO;QACHD;QACA,eAA6CE,IAAY,EAAEC,KAAe;YACtE,IAAI,CAACH,UACD,OAAO;YAGX,OAAOA,SAAS,aAAa,CAAIE,MAAMC;QAC3C;QACA,gBAAoED,IAAY;YAC5E,IAAI,CAACF,UACD,OAAO,EAAE;YAGb,OAAOA,SAAS,cAAc,CAACE;QACnC;IACJ;AACJ"}
1
+ {"version":3,"file":"presentation/security/hooks/useSecurity.js","sources":["../../../../src/presentation/security/hooks/useSecurity.ts"],"sourcesContent":["// LEGACY HOOK!\nimport { Identity } from \"~/domain/Identity.js\";\nimport { useIdentity } from \"~/presentation/security/hooks/useIdentity.js\";\n\nexport interface IUseSecurityReturn {\n identity: Identity;\n getPermission<T extends Identity.Permission>(name: string, exact?: boolean): T | null;\n getPermissions<T extends Identity.Permission = Identity.Permission>(name: string): T[];\n}\n\n/**\n * @deprecated Use `useAuthentication` hook instead!\n */\nexport function useSecurity(): IUseSecurityReturn {\n const { identity } = useIdentity();\n\n return {\n identity,\n getPermission<T extends Identity.Permission>(name: string, exact?: boolean): T | null {\n if (!identity?.getPermission) {\n return null;\n }\n\n return identity.getPermission<T>(name, exact);\n },\n getPermissions<T extends Identity.Permission = Identity.Permission>(name: string): T[] {\n if (!identity?.getPermission) {\n return [];\n }\n\n return identity.getPermissions(name);\n }\n };\n}\n"],"names":["useSecurity","identity","useIdentity","name","exact"],"mappings":";AAaO,SAASA;IACZ,MAAM,EAAEC,QAAQ,EAAE,GAAGC;IAErB,OAAO;QACHD;QACA,eAA6CE,IAAY,EAAEC,KAAe;YACtE,IAAI,CAACH,UAAU,eACX,OAAO;YAGX,OAAOA,SAAS,aAAa,CAAIE,MAAMC;QAC3C;QACA,gBAAoED,IAAY;YAC5E,IAAI,CAACF,UAAU,eACX,OAAO,EAAE;YAGb,OAAOA,SAAS,cAAc,CAACE;QACnC;IACJ;AACJ"}