@nordcraft/runtime 1.0.15 → 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/dist/api/createAPIv2.js +4 -5
- package/dist/api/createAPIv2.js.map +1 -1
- package/dist/custom-element.main.esm.js +12 -12
- package/dist/custom-element.main.esm.js.map +2 -2
- package/dist/page.main.esm.js +3 -3
- package/dist/page.main.esm.js.map +2 -2
- package/package.json +3 -3
- package/src/api/createAPIv2.ts +4 -5
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.
|
|
8
|
-
"@nordcraft/std-lib": "1.0.
|
|
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.
|
|
24
|
+
"version": "1.0.17"
|
|
25
25
|
}
|
package/src/api/createAPIv2.ts
CHANGED
|
@@ -110,8 +110,8 @@ export function createAPI({
|
|
|
110
110
|
}, {})
|
|
111
111
|
|
|
112
112
|
const data = {
|
|
113
|
-
...formulaContext.data,
|
|
114
113
|
...componentData,
|
|
114
|
+
...formulaContext.data,
|
|
115
115
|
ApiInputs: {
|
|
116
116
|
...evaluatedInputs,
|
|
117
117
|
},
|
|
@@ -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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
222
|
+
...getFormulaContext(api, componentData).data,
|
|
224
223
|
Event: event,
|
|
225
224
|
},
|
|
226
225
|
ctx,
|