synapse-react-client 4.0.13 → 4.0.15-SWC-7835
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/dist/SWC.index.js +1 -1
- package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.d.ts.map +1 -1
- package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js +76 -45
- package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js.map +1 -1
- package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.d.ts.map +1 -1
- package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js +2 -2
- package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.d.ts.map +1 -1
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js +2 -2
- package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js.map +1 -1
- package/dist/components/DataGrid/utils/DataGridUtils.js +1 -1
- package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts +6 -0
- package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js +6 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearch.d.ts.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearch.js +28 -20
- package/dist/components/FullTextSearch/FullTextSearch.js.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearchUtils.d.ts.map +1 -1
- package/dist/components/FullTextSearch/FullTextSearchUtils.js +7 -2
- package/dist/components/FullTextSearch/FullTextSearchUtils.js.map +1 -1
- package/dist/components/GenericCard/BioregistryRules.d.ts.map +1 -1
- package/dist/components/GenericCard/BioregistryRules.js +9 -1
- package/dist/components/GenericCard/BioregistryRules.js.map +1 -1
- package/dist/components/Goals/Goals.Desktop.d.ts +3 -1
- package/dist/components/Goals/Goals.Desktop.d.ts.map +1 -1
- package/dist/components/Goals/Goals.Desktop.js +2 -3
- package/dist/components/Goals/Goals.Desktop.js.map +1 -1
- package/dist/components/Goals/Goals.d.ts +1 -0
- package/dist/components/Goals/Goals.d.ts.map +1 -1
- package/dist/components/Goals/Goals.js +33 -27
- package/dist/components/Goals/Goals.js.map +1 -1
- package/dist/components/Markdown/widget/MarkdownTableOfContents.d.ts.map +1 -1
- package/dist/components/Markdown/widget/MarkdownTableOfContents.js +15 -11
- package/dist/components/Markdown/widget/MarkdownTableOfContents.js.map +1 -1
- package/dist/components/QueryWrapper/useOnQueryDataChange.d.ts.map +1 -1
- package/dist/components/QueryWrapper/useOnQueryDataChange.js +19 -17
- package/dist/components/QueryWrapper/useOnQueryDataChange.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +2 -2
- package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +30 -30
- package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +1 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +4 -2
- package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
- package/dist/components/SynapseHomepageV2/WordPressNews.js +13 -36
- package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +1 -1
- package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.d.ts.map +1 -1
- package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js +14 -12
- package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js.map +1 -1
- package/dist/components/SynapseTable/SearchV2.d.ts +11 -0
- package/dist/components/SynapseTable/SearchV2.d.ts.map +1 -1
- package/dist/components/SynapseTable/SearchV2.js.map +1 -1
- package/dist/components/WordPress/WordPressLatestPostChip.css +1 -0
- package/dist/components/WordPress/WordPressLatestPostChip.d.ts +5 -0
- package/dist/components/WordPress/WordPressLatestPostChip.d.ts.map +1 -0
- package/dist/components/WordPress/WordPressLatestPostChip.js +29 -0
- package/dist/components/WordPress/WordPressLatestPostChip.js.map +1 -0
- package/dist/components/WordPress/WordPressLatestPostChip.module.js +9 -0
- package/dist/components/WordPress/WordPressLatestPostChip.module.js.map +1 -0
- package/dist/components/WordPress/WordPressLatestPostChip.module.scss +33 -0
- package/dist/components/WordPress/useWordPressCategories.d.ts +3 -0
- package/dist/components/WordPress/useWordPressCategories.d.ts.map +1 -0
- package/dist/components/WordPress/useWordPressCategories.js +19 -0
- package/dist/components/WordPress/useWordPressCategories.js.map +1 -0
- package/dist/components/WordPress/useWordPressPosts.d.ts +3 -0
- package/dist/components/WordPress/useWordPressPosts.d.ts.map +1 -0
- package/dist/components/WordPress/useWordPressPosts.js +23 -0
- package/dist/components/WordPress/useWordPressPosts.js.map +1 -0
- package/dist/features/curator/dashboard/components/CurationTaskCard.js +1 -1
- package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +6 -6
- package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js +24 -20
- package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts +2 -2
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js +30 -21
- package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.d.ts +1 -0
- package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/utils/constants.js +2 -2
- package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/hooks/useShowDesktop.d.ts.map +1 -1
- package/dist/utils/hooks/useShowDesktop.js +4 -9
- package/dist/utils/hooks/useShowDesktop.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShowDesktop.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useShowDesktop.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA;AAKxC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useShowDesktop.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useShowDesktop.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAA;AAKxC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,UAAU,CAAC,EAAE,mBAAmB,WAgBtE"}
|
|
@@ -2,16 +2,11 @@ import { useEffect as e, useState as t } from "react";
|
|
|
2
2
|
//#region src/utils/hooks/useShowDesktop.ts
|
|
3
3
|
var n = 768;
|
|
4
4
|
function r(r) {
|
|
5
|
-
let i = r ?? n, [a, o] = t(
|
|
5
|
+
let i = r ?? n, [a, o] = t(!0);
|
|
6
6
|
return e(() => {
|
|
7
|
-
let e = () =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return window.addEventListener("resize", e), () => {
|
|
12
|
-
window.removeEventListener("resize", e);
|
|
13
|
-
};
|
|
14
|
-
}), a;
|
|
7
|
+
let e = () => o(window.innerWidth > i);
|
|
8
|
+
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
9
|
+
}, [i]), a;
|
|
15
10
|
}
|
|
16
11
|
//#endregion
|
|
17
12
|
export { r as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useShowDesktop.js","names":[],"sources":["../../../src/utils/hooks/useShowDesktop.ts"],"sourcesContent":["import { useEffect, useState } from 'react'\nexport type UseShowDesktopProps = number\n\n// This should match $breakpoints.medium in _variables.scss\nconst MOBILE_VIEWPORT_MAX_WIDTH_PX = 768\n\nexport default function useShowDesktop(breakpoint?: UseShowDesktopProps) {\n const usedBreakpoint = breakpoint ?? MOBILE_VIEWPORT_MAX_WIDTH_PX\n
|
|
1
|
+
{"version":3,"file":"useShowDesktop.js","names":[],"sources":["../../../src/utils/hooks/useShowDesktop.ts"],"sourcesContent":["import { useEffect, useState } from 'react'\nexport type UseShowDesktopProps = number\n\n// This should match $breakpoints.medium in _variables.scss\nconst MOBILE_VIEWPORT_MAX_WIDTH_PX = 768\n\nexport default function useShowDesktop(breakpoint?: UseShowDesktopProps) {\n const usedBreakpoint = breakpoint ?? MOBILE_VIEWPORT_MAX_WIDTH_PX\n\n // Match SSR output on the first client render.\n // This will trigger a flash on mobile, but avoids hydration errors.\n // If the flash is unacceptable, use CSS media queries to conditionally style identical markup on the first render.\n const [showDesktop, setShowDesktop] = useState(true)\n\n useEffect(() => {\n const update = () => setShowDesktop(window.innerWidth > usedBreakpoint)\n update() // sync to the real viewport after hydration\n window.addEventListener('resize', update)\n return () => window.removeEventListener('resize', update)\n }, [usedBreakpoint])\n\n return showDesktop\n}\n"],"mappings":";;AAIA,IAAM,IAA+B;AAErC,SAAwB,EAAe,GAAkC;CACvE,IAAM,IAAiB,KAAc,GAK/B,CAAC,GAAa,KAAkB,EAAS,GAAK;AASpD,QAPA,QAAgB;EACd,IAAM,UAAe,EAAe,OAAO,aAAa,EAAe;AAGvE,SAFA,GAAQ,EACR,OAAO,iBAAiB,UAAU,EAAO,QAC5B,OAAO,oBAAoB,UAAU,EAAO;IACxD,CAAC,EAAe,CAAC,EAEb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synapse-react-client",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.15-SWC-7835",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
"xss": "^1.0.15",
|
|
119
119
|
"zod": "^3.24.4",
|
|
120
120
|
"@sage-bionetworks/markdown-it-container": "4.0.1",
|
|
121
|
-
"@sage-bionetworks/synapse-types": "0.0.6",
|
|
122
|
-
"@sage-bionetworks/synapse-client": "0.0.15",
|
|
123
121
|
"markdown-it-synapse": "2.0.0",
|
|
124
|
-
"
|
|
122
|
+
"@sage-bionetworks/synapse-types": "0.0.6",
|
|
123
|
+
"markdown-it-synapse-table": "1.0.8",
|
|
124
|
+
"@sage-bionetworks/synapse-client": "0.0.17"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"@sage-bionetworks/aridhia-client": "*",
|