synapse-react-client 3.0.20 → 3.0.21
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/containers/ErrorPage.js +1 -1
- package/dist/containers/ErrorPage.js.map +1 -1
- package/dist/containers/Login.d.ts +1 -1
- package/dist/containers/Login.js +1 -1
- package/dist/containers/QueryWrapper.js +10 -11
- package/dist/containers/QueryWrapper.js.map +1 -1
- package/dist/containers/SynapseNavDrawer.js +1 -1
- package/dist/containers/SynapseNavDrawer.js.map +1 -1
- package/dist/containers/table/SynapseTable.js +1 -1
- package/dist/umd/synapse-react-client.development.js +416 -115
- package/dist/umd/synapse-react-client.development.js.map +2 -2
- package/dist/umd/synapse-react-client.production.min.js +83 -83
- package/dist/umd.index.d.ts +2 -1
- package/dist/umd.index.js +5 -1
- package/dist/umd.index.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/entity/useEntity.d.ts +5 -0
- package/dist/utils/hooks/SynapseAPI/entity/useGetQueryResultBundle.js +5 -2
- package/dist/utils/hooks/SynapseAPI/entity/useGetQueryResultBundle.js.map +1 -1
- package/package.json +2 -2
|
@@ -30583,13 +30583,272 @@ var SRC = (() => {
|
|
|
30583
30583
|
}
|
|
30584
30584
|
});
|
|
30585
30585
|
|
|
30586
|
+
// package.json
|
|
30587
|
+
var require_package = __commonJS({
|
|
30588
|
+
"package.json"(exports2, module2) {
|
|
30589
|
+
module2.exports = {
|
|
30590
|
+
name: "synapse-react-client",
|
|
30591
|
+
version: "3.0.21",
|
|
30592
|
+
private: false,
|
|
30593
|
+
main: "dist/index.js",
|
|
30594
|
+
types: "./dist/index.d.ts",
|
|
30595
|
+
module: "dist/index.js",
|
|
30596
|
+
homepage: "https://sage-bionetworks.github.io/Synapse-React-Client/",
|
|
30597
|
+
files: [
|
|
30598
|
+
"dist",
|
|
30599
|
+
"README.md"
|
|
30600
|
+
],
|
|
30601
|
+
repository: {
|
|
30602
|
+
type: "git",
|
|
30603
|
+
url: "https://github.com/Sage-Bionetworks/Synapse-React-Client"
|
|
30604
|
+
},
|
|
30605
|
+
dependencies: {
|
|
30606
|
+
"@apidevtools/json-schema-ref-parser": "^9.0.9",
|
|
30607
|
+
"@brainhubeu/react-carousel": "1.19.26",
|
|
30608
|
+
"@fortawesome/fontawesome-free": "^5.13.0",
|
|
30609
|
+
"@fortawesome/fontawesome-svg-core": "^1.2.4",
|
|
30610
|
+
"@fortawesome/free-brands-svg-icons": "^5.15.2",
|
|
30611
|
+
"@fortawesome/free-solid-svg-icons": "^5.3.1",
|
|
30612
|
+
"@fortawesome/react-fontawesome": "^0.1.3",
|
|
30613
|
+
"@material-ui/core": "^4.12.3",
|
|
30614
|
+
"@material-ui/icons": "^4.11.2",
|
|
30615
|
+
"@material-ui/lab": "^4.0.0-alpha.57",
|
|
30616
|
+
"@popperjs/core": "^2.10.2",
|
|
30617
|
+
"@rjsf/core": "^4.0.1",
|
|
30618
|
+
"@sage-bionetworks/react-base-table": "^1.12.3",
|
|
30619
|
+
"@sage-bionetworks/rjsf-core": "^3.1.4",
|
|
30620
|
+
"@types/ua-parser-js": "^0.7.36",
|
|
30621
|
+
"@upsetjs/react": "^1.6.2",
|
|
30622
|
+
"animate.css": "^4.1.1",
|
|
30623
|
+
bootstrap: "^4.6.1",
|
|
30624
|
+
classnames: "^2.3.1",
|
|
30625
|
+
"column-resizer": "^1.3.5",
|
|
30626
|
+
downshift: "^6.1.2",
|
|
30627
|
+
"gh-pages": "^3.2.3",
|
|
30628
|
+
immutable: "4.0.0-rc.15",
|
|
30629
|
+
"json-rules-engine": "^4.0.0",
|
|
30630
|
+
katex: "0.11.1",
|
|
30631
|
+
"lodash-es": ">=4.17.14",
|
|
30632
|
+
"markdown-it": "^12.3.2",
|
|
30633
|
+
"markdown-it-br": "^1.0.0",
|
|
30634
|
+
"markdown-it-center-text": "^1.0.4",
|
|
30635
|
+
"markdown-it-container": "^2.0.0",
|
|
30636
|
+
"markdown-it-emphasis-alt": "^1.0.8",
|
|
30637
|
+
"markdown-it-inline-comments": "^1.0.1",
|
|
30638
|
+
"markdown-it-strikethrough-alt": "^1.0.0",
|
|
30639
|
+
"markdown-it-sub-alt": "^1.0.0",
|
|
30640
|
+
"markdown-it-sup-alt": "^1.0.2",
|
|
30641
|
+
"markdown-it-synapse": "^1.1.8",
|
|
30642
|
+
"markdown-it-synapse-heading": "^1.0.1",
|
|
30643
|
+
"markdown-it-synapse-math": "^3.0.4",
|
|
30644
|
+
"markdown-it-synapse-table": "^1.0.6",
|
|
30645
|
+
moment: "^2.24.0",
|
|
30646
|
+
"moment-timezone": "^0.5.34",
|
|
30647
|
+
"plotly.js-basic-dist": "^2.11.1",
|
|
30648
|
+
pluralize: "^8.0.0",
|
|
30649
|
+
raf: "^3.4.1",
|
|
30650
|
+
"react-app-polyfill": "^3.0.0",
|
|
30651
|
+
"react-bootstrap": "^1.5.2",
|
|
30652
|
+
"react-compound-slider": "^2.5.0",
|
|
30653
|
+
"react-datetime": "^3.0.4",
|
|
30654
|
+
"react-error-boundary": "^3.1.1",
|
|
30655
|
+
"react-hot-toast": "^2.1.0",
|
|
30656
|
+
"react-intersection-observer": "^8.31.0",
|
|
30657
|
+
"react-mailchimp-subscribe": "^2.1.0",
|
|
30658
|
+
"react-measure": "^2.1.2",
|
|
30659
|
+
"react-plotly.js": "^2.5.1",
|
|
30660
|
+
"react-plotlyjs-ts": "^2.2.1",
|
|
30661
|
+
"react-popper": "^2.2.5",
|
|
30662
|
+
"react-query": "3.39.1",
|
|
30663
|
+
"react-reflex": "^4.0.0",
|
|
30664
|
+
"react-router-dom": "^5.3.3",
|
|
30665
|
+
"react-select": "^4.3.1",
|
|
30666
|
+
"react-sizeme": "^2.6.12",
|
|
30667
|
+
"react-switch": "^5.0.1",
|
|
30668
|
+
"react-test-renderer": "16.14.0",
|
|
30669
|
+
"react-tooltip": "^4.2.21",
|
|
30670
|
+
"react-transition-group": "4.4.2",
|
|
30671
|
+
"react-virtualized-auto-sizer": "^1.0.6",
|
|
30672
|
+
"react-vtree": "3.0.0-beta.3",
|
|
30673
|
+
"react-window": "^1.8.6",
|
|
30674
|
+
"regenerator-runtime": "^0.13.2",
|
|
30675
|
+
"rss-parser": "^3.7.2",
|
|
30676
|
+
"sanitize-html": "^2.7.0",
|
|
30677
|
+
sass: "^1.30.0",
|
|
30678
|
+
shortid: "^2.2.16",
|
|
30679
|
+
"spark-md5": "^3.0.0",
|
|
30680
|
+
"sql-parser": "^0.5.0",
|
|
30681
|
+
tslib: "^2.3.1",
|
|
30682
|
+
"ua-parser-js": "^1.0.2",
|
|
30683
|
+
"universal-cookie": "^4.0.3",
|
|
30684
|
+
"use-deep-compare-effect": "^1.3.1"
|
|
30685
|
+
},
|
|
30686
|
+
peerDependencies: {
|
|
30687
|
+
react: "^16.14.0",
|
|
30688
|
+
"react-dom": "^16.14.0"
|
|
30689
|
+
},
|
|
30690
|
+
devDependencies: {
|
|
30691
|
+
"@babel/cli": "^7.14.5",
|
|
30692
|
+
"@babel/core": "^7.14.6",
|
|
30693
|
+
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
30694
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.14.7",
|
|
30695
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
30696
|
+
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
30697
|
+
"@babel/preset-env": "^7.14.7",
|
|
30698
|
+
"@babel/preset-react": "^7.14.5",
|
|
30699
|
+
"@babel/preset-typescript": "^7.14.5",
|
|
30700
|
+
"@babel/runtime": "^7.14.6",
|
|
30701
|
+
"@babel/types": "^7.14.5",
|
|
30702
|
+
"@craco/craco": "^6.4.3",
|
|
30703
|
+
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",
|
|
30704
|
+
"@sage-bionetworks/esbuild-plugin-svgr": "^0.0.4",
|
|
30705
|
+
"@testing-library/dom": "^8.1.0",
|
|
30706
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
30707
|
+
"@testing-library/react": "^12.0.0",
|
|
30708
|
+
"@testing-library/react-hooks": "^7.0.1",
|
|
30709
|
+
"@testing-library/user-event": "13.0.16",
|
|
30710
|
+
"@types/brainhubeu__react-carousel": "1.15.0",
|
|
30711
|
+
"@types/enzyme": "^3.10.8",
|
|
30712
|
+
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
30713
|
+
"@types/jest": "^27.4.1",
|
|
30714
|
+
"@types/jest-when": "^3.5.0",
|
|
30715
|
+
"@types/jquery": "^3.5.14",
|
|
30716
|
+
"@types/katex": "^0.10.2",
|
|
30717
|
+
"@types/lodash-es": "4.17.3",
|
|
30718
|
+
"@types/markdown-it": "^12.0.1",
|
|
30719
|
+
"@types/node": "^14.14.31",
|
|
30720
|
+
"@types/plotly.js": "^1.54.20",
|
|
30721
|
+
"@types/plotly.js-basic-dist": "^1.54.0",
|
|
30722
|
+
"@types/pluralize": "^0.0.29",
|
|
30723
|
+
"@types/react": "^16.14.23",
|
|
30724
|
+
"@types/react-addons-css-transition-group": "^15.0.5",
|
|
30725
|
+
"@types/react-dom": "^16.9.14",
|
|
30726
|
+
"@types/react-mailchimp-subscribe": "^2.0.2",
|
|
30727
|
+
"@types/react-measure": "^2.0.4",
|
|
30728
|
+
"@types/react-plotly.js": "^2.2.4",
|
|
30729
|
+
"@types/react-router-dom": "^5.3.3",
|
|
30730
|
+
"@types/react-select": "^4.0.17",
|
|
30731
|
+
"@types/react-transition-group": "^2.0.16",
|
|
30732
|
+
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
30733
|
+
"@types/react-window": "^1.8.5",
|
|
30734
|
+
"@types/sanitize-html": "^2.3.2",
|
|
30735
|
+
"@types/shortid": "^0.0.29",
|
|
30736
|
+
"@types/sinon": "^7.0.2",
|
|
30737
|
+
"@types/spark-md5": "^3.0.1",
|
|
30738
|
+
"@types/xml2js": "^0.4.4",
|
|
30739
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
30740
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
30741
|
+
"browserify-fs": "^1.0.0",
|
|
30742
|
+
buffer: "^6.0.3",
|
|
30743
|
+
"core-js": "^3.1.4",
|
|
30744
|
+
enzyme: "^3.11.0",
|
|
30745
|
+
"enzyme-adapter-react-16": "^1.15.2",
|
|
30746
|
+
esbuild: "^0.14.2",
|
|
30747
|
+
"esbuild-plugin-globals": "^0.1.1",
|
|
30748
|
+
"esbuild-plugin-node-polyfills": "^1.0.2",
|
|
30749
|
+
"esbuild-sass-plugin": "^1.8.0",
|
|
30750
|
+
"eslint-plugin-jest": "^26.1.1",
|
|
30751
|
+
"eslint-plugin-jest-dom": "^4.0.1",
|
|
30752
|
+
"eslint-plugin-react": "latest",
|
|
30753
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
30754
|
+
"eslint-plugin-testing-library": "^5.0.6",
|
|
30755
|
+
"https-browserify": "^1.0.0",
|
|
30756
|
+
husky: ">=6",
|
|
30757
|
+
"identity-obj-proxy": "^3.0.0",
|
|
30758
|
+
"jest-mock-promise": "^1.1.10",
|
|
30759
|
+
"jest-when": "^3.5.1",
|
|
30760
|
+
"lint-staged": ">=10",
|
|
30761
|
+
msw: "^0.38.2",
|
|
30762
|
+
npm: "^6.9.0",
|
|
30763
|
+
"npm-run-all": "^4.1.3",
|
|
30764
|
+
"path-browserify": "^1.0.1",
|
|
30765
|
+
"postcss-normalize": "^10.0.1",
|
|
30766
|
+
prettier: "^2.6.2",
|
|
30767
|
+
process: "^0.11.10",
|
|
30768
|
+
"react-scripts": "^5.0.0",
|
|
30769
|
+
"react-select-event": "^5.3.0",
|
|
30770
|
+
"react-styleguidist": "^11.2.0",
|
|
30771
|
+
sinon: "^7.2.2",
|
|
30772
|
+
"stream-browserify": "^3.0.0",
|
|
30773
|
+
"stream-http": "^3.2.0",
|
|
30774
|
+
"timers-browserify": "^2.0.12",
|
|
30775
|
+
typescript: "4.4.3",
|
|
30776
|
+
yarn: "^1.22.17"
|
|
30777
|
+
},
|
|
30778
|
+
jest: {
|
|
30779
|
+
moduleNameMapper: {
|
|
30780
|
+
"\\.(css|less)$": "identity-obj-proxy"
|
|
30781
|
+
},
|
|
30782
|
+
transformIgnorePatterns: [
|
|
30783
|
+
"<rootDir>/node_modules/(?!(lodash-es|jest*)/)"
|
|
30784
|
+
]
|
|
30785
|
+
},
|
|
30786
|
+
scripts: {
|
|
30787
|
+
prepublishOnly: "yarn install && yarn run build && yarn run test:noPrompt",
|
|
30788
|
+
predeploy: "yarn run build-gh && cp styleguide/index.html styleguide/404.html && cp favicon.png styleguide/favicon.png",
|
|
30789
|
+
"build-gh": "yarn run build:docs",
|
|
30790
|
+
deploy: "gh-pages -d styleguide && gh-pages -d styleguide -o upstream",
|
|
30791
|
+
"deploy:origin": "yarn install && yarn run predeploy && gh-pages -d styleguide && gh-pages -d styleguide -o origin",
|
|
30792
|
+
"watch:css": "yarn run build:css && sass src --watch --load-path=node_modules",
|
|
30793
|
+
"start-js": "craco start",
|
|
30794
|
+
start: "npm-run-all -p watch:css serve:docs",
|
|
30795
|
+
"start-deprecated-demo": "npm-run-all -p watch:css start-js",
|
|
30796
|
+
test: 'craco test --transformIgnorePatterns "node_modules/(?!(lodash-es|jest*)/)" , --env=jsdom --setupFilesAfterEnv ./src/setupTests.js --resetMocks false',
|
|
30797
|
+
"test:coverage": "yarn test --coverage",
|
|
30798
|
+
"test:noPrompt": "CI=true yarn test",
|
|
30799
|
+
eject: "craco eject",
|
|
30800
|
+
"type-check": "tsc --noEmit",
|
|
30801
|
+
"type-check:watch": "yarn run type-check --watch",
|
|
30802
|
+
build: "yarn run build:css && yarn run build:js && yarn run build:copy-assets && yarn build:esbuild",
|
|
30803
|
+
"build:css": "sass src/lib/style/main.scss src/lib/style/main.css --load-path=node_modules && sass src/demo/style:src/demo/style --load-path=node_modules",
|
|
30804
|
+
"build:js": "tsc --p tsconfig.build.json",
|
|
30805
|
+
"build:copy-assets": "cd src/lib && find . -name '*.scss' -o -name '*.css' -o -name '*.svg' | cpio -pdm ../../dist/",
|
|
30806
|
+
"build:esbuild": "node esbuild.config.mjs && cp -r src/umd dist/",
|
|
30807
|
+
"serve:docs": "npx styleguidist server --open",
|
|
30808
|
+
"build:docs": "yarn run build:css && npx styleguidist build",
|
|
30809
|
+
"link-src": "yarn link && cd ./node_modules/react && yarn link && cd ../react-router && yarn link && cd ../react-router-dom && yarn link && cd ../../",
|
|
30810
|
+
"unlink-src": "yarn unlink && cd ./node_modules/react && yarn unlink && cd ../react-router && yarn unlink && cd ../react-router-dom && yarn unlink && cd ../../",
|
|
30811
|
+
prepare: "husky install"
|
|
30812
|
+
},
|
|
30813
|
+
resolutions: {
|
|
30814
|
+
"js-yaml": "3.13.1",
|
|
30815
|
+
minimatch: "3.0.4",
|
|
30816
|
+
react: "16.14.0",
|
|
30817
|
+
"react-dom": "16.14.0",
|
|
30818
|
+
"@types/react": "^16.14.23",
|
|
30819
|
+
"@types/webpack": "^5.28.0"
|
|
30820
|
+
},
|
|
30821
|
+
browser: {
|
|
30822
|
+
timers: "timers-browserify"
|
|
30823
|
+
},
|
|
30824
|
+
browserslist: {
|
|
30825
|
+
production: [
|
|
30826
|
+
">0.2%",
|
|
30827
|
+
"not dead",
|
|
30828
|
+
"not op_mini all"
|
|
30829
|
+
],
|
|
30830
|
+
development: [
|
|
30831
|
+
"last 2 chrome version",
|
|
30832
|
+
"last 2 firefox version",
|
|
30833
|
+
"last 2 safari version",
|
|
30834
|
+
"last 2 ie version"
|
|
30835
|
+
]
|
|
30836
|
+
},
|
|
30837
|
+
"lint-staged": {
|
|
30838
|
+
"*.{js,jsx,ts,tsx,json,yml,css,md}": "prettier --write"
|
|
30839
|
+
}
|
|
30840
|
+
};
|
|
30841
|
+
}
|
|
30842
|
+
});
|
|
30843
|
+
|
|
30586
30844
|
// src/lib/umd.index.ts
|
|
30587
30845
|
var umd_index_exports = {};
|
|
30588
30846
|
__export(umd_index_exports, {
|
|
30589
30847
|
SynapseClient: () => SynapseClient_exports,
|
|
30590
30848
|
SynapseComponents: () => SynapseComponents,
|
|
30591
30849
|
SynapseConstants: () => SynapseConstants_exports,
|
|
30592
|
-
SynapseContext: () => SynapseContext2
|
|
30850
|
+
SynapseContext: () => SynapseContext2,
|
|
30851
|
+
SynapseReactClientVersion: () => SynapseReactClientVersion
|
|
30593
30852
|
});
|
|
30594
30853
|
var import_runtime = __toModule(require_runtime());
|
|
30595
30854
|
|
|
@@ -49416,24 +49675,46 @@ var SRC = (() => {
|
|
|
49416
49675
|
var FocusManager = /* @__PURE__ */ function(_Subscribable) {
|
|
49417
49676
|
_inheritsLoose(FocusManager2, _Subscribable);
|
|
49418
49677
|
function FocusManager2() {
|
|
49419
|
-
|
|
49678
|
+
var _this;
|
|
49679
|
+
_this = _Subscribable.call(this) || this;
|
|
49680
|
+
_this.setup = function(onFocus2) {
|
|
49681
|
+
var _window;
|
|
49682
|
+
if (!isServer && ((_window = window) == null ? void 0 : _window.addEventListener)) {
|
|
49683
|
+
var listener3 = function listener4() {
|
|
49684
|
+
return onFocus2();
|
|
49685
|
+
};
|
|
49686
|
+
window.addEventListener("visibilitychange", listener3, false);
|
|
49687
|
+
window.addEventListener("focus", listener3, false);
|
|
49688
|
+
return function() {
|
|
49689
|
+
window.removeEventListener("visibilitychange", listener3);
|
|
49690
|
+
window.removeEventListener("focus", listener3);
|
|
49691
|
+
};
|
|
49692
|
+
}
|
|
49693
|
+
};
|
|
49694
|
+
return _this;
|
|
49420
49695
|
}
|
|
49421
49696
|
var _proto = FocusManager2.prototype;
|
|
49422
49697
|
_proto.onSubscribe = function onSubscribe() {
|
|
49423
|
-
if (!this.
|
|
49424
|
-
this.
|
|
49698
|
+
if (!this.cleanup) {
|
|
49699
|
+
this.setEventListener(this.setup);
|
|
49425
49700
|
}
|
|
49426
49701
|
};
|
|
49427
|
-
_proto.
|
|
49428
|
-
|
|
49429
|
-
|
|
49430
|
-
this.
|
|
49702
|
+
_proto.onUnsubscribe = function onUnsubscribe() {
|
|
49703
|
+
if (!this.hasListeners()) {
|
|
49704
|
+
var _this$cleanup;
|
|
49705
|
+
(_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);
|
|
49706
|
+
this.cleanup = void 0;
|
|
49431
49707
|
}
|
|
49432
|
-
|
|
49708
|
+
};
|
|
49709
|
+
_proto.setEventListener = function setEventListener(setup) {
|
|
49710
|
+
var _this$cleanup2, _this2 = this;
|
|
49711
|
+
this.setup = setup;
|
|
49712
|
+
(_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);
|
|
49713
|
+
this.cleanup = setup(function(focused) {
|
|
49433
49714
|
if (typeof focused === "boolean") {
|
|
49434
|
-
|
|
49715
|
+
_this2.setFocused(focused);
|
|
49435
49716
|
} else {
|
|
49436
|
-
|
|
49717
|
+
_this2.onFocus();
|
|
49437
49718
|
}
|
|
49438
49719
|
});
|
|
49439
49720
|
};
|
|
@@ -49457,22 +49738,6 @@ var SRC = (() => {
|
|
|
49457
49738
|
}
|
|
49458
49739
|
return [void 0, "visible", "prerender"].includes(document.visibilityState);
|
|
49459
49740
|
};
|
|
49460
|
-
_proto.setDefaultEventListener = function setDefaultEventListener() {
|
|
49461
|
-
var _window;
|
|
49462
|
-
if (!isServer && ((_window = window) == null ? void 0 : _window.addEventListener)) {
|
|
49463
|
-
this.setEventListener(function(onFocus2) {
|
|
49464
|
-
var listener3 = function listener4() {
|
|
49465
|
-
return onFocus2();
|
|
49466
|
-
};
|
|
49467
|
-
window.addEventListener("visibilitychange", listener3, false);
|
|
49468
|
-
window.addEventListener("focus", listener3, false);
|
|
49469
|
-
return function() {
|
|
49470
|
-
window.removeEventListener("visibilitychange", listener3);
|
|
49471
|
-
window.removeEventListener("focus", listener3);
|
|
49472
|
-
};
|
|
49473
|
-
});
|
|
49474
|
-
}
|
|
49475
|
-
};
|
|
49476
49741
|
return FocusManager2;
|
|
49477
49742
|
}(Subscribable);
|
|
49478
49743
|
var focusManager = new FocusManager();
|
|
@@ -49481,24 +49746,46 @@ var SRC = (() => {
|
|
|
49481
49746
|
var OnlineManager = /* @__PURE__ */ function(_Subscribable) {
|
|
49482
49747
|
_inheritsLoose(OnlineManager2, _Subscribable);
|
|
49483
49748
|
function OnlineManager2() {
|
|
49484
|
-
|
|
49749
|
+
var _this;
|
|
49750
|
+
_this = _Subscribable.call(this) || this;
|
|
49751
|
+
_this.setup = function(onOnline) {
|
|
49752
|
+
var _window;
|
|
49753
|
+
if (!isServer && ((_window = window) == null ? void 0 : _window.addEventListener)) {
|
|
49754
|
+
var listener3 = function listener4() {
|
|
49755
|
+
return onOnline();
|
|
49756
|
+
};
|
|
49757
|
+
window.addEventListener("online", listener3, false);
|
|
49758
|
+
window.addEventListener("offline", listener3, false);
|
|
49759
|
+
return function() {
|
|
49760
|
+
window.removeEventListener("online", listener3);
|
|
49761
|
+
window.removeEventListener("offline", listener3);
|
|
49762
|
+
};
|
|
49763
|
+
}
|
|
49764
|
+
};
|
|
49765
|
+
return _this;
|
|
49485
49766
|
}
|
|
49486
49767
|
var _proto = OnlineManager2.prototype;
|
|
49487
49768
|
_proto.onSubscribe = function onSubscribe() {
|
|
49488
|
-
if (!this.
|
|
49489
|
-
this.
|
|
49769
|
+
if (!this.cleanup) {
|
|
49770
|
+
this.setEventListener(this.setup);
|
|
49490
49771
|
}
|
|
49491
49772
|
};
|
|
49492
|
-
_proto.
|
|
49493
|
-
|
|
49494
|
-
|
|
49495
|
-
this.
|
|
49773
|
+
_proto.onUnsubscribe = function onUnsubscribe() {
|
|
49774
|
+
if (!this.hasListeners()) {
|
|
49775
|
+
var _this$cleanup;
|
|
49776
|
+
(_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);
|
|
49777
|
+
this.cleanup = void 0;
|
|
49496
49778
|
}
|
|
49497
|
-
|
|
49779
|
+
};
|
|
49780
|
+
_proto.setEventListener = function setEventListener(setup) {
|
|
49781
|
+
var _this$cleanup2, _this2 = this;
|
|
49782
|
+
this.setup = setup;
|
|
49783
|
+
(_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);
|
|
49784
|
+
this.cleanup = setup(function(online) {
|
|
49498
49785
|
if (typeof online === "boolean") {
|
|
49499
|
-
|
|
49786
|
+
_this2.setOnline(online);
|
|
49500
49787
|
} else {
|
|
49501
|
-
|
|
49788
|
+
_this2.onOnline();
|
|
49502
49789
|
}
|
|
49503
49790
|
});
|
|
49504
49791
|
};
|
|
@@ -49522,22 +49809,6 @@ var SRC = (() => {
|
|
|
49522
49809
|
}
|
|
49523
49810
|
return navigator.onLine;
|
|
49524
49811
|
};
|
|
49525
|
-
_proto.setDefaultEventListener = function setDefaultEventListener() {
|
|
49526
|
-
var _window;
|
|
49527
|
-
if (!isServer && ((_window = window) == null ? void 0 : _window.addEventListener)) {
|
|
49528
|
-
this.setEventListener(function(onOnline) {
|
|
49529
|
-
var listener3 = function listener4() {
|
|
49530
|
-
return onOnline();
|
|
49531
|
-
};
|
|
49532
|
-
window.addEventListener("online", listener3, false);
|
|
49533
|
-
window.addEventListener("offline", listener3, false);
|
|
49534
|
-
return function() {
|
|
49535
|
-
window.removeEventListener("online", listener3);
|
|
49536
|
-
window.removeEventListener("offline", listener3);
|
|
49537
|
-
};
|
|
49538
|
-
});
|
|
49539
|
-
}
|
|
49540
|
-
};
|
|
49541
49812
|
return OnlineManager2;
|
|
49542
49813
|
}(Subscribable);
|
|
49543
49814
|
var onlineManager = new OnlineManager();
|
|
@@ -49570,6 +49841,9 @@ var SRC = (() => {
|
|
|
49570
49841
|
this.cancelRetry = function() {
|
|
49571
49842
|
cancelRetry = true;
|
|
49572
49843
|
};
|
|
49844
|
+
this.continueRetry = function() {
|
|
49845
|
+
cancelRetry = false;
|
|
49846
|
+
};
|
|
49573
49847
|
this.continue = function() {
|
|
49574
49848
|
return continueFn == null ? void 0 : continueFn();
|
|
49575
49849
|
};
|
|
@@ -49676,11 +49950,15 @@ var SRC = (() => {
|
|
|
49676
49950
|
}
|
|
49677
49951
|
var _proto = NotifyManager2.prototype;
|
|
49678
49952
|
_proto.batch = function batch(callback) {
|
|
49953
|
+
var result;
|
|
49679
49954
|
this.transactions++;
|
|
49680
|
-
|
|
49681
|
-
|
|
49682
|
-
|
|
49683
|
-
this.
|
|
49955
|
+
try {
|
|
49956
|
+
result = callback();
|
|
49957
|
+
} finally {
|
|
49958
|
+
this.transactions--;
|
|
49959
|
+
if (!this.transactions) {
|
|
49960
|
+
this.flush();
|
|
49961
|
+
}
|
|
49684
49962
|
}
|
|
49685
49963
|
return result;
|
|
49686
49964
|
};
|
|
@@ -49742,6 +50020,7 @@ var SRC = (() => {
|
|
|
49742
50020
|
var Query = /* @__PURE__ */ function() {
|
|
49743
50021
|
function Query2(config2) {
|
|
49744
50022
|
this.abortSignalConsumed = false;
|
|
50023
|
+
this.hadObservers = false;
|
|
49745
50024
|
this.defaultOptions = config2.defaultOptions;
|
|
49746
50025
|
this.setOptions(config2.options);
|
|
49747
50026
|
this.observers = [];
|
|
@@ -49777,8 +50056,14 @@ var SRC = (() => {
|
|
|
49777
50056
|
this.gcTimeout = void 0;
|
|
49778
50057
|
};
|
|
49779
50058
|
_proto.optionalRemove = function optionalRemove() {
|
|
49780
|
-
if (!this.observers.length
|
|
49781
|
-
this.
|
|
50059
|
+
if (!this.observers.length) {
|
|
50060
|
+
if (this.state.isFetching) {
|
|
50061
|
+
if (this.hadObservers) {
|
|
50062
|
+
this.scheduleGc();
|
|
50063
|
+
}
|
|
50064
|
+
} else {
|
|
50065
|
+
this.cache.remove(this);
|
|
50066
|
+
}
|
|
49782
50067
|
}
|
|
49783
50068
|
};
|
|
49784
50069
|
_proto.setData = function setData(updater, options2) {
|
|
@@ -49862,6 +50147,7 @@ var SRC = (() => {
|
|
|
49862
50147
|
_proto.addObserver = function addObserver(observer) {
|
|
49863
50148
|
if (this.observers.indexOf(observer) === -1) {
|
|
49864
50149
|
this.observers.push(observer);
|
|
50150
|
+
this.hadObservers = true;
|
|
49865
50151
|
this.clearGcTimeout();
|
|
49866
50152
|
this.cache.notify({
|
|
49867
50153
|
type: "observerAdded",
|
|
@@ -49916,6 +50202,8 @@ var SRC = (() => {
|
|
|
49916
50202
|
silent: true
|
|
49917
50203
|
});
|
|
49918
50204
|
} else if (this.promise) {
|
|
50205
|
+
var _this$retryer4;
|
|
50206
|
+
(_this$retryer4 = this.retryer) == null ? void 0 : _this$retryer4.continueRetry();
|
|
49919
50207
|
return this.promise;
|
|
49920
50208
|
}
|
|
49921
50209
|
}
|
|
@@ -50074,8 +50362,10 @@ var SRC = (() => {
|
|
|
50074
50362
|
fetchFailureCount: 0,
|
|
50075
50363
|
fetchMeta: (_action$meta = action.meta) != null ? _action$meta : null,
|
|
50076
50364
|
isFetching: true,
|
|
50077
|
-
isPaused: false
|
|
50078
|
-
|
|
50365
|
+
isPaused: false
|
|
50366
|
+
}, !state.dataUpdatedAt && {
|
|
50367
|
+
error: null,
|
|
50368
|
+
status: "loading"
|
|
50079
50369
|
});
|
|
50080
50370
|
case "success":
|
|
50081
50371
|
return _extends({}, state, {
|
|
@@ -50281,6 +50571,8 @@ var SRC = (() => {
|
|
|
50281
50571
|
variables: this.options.variables
|
|
50282
50572
|
});
|
|
50283
50573
|
promise = promise.then(function() {
|
|
50574
|
+
_this.mutationCache.config.onMutate == null ? void 0 : _this.mutationCache.config.onMutate(_this.state.variables, _this);
|
|
50575
|
+
}).then(function() {
|
|
50284
50576
|
return _this.options.onMutate == null ? void 0 : _this.options.onMutate(_this.state.variables);
|
|
50285
50577
|
}).then(function(context) {
|
|
50286
50578
|
if (context !== _this.state.context) {
|
|
@@ -50889,7 +51181,7 @@ var SRC = (() => {
|
|
|
50889
51181
|
_this.client = client;
|
|
50890
51182
|
_this.options = options2;
|
|
50891
51183
|
_this.trackedProps = [];
|
|
50892
|
-
_this.
|
|
51184
|
+
_this.selectError = null;
|
|
50893
51185
|
_this.bindMethods();
|
|
50894
51186
|
_this.setOptions(options2);
|
|
50895
51187
|
return _this;
|
|
@@ -50914,10 +51206,10 @@ var SRC = (() => {
|
|
|
50914
51206
|
}
|
|
50915
51207
|
};
|
|
50916
51208
|
_proto.shouldFetchOnReconnect = function shouldFetchOnReconnect() {
|
|
50917
|
-
return
|
|
51209
|
+
return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect);
|
|
50918
51210
|
};
|
|
50919
51211
|
_proto.shouldFetchOnWindowFocus = function shouldFetchOnWindowFocus() {
|
|
50920
|
-
return
|
|
51212
|
+
return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus);
|
|
50921
51213
|
};
|
|
50922
51214
|
_proto.destroy = function destroy() {
|
|
50923
51215
|
this.listeners = [];
|
|
@@ -50956,22 +51248,27 @@ var SRC = (() => {
|
|
|
50956
51248
|
_proto.getCurrentResult = function getCurrentResult() {
|
|
50957
51249
|
return this.currentResult;
|
|
50958
51250
|
};
|
|
50959
|
-
_proto.trackResult = function trackResult(result) {
|
|
51251
|
+
_proto.trackResult = function trackResult(result, defaultedOptions) {
|
|
50960
51252
|
var _this2 = this;
|
|
50961
51253
|
var trackedResult = {};
|
|
51254
|
+
var trackProp = function trackProp2(key) {
|
|
51255
|
+
if (!_this2.trackedProps.includes(key)) {
|
|
51256
|
+
_this2.trackedProps.push(key);
|
|
51257
|
+
}
|
|
51258
|
+
};
|
|
50962
51259
|
Object.keys(result).forEach(function(key) {
|
|
50963
51260
|
Object.defineProperty(trackedResult, key, {
|
|
50964
51261
|
configurable: false,
|
|
50965
51262
|
enumerable: true,
|
|
50966
51263
|
get: function get15() {
|
|
50967
|
-
|
|
50968
|
-
|
|
50969
|
-
_this2.trackedProps.push(typedKey);
|
|
50970
|
-
}
|
|
50971
|
-
return result[typedKey];
|
|
51264
|
+
trackProp(key);
|
|
51265
|
+
return result[key];
|
|
50972
51266
|
}
|
|
50973
51267
|
});
|
|
50974
51268
|
});
|
|
51269
|
+
if (defaultedOptions.useErrorBoundary || defaultedOptions.suspense) {
|
|
51270
|
+
trackProp("error");
|
|
51271
|
+
}
|
|
50975
51272
|
return trackedResult;
|
|
50976
51273
|
};
|
|
50977
51274
|
_proto.getNextResult = function getNextResult(options2) {
|
|
@@ -51103,21 +51400,20 @@ var SRC = (() => {
|
|
|
51103
51400
|
status = prevQueryResult.status;
|
|
51104
51401
|
isPreviousData = true;
|
|
51105
51402
|
} else if (options2.select && typeof state.data !== "undefined") {
|
|
51106
|
-
if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options2.select ===
|
|
51107
|
-
data2 =
|
|
51403
|
+
if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options2.select === this.selectFn) {
|
|
51404
|
+
data2 = this.selectResult;
|
|
51108
51405
|
} else {
|
|
51109
51406
|
try {
|
|
51407
|
+
this.selectFn = options2.select;
|
|
51110
51408
|
data2 = options2.select(state.data);
|
|
51111
51409
|
if (options2.structuralSharing !== false) {
|
|
51112
51410
|
data2 = replaceEqualDeep(prevResult == null ? void 0 : prevResult.data, data2);
|
|
51113
51411
|
}
|
|
51114
|
-
this.
|
|
51412
|
+
this.selectResult = data2;
|
|
51413
|
+
this.selectError = null;
|
|
51115
51414
|
} catch (selectError) {
|
|
51116
51415
|
getLogger().error(selectError);
|
|
51117
|
-
|
|
51118
|
-
this.previousSelectError = selectError;
|
|
51119
|
-
errorUpdatedAt = Date.now();
|
|
51120
|
-
status = "error";
|
|
51416
|
+
this.selectError = selectError;
|
|
51121
51417
|
}
|
|
51122
51418
|
}
|
|
51123
51419
|
} else {
|
|
@@ -51135,13 +51431,10 @@ var SRC = (() => {
|
|
|
51135
51431
|
if (options2.structuralSharing !== false) {
|
|
51136
51432
|
placeholderData = replaceEqualDeep(prevResult == null ? void 0 : prevResult.data, placeholderData);
|
|
51137
51433
|
}
|
|
51138
|
-
this.
|
|
51434
|
+
this.selectError = null;
|
|
51139
51435
|
} catch (selectError) {
|
|
51140
51436
|
getLogger().error(selectError);
|
|
51141
|
-
|
|
51142
|
-
this.previousSelectError = selectError;
|
|
51143
|
-
errorUpdatedAt = Date.now();
|
|
51144
|
-
status = "error";
|
|
51437
|
+
this.selectError = selectError;
|
|
51145
51438
|
}
|
|
51146
51439
|
}
|
|
51147
51440
|
}
|
|
@@ -51151,6 +51444,12 @@ var SRC = (() => {
|
|
|
51151
51444
|
isPlaceholderData = true;
|
|
51152
51445
|
}
|
|
51153
51446
|
}
|
|
51447
|
+
if (this.selectError) {
|
|
51448
|
+
error = this.selectError;
|
|
51449
|
+
data2 = this.selectResult;
|
|
51450
|
+
errorUpdatedAt = Date.now();
|
|
51451
|
+
status = "error";
|
|
51452
|
+
}
|
|
51154
51453
|
var result = {
|
|
51155
51454
|
status,
|
|
51156
51455
|
isLoading: status === "loading",
|
|
@@ -51162,6 +51461,7 @@ var SRC = (() => {
|
|
|
51162
51461
|
error,
|
|
51163
51462
|
errorUpdatedAt,
|
|
51164
51463
|
failureCount: state.fetchFailureCount,
|
|
51464
|
+
errorUpdateCount: state.errorUpdateCount,
|
|
51165
51465
|
isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,
|
|
51166
51466
|
isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,
|
|
51167
51467
|
isFetching,
|
|
@@ -51270,20 +51570,18 @@ var SRC = (() => {
|
|
|
51270
51570
|
function shouldLoadOnMount(query, options2) {
|
|
51271
51571
|
return options2.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === "error" && options2.retryOnMount === false);
|
|
51272
51572
|
}
|
|
51273
|
-
function shouldRefetchOnMount(query, options2) {
|
|
51274
|
-
return options2.enabled !== false && query.state.dataUpdatedAt > 0 && (options2.refetchOnMount === "always" || options2.refetchOnMount !== false && isStale(query, options2));
|
|
51275
|
-
}
|
|
51276
51573
|
function shouldFetchOnMount(query, options2) {
|
|
51277
|
-
return shouldLoadOnMount(query, options2) ||
|
|
51278
|
-
}
|
|
51279
|
-
function _shouldFetchOnReconnect(query, options2) {
|
|
51280
|
-
return options2.enabled !== false && (options2.refetchOnReconnect === "always" || options2.refetchOnReconnect !== false && isStale(query, options2));
|
|
51574
|
+
return shouldLoadOnMount(query, options2) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options2, options2.refetchOnMount);
|
|
51281
51575
|
}
|
|
51282
|
-
function
|
|
51283
|
-
|
|
51576
|
+
function shouldFetchOn(query, options2, field) {
|
|
51577
|
+
if (options2.enabled !== false) {
|
|
51578
|
+
var value = typeof field === "function" ? field(query) : field;
|
|
51579
|
+
return value === "always" || value !== false && isStale(query, options2);
|
|
51580
|
+
}
|
|
51581
|
+
return false;
|
|
51284
51582
|
}
|
|
51285
51583
|
function shouldFetchOptionally(query, prevQuery, options2, prevOptions) {
|
|
51286
|
-
return options2.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options2.suspense || query.state.status !== "error"
|
|
51584
|
+
return options2.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options2.suspense || query.state.status !== "error") && isStale(query, options2);
|
|
51287
51585
|
}
|
|
51288
51586
|
function isStale(query, options2) {
|
|
51289
51587
|
return query.isStaleByTime(options2.staleTime);
|
|
@@ -51301,10 +51599,10 @@ var SRC = (() => {
|
|
|
51301
51599
|
this.fetchNextPage = this.fetchNextPage.bind(this);
|
|
51302
51600
|
this.fetchPreviousPage = this.fetchPreviousPage.bind(this);
|
|
51303
51601
|
};
|
|
51304
|
-
_proto.setOptions = function setOptions(options2) {
|
|
51602
|
+
_proto.setOptions = function setOptions(options2, notifyOptions) {
|
|
51305
51603
|
_QueryObserver.prototype.setOptions.call(this, _extends({}, options2, {
|
|
51306
51604
|
behavior: infiniteQueryBehavior()
|
|
51307
|
-
}));
|
|
51605
|
+
}), notifyOptions);
|
|
51308
51606
|
};
|
|
51309
51607
|
_proto.getOptimisticResult = function getOptimisticResult(options2) {
|
|
51310
51608
|
options2.behavior = infiniteQueryBehavior();
|
|
@@ -51519,9 +51817,9 @@ var SRC = (() => {
|
|
|
51519
51817
|
var import_react23 = __toModule(require_react());
|
|
51520
51818
|
|
|
51521
51819
|
// node_modules/react-query/es/react/utils.js
|
|
51522
|
-
function shouldThrowError(suspense, _useErrorBoundary,
|
|
51820
|
+
function shouldThrowError(suspense, _useErrorBoundary, params) {
|
|
51523
51821
|
if (typeof _useErrorBoundary === "function") {
|
|
51524
|
-
return _useErrorBoundary(
|
|
51822
|
+
return _useErrorBoundary.apply(void 0, params);
|
|
51525
51823
|
}
|
|
51526
51824
|
if (typeof _useErrorBoundary === "boolean")
|
|
51527
51825
|
return _useErrorBoundary;
|
|
@@ -51558,7 +51856,7 @@ var SRC = (() => {
|
|
|
51558
51856
|
var mutate = import_react23.default.useCallback(function(variables, mutateOptions) {
|
|
51559
51857
|
obsRef.current.mutate(variables, mutateOptions).catch(noop5);
|
|
51560
51858
|
}, []);
|
|
51561
|
-
if (currentResult.error && shouldThrowError(void 0, obsRef.current.options.useErrorBoundary, currentResult.error)) {
|
|
51859
|
+
if (currentResult.error && shouldThrowError(void 0, obsRef.current.options.useErrorBoundary, [currentResult.error])) {
|
|
51562
51860
|
throw currentResult.error;
|
|
51563
51861
|
}
|
|
51564
51862
|
return _extends({}, currentResult, {
|
|
@@ -51634,11 +51932,11 @@ var SRC = (() => {
|
|
|
51634
51932
|
defaultedOptions.onSettled == null ? void 0 : defaultedOptions.onSettled(void 0, error);
|
|
51635
51933
|
});
|
|
51636
51934
|
}
|
|
51637
|
-
if (result.isError && !errorResetBoundary.isReset() && !result.isFetching && shouldThrowError(defaultedOptions.suspense, defaultedOptions.useErrorBoundary, result.error)) {
|
|
51935
|
+
if (result.isError && !errorResetBoundary.isReset() && !result.isFetching && shouldThrowError(defaultedOptions.suspense, defaultedOptions.useErrorBoundary, [result.error, observer.getCurrentQuery()])) {
|
|
51638
51936
|
throw result.error;
|
|
51639
51937
|
}
|
|
51640
51938
|
if (defaultedOptions.notifyOnChangeProps === "tracked") {
|
|
51641
|
-
result = observer.trackResult(result);
|
|
51939
|
+
result = observer.trackResult(result, defaultedOptions);
|
|
51642
51940
|
}
|
|
51643
51941
|
return result;
|
|
51644
51942
|
}
|
|
@@ -60935,9 +61233,12 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
60935
61233
|
}
|
|
60936
61234
|
|
|
60937
61235
|
// src/lib/utils/hooks/SynapseAPI/entity/useGetQueryResultBundle.ts
|
|
61236
|
+
var sharedQueryDefaults = {
|
|
61237
|
+
refetchOnWindowFocus: false
|
|
61238
|
+
};
|
|
60938
61239
|
function useGetQueryResultBundle(queryBundleRequest, options2) {
|
|
60939
61240
|
const { accessToken } = useSynapseContext();
|
|
60940
|
-
return useQuery(entityQueryKeys.tableQueryResult(queryBundleRequest, false), () => SynapseClient_exports.getQueryTableResults(queryBundleRequest, accessToken), options2);
|
|
61241
|
+
return useQuery(entityQueryKeys.tableQueryResult(queryBundleRequest, false), () => SynapseClient_exports.getQueryTableResults(queryBundleRequest, accessToken), __spreadValues(__spreadValues({}, sharedQueryDefaults), options2));
|
|
60941
61242
|
}
|
|
60942
61243
|
function useInfiniteQueryResultBundle(queryBundleRequest, options2, setCurrentAsyncStatus) {
|
|
60943
61244
|
const { accessToken } = useSynapseContext();
|
|
@@ -60949,7 +61250,7 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
60949
61250
|
}),
|
|
60950
61251
|
partMask: offset2 !== 0 ? queryBundleRequest.partMask & BUNDLE_MASK_QUERY_RESULTS : queryBundleRequest.partMask
|
|
60951
61252
|
}), accessToken, setCurrentAsyncStatus);
|
|
60952
|
-
}, __spreadProps(__spreadValues({}, options2), {
|
|
61253
|
+
}, __spreadProps(__spreadValues(__spreadValues({}, sharedQueryDefaults), options2), {
|
|
60953
61254
|
select: (data2) => {
|
|
60954
61255
|
const firstPage = data2 == null ? void 0 : data2.pages[0];
|
|
60955
61256
|
if (firstPage.responseBody) {
|
|
@@ -62179,8 +62480,9 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
62179
62480
|
rel: "noopener noreferrer"
|
|
62180
62481
|
}, "Help Forum"), /* @__PURE__ */ import_react85.default.createElement("a", {
|
|
62181
62482
|
className: "SRC-whiteText",
|
|
62182
|
-
href: "
|
|
62183
|
-
rel: "noopener noreferrer"
|
|
62483
|
+
href: "https://sagebionetworks.jira.com/servicedesk/customer/portal/9",
|
|
62484
|
+
rel: "noopener noreferrer",
|
|
62485
|
+
target: "_blank"
|
|
62184
62486
|
}, "Contact Us"))))), /* @__PURE__ */ import_react85.default.createElement(CreateProjectModal, {
|
|
62185
62487
|
onClose: () => setIsShowingCreateProjectModal(false),
|
|
62186
62488
|
isShowingModal: isShowingCreateProjectModal
|
|
@@ -91413,7 +91715,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
91413
91715
|
}
|
|
91414
91716
|
var QueryContextConsumer = QueryContext.Consumer;
|
|
91415
91717
|
function QueryWrapper(props) {
|
|
91416
|
-
var _a;
|
|
91718
|
+
var _a, _b;
|
|
91417
91719
|
const { initQueryRequest, onQueryChange, onQueryResultBundleChange } = props;
|
|
91418
91720
|
const [lastQueryRequest, setLastQueryRequest] = (0, import_react222.useState)(initQueryRequest);
|
|
91419
91721
|
const [currentAsyncStatus, setCurrentAsyncStatus] = (0, import_react222.useState)(void 0);
|
|
@@ -91424,7 +91726,6 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
91424
91726
|
fetchNextPage,
|
|
91425
91727
|
isFetchingNextPage,
|
|
91426
91728
|
isLoading: queryIsLoading,
|
|
91427
|
-
refetch,
|
|
91428
91729
|
error,
|
|
91429
91730
|
isPreviousData: newQueryIsFetching,
|
|
91430
91731
|
remove: remove3
|
|
@@ -91470,14 +91771,14 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
91470
91771
|
});
|
|
91471
91772
|
}
|
|
91472
91773
|
const data2 = (0, import_react222.useMemo)(() => {
|
|
91473
|
-
var _a2,
|
|
91774
|
+
var _a2, _b2, _c, _d;
|
|
91474
91775
|
if (infiniteData == null || infiniteData.pages.length === 0 || infiniteData.pages[0].responseBody == null) {
|
|
91475
91776
|
return void 0;
|
|
91476
91777
|
}
|
|
91477
91778
|
if (currentPage === "ALL") {
|
|
91478
91779
|
return __spreadProps(__spreadValues({}, infiniteData == null ? void 0 : infiniteData.pages[0].responseBody), {
|
|
91479
91780
|
queryResult: __spreadProps(__spreadValues({}, (_a2 = infiniteData == null ? void 0 : infiniteData.pages[0].responseBody) == null ? void 0 : _a2.queryResult), {
|
|
91480
|
-
queryResults: __spreadProps(__spreadValues({}, (_c = (
|
|
91781
|
+
queryResults: __spreadProps(__spreadValues({}, (_c = (_b2 = infiniteData == null ? void 0 : infiniteData.pages[0].responseBody) == null ? void 0 : _b2.queryResult) == null ? void 0 : _c.queryResults), {
|
|
91481
91782
|
rows: (_d = infiniteData.pages.flatMap((page) => page.responseBody.queryResult.queryResults.rows)) != null ? _d : []
|
|
91482
91783
|
})
|
|
91483
91784
|
})
|
|
@@ -91525,22 +91826,21 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
91525
91826
|
}
|
|
91526
91827
|
}
|
|
91527
91828
|
remove3();
|
|
91528
|
-
refetch();
|
|
91529
91829
|
}
|
|
91530
|
-
|
|
91531
|
-
var _a2,
|
|
91830
|
+
const dataWithLockedFacetRemoved = (0, import_react222.useMemo)(() => {
|
|
91831
|
+
var _a2, _b2;
|
|
91532
91832
|
const lockedFacet = (_a2 = props.lockedFacet) == null ? void 0 : _a2.facet;
|
|
91533
91833
|
if (lockedFacet && data2) {
|
|
91534
91834
|
const dataCopy = cloneDeep_default(data2);
|
|
91535
|
-
const facets = (
|
|
91835
|
+
const facets = (_b2 = dataCopy.facets) == null ? void 0 : _b2.filter((item) => item.columnName.toLowerCase() !== lockedFacet.toLowerCase());
|
|
91536
91836
|
dataCopy.facets = facets;
|
|
91537
91837
|
return dataCopy;
|
|
91538
91838
|
} else {
|
|
91539
91839
|
return data2;
|
|
91540
91840
|
}
|
|
91541
|
-
}
|
|
91841
|
+
}, [data2, (_b = props.lockedFacet) == null ? void 0 : _b.facet]);
|
|
91542
91842
|
const context = {
|
|
91543
|
-
data:
|
|
91843
|
+
data: dataWithLockedFacetRemoved,
|
|
91544
91844
|
isLoadingNewPage: isFetchingNextPage,
|
|
91545
91845
|
hasNextPage: !!hasNextPage2,
|
|
91546
91846
|
hasPreviousPage: !!hasPreviousPage2,
|
|
@@ -98015,7 +98315,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
98015
98315
|
}
|
|
98016
98316
|
if (isShowingAddToV2DownloadListColumn) {
|
|
98017
98317
|
tableColumnHeaderElements.unshift(/* @__PURE__ */ React414.createElement("th", {
|
|
98018
|
-
"data-
|
|
98318
|
+
"data-testid": "AddToDownloadListV2ColumnHeader",
|
|
98019
98319
|
key: "addToV2DownloadListColumn"
|
|
98020
98320
|
}, /* @__PURE__ */ React414.createElement("div", {
|
|
98021
98321
|
className: "SRC-centerContent"
|
|
@@ -98754,7 +99054,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
98754
99054
|
}, /* @__PURE__ */ React423.createElement("h2", null, title), /* @__PURE__ */ React423.createElement("p", null, message), /* @__PURE__ */ React423.createElement("ul", null, /* @__PURE__ */ React423.createElement("li", null, /* @__PURE__ */ React423.createElement("a", {
|
|
98755
99055
|
href: PRODUCTION_ENDPOINT_CONFIG.PORTAL
|
|
98756
99056
|
}, "Synapse Home")), /* @__PURE__ */ React423.createElement("li", null, /* @__PURE__ */ React423.createElement("a", {
|
|
98757
|
-
href: "
|
|
99057
|
+
href: "https://sagebionetworks.jira.com/servicedesk/customer/portal/9"
|
|
98758
99058
|
}, "Contact Us")), /* @__PURE__ */ React423.createElement("li", null, /* @__PURE__ */ React423.createElement("a", {
|
|
98759
99059
|
href: "http://status.synapse.org/"
|
|
98760
99060
|
}, "Status"))))));
|
|
@@ -100850,6 +101150,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
100850
101150
|
ForumSearch: ForumSearch_default,
|
|
100851
101151
|
ReviewerDashboard
|
|
100852
101152
|
};
|
|
101153
|
+
var SynapseReactClientVersion = require_package().version;
|
|
100853
101154
|
return umd_index_exports;
|
|
100854
101155
|
})();
|
|
100855
101156
|
/*
|