@next-core/brick-kit 2.169.1 → 2.170.0
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/index.bundle.js +29 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +29 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/BrickNode.d.ts.map +1 -1
- package/dist/types/core/Runtime.d.ts +4 -2
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/core/interfaces.d.ts +3 -0
- package/dist/types/core/interfaces.d.ts.map +1 -1
- package/dist/types/developHelper.d.ts +3 -1
- package/dist/types/developHelper.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -3376,6 +3376,30 @@
|
|
|
3376
3376
|
kernel._dev_only_updateStoryboardBySnippet(appId, newSnippet);
|
|
3377
3377
|
}
|
|
3378
3378
|
|
|
3379
|
+
/* istanbul ignore next */
|
|
3380
|
+
function _dev_only_getContextValue(name, _ref) {
|
|
3381
|
+
var {
|
|
3382
|
+
tplContextId
|
|
3383
|
+
} = _ref;
|
|
3384
|
+
if (tplContextId) {
|
|
3385
|
+
var tplContext = getCustomTemplateContext(tplContextId);
|
|
3386
|
+
return tplContext.state.getValue(name);
|
|
3387
|
+
}
|
|
3388
|
+
return kernel.router.getStoryboardContextWrapper().getValue(name);
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
/* istanbul ignore next */
|
|
3392
|
+
function _dev_only_getAllContextValues(_ref2) {
|
|
3393
|
+
var {
|
|
3394
|
+
tplContextId
|
|
3395
|
+
} = _ref2;
|
|
3396
|
+
if (tplContextId) {
|
|
3397
|
+
var tplContext = getCustomTemplateContext(tplContextId);
|
|
3398
|
+
return tplContext.state.get();
|
|
3399
|
+
}
|
|
3400
|
+
return kernel.router.getStoryboardContextWrapper().get();
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3379
3403
|
/* istanbul ignore next */
|
|
3380
3404
|
function _dev_only_updateFormPreviewSettings(appId, formId, settings) {
|
|
3381
3405
|
kernel._dev_only_updateFormPreviewSettings(appId, formId, settings);
|
|
@@ -6559,6 +6583,9 @@
|
|
|
6559
6583
|
if (brick.iid) {
|
|
6560
6584
|
node.dataset.iid = brick.iid;
|
|
6561
6585
|
}
|
|
6586
|
+
if (brick.tplContextId) {
|
|
6587
|
+
node.dataset.tplContextId = brick.tplContextId;
|
|
6588
|
+
}
|
|
6562
6589
|
setRealProperties(node, brick.properties);
|
|
6563
6590
|
bindListeners(node, brick.events, brick.context);
|
|
6564
6591
|
if (Array.isArray(brick.children)) {
|
|
@@ -13952,6 +13979,8 @@
|
|
|
13952
13979
|
updateTemplatePreviewSettings: _dev_only_updateTemplatePreviewSettings,
|
|
13953
13980
|
updateSnippetPreviewSettings: _dev_only_updateSnippetPreviewSettings,
|
|
13954
13981
|
updateFormPreviewSettings: _dev_only_updateFormPreviewSettings,
|
|
13982
|
+
getContextValue: _dev_only_getContextValue,
|
|
13983
|
+
getAllContextValues: _dev_only_getAllContextValues,
|
|
13955
13984
|
render: _dev_only_render
|
|
13956
13985
|
};
|
|
13957
13986
|
|