@magda/external-ui-plugin-sdk 5.0.0-alpha.1 → 5.0.0-alpha.2

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 (2) hide show
  1. package/dist/index.d.ts +37 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -747,6 +747,15 @@ export declare interface ConfigDataType {
747
747
  */
748
748
  authStatusRefreshInterval?: number;
749
749
 
750
+ /**
751
+ * Whether or not enable in-browser metadata auto-extraction pipelines.
752
+ * You might want to disable the feature to speed up large files upload.
753
+ *
754
+ * @type {boolean}
755
+ * @memberof ConfigDataType
756
+ */
757
+ enableMetadataExtraction: boolean;
758
+
750
759
  /**
751
760
  * Whether or not enable chatbot feature.
752
761
  *
@@ -757,7 +766,6 @@ export declare interface ConfigDataType {
757
766
 
758
767
  /**
759
768
  * The extension ID of the web-llm service worker chrome extension plugin.
760
- * Only required by organisation-managed devices (e.g. company laptops).
761
769
  * See here for more details: https://github.com/magda-io/magda-llm-service-worker-extension
762
770
  *
763
771
  * @type {string}
@@ -765,6 +773,15 @@ export declare interface ConfigDataType {
765
773
  */
766
774
  llmExtensionId: string;
767
775
 
776
+ /**
777
+ * The required version string of the MAGDA web-llm service worker chrome extension plugin.
778
+ * Support [semver string](https://semver.org/) e.g. ">=2.5.0"
779
+ *
780
+ * @type {string}
781
+ * @memberof ConfigDataType
782
+ */
783
+ llmExtensionRequiredVer: string;
784
+
768
785
  /**
769
786
  * The installation URL of the web-llm service worker chrome extension plugin.
770
787
  * This URL will be displayed to the user when the extension is not installed.
@@ -792,6 +809,25 @@ export declare interface ConfigDataType {
792
809
  * @memberof ConfigDataType
793
810
  */
794
811
  enableSQLConsole: boolean;
812
+
813
+ /**
814
+ * The maximum file size that can be loaded into the SQL console.
815
+ * When the user tries to load a file that is larger than this size, the system will show an error message.
816
+ *
817
+ * @type {number}
818
+ * @memberof ConfigDataType
819
+ */
820
+ sqlConsoleMaxFileSize: number;
821
+
822
+ /**
823
+ * The maximum number of result rows will be displayed in SQLConsole UI.
824
+ * Users can still download the full result as CSV file via download button.
825
+ * Set to `0` to make it unlimited.
826
+ *
827
+ * @type {number}
828
+ * @memberof ConfigDataType
829
+ */
830
+ sqlConsoleMaxDisplayRows: number;
795
831
  }
796
832
 
797
833
  /**
@@ -1312,7 +1348,6 @@ declare type User = {
1312
1348
  photoURL: string;
1313
1349
  source: string;
1314
1350
  sourceId?: string;
1315
- isAdmin: boolean;
1316
1351
  roles: Role[];
1317
1352
  permissions: Permission[];
1318
1353
  orgUnitId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/external-ui-plugin-sdk",
3
3
  "description": "MAGDA external UI plugin SDK",
4
- "version": "5.0.0-alpha.1",
4
+ "version": "5.0.0-alpha.2",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist tsconfig.tsbuildinfo",
7
7
  "build": "api-extractor run -l",
@@ -18,7 +18,7 @@
18
18
  "directory": "packages/external-ui-plugin-sdk"
19
19
  },
20
20
  "devDependencies": {
21
- "@magda/web-client": "^5.0.0-alpha.1",
21
+ "@magda/web-client": "^5.0.0-alpha.2",
22
22
  "typescript": "~5.3.3"
23
23
  },
24
24
  "peerDependencies": {