@webiny/app-admin 6.5.0-beta.7 → 6.5.0-beta.8
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,6 +1,7 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { Separator } from "@webiny/admin-ui";
|
|
3
3
|
import { Form } from "@webiny/form";
|
|
4
|
+
const GRID_COLUMNS = 4;
|
|
4
5
|
const Filters = (props)=>{
|
|
5
6
|
if (!props.show || !props.filters.length) return null;
|
|
6
7
|
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement("div", {
|
|
@@ -14,7 +15,12 @@ const Filters = (props)=>{
|
|
|
14
15
|
}, props.filters.map((filter)=>/*#__PURE__*/ react.createElement("div", {
|
|
15
16
|
key: filter.name,
|
|
16
17
|
className: "empty:hidden min-w-0"
|
|
17
|
-
}, filter.element)), props.children && /*#__PURE__*/ react.createElement("div",
|
|
18
|
+
}, filter.element)), props.children && /*#__PURE__*/ react.createElement("div", {
|
|
19
|
+
className: "min-w-0",
|
|
20
|
+
style: {
|
|
21
|
+
gridColumn: `span ${GRID_COLUMNS - props.filters.length % GRID_COLUMNS}`
|
|
22
|
+
}
|
|
23
|
+
}, props.children)))), /*#__PURE__*/ react.createElement(Separator, null));
|
|
18
24
|
};
|
|
19
25
|
export { Filters };
|
|
20
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/Filters/Filters.js","sources":["../../../src/components/Filters/Filters.tsx"],"sourcesContent":["import React from \"react\";\nimport { Separator } from \"@webiny/admin-ui\";\nimport type { FormOnSubmit, FormProps, GenericFormData } from \"@webiny/form\";\nimport { Form } from \"@webiny/form\";\n\ntype Filter = {\n name: string;\n element: React.ReactElement;\n};\n\nexport type GenericFiltersData = GenericFormData;\n\nexport type FiltersOnSubmit<T extends GenericFiltersData = GenericFiltersData> = FormOnSubmit<T>;\n\nexport interface FiltersProps<T extends GenericFormData = GenericFormData> extends Pick<\n FormProps<T>,\n \"data\" | \"onChange\"\n> {\n filters: Filter[];\n show: boolean;\n children?: React.ReactNode;\n [\"data-testid\"]?: string;\n}\n\nexport const Filters = <T extends GenericFiltersData = GenericFiltersData>(\n props: FiltersProps<T>\n) => {\n if (!props.show || !props.filters.length) {\n return null;\n }\n\n return (\n <>\n <div\n className={\"w-full bg-neutral-base px-md my-sm\"}\n data-testid={props[\"data-testid\"] || \"filters-container\"}\n >\n <Form data={props.data} onChange={props.onChange}>\n {() => (\n <div className={\"w-full grid grid-cols-4 gap-sm items-center\"}>\n {props.filters.map(filter => (\n <div key={filter.name} className={\"empty:hidden min-w-0\"}>\n {filter.element}\n </div>\n ))}\n {props.children && <div
|
|
1
|
+
{"version":3,"file":"components/Filters/Filters.js","sources":["../../../src/components/Filters/Filters.tsx"],"sourcesContent":["import React from \"react\";\nimport { Separator } from \"@webiny/admin-ui\";\nimport type { FormOnSubmit, FormProps, GenericFormData } from \"@webiny/form\";\nimport { Form } from \"@webiny/form\";\n\ntype Filter = {\n name: string;\n element: React.ReactElement;\n};\n\nconst GRID_COLUMNS = 4;\n\nexport type GenericFiltersData = GenericFormData;\n\nexport type FiltersOnSubmit<T extends GenericFiltersData = GenericFiltersData> = FormOnSubmit<T>;\n\nexport interface FiltersProps<T extends GenericFormData = GenericFormData> extends Pick<\n FormProps<T>,\n \"data\" | \"onChange\"\n> {\n filters: Filter[];\n show: boolean;\n children?: React.ReactNode;\n [\"data-testid\"]?: string;\n}\n\nexport const Filters = <T extends GenericFiltersData = GenericFiltersData>(\n props: FiltersProps<T>\n) => {\n if (!props.show || !props.filters.length) {\n return null;\n }\n\n return (\n <>\n <div\n className={\"w-full bg-neutral-base px-md my-sm\"}\n data-testid={props[\"data-testid\"] || \"filters-container\"}\n >\n <Form data={props.data} onChange={props.onChange}>\n {() => (\n <div className={\"w-full grid grid-cols-4 gap-sm items-center\"}>\n {props.filters.map(filter => (\n <div key={filter.name} className={\"empty:hidden min-w-0\"}>\n {filter.element}\n </div>\n ))}\n {props.children && (\n // Children (e.g. advanced search) take the rest of the row.\n <div\n className={\"min-w-0\"}\n style={{\n gridColumn: `span ${\n GRID_COLUMNS - (props.filters.length % GRID_COLUMNS)\n }`\n }}\n >\n {props.children}\n </div>\n )}\n </div>\n )}\n </Form>\n </div>\n <Separator />\n </>\n );\n};\n"],"names":["GRID_COLUMNS","Filters","props","Form","filter","Separator"],"mappings":";;;AAUA,MAAMA,eAAe;AAgBd,MAAMC,UAAU,CACnBC;IAEA,IAAI,CAACA,MAAM,IAAI,IAAI,CAACA,MAAM,OAAO,CAAC,MAAM,EACpC,OAAO;IAGX,OAAO,WAAP,GACI,wDACI,oBAAC;QACG,WAAW;QACX,eAAaA,KAAK,CAAC,cAAc,IAAI;qBAErC,oBAACC,MAAIA;QAAC,MAAMD,MAAM,IAAI;QAAE,UAAUA,MAAM,QAAQ;OAC3C,kBACG,oBAAC;YAAI,WAAW;WACXA,MAAM,OAAO,CAAC,GAAG,CAACE,CAAAA,SAAAA,WAAAA,GACf,oBAAC;gBAAI,KAAKA,OAAO,IAAI;gBAAE,WAAW;eAC7BA,OAAO,OAAO,IAGtBF,MAAM,QAAQ,I,cAEX,oBAAC;YACG,WAAW;YACX,OAAO;gBACH,YAAY,CAAC,KAAK,EACdF,eAAgBE,MAAM,OAAO,CAAC,MAAM,GAAGF,cACzC;YACN;WAECE,MAAM,QAAQ,oBAOvC,oBAACG,WAASA;AAGtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features/wcp/WcpGateway.js","sources":["../../../src/features/wcp/WcpGateway.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { WcpGateway as WcpGatewayAbstraction } from \"./abstractions.js\";\nimport { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport type { GetWcpProjectResponse, WcpProjectData } from \"./types.js\";\n\nconst GET_WCP_PROJECT = /* GraphQL */ `\n query GetWcpProject {\n wcp {\n getProject {\n data {\n orgId\n projectId\n package {\n features {\n seats {\n enabled\n options\n }\n multiTenancy {\n enabled\n options\n }\n advancedPublishingWorkflow {\n enabled\n }\n advancedAccessControlLayer {\n enabled\n options\n }\n auditLogs {\n enabled\n }\n recordLocking {\n enabled\n }\n fileManager {\n enabled\n options\n }\n aiPowerups {\n enabled\n options\n }\n }\n }\n }\n error {\n message\n code\n data\n }\n }\n }\n }\n`;\n\nclass WcpGraphQLGateway implements WcpGatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async fetchProject(): Promise<WcpProjectData | null> {\n const response = await this.client.execute<GetWcpProjectResponse>({\n query: GET_WCP_PROJECT,\n headers: {\n \"x-tenant\": \"root\"\n }\n });\n\n if (response.wcp.getProject.error) {\n throw new Error(response.wcp.getProject.error.message);\n }\n\n return response.wcp.getProject.data;\n }\n}\n\nexport const WcpGateway = createImplementation({\n abstraction: WcpGatewayAbstraction,\n implementation: WcpGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_WCP_PROJECT","WcpGraphQLGateway","client","response","Error","WcpGateway","createImplementation","WcpGatewayAbstraction","MainGraphQLClient"],"mappings":";;;AAKA,MAAMA,kBAAgC,CAAC
|
|
1
|
+
{"version":3,"file":"features/wcp/WcpGateway.js","sources":["../../../src/features/wcp/WcpGateway.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { WcpGateway as WcpGatewayAbstraction } from \"./abstractions.js\";\nimport { MainGraphQLClient } from \"@webiny/app/features/mainGraphQLClient/index.js\";\nimport type { GetWcpProjectResponse, WcpProjectData } from \"./types.js\";\n\nconst GET_WCP_PROJECT = /* GraphQL */ `\n query GetWcpProject {\n wcp {\n getProject {\n data {\n orgId\n projectId\n package {\n features {\n seats {\n enabled\n options\n }\n multiTenancy {\n enabled\n options\n }\n advancedPublishingWorkflow {\n enabled\n }\n advancedAccessControlLayer {\n enabled\n options\n }\n auditLogs {\n enabled\n }\n recordLocking {\n enabled\n }\n fileManager {\n enabled\n options\n }\n aiPowerups {\n enabled\n options\n }\n abTesting {\n enabled\n }\n collaboration {\n enabled\n options\n }\n }\n }\n }\n error {\n message\n code\n data\n }\n }\n }\n }\n`;\n\nclass WcpGraphQLGateway implements WcpGatewayAbstraction.Interface {\n constructor(private client: MainGraphQLClient.Interface) {}\n\n async fetchProject(): Promise<WcpProjectData | null> {\n const response = await this.client.execute<GetWcpProjectResponse>({\n query: GET_WCP_PROJECT,\n headers: {\n \"x-tenant\": \"root\"\n }\n });\n\n if (response.wcp.getProject.error) {\n throw new Error(response.wcp.getProject.error.message);\n }\n\n return response.wcp.getProject.data;\n }\n}\n\nexport const WcpGateway = createImplementation({\n abstraction: WcpGatewayAbstraction,\n implementation: WcpGraphQLGateway,\n dependencies: [MainGraphQLClient]\n});\n"],"names":["GET_WCP_PROJECT","WcpGraphQLGateway","client","response","Error","WcpGateway","createImplementation","WcpGatewayAbstraction","MainGraphQLClient"],"mappings":";;;AAKA,MAAMA,kBAAgC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDvC,CAAC;AAED,MAAMC;IACF,YAAoBC,MAAmC,CAAE;aAArCA,MAAM,GAANA;IAAsC;IAE1D,MAAM,eAA+C;QACjD,MAAMC,WAAW,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwB;YAC9D,OAAOH;YACP,SAAS;gBACL,YAAY;YAChB;QACJ;QAEA,IAAIG,SAAS,GAAG,CAAC,UAAU,CAAC,KAAK,EAC7B,MAAM,IAAIC,MAAMD,SAAS,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO;QAGzD,OAAOA,SAAS,GAAG,CAAC,UAAU,CAAC,IAAI;IACvC;AACJ;AAEO,MAAME,wBAAaC,qBAAqB;IAC3C,aAAaC;IACb,gBAAgBN;IAChB,cAAc;QAACO;KAAkB;AACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "6.5.0-beta.
|
|
3
|
+
"version": "6.5.0-beta.8",
|
|
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.
|
|
27
|
-
"@lexical/utils": "0.
|
|
26
|
+
"@iconify/json": "2.2.538",
|
|
27
|
+
"@lexical/utils": "0.52.0",
|
|
28
28
|
"@types/react": "18.3.31",
|
|
29
|
-
"@webiny/admin-ui": "6.5.0-beta.
|
|
30
|
-
"@webiny/app": "6.5.0-beta.
|
|
29
|
+
"@webiny/admin-ui": "6.5.0-beta.8",
|
|
30
|
+
"@webiny/app": "6.5.0-beta.8",
|
|
31
31
|
"@webiny/di": "1.1.0",
|
|
32
|
-
"@webiny/feature": "6.5.0-beta.
|
|
33
|
-
"@webiny/form": "6.5.0-beta.
|
|
34
|
-
"@webiny/icons": "6.5.0-beta.
|
|
35
|
-
"@webiny/lexical-converter": "6.5.0-beta.
|
|
36
|
-
"@webiny/lexical-editor": "6.5.0-beta.
|
|
37
|
-
"@webiny/lexical-nodes": "6.5.0-beta.
|
|
38
|
-
"@webiny/lexical-theme": "6.5.0-beta.
|
|
39
|
-
"@webiny/plugins": "6.5.0-beta.
|
|
40
|
-
"@webiny/react-composition": "6.5.0-beta.
|
|
41
|
-
"@webiny/react-properties": "6.5.0-beta.
|
|
42
|
-
"@webiny/sdk": "6.5.0-beta.
|
|
43
|
-
"@webiny/telemetry": "6.5.0-beta.
|
|
44
|
-
"@webiny/utils": "6.5.0-beta.
|
|
45
|
-
"@webiny/validation": "6.5.0-beta.
|
|
46
|
-
"@webiny/wcp": "6.5.0-beta.
|
|
32
|
+
"@webiny/feature": "6.5.0-beta.8",
|
|
33
|
+
"@webiny/form": "6.5.0-beta.8",
|
|
34
|
+
"@webiny/icons": "6.5.0-beta.8",
|
|
35
|
+
"@webiny/lexical-converter": "6.5.0-beta.8",
|
|
36
|
+
"@webiny/lexical-editor": "6.5.0-beta.8",
|
|
37
|
+
"@webiny/lexical-nodes": "6.5.0-beta.8",
|
|
38
|
+
"@webiny/lexical-theme": "6.5.0-beta.8",
|
|
39
|
+
"@webiny/plugins": "6.5.0-beta.8",
|
|
40
|
+
"@webiny/react-composition": "6.5.0-beta.8",
|
|
41
|
+
"@webiny/react-properties": "6.5.0-beta.8",
|
|
42
|
+
"@webiny/sdk": "6.5.0-beta.8",
|
|
43
|
+
"@webiny/telemetry": "6.5.0-beta.8",
|
|
44
|
+
"@webiny/utils": "6.5.0-beta.8",
|
|
45
|
+
"@webiny/validation": "6.5.0-beta.8",
|
|
46
|
+
"@webiny/wcp": "6.5.0-beta.8",
|
|
47
47
|
"apollo-cache": "1.3.5",
|
|
48
48
|
"apollo-client": "2.6.10",
|
|
49
49
|
"apollo-link": "1.2.14",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"graphql-tag": "2.12.7",
|
|
56
56
|
"history": "5.3.0",
|
|
57
57
|
"is-hotkey": "0.2.0",
|
|
58
|
-
"lexical": "0.
|
|
58
|
+
"lexical": "0.52.0",
|
|
59
59
|
"lodash": "4.18.1",
|
|
60
60
|
"markdown-to-jsx": "9.10.3",
|
|
61
61
|
"mime": "4.1.0",
|
|
62
62
|
"minimatch": "10.2.6",
|
|
63
|
-
"mobx": "7.0.
|
|
63
|
+
"mobx": "7.0.6",
|
|
64
64
|
"mobx-react-lite": "5.1.0",
|
|
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.14.
|
|
68
|
+
"react-resizable-panels": "4.14.2",
|
|
69
69
|
"react-transition-group": "4.4.5",
|
|
70
70
|
"react-virtualized": "9.22.6",
|
|
71
71
|
"reset-css": "5.0.2",
|
|
@@ -83,10 +83,10 @@
|
|
|
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.0-beta.
|
|
86
|
+
"@webiny/build-tools": "6.5.0-beta.8",
|
|
87
87
|
"rimraf": "6.1.3",
|
|
88
88
|
"typescript": "7.0.2",
|
|
89
|
-
"vitest": "5.0.
|
|
89
|
+
"vitest": "5.0.3"
|
|
90
90
|
},
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|