@webiny/app-admin 6.5.3-beta.1 → 6.5.4-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.
|
@@ -19,8 +19,10 @@ const ListViewBase = ({ list, actions, showingFilters = false, onToggleFilters,
|
|
|
19
19
|
style: {
|
|
20
20
|
top: "105px"
|
|
21
21
|
},
|
|
22
|
-
className: "w-full overflow-hidden absolute top-0 bottom-0 left-0"
|
|
23
|
-
}, bulkActions, filters,
|
|
22
|
+
className: "w-full overflow-hidden absolute top-0 bottom-0 left-0 flex flex-col"
|
|
23
|
+
}, bulkActions, filters, /*#__PURE__*/ react.createElement("div", {
|
|
24
|
+
className: "flex-1 min-h-0"
|
|
25
|
+
}, content), bottomBar));
|
|
24
26
|
return /*#__PURE__*/ react.createElement(ListViewProvider, {
|
|
25
27
|
value: ctx
|
|
26
28
|
}, sidebar ? /*#__PURE__*/ react.createElement(SplitView, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components/ListView/ListView.js","sources":["../../../src/components/ListView/ListView.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { LeftPanel, RightPanel, SplitView } from \"~/components/SplitView/SplitView.js\";\nimport { ListViewProvider } from \"./context.js\";\nimport type { IListViewModel, IListActions } from \"~/presentation/listPresenter/abstractions.js\";\n\ninterface ListViewProps {\n list: IListViewModel<any>;\n actions: IListActions;\n showingFilters?: boolean;\n onToggleFilters?: () => void;\n namespace: string;\n sidebar?: React.ReactNode;\n header?: React.ReactNode;\n bulkActions?: React.ReactNode;\n filters?: React.ReactNode;\n content: React.ReactNode;\n bottomBar?: React.ReactNode;\n}\n\nconst ListViewBase = ({\n list,\n actions,\n showingFilters = false,\n onToggleFilters,\n namespace,\n sidebar,\n header,\n bulkActions,\n filters,\n content,\n bottomBar\n}: ListViewProps) => {\n const ctx = useMemo(\n () => ({ list, actions, showingFilters, onToggleFilters }),\n [list, actions, showingFilters, onToggleFilters]\n );\n\n const mainContent = (\n <div className={\"h-full relative overflow-hidden\"}>\n {header}\n <div\n style={{ top: \"105px\" }}\n className={\"w-full overflow-hidden absolute top-0 bottom-0 left-0\"}\n >\n {bulkActions}\n {filters}\n {content}
|
|
1
|
+
{"version":3,"file":"components/ListView/ListView.js","sources":["../../../src/components/ListView/ListView.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { LeftPanel, RightPanel, SplitView } from \"~/components/SplitView/SplitView.js\";\nimport { ListViewProvider } from \"./context.js\";\nimport type { IListViewModel, IListActions } from \"~/presentation/listPresenter/abstractions.js\";\n\ninterface ListViewProps {\n list: IListViewModel<any>;\n actions: IListActions;\n showingFilters?: boolean;\n onToggleFilters?: () => void;\n namespace: string;\n sidebar?: React.ReactNode;\n header?: React.ReactNode;\n bulkActions?: React.ReactNode;\n filters?: React.ReactNode;\n content: React.ReactNode;\n bottomBar?: React.ReactNode;\n}\n\nconst ListViewBase = ({\n list,\n actions,\n showingFilters = false,\n onToggleFilters,\n namespace,\n sidebar,\n header,\n bulkActions,\n filters,\n content,\n bottomBar\n}: ListViewProps) => {\n const ctx = useMemo(\n () => ({ list, actions, showingFilters, onToggleFilters }),\n [list, actions, showingFilters, onToggleFilters]\n );\n\n const mainContent = (\n <div className={\"h-full relative overflow-hidden\"}>\n {header}\n {/* The scroll area only gets the height the bars above and below leave free. When it\n took the full height, the bottom bar covered the last rows of the list. */}\n <div\n style={{ top: \"105px\" }}\n className={\"w-full overflow-hidden absolute top-0 bottom-0 left-0 flex flex-col\"}\n >\n {bulkActions}\n {filters}\n <div className={\"flex-1 min-h-0\"}>{content}</div>\n {bottomBar}\n </div>\n </div>\n );\n\n return (\n <ListViewProvider value={ctx}>\n {sidebar ? (\n <SplitView namespace={namespace}>\n <LeftPanel span={2}>{sidebar}</LeftPanel>\n <RightPanel span={10}>{mainContent}</RightPanel>\n </SplitView>\n ) : (\n mainContent\n )}\n </ListViewProvider>\n );\n};\n\nexport { ListViewBase, type ListViewProps };\n"],"names":["ListViewBase","list","actions","showingFilters","onToggleFilters","namespace","sidebar","header","bulkActions","filters","content","bottomBar","ctx","useMemo","mainContent","ListViewProvider","SplitView","LeftPanel","RightPanel"],"mappings":";;;AAmBA,MAAMA,eAAe,CAAC,EAClBC,IAAI,EACJC,OAAO,EACPC,iBAAiB,KAAK,EACtBC,eAAe,EACfC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,WAAW,EACXC,OAAO,EACPC,OAAO,EACPC,SAAS,EACG;IACZ,MAAMC,MAAMC,QACR,IAAO;YAAEZ;YAAMC;YAASC;YAAgBC;QAAgB,IACxD;QAACH;QAAMC;QAASC;QAAgBC;KAAgB;IAGpD,MAAMU,cAAc,WAAdA,GACF,oBAAC;QAAI,WAAW;OACXP,QAAAA,WAAAA,GAGD,oBAAC;QACG,OAAO;YAAE,KAAK;QAAQ;QACtB,WAAW;OAEVC,aACAC,SAAAA,WAAAA,GACD,oBAAC;QAAI,WAAW;OAAmBC,UAClCC;IAKb,OAAO,WAAP,GACI,oBAACI,kBAAgBA;QAAC,OAAOH;OACpBN,UAAU,WAAVA,GACG,oBAACU,WAASA;QAAC,WAAWX;qBAClB,oBAACY,WAASA;QAAC,MAAM;OAAIX,UAAAA,WAAAA,GACrB,oBAACY,YAAUA;QAAC,MAAM;OAAKJ,gBAG3BA;AAIhB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-admin",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.4-beta.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"@iconify/json": "2.2.560",
|
|
27
27
|
"@lexical/utils": "0.53.0",
|
|
28
28
|
"@types/react": "18.3.31",
|
|
29
|
-
"@webiny/admin-ui": "6.5.
|
|
30
|
-
"@webiny/app": "6.5.
|
|
29
|
+
"@webiny/admin-ui": "6.5.4-beta.0",
|
|
30
|
+
"@webiny/app": "6.5.4-beta.0",
|
|
31
31
|
"@webiny/di": "1.1.0",
|
|
32
|
-
"@webiny/feature": "6.5.
|
|
33
|
-
"@webiny/form": "6.5.
|
|
34
|
-
"@webiny/icons": "6.5.
|
|
35
|
-
"@webiny/lexical-converter": "6.5.
|
|
36
|
-
"@webiny/lexical-editor": "6.5.
|
|
37
|
-
"@webiny/lexical-nodes": "6.5.
|
|
38
|
-
"@webiny/lexical-theme": "6.5.
|
|
39
|
-
"@webiny/plugins": "6.5.
|
|
40
|
-
"@webiny/react-composition": "6.5.
|
|
41
|
-
"@webiny/react-properties": "6.5.
|
|
42
|
-
"@webiny/sdk": "6.5.
|
|
43
|
-
"@webiny/telemetry": "6.5.
|
|
44
|
-
"@webiny/utils": "6.5.
|
|
45
|
-
"@webiny/validation": "6.5.
|
|
46
|
-
"@webiny/wcp": "6.5.
|
|
32
|
+
"@webiny/feature": "6.5.4-beta.0",
|
|
33
|
+
"@webiny/form": "6.5.4-beta.0",
|
|
34
|
+
"@webiny/icons": "6.5.4-beta.0",
|
|
35
|
+
"@webiny/lexical-converter": "6.5.4-beta.0",
|
|
36
|
+
"@webiny/lexical-editor": "6.5.4-beta.0",
|
|
37
|
+
"@webiny/lexical-nodes": "6.5.4-beta.0",
|
|
38
|
+
"@webiny/lexical-theme": "6.5.4-beta.0",
|
|
39
|
+
"@webiny/plugins": "6.5.4-beta.0",
|
|
40
|
+
"@webiny/react-composition": "6.5.4-beta.0",
|
|
41
|
+
"@webiny/react-properties": "6.5.4-beta.0",
|
|
42
|
+
"@webiny/sdk": "6.5.4-beta.0",
|
|
43
|
+
"@webiny/telemetry": "6.5.4-beta.0",
|
|
44
|
+
"@webiny/utils": "6.5.4-beta.0",
|
|
45
|
+
"@webiny/validation": "6.5.4-beta.0",
|
|
46
|
+
"@webiny/wcp": "6.5.4-beta.0",
|
|
47
47
|
"apollo-cache": "1.3.5",
|
|
48
48
|
"apollo-client": "2.6.10",
|
|
49
49
|
"apollo-link": "1.2.14",
|
|
@@ -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.
|
|
86
|
+
"@webiny/build-tools": "6.5.4-beta.0",
|
|
87
87
|
"rimraf": "6.1.4",
|
|
88
88
|
"typescript": "7.0.2",
|
|
89
89
|
"vitest": "5.1.1"
|