@magda/external-ui-plugin-sdk 4.2.4-alpha.1 → 5.0.0-alpha.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/dist/index.d.ts +46 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -746,6 +746,52 @@ export declare interface ConfigDataType {
|
|
|
746
746
|
* @memberof ConfigDataType
|
|
747
747
|
*/
|
|
748
748
|
authStatusRefreshInterval?: number;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Whether or not enable chatbot feature.
|
|
752
|
+
*
|
|
753
|
+
* @type {boolean}
|
|
754
|
+
* @memberof ConfigDataType
|
|
755
|
+
*/
|
|
756
|
+
enableChatbot: boolean;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* The extension ID of the web-llm service worker chrome extension plugin.
|
|
760
|
+
* Only required by organisation-managed devices (e.g. company laptops).
|
|
761
|
+
* See here for more details: https://github.com/magda-io/magda-llm-service-worker-extension
|
|
762
|
+
*
|
|
763
|
+
* @type {string}
|
|
764
|
+
* @memberof ConfigDataType
|
|
765
|
+
*/
|
|
766
|
+
llmExtensionId: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* The installation URL of the web-llm service worker chrome extension plugin.
|
|
770
|
+
* This URL will be displayed to the user when the extension is not installed.
|
|
771
|
+
*
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof ConfigDataType
|
|
774
|
+
*/
|
|
775
|
+
llmExtensionInstallationUrl: string;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Whether alasql should be run in an iframe.
|
|
779
|
+
* There might be performance benfits to run alasql in iframe.
|
|
780
|
+
* Besides, as alasql requires runtime code generation, proper CSP (i.e. `unsafe-eval`) would be need in place to allow it run.
|
|
781
|
+
* The run in iframe option offers better control over CSP as you can specify different CSP just for alasql.
|
|
782
|
+
*
|
|
783
|
+
* @type {boolean}
|
|
784
|
+
* @memberof ConfigDataType
|
|
785
|
+
*/
|
|
786
|
+
alasqlRunInIframe: boolean;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Whether or not the SQL console feature is enabled.
|
|
790
|
+
*
|
|
791
|
+
* @type {boolean}
|
|
792
|
+
* @memberof ConfigDataType
|
|
793
|
+
*/
|
|
794
|
+
enableSQLConsole: boolean;
|
|
749
795
|
}
|
|
750
796
|
|
|
751
797
|
/**
|
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": "
|
|
4
|
+
"version": "5.0.0-alpha.0",
|
|
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": "^
|
|
21
|
+
"@magda/web-client": "^5.0.0-alpha.0",
|
|
22
22
|
"typescript": "~5.3.3"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|