@matdata/yasgui 5.16.0 → 5.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@matdata/yasgui",
3
3
  "description": "Yet Another SPARQL GUI",
4
- "version": "5.16.0",
4
+ "version": "5.17.0",
5
5
  "main": "build/yasgui.min.js",
6
6
  "types": "build/ts/src/index.d.ts",
7
7
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "jsuri": "^1.3.1",
34
34
  "lodash-es": "^4.17.15",
35
35
  "sortablejs": "^1.10.2",
36
- "@matdata/yasgui-graph-plugin": "^1.4.1",
37
- "@matdata/yasgui-table-plugin": "^1.1.0"
36
+ "@matdata/yasgui-graph-plugin": "^1.6.1",
37
+ "@matdata/yasgui-table-plugin": "^1.3.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/autosuggest-highlight": "^3.1.0",
package/src/Tab.ts CHANGED
@@ -3,7 +3,13 @@ import { addClass, removeClass, getAsValue } from "@matdata/yasgui-utils";
3
3
  import { TabListEl } from "./TabElements";
4
4
  import TabSettingsModal from "./TabSettingsModal";
5
5
  import { default as Yasqe, RequestConfig, PlainRequestConfig, PartialConfig as YasqeConfig } from "@matdata/yasqe";
6
- import { default as Yasr, Parser, Config as YasrConfig, PersistentConfig as YasrPersistentConfig } from "@matdata/yasr";
6
+ import {
7
+ default as Yasr,
8
+ Parser,
9
+ Config as YasrConfig,
10
+ PersistentConfig as YasrPersistentConfig,
11
+ PluginQueryOptions as YasrPluginQueryOptions,
12
+ } from "@matdata/yasr";
7
13
  import { mapValues, eq, mergeWith, words, deburr, invert } from "lodash-es";
8
14
  import * as shareLink from "./linkUtils";
9
15
  import EndpointSelect from "./endpointSelect";
@@ -1584,6 +1590,7 @@ WHERE {
1584
1590
  {
1585
1591
  customQuery: query,
1586
1592
  customAccept: "text/turtle",
1593
+ silent: true,
1587
1594
  },
1588
1595
  );
1589
1596
 
@@ -1672,12 +1679,15 @@ WHERE {
1672
1679
  // Add default renderers to the end, to give our custom ones priority.
1673
1680
  ...(Yasr.defaults.errorRenderers || []),
1674
1681
  ],
1675
- executeQuery: async (query: string, options?: { acceptHeader?: string }) => {
1682
+ executeQuery: async (query: string, options?: YasrPluginQueryOptions) => {
1676
1683
  if (!this.yasqe) throw new Error("No YASQE instance available");
1677
- return Yasqe.Sparql.executeQuery(this.yasqe, undefined, {
1684
+ const response = await Yasqe.Sparql.executeQuery(this.yasqe, undefined, {
1678
1685
  customQuery: query,
1679
1686
  customAccept: options?.acceptHeader,
1687
+ signal: options?.signal,
1688
+ silent: true,
1680
1689
  });
1690
+ return response;
1681
1691
  },
1682
1692
  };
1683
1693
  // Allow getDownloadFilName to be overwritten by the global config
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // Version information for YASGUI
2
2
  // This file is auto-generated during build - do not edit manually
3
- export const VERSION = "5.16.0";
3
+ export const VERSION = "5.17.0";