@vertigis/workflow 5.32.1 → 5.32.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.
- package/amd/app/AppActivity.d.ts +6 -1
- package/amd/app/AppActivity.js +1 -1
- package/amd/bundle.js +1 -1
- package/amd/libs/version.d.ts +1 -1
- package/amd/libs/version.js +1 -1
- package/esm/app/AppActivity.d.ts +6 -1
- package/esm/app/AppActivity.js +1 -1
- package/esm/libs/version.d.ts +1 -1
- package/esm/libs/version.js +1 -1
- package/package.json +1 -1
- package/runtime/app/AppActivity.d.ts +6 -1
- package/runtime/app/AppActivity.js +1 -1
- package/runtime/bundle.js +1 -1
- package/runtime/libs/version.d.ts +1 -1
- package/runtime/libs/version.js +1 -1
package/amd/app/AppActivity.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Application, Map, Site, Widget } from "@vertigis/workflow/runtime/app";
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { FormRenderer } from "../activities/forms/FormRenderer";
|
|
4
|
+
/**
|
|
5
|
+
* Re-export react for use in custom activities. This is not a pattern we encourage,
|
|
6
|
+
* but there are legacy custom activity packs that will break without it.
|
|
7
|
+
*/
|
|
8
|
+
export { React };
|
|
4
9
|
/** Properties that control how an activity user interface is hosted by the host application. */
|
|
5
10
|
export interface ShowProps {
|
|
6
11
|
/** The name of the container that will host the activity user interface. */
|
package/amd/app/AppActivity.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports","tslib","react","react-dom","../Task"],function(e,t,c,r,u,
|
|
1
|
+
define(["require","exports","tslib","react","react","react-dom","../Task"],function(e,t,c,r,i,u,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i=(t.AppActivity=t.React=void 0,c.__importDefault)(i),t.React=i.default,t.AppActivity=function(){var n=this.execute;this.execute=function(e,r){var i=this,t=r.ambient.trivia;return this.app=t.app,this.map=t.map,this.site=t.site,this.widget=t.widget,this.FormRenderer=t.FormRenderer,this.completion=r.ambient.completion,this.execute=n,this.createRenderer=function(){var e,t=i.renderer;return void 0===t&&((t=i.renderer=i.FormRenderer.createCustom()).state=r.ambient,e=function(){return t.dispose()},i.completion.then(e,e)),i.renderer||(i.renderer=i.FormRenderer.createCustom())},n.apply(this,arguments)}},t.AppActivity.prototype.createRenderer=function(){return null},t.AppActivity.prototype.applyProps=function(e){var t=this.createRenderer();!function(e,t){var r=!1;if(null!=t)for(var i in t)e[i]!==t[i]&&(e[i]=t[i],r=!0);return r}(this.showProps||(this.showProps={}),e)||(e=this.showProps,t.form={defaults:{container:e.container},elements:{header:{type:"Header",section:"header",title:{markdown:e.title},value:e.icon}}},t.invalidate())},t.AppActivity.prototype.show=function(e){return this.applyProps(e),this.createRenderer().show()},t.AppActivity.prototype.spin=function(e){return this.applyProps(e),this.createRenderer().spin()},t.AppActivity.prototype.spinNoBlock=function(e){return this.applyProps(e),this.createRenderer().spinNoBlock()},t.AppActivity.prototype.hide=function(){return this.createRenderer().hide()},t.AppActivity.prototype.render=function(t,a){return(0,c.__awaiter)(this,void 0,void 0,function(){var o,p,s;return(0,c.__generator)(this,function(e){return o=this.createRenderer().container,"function"==typeof t?(p=this,s=t,[2,new n.Task(function(i,n){return(0,c.__awaiter)(this,void 0,void 0,function(){var t,r;return(0,c.__generator)(this,function(e){switch(e.label){case 0:return(t=i.bind(void 0)).reject=n.bind(void 0),r=u.render,[4,s.call(p,t,a)];case 1:return r.apply(void 0,[e.sent(),o]),[2]}})})})]):(0,r.isValidElement)(t)?[2,new n.Task(function(e){(0,u.render)(t,o,e)})]:[2,o]})})}});
|