@knime/scripting-editor 0.0.57 → 0.0.59

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.
@@ -28,24 +28,21 @@ export type ScriptingServiceType = typeof scriptingService;
28
28
  *
29
29
  * @returns the scripting service instance
30
30
  * @example
31
- * // Provide a custom scripting service instance in a browser development environment
32
- * // vite.config.ts
33
- * resolve: {
34
- * alias: {
35
- * "./scripting-service-instance.js":
36
- * process.env.APP_ENV === "browser"
37
- * ? <path to scripting-service-instance-browser.ts>,
38
- * : "./scripting-service-instance.js",
39
- * },
40
- * },
41
- *
42
- * // scripting-service-instance-browser.ts
43
31
  * import { createScriptingServiceMock } from "@knime/scripting-editor/scripting-service-browser-mock";
44
- * const scriptingService = createScriptingServiceMock({
45
- * // optional customizations
46
- * });
47
- * export const getScriptingServiceInstance = () => scriptingService;
48
- * export const setScriptingServiceInstance = () => {};
32
+ * import { getScriptingService } from "@knime/scripting-editor";
33
+ *
34
+ * if (import.meta.env.MODE === "development.browser") {
35
+ * const scriptingService = createScriptingServiceMock({
36
+ * sendToServiceMockResponses: {
37
+ * myBackendFunction: (options) => {
38
+ * consola.log("called my backend function with", options);
39
+ * return Promise.resolve();
40
+ * },
41
+ * },
42
+ * });
43
+ *
44
+ * Object.assign(getScriptingService(), scriptingService);
45
+ * }
49
46
  */
50
47
  export declare const getScriptingService: () => ScriptingServiceType;
51
48
  export declare const initConsoleEventHandler: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.57",
4
+ "version": "0.0.59",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "author": "KNIME AG, Zurich, Switzerland",
7
7
  "license": "See the file license.txt",