synapse-react-client 4.0.13 → 4.0.15

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.
Files changed (98) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.d.ts.map +1 -1
  3. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js +76 -45
  4. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js.map +1 -1
  5. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.d.ts.map +1 -1
  6. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js +2 -2
  7. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js.map +1 -1
  8. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.d.ts.map +1 -1
  9. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js +2 -2
  10. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js.map +1 -1
  11. package/dist/components/DataGrid/utils/DataGridUtils.js +1 -1
  12. package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
  13. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts +6 -0
  14. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
  15. package/dist/components/EntityDownloadButton/EntityDownloadButton.js +6 -1
  16. package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
  17. package/dist/components/FullTextSearch/FullTextSearch.d.ts.map +1 -1
  18. package/dist/components/FullTextSearch/FullTextSearch.js +28 -20
  19. package/dist/components/FullTextSearch/FullTextSearch.js.map +1 -1
  20. package/dist/components/FullTextSearch/FullTextSearchUtils.d.ts.map +1 -1
  21. package/dist/components/FullTextSearch/FullTextSearchUtils.js +7 -2
  22. package/dist/components/FullTextSearch/FullTextSearchUtils.js.map +1 -1
  23. package/dist/components/GenericCard/BioregistryRules.d.ts.map +1 -1
  24. package/dist/components/GenericCard/BioregistryRules.js +9 -1
  25. package/dist/components/GenericCard/BioregistryRules.js.map +1 -1
  26. package/dist/components/Goals/Goals.Desktop.d.ts +3 -1
  27. package/dist/components/Goals/Goals.Desktop.d.ts.map +1 -1
  28. package/dist/components/Goals/Goals.Desktop.js +2 -3
  29. package/dist/components/Goals/Goals.Desktop.js.map +1 -1
  30. package/dist/components/Goals/Goals.d.ts +1 -0
  31. package/dist/components/Goals/Goals.d.ts.map +1 -1
  32. package/dist/components/Goals/Goals.js +33 -27
  33. package/dist/components/Goals/Goals.js.map +1 -1
  34. package/dist/components/Markdown/widget/MarkdownTableOfContents.d.ts.map +1 -1
  35. package/dist/components/Markdown/widget/MarkdownTableOfContents.js +15 -11
  36. package/dist/components/Markdown/widget/MarkdownTableOfContents.js.map +1 -1
  37. package/dist/components/QueryWrapper/useOnQueryDataChange.d.ts.map +1 -1
  38. package/dist/components/QueryWrapper/useOnQueryDataChange.js +19 -17
  39. package/dist/components/QueryWrapper/useOnQueryDataChange.js.map +1 -1
  40. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
  41. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +2 -2
  42. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
  43. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
  44. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +30 -30
  45. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
  46. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +1 -1
  47. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -1
  48. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +4 -2
  49. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -1
  50. package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
  51. package/dist/components/SynapseHomepageV2/WordPressNews.js +13 -36
  52. package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
  53. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.d.ts.map +1 -1
  54. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +1 -1
  55. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
  56. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.d.ts.map +1 -1
  57. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js +14 -12
  58. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js.map +1 -1
  59. package/dist/components/SynapseTable/SearchV2.d.ts +11 -0
  60. package/dist/components/SynapseTable/SearchV2.d.ts.map +1 -1
  61. package/dist/components/SynapseTable/SearchV2.js.map +1 -1
  62. package/dist/components/WordPress/WordPressLatestPostChip.css +1 -0
  63. package/dist/components/WordPress/WordPressLatestPostChip.d.ts +5 -0
  64. package/dist/components/WordPress/WordPressLatestPostChip.d.ts.map +1 -0
  65. package/dist/components/WordPress/WordPressLatestPostChip.js +29 -0
  66. package/dist/components/WordPress/WordPressLatestPostChip.js.map +1 -0
  67. package/dist/components/WordPress/WordPressLatestPostChip.module.js +9 -0
  68. package/dist/components/WordPress/WordPressLatestPostChip.module.js.map +1 -0
  69. package/dist/components/WordPress/WordPressLatestPostChip.module.scss +33 -0
  70. package/dist/components/WordPress/useWordPressCategories.d.ts +3 -0
  71. package/dist/components/WordPress/useWordPressCategories.d.ts.map +1 -0
  72. package/dist/components/WordPress/useWordPressCategories.js +19 -0
  73. package/dist/components/WordPress/useWordPressCategories.js.map +1 -0
  74. package/dist/components/WordPress/useWordPressPosts.d.ts +3 -0
  75. package/dist/components/WordPress/useWordPressPosts.d.ts.map +1 -0
  76. package/dist/components/WordPress/useWordPressPosts.js +23 -0
  77. package/dist/components/WordPress/useWordPressPosts.js.map +1 -0
  78. package/dist/features/curator/dashboard/components/CurationTaskCard.js +1 -1
  79. package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
  80. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts.map +1 -1
  81. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +6 -6
  82. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
  83. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.d.ts.map +1 -1
  84. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js +24 -20
  85. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js.map +1 -1
  86. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts +2 -2
  87. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts.map +1 -1
  88. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js +30 -21
  89. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js.map +1 -1
  90. package/dist/features/entity/metadata-task/utils/constants.d.ts +1 -0
  91. package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
  92. package/dist/features/entity/metadata-task/utils/constants.js +2 -2
  93. package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
  94. package/dist/tsconfig.build.tsbuildinfo +1 -1
  95. package/dist/utils/hooks/useShowDesktop.d.ts.map +1 -1
  96. package/dist/utils/hooks/useShowDesktop.js +4 -9
  97. package/dist/utils/hooks/useShowDesktop.js.map +1 -1
  98. 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,WAmBtE"}
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(() => typeof window < "u" ? window.innerWidth > i : !0);
5
+ let i = r ?? n, [a, o] = t(!0);
6
6
  return e(() => {
7
- let e = () => {
8
- let e = window.innerWidth > i;
9
- e !== a && o(e);
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 const [showDesktop, setShowDesktop] = useState(() =>\n typeof window !== 'undefined' ? window.innerWidth > usedBreakpoint : true,\n )\n useEffect(() => {\n const listener = () => {\n const updatedValue = window.innerWidth > usedBreakpoint\n if (updatedValue !== showDesktop) {\n setShowDesktop(updatedValue)\n }\n }\n window.addEventListener('resize', listener)\n return () => {\n window.removeEventListener('resize', listener)\n }\n })\n\n return showDesktop\n}\n"],"mappings":";;AAIA,IAAM,IAA+B;AAErC,SAAwB,EAAe,GAAkC;CACvE,IAAM,IAAiB,KAAc,GAC/B,CAAC,GAAa,KAAkB,QACpC,OAAO,SAAW,MAAc,OAAO,aAAa,IAAiB,GACtE;AAcD,QAbA,QAAgB;EACd,IAAM,UAAiB;GACrB,IAAM,IAAe,OAAO,aAAa;AACzC,GAAI,MAAiB,KACnB,EAAe,EAAa;;AAIhC,SADA,OAAO,iBAAiB,UAAU,EAAS,QAC9B;AACX,UAAO,oBAAoB,UAAU,EAAS;;GAEhD,EAEK"}
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.13",
3
+ "version": "4.0.15",
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
- "markdown-it-synapse-table": "1.0.8"
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": "*",