@kissflow/lowcode-client-sdk 1.0.14-beta → 1.0.16-beta-1

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/snippets.json +19 -18
  2. package/package.json +1 -1
@@ -2,26 +2,26 @@
2
2
  "lowcode": [
3
3
  {
4
4
  "label": "get app variable",
5
- "documentation": "Get variable value from global app scope",
5
+ "documentation": "Get value of the global variable",
6
6
  "insertText": "let variableName = await kf.app.getVariable(\"${1:variableId}\")"
7
7
  },
8
8
  {
9
9
  "label": "set app variable",
10
- "documentation": "Sets variable to new value in global app scope",
10
+ "documentation": "Sets a new value to the global variable",
11
11
  "insertText": "kf.app.setVariable(\"${1:variableId}\", \"${2:newValue}\")"
12
12
  },
13
13
  {
14
14
  "label": "open or navigate page",
15
- "documentation": "Navigate to another page\nRemove 2nd args if you dont have any input parameters to page",
15
+ "documentation": "Navigate to another page",
16
16
  "insertText": "kf.app.openPage(\"${1:pageId}\", { inputParam1: \"value1\" })"
17
17
  },
18
18
  {
19
- "label": "get local(page) variable",
20
- "documentation": "Get variable value from page scope",
19
+ "label": "get local variable",
20
+ "documentation": "Get value of the local variable",
21
21
  "insertText": "let variableName = await kf.app.page.getVariable(\"${1:variableId}\")"
22
22
  },
23
23
  {
24
- "label": "set local(page) variable",
24
+ "label": "set local variable",
25
25
  "documentation": "Sets specified variable to new value in page scope",
26
26
  "insertText": "kf.app.page.setVariable(\"${1:variableId}\", \"${2:newValue}\")"
27
27
  },
@@ -38,11 +38,11 @@
38
38
  {
39
39
  "label": "open a popup",
40
40
  "documentation": "Opens a popup in the page",
41
- "insertText": "// remove 2nd argument if popup doesnt have any popup params\nkf.app.page.openPopup(\"${1:popupId}\", { popupParam1: \"value\" });"
41
+ "insertText": "kf.app.page.openPopup(\"${1:popupId}\", { popupParam1: \"value\" });"
42
42
  },
43
43
  {
44
44
  "label": "get component in page",
45
- "documentation": "Get instance of the components inside the page",
45
+ "documentation": "Get the specified component instance from the current page",
46
46
  "insertText": "let componentInstance = await kf.app.page.getComponent(\"${1:componentId}\")"
47
47
  },
48
48
  {
@@ -61,8 +61,8 @@
61
61
  "insertText": "componentInstance.show()"
62
62
  },
63
63
  {
64
- "label": "set active tab (only for tab component)",
65
- "documentation": "Sets the specified tab index as active",
64
+ "label": "set active tab",
65
+ "documentation": "Sets the specified tab index as active - works only for the tab component",
66
66
  "insertText": "// sets 2nd tab as active\ncomponentInstance.setActiveTab(${1:2})"
67
67
  },
68
68
  {
@@ -72,11 +72,12 @@
72
72
  },
73
73
  {
74
74
  "label": "get all popup parameters",
75
- "documentation": "Get all parameters in the popup",
76
- "insertText": "// returns all popup parameters as object\nlet allParams = await kf.app.page.popup.getAllParameters();"
75
+ "documentation": "Get all parameters in the popup as object",
76
+ "insertText": "let allParams = await kf.app.page.popup.getAllParameters();"
77
77
  },
78
78
  {
79
79
  "label": "close active popup",
80
+ "documentation": "Closes the active popup in the page",
80
81
  "insertText": "kf.app.page.popup.close()"
81
82
  },
82
83
  {
@@ -151,32 +152,32 @@
151
152
 
152
153
  {
153
154
  "label": "get dataform item",
154
- "documentation": "Api call to get dataform item",
155
+ "documentation": "API call to get dataform item",
155
156
  "insertText": "kf.api(`/form/2/${kf.account._id}/${1:formId}/${2:instanceId}`)\n.then((resp) => {${3}})\n.catch((err) => {${4}})"
156
157
  },
157
158
  {
158
159
  "label": "update dataform item",
159
- "documentation": "Api call to update dataform item",
160
+ "documentation": "API call to update dataform item",
160
161
  "insertText": "let payload = {};\nkf.api(`/form/2/${kf.account._id}/${1:formId}/${2:instanceId}`, {\n\tmethod: \"POST\",\n\tbody: JSON.stringify(payload)\n})\n.then((resp) => {${4}})\n.catch((err) => {${5}})"
161
162
  },
162
163
  {
163
164
  "label": "delete dataform item",
164
- "documentation": "Api call to delete dataform item",
165
+ "documentation": "API call to delete dataform item",
165
166
  "insertText": "let payload = {};\nkf.api(`/form/2/${kf.account._id}/${1:formId}/${2:instanceId}`, { method: \"DELETE\" })\n.then((resp) => {${3}})\n.catch((err) => {${4}})"
166
167
  },
167
168
  {
168
169
  "label": "create new dataform item",
169
- "documentation": "Api call to create new dataform item",
170
+ "documentation": "API call to create new dataform item",
170
171
  "insertText": "let payload = {};\nkf.api(`/form/2/${kf.account._id}/${1:formId}/`,{\n\tmethod: \"POST\",\n\tbody: JSON.stringify(payload)\n})\n.then((resp) => {${2}})\n.catch((err) => {${3}})"
171
172
  },
172
173
  {
173
174
  "label": "create new case item",
174
- "documentation": "Api call to create new case item",
175
+ "documentation": "API call to create new case item",
175
176
  "insertText": "let payload = {};\nkf.api(`/case/2/${kf.account._id}/${1:caseId}/`, {\n\tmethod: \"POST\",\n\tbody: JSON.stringify(payload)\n})\n.then((resp) => {${2}})\n.catch((err) => {${3}})"
176
177
  },
177
178
  {
178
179
  "label": "create new process item",
179
- "documentation": "Api call to create new process item",
180
+ "documentation": "API call to create new process item",
180
181
  "insertText": "let payload = {}:\nkf.api(`/process/2/${kf.account._id}/${1:processId}/`, {\n\tmethod: \"POST\",\n\tbody: JSON.stringify(payload)\n})\n.then((resp) => {${2}})\n.catch((err) => {${3}})"
181
182
  }
182
183
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kissflow/lowcode-client-sdk",
3
- "version": "1.0.14-beta",
3
+ "version": "1.0.16-beta-1",
4
4
  "description": "JavaScript SDK for developing over the Kissflow lowcode platform",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [