@beinformed/ui 1.65.18 → 1.65.20
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/CHANGELOG.md +16 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/index.js.flow +1 -0
- package/esm/hooks/index.js.map +1 -1
- package/esm/hooks/useModelSelectors.js +73 -0
- package/esm/hooks/useModelSelectors.js.flow +98 -0
- package/esm/hooks/useModelSelectors.js.map +1 -0
- package/esm/hooks/useModularUI.js +52 -9
- package/esm/hooks/useModularUI.js.flow +50 -9
- package/esm/hooks/useModularUI.js.map +1 -1
- package/esm/hooks/useModularUIBasic.js +50 -4
- package/esm/hooks/useModularUIBasic.js.flow +49 -6
- package/esm/hooks/useModularUIBasic.js.map +1 -1
- package/esm/redux/_modularui/ModularUIConnector.js +17 -46
- package/esm/redux/_modularui/ModularUIConnector.js.flow +22 -60
- package/esm/redux/_modularui/ModularUIConnector.js.map +1 -1
- package/esm/redux/_router/RouterConnectors.js +5 -0
- package/esm/redux/_router/RouterConnectors.js.flow +5 -0
- package/esm/redux/_router/RouterConnectors.js.map +1 -1
- package/esm/redux/connectors/Application.js +1 -0
- package/esm/redux/connectors/Application.js.flow +1 -0
- package/esm/redux/connectors/Application.js.map +1 -1
- package/esm/redux/connectors/Breadcrumb.js +1 -0
- package/esm/redux/connectors/Breadcrumb.js.flow +1 -0
- package/esm/redux/connectors/Breadcrumb.js.map +1 -1
- package/esm/redux/connectors/CaseView.js +1 -0
- package/esm/redux/connectors/CaseView.js.flow +1 -0
- package/esm/redux/connectors/CaseView.js.map +1 -1
- package/esm/redux/connectors/ConceptDetail.js +1 -0
- package/esm/redux/connectors/ConceptDetail.js.flow +1 -0
- package/esm/redux/connectors/ConceptDetail.js.map +1 -1
- package/esm/redux/connectors/ContentBrowser.js +1 -0
- package/esm/redux/connectors/ContentBrowser.js.flow +1 -0
- package/esm/redux/connectors/ContentBrowser.js.map +1 -1
- package/esm/redux/connectors/ContentDetail.js +1 -0
- package/esm/redux/connectors/ContentDetail.js.flow +1 -0
- package/esm/redux/connectors/ContentDetail.js.map +1 -1
- package/esm/redux/connectors/ContentDetailSection.js +1 -0
- package/esm/redux/connectors/ContentDetailSection.js.flow +1 -0
- package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
- package/esm/redux/connectors/Form.js +1 -0
- package/esm/redux/connectors/Form.js.flow +1 -0
- package/esm/redux/connectors/Form.js.map +1 -1
- package/esm/redux/connectors/FormAttributeSet.js +1 -0
- package/esm/redux/connectors/FormAttributeSet.js.flow +1 -0
- package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
- package/esm/redux/connectors/ListDetail.js +1 -0
- package/esm/redux/connectors/ListDetail.js.flow +1 -0
- package/esm/redux/connectors/ListDetail.js.map +1 -1
- package/esm/redux/connectors/Modal.js +1 -0
- package/esm/redux/connectors/Modal.js.flow +1 -0
- package/esm/redux/connectors/Modal.js.map +1 -1
- package/esm/redux/connectors/ModelCatalog.js +1 -0
- package/esm/redux/connectors/ModelCatalog.js.flow +1 -0
- package/esm/redux/connectors/ModelCatalog.js.map +1 -1
- package/esm/redux/connectors/Notification.js +1 -0
- package/esm/redux/connectors/Notification.js.flow +1 -0
- package/esm/redux/connectors/Notification.js.map +1 -1
- package/esm/redux/connectors/PanelRenderer.js +1 -0
- package/esm/redux/connectors/PanelRenderer.js.flow +1 -0
- package/esm/redux/connectors/PanelRenderer.js.map +1 -1
- package/esm/redux/connectors/Preferences.js +2 -0
- package/esm/redux/connectors/Preferences.js.flow +2 -0
- package/esm/redux/connectors/Preferences.js.map +1 -1
- package/esm/redux/connectors/Progress.js +1 -0
- package/esm/redux/connectors/Progress.js.flow +1 -0
- package/esm/redux/connectors/Progress.js.map +1 -1
- package/esm/redux/connectors/ProgressIndicator.js +1 -0
- package/esm/redux/connectors/ProgressIndicator.js.flow +1 -0
- package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
- package/esm/redux/connectors/QuickSearch.js +1 -0
- package/esm/redux/connectors/QuickSearch.js.flow +1 -0
- package/esm/redux/connectors/QuickSearch.js.map +1 -1
- package/esm/redux/connectors/SignIn.js +1 -0
- package/esm/redux/connectors/SignIn.js.flow +1 -0
- package/esm/redux/connectors/SignIn.js.map +1 -1
- package/esm/redux/connectors/SignOut.js +1 -0
- package/esm/redux/connectors/SignOut.js.flow +1 -0
- package/esm/redux/connectors/SignOut.js.map +1 -1
- package/esm/redux/connectors/Tab.js +1 -0
- package/esm/redux/connectors/Tab.js.flow +1 -0
- package/esm/redux/connectors/Tab.js.map +1 -1
- package/lib/hooks/index.js +11 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useModelSelectors.js +87 -0
- package/lib/hooks/useModelSelectors.js.map +1 -0
- package/lib/hooks/useModularUI.js +51 -8
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js +47 -4
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/redux/_modularui/ModularUIConnector.js +15 -44
- package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
- package/lib/redux/_router/RouterConnectors.js +5 -0
- package/lib/redux/_router/RouterConnectors.js.map +1 -1
- package/lib/redux/connectors/Application.js +1 -0
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js +1 -0
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js +1 -0
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js +1 -0
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js +1 -0
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js +1 -0
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js +1 -0
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js +1 -0
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js +1 -0
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js +1 -0
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js +1 -0
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js +1 -0
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js +1 -0
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js +1 -0
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js +2 -0
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js +1 -0
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js +1 -0
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js +1 -0
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js +1 -0
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js +1 -0
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js +1 -0
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useCaseView' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectCaseView: ModularUIConnector = modularui(
|
|
9
10
|
"CaseView",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseView.js","names":["modularui","connectCaseView","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,eAAmC,GAAGD,SAAS,CAC1D,UAAU,EACV,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"CaseView.js","names":["modularui","connectCaseView","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useCaseView' instead\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,eAAmC,GAAGD,SAAS,CAC1D,UAAU,EACV,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useConceptDetail' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectConceptDetail: ModularUIConnector = modularui(
|
|
9
10
|
"ConceptDetail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConceptDetail.js","names":["modularui","connectConceptDetail","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAAe,EACf,CAAC;EAAEE,OAAO;EAAEC;AAAS,CAAC,KAAK,aAAaD,OAAO,GAAGC,QAAQ,CAACC,MAAM,EAAE,EACnE;EAAEC,QAAQ,EAAE;AAAgB,CAC9B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ConceptDetail.js","names":["modularui","connectConceptDetail","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useConceptDetail' instead\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAAe,EACf,CAAC;EAAEE,OAAO;EAAEC;AAAS,CAAC,KAAK,aAAaD,OAAO,GAAGC,QAAQ,CAACC,MAAM,EAAE,EACnE;EAAEC,QAAQ,EAAE;AAAgB,CAC9B,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useContentIndex' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectContentBrowser: ModularUIConnector = modularui(
|
|
9
10
|
"ContentBrowser",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBrowser.js","names":["modularui","connectContentBrowser","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,qBAAyC,GAAGD,SAAS,CAChE,gBAAgB,EAChB,CAAC;EAAEE;AAAK,CAAC,KAAKA,IAAI,EAClB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ContentBrowser.js","names":["modularui","connectContentBrowser","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useContentIndex' instead\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,qBAAyC,GAAGD,SAAS,CAChE,gBAAgB,EAChB,CAAC;EAAEE;AAAK,CAAC,KAAKA,IAAI,EAClB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useContentTOC' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectContentDetail: ModularUIConnector = modularui(
|
|
9
10
|
"ContentDetail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentDetail.js","names":["modularui","connectContentDetail","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAAe,EACf,CAAC;EAAEE,OAAO;EAAEC;AAAS,CAAC,KACpB,YAAYC,kBAAkB,CAACF,OAAO,CAAC,GAAGC,QAAQ,CAACE,MAAM,EAAE,EAC7D;EAAEC,QAAQ,EAAE;AAAa,CAC3B,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ContentDetail.js","names":["modularui","connectContentDetail","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useContentTOC' instead\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAAe,EACf,CAAC;EAAEE,OAAO;EAAEC;AAAS,CAAC,KACpB,YAAYC,kBAAkB,CAACF,OAAO,CAAC,GAAGC,QAAQ,CAACE,MAAM,EAAE,EAC7D;EAAEC,QAAQ,EAAE;AAAa,CAC3B,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Href from "../../models/href/Href";
|
|
2
2
|
import modularui from "../_modularui/ModularUIConnector";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useContent' instead
|
|
4
5
|
*/
|
|
5
6
|
export const connectContentDetailSection = modularui("ContentDetailSection", ({
|
|
6
7
|
sectioncontent,
|
|
@@ -6,6 +6,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
6
6
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useContent' instead
|
|
9
10
|
*/
|
|
10
11
|
export const connectContentDetailSection: ModularUIConnector = modularui(
|
|
11
12
|
"ContentDetailSection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentDetailSection.js","names":["Href","modularui","connectContentDetailSection","sectioncontent","section","entryDate","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`,\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" },\n);\n"],"mappings":"AACA,OAAOA,IAAI,MAAM,wBAAwB;AAEzC,OAAOC,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,2BAA+C,GAAGD,SAAS,CACtE,sBAAsB,EACtB,CAAC;EAAEE,cAAc;EAAEC,OAAO;EAAEC;AAAU,CAAC,KACrC,IAAIL,IAAI,CACN,YAAYM,kBAAkB,CAACH,cAAc,CAAC,IAAIC,OAAO,EAC3D,CAAC,CAACG,YAAY,CAAC,WAAW,EAAEF,SAAS,CAAC,EACxC;EAAEG,QAAQ,EAAE;AAAU,CACxB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ContentDetailSection.js","names":["Href","modularui","connectContentDetailSection","sectioncontent","section","entryDate","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useContent' instead\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`,\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" },\n);\n"],"mappings":"AACA,OAAOA,IAAI,MAAM,wBAAwB;AAEzC,OAAOC,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,2BAA+C,GAAGD,SAAS,CACtE,sBAAsB,EACtB,CAAC;EAAEE,cAAc;EAAEC,OAAO;EAAEC;AAAU,CAAC,KACrC,IAAIL,IAAI,CACN,YAAYM,kBAAkB,CAACH,cAAc,CAAC,IAAIC,OAAO,EAC3D,CAAC,CAACG,YAAY,CAAC,WAAW,EAAEF,SAAS,CAAC,EACxC;EAAEG,QAAQ,EAAE;AAAU,CACxB,CAAC","ignoreList":[]}
|
|
@@ -30,6 +30,7 @@ const moduiConnectedForm = modularui("Form", ({
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useForm' instead
|
|
33
34
|
*/
|
|
34
35
|
export const connectForm = compose(moduiConnectedForm, reduxConnectedForm);
|
|
35
36
|
//# sourceMappingURL=Form.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","names":["compose","connect","modularui","HTTP_METHODS","getSetting","cancelForm","previousObject","showFormNotification","Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","onCancel","reduxConnectedForm","moduiConnectedForm","href","formHref","pathname","search","addParameter","propName","method","POST","connectForm"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ModularUIConnector, UpdateFormAction } from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateFormAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps,\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps,\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST },\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>,\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm,\n);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,OAAO,QAAQ,aAAa;AAErC,OAAOC,SAAS,MAAM,kCAAkC;AAExD,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,UAAU,QAAQ,0BAA0B;AAErD,SAASC,UAAU,EAAEC,cAAc,QAAQ,iBAAiB;AAC5D,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,OAAOC,IAAI,MAAM,wBAAwB;AA+BzC,MAAMC,eAAe,GAAGA,CACtBC,KAAiB,EACjBC,QAAkB,MACF;EAChBC,OAAO,EAAEF,KAAK,CAACG,MAAM,CAACC,QAAQ,EAAEJ,KAAK,EAAEK,KAAK,IAAIJ,QAAQ,CAACC,OAAO,IAAI;AACtE,CAAC,CAAC;AAEF,MAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEX,cAAc;EAC1BY,QAAQ,EAAEb,UAAU;EACpBE;AACF,CAAC;AAED,MAAMY,kBAAkB,GAAGlB,OAAO,CAChCQ,eAAe,EACfO,kBACF,CAAC;AAED,MAAMI,kBAAsC,GAAGlB,SAAS,CACtD,MAAM,EACN,CAAC;EAAEmB,IAAI;EAAEP;AAAS,CAAC,KAAK;EACtB,MAAMQ,QAAQ,GAAGD,IAAI,IAAI,IAAIb,IAAI,CAAC,GAAGM,QAAQ,CAACS,QAAQ,GAAGT,QAAQ,CAACU,MAAM,EAAE,CAAC;EAE3E,IAAIpB,UAAU,CAAC,oBAAoB,CAAC,EAAE;IACpC,OAAOkB,QAAQ;EACjB;EAEA,OAAOA,QAAQ,CAACG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;AACjD,CAAC,EACD;EAAEC,QAAQ,EAAE,MAAM;EAAEC,MAAM,EAAExB,YAAY,CAACyB;AAAK,CAChD,CAAC;;AAED;AACA;AACA,OAAO,MAAMC,WAEmB,GAAG7B,OAAO,CACxCoB,kBAAkB,EAClBD,kBACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Form.js","names":["compose","connect","modularui","HTTP_METHODS","getSetting","cancelForm","previousObject","showFormNotification","Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","onCancel","reduxConnectedForm","moduiConnectedForm","href","formHref","pathname","search","addParameter","propName","method","POST","connectForm"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ModularUIConnector, UpdateFormAction } from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateFormAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps,\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps,\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST },\n);\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useForm' instead\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>,\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm,\n);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,OAAO,QAAQ,aAAa;AAErC,OAAOC,SAAS,MAAM,kCAAkC;AAExD,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SAASC,UAAU,QAAQ,0BAA0B;AAErD,SAASC,UAAU,EAAEC,cAAc,QAAQ,iBAAiB;AAC5D,SAASC,oBAAoB,QAAQ,yBAAyB;AAE9D,OAAOC,IAAI,MAAM,wBAAwB;AA+BzC,MAAMC,eAAe,GAAGA,CACtBC,KAAiB,EACjBC,QAAkB,MACF;EAChBC,OAAO,EAAEF,KAAK,CAACG,MAAM,CAACC,QAAQ,EAAEJ,KAAK,EAAEK,KAAK,IAAIJ,QAAQ,CAACC,OAAO,IAAI;AACtE,CAAC,CAAC;AAEF,MAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEX,cAAc;EAC1BY,QAAQ,EAAEb,UAAU;EACpBE;AACF,CAAC;AAED,MAAMY,kBAAkB,GAAGlB,OAAO,CAChCQ,eAAe,EACfO,kBACF,CAAC;AAED,MAAMI,kBAAsC,GAAGlB,SAAS,CACtD,MAAM,EACN,CAAC;EAAEmB,IAAI;EAAEP;AAAS,CAAC,KAAK;EACtB,MAAMQ,QAAQ,GAAGD,IAAI,IAAI,IAAIb,IAAI,CAAC,GAAGM,QAAQ,CAACS,QAAQ,GAAGT,QAAQ,CAACU,MAAM,EAAE,CAAC;EAE3E,IAAIpB,UAAU,CAAC,oBAAoB,CAAC,EAAE;IACpC,OAAOkB,QAAQ;EACjB;EAEA,OAAOA,QAAQ,CAACG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC;AACjD,CAAC,EACD;EAAEC,QAAQ,EAAE,MAAM;EAAEC,MAAM,EAAExB,YAAY,CAACyB;AAAK,CAChD,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,WAEmB,GAAG7B,OAAO,CACxCoB,kBAAkB,EAClBD,kBACF,CAAC","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useAttributeSet' or 'useFormNavigation' instead
|
|
16
17
|
*/
|
|
17
18
|
export const connectFormAttributeSet = connect(null, mapDispatchToProps);
|
|
18
19
|
//# sourceMappingURL=FormAttributeSet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormAttributeSet.js","names":["connect","updateFormAttribute","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","autoupdate","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateFormAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateFormAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n autoupdate?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions,\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateFormAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps,\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit ?? false,\n autosave: ownProps.autosave ?? false,\n autoupdate: ownProps.autoupdate ?? false,\n },\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options,\n ),\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _,\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SACEC,yBAAyB,EACzBC,4BAA4B,EAC5BC,4BAA4B,QACvB,uCAAuC;AAqC9C,MAAMC,kBAAkB,GAAGA,CACzBC,QAAkB,EAClBC,QAAkB,MACC;EACnBC,iBAAiB,EAAEA,CACjBC,SAAwB,EACxBC,KAAa,EACbC,OAA0B,GAAG;IAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAU,IAAI,KAAK;IACxCC,QAAQ,EAAEN,QAAQ,CAACM,QAAQ,IAAI,KAAK;IACpCC,UAAU,EAAEP,QAAQ,CAACO,UAAU,IAAI;EACrC,CAAC,KAEDR,QAAQ,CACNL,mBAAmB,CACjBM,QAAQ,CAACQ,IAAI,EACbR,QAAQ,CAACS,MAAM,EACfP,SAAS,EACTC,KAAK,EACLC,OACF,CACF,CAAC;EACHM,sBAAsB,EAAEA,CAAA,KACtBX,QAAQ,CAACJ,yBAAyB,CAACK,QAAQ,CAACQ,IAAI,CAAC,CAAC;EACpDG,yBAAyB,EAAGC,UAA2B,IACrDb,QAAQ,CAACH,4BAA4B,CAACI,QAAQ,CAACQ,IAAI,EAAEI,UAAU,CAAC,CAAC;EACnEC,yBAAyB,EAAGD,UAA2B,IACrDb,QAAQ,CAACF,4BAA4B,CAACG,QAAQ,CAACQ,IAAI,EAAEI,UAAU,CAAC;AACpE,CAAC,CAAC;;AAEF;AACA;AACA,OAAO,MAAME,uBAA2C,GAAGrB,OAAO,CAOhE,IAAI,EAAEK,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"FormAttributeSet.js","names":["connect","updateFormAttribute","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","autoupdate","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateFormAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateFormAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n autoupdate?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions,\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateFormAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateFormAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps,\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit ?? false,\n autosave: ownProps.autosave ?? false,\n autoupdate: ownProps.autoupdate ?? false,\n },\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options,\n ),\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useAttributeSet' or 'useFormNavigation' instead\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _,\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SACEC,yBAAyB,EACzBC,4BAA4B,EAC5BC,4BAA4B,QACvB,uCAAuC;AAqC9C,MAAMC,kBAAkB,GAAGA,CACzBC,QAAkB,EAClBC,QAAkB,MACC;EACnBC,iBAAiB,EAAEA,CACjBC,SAAwB,EACxBC,KAAa,EACbC,OAA0B,GAAG;IAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAU,IAAI,KAAK;IACxCC,QAAQ,EAAEN,QAAQ,CAACM,QAAQ,IAAI,KAAK;IACpCC,UAAU,EAAEP,QAAQ,CAACO,UAAU,IAAI;EACrC,CAAC,KAEDR,QAAQ,CACNL,mBAAmB,CACjBM,QAAQ,CAACQ,IAAI,EACbR,QAAQ,CAACS,MAAM,EACfP,SAAS,EACTC,KAAK,EACLC,OACF,CACF,CAAC;EACHM,sBAAsB,EAAEA,CAAA,KACtBX,QAAQ,CAACJ,yBAAyB,CAACK,QAAQ,CAACQ,IAAI,CAAC,CAAC;EACpDG,yBAAyB,EAAGC,UAA2B,IACrDb,QAAQ,CAACH,4BAA4B,CAACI,QAAQ,CAACQ,IAAI,EAAEI,UAAU,CAAC,CAAC;EACnEC,yBAAyB,EAAGD,UAA2B,IACrDb,QAAQ,CAACF,4BAA4B,CAACG,QAAQ,CAACQ,IAAI,EAAEI,UAAU,CAAC;AACpE,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAME,uBAA2C,GAAGrB,OAAO,CAOhE,IAAI,EAAEK,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import modularui from "../_modularui/ModularUIConnector";
|
|
2
2
|
import ListDetailModel from "../../models/list/ListDetailModel";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useListDetail' instead
|
|
4
5
|
*/
|
|
5
6
|
export const connectListDetail = modularui("ListDetail", ({
|
|
6
7
|
href
|
|
@@ -5,6 +5,7 @@ import ListDetailModel from "../../models/list/ListDetailModel";
|
|
|
5
5
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useListDetail' instead
|
|
8
9
|
*/
|
|
9
10
|
export const connectListDetail: ModularUIConnector = modularui(
|
|
10
11
|
"ListDetail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListDetail.js","names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AACxD,OAAOC,eAAe,MAAM,mCAAmC;AAI/D;AACA;AACA,OAAO,MAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAAY,EACZ,CAAC;EAAEG;AAAK,CAAC,KAAKA,IAAI,EAClB;EACEC,QAAQ,EAAE,QAAQ;EAClBC,WAAW,EAAEJ;AACf,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ListDetail.js","names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useListDetail' instead\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AACxD,OAAOC,eAAe,MAAM,mCAAmC;AAI/D;AACA;AACA;AACA,OAAO,MAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAAY,EACZ,CAAC;EAAEG;AAAK,CAAC,KAAKA,IAAI,EAClB;EACEC,QAAQ,EAAE,QAAQ;EAClBC,WAAW,EAAEJ;AACf,CACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","names":["connect","showModal","closeModal","mapStateToProps","state","_context","visibleModal","_findInstanceProperty","modals","call","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,SAAS,EAAEC,UAAU,QAAQ,mBAAmB;AAoBzD,MAAMC,eAAe,GAAIC,KAAiB,IAAiB;EAAA,IAAAC,QAAA;EACzD,MAAMC,YAAY,GAAGC,qBAAA,CAAAF,QAAA,GAAAD,KAAK,CAACI,MAAM,CAACA,MAAM,EAAAC,IAAA,CAAAJ,QAAA,EAAOK,KAAK,IAAKA,KAAK,CAACC,OAAO,CAAC;EAEvE,OAAO;IACLC,eAAe,EAAEN,YAAY,GAAGA,YAAY,CAACO,GAAG,GAAG,IAAI;IACvDC,gBAAgB,EAAER,YAAY,GAAGA,YAAY,CAACS,IAAI,GAAG;EACvD,CAAC;AACH,CAAC;AAED,MAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEhB,SAAS;EACtBiB,YAAY,EAAEhB;AAChB,CAAC;;AAED;AACA;AACA,OAAO,MAAMiB,YAAgC,GAAGnB,OAAO,CAOrDG,eAAe,EAAEa,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Modal.js","names":["connect","showModal","closeModal","mapStateToProps","state","_context","visibleModal","_findInstanceProperty","modals","call","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useModal' instead\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,SAAS,EAAEC,UAAU,QAAQ,mBAAmB;AAoBzD,MAAMC,eAAe,GAAIC,KAAiB,IAAiB;EAAA,IAAAC,QAAA;EACzD,MAAMC,YAAY,GAAGC,qBAAA,CAAAF,QAAA,GAAAD,KAAK,CAACI,MAAM,CAACA,MAAM,EAAAC,IAAA,CAAAJ,QAAA,EAAOK,KAAK,IAAKA,KAAK,CAACC,OAAO,CAAC;EAEvE,OAAO;IACLC,eAAe,EAAEN,YAAY,GAAGA,YAAY,CAACO,GAAG,GAAG,IAAI;IACvDC,gBAAgB,EAAER,YAAY,GAAGA,YAAY,CAACS,IAAI,GAAG;EACvD,CAAC;AACH,CAAC;AAED,MAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEhB,SAAS;EACtBiB,YAAY,EAAEhB;AAChB,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMiB,YAAgC,GAAGnB,OAAO,CAOrDG,eAAe,EAAEa,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useModelCatalog' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectModelCatalog: ModularUIConnector = modularui(
|
|
9
10
|
"ModelCatalog",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelCatalog.js","names":["modularui","connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAAc,EACd,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ModelCatalog.js","names":["modularui","connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useModelCatalog' instead\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAAc,EACd,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ const mapDispatchToProps = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useNotification' instead
|
|
14
15
|
*/
|
|
15
16
|
export const connectNotification = connect(mapStateToProps, mapDispatchToProps);
|
|
16
17
|
//# sourceMappingURL=Notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,mBAAmB,QAAQ,yBAAyB;AAuB7D,MAAMC,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,WAAW,EAAED,KAAK,CAACE,YAAY,CAACD,WAAW;EAC3CE,OAAO,EAAEH,KAAK,CAACE,YAAY,CAACC,OAAO;EACnCC,KAAK,EAAEJ,KAAK,CAACE,YAAY,CAACE,KAAK;EAC/BC,MAAM,EAAEL,KAAK,CAACE,YAAY,CAACG;AAC7B,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAET;AACb,CAAC;;AAED;AACA;AACA,OAAO,MAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAAe,EAAEO,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useNotification' instead\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,mBAAmB,QAAQ,yBAAyB;AAuB7D,MAAMC,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,WAAW,EAAED,KAAK,CAACE,YAAY,CAACD,WAAW;EAC3CE,OAAO,EAAEH,KAAK,CAACE,YAAY,CAACC,OAAO;EACnCC,KAAK,EAAEJ,KAAK,CAACE,YAAY,CAACE,KAAK;EAC/BC,MAAM,EAAEL,KAAK,CAACE,YAAY,CAACG;AAC7B,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAET;AACb,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAAe,EAAEO,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import modularui from "../_modularui/ModularUIConnector";
|
|
2
2
|
import Href from "../../models/href/Href";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'usePanel' instead
|
|
4
5
|
*/
|
|
5
6
|
export const connectPanel = modularui("PanelRenderer", ({
|
|
6
7
|
href,
|
|
@@ -5,6 +5,7 @@ import Href from "../../models/href/Href";
|
|
|
5
5
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'usePanel' instead
|
|
8
9
|
*/
|
|
9
10
|
export const connectPanel: ModularUIConnector = modularui(
|
|
10
11
|
"PanelRenderer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelRenderer.js","names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\",\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AACxD,OAAOC,IAAI,MAAM,wBAAwB;AAIzC;AACA;AACA,OAAO,MAAMC,YAAgC,GAAGF,SAAS,CACvD,eAAe,EACf,CAAC;EAAEG,IAAI;EAAEC,KAAK;EAAEC,WAAW,GAAG;AAAG,CAAC,KAAK;EACrC,IAAI,CAACF,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,MAAM,IAAIE,KAAK,CACb,8DACF,CAAC;EACH;EAEA,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIF,IAAI,CAACE,IAAI,CAAC,GAAG,IAAIF,IAAI,CAACG,KAAK,CAACI,GAAG,CAAC;EAE7D,IAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAO,EAAE;IAC1BF,SAAS,CAACG,uBAAuB,CAACL,WAAW,CAAC;EAChD;EAEA,OAAOE,SAAS;AAClB,CAAC,EACD;EACEI,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"PanelRenderer.js","names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'usePanel' instead\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\",\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AACxD,OAAOC,IAAI,MAAM,wBAAwB;AAIzC;AACA;AACA;AACA,OAAO,MAAMC,YAAgC,GAAGF,SAAS,CACvD,eAAe,EACf,CAAC;EAAEG,IAAI;EAAEC,KAAK;EAAEC,WAAW,GAAG;AAAG,CAAC,KAAK;EACrC,IAAI,CAACF,IAAI,IAAI,CAACC,KAAK,EAAE;IACnB,MAAM,IAAIE,KAAK,CACb,8DACF,CAAC;EACH;EAEA,MAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIF,IAAI,CAACE,IAAI,CAAC,GAAG,IAAIF,IAAI,CAACG,KAAK,CAACI,GAAG,CAAC;EAE7D,IAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAO,EAAE;IAC1BF,SAAS,CAACG,uBAAuB,CAACL,WAAW,CAAC;EAChD;EAEA,OAAOE,SAAS;AAClB,CAAC,EACD;EACEI,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,8 @@ const getPreferences = (preferences, preferenceName) => {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Injects a preference by name into a react component
|
|
15
|
+
*
|
|
16
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'usePreference' instead
|
|
15
17
|
*/
|
|
16
18
|
export const connectPreferences = (WrappedComponent, preferenceName) => {
|
|
17
19
|
/**
|
|
@@ -37,6 +37,8 @@ const getPreferences = (
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Injects a preference by name into a react component
|
|
40
|
+
*
|
|
41
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'usePreference' instead
|
|
40
42
|
*/
|
|
41
43
|
export const connectPreferences = (
|
|
42
44
|
WrappedComponent: AbstractComponent<any>,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preferences.js","names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue, PreferencesState } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (\n preferences: PreferencesState,\n preferenceName: string | Array<string>,\n) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>,\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent,\n );\n};\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAiBrC;AACA;AACA,MAAMC,cAAc,GAAGA,CACrBC,WAA6B,EAC7BC,cAAsC,KACnC;EACH,MAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAO,CAACH,cAAc,CAAC,GACtDA,cAAc,GACd,CAACA,cAAc,CAAC;EAEpB,MAAMI,KAAyB,GAAG,CAAC,CAAC;EAEpCH,oBAAoB,CAACI,OAAO,CAAEC,QAAQ,IAAK;IACzCF,KAAK,CAACE,QAAQ,CAAC,GAAGP,WAAW,CAACO,QAAQ,CAAC;EACzC,CAAC,CAAC;EAEF,OAAOF,KAAK;AACd,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMG,kBAAkB,GAAGA,CAChCC,gBAAwC,EACxCR,cAAsC,KACf;EACvB;AACF;EACE,MAAMS,eAAe,GAAIC,KAAiB,IACxCZ,cAAc,CAACY,KAAK,CAACX,WAAW,EAAEC,cAAc,CAAC;EAEnD,OAAOH,OAAO,CAA8BY,eAAe,CAAC,CAC1DD,gBACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Preferences.js","names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue, PreferencesState } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (\n preferences: PreferencesState,\n preferenceName: string | Array<string>,\n) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n *\n * @deprecated - will be removed in the future, use the equivalent hook 'usePreference' instead\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>,\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent,\n );\n};\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAiBrC;AACA;AACA,MAAMC,cAAc,GAAGA,CACrBC,WAA6B,EAC7BC,cAAsC,KACnC;EACH,MAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAO,CAACH,cAAc,CAAC,GACtDA,cAAc,GACd,CAACA,cAAc,CAAC;EAEpB,MAAMI,KAAyB,GAAG,CAAC,CAAC;EAEpCH,oBAAoB,CAACI,OAAO,CAAEC,QAAQ,IAAK;IACzCF,KAAK,CAACE,QAAQ,CAAC,GAAGP,WAAW,CAACO,QAAQ,CAAC;EACzC,CAAC,CAAC;EAEF,OAAOF,KAAK;AACd,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,kBAAkB,GAAGA,CAChCC,gBAAwC,EACxCR,cAAsC,KACf;EACvB;AACF;EACE,MAAMS,eAAe,GAAIC,KAAiB,IACxCZ,cAAc,CAACY,KAAK,CAACX,WAAW,EAAEC,cAAc,CAAC;EAEnD,OAAOH,OAAO,CAA8BY,eAAe,CAAC,CAC1DD,gBACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _,\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AACrC,SAASC,cAAc,EAAEC,aAAa,QAAQ,8BAA8B;AAC5E,SAASC,WAAW,QAAQ,kBAAkB;AAgB9C,MAAMC,kBAAiC,GAAG;EACxCC,eAAe,EAAEH,aAAa;EAC9BI,gBAAgB,EAAEL,cAAc;EAChCM,OAAO,EAAEJ;AACX,CAAC;;AAED;AACA;AACA,OAAO,MAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAAI,EAAEI,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Progress.js","names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useProgressIndicator' instead\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _,\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AACrC,SAASC,cAAc,EAAEC,aAAa,QAAQ,8BAA8B;AAC5E,SAASC,WAAW,QAAQ,kBAAkB;AAgB9C,MAAMC,kBAAiC,GAAG;EACxCC,eAAe,EAAEH,aAAa;EAC9BI,gBAAgB,EAAEL,cAAc;EAChCM,OAAO,EAAEJ;AACX,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAAI,EAAEI,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ const mapStateToProps = state => ({
|
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useProgressIndicatorState' instead
|
|
11
12
|
*/
|
|
12
13
|
export const connectProgressIndicator = connect(mapStateToProps);
|
|
13
14
|
//# sourceMappingURL=ProgressIndicator.js.map
|
|
@@ -24,6 +24,7 @@ const mapStateToProps = (state: ReduxState) => ({
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useProgressIndicatorState' instead
|
|
27
28
|
*/
|
|
28
29
|
export const connectProgressIndicator: ComponentType<any> = connect<
|
|
29
30
|
Props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressIndicator.js","names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void,\n>(mapStateToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAgBrC;AACA;AACA,MAAMC,eAAe,GAAIC,KAAiB,KAAM;EAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAiB,CAACD,KAAK;EACpCE,SAAS,EAAEH,KAAK,CAACE,iBAAiB,CAACC,SAAS;EAC5CC,eAAe,EAAEJ,KAAK,CAACE,iBAAiB,CAACE;AAC3C,CAAC,CAAC;;AAEF;AACA;AACA,OAAO,MAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAAe,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ProgressIndicator.js","names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useProgressIndicatorState' instead\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void,\n>(mapStateToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAgBrC;AACA;AACA,MAAMC,eAAe,GAAIC,KAAiB,KAAM;EAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAiB,CAACD,KAAK;EACpCE,SAAS,EAAEH,KAAK,CAACE,iBAAiB,CAACC,SAAS;EAC5CC,eAAe,EAAEJ,KAAK,CAACE,iBAAiB,CAACE;AAC3C,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAAe,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickSearch.js","names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport { push } from \"../_router/RouterActions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>,\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n }),\n);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,OAAO,QAAQ,aAAa;AAErC,OAAOC,SAAS,MAAM,kCAAkC;AACxD,SAASC,IAAI,QAAQ,0BAA0B;AAK/C,OAAOC,IAAI,MAAM,wBAAwB;AAYzC,MAAMC,kBAAiC,GAAG;EACxCF;AACF,CAAC;;AAED;AACA;AACA,OAAO,MAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAAI,EAAEI,kBAAkB,CAAC,EAC9DH,SAAS,CAAC,aAAa,EAAE,CAAC;EAAEK;AAAK,CAAC,KAAKA,IAAI,EAAE;EAC3CC,QAAQ,EAAE;AACZ,CAAC,CACH,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"QuickSearch.js","names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/ModularUIConnector\";\nimport { push } from \"../_router/RouterActions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useQuicksearch' instead\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>,\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n }),\n);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,OAAO,QAAQ,aAAa;AAErC,OAAOC,SAAS,MAAM,kCAAkC;AACxD,SAASC,IAAI,QAAQ,0BAA0B;AAK/C,OAAOC,IAAI,MAAM,wBAAwB;AAYzC,MAAMC,kBAAiC,GAAG;EACxCF;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAAI,EAAEI,kBAAkB,CAAC,EAC9DH,SAAS,CAAC,aAAa,EAAE,CAAC;EAAEK;AAAK,CAAC,KAAKA,IAAI,EAAE;EAC3CC,QAAQ,EAAE;AACZ,CAAC,CACH,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.js","names":["connect","login","getApplication","mapStateToProps","state","application","isAuthenticated","isLoggedIn","errorMessage","auth","error","mapDispatchToProps","onSubmit","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/ModularUISelectors\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated: application?.isLoggedIn ?? false,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,KAAK,QAAQ,mBAAmB;AAEzC,SAASC,cAAc,QAAQ,kCAAkC;AAmBjE,MAAMC,eAAe,GAAIC,KAAiB,IAAiB;EACzD,MAAMC,WAAW,GAAGH,cAAc,CAACE,KAAK,CAAC;EAEzC,OAAO;IACLE,eAAe,EAAED,WAAW,EAAEE,UAAU,IAAI,KAAK;IACjDC,YAAY,EAAEJ,KAAK,CAACK,IAAI,CAACC;EAC3B,CAAC;AACH,CAAC;AAED,MAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEX;AACZ,CAAC;;AAED;AACA;AACA,OAAO,MAAMY,aAAiC,GAAGb,OAAO,CAOtDG,eAAe,EAAEQ,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"SignIn.js","names":["connect","login","getApplication","mapStateToProps","state","application","isAuthenticated","isLoggedIn","errorMessage","auth","error","mapDispatchToProps","onSubmit","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/ModularUISelectors\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated: application?.isLoggedIn ?? false,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useLogin' instead\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,KAAK,QAAQ,mBAAmB;AAEzC,SAASC,cAAc,QAAQ,kCAAkC;AAmBjE,MAAMC,eAAe,GAAIC,KAAiB,IAAiB;EACzD,MAAMC,WAAW,GAAGH,cAAc,CAACE,KAAK,CAAC;EAEzC,OAAO;IACLE,eAAe,EAAED,WAAW,EAAEE,UAAU,IAAI,KAAK;IACjDC,YAAY,EAAEJ,KAAK,CAACK,IAAI,CAACC;EAC3B,CAAC;AACH,CAAC;AAED,MAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEX;AACZ,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMY,aAAiC,GAAGb,OAAO,CAOtDG,eAAe,EAAEQ,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -27,6 +27,7 @@ const mapStateToProps = (state: ReduxState): StateProps => ({
|
|
|
27
27
|
const mapDispatchToProps = { doLogout: logout };
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useLogout' instead
|
|
30
31
|
*/
|
|
31
32
|
export const connectSignOut: ComponentType<any> = connect<
|
|
32
33
|
Props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignOut.js","names":["connect","logout","getApplication","mapStateToProps","state","isAuthenticated","isLoggedIn","mapDispatchToProps","doLogout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\nimport { getApplication } from \"../_modularui\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n isAuthenticated: getApplication(state)?.isLoggedIn ?? false,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,MAAM,QAAQ,oBAAoB;AAI3C,SAASC,cAAc,QAAQ,eAAe;AAe9C,MAAMC,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,eAAe,EAAEH,cAAc,CAACE,KAAK,CAAC,EAAEE,UAAU,IAAI;AACxD,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EAAEC,QAAQ,EAAEP;AAAO,CAAC;;AAE/C;AACA;AACA,OAAO,MAAMQ,cAAkC,GAAGT,OAAO,CAOvDG,eAAe,EAAEI,kBAAkB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"SignOut.js","names":["connect","logout","getApplication","mapStateToProps","state","isAuthenticated","isLoggedIn","mapDispatchToProps","doLogout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\nimport { getApplication } from \"../_modularui\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n isAuthenticated: getApplication(state)?.isLoggedIn ?? false,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useLogout' instead\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _,\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,aAAa;AAErC,SAASC,MAAM,QAAQ,oBAAoB;AAI3C,SAASC,cAAc,QAAQ,eAAe;AAe9C,MAAMC,eAAe,GAAIC,KAAiB,KAAkB;EAC1DC,eAAe,EAAEH,cAAc,CAACE,KAAK,CAAC,EAAEE,UAAU,IAAI;AACxD,CAAC,CAAC;AAEF,MAAMC,kBAAkB,GAAG;EAAEC,QAAQ,EAAEP;AAAO,CAAC;;AAE/C;AACA;AACA;AACA,OAAO,MAAMQ,cAAkC,GAAGT,OAAO,CAOvDG,eAAe,EAAEI,kBAAkB,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import modularui from "../_modularui/ModularUIConnector";
|
|
|
4
4
|
import type { ModularUIConnector } from "../_modularui/types";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - will be removed in the future, use the equivalent hook 'useTab' instead
|
|
7
8
|
*/
|
|
8
9
|
export const connectTab: ModularUIConnector = modularui(
|
|
9
10
|
"Tab",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","names":["modularui","connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA,OAAO,MAAMC,UAA8B,GAAGD,SAAS,CACrD,KAAK,EACL,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Tab.js","names":["modularui","connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/ModularUIConnector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n * @deprecated - will be removed in the future, use the equivalent hook 'useTab' instead\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n },\n);\n"],"mappings":"AACA,OAAOA,SAAS,MAAM,kCAAkC;AAIxD;AACA;AACA;AACA,OAAO,MAAMC,UAA8B,GAAGD,SAAS,CACrD,KAAK,EACL,CAAC;EAAEE;AAAM,CAAC,KAAKA,KAAK,CAACC,GAAG,EACxB;EACEC,QAAQ,EAAE;AACZ,CACF,CAAC","ignoreList":[]}
|
package/lib/hooks/index.js
CHANGED
|
@@ -114,6 +114,17 @@ _Object$keys(_useModels).forEach(function (key) {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
|
+
var _useModelSelectors = require("./useModelSelectors");
|
|
118
|
+
_Object$keys(_useModelSelectors).forEach(function (key) {
|
|
119
|
+
if (key === "default" || key === "__esModule") return;
|
|
120
|
+
if (key in exports && exports[key] === _useModelSelectors[key]) return;
|
|
121
|
+
Object.defineProperty(exports, key, {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () {
|
|
124
|
+
return _useModelSelectors[key];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
117
128
|
var _useModularUI = require("./useModularUI");
|
|
118
129
|
_Object$keys(_useModularUI).forEach(function (key) {
|
|
119
130
|
if (key === "default" || key === "__esModule") return;
|