@nordcraft/runtime 1.0.38 → 1.0.40
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/custom-element.main.esm.js +2 -2
- package/dist/custom-element.main.esm.js.map +4 -4
- package/dist/editor-preview.main.js +2 -4
- package/dist/editor-preview.main.js.map +1 -1
- package/dist/page.main.esm.js +2 -2
- package/dist/page.main.esm.js.map +4 -4
- package/package.json +3 -3
- package/src/editor-preview.main.ts +2 -7
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.40",
|
|
8
|
+
"@nordcraft/std-lib": "1.0.40",
|
|
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.40"
|
|
25
25
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
/* eslint-disable no-case-declarations */
|
|
4
4
|
/* eslint-disable no-fallthrough */
|
|
5
5
|
import { isLegacyApi } from '@nordcraft/core/dist/api/api'
|
|
6
|
-
import { type ApiRequest } from '@nordcraft/core/dist/api/apiTypes'
|
|
7
6
|
import type {
|
|
8
7
|
AnimationKeyframe,
|
|
9
8
|
Component,
|
|
@@ -692,20 +691,16 @@ export const createRoot = (
|
|
|
692
691
|
const { apiKey } = message.data
|
|
693
692
|
const api = component?.apis[apiKey]
|
|
694
693
|
if (api && !isLegacyApi(api) && component) {
|
|
695
|
-
const Attributes = mapObject(
|
|
696
|
-
component.attributes,
|
|
697
|
-
([name, { testValue }]) => [name, testValue],
|
|
698
|
-
)
|
|
699
694
|
const formulaContext: FormulaContext = {
|
|
700
695
|
component,
|
|
701
|
-
data:
|
|
696
|
+
data: dataSignal.get(),
|
|
702
697
|
root: document,
|
|
703
698
|
package: ctx?.package,
|
|
704
699
|
toddle: window.toddle,
|
|
705
700
|
env,
|
|
706
701
|
}
|
|
707
702
|
const introspectionResult = await introspectApiRequest({
|
|
708
|
-
api
|
|
703
|
+
api,
|
|
709
704
|
componentName: component.name,
|
|
710
705
|
formulaContext,
|
|
711
706
|
})
|