@webiny/app-admin 6.4.2 → 6.4.3-beta.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/TeamsMultiAutocomplete/index.js","sources":["../../../src/components/TeamsMultiAutocomplete/index.tsx"],"sourcesContent":["import React, { useMemo, useCallback } from \"react\";\nimport { MultiAutoComplete } from \"@webiny/admin-ui\";\nimport { LIST_TEAMS } from \"./graphql.js\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype TeamsMultiAutocompleteProps = Omit<\n React.ComponentProps<typeof MultiAutoComplete>,\n \"options\" | \"onValuesChange\"\n> & {\n onChange?: (values: string[]) => void;\n};\n\nexport const TeamsMultiAutocomplete = ({\n onChange,\n values,\n ...props\n}: TeamsMultiAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_TEAMS);\n const rawOptions = loading || !data?.security?.teams?.data ? [] : data.security.teams.data;\n\n const options = useMemo(\n () => rawOptions.map((team: any) => ({ label: team.name, value: team.id })),\n [rawOptions]\n );\n\n const onValuesChange = useCallback((ids: string[]) => onChange?.(ids), [onChange]);\n\n return (\n <MultiAutoComplete\n {...props}\n options={options}\n values={loading ? undefined : (values as string[] | undefined)}\n onValuesChange={onValuesChange}\n />\n );\n};\n"],"names":["TeamsMultiAutocomplete","onChange","values","props","data","loading","useQuery","LIST_TEAMS","rawOptions","options","useMemo","team","onValuesChange","useCallback","ids","MultiAutoComplete","undefined"],"mappings":";;;;AAYO,MAAMA,yBAAyB,CAAC,EACnCC,QAAQ,EACRC,MAAM,EACN,GAAGC,OACuB;IAC1B,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAE,GAAGC,SAASC;IACnC,MAAMC,aAAaH,WAAW,CAACD,MAAM,UAAU,OAAO,OAAO,EAAE,GAAGA,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI;IAE1F,MAAMK,UAAUC,QACZ,IAAMF,WAAW,GAAG,CAAC,CAACG,OAAe;gBAAE,OAAOA,KAAK,IAAI;gBAAE,OAAOA,KAAK,EAAE;YAAC,KACxE;QAACH;KAAW;IAGhB,MAAMI,iBAAiBC,YAAY,CAACC,MAAkBb,WAAWa,MAAM;QAACb;KAAS;IAEjF,OAAO,WAAP,GACI,oBAACc,mBAAiBA;
|
|
1
|
+
{"version":3,"file":"components/TeamsMultiAutocomplete/index.js","sources":["../../../src/components/TeamsMultiAutocomplete/index.tsx"],"sourcesContent":["import React, { useMemo, useCallback } from \"react\";\nimport { MultiAutoComplete } from \"@webiny/admin-ui\";\nimport { LIST_TEAMS } from \"./graphql.js\";\nimport { useQuery } from \"@apollo/react-hooks\";\n\ntype TeamsMultiAutocompleteProps = Omit<\n React.ComponentProps<typeof MultiAutoComplete>,\n \"options\" | \"onValuesChange\"\n> & {\n onChange?: (values: string[]) => void;\n};\n\nexport const TeamsMultiAutocomplete = ({\n onChange,\n values,\n ...props\n}: TeamsMultiAutocompleteProps) => {\n const { data, loading } = useQuery(LIST_TEAMS);\n const rawOptions = loading || !data?.security?.teams?.data ? [] : data.security.teams.data;\n\n const options = useMemo(\n () => rawOptions.map((team: any) => ({ label: team.name, value: team.id })),\n [rawOptions]\n );\n\n const onValuesChange = useCallback((ids: string[]) => onChange?.(ids), [onChange]);\n\n return (\n <MultiAutoComplete\n uniqueValues\n {...props}\n options={options}\n values={loading ? undefined : (values as string[] | undefined)}\n onValuesChange={onValuesChange}\n />\n );\n};\n"],"names":["TeamsMultiAutocomplete","onChange","values","props","data","loading","useQuery","LIST_TEAMS","rawOptions","options","useMemo","team","onValuesChange","useCallback","ids","MultiAutoComplete","undefined"],"mappings":";;;;AAYO,MAAMA,yBAAyB,CAAC,EACnCC,QAAQ,EACRC,MAAM,EACN,GAAGC,OACuB;IAC1B,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAE,GAAGC,SAASC;IACnC,MAAMC,aAAaH,WAAW,CAACD,MAAM,UAAU,OAAO,OAAO,EAAE,GAAGA,KAAK,QAAQ,CAAC,KAAK,CAAC,IAAI;IAE1F,MAAMK,UAAUC,QACZ,IAAMF,WAAW,GAAG,CAAC,CAACG,OAAe;gBAAE,OAAOA,KAAK,IAAI;gBAAE,OAAOA,KAAK,EAAE;YAAC,KACxE;QAACH;KAAW;IAGhB,MAAMI,iBAAiBC,YAAY,CAACC,MAAkBb,WAAWa,MAAM;QAACb;KAAS;IAEjF,OAAO,WAAP,GACI,oBAACc,mBAAiBA;QACd;QACC,GAAGZ,KAAK;QACT,SAASM;QACT,QAAQJ,UAAUW,SAAad;QAC/B,gBAAgBU;;AAG5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.3-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
"@emotion/styled": "11.14.1",
|
|
22
22
|
"@fortawesome/fontawesome-svg-core": "7.2.0",
|
|
23
23
|
"@fortawesome/react-fontawesome": "3.3.1",
|
|
24
|
-
"@iconify/json": "2.2.
|
|
24
|
+
"@iconify/json": "2.2.486",
|
|
25
25
|
"@lexical/utils": "0.44.0",
|
|
26
26
|
"@svgr/webpack": "8.1.0",
|
|
27
27
|
"@types/react": "18.3.29",
|
|
28
|
-
"@webiny/admin-ui": "6.4.
|
|
29
|
-
"@webiny/app": "6.4.
|
|
28
|
+
"@webiny/admin-ui": "6.4.3-beta.0",
|
|
29
|
+
"@webiny/app": "6.4.3-beta.0",
|
|
30
30
|
"@webiny/di": "1.0.1",
|
|
31
|
-
"@webiny/feature": "6.4.
|
|
32
|
-
"@webiny/form": "6.4.
|
|
33
|
-
"@webiny/icons": "6.4.
|
|
34
|
-
"@webiny/lexical-converter": "6.4.
|
|
35
|
-
"@webiny/lexical-editor": "6.4.
|
|
36
|
-
"@webiny/lexical-nodes": "6.4.
|
|
37
|
-
"@webiny/lexical-theme": "6.4.
|
|
38
|
-
"@webiny/plugins": "6.4.
|
|
39
|
-
"@webiny/react-composition": "6.4.
|
|
40
|
-
"@webiny/react-properties": "6.4.
|
|
41
|
-
"@webiny/sdk": "6.4.
|
|
42
|
-
"@webiny/telemetry": "6.4.
|
|
43
|
-
"@webiny/utils": "6.4.
|
|
44
|
-
"@webiny/validation": "6.4.
|
|
45
|
-
"@webiny/wcp": "6.4.
|
|
31
|
+
"@webiny/feature": "6.4.3-beta.0",
|
|
32
|
+
"@webiny/form": "6.4.3-beta.0",
|
|
33
|
+
"@webiny/icons": "6.4.3-beta.0",
|
|
34
|
+
"@webiny/lexical-converter": "6.4.3-beta.0",
|
|
35
|
+
"@webiny/lexical-editor": "6.4.3-beta.0",
|
|
36
|
+
"@webiny/lexical-nodes": "6.4.3-beta.0",
|
|
37
|
+
"@webiny/lexical-theme": "6.4.3-beta.0",
|
|
38
|
+
"@webiny/plugins": "6.4.3-beta.0",
|
|
39
|
+
"@webiny/react-composition": "6.4.3-beta.0",
|
|
40
|
+
"@webiny/react-properties": "6.4.3-beta.0",
|
|
41
|
+
"@webiny/sdk": "6.4.3-beta.0",
|
|
42
|
+
"@webiny/telemetry": "6.4.3-beta.0",
|
|
43
|
+
"@webiny/utils": "6.4.3-beta.0",
|
|
44
|
+
"@webiny/validation": "6.4.3-beta.0",
|
|
45
|
+
"@webiny/wcp": "6.4.3-beta.0",
|
|
46
46
|
"apollo-cache": "1.3.5",
|
|
47
47
|
"apollo-client": "2.6.10",
|
|
48
48
|
"apollo-link": "1.2.14",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"apollo-utilities": "1.3.4",
|
|
51
51
|
"bytes": "3.1.2",
|
|
52
52
|
"classnames": "2.5.1",
|
|
53
|
-
"graphql": "16.14.
|
|
53
|
+
"graphql": "16.14.2",
|
|
54
54
|
"graphql-tag": "2.12.6",
|
|
55
55
|
"history": "5.3.0",
|
|
56
56
|
"is-hotkey": "0.2.0",
|
|
57
57
|
"lexical": "0.44.0",
|
|
58
58
|
"lodash": "4.18.1",
|
|
59
|
-
"markdown-to-jsx": "9.8.
|
|
59
|
+
"markdown-to-jsx": "9.8.2",
|
|
60
60
|
"mime": "4.1.0",
|
|
61
61
|
"minimatch": "10.2.5",
|
|
62
|
-
"mobx": "6.
|
|
62
|
+
"mobx": "6.16.1",
|
|
63
63
|
"mobx-react-lite": "4.1.1",
|
|
64
64
|
"monaco-editor": "0.53.0",
|
|
65
65
|
"react": "18.3.1",
|
|
@@ -81,10 +81,10 @@
|
|
|
81
81
|
"@types/react-transition-group": "4.4.12",
|
|
82
82
|
"@types/store": "2.0.5",
|
|
83
83
|
"@types/tinycolor2": "1.4.6",
|
|
84
|
-
"@webiny/build-tools": "6.4.
|
|
84
|
+
"@webiny/build-tools": "6.4.3-beta.0",
|
|
85
85
|
"rimraf": "6.1.3",
|
|
86
86
|
"typescript": "6.0.3",
|
|
87
|
-
"vitest": "4.1.
|
|
87
|
+
"vitest": "4.1.8"
|
|
88
88
|
},
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|