@nordcraft/runtime 1.0.16 → 1.0.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/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "type": "module",
5
5
  "homepage": "https://github.com/nordcraftengine/nordcraft",
6
6
  "dependencies": {
7
- "@nordcraft/core": "1.0.16",
8
- "@nordcraft/std-lib": "1.0.16",
7
+ "@nordcraft/core": "1.0.17",
8
+ "@nordcraft/std-lib": "1.0.17",
9
9
  "fast-deep-equal": "3.1.3",
10
10
  "path-to-regexp": "6.3.0"
11
11
  },
@@ -21,5 +21,5 @@
21
21
  "files": ["dist", "src"],
22
22
  "main": "dist/page.main.js",
23
23
  "types": "dist/page.main.d.ts",
24
- "version": "1.0.16"
24
+ "version": "1.0.17"
25
25
  }
@@ -179,7 +179,6 @@ export function createAPI({
179
179
  }
180
180
  componentData: ComponentData
181
181
  }) {
182
- const formulaContext = getFormulaContext(api, componentData)
183
182
  switch (eventName) {
184
183
  case 'message': {
185
184
  const event = createApiEvent('message', data.body)
@@ -187,7 +186,7 @@ export function createAPI({
187
186
  handleAction(
188
187
  action,
189
188
  {
190
- ...formulaContext.data,
189
+ ...getFormulaContext(api, componentData).data,
191
190
  Event: event,
192
191
  },
193
192
  ctx,
@@ -202,7 +201,7 @@ export function createAPI({
202
201
  handleAction(
203
202
  action,
204
203
  {
205
- ...formulaContext.data,
204
+ ...getFormulaContext(api, componentData).data,
206
205
  Event: event,
207
206
  },
208
207
  ctx,
@@ -220,7 +219,7 @@ export function createAPI({
220
219
  handleAction(
221
220
  action,
222
221
  {
223
- ...formulaContext.data,
222
+ ...getFormulaContext(api, componentData).data,
224
223
  Event: event,
225
224
  },
226
225
  ctx,