@saltcorn/markup 1.5.4 → 1.5.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/markup",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Markup for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "repository": "github:saltcorn/saltcorn",
37
37
  "devDependencies": {
38
- "@saltcorn/types": "1.5.4",
38
+ "@saltcorn/types": "1.5.5",
39
39
  "@types/escape-html": "^1.0.4",
40
40
  "@types/estree": "^1.0.8",
41
41
  "@types/jest": "29.5.14",
@@ -1,13 +0,0 @@
1
- /**
2
- * @category saltcorn-markup
3
- * @module workflow
4
- */
5
- /**
6
- * Render the workflow editor shell
7
- * @param workflowData
8
- * @param version_tag
9
- * @returns {string}
10
- */
11
- declare const renderWorkflow: (workflowData: any, version_tag?: string) => string;
12
- export = renderWorkflow;
13
- //# sourceMappingURL=workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../workflow.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;;;;GAKG;AACH,QAAA,MAAM,cAAc,GAAI,cAAc,GAAG,EAAE,cAAc,MAAM,KAAG,MAsB/D,CAAC;AAEJ,SAAS,cAAc,CAAC"}
package/dist/workflow.js DELETED
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /**
3
- * @category saltcorn-markup
4
- * @module workflow
5
- */
6
- const tags = require("./tags");
7
- const { div, script, style } = tags;
8
- const encode = (x) => encodeURIComponent(JSON.stringify(x));
9
- /**
10
- * Render the workflow editor shell
11
- * @param workflowData
12
- * @param version_tag
13
- * @returns {string}
14
- */
15
- const renderWorkflow = (workflowData, version_tag) => div({ class: "workflow-editor-wrapper" }, style(/*css*/ `
16
- .workflow-editor-wrapper {
17
- display: flex;
18
- flex-direction: column;
19
- }
20
- #saltcorn-workflow-editor {
21
- flex: 1;
22
- min-height: 0px;
23
- }
24
- `), script({
25
- src: version_tag
26
- ? `/static_assets/${version_tag}/workflow_bundle.js`
27
- : "/workflow_bundle.js",
28
- }), div({ id: "saltcorn-workflow-editor" }), script(`workflow.renderWorkflowEditor("saltcorn-workflow-editor", "${encode(workflowData)}");`));
29
- module.exports = renderWorkflow;
30
- //# sourceMappingURL=workflow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../workflow.ts"],"names":[],"mappings":";AAAA;;;GAGG;AAEH,+BAAgC;AAChC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;AAEpC,MAAM,MAAM,GAAG,CAAC,CAAM,EAAU,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,cAAc,GAAG,CAAC,YAAiB,EAAE,WAAoB,EAAU,EAAE,CACzE,GAAG,CACD,EAAE,KAAK,EAAE,yBAAyB,EAAE,EACpC,KAAK,CAAC,OAAO,CAAA;;;;;;;;;KASZ,CAAC,EACF,MAAM,CAAC;IACL,GAAG,EAAE,WAAW;QACd,CAAC,CAAC,kBAAkB,WAAW,qBAAqB;QACpD,CAAC,CAAC,qBAAqB;CAC1B,CAAC,EACF,GAAG,CAAC,EAAE,EAAE,EAAE,0BAA0B,EAAE,CAAC,EACvC,MAAM,CACJ,8DAA8D,MAAM,CAAC,YAAY,CAAC,KAAK,CACxF,CACF,CAAC;AAEJ,iBAAS,cAAc,CAAC"}