@appsemble/utils 0.32.1-test.16 → 0.32.1-test.17

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.32.1-test.16/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.32.1-test.17/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.32.1-test.16/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.32.1-test.16)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.32.1-test.17/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.32.1-test.17)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1-test.16/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1-test.17/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -14,6 +14,10 @@ export const FlowPageActionsDefinition = {
14
14
  A flow is finished when \`flow.finish\` gets called, or when \`flow.next\` gets called on the final
15
15
  subpage. This action has a special property in which the cumulative input data from each previous subpage gets sent, instead of the individual block that triggered this action.`,
16
16
  },
17
+ onLoad: {
18
+ $ref: '#/components/schemas/ActionDefinition',
19
+ description: 'This action is fired when a page loads, highly helpful in loading data for the page',
20
+ },
17
21
  },
18
22
  };
19
23
  //# sourceMappingURL=FlowPageActionsDefinition.js.map
@@ -5,7 +5,7 @@ export const PageActionsDefinition = {
5
5
  properties: {
6
6
  onLoad: {
7
7
  $ref: '#/components/schemas/ActionDefinition',
8
- description: '',
8
+ description: 'This action is fired when a page loads, highly helpful in loading data for the page',
9
9
  },
10
10
  },
11
11
  };
package/iterApp.js CHANGED
@@ -19,8 +19,8 @@ export function iterAction(action, callbacks, prefix = []) {
19
19
  return true;
20
20
  }
21
21
  if (action.type === 'condition') {
22
- return Boolean(iterAction(action.then, callbacks, [...prefix, 'then']) ||
23
- iterAction(action.else, callbacks, [...prefix, 'else']));
22
+ return Boolean(iterAction(action.then ?? { type: 'noop' }, callbacks, [...prefix, 'then']) ||
23
+ iterAction(action.else ?? { type: 'noop' }, callbacks, [...prefix, 'else']));
24
24
  }
25
25
  if (action.type === 'each') {
26
26
  return iterAction(action.do, callbacks, [...prefix, 'do']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.32.1-test.16",
3
+ "version": "0.32.1-test.17",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -39,7 +39,7 @@
39
39
  "test": "vitest"
40
40
  },
41
41
  "dependencies": {
42
- "@appsemble/types": "0.32.1-test.16",
42
+ "@appsemble/types": "0.32.1-test.17",
43
43
  "@odata/parser": "^0.2.14",
44
44
  "axios": "^1.0.0",
45
45
  "cron-parser": "^4.0.0",